1 line
No EOL
2.7 MiB
Executable file
1 line
No EOL
2.7 MiB
Executable file
{"version":3,"file":"compiler.mjs","sources":["../../../../../../packages/compiler/src/selector.ts","../../../../../../packages/compiler/src/core.ts","../../../../../../packages/compiler/src/i18n/digest.ts","../../../../../../packages/compiler/src/output/output_ast.ts","../../../../../../packages/compiler/src/constant_pool.ts","../../../../../../packages/compiler/src/render3/r3_identifiers.ts","../../../../../../packages/compiler/src/util.ts","../../../../../../packages/compiler/src/output/source_map.ts","../../../../../../packages/compiler/src/output/abstract_emitter.ts","../../../../../../packages/compiler/src/render3/util.ts","../../../../../../packages/compiler/src/render3/r3_factory.ts","../../../../../../packages/compiler/src/ml_parser/tags.ts","../../../../../../packages/compiler/src/render3/r3_ast.ts","../../../../../../packages/compiler/src/i18n/i18n_ast.ts","../../../../../../packages/compiler/src/i18n/serializers/serializer.ts","../../../../../../packages/compiler/src/i18n/serializers/xml_helper.ts","../../../../../../packages/compiler/src/i18n/serializers/xmb.ts","../../../../../../packages/compiler/src/render3/view/i18n/util.ts","../../../../../../packages/compiler/src/render3/view/util.ts","../../../../../../packages/compiler/src/injectable_compiler_2.ts","../../../../../../packages/compiler/src/assertions.ts","../../../../../../packages/compiler/src/ml_parser/defaults.ts","../../../../../../packages/compiler/src/chars.ts","../../../../../../packages/compiler/src/parse_util.ts","../../../../../../packages/compiler/src/output/abstract_js_emitter.ts","../../../../../../packages/compiler/src/output/output_jit_trusted_types.ts","../../../../../../packages/compiler/src/output/output_jit.ts","../../../../../../packages/compiler/src/render3/r3_injector_compiler.ts","../../../../../../packages/compiler/src/render3/r3_jit.ts","../../../../../../packages/compiler/src/render3/r3_module_compiler.ts","../../../../../../packages/compiler/src/render3/r3_pipe_compiler.ts","../../../../../../packages/compiler/src/render3/view/api.ts","../../../../../../packages/compiler/src/expression_parser/ast.ts","../../../../../../packages/compiler/src/compiler_util/expression_converter.ts","../../../../../../packages/compiler/src/schema/dom_security_schema.ts","../../../../../../packages/compiler/src/shadow_css.ts","../../../../../../packages/compiler/src/template/pipeline/ir/src/enums.ts","../../../../../../packages/compiler/src/template/pipeline/ir/src/traits.ts","../../../../../../packages/compiler/src/template/pipeline/ir/src/ops/shared.ts","../../../../../../packages/compiler/src/template/pipeline/ir/src/ops/update.ts","../../../../../../packages/compiler/src/template/pipeline/ir/src/expression.ts","../../../../../../packages/compiler/src/template/pipeline/ir/src/operations.ts","../../../../../../packages/compiler/src/template/pipeline/ir/src/handle.ts","../../../../../../packages/compiler/src/template/pipeline/ir/src/ops/create.ts","../../../../../../packages/compiler/src/template/pipeline/ir/src/ops/host.ts","../../../../../../packages/compiler/src/template/pipeline/ir/src/variable.ts","../../../../../../packages/compiler/src/template/pipeline/src/compilation.ts","../../../../../../packages/compiler/src/template/pipeline/src/phases/any_cast.ts","../../../../../../packages/compiler/src/template/pipeline/src/phases/apply_i18n_expressions.ts","../../../../../../packages/compiler/src/template/pipeline/src/phases/assign_i18n_slot_dependencies.ts","../../../../../../packages/compiler/src/template/pipeline/src/util/elements.ts","../../../../../../packages/compiler/src/template/pipeline/src/phases/attribute_extraction.ts","../../../../../../packages/compiler/src/template/pipeline/src/phases/binding_specialization.ts","../../../../../../packages/compiler/src/template/pipeline/src/phases/chaining.ts","../../../../../../packages/compiler/src/template/pipeline/src/phases/collapse_singleton_interpolations.ts","../../../../../../packages/compiler/src/template/pipeline/src/phases/conditionals.ts","../../../../../../packages/compiler/src/template/pipeline/src/conversion.ts","../../../../../../packages/compiler/src/template/pipeline/src/phases/const_collection.ts","../../../../../../packages/compiler/src/template/pipeline/src/phases/convert_i18n_bindings.ts","../../../../../../packages/compiler/src/template/pipeline/src/phases/create_defer_deps_fns.ts","../../../../../../packages/compiler/src/template/pipeline/src/phases/create_i18n_contexts.ts","../../../../../../packages/compiler/src/template/pipeline/src/phases/deduplicate_text_bindings.ts","../../../../../../packages/compiler/src/template/pipeline/src/phases/defer_configs.ts","../../../../../../packages/compiler/src/template/pipeline/src/phases/defer_resolve_targets.ts","../../../../../../packages/compiler/src/template/pipeline/src/phases/empty_elements.ts","../../../../../../packages/compiler/src/template/pipeline/src/phases/expand_safe_reads.ts","../../../../../../packages/compiler/src/template/pipeline/src/phases/extract_i18n_messages.ts","../../../../../../packages/compiler/src/template/pipeline/src/phases/generate_advance.ts","../../../../../../packages/compiler/src/template/pipeline/src/phases/generate_projection_def.ts","../../../../../../packages/compiler/src/template/pipeline/src/phases/generate_variables.ts","../../../../../../packages/compiler/src/template/pipeline/src/phases/has_const_expression_collection.ts","../../../../../../packages/compiler/src/template/pipeline/src/phases/host_style_property_parsing.ts","../../../../../../packages/compiler/src/output/map_util.ts","../../../../../../packages/compiler/src/render3/view/i18n/icu_serializer.ts","../../../../../../packages/compiler/src/expression_parser/lexer.ts","../../../../../../packages/compiler/src/expression_parser/parser.ts","../../../../../../packages/compiler/src/ml_parser/ast.ts","../../../../../../packages/compiler/src/schema/element_schema_registry.ts","../../../../../../packages/compiler/src/schema/dom_element_schema_registry.ts","../../../../../../packages/compiler/src/ml_parser/html_tags.ts","../../../../../../packages/compiler/src/i18n/serializers/placeholder.ts","../../../../../../packages/compiler/src/i18n/i18n_parser.ts","../../../../../../packages/compiler/src/i18n/parse_util.ts","../../../../../../packages/compiler/src/ml_parser/entities.ts","../../../../../../packages/compiler/src/ml_parser/lexer.ts","../../../../../../packages/compiler/src/ml_parser/parser.ts","../../../../../../packages/compiler/src/schema/trusted_types_sinks.ts","../../../../../../packages/compiler/src/render3/view/i18n/meta.ts","../../../../../../packages/compiler/src/render3/view/i18n/get_msg_utils.ts","../../../../../../packages/compiler/src/render3/view/i18n/localize_utils.ts","../../../../../../packages/compiler/src/template/pipeline/src/phases/i18n_const_collection.ts","../../../../../../packages/compiler/src/template/pipeline/src/phases/i18n_text_extraction.ts","../../../../../../packages/compiler/src/template/pipeline/src/phases/local_refs.ts","../../../../../../packages/compiler/src/template/pipeline/src/phases/namespace.ts","../../../../../../packages/compiler/src/render3/view/style_parser.ts","../../../../../../packages/compiler/src/template/pipeline/src/phases/naming.ts","../../../../../../packages/compiler/src/template/pipeline/src/phases/next_context_merging.ts","../../../../../../packages/compiler/src/template/pipeline/src/phases/ng_container.ts","../../../../../../packages/compiler/src/template/pipeline/src/phases/nonbindable.ts","../../../../../../packages/compiler/src/template/pipeline/src/phases/nullish_coalescing.ts","../../../../../../packages/compiler/src/template/pipeline/src/phases/ordering.ts","../../../../../../packages/compiler/src/template/pipeline/src/phases/parse_extracted_styles.ts","../../../../../../packages/compiler/src/template/pipeline/src/phases/phase_remove_content_selectors.ts","../../../../../../packages/compiler/src/template/pipeline/src/phases/pipe_creation.ts","../../../../../../packages/compiler/src/template/pipeline/src/phases/pipe_variadic.ts","../../../../../../packages/compiler/src/template/pipeline/src/phases/propagate_i18n_blocks.ts","../../../../../../packages/compiler/src/template/pipeline/src/phases/pure_function_extraction.ts","../../../../../../packages/compiler/src/template/pipeline/src/phases/pure_literal_structures.ts","../../../../../../packages/compiler/src/template/pipeline/src/instruction.ts","../../../../../../packages/compiler/src/template/pipeline/src/phases/reify.ts","../../../../../../packages/compiler/src/template/pipeline/src/phases/remove_empty_bindings.ts","../../../../../../packages/compiler/src/template/pipeline/src/phases/remove_i18n_contexts.ts","../../../../../../packages/compiler/src/template/pipeline/src/phases/remove_unused_i18n_attrs.ts","../../../../../../packages/compiler/src/template/pipeline/src/phases/resolve_contexts.ts","../../../../../../packages/compiler/src/template/pipeline/src/phases/resolve_dollar_event.ts","../../../../../../packages/compiler/src/template/pipeline/src/phases/resolve_i18n_element_placeholders.ts","../../../../../../packages/compiler/src/template/pipeline/src/phases/resolve_i18n_expression_placeholders.ts","../../../../../../packages/compiler/src/template/pipeline/src/phases/resolve_names.ts","../../../../../../packages/compiler/src/template/pipeline/src/phases/resolve_sanitizers.ts","../../../../../../packages/compiler/src/template/pipeline/src/phases/save_restore_view.ts","../../../../../../packages/compiler/src/template/pipeline/src/phases/slot_allocation.ts","../../../../../../packages/compiler/src/template/pipeline/src/phases/style_binding_specialization.ts","../../../../../../packages/compiler/src/template/pipeline/src/phases/temporary_variables.ts","../../../../../../packages/compiler/src/template/pipeline/src/phases/track_fn_generation.ts","../../../../../../packages/compiler/src/template/pipeline/src/phases/track_fn_optimization.ts","../../../../../../packages/compiler/src/template/pipeline/src/phases/track_variables.ts","../../../../../../packages/compiler/src/template/pipeline/src/phases/var_counting.ts","../../../../../../packages/compiler/src/template/pipeline/src/phases/variable_optimization.ts","../../../../../../packages/compiler/src/template/pipeline/src/phases/wrap_icus.ts","../../../../../../packages/compiler/src/template/pipeline/src/emit.ts","../../../../../../packages/compiler/src/template/pipeline/src/ingest.ts","../../../../../../packages/compiler/src/template/pipeline/switch/index.ts","../../../../../../packages/compiler/src/render3/view/styling_builder.ts","../../../../../../packages/compiler/src/ml_parser/html_parser.ts","../../../../../../packages/compiler/src/ml_parser/html_whitespaces.ts","../../../../../../packages/compiler/src/template_parser/binding_parser.ts","../../../../../../packages/compiler/src/style_url_resolver.ts","../../../../../../packages/compiler/src/template_parser/template_preparser.ts","../../../../../../packages/compiler/src/render3/r3_control_flow.ts","../../../../../../packages/compiler/src/render3/r3_deferred_triggers.ts","../../../../../../packages/compiler/src/render3/r3_deferred_blocks.ts","../../../../../../packages/compiler/src/render3/r3_template_transform.ts","../../../../../../packages/compiler/src/render3/view/i18n/context.ts","../../../../../../packages/compiler/src/render3/view/template.ts","../../../../../../packages/compiler/src/render3/view/compiler.ts","../../../../../../packages/compiler/src/render3/view/t2_binder.ts","../../../../../../packages/compiler/src/resource_loader.ts","../../../../../../packages/compiler/src/jit_compiler_facade.ts","../../../../../../packages/compiler/src/version.ts","../../../../../../packages/compiler/src/config.ts","../../../../../../packages/compiler/src/i18n/extractor_merger.ts","../../../../../../packages/compiler/src/ml_parser/xml_tags.ts","../../../../../../packages/compiler/src/ml_parser/xml_parser.ts","../../../../../../packages/compiler/src/i18n/serializers/xliff.ts","../../../../../../packages/compiler/src/i18n/serializers/xliff2.ts","../../../../../../packages/compiler/src/i18n/serializers/xtb.ts","../../../../../../packages/compiler/src/i18n/translation_bundle.ts","../../../../../../packages/compiler/src/i18n/i18n_html_parser.ts","../../../../../../packages/compiler/src/i18n/message_bundle.ts","../../../../../../packages/compiler/src/render3/partial/api.ts","../../../../../../packages/compiler/src/render3/r3_class_metadata_compiler.ts","../../../../../../packages/compiler/src/render3/r3_class_debug_info_compiler.ts","../../../../../../packages/compiler/src/render3/partial/class_metadata.ts","../../../../../../packages/compiler/src/render3/partial/util.ts","../../../../../../packages/compiler/src/render3/partial/directive.ts","../../../../../../packages/compiler/src/render3/partial/component.ts","../../../../../../packages/compiler/src/render3/partial/factory.ts","../../../../../../packages/compiler/src/render3/partial/injectable.ts","../../../../../../packages/compiler/src/render3/partial/injector.ts","../../../../../../packages/compiler/src/render3/partial/ng_module.ts","../../../../../../packages/compiler/src/render3/partial/pipe.ts","../../../../../../packages/compiler/src/compiler.ts","../../../../../../packages/compiler/public_api.ts","../../../../../../packages/compiler/compiler.ts","../../../../../../packages/compiler/index.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nconst _SELECTOR_REGEXP = new RegExp(\n '(\\\\:not\\\\()|' + // 1: \":not(\"\n '(([\\\\.\\\\#]?)[-\\\\w]+)|' + // 2: \"tag\"; 3: \".\"/\"#\";\n // \"-\" should appear first in the regexp below as FF31 parses \"[.-\\w]\" as a range\n // 4: attribute; 5: attribute_string; 6: attribute_value\n '(?:\\\\[([-.\\\\w*\\\\\\\\$]+)(?:=([\\\"\\']?)([^\\\\]\\\"\\']*)\\\\5)?\\\\])|' + // \"[name]\", \"[name=value]\",\n // \"[name=\"value\"]\",\n // \"[name='value']\"\n '(\\\\))|' + // 7: \")\"\n '(\\\\s*,\\\\s*)', // 8: \",\"\n 'g');\n\n/**\n * These offsets should match the match-groups in `_SELECTOR_REGEXP` offsets.\n */\nconst enum SelectorRegexp {\n ALL = 0, // The whole match\n NOT = 1,\n TAG = 2,\n PREFIX = 3,\n ATTRIBUTE = 4,\n ATTRIBUTE_STRING = 5,\n ATTRIBUTE_VALUE = 6,\n NOT_END = 7,\n SEPARATOR = 8,\n}\n/**\n * A css selector contains an element name,\n * css classes and attribute/value pairs with the purpose\n * of selecting subsets out of them.\n */\nexport class CssSelector {\n element: string|null = null;\n classNames: string[] = [];\n /**\n * The selectors are encoded in pairs where:\n * - even locations are attribute names\n * - odd locations are attribute values.\n *\n * Example:\n * Selector: `[key1=value1][key2]` would parse to:\n * ```\n * ['key1', 'value1', 'key2', '']\n * ```\n */\n attrs: string[] = [];\n notSelectors: CssSelector[] = [];\n\n static parse(selector: string): CssSelector[] {\n const results: CssSelector[] = [];\n const _addResult = (res: CssSelector[], cssSel: CssSelector) => {\n if (cssSel.notSelectors.length > 0 && !cssSel.element && cssSel.classNames.length == 0 &&\n cssSel.attrs.length == 0) {\n cssSel.element = '*';\n }\n res.push(cssSel);\n };\n let cssSelector = new CssSelector();\n let match: string[]|null;\n let current = cssSelector;\n let inNot = false;\n _SELECTOR_REGEXP.lastIndex = 0;\n while (match = _SELECTOR_REGEXP.exec(selector)) {\n if (match[SelectorRegexp.NOT]) {\n if (inNot) {\n throw new Error('Nesting :not in a selector is not allowed');\n }\n inNot = true;\n current = new CssSelector();\n cssSelector.notSelectors.push(current);\n }\n const tag = match[SelectorRegexp.TAG];\n if (tag) {\n const prefix = match[SelectorRegexp.PREFIX];\n if (prefix === '#') {\n // #hash\n current.addAttribute('id', tag.slice(1));\n } else if (prefix === '.') {\n // Class\n current.addClassName(tag.slice(1));\n } else {\n // Element\n current.setElement(tag);\n }\n }\n const attribute = match[SelectorRegexp.ATTRIBUTE];\n\n if (attribute) {\n current.addAttribute(\n current.unescapeAttribute(attribute), match[SelectorRegexp.ATTRIBUTE_VALUE]);\n }\n if (match[SelectorRegexp.NOT_END]) {\n inNot = false;\n current = cssSelector;\n }\n if (match[SelectorRegexp.SEPARATOR]) {\n if (inNot) {\n throw new Error('Multiple selectors in :not are not supported');\n }\n _addResult(results, cssSelector);\n cssSelector = current = new CssSelector();\n }\n }\n _addResult(results, cssSelector);\n return results;\n }\n\n /**\n * Unescape `\\$` sequences from the CSS attribute selector.\n *\n * This is needed because `$` can have a special meaning in CSS selectors,\n * but we might want to match an attribute that contains `$`.\n * [MDN web link for more\n * info](https://developer.mozilla.org/en-US/docs/Web/CSS/Attribute_selectors).\n * @param attr the attribute to unescape.\n * @returns the unescaped string.\n */\n unescapeAttribute(attr: string): string {\n let result = '';\n let escaping = false;\n for (let i = 0; i < attr.length; i++) {\n const char = attr.charAt(i);\n if (char === '\\\\') {\n escaping = true;\n continue;\n }\n if (char === '$' && !escaping) {\n throw new Error(\n `Error in attribute selector \"${attr}\". ` +\n `Unescaped \"$\" is not supported. Please escape with \"\\\\$\".`);\n }\n escaping = false;\n result += char;\n }\n return result;\n }\n\n /**\n * Escape `$` sequences from the CSS attribute selector.\n *\n * This is needed because `$` can have a special meaning in CSS selectors,\n * with this method we are escaping `$` with `\\$'.\n * [MDN web link for more\n * info](https://developer.mozilla.org/en-US/docs/Web/CSS/Attribute_selectors).\n * @param attr the attribute to escape.\n * @returns the escaped string. \n */\n escapeAttribute(attr: string): string {\n return attr.replace(/\\\\/g, '\\\\\\\\').replace(/\\$/g, '\\\\$');\n }\n\n isElementSelector(): boolean {\n return this.hasElementSelector() && this.classNames.length == 0 && this.attrs.length == 0 &&\n this.notSelectors.length === 0;\n }\n\n hasElementSelector(): boolean {\n return !!this.element;\n }\n\n setElement(element: string|null = null) {\n this.element = element;\n }\n\n getAttrs(): string[] {\n const result: string[] = [];\n if (this.classNames.length > 0) {\n result.push('class', this.classNames.join(' '));\n }\n return result.concat(this.attrs);\n }\n\n addAttribute(name: string, value: string = '') {\n this.attrs.push(name, value && value.toLowerCase() || '');\n }\n\n addClassName(name: string) {\n this.classNames.push(name.toLowerCase());\n }\n\n toString(): string {\n let res: string = this.element || '';\n if (this.classNames) {\n this.classNames.forEach(klass => res += `.${klass}`);\n }\n if (this.attrs) {\n for (let i = 0; i < this.attrs.length; i += 2) {\n const name = this.escapeAttribute(this.attrs[i]);\n const value = this.attrs[i + 1];\n res += `[${name}${value ? '=' + value : ''}]`;\n }\n }\n this.notSelectors.forEach(notSelector => res += `:not(${notSelector})`);\n return res;\n }\n}\n\n/**\n * Reads a list of CssSelectors and allows to calculate which ones\n * are contained in a given CssSelector.\n */\nexport class SelectorMatcher<T = any> {\n static createNotMatcher(notSelectors: CssSelector[]): SelectorMatcher<null> {\n const notMatcher = new SelectorMatcher<null>();\n notMatcher.addSelectables(notSelectors, null);\n return notMatcher;\n }\n\n private _elementMap = new Map<string, SelectorContext<T>[]>();\n private _elementPartialMap = new Map<string, SelectorMatcher<T>>();\n private _classMap = new Map<string, SelectorContext<T>[]>();\n private _classPartialMap = new Map<string, SelectorMatcher<T>>();\n private _attrValueMap = new Map<string, Map<string, SelectorContext<T>[]>>();\n private _attrValuePartialMap = new Map<string, Map<string, SelectorMatcher<T>>>();\n private _listContexts: SelectorListContext[] = [];\n\n addSelectables(cssSelectors: CssSelector[], callbackCtxt?: T) {\n let listContext: SelectorListContext = null!;\n if (cssSelectors.length > 1) {\n listContext = new SelectorListContext(cssSelectors);\n this._listContexts.push(listContext);\n }\n for (let i = 0; i < cssSelectors.length; i++) {\n this._addSelectable(cssSelectors[i], callbackCtxt as T, listContext);\n }\n }\n\n /**\n * Add an object that can be found later on by calling `match`.\n * @param cssSelector A css selector\n * @param callbackCtxt An opaque object that will be given to the callback of the `match` function\n */\n private _addSelectable(\n cssSelector: CssSelector, callbackCtxt: T, listContext: SelectorListContext) {\n let matcher: SelectorMatcher<T> = this;\n const element = cssSelector.element;\n const classNames = cssSelector.classNames;\n const attrs = cssSelector.attrs;\n const selectable = new SelectorContext(cssSelector, callbackCtxt, listContext);\n\n if (element) {\n const isTerminal = attrs.length === 0 && classNames.length === 0;\n if (isTerminal) {\n this._addTerminal(matcher._elementMap, element, selectable);\n } else {\n matcher = this._addPartial(matcher._elementPartialMap, element);\n }\n }\n\n if (classNames) {\n for (let i = 0; i < classNames.length; i++) {\n const isTerminal = attrs.length === 0 && i === classNames.length - 1;\n const className = classNames[i];\n if (isTerminal) {\n this._addTerminal(matcher._classMap, className, selectable);\n } else {\n matcher = this._addPartial(matcher._classPartialMap, className);\n }\n }\n }\n\n if (attrs) {\n for (let i = 0; i < attrs.length; i += 2) {\n const isTerminal = i === attrs.length - 2;\n const name = attrs[i];\n const value = attrs[i + 1];\n if (isTerminal) {\n const terminalMap = matcher._attrValueMap;\n let terminalValuesMap = terminalMap.get(name);\n if (!terminalValuesMap) {\n terminalValuesMap = new Map<string, SelectorContext<T>[]>();\n terminalMap.set(name, terminalValuesMap);\n }\n this._addTerminal(terminalValuesMap, value, selectable);\n } else {\n const partialMap = matcher._attrValuePartialMap;\n let partialValuesMap = partialMap.get(name);\n if (!partialValuesMap) {\n partialValuesMap = new Map<string, SelectorMatcher<T>>();\n partialMap.set(name, partialValuesMap);\n }\n matcher = this._addPartial(partialValuesMap, value);\n }\n }\n }\n }\n\n private _addTerminal(\n map: Map<string, SelectorContext<T>[]>, name: string, selectable: SelectorContext<T>) {\n let terminalList = map.get(name);\n if (!terminalList) {\n terminalList = [];\n map.set(name, terminalList);\n }\n terminalList.push(selectable);\n }\n\n private _addPartial(map: Map<string, SelectorMatcher<T>>, name: string): SelectorMatcher<T> {\n let matcher = map.get(name);\n if (!matcher) {\n matcher = new SelectorMatcher<T>();\n map.set(name, matcher);\n }\n return matcher;\n }\n\n /**\n * Find the objects that have been added via `addSelectable`\n * whose css selector is contained in the given css selector.\n * @param cssSelector A css selector\n * @param matchedCallback This callback will be called with the object handed into `addSelectable`\n * @return boolean true if a match was found\n */\n match(cssSelector: CssSelector, matchedCallback: ((c: CssSelector, a: T) => void)|null): boolean {\n let result = false;\n const element = cssSelector.element!;\n const classNames = cssSelector.classNames;\n const attrs = cssSelector.attrs;\n\n for (let i = 0; i < this._listContexts.length; i++) {\n this._listContexts[i].alreadyMatched = false;\n }\n\n result = this._matchTerminal(this._elementMap, element, cssSelector, matchedCallback) || result;\n result = this._matchPartial(this._elementPartialMap, element, cssSelector, matchedCallback) ||\n result;\n\n if (classNames) {\n for (let i = 0; i < classNames.length; i++) {\n const className = classNames[i];\n result =\n this._matchTerminal(this._classMap, className, cssSelector, matchedCallback) || result;\n result =\n this._matchPartial(this._classPartialMap, className, cssSelector, matchedCallback) ||\n result;\n }\n }\n\n if (attrs) {\n for (let i = 0; i < attrs.length; i += 2) {\n const name = attrs[i];\n const value = attrs[i + 1];\n\n const terminalValuesMap = this._attrValueMap.get(name)!;\n if (value) {\n result =\n this._matchTerminal(terminalValuesMap, '', cssSelector, matchedCallback) || result;\n }\n result =\n this._matchTerminal(terminalValuesMap, value, cssSelector, matchedCallback) || result;\n\n const partialValuesMap = this._attrValuePartialMap.get(name)!;\n if (value) {\n result = this._matchPartial(partialValuesMap, '', cssSelector, matchedCallback) || result;\n }\n result =\n this._matchPartial(partialValuesMap, value, cssSelector, matchedCallback) || result;\n }\n }\n return result;\n }\n\n /** @internal */\n _matchTerminal(\n map: Map<string, SelectorContext<T>[]>, name: string, cssSelector: CssSelector,\n matchedCallback: ((c: CssSelector, a: any) => void)|null): boolean {\n if (!map || typeof name !== 'string') {\n return false;\n }\n\n let selectables: SelectorContext<T>[] = map.get(name) || [];\n const starSelectables: SelectorContext<T>[] = map.get('*')!;\n if (starSelectables) {\n selectables = selectables.concat(starSelectables);\n }\n if (selectables.length === 0) {\n return false;\n }\n let selectable: SelectorContext<T>;\n let result = false;\n for (let i = 0; i < selectables.length; i++) {\n selectable = selectables[i];\n result = selectable.finalize(cssSelector, matchedCallback) || result;\n }\n return result;\n }\n\n /** @internal */\n _matchPartial(\n map: Map<string, SelectorMatcher<T>>, name: string, cssSelector: CssSelector,\n matchedCallback: ((c: CssSelector, a: any) => void)|null): boolean {\n if (!map || typeof name !== 'string') {\n return false;\n }\n\n const nestedSelector = map.get(name);\n if (!nestedSelector) {\n return false;\n }\n // TODO(perf): get rid of recursion and measure again\n // TODO(perf): don't pass the whole selector into the recursion,\n // but only the not processed parts\n return nestedSelector.match(cssSelector, matchedCallback);\n }\n}\n\n\nexport class SelectorListContext {\n alreadyMatched: boolean = false;\n\n constructor(public selectors: CssSelector[]) {}\n}\n\n// Store context to pass back selector and context when a selector is matched\nexport class SelectorContext<T = any> {\n notSelectors: CssSelector[];\n\n constructor(\n public selector: CssSelector, public cbContext: T, public listContext: SelectorListContext) {\n this.notSelectors = selector.notSelectors;\n }\n\n finalize(cssSelector: CssSelector, callback: ((c: CssSelector, a: T) => void)|null): boolean {\n let result = true;\n if (this.notSelectors.length > 0 && (!this.listContext || !this.listContext.alreadyMatched)) {\n const notMatcher = SelectorMatcher.createNotMatcher(this.notSelectors);\n result = !notMatcher.match(cssSelector, null);\n }\n if (result && callback && (!this.listContext || !this.listContext.alreadyMatched)) {\n if (this.listContext) {\n this.listContext.alreadyMatched = true;\n }\n callback(this.selector, this.cbContext);\n }\n return result;\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n// Attention:\n// This file duplicates types and values from @angular/core\n// so that we are able to make @angular/compiler independent of @angular/core.\n// This is important to prevent a build cycle, as @angular/core needs to\n// be compiled with the compiler.\n\nimport {CssSelector} from './selector';\n\n// Stores the default value of `emitDistinctChangesOnly` when the `emitDistinctChangesOnly` is not\n// explicitly set.\nexport const emitDistinctChangesOnlyDefaultValue = true;\n\nexport enum ViewEncapsulation {\n Emulated = 0,\n // Historically the 1 value was for `Native` encapsulation which has been removed as of v11.\n None = 2,\n ShadowDom = 3\n}\n\nexport enum ChangeDetectionStrategy {\n OnPush = 0,\n Default = 1\n}\n\nexport interface Input {\n alias?: string;\n required?: boolean;\n transform?: (value: any) => any;\n // Note: This field is marked as `internal` in `@angular/core`, but in the compiler\n // we rely on it for JIT processing at runtime.\n isSignal: boolean;\n}\n\n/** Flags describing an input for a directive. */\nexport enum InputFlags {\n None = 0,\n SignalBased = 1 << 0,\n HasDecoratorInputTransform = 1 << 1,\n}\n\nexport interface Output {\n alias?: string;\n}\n\nexport interface HostBinding {\n hostPropertyName?: string;\n}\n\nexport interface HostListener {\n eventName?: string;\n args?: string[];\n}\n\nexport interface SchemaMetadata {\n name: string;\n}\n\nexport const CUSTOM_ELEMENTS_SCHEMA: SchemaMetadata = {\n name: 'custom-elements'\n};\n\nexport const NO_ERRORS_SCHEMA: SchemaMetadata = {\n name: 'no-errors-schema'\n};\n\nexport interface Type extends Function {\n new(...args: any[]): any;\n}\nexport const Type = Function;\n\nexport enum SecurityContext {\n NONE = 0,\n HTML = 1,\n STYLE = 2,\n SCRIPT = 3,\n URL = 4,\n RESOURCE_URL = 5,\n}\n\n/**\n * Injection flags for DI.\n */\nexport const enum InjectFlags {\n Default = 0,\n\n /**\n * Specifies that an injector should retrieve a dependency from any injector until reaching the\n * host element of the current component. (Only used with Element Injector)\n */\n Host = 1 << 0,\n /** Don't descend into ancestors of the node requesting injection. */\n Self = 1 << 1,\n /** Skip the node that is requesting injection. */\n SkipSelf = 1 << 2,\n /** Inject `defaultValue` instead if token not found. */\n Optional = 1 << 3,\n /**\n * This token is being injected into a pipe.\n * @internal\n */\n ForPipe = 1 << 4,\n}\n\nexport enum MissingTranslationStrategy {\n Error = 0,\n Warning = 1,\n Ignore = 2,\n}\n\n/**\n * Flags used to generate R3-style CSS Selectors. They are pasted from\n * core/src/render3/projection.ts because they cannot be referenced directly.\n */\nexport const enum SelectorFlags {\n /** Indicates this is the beginning of a new negative selector */\n NOT = 0b0001,\n\n /** Mode for matching attributes */\n ATTRIBUTE = 0b0010,\n\n /** Mode for matching tag names */\n ELEMENT = 0b0100,\n\n /** Mode for matching class names */\n CLASS = 0b1000,\n}\n\n// These are a copy the CSS types from core/src/render3/interfaces/projection.ts\n// They are duplicated here as they cannot be directly referenced from core.\nexport type R3CssSelector = (string|SelectorFlags)[];\nexport type R3CssSelectorList = R3CssSelector[];\n\nfunction parserSelectorToSimpleSelector(selector: CssSelector): R3CssSelector {\n const classes = selector.classNames && selector.classNames.length ?\n [SelectorFlags.CLASS, ...selector.classNames] :\n [];\n const elementName = selector.element && selector.element !== '*' ? selector.element : '';\n return [elementName, ...selector.attrs, ...classes];\n}\n\nfunction parserSelectorToNegativeSelector(selector: CssSelector): R3CssSelector {\n const classes = selector.classNames && selector.classNames.length ?\n [SelectorFlags.CLASS, ...selector.classNames] :\n [];\n\n if (selector.element) {\n return [\n SelectorFlags.NOT | SelectorFlags.ELEMENT, selector.element, ...selector.attrs, ...classes\n ];\n } else if (selector.attrs.length) {\n return [SelectorFlags.NOT | SelectorFlags.ATTRIBUTE, ...selector.attrs, ...classes];\n } else {\n return selector.classNames && selector.classNames.length ?\n [SelectorFlags.NOT | SelectorFlags.CLASS, ...selector.classNames] :\n [];\n }\n}\n\nfunction parserSelectorToR3Selector(selector: CssSelector): R3CssSelector {\n const positive = parserSelectorToSimpleSelector(selector);\n\n const negative: R3CssSelectorList = selector.notSelectors && selector.notSelectors.length ?\n selector.notSelectors.map(notSelector => parserSelectorToNegativeSelector(notSelector)) :\n [];\n\n return positive.concat(...negative);\n}\n\nexport function parseSelectorToR3Selector(selector: string|null): R3CssSelectorList {\n return selector ? CssSelector.parse(selector).map(parserSelectorToR3Selector) : [];\n}\n\n// Pasted from render3/interfaces/definition since it cannot be referenced directly\n/**\n * Flags passed into template functions to determine which blocks (i.e. creation, update)\n * should be executed.\n *\n * Typically, a template runs both the creation block and the update block on initialization and\n * subsequent runs only execute the update block. However, dynamically created views require that\n * the creation block be executed separately from the update block (for backwards compat).\n */\nexport const enum RenderFlags {\n /* Whether to run the creation block (e.g. create elements and directives) */\n Create = 0b01,\n\n /* Whether to run the update block (e.g. refresh bindings) */\n Update = 0b10\n}\n\n// Pasted from render3/interfaces/node.ts\n/**\n * A set of marker values to be used in the attributes arrays. These markers indicate that some\n * items are not regular attributes and the processing should be adapted accordingly.\n */\nexport const enum AttributeMarker {\n /**\n * Marker indicates that the following 3 values in the attributes array are:\n * namespaceUri, attributeName, attributeValue\n * in that order.\n */\n NamespaceURI = 0,\n\n /**\n * Signals class declaration.\n *\n * Each value following `Classes` designates a class name to include on the element.\n * ## Example:\n *\n * Given:\n * ```\n * <div class=\"foo bar baz\">...<d/vi>\n * ```\n *\n * the generated code is:\n * ```\n * var _c1 = [AttributeMarker.Classes, 'foo', 'bar', 'baz'];\n * ```\n */\n Classes = 1,\n\n /**\n * Signals style declaration.\n *\n * Each pair of values following `Styles` designates a style name and value to include on the\n * element.\n * ## Example:\n *\n * Given:\n * ```\n * <div style=\"width:100px; height:200px; color:red\">...</div>\n * ```\n *\n * the generated code is:\n * ```\n * var _c1 = [AttributeMarker.Styles, 'width', '100px', 'height'. '200px', 'color', 'red'];\n * ```\n */\n Styles = 2,\n\n /**\n * Signals that the following attribute names were extracted from input or output bindings.\n *\n * For example, given the following HTML:\n *\n * ```\n * <div moo=\"car\" [foo]=\"exp\" (bar)=\"doSth()\">\n * ```\n *\n * the generated code is:\n *\n * ```\n * var _c1 = ['moo', 'car', AttributeMarker.Bindings, 'foo', 'bar'];\n * ```\n */\n Bindings = 3,\n\n /**\n * Signals that the following attribute names were hoisted from an inline-template declaration.\n *\n * For example, given the following HTML:\n *\n * ```\n * <div *ngFor=\"let value of values; trackBy:trackBy\" dirA [dirB]=\"value\">\n * ```\n *\n * the generated code for the `template()` instruction would include:\n *\n * ```\n * ['dirA', '', AttributeMarker.Bindings, 'dirB', AttributeMarker.Template, 'ngFor', 'ngForOf',\n * 'ngForTrackBy', 'let-value']\n * ```\n *\n * while the generated code for the `element()` instruction inside the template function would\n * include:\n *\n * ```\n * ['dirA', '', AttributeMarker.Bindings, 'dirB']\n * ```\n */\n Template = 4,\n\n /**\n * Signals that the following attribute is `ngProjectAs` and its value is a parsed `CssSelector`.\n *\n * For example, given the following HTML:\n *\n * ```\n * <h1 attr=\"value\" ngProjectAs=\"[title]\">\n * ```\n *\n * the generated code for the `element()` instruction would include:\n *\n * ```\n * ['attr', 'value', AttributeMarker.ProjectAs, ['', 'title', '']]\n * ```\n */\n ProjectAs = 5,\n\n /**\n * Signals that the following attribute will be translated by runtime i18n\n *\n * For example, given the following HTML:\n *\n * ```\n * <div moo=\"car\" foo=\"value\" i18n-foo [bar]=\"binding\" i18n-bar>\n * ```\n *\n * the generated code is:\n *\n * ```\n * var _c1 = ['moo', 'car', AttributeMarker.I18n, 'foo', 'bar'];\n */\n I18n = 6,\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {Byte} from '../util';\n\nimport * as i18n from './i18n_ast';\n\n/**\n * A lazily created TextEncoder instance for converting strings into UTF-8 bytes\n */\nlet textEncoder: TextEncoder|undefined;\n\n/**\n * Return the message id or compute it using the XLIFF1 digest.\n */\nexport function digest(message: i18n.Message): string {\n return message.id || computeDigest(message);\n}\n\n/**\n * Compute the message id using the XLIFF1 digest.\n */\nexport function computeDigest(message: i18n.Message): string {\n return sha1(serializeNodes(message.nodes).join('') + `[${message.meaning}]`);\n}\n\n/**\n * Return the message id or compute it using the XLIFF2/XMB/$localize digest.\n */\nexport function decimalDigest(message: i18n.Message): string {\n return message.id || computeDecimalDigest(message);\n}\n\n/**\n * Compute the message id using the XLIFF2/XMB/$localize digest.\n */\nexport function computeDecimalDigest(message: i18n.Message): string {\n const visitor = new _SerializerIgnoreIcuExpVisitor();\n const parts = message.nodes.map(a => a.visit(visitor, null));\n return computeMsgId(parts.join(''), message.meaning);\n}\n\n/**\n * Serialize the i18n ast to something xml-like in order to generate an UID.\n *\n * The visitor is also used in the i18n parser tests\n *\n * @internal\n */\nclass _SerializerVisitor implements i18n.Visitor {\n visitText(text: i18n.Text, context: any): any {\n return text.value;\n }\n\n visitContainer(container: i18n.Container, context: any): any {\n return `[${container.children.map(child => child.visit(this)).join(', ')}]`;\n }\n\n visitIcu(icu: i18n.Icu, context: any): any {\n const strCases =\n Object.keys(icu.cases).map((k: string) => `${k} {${icu.cases[k].visit(this)}}`);\n return `{${icu.expression}, ${icu.type}, ${strCases.join(', ')}}`;\n }\n\n visitTagPlaceholder(ph: i18n.TagPlaceholder, context: any): any {\n return ph.isVoid ?\n `<ph tag name=\"${ph.startName}\"/>` :\n `<ph tag name=\"${ph.startName}\">${\n ph.children.map(child => child.visit(this)).join(', ')}</ph name=\"${ph.closeName}\">`;\n }\n\n visitPlaceholder(ph: i18n.Placeholder, context: any): any {\n return ph.value ? `<ph name=\"${ph.name}\">${ph.value}</ph>` : `<ph name=\"${ph.name}\"/>`;\n }\n\n visitIcuPlaceholder(ph: i18n.IcuPlaceholder, context?: any): any {\n return `<ph icu name=\"${ph.name}\">${ph.value.visit(this)}</ph>`;\n }\n\n visitBlockPlaceholder(ph: i18n.BlockPlaceholder, context: any): any {\n return `<ph block name=\"${ph.startName}\">${\n ph.children.map(child => child.visit(this)).join(', ')}</ph name=\"${ph.closeName}\">`;\n }\n}\n\nconst serializerVisitor = new _SerializerVisitor();\n\nexport function serializeNodes(nodes: i18n.Node[]): string[] {\n return nodes.map(a => a.visit(serializerVisitor, null));\n}\n\n/**\n * Serialize the i18n ast to something xml-like in order to generate an UID.\n *\n * Ignore the ICU expressions so that message IDs stays identical if only the expression changes.\n *\n * @internal\n */\nclass _SerializerIgnoreIcuExpVisitor extends _SerializerVisitor {\n override visitIcu(icu: i18n.Icu, context: any): any {\n let strCases = Object.keys(icu.cases).map((k: string) => `${k} {${icu.cases[k].visit(this)}}`);\n // Do not take the expression into account\n return `{${icu.type}, ${strCases.join(', ')}}`;\n }\n}\n\n/**\n * Compute the SHA1 of the given string\n *\n * see https://csrc.nist.gov/publications/fips/fips180-4/fips-180-4.pdf\n *\n * WARNING: this function has not been designed not tested with security in mind.\n * DO NOT USE IT IN A SECURITY SENSITIVE CONTEXT.\n */\nexport function sha1(str: string): string {\n textEncoder ??= new TextEncoder();\n const utf8 = [...textEncoder.encode(str)];\n const words32 = bytesToWords32(utf8, Endian.Big);\n const len = utf8.length * 8;\n\n const w = new Uint32Array(80);\n let a = 0x67452301, b = 0xefcdab89, c = 0x98badcfe, d = 0x10325476, e = 0xc3d2e1f0;\n\n words32[len >> 5] |= 0x80 << (24 - len % 32);\n words32[((len + 64 >> 9) << 4) + 15] = len;\n\n for (let i = 0; i < words32.length; i += 16) {\n const h0 = a, h1 = b, h2 = c, h3 = d, h4 = e;\n\n for (let j = 0; j < 80; j++) {\n if (j < 16) {\n w[j] = words32[i + j];\n } else {\n w[j] = rol32(w[j - 3] ^ w[j - 8] ^ w[j - 14] ^ w[j - 16], 1);\n }\n\n const fkVal = fk(j, b, c, d);\n const f = fkVal[0];\n const k = fkVal[1];\n const temp = [rol32(a, 5), f, e, k, w[j]].reduce(add32);\n e = d;\n d = c;\n c = rol32(b, 30);\n b = a;\n a = temp;\n }\n a = add32(a, h0);\n b = add32(b, h1);\n c = add32(c, h2);\n d = add32(d, h3);\n e = add32(e, h4);\n }\n\n // Convert the output parts to a 160-bit hexadecimal string\n return toHexU32(a) + toHexU32(b) + toHexU32(c) + toHexU32(d) + toHexU32(e);\n}\n\n/**\n * Convert and format a number as a string representing a 32-bit unsigned hexadecimal number.\n * @param value The value to format as a string.\n * @returns A hexadecimal string representing the value.\n */\nfunction toHexU32(value: number): string {\n // unsigned right shift of zero ensures an unsigned 32-bit number\n return (value >>> 0).toString(16).padStart(8, '0');\n}\n\nfunction fk(index: number, b: number, c: number, d: number): [number, number] {\n if (index < 20) {\n return [(b & c) | (~b & d), 0x5a827999];\n }\n\n if (index < 40) {\n return [b ^ c ^ d, 0x6ed9eba1];\n }\n\n if (index < 60) {\n return [(b & c) | (b & d) | (c & d), 0x8f1bbcdc];\n }\n\n return [b ^ c ^ d, 0xca62c1d6];\n}\n\n/**\n * Compute the fingerprint of the given string\n *\n * The output is 64 bit number encoded as a decimal string\n *\n * based on:\n * https://github.com/google/closure-compiler/blob/master/src/com/google/javascript/jscomp/GoogleJsMessageIdGenerator.java\n */\nexport function fingerprint(str: string): bigint {\n textEncoder ??= new TextEncoder();\n const utf8 = textEncoder.encode(str);\n const view = new DataView(utf8.buffer, utf8.byteOffset, utf8.byteLength);\n\n let hi = hash32(view, utf8.length, 0);\n let lo = hash32(view, utf8.length, 102072);\n\n if (hi == 0 && (lo == 0 || lo == 1)) {\n hi = hi ^ 0x130f9bef;\n lo = lo ^ -0x6b5f56d8;\n }\n\n return (BigInt.asUintN(32, BigInt(hi)) << BigInt(32)) | BigInt.asUintN(32, BigInt(lo));\n}\n\nexport function computeMsgId(msg: string, meaning: string = ''): string {\n let msgFingerprint = fingerprint(msg);\n\n if (meaning) {\n // Rotate the 64-bit message fingerprint one bit to the left and then add the meaning\n // fingerprint.\n msgFingerprint = BigInt.asUintN(64, msgFingerprint << BigInt(1)) |\n ((msgFingerprint >> BigInt(63)) & BigInt(1));\n msgFingerprint += fingerprint(meaning);\n }\n\n return BigInt.asUintN(63, msgFingerprint).toString();\n}\n\nfunction hash32(view: DataView, length: number, c: number): number {\n let a = 0x9e3779b9, b = 0x9e3779b9;\n let index = 0;\n\n const end = length - 12;\n for (; index <= end; index += 12) {\n a += view.getUint32(index, true);\n b += view.getUint32(index + 4, true);\n c += view.getUint32(index + 8, true);\n const res = mix(a, b, c);\n a = res[0], b = res[1], c = res[2];\n }\n\n const remainder = length - index;\n\n // the first byte of c is reserved for the length\n c += length;\n\n if (remainder >= 4) {\n a += view.getUint32(index, true);\n index += 4;\n\n if (remainder >= 8) {\n b += view.getUint32(index, true);\n index += 4;\n\n // Partial 32-bit word for c\n if (remainder >= 9) {\n c += view.getUint8(index++) << 8;\n }\n if (remainder >= 10) {\n c += view.getUint8(index++) << 16;\n }\n if (remainder === 11) {\n c += view.getUint8(index++) << 24;\n }\n } else {\n // Partial 32-bit word for b\n if (remainder >= 5) {\n b += view.getUint8(index++);\n }\n if (remainder >= 6) {\n b += view.getUint8(index++) << 8;\n }\n if (remainder === 7) {\n b += view.getUint8(index++) << 16;\n }\n }\n } else {\n // Partial 32-bit word for a\n if (remainder >= 1) {\n a += view.getUint8(index++);\n }\n if (remainder >= 2) {\n a += view.getUint8(index++) << 8;\n }\n if (remainder === 3) {\n a += view.getUint8(index++) << 16;\n }\n }\n\n return mix(a, b, c)[2];\n}\n\n// clang-format off\nfunction mix(a: number, b: number, c: number): [number, number, number] {\n a -= b; a -= c; a ^= c >>> 13;\n b -= c; b -= a; b ^= a << 8;\n c -= a; c -= b; c ^= b >>> 13;\n a -= b; a -= c; a ^= c >>> 12;\n b -= c; b -= a; b ^= a << 16;\n c -= a; c -= b; c ^= b >>> 5;\n a -= b; a -= c; a ^= c >>> 3;\n b -= c; b -= a; b ^= a << 10;\n c -= a; c -= b; c ^= b >>> 15;\n return [a, b, c];\n}\n// clang-format on\n\n// Utils\n\nenum Endian {\n Little,\n Big,\n}\n\nfunction add32(a: number, b: number): number {\n return add32to64(a, b)[1];\n}\n\nfunction add32to64(a: number, b: number): [number, number] {\n const low = (a & 0xffff) + (b & 0xffff);\n const high = (a >>> 16) + (b >>> 16) + (low >>> 16);\n return [high >>> 16, (high << 16) | (low & 0xffff)];\n}\n\n// Rotate a 32b number left `count` position\nfunction rol32(a: number, count: number): number {\n return (a << count) | (a >>> (32 - count));\n}\n\nfunction bytesToWords32(bytes: Byte[], endian: Endian): number[] {\n const size = (bytes.length + 3) >>> 2;\n const words32 = [];\n\n for (let i = 0; i < size; i++) {\n words32[i] = wordAt(bytes, i * 4, endian);\n }\n\n return words32;\n}\n\nfunction byteAt(bytes: Byte[], index: number): Byte {\n return index >= bytes.length ? 0 : bytes[index];\n}\n\nfunction wordAt(bytes: Byte[], index: number, endian: Endian): number {\n let word = 0;\n if (endian === Endian.Big) {\n for (let i = 0; i < 4; i++) {\n word += byteAt(bytes, index + i) << (24 - 8 * i);\n }\n } else {\n for (let i = 0; i < 4; i++) {\n word += byteAt(bytes, index + i) << 8 * i;\n }\n }\n return word;\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {computeMsgId} from '../i18n/digest';\nimport {Message} from '../i18n/i18n_ast';\nimport {ParseSourceSpan} from '../parse_util';\nimport {I18nMeta} from '../render3/view/i18n/meta';\n\n//// Types\nexport enum TypeModifier {\n None = 0,\n Const = 1 << 0,\n}\n\nexport abstract class Type {\n constructor(public modifiers: TypeModifier = TypeModifier.None) {}\n abstract visitType(visitor: TypeVisitor, context: any): any;\n\n hasModifier(modifier: TypeModifier): boolean {\n return (this.modifiers & modifier) !== 0;\n }\n}\n\nexport enum BuiltinTypeName {\n Dynamic,\n Bool,\n String,\n Int,\n Number,\n Function,\n Inferred,\n None,\n}\n\nexport class BuiltinType extends Type {\n constructor(public name: BuiltinTypeName, modifiers?: TypeModifier) {\n super(modifiers);\n }\n override visitType(visitor: TypeVisitor, context: any): any {\n return visitor.visitBuiltinType(this, context);\n }\n}\n\nexport class ExpressionType extends Type {\n constructor(\n public value: Expression, modifiers?: TypeModifier, public typeParams: Type[]|null = null) {\n super(modifiers);\n }\n override visitType(visitor: TypeVisitor, context: any): any {\n return visitor.visitExpressionType(this, context);\n }\n}\n\n\nexport class ArrayType extends Type {\n constructor(public of: Type, modifiers?: TypeModifier) {\n super(modifiers);\n }\n override visitType(visitor: TypeVisitor, context: any): any {\n return visitor.visitArrayType(this, context);\n }\n}\n\n\nexport class MapType extends Type {\n public valueType: Type|null;\n constructor(valueType: Type|null|undefined, modifiers?: TypeModifier) {\n super(modifiers);\n this.valueType = valueType || null;\n }\n override visitType(visitor: TypeVisitor, context: any): any {\n return visitor.visitMapType(this, context);\n }\n}\n\n\nexport class TransplantedType<T> extends Type {\n constructor(readonly type: T, modifiers?: TypeModifier) {\n super(modifiers);\n }\n override visitType(visitor: TypeVisitor, context: any): any {\n return visitor.visitTransplantedType(this, context);\n }\n}\n\n\nexport const DYNAMIC_TYPE = new BuiltinType(BuiltinTypeName.Dynamic);\nexport const INFERRED_TYPE = new BuiltinType(BuiltinTypeName.Inferred);\nexport const BOOL_TYPE = new BuiltinType(BuiltinTypeName.Bool);\nexport const INT_TYPE = new BuiltinType(BuiltinTypeName.Int);\nexport const NUMBER_TYPE = new BuiltinType(BuiltinTypeName.Number);\nexport const STRING_TYPE = new BuiltinType(BuiltinTypeName.String);\nexport const FUNCTION_TYPE = new BuiltinType(BuiltinTypeName.Function);\nexport const NONE_TYPE = new BuiltinType(BuiltinTypeName.None);\n\nexport interface TypeVisitor {\n visitBuiltinType(type: BuiltinType, context: any): any;\n visitExpressionType(type: ExpressionType, context: any): any;\n visitArrayType(type: ArrayType, context: any): any;\n visitMapType(type: MapType, context: any): any;\n visitTransplantedType(type: TransplantedType<unknown>, context: any): any;\n}\n\n///// Expressions\n\nexport enum UnaryOperator {\n Minus,\n Plus,\n}\n\nexport enum BinaryOperator {\n Equals,\n NotEquals,\n Identical,\n NotIdentical,\n Minus,\n Plus,\n Divide,\n Multiply,\n Modulo,\n And,\n Or,\n BitwiseOr,\n BitwiseAnd,\n Lower,\n LowerEquals,\n Bigger,\n BiggerEquals,\n NullishCoalesce,\n}\n\nexport function nullSafeIsEquivalent<T extends {isEquivalent(other: T): boolean}>(\n base: T|null, other: T|null) {\n if (base == null || other == null) {\n return base == other;\n }\n return base.isEquivalent(other);\n}\n\nfunction areAllEquivalentPredicate<T>(\n base: T[], other: T[], equivalentPredicate: (baseElement: T, otherElement: T) => boolean) {\n const len = base.length;\n if (len !== other.length) {\n return false;\n }\n for (let i = 0; i < len; i++) {\n if (!equivalentPredicate(base[i], other[i])) {\n return false;\n }\n }\n return true;\n}\n\nexport function areAllEquivalent<T extends {isEquivalent(other: T): boolean}>(\n base: T[], other: T[]) {\n return areAllEquivalentPredicate(\n base, other, (baseElement: T, otherElement: T) => baseElement.isEquivalent(otherElement));\n}\n\nexport abstract class Expression {\n public type: Type|null;\n public sourceSpan: ParseSourceSpan|null;\n\n constructor(type: Type|null|undefined, sourceSpan?: ParseSourceSpan|null) {\n this.type = type || null;\n this.sourceSpan = sourceSpan || null;\n }\n\n abstract visitExpression(visitor: ExpressionVisitor, context: any): any;\n\n /**\n * Calculates whether this expression produces the same value as the given expression.\n * Note: We don't check Types nor ParseSourceSpans nor function arguments.\n */\n abstract isEquivalent(e: Expression): boolean;\n\n /**\n * Return true if the expression is constant.\n */\n abstract isConstant(): boolean;\n\n abstract clone(): Expression;\n\n prop(name: string, sourceSpan?: ParseSourceSpan|null): ReadPropExpr {\n return new ReadPropExpr(this, name, null, sourceSpan);\n }\n\n key(index: Expression, type?: Type|null, sourceSpan?: ParseSourceSpan|null): ReadKeyExpr {\n return new ReadKeyExpr(this, index, type, sourceSpan);\n }\n\n callFn(params: Expression[], sourceSpan?: ParseSourceSpan|null, pure?: boolean):\n InvokeFunctionExpr {\n return new InvokeFunctionExpr(this, params, null, sourceSpan, pure);\n }\n\n instantiate(params: Expression[], type?: Type|null, sourceSpan?: ParseSourceSpan|null):\n InstantiateExpr {\n return new InstantiateExpr(this, params, type, sourceSpan);\n }\n\n conditional(\n trueCase: Expression, falseCase: Expression|null = null,\n sourceSpan?: ParseSourceSpan|null): ConditionalExpr {\n return new ConditionalExpr(this, trueCase, falseCase, null, sourceSpan);\n }\n\n equals(rhs: Expression, sourceSpan?: ParseSourceSpan|null): BinaryOperatorExpr {\n return new BinaryOperatorExpr(BinaryOperator.Equals, this, rhs, null, sourceSpan);\n }\n notEquals(rhs: Expression, sourceSpan?: ParseSourceSpan|null): BinaryOperatorExpr {\n return new BinaryOperatorExpr(BinaryOperator.NotEquals, this, rhs, null, sourceSpan);\n }\n identical(rhs: Expression, sourceSpan?: ParseSourceSpan|null): BinaryOperatorExpr {\n return new BinaryOperatorExpr(BinaryOperator.Identical, this, rhs, null, sourceSpan);\n }\n notIdentical(rhs: Expression, sourceSpan?: ParseSourceSpan|null): BinaryOperatorExpr {\n return new BinaryOperatorExpr(BinaryOperator.NotIdentical, this, rhs, null, sourceSpan);\n }\n minus(rhs: Expression, sourceSpan?: ParseSourceSpan|null): BinaryOperatorExpr {\n return new BinaryOperatorExpr(BinaryOperator.Minus, this, rhs, null, sourceSpan);\n }\n plus(rhs: Expression, sourceSpan?: ParseSourceSpan|null): BinaryOperatorExpr {\n return new BinaryOperatorExpr(BinaryOperator.Plus, this, rhs, null, sourceSpan);\n }\n divide(rhs: Expression, sourceSpan?: ParseSourceSpan|null): BinaryOperatorExpr {\n return new BinaryOperatorExpr(BinaryOperator.Divide, this, rhs, null, sourceSpan);\n }\n multiply(rhs: Expression, sourceSpan?: ParseSourceSpan|null): BinaryOperatorExpr {\n return new BinaryOperatorExpr(BinaryOperator.Multiply, this, rhs, null, sourceSpan);\n }\n modulo(rhs: Expression, sourceSpan?: ParseSourceSpan|null): BinaryOperatorExpr {\n return new BinaryOperatorExpr(BinaryOperator.Modulo, this, rhs, null, sourceSpan);\n }\n and(rhs: Expression, sourceSpan?: ParseSourceSpan|null): BinaryOperatorExpr {\n return new BinaryOperatorExpr(BinaryOperator.And, this, rhs, null, sourceSpan);\n }\n bitwiseOr(rhs: Expression, sourceSpan?: ParseSourceSpan|null, parens: boolean = true):\n BinaryOperatorExpr {\n return new BinaryOperatorExpr(BinaryOperator.BitwiseOr, this, rhs, null, sourceSpan, parens);\n }\n bitwiseAnd(rhs: Expression, sourceSpan?: ParseSourceSpan|null, parens: boolean = true):\n BinaryOperatorExpr {\n return new BinaryOperatorExpr(BinaryOperator.BitwiseAnd, this, rhs, null, sourceSpan, parens);\n }\n or(rhs: Expression, sourceSpan?: ParseSourceSpan|null): BinaryOperatorExpr {\n return new BinaryOperatorExpr(BinaryOperator.Or, this, rhs, null, sourceSpan);\n }\n lower(rhs: Expression, sourceSpan?: ParseSourceSpan|null): BinaryOperatorExpr {\n return new BinaryOperatorExpr(BinaryOperator.Lower, this, rhs, null, sourceSpan);\n }\n lowerEquals(rhs: Expression, sourceSpan?: ParseSourceSpan|null): BinaryOperatorExpr {\n return new BinaryOperatorExpr(BinaryOperator.LowerEquals, this, rhs, null, sourceSpan);\n }\n bigger(rhs: Expression, sourceSpan?: ParseSourceSpan|null): BinaryOperatorExpr {\n return new BinaryOperatorExpr(BinaryOperator.Bigger, this, rhs, null, sourceSpan);\n }\n biggerEquals(rhs: Expression, sourceSpan?: ParseSourceSpan|null): BinaryOperatorExpr {\n return new BinaryOperatorExpr(BinaryOperator.BiggerEquals, this, rhs, null, sourceSpan);\n }\n isBlank(sourceSpan?: ParseSourceSpan|null): Expression {\n // Note: We use equals by purpose here to compare to null and undefined in JS.\n // We use the typed null to allow strictNullChecks to narrow types.\n return this.equals(TYPED_NULL_EXPR, sourceSpan);\n }\n nullishCoalesce(rhs: Expression, sourceSpan?: ParseSourceSpan|null): BinaryOperatorExpr {\n return new BinaryOperatorExpr(BinaryOperator.NullishCoalesce, this, rhs, null, sourceSpan);\n }\n\n toStmt(): Statement {\n return new ExpressionStatement(this, null);\n }\n}\n\nexport class ReadVarExpr extends Expression {\n constructor(public name: string, type?: Type|null, sourceSpan?: ParseSourceSpan|null) {\n super(type, sourceSpan);\n }\n\n override isEquivalent(e: Expression): boolean {\n return e instanceof ReadVarExpr && this.name === e.name;\n }\n\n override isConstant() {\n return false;\n }\n\n override visitExpression(visitor: ExpressionVisitor, context: any): any {\n return visitor.visitReadVarExpr(this, context);\n }\n\n override clone(): ReadVarExpr {\n return new ReadVarExpr(this.name, this.type, this.sourceSpan);\n }\n\n set(value: Expression): WriteVarExpr {\n return new WriteVarExpr(this.name, value, null, this.sourceSpan);\n }\n}\n\nexport class TypeofExpr extends Expression {\n constructor(public expr: Expression, type?: Type|null, sourceSpan?: ParseSourceSpan|null) {\n super(type, sourceSpan);\n }\n\n override visitExpression(visitor: ExpressionVisitor, context: any) {\n return visitor.visitTypeofExpr(this, context);\n }\n\n override isEquivalent(e: Expression): boolean {\n return e instanceof TypeofExpr && e.expr.isEquivalent(this.expr);\n }\n\n override isConstant(): boolean {\n return this.expr.isConstant();\n }\n\n override clone(): TypeofExpr {\n return new TypeofExpr(this.expr.clone());\n }\n}\n\nexport class WrappedNodeExpr<T> extends Expression {\n constructor(public node: T, type?: Type|null, sourceSpan?: ParseSourceSpan|null) {\n super(type, sourceSpan);\n }\n\n override isEquivalent(e: Expression): boolean {\n return e instanceof WrappedNodeExpr && this.node === e.node;\n }\n\n override isConstant() {\n return false;\n }\n\n override visitExpression(visitor: ExpressionVisitor, context: any): any {\n return visitor.visitWrappedNodeExpr(this, context);\n }\n\n override clone(): WrappedNodeExpr<T> {\n return new WrappedNodeExpr(this.node, this.type, this.sourceSpan);\n }\n}\n\nexport class WriteVarExpr extends Expression {\n public value: Expression;\n constructor(\n public name: string, value: Expression, type?: Type|null, sourceSpan?: ParseSourceSpan|null) {\n super(type || value.type, sourceSpan);\n this.value = value;\n }\n\n override isEquivalent(e: Expression): boolean {\n return e instanceof WriteVarExpr && this.name === e.name && this.value.isEquivalent(e.value);\n }\n\n override isConstant() {\n return false;\n }\n\n override visitExpression(visitor: ExpressionVisitor, context: any): any {\n return visitor.visitWriteVarExpr(this, context);\n }\n\n override clone(): WriteVarExpr {\n return new WriteVarExpr(this.name, this.value.clone(), this.type, this.sourceSpan);\n }\n\n toDeclStmt(type?: Type|null, modifiers?: StmtModifier): DeclareVarStmt {\n return new DeclareVarStmt(this.name, this.value, type, modifiers, this.sourceSpan);\n }\n\n toConstDecl(): DeclareVarStmt {\n return this.toDeclStmt(INFERRED_TYPE, StmtModifier.Final);\n }\n}\n\n\nexport class WriteKeyExpr extends Expression {\n public value: Expression;\n constructor(\n public receiver: Expression, public index: Expression, value: Expression, type?: Type|null,\n sourceSpan?: ParseSourceSpan|null) {\n super(type || value.type, sourceSpan);\n this.value = value;\n }\n\n override isEquivalent(e: Expression): boolean {\n return e instanceof WriteKeyExpr && this.receiver.isEquivalent(e.receiver) &&\n this.index.isEquivalent(e.index) && this.value.isEquivalent(e.value);\n }\n\n override isConstant() {\n return false;\n }\n\n override visitExpression(visitor: ExpressionVisitor, context: any): any {\n return visitor.visitWriteKeyExpr(this, context);\n }\n\n override clone(): WriteKeyExpr {\n return new WriteKeyExpr(\n this.receiver.clone(), this.index.clone(), this.value.clone(), this.type, this.sourceSpan);\n }\n}\n\n\nexport class WritePropExpr extends Expression {\n public value: Expression;\n constructor(\n public receiver: Expression, public name: string, value: Expression, type?: Type|null,\n sourceSpan?: ParseSourceSpan|null) {\n super(type || value.type, sourceSpan);\n this.value = value;\n }\n\n override isEquivalent(e: Expression): boolean {\n return e instanceof WritePropExpr && this.receiver.isEquivalent(e.receiver) &&\n this.name === e.name && this.value.isEquivalent(e.value);\n }\n\n override isConstant() {\n return false;\n }\n\n override visitExpression(visitor: ExpressionVisitor, context: any): any {\n return visitor.visitWritePropExpr(this, context);\n }\n\n override clone(): WritePropExpr {\n return new WritePropExpr(\n this.receiver.clone(), this.name, this.value.clone(), this.type, this.sourceSpan);\n }\n}\n\nexport class InvokeFunctionExpr extends Expression {\n constructor(\n public fn: Expression, public args: Expression[], type?: Type|null,\n sourceSpan?: ParseSourceSpan|null, public pure = false) {\n super(type, sourceSpan);\n }\n\n // An alias for fn, which allows other logic to handle calls and property reads together.\n get receiver(): Expression {\n return this.fn;\n }\n\n override isEquivalent(e: Expression): boolean {\n return e instanceof InvokeFunctionExpr && this.fn.isEquivalent(e.fn) &&\n areAllEquivalent(this.args, e.args) && this.pure === e.pure;\n }\n\n override isConstant() {\n return false;\n }\n\n override visitExpression(visitor: ExpressionVisitor, context: any): any {\n return visitor.visitInvokeFunctionExpr(this, context);\n }\n\n override clone(): InvokeFunctionExpr {\n return new InvokeFunctionExpr(\n this.fn.clone(), this.args.map(arg => arg.clone()), this.type, this.sourceSpan, this.pure);\n }\n}\n\n\nexport class TaggedTemplateExpr extends Expression {\n constructor(\n public tag: Expression, public template: TemplateLiteral, type?: Type|null,\n sourceSpan?: ParseSourceSpan|null) {\n super(type, sourceSpan);\n }\n\n override isEquivalent(e: Expression): boolean {\n return e instanceof TaggedTemplateExpr && this.tag.isEquivalent(e.tag) &&\n areAllEquivalentPredicate(\n this.template.elements, e.template.elements, (a, b) => a.text === b.text) &&\n areAllEquivalent(this.template.expressions, e.template.expressions);\n }\n\n override isConstant() {\n return false;\n }\n\n override visitExpression(visitor: ExpressionVisitor, context: any): any {\n return visitor.visitTaggedTemplateExpr(this, context);\n }\n\n override clone(): TaggedTemplateExpr {\n return new TaggedTemplateExpr(\n this.tag.clone(), this.template.clone(), this.type, this.sourceSpan);\n }\n}\n\n\nexport class InstantiateExpr extends Expression {\n constructor(\n public classExpr: Expression, public args: Expression[], type?: Type|null,\n sourceSpan?: ParseSourceSpan|null) {\n super(type, sourceSpan);\n }\n\n override isEquivalent(e: Expression): boolean {\n return e instanceof InstantiateExpr && this.classExpr.isEquivalent(e.classExpr) &&\n areAllEquivalent(this.args, e.args);\n }\n\n override isConstant() {\n return false;\n }\n\n override visitExpression(visitor: ExpressionVisitor, context: any): any {\n return visitor.visitInstantiateExpr(this, context);\n }\n\n override clone(): InstantiateExpr {\n return new InstantiateExpr(\n this.classExpr.clone(), this.args.map(arg => arg.clone()), this.type, this.sourceSpan);\n }\n}\n\n\nexport class LiteralExpr extends Expression {\n constructor(\n public value: number|string|boolean|null|undefined, type?: Type|null,\n sourceSpan?: ParseSourceSpan|null) {\n super(type, sourceSpan);\n }\n\n override isEquivalent(e: Expression): boolean {\n return e instanceof LiteralExpr && this.value === e.value;\n }\n\n override isConstant() {\n return true;\n }\n\n override visitExpression(visitor: ExpressionVisitor, context: any): any {\n return visitor.visitLiteralExpr(this, context);\n }\n\n override clone(): LiteralExpr {\n return new LiteralExpr(this.value, this.type, this.sourceSpan);\n }\n}\n\nexport class TemplateLiteral {\n constructor(public elements: TemplateLiteralElement[], public expressions: Expression[]) {}\n\n clone(): TemplateLiteral {\n return new TemplateLiteral(\n this.elements.map(el => el.clone()), this.expressions.map(expr => expr.clone()));\n }\n}\nexport class TemplateLiteralElement {\n rawText: string;\n constructor(public text: string, public sourceSpan?: ParseSourceSpan, rawText?: string) {\n // If `rawText` is not provided, try to extract the raw string from its\n // associated `sourceSpan`. If that is also not available, \"fake\" the raw\n // string instead by escaping the following control sequences:\n // - \"\\\" would otherwise indicate that the next character is a control character.\n // - \"`\" and \"${\" are template string control sequences that would otherwise prematurely\n // indicate the end of the template literal element.\n this.rawText =\n rawText ?? sourceSpan?.toString() ?? escapeForTemplateLiteral(escapeSlashes(text));\n }\n\n clone(): TemplateLiteralElement {\n return new TemplateLiteralElement(this.text, this.sourceSpan, this.rawText);\n }\n}\n\nexport class LiteralPiece {\n constructor(public text: string, public sourceSpan: ParseSourceSpan) {}\n}\nexport class PlaceholderPiece {\n /**\n * Create a new instance of a `PlaceholderPiece`.\n *\n * @param text the name of this placeholder (e.g. `PH_1`).\n * @param sourceSpan the location of this placeholder in its localized message the source code.\n * @param associatedMessage reference to another message that this placeholder is associated with.\n * The `associatedMessage` is mainly used to provide a relationship to an ICU message that has\n * been extracted out from the message containing the placeholder.\n */\n constructor(\n public text: string, public sourceSpan: ParseSourceSpan, public associatedMessage?: Message) {\n }\n}\n\nexport type MessagePiece = LiteralPiece|PlaceholderPiece;\n\nconst MEANING_SEPARATOR = '|';\nconst ID_SEPARATOR = '@@';\nconst LEGACY_ID_INDICATOR = '␟';\n\nexport class LocalizedString extends Expression {\n constructor(\n readonly metaBlock: I18nMeta, readonly messageParts: LiteralPiece[],\n readonly placeHolderNames: PlaceholderPiece[], readonly expressions: Expression[],\n sourceSpan?: ParseSourceSpan|null) {\n super(STRING_TYPE, sourceSpan);\n }\n\n override isEquivalent(e: Expression): boolean {\n // return e instanceof LocalizedString && this.message === e.message;\n return false;\n }\n\n override isConstant() {\n return false;\n }\n\n override visitExpression(visitor: ExpressionVisitor, context: any): any {\n return visitor.visitLocalizedString(this, context);\n }\n\n override clone(): LocalizedString {\n return new LocalizedString(\n this.metaBlock, this.messageParts, this.placeHolderNames,\n this.expressions.map(expr => expr.clone()), this.sourceSpan);\n }\n\n /**\n * Serialize the given `meta` and `messagePart` into \"cooked\" and \"raw\" strings that can be used\n * in a `$localize` tagged string. The format of the metadata is the same as that parsed by\n * `parseI18nMeta()`.\n *\n * @param meta The metadata to serialize\n * @param messagePart The first part of the tagged string\n */\n serializeI18nHead(): CookedRawString {\n let metaBlock = this.metaBlock.description || '';\n if (this.metaBlock.meaning) {\n metaBlock = `${this.metaBlock.meaning}${MEANING_SEPARATOR}${metaBlock}`;\n }\n if (this.metaBlock.customId) {\n metaBlock = `${metaBlock}${ID_SEPARATOR}${this.metaBlock.customId}`;\n }\n if (this.metaBlock.legacyIds) {\n this.metaBlock.legacyIds.forEach(legacyId => {\n metaBlock = `${metaBlock}${LEGACY_ID_INDICATOR}${legacyId}`;\n });\n }\n return createCookedRawString(\n metaBlock, this.messageParts[0].text, this.getMessagePartSourceSpan(0));\n }\n\n getMessagePartSourceSpan(i: number): ParseSourceSpan|null {\n return this.messageParts[i]?.sourceSpan ?? this.sourceSpan;\n }\n\n getPlaceholderSourceSpan(i: number): ParseSourceSpan {\n return this.placeHolderNames[i]?.sourceSpan ?? this.expressions[i]?.sourceSpan ??\n this.sourceSpan;\n }\n\n /**\n * Serialize the given `placeholderName` and `messagePart` into \"cooked\" and \"raw\" strings that\n * can be used in a `$localize` tagged string.\n *\n * The format is `:<placeholder-name>[@@<associated-id>]:`.\n *\n * The `associated-id` is the message id of the (usually an ICU) message to which this placeholder\n * refers.\n *\n * @param partIndex The index of the message part to serialize.\n */\n serializeI18nTemplatePart(partIndex: number): CookedRawString {\n const placeholder = this.placeHolderNames[partIndex - 1];\n const messagePart = this.messageParts[partIndex];\n let metaBlock = placeholder.text;\n if (placeholder.associatedMessage?.legacyIds.length === 0) {\n metaBlock += `${ID_SEPARATOR}${\n computeMsgId(\n placeholder.associatedMessage.messageString, placeholder.associatedMessage.meaning)}`;\n }\n return createCookedRawString(\n metaBlock, messagePart.text, this.getMessagePartSourceSpan(partIndex));\n }\n}\n\n/**\n * A structure to hold the cooked and raw strings of a template literal element, along with its\n * source-span range.\n */\nexport interface CookedRawString {\n cooked: string;\n raw: string;\n range: ParseSourceSpan|null;\n}\n\nconst escapeSlashes = (str: string): string => str.replace(/\\\\/g, '\\\\\\\\');\nconst escapeStartingColon = (str: string): string => str.replace(/^:/, '\\\\:');\nconst escapeColons = (str: string): string => str.replace(/:/g, '\\\\:');\nconst escapeForTemplateLiteral = (str: string): string =>\n str.replace(/`/g, '\\\\`').replace(/\\${/g, '$\\\\{');\n\n/**\n * Creates a `{cooked, raw}` object from the `metaBlock` and `messagePart`.\n *\n * The `raw` text must have various character sequences escaped:\n * * \"\\\" would otherwise indicate that the next character is a control character.\n * * \"`\" and \"${\" are template string control sequences that would otherwise prematurely indicate\n * the end of a message part.\n * * \":\" inside a metablock would prematurely indicate the end of the metablock.\n * * \":\" at the start of a messagePart with no metablock would erroneously indicate the start of a\n * metablock.\n *\n * @param metaBlock Any metadata that should be prepended to the string\n * @param messagePart The message part of the string\n */\nfunction createCookedRawString(\n metaBlock: string, messagePart: string, range: ParseSourceSpan|null): CookedRawString {\n if (metaBlock === '') {\n return {\n cooked: messagePart,\n raw: escapeForTemplateLiteral(escapeStartingColon(escapeSlashes(messagePart))),\n range,\n };\n } else {\n return {\n cooked: `:${metaBlock}:${messagePart}`,\n raw: escapeForTemplateLiteral(\n `:${escapeColons(escapeSlashes(metaBlock))}:${escapeSlashes(messagePart)}`),\n range,\n };\n }\n}\n\nexport class ExternalExpr extends Expression {\n constructor(\n public value: ExternalReference, type?: Type|null, public typeParams: Type[]|null = null,\n sourceSpan?: ParseSourceSpan|null) {\n super(type, sourceSpan);\n }\n\n override isEquivalent(e: Expression): boolean {\n return e instanceof ExternalExpr && this.value.name === e.value.name &&\n this.value.moduleName === e.value.moduleName && this.value.runtime === e.value.runtime;\n }\n\n override isConstant() {\n return false;\n }\n\n override visitExpression(visitor: ExpressionVisitor, context: any): any {\n return visitor.visitExternalExpr(this, context);\n }\n\n override clone(): ExternalExpr {\n return new ExternalExpr(this.value, this.type, this.typeParams, this.sourceSpan);\n }\n}\n\nexport class ExternalReference {\n constructor(public moduleName: string|null, public name: string|null, public runtime?: any|null) {\n }\n // Note: no isEquivalent method here as we use this as an interface too.\n}\n\nexport class ConditionalExpr extends Expression {\n public trueCase: Expression;\n\n constructor(\n public condition: Expression, trueCase: Expression, public falseCase: Expression|null = null,\n type?: Type|null, sourceSpan?: ParseSourceSpan|null) {\n super(type || trueCase.type, sourceSpan);\n this.trueCase = trueCase;\n }\n\n override isEquivalent(e: Expression): boolean {\n return e instanceof ConditionalExpr && this.condition.isEquivalent(e.condition) &&\n this.trueCase.isEquivalent(e.trueCase) && nullSafeIsEquivalent(this.falseCase, e.falseCase);\n }\n\n override isConstant() {\n return false;\n }\n\n override visitExpression(visitor: ExpressionVisitor, context: any): any {\n return visitor.visitConditionalExpr(this, context);\n }\n\n override clone(): ConditionalExpr {\n return new ConditionalExpr(\n this.condition.clone(), this.trueCase.clone(), this.falseCase?.clone(), this.type,\n this.sourceSpan);\n }\n}\n\nexport class DynamicImportExpr extends Expression {\n constructor(public url: string, sourceSpan?: ParseSourceSpan|null) {\n super(null, sourceSpan);\n }\n\n override isEquivalent(e: Expression): boolean {\n return e instanceof DynamicImportExpr && this.url === e.url;\n }\n\n override isConstant() {\n return false;\n }\n\n override visitExpression(visitor: ExpressionVisitor, context: any): any {\n return visitor.visitDynamicImportExpr(this, context);\n }\n\n override clone(): DynamicImportExpr {\n return new DynamicImportExpr(this.url, this.sourceSpan);\n }\n}\n\nexport class NotExpr extends Expression {\n constructor(public condition: Expression, sourceSpan?: ParseSourceSpan|null) {\n super(BOOL_TYPE, sourceSpan);\n }\n\n override isEquivalent(e: Expression): boolean {\n return e instanceof NotExpr && this.condition.isEquivalent(e.condition);\n }\n\n override isConstant() {\n return false;\n }\n\n override visitExpression(visitor: ExpressionVisitor, context: any): any {\n return visitor.visitNotExpr(this, context);\n }\n\n override clone(): NotExpr {\n return new NotExpr(this.condition.clone(), this.sourceSpan);\n }\n}\n\nexport class FnParam {\n constructor(public name: string, public type: Type|null = null) {}\n\n isEquivalent(param: FnParam): boolean {\n return this.name === param.name;\n }\n\n clone(): FnParam {\n return new FnParam(this.name, this.type);\n }\n}\n\n\nexport class FunctionExpr extends Expression {\n constructor(\n public params: FnParam[], public statements: Statement[], type?: Type|null,\n sourceSpan?: ParseSourceSpan|null, public name?: string|null) {\n super(type, sourceSpan);\n }\n\n override isEquivalent(e: Expression|Statement): boolean {\n return (e instanceof FunctionExpr || e instanceof DeclareFunctionStmt) &&\n areAllEquivalent(this.params, e.params) && areAllEquivalent(this.statements, e.statements);\n }\n\n override isConstant() {\n return false;\n }\n\n override visitExpression(visitor: ExpressionVisitor, context: any): any {\n return visitor.visitFunctionExpr(this, context);\n }\n\n toDeclStmt(name: string, modifiers?: StmtModifier): DeclareFunctionStmt {\n return new DeclareFunctionStmt(\n name, this.params, this.statements, this.type, modifiers, this.sourceSpan);\n }\n\n override clone(): FunctionExpr {\n // TODO: Should we deep clone statements?\n return new FunctionExpr(\n this.params.map(p => p.clone()), this.statements, this.type, this.sourceSpan, this.name);\n }\n}\n\nexport class ArrowFunctionExpr extends Expression {\n // Note that `body: Expression` represents `() => expr` whereas\n // `body: Statement[]` represents `() => { expr }`.\n\n constructor(\n public params: FnParam[], public body: Expression|Statement[], type?: Type|null,\n sourceSpan?: ParseSourceSpan|null) {\n super(type, sourceSpan);\n }\n\n override isEquivalent(e: Expression): boolean {\n if (!(e instanceof ArrowFunctionExpr) || !areAllEquivalent(this.params, e.params)) {\n return false;\n }\n\n if (this.body instanceof Expression && e.body instanceof Expression) {\n return this.body.isEquivalent(e.body);\n }\n\n if (Array.isArray(this.body) && Array.isArray(e.body)) {\n return areAllEquivalent(this.body, e.body);\n }\n\n return false;\n }\n\n override isConstant(): boolean {\n return false;\n }\n\n override visitExpression(visitor: ExpressionVisitor, context: any) {\n return visitor.visitArrowFunctionExpr(this, context);\n }\n\n override clone(): Expression {\n // TODO: Should we deep clone statements?\n return new ArrowFunctionExpr(\n this.params.map(p => p.clone()), Array.isArray(this.body) ? this.body : this.body.clone(),\n this.type, this.sourceSpan);\n }\n\n toDeclStmt(name: string, modifiers?: StmtModifier): DeclareVarStmt {\n return new DeclareVarStmt(name, this, INFERRED_TYPE, modifiers, this.sourceSpan);\n }\n}\n\n\nexport class UnaryOperatorExpr extends Expression {\n constructor(\n public operator: UnaryOperator, public expr: Expression, type?: Type|null,\n sourceSpan?: ParseSourceSpan|null, public parens: boolean = true) {\n super(type || NUMBER_TYPE, sourceSpan);\n }\n\n override isEquivalent(e: Expression): boolean {\n return e instanceof UnaryOperatorExpr && this.operator === e.operator &&\n this.expr.isEquivalent(e.expr);\n }\n\n override isConstant() {\n return false;\n }\n\n override visitExpression(visitor: ExpressionVisitor, context: any): any {\n return visitor.visitUnaryOperatorExpr(this, context);\n }\n\n override clone(): UnaryOperatorExpr {\n return new UnaryOperatorExpr(\n this.operator, this.expr.clone(), this.type, this.sourceSpan, this.parens);\n }\n}\n\n\nexport class BinaryOperatorExpr extends Expression {\n public lhs: Expression;\n constructor(\n public operator: BinaryOperator, lhs: Expression, public rhs: Expression, type?: Type|null,\n sourceSpan?: ParseSourceSpan|null, public parens: boolean = true) {\n super(type || lhs.type, sourceSpan);\n this.lhs = lhs;\n }\n\n override isEquivalent(e: Expression): boolean {\n return e instanceof BinaryOperatorExpr && this.operator === e.operator &&\n this.lhs.isEquivalent(e.lhs) && this.rhs.isEquivalent(e.rhs);\n }\n\n override isConstant() {\n return false;\n }\n\n override visitExpression(visitor: ExpressionVisitor, context: any): any {\n return visitor.visitBinaryOperatorExpr(this, context);\n }\n\n override clone(): BinaryOperatorExpr {\n return new BinaryOperatorExpr(\n this.operator, this.lhs.clone(), this.rhs.clone(), this.type, this.sourceSpan, this.parens);\n }\n}\n\n\nexport class ReadPropExpr extends Expression {\n constructor(\n public receiver: Expression, public name: string, type?: Type|null,\n sourceSpan?: ParseSourceSpan|null) {\n super(type, sourceSpan);\n }\n\n // An alias for name, which allows other logic to handle property reads and keyed reads together.\n get index() {\n return this.name;\n }\n\n override isEquivalent(e: Expression): boolean {\n return e instanceof ReadPropExpr && this.receiver.isEquivalent(e.receiver) &&\n this.name === e.name;\n }\n\n override isConstant() {\n return false;\n }\n\n override visitExpression(visitor: ExpressionVisitor, context: any): any {\n return visitor.visitReadPropExpr(this, context);\n }\n\n set(value: Expression): WritePropExpr {\n return new WritePropExpr(this.receiver, this.name, value, null, this.sourceSpan);\n }\n\n override clone(): ReadPropExpr {\n return new ReadPropExpr(this.receiver.clone(), this.name, this.type, this.sourceSpan);\n }\n}\n\n\nexport class ReadKeyExpr extends Expression {\n constructor(\n public receiver: Expression, public index: Expression, type?: Type|null,\n sourceSpan?: ParseSourceSpan|null) {\n super(type, sourceSpan);\n }\n\n override isEquivalent(e: Expression): boolean {\n return e instanceof ReadKeyExpr && this.receiver.isEquivalent(e.receiver) &&\n this.index.isEquivalent(e.index);\n }\n\n override isConstant() {\n return false;\n }\n\n override visitExpression(visitor: ExpressionVisitor, context: any): any {\n return visitor.visitReadKeyExpr(this, context);\n }\n\n set(value: Expression): WriteKeyExpr {\n return new WriteKeyExpr(this.receiver, this.index, value, null, this.sourceSpan);\n }\n\n override clone(): ReadKeyExpr {\n return new ReadKeyExpr(this.receiver.clone(), this.index.clone(), this.type, this.sourceSpan);\n }\n}\n\n\nexport class LiteralArrayExpr extends Expression {\n public entries: Expression[];\n constructor(entries: Expression[], type?: Type|null, sourceSpan?: ParseSourceSpan|null) {\n super(type, sourceSpan);\n this.entries = entries;\n }\n\n override isConstant() {\n return this.entries.every(e => e.isConstant());\n }\n\n override isEquivalent(e: Expression): boolean {\n return e instanceof LiteralArrayExpr && areAllEquivalent(this.entries, e.entries);\n }\n override visitExpression(visitor: ExpressionVisitor, context: any): any {\n return visitor.visitLiteralArrayExpr(this, context);\n }\n\n override clone(): LiteralArrayExpr {\n return new LiteralArrayExpr(this.entries.map(e => e.clone()), this.type, this.sourceSpan);\n }\n}\n\nexport class LiteralMapEntry {\n constructor(public key: string, public value: Expression, public quoted: boolean) {}\n isEquivalent(e: LiteralMapEntry): boolean {\n return this.key === e.key && this.value.isEquivalent(e.value);\n }\n\n clone(): LiteralMapEntry {\n return new LiteralMapEntry(this.key, this.value.clone(), this.quoted);\n }\n}\n\nexport class LiteralMapExpr extends Expression {\n public valueType: Type|null = null;\n constructor(\n public entries: LiteralMapEntry[], type?: MapType|null, sourceSpan?: ParseSourceSpan|null) {\n super(type, sourceSpan);\n if (type) {\n this.valueType = type.valueType;\n }\n }\n\n override isEquivalent(e: Expression): boolean {\n return e instanceof LiteralMapExpr && areAllEquivalent(this.entries, e.entries);\n }\n\n override isConstant() {\n return this.entries.every(e => e.value.isConstant());\n }\n\n override visitExpression(visitor: ExpressionVisitor, context: any): any {\n return visitor.visitLiteralMapExpr(this, context);\n }\n\n override clone(): LiteralMapExpr {\n const entriesClone = this.entries.map(entry => entry.clone());\n return new LiteralMapExpr(entriesClone, this.type as MapType | null, this.sourceSpan);\n }\n}\n\nexport class CommaExpr extends Expression {\n constructor(public parts: Expression[], sourceSpan?: ParseSourceSpan|null) {\n super(parts[parts.length - 1].type, sourceSpan);\n }\n\n override isEquivalent(e: Expression): boolean {\n return e instanceof CommaExpr && areAllEquivalent(this.parts, e.parts);\n }\n\n override isConstant() {\n return false;\n }\n\n override visitExpression(visitor: ExpressionVisitor, context: any): any {\n return visitor.visitCommaExpr(this, context);\n }\n\n override clone(): CommaExpr {\n return new CommaExpr(this.parts.map(p => p.clone()));\n }\n}\n\nexport interface ExpressionVisitor {\n visitReadVarExpr(ast: ReadVarExpr, context: any): any;\n visitWriteVarExpr(expr: WriteVarExpr, context: any): any;\n visitWriteKeyExpr(expr: WriteKeyExpr, context: any): any;\n visitWritePropExpr(expr: WritePropExpr, context: any): any;\n visitInvokeFunctionExpr(ast: InvokeFunctionExpr, context: any): any;\n visitTaggedTemplateExpr(ast: TaggedTemplateExpr, context: any): any;\n visitInstantiateExpr(ast: InstantiateExpr, context: any): any;\n visitLiteralExpr(ast: LiteralExpr, context: any): any;\n visitLocalizedString(ast: LocalizedString, context: any): any;\n visitExternalExpr(ast: ExternalExpr, context: any): any;\n visitConditionalExpr(ast: ConditionalExpr, context: any): any;\n visitDynamicImportExpr(ast: DynamicImportExpr, context: any): any;\n visitNotExpr(ast: NotExpr, context: any): any;\n visitFunctionExpr(ast: FunctionExpr, context: any): any;\n visitUnaryOperatorExpr(ast: UnaryOperatorExpr, context: any): any;\n visitBinaryOperatorExpr(ast: BinaryOperatorExpr, context: any): any;\n visitReadPropExpr(ast: ReadPropExpr, context: any): any;\n visitReadKeyExpr(ast: ReadKeyExpr, context: any): any;\n visitLiteralArrayExpr(ast: LiteralArrayExpr, context: any): any;\n visitLiteralMapExpr(ast: LiteralMapExpr, context: any): any;\n visitCommaExpr(ast: CommaExpr, context: any): any;\n visitWrappedNodeExpr(ast: WrappedNodeExpr<any>, context: any): any;\n visitTypeofExpr(ast: TypeofExpr, context: any): any;\n visitArrowFunctionExpr(ast: ArrowFunctionExpr, context: any): any;\n}\n\nexport const NULL_EXPR = new LiteralExpr(null, null, null);\nexport const TYPED_NULL_EXPR = new LiteralExpr(null, INFERRED_TYPE, null);\n\n//// Statements\nexport enum StmtModifier {\n None = 0,\n Final = 1 << 0,\n Private = 1 << 1,\n Exported = 1 << 2,\n Static = 1 << 3,\n}\n\nexport class LeadingComment {\n constructor(public text: string, public multiline: boolean, public trailingNewline: boolean) {}\n toString() {\n return this.multiline ? ` ${this.text} ` : this.text;\n }\n}\nexport class JSDocComment extends LeadingComment {\n constructor(public tags: JSDocTag[]) {\n super('', /* multiline */ true, /* trailingNewline */ true);\n }\n override toString(): string {\n return serializeTags(this.tags);\n }\n}\n\nexport abstract class Statement {\n constructor(\n public modifiers: StmtModifier = StmtModifier.None,\n public sourceSpan: ParseSourceSpan|null = null, public leadingComments?: LeadingComment[]) {}\n /**\n * Calculates whether this statement produces the same value as the given statement.\n * Note: We don't check Types nor ParseSourceSpans nor function arguments.\n */\n abstract isEquivalent(stmt: Statement): boolean;\n\n abstract visitStatement(visitor: StatementVisitor, context: any): any;\n\n hasModifier(modifier: StmtModifier): boolean {\n return (this.modifiers & modifier) !== 0;\n }\n\n addLeadingComment(leadingComment: LeadingComment): void {\n this.leadingComments = this.leadingComments ?? [];\n this.leadingComments.push(leadingComment);\n }\n}\n\n\nexport class DeclareVarStmt extends Statement {\n public type: Type|null;\n constructor(\n public name: string, public value?: Expression, type?: Type|null, modifiers?: StmtModifier,\n sourceSpan?: ParseSourceSpan|null, leadingComments?: LeadingComment[]) {\n super(modifiers, sourceSpan, leadingComments);\n this.type = type || (value && value.type) || null;\n }\n override isEquivalent(stmt: Statement): boolean {\n return stmt instanceof DeclareVarStmt && this.name === stmt.name &&\n (this.value ? !!stmt.value && this.value.isEquivalent(stmt.value) : !stmt.value);\n }\n override visitStatement(visitor: StatementVisitor, context: any): any {\n return visitor.visitDeclareVarStmt(this, context);\n }\n}\n\nexport class DeclareFunctionStmt extends Statement {\n public type: Type|null;\n constructor(\n public name: string, public params: FnParam[], public statements: Statement[],\n type?: Type|null, modifiers?: StmtModifier, sourceSpan?: ParseSourceSpan|null,\n leadingComments?: LeadingComment[]) {\n super(modifiers, sourceSpan, leadingComments);\n this.type = type || null;\n }\n override isEquivalent(stmt: Statement): boolean {\n return stmt instanceof DeclareFunctionStmt && areAllEquivalent(this.params, stmt.params) &&\n areAllEquivalent(this.statements, stmt.statements);\n }\n override visitStatement(visitor: StatementVisitor, context: any): any {\n return visitor.visitDeclareFunctionStmt(this, context);\n }\n}\n\nexport class ExpressionStatement extends Statement {\n constructor(\n public expr: Expression, sourceSpan?: ParseSourceSpan|null,\n leadingComments?: LeadingComment[]) {\n super(StmtModifier.None, sourceSpan, leadingComments);\n }\n override isEquivalent(stmt: Statement): boolean {\n return stmt instanceof ExpressionStatement && this.expr.isEquivalent(stmt.expr);\n }\n override visitStatement(visitor: StatementVisitor, context: any): any {\n return visitor.visitExpressionStmt(this, context);\n }\n}\n\n\nexport class ReturnStatement extends Statement {\n constructor(\n public value: Expression, sourceSpan: ParseSourceSpan|null = null,\n leadingComments?: LeadingComment[]) {\n super(StmtModifier.None, sourceSpan, leadingComments);\n }\n override isEquivalent(stmt: Statement): boolean {\n return stmt instanceof ReturnStatement && this.value.isEquivalent(stmt.value);\n }\n override visitStatement(visitor: StatementVisitor, context: any): any {\n return visitor.visitReturnStmt(this, context);\n }\n}\n\nexport class IfStmt extends Statement {\n constructor(\n public condition: Expression, public trueCase: Statement[],\n public falseCase: Statement[] = [], sourceSpan?: ParseSourceSpan|null,\n leadingComments?: LeadingComment[]) {\n super(StmtModifier.None, sourceSpan, leadingComments);\n }\n override isEquivalent(stmt: Statement): boolean {\n return stmt instanceof IfStmt && this.condition.isEquivalent(stmt.condition) &&\n areAllEquivalent(this.trueCase, stmt.trueCase) &&\n areAllEquivalent(this.falseCase, stmt.falseCase);\n }\n override visitStatement(visitor: StatementVisitor, context: any): any {\n return visitor.visitIfStmt(this, context);\n }\n}\n\nexport interface StatementVisitor {\n visitDeclareVarStmt(stmt: DeclareVarStmt, context: any): any;\n visitDeclareFunctionStmt(stmt: DeclareFunctionStmt, context: any): any;\n visitExpressionStmt(stmt: ExpressionStatement, context: any): any;\n visitReturnStmt(stmt: ReturnStatement, context: any): any;\n visitIfStmt(stmt: IfStmt, context: any): any;\n}\n\nexport class RecursiveAstVisitor implements StatementVisitor, ExpressionVisitor {\n visitType(ast: Type, context: any): any {\n return ast;\n }\n visitExpression(ast: Expression, context: any): any {\n if (ast.type) {\n ast.type.visitType(this, context);\n }\n return ast;\n }\n visitBuiltinType(type: BuiltinType, context: any): any {\n return this.visitType(type, context);\n }\n visitExpressionType(type: ExpressionType, context: any): any {\n type.value.visitExpression(this, context);\n if (type.typeParams !== null) {\n type.typeParams.forEach(param => this.visitType(param, context));\n }\n return this.visitType(type, context);\n }\n visitArrayType(type: ArrayType, context: any): any {\n return this.visitType(type, context);\n }\n visitMapType(type: MapType, context: any): any {\n return this.visitType(type, context);\n }\n visitTransplantedType(type: TransplantedType<unknown>, context: any): any {\n return type;\n }\n visitWrappedNodeExpr(ast: WrappedNodeExpr<any>, context: any): any {\n return ast;\n }\n visitTypeofExpr(ast: TypeofExpr, context: any): any {\n return this.visitExpression(ast, context);\n }\n visitReadVarExpr(ast: ReadVarExpr, context: any): any {\n return this.visitExpression(ast, context);\n }\n visitWriteVarExpr(ast: WriteVarExpr, context: any): any {\n ast.value.visitExpression(this, context);\n return this.visitExpression(ast, context);\n }\n visitWriteKeyExpr(ast: WriteKeyExpr, context: any): any {\n ast.receiver.visitExpression(this, context);\n ast.index.visitExpression(this, context);\n ast.value.visitExpression(this, context);\n return this.visitExpression(ast, context);\n }\n visitWritePropExpr(ast: WritePropExpr, context: any): any {\n ast.receiver.visitExpression(this, context);\n ast.value.visitExpression(this, context);\n return this.visitExpression(ast, context);\n }\n visitDynamicImportExpr(ast: DynamicImportExpr, context: any) {\n return this.visitExpression(ast, context);\n }\n visitInvokeFunctionExpr(ast: InvokeFunctionExpr, context: any): any {\n ast.fn.visitExpression(this, context);\n this.visitAllExpressions(ast.args, context);\n return this.visitExpression(ast, context);\n }\n visitTaggedTemplateExpr(ast: TaggedTemplateExpr, context: any): any {\n ast.tag.visitExpression(this, context);\n this.visitAllExpressions(ast.template.expressions, context);\n return this.visitExpression(ast, context);\n }\n visitInstantiateExpr(ast: InstantiateExpr, context: any): any {\n ast.classExpr.visitExpression(this, context);\n this.visitAllExpressions(ast.args, context);\n return this.visitExpression(ast, context);\n }\n visitLiteralExpr(ast: LiteralExpr, context: any): any {\n return this.visitExpression(ast, context);\n }\n visitLocalizedString(ast: LocalizedString, context: any): any {\n return this.visitExpression(ast, context);\n }\n visitExternalExpr(ast: ExternalExpr, context: any): any {\n if (ast.typeParams) {\n ast.typeParams.forEach(type => type.visitType(this, context));\n }\n return this.visitExpression(ast, context);\n }\n visitConditionalExpr(ast: ConditionalExpr, context: any): any {\n ast.condition.visitExpression(this, context);\n ast.trueCase.visitExpression(this, context);\n ast.falseCase!.visitExpression(this, context);\n return this.visitExpression(ast, context);\n }\n visitNotExpr(ast: NotExpr, context: any): any {\n ast.condition.visitExpression(this, context);\n return this.visitExpression(ast, context);\n }\n visitFunctionExpr(ast: FunctionExpr, context: any): any {\n this.visitAllStatements(ast.statements, context);\n return this.visitExpression(ast, context);\n }\n visitArrowFunctionExpr(ast: ArrowFunctionExpr, context: any): any {\n if (Array.isArray(ast.body)) {\n this.visitAllStatements(ast.body, context);\n } else {\n this.visitExpression(ast.body, context);\n }\n\n return this.visitExpression(ast, context);\n }\n visitUnaryOperatorExpr(ast: UnaryOperatorExpr, context: any): any {\n ast.expr.visitExpression(this, context);\n return this.visitExpression(ast, context);\n }\n visitBinaryOperatorExpr(ast: BinaryOperatorExpr, context: any): any {\n ast.lhs.visitExpression(this, context);\n ast.rhs.visitExpression(this, context);\n return this.visitExpression(ast, context);\n }\n visitReadPropExpr(ast: ReadPropExpr, context: any): any {\n ast.receiver.visitExpression(this, context);\n return this.visitExpression(ast, context);\n }\n visitReadKeyExpr(ast: ReadKeyExpr, context: any): any {\n ast.receiver.visitExpression(this, context);\n ast.index.visitExpression(this, context);\n return this.visitExpression(ast, context);\n }\n visitLiteralArrayExpr(ast: LiteralArrayExpr, context: any): any {\n this.visitAllExpressions(ast.entries, context);\n return this.visitExpression(ast, context);\n }\n visitLiteralMapExpr(ast: LiteralMapExpr, context: any): any {\n ast.entries.forEach((entry) => entry.value.visitExpression(this, context));\n return this.visitExpression(ast, context);\n }\n visitCommaExpr(ast: CommaExpr, context: any): any {\n this.visitAllExpressions(ast.parts, context);\n return this.visitExpression(ast, context);\n }\n visitAllExpressions(exprs: Expression[], context: any): void {\n exprs.forEach(expr => expr.visitExpression(this, context));\n }\n\n visitDeclareVarStmt(stmt: DeclareVarStmt, context: any): any {\n if (stmt.value) {\n stmt.value.visitExpression(this, context);\n }\n if (stmt.type) {\n stmt.type.visitType(this, context);\n }\n return stmt;\n }\n visitDeclareFunctionStmt(stmt: DeclareFunctionStmt, context: any): any {\n this.visitAllStatements(stmt.statements, context);\n if (stmt.type) {\n stmt.type.visitType(this, context);\n }\n return stmt;\n }\n visitExpressionStmt(stmt: ExpressionStatement, context: any): any {\n stmt.expr.visitExpression(this, context);\n return stmt;\n }\n visitReturnStmt(stmt: ReturnStatement, context: any): any {\n stmt.value.visitExpression(this, context);\n return stmt;\n }\n visitIfStmt(stmt: IfStmt, context: any): any {\n stmt.condition.visitExpression(this, context);\n this.visitAllStatements(stmt.trueCase, context);\n this.visitAllStatements(stmt.falseCase, context);\n return stmt;\n }\n visitAllStatements(stmts: Statement[], context: any): void {\n stmts.forEach(stmt => stmt.visitStatement(this, context));\n }\n}\n\nexport function leadingComment(\n text: string, multiline: boolean = false, trailingNewline: boolean = true): LeadingComment {\n return new LeadingComment(text, multiline, trailingNewline);\n}\n\nexport function jsDocComment(tags: JSDocTag[] = []): JSDocComment {\n return new JSDocComment(tags);\n}\n\nexport function variable(\n name: string, type?: Type|null, sourceSpan?: ParseSourceSpan|null): ReadVarExpr {\n return new ReadVarExpr(name, type, sourceSpan);\n}\n\nexport function importExpr(\n id: ExternalReference, typeParams: Type[]|null = null,\n sourceSpan?: ParseSourceSpan|null): ExternalExpr {\n return new ExternalExpr(id, null, typeParams, sourceSpan);\n}\n\nexport function importType(\n id: ExternalReference, typeParams?: Type[]|null, typeModifiers?: TypeModifier): ExpressionType|\n null {\n return id != null ? expressionType(importExpr(id, typeParams, null), typeModifiers) : null;\n}\n\nexport function expressionType(\n expr: Expression, typeModifiers?: TypeModifier, typeParams?: Type[]|null): ExpressionType {\n return new ExpressionType(expr, typeModifiers, typeParams);\n}\n\nexport function transplantedType<T>(type: T, typeModifiers?: TypeModifier): TransplantedType<T> {\n return new TransplantedType(type, typeModifiers);\n}\n\nexport function typeofExpr(expr: Expression) {\n return new TypeofExpr(expr);\n}\n\nexport function literalArr(\n values: Expression[], type?: Type|null, sourceSpan?: ParseSourceSpan|null): LiteralArrayExpr {\n return new LiteralArrayExpr(values, type, sourceSpan);\n}\n\nexport function literalMap(\n values: {key: string, quoted: boolean, value: Expression}[],\n type: MapType|null = null): LiteralMapExpr {\n return new LiteralMapExpr(\n values.map(e => new LiteralMapEntry(e.key, e.value, e.quoted)), type, null);\n}\n\nexport function unary(\n operator: UnaryOperator, expr: Expression, type?: Type,\n sourceSpan?: ParseSourceSpan|null): UnaryOperatorExpr {\n return new UnaryOperatorExpr(operator, expr, type, sourceSpan);\n}\n\nexport function not(expr: Expression, sourceSpan?: ParseSourceSpan|null): NotExpr {\n return new NotExpr(expr, sourceSpan);\n}\n\nexport function fn(\n params: FnParam[], body: Statement[], type?: Type|null, sourceSpan?: ParseSourceSpan|null,\n name?: string|null): FunctionExpr {\n return new FunctionExpr(params, body, type, sourceSpan, name);\n}\n\nexport function arrowFn(\n params: FnParam[], body: Expression|Statement[], type?: Type|null,\n sourceSpan?: ParseSourceSpan|null) {\n return new ArrowFunctionExpr(params, body, type, sourceSpan);\n}\n\nexport function ifStmt(\n condition: Expression, thenClause: Statement[], elseClause?: Statement[],\n sourceSpan?: ParseSourceSpan, leadingComments?: LeadingComment[]) {\n return new IfStmt(condition, thenClause, elseClause, sourceSpan, leadingComments);\n}\n\nexport function taggedTemplate(\n tag: Expression, template: TemplateLiteral, type?: Type|null,\n sourceSpan?: ParseSourceSpan|null): TaggedTemplateExpr {\n return new TaggedTemplateExpr(tag, template, type, sourceSpan);\n}\n\nexport function literal(\n value: any, type?: Type|null, sourceSpan?: ParseSourceSpan|null): LiteralExpr {\n return new LiteralExpr(value, type, sourceSpan);\n}\n\nexport function localizedString(\n metaBlock: I18nMeta, messageParts: LiteralPiece[], placeholderNames: PlaceholderPiece[],\n expressions: Expression[], sourceSpan?: ParseSourceSpan|null): LocalizedString {\n return new LocalizedString(metaBlock, messageParts, placeholderNames, expressions, sourceSpan);\n}\n\nexport function isNull(exp: Expression): boolean {\n return exp instanceof LiteralExpr && exp.value === null;\n}\n\n// The list of JSDoc tags that we currently support. Extend it if needed.\nexport const enum JSDocTagName {\n Desc = 'desc',\n Id = 'id',\n Meaning = 'meaning',\n Suppress = 'suppress',\n}\n\n/*\n * TypeScript has an API for JSDoc already, but it's not exposed.\n * https://github.com/Microsoft/TypeScript/issues/7393\n * For now we create types that are similar to theirs so that migrating\n * to their API will be easier. See e.g. `ts.JSDocTag` and `ts.JSDocComment`.\n */\nexport type JSDocTag = {\n // `tagName` is e.g. \"param\" in an `@param` declaration\n tagName: JSDocTagName|string,\n // Any remaining text on the tag, e.g. the description\n text?: string,\n}|{\n // no `tagName` for plain text documentation that occurs before any `@param` lines\n tagName?: undefined, text: string,\n};\n\n/*\n * Serializes a `Tag` into a string.\n * Returns a string like \" @foo {bar} baz\" (note the leading whitespace before `@foo`).\n */\nfunction tagToString(tag: JSDocTag): string {\n let out = '';\n if (tag.tagName) {\n out += ` @${tag.tagName}`;\n }\n if (tag.text) {\n if (tag.text.match(/\\/\\*|\\*\\//)) {\n throw new Error('JSDoc text cannot contain \"/*\" and \"*/\"');\n }\n out += ' ' + tag.text.replace(/@/g, '\\\\@');\n }\n return out;\n}\n\nfunction serializeTags(tags: JSDocTag[]): string {\n if (tags.length === 0) return '';\n\n if (tags.length === 1 && tags[0].tagName && !tags[0].text) {\n // The JSDOC comment is a single simple tag: e.g `/** @tagname */`.\n return `*${tagToString(tags[0])} `;\n }\n\n let out = '*\\n';\n for (const tag of tags) {\n out += ' *';\n // If the tagToString is multi-line, insert \" * \" prefixes on lines.\n out += tagToString(tag).replace(/\\n/g, '\\n * ');\n out += '\\n';\n }\n out += ' ';\n return out;\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as o from './output/output_ast';\n\nconst CONSTANT_PREFIX = '_c';\n\n/**\n * `ConstantPool` tries to reuse literal factories when two or more literals are identical.\n * We determine whether literals are identical by creating a key out of their AST using the\n * `KeyVisitor`. This constant is used to replace dynamic expressions which can't be safely\n * converted into a key. E.g. given an expression `{foo: bar()}`, since we don't know what\n * the result of `bar` will be, we create a key that looks like `{foo: <unknown>}`. Note\n * that we use a variable, rather than something like `null` in order to avoid collisions.\n */\nconst UNKNOWN_VALUE_KEY = o.variable('<unknown>');\n\n/**\n * Context to use when producing a key.\n *\n * This ensures we see the constant not the reference variable when producing\n * a key.\n */\nconst KEY_CONTEXT = {};\n\n/**\n * Generally all primitive values are excluded from the `ConstantPool`, but there is an exclusion\n * for strings that reach a certain length threshold. This constant defines the length threshold for\n * strings.\n */\nconst POOL_INCLUSION_LENGTH_THRESHOLD_FOR_STRINGS = 50;\n\n/**\n * A node that is a place-holder that allows the node to be replaced when the actual\n * node is known.\n *\n * This allows the constant pool to change an expression from a direct reference to\n * a constant to a shared constant. It returns a fix-up node that is later allowed to\n * change the referenced expression.\n */\nclass FixupExpression extends o.Expression {\n private original: o.Expression;\n\n shared = false;\n\n constructor(public resolved: o.Expression) {\n super(resolved.type);\n this.original = resolved;\n }\n\n override visitExpression(visitor: o.ExpressionVisitor, context: any): any {\n if (context === KEY_CONTEXT) {\n // When producing a key we want to traverse the constant not the\n // variable used to refer to it.\n return this.original.visitExpression(visitor, context);\n } else {\n return this.resolved.visitExpression(visitor, context);\n }\n }\n\n override isEquivalent(e: o.Expression): boolean {\n return e instanceof FixupExpression && this.resolved.isEquivalent(e.resolved);\n }\n\n override isConstant() {\n return true;\n }\n\n override clone(): FixupExpression {\n throw new Error(`Not supported.`);\n }\n\n fixup(expression: o.Expression) {\n this.resolved = expression;\n this.shared = true;\n }\n}\n\n/**\n * A constant pool allows a code emitter to share constant in an output context.\n *\n * The constant pool also supports sharing access to ivy definitions references.\n */\nexport class ConstantPool {\n statements: o.Statement[] = [];\n private literals = new Map<string, FixupExpression>();\n private literalFactories = new Map<string, o.Expression>();\n private sharedConstants = new Map<string, o.Expression>();\n\n /**\n * Constant pool also tracks claimed names from {@link uniqueName}.\n * This is useful to avoid collisions if variables are intended to be\n * named a certain way- but may conflict. We wouldn't want to always suffix\n * them with unique numbers.\n */\n private _claimedNames = new Map<string, number>();\n\n private nextNameIndex = 0;\n\n constructor(private readonly isClosureCompilerEnabled: boolean = false) {}\n\n getConstLiteral(literal: o.Expression, forceShared?: boolean): o.Expression {\n if ((literal instanceof o.LiteralExpr && !isLongStringLiteral(literal)) ||\n literal instanceof FixupExpression) {\n // Do no put simple literals into the constant pool or try to produce a constant for a\n // reference to a constant.\n return literal;\n }\n const key = GenericKeyFn.INSTANCE.keyOf(literal);\n let fixup = this.literals.get(key);\n let newValue = false;\n if (!fixup) {\n fixup = new FixupExpression(literal);\n this.literals.set(key, fixup);\n newValue = true;\n }\n\n if ((!newValue && !fixup.shared) || (newValue && forceShared)) {\n // Replace the expression with a variable\n const name = this.freshName();\n let definition: o.WriteVarExpr;\n let usage: o.Expression;\n if (this.isClosureCompilerEnabled && isLongStringLiteral(literal)) {\n // For string literals, Closure will **always** inline the string at\n // **all** usages, duplicating it each time. For large strings, this\n // unnecessarily bloats bundle size. To work around this restriction, we\n // wrap the string in a function, and call that function for each usage.\n // This tricks Closure into using inline logic for functions instead of\n // string literals. Function calls are only inlined if the body is small\n // enough to be worth it. By doing this, very large strings will be\n // shared across multiple usages, rather than duplicating the string at\n // each usage site.\n //\n // const myStr = function() { return \"very very very long string\"; };\n // const usage1 = myStr();\n // const usage2 = myStr();\n definition = o.variable(name).set(new o.FunctionExpr(\n [], // Params.\n [\n // Statements.\n new o.ReturnStatement(literal),\n ],\n ));\n usage = o.variable(name).callFn([]);\n } else {\n // Just declare and use the variable directly, without a function call\n // indirection. This saves a few bytes and avoids an unnecessary call.\n definition = o.variable(name).set(literal);\n usage = o.variable(name);\n }\n\n this.statements.push(definition.toDeclStmt(o.INFERRED_TYPE, o.StmtModifier.Final));\n fixup.fixup(usage);\n }\n\n return fixup;\n }\n\n getSharedConstant(def: SharedConstantDefinition, expr: o.Expression): o.Expression {\n const key = def.keyOf(expr);\n if (!this.sharedConstants.has(key)) {\n const id = this.freshName();\n this.sharedConstants.set(key, o.variable(id));\n this.statements.push(def.toSharedConstantDeclaration(id, expr));\n }\n return this.sharedConstants.get(key)!;\n }\n\n getLiteralFactory(literal: o.LiteralArrayExpr|o.LiteralMapExpr):\n {literalFactory: o.Expression, literalFactoryArguments: o.Expression[]} {\n // Create a pure function that builds an array of a mix of constant and variable expressions\n if (literal instanceof o.LiteralArrayExpr) {\n const argumentsForKey = literal.entries.map(e => e.isConstant() ? e : UNKNOWN_VALUE_KEY);\n const key = GenericKeyFn.INSTANCE.keyOf(o.literalArr(argumentsForKey));\n return this._getLiteralFactory(key, literal.entries, entries => o.literalArr(entries));\n } else {\n const expressionForKey = o.literalMap(\n literal.entries.map(e => ({\n key: e.key,\n value: e.value.isConstant() ? e.value : UNKNOWN_VALUE_KEY,\n quoted: e.quoted\n })));\n const key = GenericKeyFn.INSTANCE.keyOf(expressionForKey);\n return this._getLiteralFactory(\n key, literal.entries.map(e => e.value),\n entries => o.literalMap(entries.map((value, index) => ({\n key: literal.entries[index].key,\n value,\n quoted: literal.entries[index].quoted\n }))));\n }\n }\n\n // TODO: useUniqueName(false) is necessary for naming compatibility with\n // TemplateDefinitionBuilder, but should be removed once Template Pipeline is the default.\n getSharedFunctionReference(\n fn: o.FunctionExpr|o.ArrowFunctionExpr, prefix: string,\n useUniqueName: boolean = true): o.Expression {\n const isArrow = fn instanceof o.ArrowFunctionExpr;\n\n for (const current of this.statements) {\n // Arrow functions are saved as variables so we check if the\n // value of the variable is the same as the arrow function.\n if (isArrow && current instanceof o.DeclareVarStmt && current.value?.isEquivalent(fn)) {\n return o.variable(current.name);\n }\n\n // Function declarations are saved as function statements\n // so we compare them directly to the passed-in function.\n if (!isArrow && current instanceof o.DeclareFunctionStmt && fn.isEquivalent(current)) {\n return o.variable(current.name);\n }\n }\n\n // Otherwise declare the function.\n const name = useUniqueName ? this.uniqueName(prefix) : prefix;\n this.statements.push(fn.toDeclStmt(name, o.StmtModifier.Final));\n return o.variable(name);\n }\n\n private _getLiteralFactory(\n key: string, values: o.Expression[], resultMap: (parameters: o.Expression[]) => o.Expression):\n {literalFactory: o.Expression, literalFactoryArguments: o.Expression[]} {\n let literalFactory = this.literalFactories.get(key);\n const literalFactoryArguments = values.filter((e => !e.isConstant()));\n if (!literalFactory) {\n const resultExpressions = values.map(\n (e, index) => e.isConstant() ? this.getConstLiteral(e, true) : o.variable(`a${index}`));\n const parameters =\n resultExpressions.filter(isVariable).map(e => new o.FnParam(e.name!, o.DYNAMIC_TYPE));\n const pureFunctionDeclaration =\n o.arrowFn(parameters, resultMap(resultExpressions), o.INFERRED_TYPE);\n const name = this.freshName();\n this.statements.push(o.variable(name)\n .set(pureFunctionDeclaration)\n .toDeclStmt(o.INFERRED_TYPE, o.StmtModifier.Final));\n literalFactory = o.variable(name);\n this.literalFactories.set(key, literalFactory);\n }\n return {literalFactory, literalFactoryArguments};\n }\n\n /**\n * Produce a unique name in the context of this pool.\n *\n * The name might be unique among different prefixes if any of the prefixes end in\n * a digit so the prefix should be a constant string (not based on user input) and\n * must not end in a digit.\n */\n uniqueName(name: string, alwaysIncludeSuffix = true): string {\n const count = this._claimedNames.get(name) ?? 0;\n const result = count === 0 && !alwaysIncludeSuffix ? `${name}` : `${name}${count}`;\n\n this._claimedNames.set(name, count + 1);\n return result;\n }\n\n private freshName(): string {\n return this.uniqueName(CONSTANT_PREFIX);\n }\n}\n\nexport interface ExpressionKeyFn {\n keyOf(expr: o.Expression): string;\n}\n\nexport interface SharedConstantDefinition extends ExpressionKeyFn {\n toSharedConstantDeclaration(declName: string, keyExpr: o.Expression): o.Statement;\n}\n\nexport class GenericKeyFn implements ExpressionKeyFn {\n static readonly INSTANCE = new GenericKeyFn();\n\n keyOf(expr: o.Expression): string {\n if (expr instanceof o.LiteralExpr && typeof expr.value === 'string') {\n return `\"${expr.value}\"`;\n } else if (expr instanceof o.LiteralExpr) {\n return String(expr.value);\n } else if (expr instanceof o.LiteralArrayExpr) {\n const entries: string[] = [];\n for (const entry of expr.entries) {\n entries.push(this.keyOf(entry));\n }\n return `[${entries.join(',')}]`;\n } else if (expr instanceof o.LiteralMapExpr) {\n const entries: string[] = [];\n for (const entry of expr.entries) {\n let key = entry.key;\n if (entry.quoted) {\n key = `\"${key}\"`;\n }\n entries.push(key + ':' + this.keyOf(entry.value));\n }\n return `{${entries.join(',')}}`;\n } else if (expr instanceof o.ExternalExpr) {\n return `import(\"${expr.value.moduleName}\", ${expr.value.name})`;\n } else if (expr instanceof o.ReadVarExpr) {\n return `read(${expr.name})`;\n } else if (expr instanceof o.TypeofExpr) {\n return `typeof(${this.keyOf(expr.expr)})`;\n } else {\n throw new Error(\n `${this.constructor.name} does not handle expressions of type ${expr.constructor.name}`);\n }\n }\n}\n\nfunction isVariable(e: o.Expression): e is o.ReadVarExpr {\n return e instanceof o.ReadVarExpr;\n}\n\nfunction isLongStringLiteral(expr: o.Expression): boolean {\n return expr instanceof o.LiteralExpr && typeof expr.value === 'string' &&\n expr.value.length >= POOL_INCLUSION_LENGTH_THRESHOLD_FOR_STRINGS;\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as o from '../output/output_ast';\n\nconst CORE = '@angular/core';\n\nexport class Identifiers {\n /* Methods */\n static NEW_METHOD = 'factory';\n static TRANSFORM_METHOD = 'transform';\n static PATCH_DEPS = 'patchedDeps';\n\n static core: o.ExternalReference = {name: null, moduleName: CORE};\n\n /* Instructions */\n static namespaceHTML: o.ExternalReference = {name: 'ɵɵnamespaceHTML', moduleName: CORE};\n\n static namespaceMathML: o.ExternalReference = {name: 'ɵɵnamespaceMathML', moduleName: CORE};\n\n static namespaceSVG: o.ExternalReference = {name: 'ɵɵnamespaceSVG', moduleName: CORE};\n\n static element: o.ExternalReference = {name: 'ɵɵelement', moduleName: CORE};\n\n static elementStart: o.ExternalReference = {name: 'ɵɵelementStart', moduleName: CORE};\n\n static elementEnd: o.ExternalReference = {name: 'ɵɵelementEnd', moduleName: CORE};\n\n static advance: o.ExternalReference = {name: 'ɵɵadvance', moduleName: CORE};\n\n static syntheticHostProperty:\n o.ExternalReference = {name: 'ɵɵsyntheticHostProperty', moduleName: CORE};\n\n static syntheticHostListener:\n o.ExternalReference = {name: 'ɵɵsyntheticHostListener', moduleName: CORE};\n\n static attribute: o.ExternalReference = {name: 'ɵɵattribute', moduleName: CORE};\n\n static attributeInterpolate1:\n o.ExternalReference = {name: 'ɵɵattributeInterpolate1', moduleName: CORE};\n static attributeInterpolate2:\n o.ExternalReference = {name: 'ɵɵattributeInterpolate2', moduleName: CORE};\n static attributeInterpolate3:\n o.ExternalReference = {name: 'ɵɵattributeInterpolate3', moduleName: CORE};\n static attributeInterpolate4:\n o.ExternalReference = {name: 'ɵɵattributeInterpolate4', moduleName: CORE};\n static attributeInterpolate5:\n o.ExternalReference = {name: 'ɵɵattributeInterpolate5', moduleName: CORE};\n static attributeInterpolate6:\n o.ExternalReference = {name: 'ɵɵattributeInterpolate6', moduleName: CORE};\n static attributeInterpolate7:\n o.ExternalReference = {name: 'ɵɵattributeInterpolate7', moduleName: CORE};\n static attributeInterpolate8:\n o.ExternalReference = {name: 'ɵɵattributeInterpolate8', moduleName: CORE};\n static attributeInterpolateV:\n o.ExternalReference = {name: 'ɵɵattributeInterpolateV', moduleName: CORE};\n\n static classProp: o.ExternalReference = {name: 'ɵɵclassProp', moduleName: CORE};\n\n static elementContainerStart:\n o.ExternalReference = {name: 'ɵɵelementContainerStart', moduleName: CORE};\n\n static elementContainerEnd:\n o.ExternalReference = {name: 'ɵɵelementContainerEnd', moduleName: CORE};\n\n static elementContainer: o.ExternalReference = {name: 'ɵɵelementContainer', moduleName: CORE};\n\n static styleMap: o.ExternalReference = {name: 'ɵɵstyleMap', moduleName: CORE};\n\n static styleMapInterpolate1:\n o.ExternalReference = {name: 'ɵɵstyleMapInterpolate1', moduleName: CORE};\n static styleMapInterpolate2:\n o.ExternalReference = {name: 'ɵɵstyleMapInterpolate2', moduleName: CORE};\n static styleMapInterpolate3:\n o.ExternalReference = {name: 'ɵɵstyleMapInterpolate3', moduleName: CORE};\n static styleMapInterpolate4:\n o.ExternalReference = {name: 'ɵɵstyleMapInterpolate4', moduleName: CORE};\n static styleMapInterpolate5:\n o.ExternalReference = {name: 'ɵɵstyleMapInterpolate5', moduleName: CORE};\n static styleMapInterpolate6:\n o.ExternalReference = {name: 'ɵɵstyleMapInterpolate6', moduleName: CORE};\n static styleMapInterpolate7:\n o.ExternalReference = {name: 'ɵɵstyleMapInterpolate7', moduleName: CORE};\n static styleMapInterpolate8:\n o.ExternalReference = {name: 'ɵɵstyleMapInterpolate8', moduleName: CORE};\n static styleMapInterpolateV:\n o.ExternalReference = {name: 'ɵɵstyleMapInterpolateV', moduleName: CORE};\n\n static classMap: o.ExternalReference = {name: 'ɵɵclassMap', moduleName: CORE};\n\n static classMapInterpolate1:\n o.ExternalReference = {name: 'ɵɵclassMapInterpolate1', moduleName: CORE};\n static classMapInterpolate2:\n o.ExternalReference = {name: 'ɵɵclassMapInterpolate2', moduleName: CORE};\n static classMapInterpolate3:\n o.ExternalReference = {name: 'ɵɵclassMapInterpolate3', moduleName: CORE};\n static classMapInterpolate4:\n o.ExternalReference = {name: 'ɵɵclassMapInterpolate4', moduleName: CORE};\n static classMapInterpolate5:\n o.ExternalReference = {name: 'ɵɵclassMapInterpolate5', moduleName: CORE};\n static classMapInterpolate6:\n o.ExternalReference = {name: 'ɵɵclassMapInterpolate6', moduleName: CORE};\n static classMapInterpolate7:\n o.ExternalReference = {name: 'ɵɵclassMapInterpolate7', moduleName: CORE};\n static classMapInterpolate8:\n o.ExternalReference = {name: 'ɵɵclassMapInterpolate8', moduleName: CORE};\n static classMapInterpolateV:\n o.ExternalReference = {name: 'ɵɵclassMapInterpolateV', moduleName: CORE};\n\n static styleProp: o.ExternalReference = {name: 'ɵɵstyleProp', moduleName: CORE};\n\n static stylePropInterpolate1:\n o.ExternalReference = {name: 'ɵɵstylePropInterpolate1', moduleName: CORE};\n static stylePropInterpolate2:\n o.ExternalReference = {name: 'ɵɵstylePropInterpolate2', moduleName: CORE};\n static stylePropInterpolate3:\n o.ExternalReference = {name: 'ɵɵstylePropInterpolate3', moduleName: CORE};\n static stylePropInterpolate4:\n o.ExternalReference = {name: 'ɵɵstylePropInterpolate4', moduleName: CORE};\n static stylePropInterpolate5:\n o.ExternalReference = {name: 'ɵɵstylePropInterpolate5', moduleName: CORE};\n static stylePropInterpolate6:\n o.ExternalReference = {name: 'ɵɵstylePropInterpolate6', moduleName: CORE};\n static stylePropInterpolate7:\n o.ExternalReference = {name: 'ɵɵstylePropInterpolate7', moduleName: CORE};\n static stylePropInterpolate8:\n o.ExternalReference = {name: 'ɵɵstylePropInterpolate8', moduleName: CORE};\n static stylePropInterpolateV:\n o.ExternalReference = {name: 'ɵɵstylePropInterpolateV', moduleName: CORE};\n\n static nextContext: o.ExternalReference = {name: 'ɵɵnextContext', moduleName: CORE};\n\n static resetView: o.ExternalReference = {name: 'ɵɵresetView', moduleName: CORE};\n\n static templateCreate: o.ExternalReference = {name: 'ɵɵtemplate', moduleName: CORE};\n\n static defer: o.ExternalReference = {name: 'ɵɵdefer', moduleName: CORE};\n static deferWhen: o.ExternalReference = {name: 'ɵɵdeferWhen', moduleName: CORE};\n static deferOnIdle: o.ExternalReference = {name: 'ɵɵdeferOnIdle', moduleName: CORE};\n static deferOnImmediate: o.ExternalReference = {name: 'ɵɵdeferOnImmediate', moduleName: CORE};\n static deferOnTimer: o.ExternalReference = {name: 'ɵɵdeferOnTimer', moduleName: CORE};\n static deferOnHover: o.ExternalReference = {name: 'ɵɵdeferOnHover', moduleName: CORE};\n static deferOnInteraction: o.ExternalReference = {name: 'ɵɵdeferOnInteraction', moduleName: CORE};\n static deferOnViewport: o.ExternalReference = {name: 'ɵɵdeferOnViewport', moduleName: CORE};\n static deferPrefetchWhen: o.ExternalReference = {name: 'ɵɵdeferPrefetchWhen', moduleName: CORE};\n static deferPrefetchOnIdle:\n o.ExternalReference = {name: 'ɵɵdeferPrefetchOnIdle', moduleName: CORE};\n static deferPrefetchOnImmediate:\n o.ExternalReference = {name: 'ɵɵdeferPrefetchOnImmediate', moduleName: CORE};\n static deferPrefetchOnTimer:\n o.ExternalReference = {name: 'ɵɵdeferPrefetchOnTimer', moduleName: CORE};\n static deferPrefetchOnHover:\n o.ExternalReference = {name: 'ɵɵdeferPrefetchOnHover', moduleName: CORE};\n static deferPrefetchOnInteraction:\n o.ExternalReference = {name: 'ɵɵdeferPrefetchOnInteraction', moduleName: CORE};\n static deferPrefetchOnViewport:\n o.ExternalReference = {name: 'ɵɵdeferPrefetchOnViewport', moduleName: CORE};\n static deferEnableTimerScheduling:\n o.ExternalReference = {name: 'ɵɵdeferEnableTimerScheduling', moduleName: CORE};\n\n static conditional: o.ExternalReference = {name: 'ɵɵconditional', moduleName: CORE};\n static repeater: o.ExternalReference = {name: 'ɵɵrepeater', moduleName: CORE};\n static repeaterCreate: o.ExternalReference = {name: 'ɵɵrepeaterCreate', moduleName: CORE};\n static repeaterTrackByIndex:\n o.ExternalReference = {name: 'ɵɵrepeaterTrackByIndex', moduleName: CORE};\n static repeaterTrackByIdentity:\n o.ExternalReference = {name: 'ɵɵrepeaterTrackByIdentity', moduleName: CORE};\n static componentInstance: o.ExternalReference = {name: 'ɵɵcomponentInstance', moduleName: CORE};\n\n static text: o.ExternalReference = {name: 'ɵɵtext', moduleName: CORE};\n\n static enableBindings: o.ExternalReference = {name: 'ɵɵenableBindings', moduleName: CORE};\n\n static disableBindings: o.ExternalReference = {name: 'ɵɵdisableBindings', moduleName: CORE};\n\n static getCurrentView: o.ExternalReference = {name: 'ɵɵgetCurrentView', moduleName: CORE};\n\n static textInterpolate: o.ExternalReference = {name: 'ɵɵtextInterpolate', moduleName: CORE};\n static textInterpolate1: o.ExternalReference = {name: 'ɵɵtextInterpolate1', moduleName: CORE};\n static textInterpolate2: o.ExternalReference = {name: 'ɵɵtextInterpolate2', moduleName: CORE};\n static textInterpolate3: o.ExternalReference = {name: 'ɵɵtextInterpolate3', moduleName: CORE};\n static textInterpolate4: o.ExternalReference = {name: 'ɵɵtextInterpolate4', moduleName: CORE};\n static textInterpolate5: o.ExternalReference = {name: 'ɵɵtextInterpolate5', moduleName: CORE};\n static textInterpolate6: o.ExternalReference = {name: 'ɵɵtextInterpolate6', moduleName: CORE};\n static textInterpolate7: o.ExternalReference = {name: 'ɵɵtextInterpolate7', moduleName: CORE};\n static textInterpolate8: o.ExternalReference = {name: 'ɵɵtextInterpolate8', moduleName: CORE};\n static textInterpolateV: o.ExternalReference = {name: 'ɵɵtextInterpolateV', moduleName: CORE};\n\n static restoreView: o.ExternalReference = {name: 'ɵɵrestoreView', moduleName: CORE};\n\n static pureFunction0: o.ExternalReference = {name: 'ɵɵpureFunction0', moduleName: CORE};\n static pureFunction1: o.ExternalReference = {name: 'ɵɵpureFunction1', moduleName: CORE};\n static pureFunction2: o.ExternalReference = {name: 'ɵɵpureFunction2', moduleName: CORE};\n static pureFunction3: o.ExternalReference = {name: 'ɵɵpureFunction3', moduleName: CORE};\n static pureFunction4: o.ExternalReference = {name: 'ɵɵpureFunction4', moduleName: CORE};\n static pureFunction5: o.ExternalReference = {name: 'ɵɵpureFunction5', moduleName: CORE};\n static pureFunction6: o.ExternalReference = {name: 'ɵɵpureFunction6', moduleName: CORE};\n static pureFunction7: o.ExternalReference = {name: 'ɵɵpureFunction7', moduleName: CORE};\n static pureFunction8: o.ExternalReference = {name: 'ɵɵpureFunction8', moduleName: CORE};\n static pureFunctionV: o.ExternalReference = {name: 'ɵɵpureFunctionV', moduleName: CORE};\n\n static pipeBind1: o.ExternalReference = {name: 'ɵɵpipeBind1', moduleName: CORE};\n static pipeBind2: o.ExternalReference = {name: 'ɵɵpipeBind2', moduleName: CORE};\n static pipeBind3: o.ExternalReference = {name: 'ɵɵpipeBind3', moduleName: CORE};\n static pipeBind4: o.ExternalReference = {name: 'ɵɵpipeBind4', moduleName: CORE};\n static pipeBindV: o.ExternalReference = {name: 'ɵɵpipeBindV', moduleName: CORE};\n\n static hostProperty: o.ExternalReference = {name: 'ɵɵhostProperty', moduleName: CORE};\n\n static property: o.ExternalReference = {name: 'ɵɵproperty', moduleName: CORE};\n\n static propertyInterpolate:\n o.ExternalReference = {name: 'ɵɵpropertyInterpolate', moduleName: CORE};\n static propertyInterpolate1:\n o.ExternalReference = {name: 'ɵɵpropertyInterpolate1', moduleName: CORE};\n static propertyInterpolate2:\n o.ExternalReference = {name: 'ɵɵpropertyInterpolate2', moduleName: CORE};\n static propertyInterpolate3:\n o.ExternalReference = {name: 'ɵɵpropertyInterpolate3', moduleName: CORE};\n static propertyInterpolate4:\n o.ExternalReference = {name: 'ɵɵpropertyInterpolate4', moduleName: CORE};\n static propertyInterpolate5:\n o.ExternalReference = {name: 'ɵɵpropertyInterpolate5', moduleName: CORE};\n static propertyInterpolate6:\n o.ExternalReference = {name: 'ɵɵpropertyInterpolate6', moduleName: CORE};\n static propertyInterpolate7:\n o.ExternalReference = {name: 'ɵɵpropertyInterpolate7', moduleName: CORE};\n static propertyInterpolate8:\n o.ExternalReference = {name: 'ɵɵpropertyInterpolate8', moduleName: CORE};\n static propertyInterpolateV:\n o.ExternalReference = {name: 'ɵɵpropertyInterpolateV', moduleName: CORE};\n\n static i18n: o.ExternalReference = {name: 'ɵɵi18n', moduleName: CORE};\n static i18nAttributes: o.ExternalReference = {name: 'ɵɵi18nAttributes', moduleName: CORE};\n static i18nExp: o.ExternalReference = {name: 'ɵɵi18nExp', moduleName: CORE};\n static i18nStart: o.ExternalReference = {name: 'ɵɵi18nStart', moduleName: CORE};\n static i18nEnd: o.ExternalReference = {name: 'ɵɵi18nEnd', moduleName: CORE};\n static i18nApply: o.ExternalReference = {name: 'ɵɵi18nApply', moduleName: CORE};\n static i18nPostprocess: o.ExternalReference = {name: 'ɵɵi18nPostprocess', moduleName: CORE};\n\n static pipe: o.ExternalReference = {name: 'ɵɵpipe', moduleName: CORE};\n\n static projection: o.ExternalReference = {name: 'ɵɵprojection', moduleName: CORE};\n static projectionDef: o.ExternalReference = {name: 'ɵɵprojectionDef', moduleName: CORE};\n\n static reference: o.ExternalReference = {name: 'ɵɵreference', moduleName: CORE};\n\n static inject: o.ExternalReference = {name: 'ɵɵinject', moduleName: CORE};\n\n static injectAttribute: o.ExternalReference = {name: 'ɵɵinjectAttribute', moduleName: CORE};\n\n static directiveInject: o.ExternalReference = {name: 'ɵɵdirectiveInject', moduleName: CORE};\n static invalidFactory: o.ExternalReference = {name: 'ɵɵinvalidFactory', moduleName: CORE};\n static invalidFactoryDep: o.ExternalReference = {name: 'ɵɵinvalidFactoryDep', moduleName: CORE};\n\n static templateRefExtractor:\n o.ExternalReference = {name: 'ɵɵtemplateRefExtractor', moduleName: CORE};\n\n static forwardRef: o.ExternalReference = {name: 'forwardRef', moduleName: CORE};\n static resolveForwardRef: o.ExternalReference = {name: 'resolveForwardRef', moduleName: CORE};\n\n static ɵɵdefineInjectable: o.ExternalReference = {name: 'ɵɵdefineInjectable', moduleName: CORE};\n static declareInjectable: o.ExternalReference = {name: 'ɵɵngDeclareInjectable', moduleName: CORE};\n static InjectableDeclaration:\n o.ExternalReference = {name: 'ɵɵInjectableDeclaration', moduleName: CORE};\n\n static resolveWindow: o.ExternalReference = {name: 'ɵɵresolveWindow', moduleName: CORE};\n static resolveDocument: o.ExternalReference = {name: 'ɵɵresolveDocument', moduleName: CORE};\n static resolveBody: o.ExternalReference = {name: 'ɵɵresolveBody', moduleName: CORE};\n\n static getComponentDepsFactory:\n o.ExternalReference = {name: 'ɵɵgetComponentDepsFactory', moduleName: CORE};\n\n static defineComponent: o.ExternalReference = {name: 'ɵɵdefineComponent', moduleName: CORE};\n static declareComponent: o.ExternalReference = {name: 'ɵɵngDeclareComponent', moduleName: CORE};\n\n static setComponentScope: o.ExternalReference = {name: 'ɵɵsetComponentScope', moduleName: CORE};\n\n static ChangeDetectionStrategy: o.ExternalReference = {\n name: 'ChangeDetectionStrategy',\n moduleName: CORE,\n };\n static ViewEncapsulation: o.ExternalReference = {\n name: 'ViewEncapsulation',\n moduleName: CORE,\n };\n\n static ComponentDeclaration: o.ExternalReference = {\n name: 'ɵɵComponentDeclaration',\n moduleName: CORE,\n };\n\n static FactoryDeclaration: o.ExternalReference = {\n name: 'ɵɵFactoryDeclaration',\n moduleName: CORE,\n };\n static declareFactory: o.ExternalReference = {name: 'ɵɵngDeclareFactory', moduleName: CORE};\n static FactoryTarget: o.ExternalReference = {name: 'ɵɵFactoryTarget', moduleName: CORE};\n\n static defineDirective: o.ExternalReference = {name: 'ɵɵdefineDirective', moduleName: CORE};\n static declareDirective: o.ExternalReference = {name: 'ɵɵngDeclareDirective', moduleName: CORE};\n\n static DirectiveDeclaration: o.ExternalReference = {\n name: 'ɵɵDirectiveDeclaration',\n moduleName: CORE,\n };\n\n static InjectorDef: o.ExternalReference = {name: 'ɵɵInjectorDef', moduleName: CORE};\n static InjectorDeclaration:\n o.ExternalReference = {name: 'ɵɵInjectorDeclaration', moduleName: CORE};\n\n static defineInjector: o.ExternalReference = {name: 'ɵɵdefineInjector', moduleName: CORE};\n static declareInjector: o.ExternalReference = {name: 'ɵɵngDeclareInjector', moduleName: CORE};\n\n static NgModuleDeclaration: o.ExternalReference = {\n name: 'ɵɵNgModuleDeclaration',\n moduleName: CORE,\n };\n\n static ModuleWithProviders: o.ExternalReference = {\n name: 'ModuleWithProviders',\n moduleName: CORE,\n };\n\n static defineNgModule: o.ExternalReference = {name: 'ɵɵdefineNgModule', moduleName: CORE};\n static declareNgModule: o.ExternalReference = {name: 'ɵɵngDeclareNgModule', moduleName: CORE};\n static setNgModuleScope: o.ExternalReference = {name: 'ɵɵsetNgModuleScope', moduleName: CORE};\n static registerNgModuleType:\n o.ExternalReference = {name: 'ɵɵregisterNgModuleType', moduleName: CORE};\n\n\n static PipeDeclaration: o.ExternalReference = {name: 'ɵɵPipeDeclaration', moduleName: CORE};\n\n static definePipe: o.ExternalReference = {name: 'ɵɵdefinePipe', moduleName: CORE};\n static declarePipe: o.ExternalReference = {name: 'ɵɵngDeclarePipe', moduleName: CORE};\n\n static declareClassMetadata:\n o.ExternalReference = {name: 'ɵɵngDeclareClassMetadata', moduleName: CORE};\n static setClassMetadata: o.ExternalReference = {name: 'ɵsetClassMetadata', moduleName: CORE};\n static setClassMetadataAsync:\n o.ExternalReference = {name: 'ɵsetClassMetadataAsync', moduleName: CORE};\n static setClassDebugInfo: o.ExternalReference = {name: 'ɵsetClassDebugInfo', moduleName: CORE};\n static queryRefresh: o.ExternalReference = {name: 'ɵɵqueryRefresh', moduleName: CORE};\n static viewQuery: o.ExternalReference = {name: 'ɵɵviewQuery', moduleName: CORE};\n static loadQuery: o.ExternalReference = {name: 'ɵɵloadQuery', moduleName: CORE};\n static contentQuery: o.ExternalReference = {name: 'ɵɵcontentQuery', moduleName: CORE};\n\n static NgOnChangesFeature: o.ExternalReference = {name: 'ɵɵNgOnChangesFeature', moduleName: CORE};\n\n static InheritDefinitionFeature:\n o.ExternalReference = {name: 'ɵɵInheritDefinitionFeature', moduleName: CORE};\n\n static CopyDefinitionFeature:\n o.ExternalReference = {name: 'ɵɵCopyDefinitionFeature', moduleName: CORE};\n\n static StandaloneFeature: o.ExternalReference = {name: 'ɵɵStandaloneFeature', moduleName: CORE};\n\n static ProvidersFeature: o.ExternalReference = {name: 'ɵɵProvidersFeature', moduleName: CORE};\n\n static HostDirectivesFeature:\n o.ExternalReference = {name: 'ɵɵHostDirectivesFeature', moduleName: CORE};\n\n static InputTransformsFeatureFeature:\n o.ExternalReference = {name: 'ɵɵInputTransformsFeature', moduleName: CORE};\n\n static listener: o.ExternalReference = {name: 'ɵɵlistener', moduleName: CORE};\n\n static getInheritedFactory: o.ExternalReference = {\n name: 'ɵɵgetInheritedFactory',\n moduleName: CORE,\n };\n\n static InputFlags: o.ExternalReference = {\n name: 'ɵɵInputFlags',\n moduleName: CORE,\n };\n\n // sanitization-related functions\n static sanitizeHtml: o.ExternalReference = {name: 'ɵɵsanitizeHtml', moduleName: CORE};\n static sanitizeStyle: o.ExternalReference = {name: 'ɵɵsanitizeStyle', moduleName: CORE};\n static sanitizeResourceUrl:\n o.ExternalReference = {name: 'ɵɵsanitizeResourceUrl', moduleName: CORE};\n static sanitizeScript: o.ExternalReference = {name: 'ɵɵsanitizeScript', moduleName: CORE};\n static sanitizeUrl: o.ExternalReference = {name: 'ɵɵsanitizeUrl', moduleName: CORE};\n static sanitizeUrlOrResourceUrl:\n o.ExternalReference = {name: 'ɵɵsanitizeUrlOrResourceUrl', moduleName: CORE};\n static trustConstantHtml: o.ExternalReference = {name: 'ɵɵtrustConstantHtml', moduleName: CORE};\n static trustConstantResourceUrl:\n o.ExternalReference = {name: 'ɵɵtrustConstantResourceUrl', moduleName: CORE};\n static validateIframeAttribute:\n o.ExternalReference = {name: 'ɵɵvalidateIframeAttribute', moduleName: CORE};\n\n // type-checking\n static InputSignalBrandWriteType = {name: 'ɵINPUT_SIGNAL_BRAND_WRITE_TYPE', moduleName: CORE};\n static UnwrapDirectiveSignalInputs = {name: 'ɵUnwrapDirectiveSignalInputs', moduleName: CORE};\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nconst DASH_CASE_REGEXP = /-+([a-z0-9])/g;\n\nexport function dashCaseToCamelCase(input: string): string {\n return input.replace(DASH_CASE_REGEXP, (...m: any[]) => m[1].toUpperCase());\n}\n\nexport function splitAtColon(input: string, defaultValues: string[]): string[] {\n return _splitAt(input, ':', defaultValues);\n}\n\nexport function splitAtPeriod(input: string, defaultValues: string[]): string[] {\n return _splitAt(input, '.', defaultValues);\n}\n\nfunction _splitAt(input: string, character: string, defaultValues: string[]): string[] {\n const characterIndex = input.indexOf(character);\n if (characterIndex == -1) return defaultValues;\n return [input.slice(0, characterIndex).trim(), input.slice(characterIndex + 1).trim()];\n}\n\nexport function noUndefined<T>(val: T|undefined): T {\n return val === undefined ? null! : val;\n}\n\nexport function error(msg: string): never {\n throw new Error(`Internal Error: ${msg}`);\n}\n\n// Escape characters that have a special meaning in Regular Expressions\nexport function escapeRegExp(s: string): string {\n return s.replace(/([.*+?^=!:${}()|[\\]\\/\\\\])/g, '\\\\$1');\n}\n\nexport type Byte = number;\n\nexport function utf8Encode(str: string): Byte[] {\n let encoded: Byte[] = [];\n for (let index = 0; index < str.length; index++) {\n let codePoint = str.charCodeAt(index);\n\n // decode surrogate\n // see https://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae\n if (codePoint >= 0xd800 && codePoint <= 0xdbff && str.length > (index + 1)) {\n const low = str.charCodeAt(index + 1);\n if (low >= 0xdc00 && low <= 0xdfff) {\n index++;\n codePoint = ((codePoint - 0xd800) << 10) + low - 0xdc00 + 0x10000;\n }\n }\n\n if (codePoint <= 0x7f) {\n encoded.push(codePoint);\n } else if (codePoint <= 0x7ff) {\n encoded.push(((codePoint >> 6) & 0x1F) | 0xc0, (codePoint & 0x3f) | 0x80);\n } else if (codePoint <= 0xffff) {\n encoded.push(\n (codePoint >> 12) | 0xe0, ((codePoint >> 6) & 0x3f) | 0x80, (codePoint & 0x3f) | 0x80);\n } else if (codePoint <= 0x1fffff) {\n encoded.push(\n ((codePoint >> 18) & 0x07) | 0xf0, ((codePoint >> 12) & 0x3f) | 0x80,\n ((codePoint >> 6) & 0x3f) | 0x80, (codePoint & 0x3f) | 0x80);\n }\n }\n\n return encoded;\n}\n\nexport function stringify(token: any): string {\n if (typeof token === 'string') {\n return token;\n }\n\n if (Array.isArray(token)) {\n return '[' + token.map(stringify).join(', ') + ']';\n }\n\n if (token == null) {\n return '' + token;\n }\n\n if (token.overriddenName) {\n return `${token.overriddenName}`;\n }\n\n if (token.name) {\n return `${token.name}`;\n }\n\n if (!token.toString) {\n return 'object';\n }\n\n // WARNING: do not try to `JSON.stringify(token)` here\n // see https://github.com/angular/angular/issues/23440\n const res = token.toString();\n\n if (res == null) {\n return '' + res;\n }\n\n const newLineIndex = res.indexOf('\\n');\n return newLineIndex === -1 ? res : res.substring(0, newLineIndex);\n}\n\nexport class Version {\n public readonly major: string;\n public readonly minor: string;\n public readonly patch: string;\n\n constructor(public full: string) {\n const splits = full.split('.');\n this.major = splits[0];\n this.minor = splits[1];\n this.patch = splits.slice(2).join('.');\n }\n}\n\nexport interface Console {\n log(message: string): void;\n warn(message: string): void;\n}\n\nconst _global: {[name: string]: any} = globalThis;\nexport {_global as global};\n\nexport function newArray<T = any>(size: number): T[];\nexport function newArray<T>(size: number, value: T): T[];\nexport function newArray<T>(size: number, value?: T): T[] {\n const list: T[] = [];\n for (let i = 0; i < size; i++) {\n list.push(value!);\n }\n return list;\n}\n\n/**\n * Partitions a given array into 2 arrays, based on a boolean value returned by the condition\n * function.\n *\n * @param arr Input array that should be partitioned\n * @param conditionFn Condition function that is called for each item in a given array and returns a\n * boolean value.\n */\nexport function partitionArray<T, F = T>(\n arr: (T|F)[], conditionFn: (value: T|F) => boolean): [T[], F[]] {\n const truthy: T[] = [];\n const falsy: F[] = [];\n for (const item of arr) {\n (conditionFn(item) ? truthy : falsy).push(item as any);\n }\n return [truthy, falsy];\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {utf8Encode} from '../util';\n\n// https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit\nconst VERSION = 3;\n\nconst JS_B64_PREFIX = '# sourceMappingURL=data:application/json;base64,';\n\ntype Segment = {\n col0: number,\n sourceUrl?: string,\n sourceLine0?: number,\n sourceCol0?: number,\n};\n\nexport type SourceMap = {\n version: number,\n file?: string,\n sourceRoot: string,\n sources: string[],\n sourcesContent: (string|null)[],\n mappings: string,\n};\n\nexport class SourceMapGenerator {\n private sourcesContent: Map<string, string|null> = new Map();\n private lines: Segment[][] = [];\n private lastCol0: number = 0;\n private hasMappings = false;\n\n constructor(private file: string|null = null) {}\n\n // The content is `null` when the content is expected to be loaded using the URL\n addSource(url: string, content: string|null = null): this {\n if (!this.sourcesContent.has(url)) {\n this.sourcesContent.set(url, content);\n }\n return this;\n }\n\n addLine(): this {\n this.lines.push([]);\n this.lastCol0 = 0;\n return this;\n }\n\n addMapping(col0: number, sourceUrl?: string, sourceLine0?: number, sourceCol0?: number): this {\n if (!this.currentLine) {\n throw new Error(`A line must be added before mappings can be added`);\n }\n if (sourceUrl != null && !this.sourcesContent.has(sourceUrl)) {\n throw new Error(`Unknown source file \"${sourceUrl}\"`);\n }\n if (col0 == null) {\n throw new Error(`The column in the generated code must be provided`);\n }\n if (col0 < this.lastCol0) {\n throw new Error(`Mapping should be added in output order`);\n }\n if (sourceUrl && (sourceLine0 == null || sourceCol0 == null)) {\n throw new Error(`The source location must be provided when a source url is provided`);\n }\n\n this.hasMappings = true;\n this.lastCol0 = col0;\n this.currentLine.push({col0, sourceUrl, sourceLine0, sourceCol0});\n return this;\n }\n\n /**\n * @internal strip this from published d.ts files due to\n * https://github.com/microsoft/TypeScript/issues/36216\n */\n private get currentLine(): Segment[]|null {\n return this.lines.slice(-1)[0];\n }\n\n toJSON(): SourceMap|null {\n if (!this.hasMappings) {\n return null;\n }\n\n const sourcesIndex = new Map<string, number>();\n const sources: string[] = [];\n const sourcesContent: (string|null)[] = [];\n\n Array.from(this.sourcesContent.keys()).forEach((url: string, i: number) => {\n sourcesIndex.set(url, i);\n sources.push(url);\n sourcesContent.push(this.sourcesContent.get(url) || null);\n });\n\n let mappings: string = '';\n let lastCol0: number = 0;\n let lastSourceIndex: number = 0;\n let lastSourceLine0: number = 0;\n let lastSourceCol0: number = 0;\n\n this.lines.forEach(segments => {\n lastCol0 = 0;\n\n mappings += segments\n .map(segment => {\n // zero-based starting column of the line in the generated code\n let segAsStr = toBase64VLQ(segment.col0 - lastCol0);\n lastCol0 = segment.col0;\n\n if (segment.sourceUrl != null) {\n // zero-based index into the “sources” list\n segAsStr +=\n toBase64VLQ(sourcesIndex.get(segment.sourceUrl)! - lastSourceIndex);\n lastSourceIndex = sourcesIndex.get(segment.sourceUrl)!;\n // the zero-based starting line in the original source\n segAsStr += toBase64VLQ(segment.sourceLine0! - lastSourceLine0);\n lastSourceLine0 = segment.sourceLine0!;\n // the zero-based starting column in the original source\n segAsStr += toBase64VLQ(segment.sourceCol0! - lastSourceCol0);\n lastSourceCol0 = segment.sourceCol0!;\n }\n\n return segAsStr;\n })\n .join(',');\n mappings += ';';\n });\n\n mappings = mappings.slice(0, -1);\n\n return {\n 'file': this.file || '',\n 'version': VERSION,\n 'sourceRoot': '',\n 'sources': sources,\n 'sourcesContent': sourcesContent,\n 'mappings': mappings,\n };\n }\n\n toJsComment(): string {\n return this.hasMappings ? '//' + JS_B64_PREFIX + toBase64String(JSON.stringify(this, null, 0)) :\n '';\n }\n}\n\nexport function toBase64String(value: string): string {\n let b64 = '';\n const encoded = utf8Encode(value);\n for (let i = 0; i < encoded.length;) {\n const i1 = encoded[i++];\n const i2 = i < encoded.length ? encoded[i++] : null;\n const i3 = i < encoded.length ? encoded[i++] : null;\n b64 += toBase64Digit(i1 >> 2);\n b64 += toBase64Digit(((i1 & 3) << 4) | (i2 === null ? 0 : i2 >> 4));\n b64 += i2 === null ? '=' : toBase64Digit(((i2 & 15) << 2) | (i3 === null ? 0 : i3 >> 6));\n b64 += i2 === null || i3 === null ? '=' : toBase64Digit(i3 & 63);\n }\n\n return b64;\n}\n\nfunction toBase64VLQ(value: number): string {\n value = value < 0 ? ((-value) << 1) + 1 : value << 1;\n\n let out = '';\n do {\n let digit = value & 31;\n value = value >> 5;\n if (value > 0) {\n digit = digit | 32;\n }\n out += toBase64Digit(digit);\n } while (value > 0);\n\n return out;\n}\n\nconst B64_DIGITS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';\n\nfunction toBase64Digit(value: number): string {\n if (value < 0 || value >= 64) {\n throw new Error(`Can only encode value in the range [0, 63]`);\n }\n\n return B64_DIGITS[value];\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {ParseSourceSpan} from '../parse_util';\n\nimport * as o from './output_ast';\nimport {SourceMapGenerator} from './source_map';\n\nconst _SINGLE_QUOTE_ESCAPE_STRING_RE = /'|\\\\|\\n|\\r|\\$/g;\nconst _LEGAL_IDENTIFIER_RE = /^[$A-Z_][0-9A-Z_$]*$/i;\nconst _INDENT_WITH = ' ';\n\nclass _EmittedLine {\n partsLength = 0;\n parts: string[] = [];\n srcSpans: (ParseSourceSpan|null)[] = [];\n constructor(public indent: number) {}\n}\n\nexport class EmitterVisitorContext {\n static createRoot(): EmitterVisitorContext {\n return new EmitterVisitorContext(0);\n }\n\n private _lines: _EmittedLine[];\n\n constructor(private _indent: number) {\n this._lines = [new _EmittedLine(_indent)];\n }\n\n /**\n * @internal strip this from published d.ts files due to\n * https://github.com/microsoft/TypeScript/issues/36216\n */\n private get _currentLine(): _EmittedLine {\n return this._lines[this._lines.length - 1];\n }\n\n println(from?: {sourceSpan: ParseSourceSpan|null}|null, lastPart: string = ''): void {\n this.print(from || null, lastPart, true);\n }\n\n lineIsEmpty(): boolean {\n return this._currentLine.parts.length === 0;\n }\n\n lineLength(): number {\n return this._currentLine.indent * _INDENT_WITH.length + this._currentLine.partsLength;\n }\n\n print(from: {sourceSpan: ParseSourceSpan|null}|null, part: string, newLine: boolean = false) {\n if (part.length > 0) {\n this._currentLine.parts.push(part);\n this._currentLine.partsLength += part.length;\n this._currentLine.srcSpans.push(from && from.sourceSpan || null);\n }\n if (newLine) {\n this._lines.push(new _EmittedLine(this._indent));\n }\n }\n\n removeEmptyLastLine() {\n if (this.lineIsEmpty()) {\n this._lines.pop();\n }\n }\n\n incIndent() {\n this._indent++;\n if (this.lineIsEmpty()) {\n this._currentLine.indent = this._indent;\n }\n }\n\n decIndent() {\n this._indent--;\n if (this.lineIsEmpty()) {\n this._currentLine.indent = this._indent;\n }\n }\n\n toSource(): string {\n return this.sourceLines\n .map(l => l.parts.length > 0 ? _createIndent(l.indent) + l.parts.join('') : '')\n .join('\\n');\n }\n\n toSourceMapGenerator(genFilePath: string, startsAtLine: number = 0): SourceMapGenerator {\n const map = new SourceMapGenerator(genFilePath);\n\n let firstOffsetMapped = false;\n const mapFirstOffsetIfNeeded = () => {\n if (!firstOffsetMapped) {\n // Add a single space so that tools won't try to load the file from disk.\n // Note: We are using virtual urls like `ng:///`, so we have to\n // provide a content here.\n map.addSource(genFilePath, ' ').addMapping(0, genFilePath, 0, 0);\n firstOffsetMapped = true;\n }\n };\n\n for (let i = 0; i < startsAtLine; i++) {\n map.addLine();\n mapFirstOffsetIfNeeded();\n }\n\n this.sourceLines.forEach((line, lineIdx) => {\n map.addLine();\n\n const spans = line.srcSpans;\n const parts = line.parts;\n let col0 = line.indent * _INDENT_WITH.length;\n let spanIdx = 0;\n // skip leading parts without source spans\n while (spanIdx < spans.length && !spans[spanIdx]) {\n col0 += parts[spanIdx].length;\n spanIdx++;\n }\n if (spanIdx < spans.length && lineIdx === 0 && col0 === 0) {\n firstOffsetMapped = true;\n } else {\n mapFirstOffsetIfNeeded();\n }\n\n while (spanIdx < spans.length) {\n const span = spans[spanIdx]!;\n const source = span.start.file;\n const sourceLine = span.start.line;\n const sourceCol = span.start.col;\n map.addSource(source.url, source.content)\n .addMapping(col0, source.url, sourceLine, sourceCol);\n\n col0 += parts[spanIdx].length;\n spanIdx++;\n\n // assign parts without span or the same span to the previous segment\n while (spanIdx < spans.length && (span === spans[spanIdx] || !spans[spanIdx])) {\n col0 += parts[spanIdx].length;\n spanIdx++;\n }\n }\n });\n\n return map;\n }\n\n spanOf(line: number, column: number): ParseSourceSpan|null {\n const emittedLine = this._lines[line];\n if (emittedLine) {\n let columnsLeft = column - _createIndent(emittedLine.indent).length;\n for (let partIndex = 0; partIndex < emittedLine.parts.length; partIndex++) {\n const part = emittedLine.parts[partIndex];\n if (part.length > columnsLeft) {\n return emittedLine.srcSpans[partIndex];\n }\n columnsLeft -= part.length;\n }\n }\n return null;\n }\n\n /**\n * @internal strip this from published d.ts files due to\n * https://github.com/microsoft/TypeScript/issues/36216\n */\n private get sourceLines(): _EmittedLine[] {\n if (this._lines.length && this._lines[this._lines.length - 1].parts.length === 0) {\n return this._lines.slice(0, -1);\n }\n return this._lines;\n }\n}\n\nexport abstract class AbstractEmitterVisitor implements o.StatementVisitor, o.ExpressionVisitor {\n constructor(private _escapeDollarInStrings: boolean) {}\n\n protected printLeadingComments(stmt: o.Statement, ctx: EmitterVisitorContext): void {\n if (stmt.leadingComments === undefined) {\n return;\n }\n for (const comment of stmt.leadingComments) {\n if (comment instanceof o.JSDocComment) {\n ctx.print(stmt, `/*${comment.toString()}*/`, comment.trailingNewline);\n } else {\n if (comment.multiline) {\n ctx.print(stmt, `/* ${comment.text} */`, comment.trailingNewline);\n } else {\n comment.text.split('\\n').forEach((line) => {\n ctx.println(stmt, `// ${line}`);\n });\n }\n }\n }\n }\n\n visitExpressionStmt(stmt: o.ExpressionStatement, ctx: EmitterVisitorContext): any {\n this.printLeadingComments(stmt, ctx);\n stmt.expr.visitExpression(this, ctx);\n ctx.println(stmt, ';');\n return null;\n }\n\n visitReturnStmt(stmt: o.ReturnStatement, ctx: EmitterVisitorContext): any {\n this.printLeadingComments(stmt, ctx);\n ctx.print(stmt, `return `);\n stmt.value.visitExpression(this, ctx);\n ctx.println(stmt, ';');\n return null;\n }\n\n visitIfStmt(stmt: o.IfStmt, ctx: EmitterVisitorContext): any {\n this.printLeadingComments(stmt, ctx);\n ctx.print(stmt, `if (`);\n stmt.condition.visitExpression(this, ctx);\n ctx.print(stmt, `) {`);\n const hasElseCase = stmt.falseCase != null && stmt.falseCase.length > 0;\n if (stmt.trueCase.length <= 1 && !hasElseCase) {\n ctx.print(stmt, ` `);\n this.visitAllStatements(stmt.trueCase, ctx);\n ctx.removeEmptyLastLine();\n ctx.print(stmt, ` `);\n } else {\n ctx.println();\n ctx.incIndent();\n this.visitAllStatements(stmt.trueCase, ctx);\n ctx.decIndent();\n if (hasElseCase) {\n ctx.println(stmt, `} else {`);\n ctx.incIndent();\n this.visitAllStatements(stmt.falseCase, ctx);\n ctx.decIndent();\n }\n }\n ctx.println(stmt, `}`);\n return null;\n }\n\n abstract visitDeclareVarStmt(stmt: o.DeclareVarStmt, ctx: EmitterVisitorContext): any;\n\n visitWriteVarExpr(expr: o.WriteVarExpr, ctx: EmitterVisitorContext): any {\n const lineWasEmpty = ctx.lineIsEmpty();\n if (!lineWasEmpty) {\n ctx.print(expr, '(');\n }\n ctx.print(expr, `${expr.name} = `);\n expr.value.visitExpression(this, ctx);\n if (!lineWasEmpty) {\n ctx.print(expr, ')');\n }\n return null;\n }\n visitWriteKeyExpr(expr: o.WriteKeyExpr, ctx: EmitterVisitorContext): any {\n const lineWasEmpty = ctx.lineIsEmpty();\n if (!lineWasEmpty) {\n ctx.print(expr, '(');\n }\n expr.receiver.visitExpression(this, ctx);\n ctx.print(expr, `[`);\n expr.index.visitExpression(this, ctx);\n ctx.print(expr, `] = `);\n expr.value.visitExpression(this, ctx);\n if (!lineWasEmpty) {\n ctx.print(expr, ')');\n }\n return null;\n }\n visitWritePropExpr(expr: o.WritePropExpr, ctx: EmitterVisitorContext): any {\n const lineWasEmpty = ctx.lineIsEmpty();\n if (!lineWasEmpty) {\n ctx.print(expr, '(');\n }\n expr.receiver.visitExpression(this, ctx);\n ctx.print(expr, `.${expr.name} = `);\n expr.value.visitExpression(this, ctx);\n if (!lineWasEmpty) {\n ctx.print(expr, ')');\n }\n return null;\n }\n\n visitInvokeFunctionExpr(expr: o.InvokeFunctionExpr, ctx: EmitterVisitorContext): any {\n const shouldParenthesize = expr.fn instanceof o.ArrowFunctionExpr;\n\n if (shouldParenthesize) {\n ctx.print(expr.fn, '(');\n }\n expr.fn.visitExpression(this, ctx);\n if (shouldParenthesize) {\n ctx.print(expr.fn, ')');\n }\n ctx.print(expr, `(`);\n this.visitAllExpressions(expr.args, ctx, ',');\n ctx.print(expr, `)`);\n return null;\n }\n visitTaggedTemplateExpr(expr: o.TaggedTemplateExpr, ctx: EmitterVisitorContext): any {\n expr.tag.visitExpression(this, ctx);\n ctx.print(expr, '`' + expr.template.elements[0].rawText);\n for (let i = 1; i < expr.template.elements.length; i++) {\n ctx.print(expr, '${');\n expr.template.expressions[i - 1].visitExpression(this, ctx);\n ctx.print(expr, `}${expr.template.elements[i].rawText}`);\n }\n ctx.print(expr, '`');\n return null;\n }\n visitWrappedNodeExpr(ast: o.WrappedNodeExpr<any>, ctx: EmitterVisitorContext): any {\n throw new Error('Abstract emitter cannot visit WrappedNodeExpr.');\n }\n visitTypeofExpr(expr: o.TypeofExpr, ctx: EmitterVisitorContext): any {\n ctx.print(expr, 'typeof ');\n expr.expr.visitExpression(this, ctx);\n }\n visitReadVarExpr(ast: o.ReadVarExpr, ctx: EmitterVisitorContext): any {\n ctx.print(ast, ast.name);\n return null;\n }\n visitInstantiateExpr(ast: o.InstantiateExpr, ctx: EmitterVisitorContext): any {\n ctx.print(ast, `new `);\n ast.classExpr.visitExpression(this, ctx);\n ctx.print(ast, `(`);\n this.visitAllExpressions(ast.args, ctx, ',');\n ctx.print(ast, `)`);\n return null;\n }\n\n visitLiteralExpr(ast: o.LiteralExpr, ctx: EmitterVisitorContext): any {\n const value = ast.value;\n if (typeof value === 'string') {\n ctx.print(ast, escapeIdentifier(value, this._escapeDollarInStrings));\n } else {\n ctx.print(ast, `${value}`);\n }\n return null;\n }\n\n visitLocalizedString(ast: o.LocalizedString, ctx: EmitterVisitorContext): any {\n const head = ast.serializeI18nHead();\n ctx.print(ast, '$localize `' + head.raw);\n for (let i = 1; i < ast.messageParts.length; i++) {\n ctx.print(ast, '${');\n ast.expressions[i - 1].visitExpression(this, ctx);\n ctx.print(ast, `}${ast.serializeI18nTemplatePart(i).raw}`);\n }\n ctx.print(ast, '`');\n return null;\n }\n\n abstract visitExternalExpr(ast: o.ExternalExpr, ctx: EmitterVisitorContext): any;\n\n visitConditionalExpr(ast: o.ConditionalExpr, ctx: EmitterVisitorContext): any {\n ctx.print(ast, `(`);\n ast.condition.visitExpression(this, ctx);\n ctx.print(ast, '? ');\n ast.trueCase.visitExpression(this, ctx);\n ctx.print(ast, ': ');\n ast.falseCase!.visitExpression(this, ctx);\n ctx.print(ast, `)`);\n return null;\n }\n\n\n visitDynamicImportExpr(ast: o.DynamicImportExpr, ctx: EmitterVisitorContext) {\n ctx.print(ast, `import(${ast.url})`);\n }\n\n visitNotExpr(ast: o.NotExpr, ctx: EmitterVisitorContext): any {\n ctx.print(ast, '!');\n ast.condition.visitExpression(this, ctx);\n return null;\n }\n abstract visitFunctionExpr(ast: o.FunctionExpr, ctx: EmitterVisitorContext): any;\n abstract visitArrowFunctionExpr(ast: o.ArrowFunctionExpr, context: any): any;\n abstract visitDeclareFunctionStmt(stmt: o.DeclareFunctionStmt, context: any): any;\n\n visitUnaryOperatorExpr(ast: o.UnaryOperatorExpr, ctx: EmitterVisitorContext): any {\n let opStr: string;\n switch (ast.operator) {\n case o.UnaryOperator.Plus:\n opStr = '+';\n break;\n case o.UnaryOperator.Minus:\n opStr = '-';\n break;\n default:\n throw new Error(`Unknown operator ${ast.operator}`);\n }\n if (ast.parens) ctx.print(ast, `(`);\n ctx.print(ast, opStr);\n ast.expr.visitExpression(this, ctx);\n if (ast.parens) ctx.print(ast, `)`);\n return null;\n }\n\n visitBinaryOperatorExpr(ast: o.BinaryOperatorExpr, ctx: EmitterVisitorContext): any {\n let opStr: string;\n switch (ast.operator) {\n case o.BinaryOperator.Equals:\n opStr = '==';\n break;\n case o.BinaryOperator.Identical:\n opStr = '===';\n break;\n case o.BinaryOperator.NotEquals:\n opStr = '!=';\n break;\n case o.BinaryOperator.NotIdentical:\n opStr = '!==';\n break;\n case o.BinaryOperator.And:\n opStr = '&&';\n break;\n case o.BinaryOperator.BitwiseOr:\n opStr = '|';\n break;\n case o.BinaryOperator.BitwiseAnd:\n opStr = '&';\n break;\n case o.BinaryOperator.Or:\n opStr = '||';\n break;\n case o.BinaryOperator.Plus:\n opStr = '+';\n break;\n case o.BinaryOperator.Minus:\n opStr = '-';\n break;\n case o.BinaryOperator.Divide:\n opStr = '/';\n break;\n case o.BinaryOperator.Multiply:\n opStr = '*';\n break;\n case o.BinaryOperator.Modulo:\n opStr = '%';\n break;\n case o.BinaryOperator.Lower:\n opStr = '<';\n break;\n case o.BinaryOperator.LowerEquals:\n opStr = '<=';\n break;\n case o.BinaryOperator.Bigger:\n opStr = '>';\n break;\n case o.BinaryOperator.BiggerEquals:\n opStr = '>=';\n break;\n case o.BinaryOperator.NullishCoalesce:\n opStr = '??';\n break;\n default:\n throw new Error(`Unknown operator ${ast.operator}`);\n }\n if (ast.parens) ctx.print(ast, `(`);\n ast.lhs.visitExpression(this, ctx);\n ctx.print(ast, ` ${opStr} `);\n ast.rhs.visitExpression(this, ctx);\n if (ast.parens) ctx.print(ast, `)`);\n return null;\n }\n\n visitReadPropExpr(ast: o.ReadPropExpr, ctx: EmitterVisitorContext): any {\n ast.receiver.visitExpression(this, ctx);\n ctx.print(ast, `.`);\n ctx.print(ast, ast.name);\n return null;\n }\n visitReadKeyExpr(ast: o.ReadKeyExpr, ctx: EmitterVisitorContext): any {\n ast.receiver.visitExpression(this, ctx);\n ctx.print(ast, `[`);\n ast.index.visitExpression(this, ctx);\n ctx.print(ast, `]`);\n return null;\n }\n visitLiteralArrayExpr(ast: o.LiteralArrayExpr, ctx: EmitterVisitorContext): any {\n ctx.print(ast, `[`);\n this.visitAllExpressions(ast.entries, ctx, ',');\n ctx.print(ast, `]`);\n return null;\n }\n visitLiteralMapExpr(ast: o.LiteralMapExpr, ctx: EmitterVisitorContext): any {\n ctx.print(ast, `{`);\n this.visitAllObjects(entry => {\n ctx.print(ast, `${escapeIdentifier(entry.key, this._escapeDollarInStrings, entry.quoted)}:`);\n entry.value.visitExpression(this, ctx);\n }, ast.entries, ctx, ',');\n ctx.print(ast, `}`);\n return null;\n }\n visitCommaExpr(ast: o.CommaExpr, ctx: EmitterVisitorContext): any {\n ctx.print(ast, '(');\n this.visitAllExpressions(ast.parts, ctx, ',');\n ctx.print(ast, ')');\n return null;\n }\n visitAllExpressions(expressions: o.Expression[], ctx: EmitterVisitorContext, separator: string):\n void {\n this.visitAllObjects(expr => expr.visitExpression(this, ctx), expressions, ctx, separator);\n }\n\n visitAllObjects<T>(\n handler: (t: T) => void, expressions: T[], ctx: EmitterVisitorContext,\n separator: string): void {\n let incrementedIndent = false;\n for (let i = 0; i < expressions.length; i++) {\n if (i > 0) {\n if (ctx.lineLength() > 80) {\n ctx.print(null, separator, true);\n if (!incrementedIndent) {\n // continuation are marked with double indent.\n ctx.incIndent();\n ctx.incIndent();\n incrementedIndent = true;\n }\n } else {\n ctx.print(null, separator, false);\n }\n }\n handler(expressions[i]);\n }\n if (incrementedIndent) {\n // continuation are marked with double indent.\n ctx.decIndent();\n ctx.decIndent();\n }\n }\n\n visitAllStatements(statements: o.Statement[], ctx: EmitterVisitorContext): void {\n statements.forEach((stmt) => stmt.visitStatement(this, ctx));\n }\n}\n\nexport function escapeIdentifier(\n input: string, escapeDollar: boolean, alwaysQuote: boolean = true): any {\n if (input == null) {\n return null;\n }\n const body = input.replace(_SINGLE_QUOTE_ESCAPE_STRING_RE, (...match: string[]) => {\n if (match[0] == '$') {\n return escapeDollar ? '\\\\$' : '$';\n } else if (match[0] == '\\n') {\n return '\\\\n';\n } else if (match[0] == '\\r') {\n return '\\\\r';\n } else {\n return `\\\\${match[0]}`;\n }\n });\n const requiresQuotes = alwaysQuote || !_LEGAL_IDENTIFIER_RE.test(body);\n return requiresQuotes ? `'${body}'` : body;\n}\n\nfunction _createIndent(count: number): string {\n let res = '';\n for (let i = 0; i < count; i++) {\n res += _INDENT_WITH;\n }\n return res;\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {escapeIdentifier} from '../output/abstract_emitter';\nimport * as o from '../output/output_ast';\n\nimport {Identifiers} from './r3_identifiers';\n\nexport function typeWithParameters(type: o.Expression, numParams: number): o.ExpressionType {\n if (numParams === 0) {\n return o.expressionType(type);\n }\n const params: o.Type[] = [];\n for (let i = 0; i < numParams; i++) {\n params.push(o.DYNAMIC_TYPE);\n }\n return o.expressionType(type, undefined, params);\n}\n\nexport interface R3Reference {\n value: o.Expression;\n type: o.Expression;\n}\n\n/**\n * Result of compilation of a render3 code unit, e.g. component, directive, pipe, etc.\n */\nexport interface R3CompiledExpression {\n expression: o.Expression;\n type: o.Type;\n statements: o.Statement[];\n}\n\nconst ANIMATE_SYMBOL_PREFIX = '@';\nexport function prepareSyntheticPropertyName(name: string) {\n return `${ANIMATE_SYMBOL_PREFIX}${name}`;\n}\n\nexport function prepareSyntheticListenerName(name: string, phase: string) {\n return `${ANIMATE_SYMBOL_PREFIX}${name}.${phase}`;\n}\n\nexport function getSafePropertyAccessString(accessor: string, name: string): string {\n const escapedName = escapeIdentifier(name, false, false);\n return escapedName !== name ? `${accessor}[${escapedName}]` : `${accessor}.${name}`;\n}\n\nexport function prepareSyntheticListenerFunctionName(name: string, phase: string) {\n return `animation_${name}_${phase}`;\n}\n\nexport function jitOnlyGuardedExpression(expr: o.Expression): o.Expression {\n return guardedExpression('ngJitMode', expr);\n}\n\nexport function devOnlyGuardedExpression(expr: o.Expression): o.Expression {\n return guardedExpression('ngDevMode', expr);\n}\n\nexport function guardedExpression(guard: string, expr: o.Expression): o.Expression {\n const guardExpr = new o.ExternalExpr({name: guard, moduleName: null});\n const guardNotDefined = new o.BinaryOperatorExpr(\n o.BinaryOperator.Identical, new o.TypeofExpr(guardExpr), o.literal('undefined'));\n const guardUndefinedOrTrue = new o.BinaryOperatorExpr(\n o.BinaryOperator.Or, guardNotDefined, guardExpr, /* type */ undefined,\n /* sourceSpan */ undefined, true);\n return new o.BinaryOperatorExpr(o.BinaryOperator.And, guardUndefinedOrTrue, expr);\n}\n\nexport function wrapReference(value: any): R3Reference {\n const wrapped = new o.WrappedNodeExpr(value);\n return {value: wrapped, type: wrapped};\n}\n\nexport function refsToArray(refs: R3Reference[], shouldForwardDeclare: boolean): o.Expression {\n const values = o.literalArr(refs.map(ref => ref.value));\n return shouldForwardDeclare ? o.arrowFn([], values) : values;\n}\n\n\n/**\n * Describes an expression that may have been wrapped in a `forwardRef()` guard.\n *\n * This is used when describing expressions that can refer to types that may eagerly reference types\n * that have not yet been defined.\n */\nexport interface MaybeForwardRefExpression<T extends o.Expression = o.Expression> {\n /**\n * The unwrapped expression.\n */\n expression: T;\n /**\n * Specified whether the `expression` contains a reference to something that has not yet been\n * defined, and whether the expression is still wrapped in a `forwardRef()` call.\n *\n * If this value is `ForwardRefHandling.None` then the `expression` is safe to use as-is.\n *\n * Otherwise the `expression` was wrapped in a call to `forwardRef()` and must not be eagerly\n * evaluated. Instead it must be wrapped in a function closure that will be evaluated lazily to\n * allow the definition of the expression to be evaluated first.\n *\n * In full AOT compilation it can be safe to unwrap the `forwardRef()` call up front if the\n * expression will actually be evaluated lazily inside a function call after the value of\n * `expression` has been defined.\n *\n * But in other cases, such as partial AOT compilation or JIT compilation the expression will be\n * evaluated eagerly in top level code so will need to continue to be wrapped in a `forwardRef()`\n * call.\n *\n */\n forwardRef: ForwardRefHandling;\n}\n\nexport function createMayBeForwardRefExpression<T extends o.Expression>(\n expression: T, forwardRef: ForwardRefHandling): MaybeForwardRefExpression<T> {\n return {expression, forwardRef};\n}\n\n/**\n * Convert a `MaybeForwardRefExpression` to an `Expression`, possibly wrapping its expression in a\n * `forwardRef()` call.\n *\n * If `MaybeForwardRefExpression.forwardRef` is `ForwardRefHandling.Unwrapped` then the expression\n * was originally wrapped in a `forwardRef()` call to prevent the value from being eagerly evaluated\n * in the code.\n *\n * See `packages/compiler-cli/src/ngtsc/annotations/src/injectable.ts` and\n * `packages/compiler/src/jit_compiler_facade.ts` for more information.\n */\nexport function convertFromMaybeForwardRefExpression(\n {expression, forwardRef}: MaybeForwardRefExpression): o.Expression {\n switch (forwardRef) {\n case ForwardRefHandling.None:\n case ForwardRefHandling.Wrapped:\n return expression;\n case ForwardRefHandling.Unwrapped:\n return generateForwardRef(expression);\n }\n}\n\n/**\n * Generate an expression that has the given `expr` wrapped in the following form:\n *\n * ```\n * forwardRef(() => expr)\n * ```\n */\nexport function generateForwardRef(expr: o.Expression): o.Expression {\n return o.importExpr(Identifiers.forwardRef).callFn([o.arrowFn([], expr)]);\n}\n\n/**\n * Specifies how a forward ref has been handled in a MaybeForwardRefExpression\n */\nexport const enum ForwardRefHandling {\n /** The expression was not wrapped in a `forwardRef()` call in the first place. */\n None,\n /** The expression is still wrapped in a `forwardRef()` call. */\n Wrapped,\n /** The expression was wrapped in a `forwardRef()` call but has since been unwrapped. */\n Unwrapped,\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nimport {InjectFlags} from '../core';\nimport * as o from '../output/output_ast';\nimport {Identifiers as R3} from '../render3/r3_identifiers';\n\nimport {R3CompiledExpression, R3Reference, typeWithParameters} from './util';\n\n\n/**\n * Metadata required by the factory generator to generate a `factory` function for a type.\n */\nexport interface R3ConstructorFactoryMetadata {\n /**\n * String name of the type being generated (used to name the factory function).\n */\n name: string;\n\n /**\n * An expression representing the interface type being constructed.\n */\n type: R3Reference;\n\n /** Number of arguments for the `type`. */\n typeArgumentCount: number;\n\n /**\n * Regardless of whether `fnOrClass` is a constructor function or a user-defined factory, it\n * may have 0 or more parameters, which will be injected according to the `R3DependencyMetadata`\n * for those parameters. If this is `null`, then the type's constructor is nonexistent and will\n * be inherited from `fnOrClass` which is interpreted as the current type. If this is `'invalid'`,\n * then one or more of the parameters wasn't resolvable and any attempt to use these deps will\n * result in a runtime error.\n */\n deps: R3DependencyMetadata[]|'invalid'|null;\n\n /**\n * Type of the target being created by the factory.\n */\n target: FactoryTarget;\n}\n\nexport enum R3FactoryDelegateType {\n Class = 0,\n Function = 1,\n}\n\nexport interface R3DelegatedFnOrClassMetadata extends R3ConstructorFactoryMetadata {\n delegate: o.Expression;\n delegateType: R3FactoryDelegateType;\n delegateDeps: R3DependencyMetadata[];\n}\n\nexport interface R3ExpressionFactoryMetadata extends R3ConstructorFactoryMetadata {\n expression: o.Expression;\n}\n\nexport type R3FactoryMetadata =\n R3ConstructorFactoryMetadata|R3DelegatedFnOrClassMetadata|R3ExpressionFactoryMetadata;\n\nexport enum FactoryTarget {\n Directive = 0,\n Component = 1,\n Injectable = 2,\n Pipe = 3,\n NgModule = 4,\n}\n\nexport interface R3DependencyMetadata {\n /**\n * An expression representing the token or value to be injected.\n * Or `null` if the dependency could not be resolved - making it invalid.\n */\n token: o.Expression|null;\n\n /**\n * If an @Attribute decorator is present, this is the literal type of the attribute name, or\n * the unknown type if no literal type is available (e.g. the attribute name is an expression).\n * Otherwise it is null;\n */\n attributeNameType: o.Expression|null;\n\n /**\n * Whether the dependency has an @Host qualifier.\n */\n host: boolean;\n\n /**\n * Whether the dependency has an @Optional qualifier.\n */\n optional: boolean;\n\n /**\n * Whether the dependency has an @Self qualifier.\n */\n self: boolean;\n\n /**\n * Whether the dependency has an @SkipSelf qualifier.\n */\n skipSelf: boolean;\n}\n\n/**\n * Construct a factory function expression for the given `R3FactoryMetadata`.\n */\nexport function compileFactoryFunction(meta: R3FactoryMetadata): R3CompiledExpression {\n const t = o.variable('t');\n let baseFactoryVar: o.ReadVarExpr|null = null;\n\n // The type to instantiate via constructor invocation. If there is no delegated factory, meaning\n // this type is always created by constructor invocation, then this is the type-to-create\n // parameter provided by the user (t) if specified, or the current type if not. If there is a\n // delegated factory (which is used to create the current type) then this is only the type-to-\n // create parameter (t).\n const typeForCtor = !isDelegatedFactoryMetadata(meta) ?\n new o.BinaryOperatorExpr(o.BinaryOperator.Or, t, meta.type.value) :\n t;\n\n let ctorExpr: o.Expression|null = null;\n if (meta.deps !== null) {\n // There is a constructor (either explicitly or implicitly defined).\n if (meta.deps !== 'invalid') {\n ctorExpr = new o.InstantiateExpr(typeForCtor, injectDependencies(meta.deps, meta.target));\n }\n } else {\n // There is no constructor, use the base class' factory to construct typeForCtor.\n baseFactoryVar = o.variable(`ɵ${meta.name}_BaseFactory`);\n ctorExpr = baseFactoryVar.callFn([typeForCtor]);\n }\n\n const body: o.Statement[] = [];\n let retExpr: o.Expression|null = null;\n\n function makeConditionalFactory(nonCtorExpr: o.Expression): o.ReadVarExpr {\n const r = o.variable('r');\n body.push(r.set(o.NULL_EXPR).toDeclStmt());\n const ctorStmt = ctorExpr !== null ? r.set(ctorExpr).toStmt() :\n o.importExpr(R3.invalidFactory).callFn([]).toStmt();\n body.push(o.ifStmt(t, [ctorStmt], [r.set(nonCtorExpr).toStmt()]));\n return r;\n }\n\n if (isDelegatedFactoryMetadata(meta)) {\n // This type is created with a delegated factory. If a type parameter is not specified, call\n // the factory instead.\n const delegateArgs = injectDependencies(meta.delegateDeps, meta.target);\n // Either call `new delegate(...)` or `delegate(...)` depending on meta.delegateType.\n const factoryExpr = new (\n meta.delegateType === R3FactoryDelegateType.Class ?\n o.InstantiateExpr :\n o.InvokeFunctionExpr)(meta.delegate, delegateArgs);\n retExpr = makeConditionalFactory(factoryExpr);\n } else if (isExpressionFactoryMetadata(meta)) {\n // TODO(alxhub): decide whether to lower the value here or in the caller\n retExpr = makeConditionalFactory(meta.expression);\n } else {\n retExpr = ctorExpr;\n }\n\n\n if (retExpr === null) {\n // The expression cannot be formed so render an `ɵɵinvalidFactory()` call.\n body.push(o.importExpr(R3.invalidFactory).callFn([]).toStmt());\n } else if (baseFactoryVar !== null) {\n // This factory uses a base factory, so call `ɵɵgetInheritedFactory()` to compute it.\n const getInheritedFactoryCall = o.importExpr(R3.getInheritedFactory).callFn([meta.type.value]);\n // Memoize the base factoryFn: `baseFactory || (baseFactory = ɵɵgetInheritedFactory(...))`\n const baseFactory = new o.BinaryOperatorExpr(\n o.BinaryOperator.Or, baseFactoryVar, baseFactoryVar.set(getInheritedFactoryCall));\n body.push(new o.ReturnStatement(baseFactory.callFn([typeForCtor])));\n } else {\n // This is straightforward factory, just return it.\n body.push(new o.ReturnStatement(retExpr));\n }\n\n let factoryFn: o.Expression = o.fn(\n [new o.FnParam('t', o.DYNAMIC_TYPE)], body, o.INFERRED_TYPE, undefined,\n `${meta.name}_Factory`);\n\n if (baseFactoryVar !== null) {\n // There is a base factory variable so wrap its declaration along with the factory function into\n // an IIFE.\n factoryFn = o.arrowFn([], [\n new o.DeclareVarStmt(baseFactoryVar.name!), new o.ReturnStatement(factoryFn)\n ]).callFn([], /* sourceSpan */ undefined, /* pure */ true);\n }\n\n return {\n expression: factoryFn,\n statements: [],\n type: createFactoryType(meta),\n };\n}\n\nexport function createFactoryType(meta: R3FactoryMetadata) {\n const ctorDepsType =\n meta.deps !== null && meta.deps !== 'invalid' ? createCtorDepsType(meta.deps) : o.NONE_TYPE;\n return o.expressionType(o.importExpr(\n R3.FactoryDeclaration,\n [typeWithParameters(meta.type.type, meta.typeArgumentCount), ctorDepsType]));\n}\n\nfunction injectDependencies(deps: R3DependencyMetadata[], target: FactoryTarget): o.Expression[] {\n return deps.map((dep, index) => compileInjectDependency(dep, target, index));\n}\n\nfunction compileInjectDependency(\n dep: R3DependencyMetadata, target: FactoryTarget, index: number): o.Expression {\n // Interpret the dependency according to its resolved type.\n if (dep.token === null) {\n return o.importExpr(R3.invalidFactoryDep).callFn([o.literal(index)]);\n } else if (dep.attributeNameType === null) {\n // Build up the injection flags according to the metadata.\n const flags = InjectFlags.Default | (dep.self ? InjectFlags.Self : 0) |\n (dep.skipSelf ? InjectFlags.SkipSelf : 0) | (dep.host ? InjectFlags.Host : 0) |\n (dep.optional ? InjectFlags.Optional : 0) |\n (target === FactoryTarget.Pipe ? InjectFlags.ForPipe : 0);\n\n // If this dependency is optional or otherwise has non-default flags, then additional\n // parameters describing how to inject the dependency must be passed to the inject function\n // that's being used.\n let flagsParam: o.LiteralExpr|null =\n (flags !== InjectFlags.Default || dep.optional) ? o.literal(flags) : null;\n\n // Build up the arguments to the injectFn call.\n const injectArgs = [dep.token];\n if (flagsParam) {\n injectArgs.push(flagsParam);\n }\n const injectFn = getInjectFn(target);\n return o.importExpr(injectFn).callFn(injectArgs);\n } else {\n // The `dep.attributeTypeName` value is defined, which indicates that this is an `@Attribute()`\n // type dependency. For the generated JS we still want to use the `dep.token` value in case the\n // name given for the attribute is not a string literal. For example given `@Attribute(foo())`,\n // we want to generate `ɵɵinjectAttribute(foo())`.\n //\n // The `dep.attributeTypeName` is only actually used (in `createCtorDepType()`) to generate\n // typings.\n return o.importExpr(R3.injectAttribute).callFn([dep.token]);\n }\n}\n\nfunction createCtorDepsType(deps: R3DependencyMetadata[]): o.Type {\n let hasTypes = false;\n const attributeTypes = deps.map(dep => {\n const type = createCtorDepType(dep);\n if (type !== null) {\n hasTypes = true;\n return type;\n } else {\n return o.literal(null);\n }\n });\n\n if (hasTypes) {\n return o.expressionType(o.literalArr(attributeTypes));\n } else {\n return o.NONE_TYPE;\n }\n}\n\nfunction createCtorDepType(dep: R3DependencyMetadata): o.LiteralMapExpr|null {\n const entries: {key: string, quoted: boolean, value: o.Expression}[] = [];\n\n if (dep.attributeNameType !== null) {\n entries.push({key: 'attribute', value: dep.attributeNameType, quoted: false});\n }\n if (dep.optional) {\n entries.push({key: 'optional', value: o.literal(true), quoted: false});\n }\n if (dep.host) {\n entries.push({key: 'host', value: o.literal(true), quoted: false});\n }\n if (dep.self) {\n entries.push({key: 'self', value: o.literal(true), quoted: false});\n }\n if (dep.skipSelf) {\n entries.push({key: 'skipSelf', value: o.literal(true), quoted: false});\n }\n\n return entries.length > 0 ? o.literalMap(entries) : null;\n}\n\nexport function isDelegatedFactoryMetadata(meta: R3FactoryMetadata):\n meta is R3DelegatedFnOrClassMetadata {\n return (meta as any).delegateType !== undefined;\n}\n\nexport function isExpressionFactoryMetadata(meta: R3FactoryMetadata):\n meta is R3ExpressionFactoryMetadata {\n return (meta as any).expression !== undefined;\n}\n\nfunction getInjectFn(target: FactoryTarget): o.ExternalReference {\n switch (target) {\n case FactoryTarget.Component:\n case FactoryTarget.Directive:\n case FactoryTarget.Pipe:\n return R3.directiveInject;\n case FactoryTarget.NgModule:\n case FactoryTarget.Injectable:\n default:\n return R3.inject;\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nexport enum TagContentType {\n RAW_TEXT,\n ESCAPABLE_RAW_TEXT,\n PARSABLE_DATA\n}\n\nexport interface TagDefinition {\n closedByParent: boolean;\n implicitNamespacePrefix: string|null;\n isVoid: boolean;\n ignoreFirstLf: boolean;\n canSelfClose: boolean;\n preventNamespaceInheritance: boolean;\n\n isClosedByChild(name: string): boolean;\n getContentType(prefix?: string): TagContentType;\n}\n\nexport function splitNsName(elementName: string, fatal: boolean = true): [string|null, string] {\n if (elementName[0] != ':') {\n return [null, elementName];\n }\n\n const colonIndex = elementName.indexOf(':', 1);\n\n if (colonIndex === -1) {\n if (fatal) {\n throw new Error(`Unsupported format \"${elementName}\" expecting \":namespace:name\"`);\n } else {\n return [null, elementName];\n }\n }\n\n return [elementName.slice(1, colonIndex), elementName.slice(colonIndex + 1)];\n}\n\n// `<ng-container>` tags work the same regardless the namespace\nexport function isNgContainer(tagName: string): boolean {\n return splitNsName(tagName)[1] === 'ng-container';\n}\n\n// `<ng-content>` tags work the same regardless the namespace\nexport function isNgContent(tagName: string): boolean {\n return splitNsName(tagName)[1] === 'ng-content';\n}\n\n// `<ng-template>` tags work the same regardless the namespace\nexport function isNgTemplate(tagName: string): boolean {\n return splitNsName(tagName)[1] === 'ng-template';\n}\n\nexport function getNsPrefix(fullName: string): string;\nexport function getNsPrefix(fullName: null): null;\nexport function getNsPrefix(fullName: string|null): string|null {\n return fullName === null ? null : splitNsName(fullName)[0];\n}\n\nexport function mergeNsAndName(prefix: string, localName: string): string {\n return prefix ? `:${prefix}:${localName}` : localName;\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {SecurityContext} from '../core';\nimport {AST, ASTWithSource, BindingType, BoundElementProperty, ParsedEvent, ParsedEventType} from '../expression_parser/ast';\nimport {I18nMeta} from '../i18n/i18n_ast';\nimport {ParseSourceSpan} from '../parse_util';\n\nexport interface Node {\n sourceSpan: ParseSourceSpan;\n visit<Result>(visitor: Visitor<Result>): Result;\n}\n\n/**\n * This is an R3 `Node`-like wrapper for a raw `html.Comment` node. We do not currently\n * require the implementation of a visitor for Comments as they are only collected at\n * the top-level of the R3 AST, and only if `Render3ParseOptions['collectCommentNodes']`\n * is true.\n */\nexport class Comment implements Node {\n constructor(public value: string, public sourceSpan: ParseSourceSpan) {}\n visit<Result>(_visitor: Visitor<Result>): Result {\n throw new Error('visit() not implemented for Comment');\n }\n}\n\nexport class Text implements Node {\n constructor(public value: string, public sourceSpan: ParseSourceSpan) {}\n visit<Result>(visitor: Visitor<Result>): Result {\n return visitor.visitText(this);\n }\n}\n\nexport class BoundText implements Node {\n constructor(public value: AST, public sourceSpan: ParseSourceSpan, public i18n?: I18nMeta) {}\n visit<Result>(visitor: Visitor<Result>): Result {\n return visitor.visitBoundText(this);\n }\n}\n\n/**\n * Represents a text attribute in the template.\n *\n * `valueSpan` may not be present in cases where there is no value `<div a></div>`.\n * `keySpan` may also not be present for synthetic attributes from ICU expansions.\n */\nexport class TextAttribute implements Node {\n constructor(\n public name: string, public value: string, public sourceSpan: ParseSourceSpan,\n readonly keySpan: ParseSourceSpan|undefined, public valueSpan?: ParseSourceSpan,\n public i18n?: I18nMeta) {}\n visit<Result>(visitor: Visitor<Result>): Result {\n return visitor.visitTextAttribute(this);\n }\n}\n\nexport class BoundAttribute implements Node {\n constructor(\n public name: string, public type: BindingType, public securityContext: SecurityContext,\n public value: AST, public unit: string|null, public sourceSpan: ParseSourceSpan,\n readonly keySpan: ParseSourceSpan, public valueSpan: ParseSourceSpan|undefined,\n public i18n: I18nMeta|undefined) {}\n\n static fromBoundElementProperty(prop: BoundElementProperty, i18n?: I18nMeta): BoundAttribute {\n if (prop.keySpan === undefined) {\n throw new Error(\n `Unexpected state: keySpan must be defined for bound attributes but was not for ${\n prop.name}: ${prop.sourceSpan}`);\n }\n return new BoundAttribute(\n prop.name, prop.type, prop.securityContext, prop.value, prop.unit, prop.sourceSpan,\n prop.keySpan, prop.valueSpan, i18n);\n }\n\n visit<Result>(visitor: Visitor<Result>): Result {\n return visitor.visitBoundAttribute(this);\n }\n}\n\nexport class BoundEvent implements Node {\n constructor(\n public name: string, public type: ParsedEventType, public handler: AST,\n public target: string|null, public phase: string|null, public sourceSpan: ParseSourceSpan,\n public handlerSpan: ParseSourceSpan, readonly keySpan: ParseSourceSpan) {}\n\n static fromParsedEvent(event: ParsedEvent) {\n const target: string|null = event.type === ParsedEventType.Regular ? event.targetOrPhase : null;\n const phase: string|null =\n event.type === ParsedEventType.Animation ? event.targetOrPhase : null;\n if (event.keySpan === undefined) {\n throw new Error(`Unexpected state: keySpan must be defined for bound event but was not for ${\n event.name}: ${event.sourceSpan}`);\n }\n return new BoundEvent(\n event.name, event.type, event.handler, target, phase, event.sourceSpan, event.handlerSpan,\n event.keySpan);\n }\n\n visit<Result>(visitor: Visitor<Result>): Result {\n return visitor.visitBoundEvent(this);\n }\n}\n\nexport class Element implements Node {\n constructor(\n public name: string, public attributes: TextAttribute[], public inputs: BoundAttribute[],\n public outputs: BoundEvent[], public children: Node[], public references: Reference[],\n public sourceSpan: ParseSourceSpan, public startSourceSpan: ParseSourceSpan,\n public endSourceSpan: ParseSourceSpan|null, public i18n?: I18nMeta) {}\n visit<Result>(visitor: Visitor<Result>): Result {\n return visitor.visitElement(this);\n }\n}\n\nexport abstract class DeferredTrigger implements Node {\n constructor(\n public nameSpan: ParseSourceSpan|null, public sourceSpan: ParseSourceSpan,\n public prefetchSpan: ParseSourceSpan|null, public whenOrOnSourceSpan: ParseSourceSpan|null) {}\n\n visit<Result>(visitor: Visitor<Result>): Result {\n return visitor.visitDeferredTrigger(this);\n }\n}\n\nexport class BoundDeferredTrigger extends DeferredTrigger {\n constructor(\n public value: AST, sourceSpan: ParseSourceSpan, prefetchSpan: ParseSourceSpan|null,\n whenSourceSpan: ParseSourceSpan) {\n // BoundDeferredTrigger is for 'when' triggers. These aren't really \"triggers\" and don't have a\n // nameSpan. Trigger names are the built in event triggers like hover, interaction, etc.\n super(/** nameSpan */ null, sourceSpan, prefetchSpan, whenSourceSpan);\n }\n}\n\nexport class IdleDeferredTrigger extends DeferredTrigger {}\n\nexport class ImmediateDeferredTrigger extends DeferredTrigger {}\n\nexport class HoverDeferredTrigger extends DeferredTrigger {\n constructor(\n public reference: string|null, nameSpan: ParseSourceSpan, sourceSpan: ParseSourceSpan,\n prefetchSpan: ParseSourceSpan|null, onSourceSpan: ParseSourceSpan|null) {\n super(nameSpan, sourceSpan, prefetchSpan, onSourceSpan);\n }\n}\n\nexport class TimerDeferredTrigger extends DeferredTrigger {\n constructor(\n public delay: number, nameSpan: ParseSourceSpan, sourceSpan: ParseSourceSpan,\n prefetchSpan: ParseSourceSpan|null, onSourceSpan: ParseSourceSpan|null) {\n super(nameSpan, sourceSpan, prefetchSpan, onSourceSpan);\n }\n}\n\nexport class InteractionDeferredTrigger extends DeferredTrigger {\n constructor(\n public reference: string|null, nameSpan: ParseSourceSpan, sourceSpan: ParseSourceSpan,\n prefetchSpan: ParseSourceSpan|null, onSourceSpan: ParseSourceSpan|null) {\n super(nameSpan, sourceSpan, prefetchSpan, onSourceSpan);\n }\n}\n\nexport class ViewportDeferredTrigger extends DeferredTrigger {\n constructor(\n public reference: string|null, nameSpan: ParseSourceSpan, sourceSpan: ParseSourceSpan,\n prefetchSpan: ParseSourceSpan|null, onSourceSpan: ParseSourceSpan|null) {\n super(nameSpan, sourceSpan, prefetchSpan, onSourceSpan);\n }\n}\n\nexport class BlockNode {\n constructor(\n public nameSpan: ParseSourceSpan, public sourceSpan: ParseSourceSpan,\n public startSourceSpan: ParseSourceSpan, public endSourceSpan: ParseSourceSpan|null) {}\n}\n\nexport class DeferredBlockPlaceholder extends BlockNode implements Node {\n constructor(\n public children: Node[], public minimumTime: number|null, nameSpan: ParseSourceSpan,\n sourceSpan: ParseSourceSpan, startSourceSpan: ParseSourceSpan,\n endSourceSpan: ParseSourceSpan|null, public i18n?: I18nMeta) {\n super(nameSpan, sourceSpan, startSourceSpan, endSourceSpan);\n }\n\n visit<Result>(visitor: Visitor<Result>): Result {\n return visitor.visitDeferredBlockPlaceholder(this);\n }\n}\n\nexport class DeferredBlockLoading extends BlockNode implements Node {\n constructor(\n public children: Node[], public afterTime: number|null, public minimumTime: number|null,\n nameSpan: ParseSourceSpan, sourceSpan: ParseSourceSpan, startSourceSpan: ParseSourceSpan,\n endSourceSpan: ParseSourceSpan|null, public i18n?: I18nMeta) {\n super(nameSpan, sourceSpan, startSourceSpan, endSourceSpan);\n }\n\n visit<Result>(visitor: Visitor<Result>): Result {\n return visitor.visitDeferredBlockLoading(this);\n }\n}\n\nexport class DeferredBlockError extends BlockNode implements Node {\n constructor(\n public children: Node[], nameSpan: ParseSourceSpan, sourceSpan: ParseSourceSpan,\n startSourceSpan: ParseSourceSpan, endSourceSpan: ParseSourceSpan|null,\n public i18n?: I18nMeta) {\n super(nameSpan, sourceSpan, startSourceSpan, endSourceSpan);\n }\n\n visit<Result>(visitor: Visitor<Result>): Result {\n return visitor.visitDeferredBlockError(this);\n }\n}\n\nexport interface DeferredBlockTriggers {\n when?: BoundDeferredTrigger;\n idle?: IdleDeferredTrigger;\n immediate?: ImmediateDeferredTrigger;\n hover?: HoverDeferredTrigger;\n timer?: TimerDeferredTrigger;\n interaction?: InteractionDeferredTrigger;\n viewport?: ViewportDeferredTrigger;\n}\n\nexport class DeferredBlock extends BlockNode implements Node {\n readonly triggers: Readonly<DeferredBlockTriggers>;\n readonly prefetchTriggers: Readonly<DeferredBlockTriggers>;\n private readonly definedTriggers: (keyof DeferredBlockTriggers)[];\n private readonly definedPrefetchTriggers: (keyof DeferredBlockTriggers)[];\n\n constructor(\n public children: Node[], triggers: DeferredBlockTriggers,\n prefetchTriggers: DeferredBlockTriggers, public placeholder: DeferredBlockPlaceholder|null,\n public loading: DeferredBlockLoading|null, public error: DeferredBlockError|null,\n nameSpan: ParseSourceSpan, sourceSpan: ParseSourceSpan, public mainBlockSpan: ParseSourceSpan,\n startSourceSpan: ParseSourceSpan, endSourceSpan: ParseSourceSpan|null,\n public i18n?: I18nMeta) {\n super(nameSpan, sourceSpan, startSourceSpan, endSourceSpan);\n this.triggers = triggers;\n this.prefetchTriggers = prefetchTriggers;\n // We cache the keys since we know that they won't change and we\n // don't want to enumarate them every time we're traversing the AST.\n this.definedTriggers = Object.keys(triggers) as (keyof DeferredBlockTriggers)[];\n this.definedPrefetchTriggers = Object.keys(prefetchTriggers) as (keyof DeferredBlockTriggers)[];\n }\n\n visit<Result>(visitor: Visitor<Result>): Result {\n return visitor.visitDeferredBlock(this);\n }\n\n visitAll(visitor: Visitor<unknown>): void {\n this.visitTriggers(this.definedTriggers, this.triggers, visitor);\n this.visitTriggers(this.definedPrefetchTriggers, this.prefetchTriggers, visitor);\n visitAll(visitor, this.children);\n const remainingBlocks =\n [this.placeholder, this.loading, this.error].filter(x => x !== null) as Array<Node>;\n visitAll(visitor, remainingBlocks);\n }\n\n private visitTriggers(\n keys: (keyof DeferredBlockTriggers)[], triggers: DeferredBlockTriggers, visitor: Visitor) {\n visitAll(visitor, keys.map(k => triggers[k]!));\n }\n}\n\nexport class SwitchBlock extends BlockNode implements Node {\n constructor(\n public expression: AST, public cases: SwitchBlockCase[],\n /**\n * These blocks are only captured to allow for autocompletion in the language service. They\n * aren't meant to be processed in any other way.\n */\n public unknownBlocks: UnknownBlock[], sourceSpan: ParseSourceSpan,\n startSourceSpan: ParseSourceSpan, endSourceSpan: ParseSourceSpan|null,\n nameSpan: ParseSourceSpan) {\n super(nameSpan, sourceSpan, startSourceSpan, endSourceSpan);\n }\n\n visit<Result>(visitor: Visitor<Result>): Result {\n return visitor.visitSwitchBlock(this);\n }\n}\n\nexport class SwitchBlockCase extends BlockNode implements Node {\n constructor(\n public expression: AST|null, public children: Node[], sourceSpan: ParseSourceSpan,\n startSourceSpan: ParseSourceSpan, endSourceSpan: ParseSourceSpan|null,\n nameSpan: ParseSourceSpan, public i18n?: I18nMeta) {\n super(nameSpan, sourceSpan, startSourceSpan, endSourceSpan);\n }\n\n visit<Result>(visitor: Visitor<Result>): Result {\n return visitor.visitSwitchBlockCase(this);\n }\n}\n\n// Note: this is a weird way to define the properties, but we do it so that we can\n// get strong typing when the context is passed through `Object.values`.\n/** Context variables that can be used inside a `ForLoopBlock`. */\nexport type ForLoopBlockContext =\n Record<'$index'|'$first'|'$last'|'$even'|'$odd'|'$count', Variable>;\n\nexport class ForLoopBlock extends BlockNode implements Node {\n constructor(\n public item: Variable, public expression: ASTWithSource, public trackBy: ASTWithSource,\n public trackKeywordSpan: ParseSourceSpan, public contextVariables: ForLoopBlockContext,\n public children: Node[], public empty: ForLoopBlockEmpty|null, sourceSpan: ParseSourceSpan,\n public mainBlockSpan: ParseSourceSpan, startSourceSpan: ParseSourceSpan,\n endSourceSpan: ParseSourceSpan|null, nameSpan: ParseSourceSpan, public i18n?: I18nMeta) {\n super(nameSpan, sourceSpan, startSourceSpan, endSourceSpan);\n }\n\n visit<Result>(visitor: Visitor<Result>): Result {\n return visitor.visitForLoopBlock(this);\n }\n}\n\nexport class ForLoopBlockEmpty extends BlockNode implements Node {\n constructor(\n public children: Node[], sourceSpan: ParseSourceSpan, startSourceSpan: ParseSourceSpan,\n endSourceSpan: ParseSourceSpan|null, nameSpan: ParseSourceSpan, public i18n?: I18nMeta) {\n super(nameSpan, sourceSpan, startSourceSpan, endSourceSpan);\n }\n\n visit<Result>(visitor: Visitor<Result>): Result {\n return visitor.visitForLoopBlockEmpty(this);\n }\n}\n\nexport class IfBlock extends BlockNode implements Node {\n constructor(\n public branches: IfBlockBranch[], sourceSpan: ParseSourceSpan,\n startSourceSpan: ParseSourceSpan, endSourceSpan: ParseSourceSpan|null,\n nameSpan: ParseSourceSpan) {\n super(nameSpan, sourceSpan, startSourceSpan, endSourceSpan);\n }\n\n visit<Result>(visitor: Visitor<Result>): Result {\n return visitor.visitIfBlock(this);\n }\n}\n\nexport class IfBlockBranch extends BlockNode implements Node {\n constructor(\n public expression: AST|null, public children: Node[], public expressionAlias: Variable|null,\n sourceSpan: ParseSourceSpan, startSourceSpan: ParseSourceSpan,\n endSourceSpan: ParseSourceSpan|null, nameSpan: ParseSourceSpan, public i18n?: I18nMeta) {\n super(nameSpan, sourceSpan, startSourceSpan, endSourceSpan);\n }\n\n visit<Result>(visitor: Visitor<Result>): Result {\n return visitor.visitIfBlockBranch(this);\n }\n}\n\nexport class UnknownBlock implements Node {\n constructor(\n public name: string, public sourceSpan: ParseSourceSpan, public nameSpan: ParseSourceSpan) {}\n\n visit<Result>(visitor: Visitor<Result>): Result {\n return visitor.visitUnknownBlock(this);\n }\n}\n\nexport class Template implements Node {\n constructor(\n // tagName is the name of the container element, if applicable.\n // `null` is a special case for when there is a structural directive on an `ng-template` so\n // the renderer can differentiate between the synthetic template and the one written in the\n // file.\n public tagName: string|null,\n public attributes: TextAttribute[],\n public inputs: BoundAttribute[],\n public outputs: BoundEvent[],\n public templateAttrs: (BoundAttribute|TextAttribute)[],\n public children: Node[],\n public references: Reference[],\n public variables: Variable[],\n public sourceSpan: ParseSourceSpan,\n public startSourceSpan: ParseSourceSpan,\n public endSourceSpan: ParseSourceSpan|null,\n public i18n?: I18nMeta,\n ) {}\n visit<Result>(visitor: Visitor<Result>): Result {\n return visitor.visitTemplate(this);\n }\n}\n\nexport class Content implements Node {\n readonly name = 'ng-content';\n\n constructor(\n public selector: string, public attributes: TextAttribute[],\n public sourceSpan: ParseSourceSpan, public i18n?: I18nMeta) {}\n visit<Result>(visitor: Visitor<Result>): Result {\n return visitor.visitContent(this);\n }\n}\n\nexport class Variable implements Node {\n constructor(\n public name: string, public value: string, public sourceSpan: ParseSourceSpan,\n readonly keySpan: ParseSourceSpan, public valueSpan?: ParseSourceSpan) {}\n visit<Result>(visitor: Visitor<Result>): Result {\n return visitor.visitVariable(this);\n }\n}\n\nexport class Reference implements Node {\n constructor(\n public name: string, public value: string, public sourceSpan: ParseSourceSpan,\n readonly keySpan: ParseSourceSpan, public valueSpan?: ParseSourceSpan) {}\n visit<Result>(visitor: Visitor<Result>): Result {\n return visitor.visitReference(this);\n }\n}\n\nexport class Icu implements Node {\n constructor(\n public vars: {[name: string]: BoundText},\n public placeholders: {[name: string]: Text|BoundText}, public sourceSpan: ParseSourceSpan,\n public i18n?: I18nMeta) {}\n visit<Result>(visitor: Visitor<Result>): Result {\n return visitor.visitIcu(this);\n }\n}\n\nexport interface Visitor<Result = any> {\n // Returning a truthy value from `visit()` will prevent `visitAll()` from the call to the typed\n // method and result returned will become the result included in `visitAll()`s result array.\n visit?(node: Node): Result;\n\n visitElement(element: Element): Result;\n visitTemplate(template: Template): Result;\n visitContent(content: Content): Result;\n visitVariable(variable: Variable): Result;\n visitReference(reference: Reference): Result;\n visitTextAttribute(attribute: TextAttribute): Result;\n visitBoundAttribute(attribute: BoundAttribute): Result;\n visitBoundEvent(attribute: BoundEvent): Result;\n visitText(text: Text): Result;\n visitBoundText(text: BoundText): Result;\n visitIcu(icu: Icu): Result;\n visitDeferredBlock(deferred: DeferredBlock): Result;\n visitDeferredBlockPlaceholder(block: DeferredBlockPlaceholder): Result;\n visitDeferredBlockError(block: DeferredBlockError): Result;\n visitDeferredBlockLoading(block: DeferredBlockLoading): Result;\n visitDeferredTrigger(trigger: DeferredTrigger): Result;\n visitSwitchBlock(block: SwitchBlock): Result;\n visitSwitchBlockCase(block: SwitchBlockCase): Result;\n visitForLoopBlock(block: ForLoopBlock): Result;\n visitForLoopBlockEmpty(block: ForLoopBlockEmpty): Result;\n visitIfBlock(block: IfBlock): Result;\n visitIfBlockBranch(block: IfBlockBranch): Result;\n visitUnknownBlock(block: UnknownBlock): Result;\n}\n\nexport class RecursiveVisitor implements Visitor<void> {\n visitElement(element: Element): void {\n visitAll(this, element.attributes);\n visitAll(this, element.inputs);\n visitAll(this, element.outputs);\n visitAll(this, element.children);\n visitAll(this, element.references);\n }\n visitTemplate(template: Template): void {\n visitAll(this, template.attributes);\n visitAll(this, template.inputs);\n visitAll(this, template.outputs);\n visitAll(this, template.children);\n visitAll(this, template.references);\n visitAll(this, template.variables);\n }\n visitDeferredBlock(deferred: DeferredBlock): void {\n deferred.visitAll(this);\n }\n visitDeferredBlockPlaceholder(block: DeferredBlockPlaceholder): void {\n visitAll(this, block.children);\n }\n visitDeferredBlockError(block: DeferredBlockError): void {\n visitAll(this, block.children);\n }\n visitDeferredBlockLoading(block: DeferredBlockLoading): void {\n visitAll(this, block.children);\n }\n visitSwitchBlock(block: SwitchBlock): void {\n visitAll(this, block.cases);\n }\n visitSwitchBlockCase(block: SwitchBlockCase): void {\n visitAll(this, block.children);\n }\n visitForLoopBlock(block: ForLoopBlock): void {\n const blockItems = [block.item, ...Object.values(block.contextVariables), ...block.children];\n block.empty && blockItems.push(block.empty);\n visitAll(this, blockItems);\n }\n visitForLoopBlockEmpty(block: ForLoopBlockEmpty): void {\n visitAll(this, block.children);\n }\n visitIfBlock(block: IfBlock): void {\n visitAll(this, block.branches);\n }\n visitIfBlockBranch(block: IfBlockBranch): void {\n const blockItems = block.children;\n block.expressionAlias && blockItems.push(block.expressionAlias);\n visitAll(this, blockItems);\n }\n visitContent(content: Content): void {}\n visitVariable(variable: Variable): void {}\n visitReference(reference: Reference): void {}\n visitTextAttribute(attribute: TextAttribute): void {}\n visitBoundAttribute(attribute: BoundAttribute): void {}\n visitBoundEvent(attribute: BoundEvent): void {}\n visitText(text: Text): void {}\n visitBoundText(text: BoundText): void {}\n visitIcu(icu: Icu): void {}\n visitDeferredTrigger(trigger: DeferredTrigger): void {}\n visitUnknownBlock(block: UnknownBlock): void {}\n}\n\n\nexport function visitAll<Result>(visitor: Visitor<Result>, nodes: Node[]): Result[] {\n const result: Result[] = [];\n if (visitor.visit) {\n for (const node of nodes) {\n visitor.visit(node) || node.visit(visitor);\n }\n } else {\n for (const node of nodes) {\n const newNode = node.visit(visitor);\n if (newNode) {\n result.push(newNode);\n }\n }\n }\n return result;\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {ParseSourceSpan} from '../parse_util';\n\n/**\n * Describes the text contents of a placeholder as it appears in an ICU expression, including its\n * source span information.\n */\nexport interface MessagePlaceholder {\n /** The text contents of the placeholder */\n text: string;\n\n /** The source span of the placeholder */\n sourceSpan: ParseSourceSpan;\n}\n\nexport class Message {\n sources: MessageSpan[];\n id: string;\n /** The ids to use if there are no custom id and if `i18nLegacyMessageIdFormat` is not empty */\n legacyIds: string[] = [];\n\n messageString: string;\n\n /**\n * @param nodes message AST\n * @param placeholders maps placeholder names to static content and their source spans\n * @param placeholderToMessage maps placeholder names to messages (used for nested ICU messages)\n * @param meaning\n * @param description\n * @param customId\n */\n constructor(\n public nodes: Node[], public placeholders: {[phName: string]: MessagePlaceholder},\n public placeholderToMessage: {[phName: string]: Message}, public meaning: string,\n public description: string, public customId: string) {\n this.id = this.customId;\n this.messageString = serializeMessage(this.nodes);\n\n if (nodes.length) {\n this.sources = [{\n filePath: nodes[0].sourceSpan.start.file.url,\n startLine: nodes[0].sourceSpan.start.line + 1,\n startCol: nodes[0].sourceSpan.start.col + 1,\n endLine: nodes[nodes.length - 1].sourceSpan.end.line + 1,\n endCol: nodes[0].sourceSpan.start.col + 1\n }];\n } else {\n this.sources = [];\n }\n }\n}\n\n// line and columns indexes are 1 based\nexport interface MessageSpan {\n filePath: string;\n startLine: number;\n startCol: number;\n endLine: number;\n endCol: number;\n}\n\nexport interface Node {\n sourceSpan: ParseSourceSpan;\n visit(visitor: Visitor, context?: any): any;\n}\n\nexport class Text implements Node {\n constructor(public value: string, public sourceSpan: ParseSourceSpan) {}\n\n visit(visitor: Visitor, context?: any): any {\n return visitor.visitText(this, context);\n }\n}\n\n// TODO(vicb): do we really need this node (vs an array) ?\nexport class Container implements Node {\n constructor(public children: Node[], public sourceSpan: ParseSourceSpan) {}\n\n visit(visitor: Visitor, context?: any): any {\n return visitor.visitContainer(this, context);\n }\n}\n\nexport class Icu implements Node {\n constructor(\n public expression: string, public type: string, public cases: {[k: string]: Node},\n public sourceSpan: ParseSourceSpan, public expressionPlaceholder?: string) {}\n\n visit(visitor: Visitor, context?: any): any {\n return visitor.visitIcu(this, context);\n }\n}\n\nexport class TagPlaceholder implements Node {\n constructor(\n public tag: string, public attrs: {[k: string]: string}, public startName: string,\n public closeName: string, public children: Node[], public isVoid: boolean,\n // TODO sourceSpan should cover all (we need a startSourceSpan and endSourceSpan)\n public sourceSpan: ParseSourceSpan, public startSourceSpan: ParseSourceSpan|null,\n public endSourceSpan: ParseSourceSpan|null) {}\n\n visit(visitor: Visitor, context?: any): any {\n return visitor.visitTagPlaceholder(this, context);\n }\n}\n\nexport class Placeholder implements Node {\n constructor(public value: string, public name: string, public sourceSpan: ParseSourceSpan) {}\n\n visit(visitor: Visitor, context?: any): any {\n return visitor.visitPlaceholder(this, context);\n }\n}\n\nexport class IcuPlaceholder implements Node {\n /** Used to capture a message computed from a previous processing pass (see `setI18nRefs()`). */\n previousMessage?: Message;\n constructor(public value: Icu, public name: string, public sourceSpan: ParseSourceSpan) {}\n\n visit(visitor: Visitor, context?: any): any {\n return visitor.visitIcuPlaceholder(this, context);\n }\n}\n\nexport class BlockPlaceholder implements Node {\n constructor(\n public name: string, public parameters: string[], public startName: string,\n public closeName: string, public children: Node[], public sourceSpan: ParseSourceSpan,\n public startSourceSpan: ParseSourceSpan|null, public endSourceSpan: ParseSourceSpan|null) {}\n\n visit(visitor: Visitor, context?: any): any {\n return visitor.visitBlockPlaceholder(this, context);\n }\n}\n\n/**\n * Each HTML node that is affect by an i18n tag will also have an `i18n` property that is of type\n * `I18nMeta`.\n * This information is either a `Message`, which indicates it is the root of an i18n message, or a\n * `Node`, which indicates is it part of a containing `Message`.\n */\nexport type I18nMeta = Message|Node;\n\nexport interface Visitor {\n visitText(text: Text, context?: any): any;\n visitContainer(container: Container, context?: any): any;\n visitIcu(icu: Icu, context?: any): any;\n visitTagPlaceholder(ph: TagPlaceholder, context?: any): any;\n visitPlaceholder(ph: Placeholder, context?: any): any;\n visitIcuPlaceholder(ph: IcuPlaceholder, context?: any): any;\n visitBlockPlaceholder(ph: BlockPlaceholder, context?: any): any;\n}\n\n// Clone the AST\nexport class CloneVisitor implements Visitor {\n visitText(text: Text, context?: any): Text {\n return new Text(text.value, text.sourceSpan);\n }\n\n visitContainer(container: Container, context?: any): Container {\n const children = container.children.map(n => n.visit(this, context));\n return new Container(children, container.sourceSpan);\n }\n\n visitIcu(icu: Icu, context?: any): Icu {\n const cases: {[k: string]: Node} = {};\n Object.keys(icu.cases).forEach(key => cases[key] = icu.cases[key].visit(this, context));\n const msg = new Icu(icu.expression, icu.type, cases, icu.sourceSpan, icu.expressionPlaceholder);\n return msg;\n }\n\n visitTagPlaceholder(ph: TagPlaceholder, context?: any): TagPlaceholder {\n const children = ph.children.map(n => n.visit(this, context));\n return new TagPlaceholder(\n ph.tag, ph.attrs, ph.startName, ph.closeName, children, ph.isVoid, ph.sourceSpan,\n ph.startSourceSpan, ph.endSourceSpan);\n }\n\n visitPlaceholder(ph: Placeholder, context?: any): Placeholder {\n return new Placeholder(ph.value, ph.name, ph.sourceSpan);\n }\n\n visitIcuPlaceholder(ph: IcuPlaceholder, context?: any): IcuPlaceholder {\n return new IcuPlaceholder(ph.value, ph.name, ph.sourceSpan);\n }\n\n visitBlockPlaceholder(ph: BlockPlaceholder, context?: any): BlockPlaceholder {\n const children = ph.children.map(n => n.visit(this, context));\n return new BlockPlaceholder(\n ph.name, ph.parameters, ph.startName, ph.closeName, children, ph.sourceSpan,\n ph.startSourceSpan, ph.endSourceSpan);\n }\n}\n\n// Visit all the nodes recursively\nexport class RecurseVisitor implements Visitor {\n visitText(text: Text, context?: any): any {}\n\n visitContainer(container: Container, context?: any): any {\n container.children.forEach(child => child.visit(this));\n }\n\n visitIcu(icu: Icu, context?: any): any {\n Object.keys(icu.cases).forEach(k => {\n icu.cases[k].visit(this);\n });\n }\n\n visitTagPlaceholder(ph: TagPlaceholder, context?: any): any {\n ph.children.forEach(child => child.visit(this));\n }\n\n visitPlaceholder(ph: Placeholder, context?: any): any {}\n\n visitIcuPlaceholder(ph: IcuPlaceholder, context?: any): any {}\n\n visitBlockPlaceholder(ph: BlockPlaceholder, context?: any): any {\n ph.children.forEach(child => child.visit(this));\n }\n}\n\n\n/**\n * Serialize the message to the Localize backtick string format that would appear in compiled code.\n */\nfunction serializeMessage(messageNodes: Node[]): string {\n const visitor = new LocalizeMessageStringVisitor();\n const str = messageNodes.map(n => n.visit(visitor)).join('');\n return str;\n}\n\nclass LocalizeMessageStringVisitor implements Visitor {\n visitText(text: Text): any {\n return text.value;\n }\n\n visitContainer(container: Container): any {\n return container.children.map(child => child.visit(this)).join('');\n }\n\n visitIcu(icu: Icu): any {\n const strCases =\n Object.keys(icu.cases).map((k: string) => `${k} {${icu.cases[k].visit(this)}}`);\n return `{${icu.expressionPlaceholder}, ${icu.type}, ${strCases.join(' ')}}`;\n }\n\n visitTagPlaceholder(ph: TagPlaceholder): any {\n const children = ph.children.map(child => child.visit(this)).join('');\n return `{$${ph.startName}}${children}{$${ph.closeName}}`;\n }\n\n visitPlaceholder(ph: Placeholder): any {\n return `{$${ph.name}}`;\n }\n\n visitIcuPlaceholder(ph: IcuPlaceholder): any {\n return `{$${ph.name}}`;\n }\n\n visitBlockPlaceholder(ph: BlockPlaceholder): any {\n const children = ph.children.map(child => child.visit(this)).join('');\n return `{$${ph.startName}}${children}{$${ph.closeName}}`;\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as i18n from '../i18n_ast';\n\nexport abstract class Serializer {\n // - The `placeholders` and `placeholderToMessage` properties are irrelevant in the input messages\n // - The `id` contains the message id that the serializer is expected to use\n // - Placeholder names are already map to public names using the provided mapper\n abstract write(messages: i18n.Message[], locale: string|null): string;\n\n abstract load(content: string, url: string):\n {locale: string|null, i18nNodesByMsgId: {[msgId: string]: i18n.Node[]}};\n\n abstract digest(message: i18n.Message): string;\n\n // Creates a name mapper, see `PlaceholderMapper`\n // Returning `null` means that no name mapping is used.\n createNameMapper(message: i18n.Message): PlaceholderMapper|null {\n return null;\n }\n}\n\n/**\n * A `PlaceholderMapper` converts placeholder names from internal to serialized representation and\n * back.\n *\n * It should be used for serialization format that put constraints on the placeholder names.\n */\nexport interface PlaceholderMapper {\n toPublicName(internalName: string): string|null;\n\n toInternalName(publicName: string): string|null;\n}\n\n/**\n * A simple mapper that take a function to transform an internal name to a public name\n */\nexport class SimplePlaceholderMapper extends i18n.RecurseVisitor implements PlaceholderMapper {\n private internalToPublic: {[k: string]: string} = {};\n private publicToNextId: {[k: string]: number} = {};\n private publicToInternal: {[k: string]: string} = {};\n\n // create a mapping from the message\n constructor(message: i18n.Message, private mapName: (name: string) => string) {\n super();\n message.nodes.forEach(node => node.visit(this));\n }\n\n toPublicName(internalName: string): string|null {\n return this.internalToPublic.hasOwnProperty(internalName) ?\n this.internalToPublic[internalName] :\n null;\n }\n\n toInternalName(publicName: string): string|null {\n return this.publicToInternal.hasOwnProperty(publicName) ? this.publicToInternal[publicName] :\n null;\n }\n\n override visitText(text: i18n.Text, context?: any): any {\n return null;\n }\n\n override visitTagPlaceholder(ph: i18n.TagPlaceholder, context?: any): any {\n this.visitPlaceholderName(ph.startName);\n super.visitTagPlaceholder(ph, context);\n this.visitPlaceholderName(ph.closeName);\n }\n\n override visitPlaceholder(ph: i18n.Placeholder, context?: any): any {\n this.visitPlaceholderName(ph.name);\n }\n\n override visitBlockPlaceholder(ph: i18n.BlockPlaceholder, context?: any): any {\n this.visitPlaceholderName(ph.startName);\n super.visitBlockPlaceholder(ph, context);\n this.visitPlaceholderName(ph.closeName);\n }\n\n override visitIcuPlaceholder(ph: i18n.IcuPlaceholder, context?: any): any {\n this.visitPlaceholderName(ph.name);\n }\n\n // XMB placeholders could only contains A-Z, 0-9 and _\n private visitPlaceholderName(internalName: string): void {\n if (!internalName || this.internalToPublic.hasOwnProperty(internalName)) {\n return;\n }\n\n let publicName = this.mapName(internalName);\n\n if (this.publicToInternal.hasOwnProperty(publicName)) {\n // Create a new XMB when it has already been used\n const nextId = this.publicToNextId[publicName];\n this.publicToNextId[publicName] = nextId + 1;\n publicName = `${publicName}_${nextId}`;\n } else {\n this.publicToNextId[publicName] = 1;\n }\n\n this.internalToPublic[internalName] = publicName;\n this.publicToInternal[publicName] = internalName;\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nexport interface IVisitor {\n visitTag(tag: Tag): any;\n visitText(text: Text): any;\n visitDeclaration(decl: Declaration): any;\n visitDoctype(doctype: Doctype): any;\n}\n\nclass _Visitor implements IVisitor {\n visitTag(tag: Tag): string {\n const strAttrs = this._serializeAttributes(tag.attrs);\n\n if (tag.children.length == 0) {\n return `<${tag.name}${strAttrs}/>`;\n }\n\n const strChildren = tag.children.map(node => node.visit(this));\n return `<${tag.name}${strAttrs}>${strChildren.join('')}</${tag.name}>`;\n }\n\n visitText(text: Text): string {\n return text.value;\n }\n\n visitDeclaration(decl: Declaration): string {\n return `<?xml${this._serializeAttributes(decl.attrs)} ?>`;\n }\n\n private _serializeAttributes(attrs: {[k: string]: string}) {\n const strAttrs = Object.keys(attrs).map((name: string) => `${name}=\"${attrs[name]}\"`).join(' ');\n return strAttrs.length > 0 ? ' ' + strAttrs : '';\n }\n\n visitDoctype(doctype: Doctype): any {\n return `<!DOCTYPE ${doctype.rootTag} [\\n${doctype.dtd}\\n]>`;\n }\n}\n\nconst _visitor = new _Visitor();\n\nexport function serialize(nodes: Node[]): string {\n return nodes.map((node: Node): string => node.visit(_visitor)).join('');\n}\n\nexport interface Node {\n visit(visitor: IVisitor): any;\n}\n\nexport class Declaration implements Node {\n public attrs: {[k: string]: string} = {};\n\n constructor(unescapedAttrs: {[k: string]: string}) {\n Object.keys(unescapedAttrs).forEach((k: string) => {\n this.attrs[k] = escapeXml(unescapedAttrs[k]);\n });\n }\n\n visit(visitor: IVisitor): any {\n return visitor.visitDeclaration(this);\n }\n}\n\nexport class Doctype implements Node {\n constructor(public rootTag: string, public dtd: string) {}\n\n visit(visitor: IVisitor): any {\n return visitor.visitDoctype(this);\n }\n}\n\nexport class Tag implements Node {\n public attrs: {[k: string]: string} = {};\n\n constructor(\n public name: string, unescapedAttrs: {[k: string]: string} = {},\n public children: Node[] = []) {\n Object.keys(unescapedAttrs).forEach((k: string) => {\n this.attrs[k] = escapeXml(unescapedAttrs[k]);\n });\n }\n\n visit(visitor: IVisitor): any {\n return visitor.visitTag(this);\n }\n}\n\nexport class Text implements Node {\n value: string;\n constructor(unescapedValue: string) {\n this.value = escapeXml(unescapedValue);\n }\n\n visit(visitor: IVisitor): any {\n return visitor.visitText(this);\n }\n}\n\nexport class CR extends Text {\n constructor(ws: number = 0) {\n super(`\\n${new Array(ws + 1).join(' ')}`);\n }\n}\n\nconst _ESCAPED_CHARS: [RegExp, string][] = [\n [/&/g, '&'],\n [/\"/g, '"'],\n [/'/g, '''],\n [/</g, '<'],\n [/>/g, '>'],\n];\n\n// Escape `_ESCAPED_CHARS` characters in the given text with encoded entities\nexport function escapeXml(text: string): string {\n return _ESCAPED_CHARS.reduce(\n (text: string, entry: [RegExp, string]) => text.replace(entry[0], entry[1]), text);\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {decimalDigest} from '../digest';\nimport * as i18n from '../i18n_ast';\n\nimport {PlaceholderMapper, Serializer, SimplePlaceholderMapper} from './serializer';\nimport * as xml from './xml_helper';\n\nconst _MESSAGES_TAG = 'messagebundle';\nconst _MESSAGE_TAG = 'msg';\nconst _PLACEHOLDER_TAG = 'ph';\nconst _EXAMPLE_TAG = 'ex';\nconst _SOURCE_TAG = 'source';\n\nconst _DOCTYPE = `<!ELEMENT messagebundle (msg)*>\n<!ATTLIST messagebundle class CDATA #IMPLIED>\n\n<!ELEMENT msg (#PCDATA|ph|source)*>\n<!ATTLIST msg id CDATA #IMPLIED>\n<!ATTLIST msg seq CDATA #IMPLIED>\n<!ATTLIST msg name CDATA #IMPLIED>\n<!ATTLIST msg desc CDATA #IMPLIED>\n<!ATTLIST msg meaning CDATA #IMPLIED>\n<!ATTLIST msg obsolete (obsolete) #IMPLIED>\n<!ATTLIST msg xml:space (default|preserve) \"default\">\n<!ATTLIST msg is_hidden CDATA #IMPLIED>\n\n<!ELEMENT source (#PCDATA)>\n\n<!ELEMENT ph (#PCDATA|ex)*>\n<!ATTLIST ph name CDATA #REQUIRED>\n\n<!ELEMENT ex (#PCDATA)>`;\n\nexport class Xmb extends Serializer {\n override write(messages: i18n.Message[], locale: string|null): string {\n const exampleVisitor = new ExampleVisitor();\n const visitor = new _Visitor();\n let rootNode = new xml.Tag(_MESSAGES_TAG);\n\n messages.forEach(message => {\n const attrs: {[k: string]: string} = {id: message.id};\n\n if (message.description) {\n attrs['desc'] = message.description;\n }\n\n if (message.meaning) {\n attrs['meaning'] = message.meaning;\n }\n\n let sourceTags: xml.Tag[] = [];\n message.sources.forEach((source: i18n.MessageSpan) => {\n sourceTags.push(new xml.Tag(\n _SOURCE_TAG, {},\n [new xml.Text(`${source.filePath}:${source.startLine}${\n source.endLine !== source.startLine ? ',' + source.endLine : ''}`)]));\n });\n\n rootNode.children.push(\n new xml.CR(2),\n new xml.Tag(_MESSAGE_TAG, attrs, [...sourceTags, ...visitor.serialize(message.nodes)]));\n });\n\n rootNode.children.push(new xml.CR());\n\n return xml.serialize([\n new xml.Declaration({version: '1.0', encoding: 'UTF-8'}),\n new xml.CR(),\n new xml.Doctype(_MESSAGES_TAG, _DOCTYPE),\n new xml.CR(),\n exampleVisitor.addDefaultExamples(rootNode),\n new xml.CR(),\n ]);\n }\n\n override load(content: string, url: string):\n {locale: string, i18nNodesByMsgId: {[msgId: string]: i18n.Node[]}} {\n throw new Error('Unsupported');\n }\n\n override digest(message: i18n.Message): string {\n return digest(message);\n }\n\n\n override createNameMapper(message: i18n.Message): PlaceholderMapper {\n return new SimplePlaceholderMapper(message, toPublicName);\n }\n}\n\nclass _Visitor implements i18n.Visitor {\n visitText(text: i18n.Text, context?: any): xml.Node[] {\n return [new xml.Text(text.value)];\n }\n\n visitContainer(container: i18n.Container, context: any): xml.Node[] {\n const nodes: xml.Node[] = [];\n container.children.forEach((node: i18n.Node) => nodes.push(...node.visit(this)));\n return nodes;\n }\n\n visitIcu(icu: i18n.Icu, context?: any): xml.Node[] {\n const nodes = [new xml.Text(`{${icu.expressionPlaceholder}, ${icu.type}, `)];\n\n Object.keys(icu.cases).forEach((c: string) => {\n nodes.push(new xml.Text(`${c} {`), ...icu.cases[c].visit(this), new xml.Text(`} `));\n });\n\n nodes.push(new xml.Text(`}`));\n\n return nodes;\n }\n\n visitTagPlaceholder(ph: i18n.TagPlaceholder, context?: any): xml.Node[] {\n const startTagAsText = new xml.Text(`<${ph.tag}>`);\n const startEx = new xml.Tag(_EXAMPLE_TAG, {}, [startTagAsText]);\n // TC requires PH to have a non empty EX, and uses the text node to show the \"original\" value.\n const startTagPh =\n new xml.Tag(_PLACEHOLDER_TAG, {name: ph.startName}, [startEx, startTagAsText]);\n if (ph.isVoid) {\n // void tags have no children nor closing tags\n return [startTagPh];\n }\n\n const closeTagAsText = new xml.Text(`</${ph.tag}>`);\n const closeEx = new xml.Tag(_EXAMPLE_TAG, {}, [closeTagAsText]);\n // TC requires PH to have a non empty EX, and uses the text node to show the \"original\" value.\n const closeTagPh =\n new xml.Tag(_PLACEHOLDER_TAG, {name: ph.closeName}, [closeEx, closeTagAsText]);\n\n return [startTagPh, ...this.serialize(ph.children), closeTagPh];\n }\n\n visitPlaceholder(ph: i18n.Placeholder, context?: any): xml.Node[] {\n const interpolationAsText = new xml.Text(`{{${ph.value}}}`);\n // Example tag needs to be not-empty for TC.\n const exTag = new xml.Tag(_EXAMPLE_TAG, {}, [interpolationAsText]);\n return [\n // TC requires PH to have a non empty EX, and uses the text node to show the \"original\" value.\n new xml.Tag(_PLACEHOLDER_TAG, {name: ph.name}, [exTag, interpolationAsText])\n ];\n }\n\n visitBlockPlaceholder(ph: i18n.BlockPlaceholder, context?: any): xml.Node[] {\n const startAsText = new xml.Text(`@${ph.name}`);\n const startEx = new xml.Tag(_EXAMPLE_TAG, {}, [startAsText]);\n // TC requires PH to have a non empty EX, and uses the text node to show the \"original\" value.\n const startTagPh = new xml.Tag(_PLACEHOLDER_TAG, {name: ph.startName}, [startEx, startAsText]);\n\n const closeAsText = new xml.Text(`}`);\n const closeEx = new xml.Tag(_EXAMPLE_TAG, {}, [closeAsText]);\n // TC requires PH to have a non empty EX, and uses the text node to show the \"original\" value.\n const closeTagPh = new xml.Tag(_PLACEHOLDER_TAG, {name: ph.closeName}, [closeEx, closeAsText]);\n\n return [startTagPh, ...this.serialize(ph.children), closeTagPh];\n }\n\n visitIcuPlaceholder(ph: i18n.IcuPlaceholder, context?: any): xml.Node[] {\n const icuExpression = ph.value.expression;\n const icuType = ph.value.type;\n const icuCases = Object.keys(ph.value.cases).map((value: string) => value + ' {...}').join(' ');\n const icuAsText = new xml.Text(`{${icuExpression}, ${icuType}, ${icuCases}}`);\n const exTag = new xml.Tag(_EXAMPLE_TAG, {}, [icuAsText]);\n return [\n // TC requires PH to have a non empty EX, and uses the text node to show the \"original\" value.\n new xml.Tag(_PLACEHOLDER_TAG, {name: ph.name}, [exTag, icuAsText])\n ];\n }\n\n serialize(nodes: i18n.Node[]): xml.Node[] {\n return [].concat(...nodes.map(node => node.visit(this)));\n }\n}\n\nexport function digest(message: i18n.Message): string {\n return decimalDigest(message);\n}\n\n// TC requires at least one non-empty example on placeholders\nclass ExampleVisitor implements xml.IVisitor {\n addDefaultExamples(node: xml.Node): xml.Node {\n node.visit(this);\n return node;\n }\n\n visitTag(tag: xml.Tag): void {\n if (tag.name === _PLACEHOLDER_TAG) {\n if (!tag.children || tag.children.length == 0) {\n const exText = new xml.Text(tag.attrs['name'] || '...');\n tag.children = [new xml.Tag(_EXAMPLE_TAG, {}, [exText])];\n }\n } else if (tag.children) {\n tag.children.forEach(node => node.visit(this));\n }\n }\n\n visitText(text: xml.Text): void {}\n visitDeclaration(decl: xml.Declaration): void {}\n visitDoctype(doctype: xml.Doctype): void {}\n}\n\n// XMB/XTB placeholders can only contain A-Z, 0-9 and _\nexport function toPublicName(internalName: string): string {\n return internalName.toUpperCase().replace(/[^A-Z0-9_]/g, '_');\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nimport * as i18n from '../../../i18n/i18n_ast';\nimport {toPublicName} from '../../../i18n/serializers/xmb';\nimport * as html from '../../../ml_parser/ast';\nimport * as o from '../../../output/output_ast';\nimport * as t from '../../r3_ast';\n\n/* Closure variables holding messages must be named `MSG_[A-Z0-9]+` */\nconst CLOSURE_TRANSLATION_VAR_PREFIX = 'MSG_';\n\n/**\n * Prefix for non-`goog.getMsg` i18n-related vars.\n * Note: the prefix uses lowercase characters intentionally due to a Closure behavior that\n * considers variables like `I18N_0` as constants and throws an error when their value changes.\n */\nexport const TRANSLATION_VAR_PREFIX = 'i18n_';\n\n/** Name of the i18n attributes **/\nexport const I18N_ATTR = 'i18n';\nexport const I18N_ATTR_PREFIX = 'i18n-';\n\n/** Prefix of var expressions used in ICUs */\nexport const I18N_ICU_VAR_PREFIX = 'VAR_';\n\n/** Prefix of ICU expressions for post processing */\nexport const I18N_ICU_MAPPING_PREFIX = 'I18N_EXP_';\n\n/** Placeholder wrapper for i18n expressions **/\nexport const I18N_PLACEHOLDER_SYMBOL = '<27>';\n\nexport function isI18nAttribute(name: string): boolean {\n return name === I18N_ATTR || name.startsWith(I18N_ATTR_PREFIX);\n}\n\nexport function isI18nRootNode(meta?: i18n.I18nMeta): meta is i18n.Message {\n return meta instanceof i18n.Message;\n}\n\nexport function isSingleI18nIcu(meta?: i18n.I18nMeta): meta is i18n.I18nMeta&{nodes: [i18n.Icu]} {\n return isI18nRootNode(meta) && meta.nodes.length === 1 && meta.nodes[0] instanceof i18n.Icu;\n}\n\nexport function hasI18nMeta(node: t.Node&{i18n?: i18n.I18nMeta}): boolean {\n return !!node.i18n;\n}\n\nexport function hasI18nAttrs(element: html.Element): boolean {\n return element.attrs.some((attr: html.Attribute) => isI18nAttribute(attr.name));\n}\n\nexport function icuFromI18nMessage(message: i18n.Message) {\n return message.nodes[0] as i18n.IcuPlaceholder;\n}\n\nexport function wrapI18nPlaceholder(content: string|number, contextId: number = 0): string {\n const blockId = contextId > 0 ? `:${contextId}` : '';\n return `${I18N_PLACEHOLDER_SYMBOL}${content}${blockId}${I18N_PLACEHOLDER_SYMBOL}`;\n}\n\nexport function assembleI18nBoundString(\n strings: string[], bindingStartIndex: number = 0, contextId: number = 0): string {\n if (!strings.length) return '';\n let acc = '';\n const lastIdx = strings.length - 1;\n for (let i = 0; i < lastIdx; i++) {\n acc += `${strings[i]}${wrapI18nPlaceholder(bindingStartIndex + i, contextId)}`;\n }\n acc += strings[lastIdx];\n return acc;\n}\n\nexport function getSeqNumberGenerator(startsAt: number = 0): () => number {\n let current = startsAt;\n return () => current++;\n}\n\nexport function placeholdersToParams(placeholders: Map<string, string[]>):\n {[name: string]: o.LiteralExpr} {\n const params: {[name: string]: o.LiteralExpr} = {};\n placeholders.forEach((values: string[], key: string) => {\n params[key] = o.literal(values.length > 1 ? `[${values.join('|')}]` : values[0]);\n });\n return params;\n}\n\nexport function updatePlaceholderMap(map: Map<string, any[]>, name: string, ...values: any[]) {\n const current = map.get(name) || [];\n current.push(...values);\n map.set(name, current);\n}\n\nexport function assembleBoundTextPlaceholders(\n meta: i18n.I18nMeta, bindingStartIndex: number = 0, contextId: number = 0): Map<string, any[]> {\n const startIdx = bindingStartIndex;\n const placeholders = new Map<string, any>();\n const node =\n meta instanceof i18n.Message ? meta.nodes.find(node => node instanceof i18n.Container) : meta;\n if (node) {\n (node as i18n.Container)\n .children\n .filter((child: i18n.Node): child is i18n.Placeholder => child instanceof i18n.Placeholder)\n .forEach((child: i18n.Placeholder, idx: number) => {\n const content = wrapI18nPlaceholder(startIdx + idx, contextId);\n updatePlaceholderMap(placeholders, child.name, content);\n });\n }\n return placeholders;\n}\n\n/**\n * Format the placeholder names in a map of placeholders to expressions.\n *\n * The placeholder names are converted from \"internal\" format (e.g. `START_TAG_DIV_1`) to \"external\"\n * format (e.g. `startTagDiv_1`).\n *\n * @param params A map of placeholder names to expressions.\n * @param useCamelCase whether to camelCase the placeholder name when formatting.\n * @returns A new map of formatted placeholder names to expressions.\n */\nexport function formatI18nPlaceholderNamesInMap(\n params: {[name: string]: o.Expression} = {}, useCamelCase: boolean) {\n const _params: {[key: string]: o.Expression} = {};\n if (params && Object.keys(params).length) {\n Object.keys(params).forEach(\n key => _params[formatI18nPlaceholderName(key, useCamelCase)] = params[key]);\n }\n return _params;\n}\n\n/**\n * Converts internal placeholder names to public-facing format\n * (for example to use in goog.getMsg call).\n * Example: `START_TAG_DIV_1` is converted to `startTagDiv_1`.\n *\n * @param name The placeholder name that should be formatted\n * @returns Formatted placeholder name\n */\nexport function formatI18nPlaceholderName(name: string, useCamelCase: boolean = true): string {\n const publicName = toPublicName(name);\n if (!useCamelCase) {\n return publicName;\n }\n const chunks = publicName.split('_');\n if (chunks.length === 1) {\n // if no \"_\" found - just lowercase the value\n return name.toLowerCase();\n }\n let postfix;\n // eject last element if it's a number\n if (/^\\d+$/.test(chunks[chunks.length - 1])) {\n postfix = chunks.pop();\n }\n let raw = chunks.shift()!.toLowerCase();\n if (chunks.length) {\n raw += chunks.map(c => c.charAt(0).toUpperCase() + c.slice(1).toLowerCase()).join('');\n }\n return postfix ? `${raw}_${postfix}` : raw;\n}\n\n/**\n * Generates a prefix for translation const name.\n *\n * @param extra Additional local prefix that should be injected into translation var name\n * @returns Complete translation const prefix\n */\nexport function getTranslationConstPrefix(extra: string): string {\n return `${CLOSURE_TRANSLATION_VAR_PREFIX}${extra}`.toUpperCase();\n}\n\n/**\n * Generate AST to declare a variable. E.g. `var I18N_1;`.\n * @param variable the name of the variable to declare.\n */\nexport function declareI18nVariable(variable: o.ReadVarExpr): o.Statement {\n return new o.DeclareVarStmt(\n variable.name!, undefined, o.INFERRED_TYPE, undefined, variable.sourceSpan);\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {ConstantPool} from '../../constant_pool';\nimport {InputFlags} from '../../core';\nimport {BindingType, Interpolation} from '../../expression_parser/ast';\nimport {splitNsName} from '../../ml_parser/tags';\nimport * as o from '../../output/output_ast';\nimport {ParseSourceSpan} from '../../parse_util';\nimport {CssSelector} from '../../selector';\nimport * as t from '../r3_ast';\nimport {Identifiers as R3} from '../r3_identifiers';\nimport {ForwardRefHandling} from '../util';\n\nimport {R3QueryMetadata} from './api';\nimport {isI18nAttribute} from './i18n/util';\n\n\n/**\n * Checks whether an object key contains potentially unsafe chars, thus the key should be wrapped in\n * quotes. Note: we do not wrap all keys into quotes, as it may have impact on minification and may\n * not work in some cases when object keys are mangled by a minifier.\n *\n * TODO(FW-1136): this is a temporary solution, we need to come up with a better way of working with\n * inputs that contain potentially unsafe chars.\n */\nexport const UNSAFE_OBJECT_KEY_NAME_REGEXP = /[-.]/;\n\n/** Name of the temporary to use during data binding */\nexport const TEMPORARY_NAME = '_t';\n\n/** Name of the context parameter passed into a template function */\nexport const CONTEXT_NAME = 'ctx';\n\n/** Name of the RenderFlag passed into a template function */\nexport const RENDER_FLAGS = 'rf';\n\n/** The prefix reference variables */\nexport const REFERENCE_PREFIX = '_r';\n\n/** The name of the implicit context reference */\nexport const IMPLICIT_REFERENCE = '$implicit';\n\n/** Non bindable attribute name **/\nexport const NON_BINDABLE_ATTR = 'ngNonBindable';\n\n/** Name for the variable keeping track of the context returned by `ɵɵrestoreView`. */\nexport const RESTORED_VIEW_CONTEXT_NAME = 'restoredCtx';\n\n/** Special value representing a direct access to a template's context. */\nexport const DIRECT_CONTEXT_REFERENCE = '#context';\n\n/**\n * Maximum length of a single instruction chain. Because our output AST uses recursion, we're\n * limited in how many expressions we can nest before we reach the call stack limit. This\n * length is set very conservatively in order to reduce the chance of problems.\n */\nconst MAX_CHAIN_LENGTH = 500;\n\n/** Instructions that support chaining. */\nconst CHAINABLE_INSTRUCTIONS = new Set([\n R3.element,\n R3.elementStart,\n R3.elementEnd,\n R3.elementContainer,\n R3.elementContainerStart,\n R3.elementContainerEnd,\n R3.i18nExp,\n R3.listener,\n R3.classProp,\n R3.syntheticHostListener,\n R3.hostProperty,\n R3.syntheticHostProperty,\n R3.property,\n R3.propertyInterpolate1,\n R3.propertyInterpolate2,\n R3.propertyInterpolate3,\n R3.propertyInterpolate4,\n R3.propertyInterpolate5,\n R3.propertyInterpolate6,\n R3.propertyInterpolate7,\n R3.propertyInterpolate8,\n R3.propertyInterpolateV,\n R3.attribute,\n R3.attributeInterpolate1,\n R3.attributeInterpolate2,\n R3.attributeInterpolate3,\n R3.attributeInterpolate4,\n R3.attributeInterpolate5,\n R3.attributeInterpolate6,\n R3.attributeInterpolate7,\n R3.attributeInterpolate8,\n R3.attributeInterpolateV,\n R3.styleProp,\n R3.stylePropInterpolate1,\n R3.stylePropInterpolate2,\n R3.stylePropInterpolate3,\n R3.stylePropInterpolate4,\n R3.stylePropInterpolate5,\n R3.stylePropInterpolate6,\n R3.stylePropInterpolate7,\n R3.stylePropInterpolate8,\n R3.stylePropInterpolateV,\n R3.textInterpolate,\n R3.textInterpolate1,\n R3.textInterpolate2,\n R3.textInterpolate3,\n R3.textInterpolate4,\n R3.textInterpolate5,\n R3.textInterpolate6,\n R3.textInterpolate7,\n R3.textInterpolate8,\n R3.textInterpolateV,\n R3.templateCreate,\n]);\n\n/**\n * Possible types that can be used to generate the parameters of an instruction call.\n * If the parameters are a function, the function will be invoked at the time the instruction\n * is generated.\n */\nexport type InstructionParams = (o.Expression|o.Expression[])|(() => (o.Expression|o.Expression[]));\n\n/** Necessary information to generate a call to an instruction function. */\nexport interface Instruction {\n span: ParseSourceSpan|null;\n reference: o.ExternalReference;\n paramsOrFn?: InstructionParams;\n}\n\n/** Generates a call to a single instruction. */\nexport function invokeInstruction(\n span: ParseSourceSpan|null, reference: o.ExternalReference,\n params: o.Expression[]): o.Expression {\n return o.importExpr(reference, null, span).callFn(params, span);\n}\n\n/**\n * Creates an allocator for a temporary variable.\n *\n * A variable declaration is added to the statements the first time the allocator is invoked.\n */\nexport function temporaryAllocator(statements: o.Statement[], name: string): () => o.ReadVarExpr {\n let temp: o.ReadVarExpr|null = null;\n return () => {\n if (!temp) {\n statements.push(new o.DeclareVarStmt(TEMPORARY_NAME, undefined, o.DYNAMIC_TYPE));\n temp = o.variable(name);\n }\n return temp;\n };\n}\n\n\nexport function invalid<T>(this: t.Visitor, arg: o.Expression|o.Statement|t.Node): never {\n throw new Error(\n `Invalid state: Visitor ${this.constructor.name} doesn't handle ${arg.constructor.name}`);\n}\n\nexport function asLiteral(value: any): o.Expression {\n if (Array.isArray(value)) {\n return o.literalArr(value.map(asLiteral));\n }\n return o.literal(value, o.INFERRED_TYPE);\n}\n\n/**\n * Serializes inputs and outputs for `defineDirective` and `defineComponent`.\n *\n * This will attempt to generate optimized data structures to minimize memory or\n * file size of fully compiled applications.\n */\nexport function conditionallyCreateDirectiveBindingLiteral(\n map: Record<string, string|{\n classPropertyName: string;\n bindingPropertyName: string;\n transformFunction: o.Expression|null;\n isSignal: boolean,\n }>, forInputs?: boolean): o.Expression|null {\n const keys = Object.getOwnPropertyNames(map);\n\n if (keys.length === 0) {\n return null;\n }\n\n return o.literalMap(keys.map(key => {\n const value = map[key];\n let declaredName: string;\n let publicName: string;\n let minifiedName: string;\n let expressionValue: o.Expression;\n\n if (typeof value === 'string') {\n // canonical syntax: `dirProp: publicProp`\n declaredName = key;\n minifiedName = key;\n publicName = value;\n expressionValue = asLiteral(publicName);\n } else {\n minifiedName = key;\n declaredName = value.classPropertyName;\n publicName = value.bindingPropertyName;\n\n const differentDeclaringName = publicName !== declaredName;\n const hasDecoratorInputTransform = value.transformFunction !== null;\n\n // Build up input flags\n let flags: o.Expression|null = null;\n if (value.isSignal) {\n flags = bitwiseOrInputFlagsExpr(InputFlags.SignalBased, flags);\n }\n if (hasDecoratorInputTransform) {\n flags = bitwiseOrInputFlagsExpr(InputFlags.HasDecoratorInputTransform, flags);\n }\n\n // Inputs, compared to outputs, will track their declared name (for `ngOnChanges`), support\n // decorator input transform functions, or store flag information if there is any.\n if (forInputs && (differentDeclaringName || hasDecoratorInputTransform || flags !== null)) {\n const flagsExpr = flags ?? o.importExpr(R3.InputFlags).prop(InputFlags[InputFlags.None]);\n const result: o.Expression[] = [flagsExpr, asLiteral(publicName)];\n\n if (differentDeclaringName || hasDecoratorInputTransform) {\n result.push(asLiteral(declaredName));\n\n if (hasDecoratorInputTransform) {\n result.push(value.transformFunction!);\n }\n }\n\n expressionValue = o.literalArr(result);\n } else {\n expressionValue = asLiteral(publicName);\n }\n }\n\n return {\n key: minifiedName,\n // put quotes around keys that contain potentially unsafe characters\n quoted: UNSAFE_OBJECT_KEY_NAME_REGEXP.test(minifiedName),\n value: expressionValue,\n };\n }));\n}\n\n/** Gets an output AST expression referencing the given flag. */\nfunction getInputFlagExpr(flag: InputFlags): o.Expression {\n return o.importExpr(R3.InputFlags).prop(InputFlags[flag]);\n}\n\n/** Combines a given input flag with an existing flag expression, if present. */\nfunction bitwiseOrInputFlagsExpr(flag: InputFlags, expr: o.Expression|null): o.Expression {\n if (expr === null) {\n return getInputFlagExpr(flag);\n }\n return getInputFlagExpr(flag).bitwiseOr(expr);\n}\n\n/**\n * Remove trailing null nodes as they are implied.\n */\nexport function trimTrailingNulls(parameters: o.Expression[]): o.Expression[] {\n while (o.isNull(parameters[parameters.length - 1])) {\n parameters.pop();\n }\n return parameters;\n}\n\nexport function getQueryPredicate(\n query: R3QueryMetadata, constantPool: ConstantPool): o.Expression {\n if (Array.isArray(query.predicate)) {\n let predicate: o.Expression[] = [];\n query.predicate.forEach((selector: string): void => {\n // Each item in predicates array may contain strings with comma-separated refs\n // (for ex. 'ref, ref1, ..., refN'), thus we extract individual refs and store them\n // as separate array entities\n const selectors = selector.split(',').map(token => o.literal(token.trim()));\n predicate.push(...selectors);\n });\n return constantPool.getConstLiteral(o.literalArr(predicate), true);\n } else {\n // The original predicate may have been wrapped in a `forwardRef()` call.\n switch (query.predicate.forwardRef) {\n case ForwardRefHandling.None:\n case ForwardRefHandling.Unwrapped:\n return query.predicate.expression;\n case ForwardRefHandling.Wrapped:\n return o.importExpr(R3.resolveForwardRef).callFn([query.predicate.expression]);\n }\n }\n}\n\n/**\n * A representation for an object literal used during codegen of definition objects. The generic\n * type `T` allows to reference a documented type of the generated structure, such that the\n * property names that are set can be resolved to their documented declaration.\n */\nexport class DefinitionMap<T = any> {\n values: {key: string, quoted: boolean, value: o.Expression}[] = [];\n\n set(key: keyof T, value: o.Expression|null): void {\n if (value) {\n const existing = this.values.find(value => value.key === key);\n\n if (existing) {\n existing.value = value;\n } else {\n this.values.push({key: key as string, value, quoted: false});\n }\n }\n }\n\n toLiteralMap(): o.LiteralMapExpr {\n return o.literalMap(this.values);\n }\n}\n\n/**\n * Creates a `CssSelector` from an AST node.\n */\nexport function createCssSelectorFromNode(node: t.Element|t.Template): CssSelector {\n const elementName = node instanceof t.Element ? node.name : 'ng-template';\n const attributes = getAttrsForDirectiveMatching(node);\n const cssSelector = new CssSelector();\n const elementNameNoNs = splitNsName(elementName)[1];\n\n cssSelector.setElement(elementNameNoNs);\n\n Object.getOwnPropertyNames(attributes).forEach((name) => {\n const nameNoNs = splitNsName(name)[1];\n const value = attributes[name];\n\n cssSelector.addAttribute(nameNoNs, value);\n if (name.toLowerCase() === 'class') {\n const classes = value.trim().split(/\\s+/);\n classes.forEach(className => cssSelector.addClassName(className));\n }\n });\n\n return cssSelector;\n}\n\n/**\n * Extract a map of properties to values for a given element or template node, which can be used\n * by the directive matching machinery.\n *\n * @param elOrTpl the element or template in question\n * @return an object set up for directive matching. For attributes on the element/template, this\n * object maps a property name to its (static) value. For any bindings, this map simply maps the\n * property name to an empty string.\n */\nfunction getAttrsForDirectiveMatching(elOrTpl: t.Element|t.Template): {[name: string]: string} {\n const attributesMap: {[name: string]: string} = {};\n\n\n if (elOrTpl instanceof t.Template && elOrTpl.tagName !== 'ng-template') {\n elOrTpl.templateAttrs.forEach(a => attributesMap[a.name] = '');\n } else {\n elOrTpl.attributes.forEach(a => {\n if (!isI18nAttribute(a.name)) {\n attributesMap[a.name] = a.value;\n }\n });\n\n elOrTpl.inputs.forEach(i => {\n if (i.type === BindingType.Property || i.type === BindingType.TwoWay) {\n attributesMap[i.name] = '';\n }\n });\n elOrTpl.outputs.forEach(o => {\n attributesMap[o.name] = '';\n });\n }\n\n return attributesMap;\n}\n\n/**\n * Gets the number of arguments expected to be passed to a generated instruction in the case of\n * interpolation instructions.\n * @param interpolation An interpolation ast\n */\nexport function getInterpolationArgsLength(interpolation: Interpolation) {\n const {expressions, strings} = interpolation;\n if (expressions.length === 1 && strings.length === 2 && strings[0] === '' && strings[1] === '') {\n // If the interpolation has one interpolated value, but the prefix and suffix are both empty\n // strings, we only pass one argument, to a special instruction like `propertyInterpolate` or\n // `textInterpolate`.\n return 1;\n } else {\n return expressions.length + strings.length;\n }\n}\n\n/**\n * Generates the final instruction call statements based on the passed in configuration.\n * Will try to chain instructions as much as possible, if chaining is supported.\n */\nexport function getInstructionStatements(instructions: Instruction[]): o.Statement[] {\n const statements: o.Statement[] = [];\n let pendingExpression: o.Expression|null = null;\n let pendingExpressionType: o.ExternalReference|null = null;\n let chainLength = 0;\n\n for (const current of instructions) {\n const resolvedParams =\n (typeof current.paramsOrFn === 'function' ? current.paramsOrFn() : current.paramsOrFn) ??\n [];\n const params = Array.isArray(resolvedParams) ? resolvedParams : [resolvedParams];\n\n // If the current instruction is the same as the previous one\n // and it can be chained, add another call to the chain.\n if (chainLength < MAX_CHAIN_LENGTH && pendingExpressionType === current.reference &&\n CHAINABLE_INSTRUCTIONS.has(pendingExpressionType)) {\n // We'll always have a pending expression when there's a pending expression type.\n pendingExpression = pendingExpression!.callFn(params, pendingExpression!.sourceSpan);\n chainLength++;\n } else {\n if (pendingExpression !== null) {\n statements.push(pendingExpression.toStmt());\n }\n pendingExpression = invokeInstruction(current.span, current.reference, params);\n pendingExpressionType = current.reference;\n chainLength = 0;\n }\n }\n\n // Since the current instruction adds the previous one to the statements,\n // we may be left with the final one at the end that is still pending.\n if (pendingExpression !== null) {\n statements.push(pendingExpression.toStmt());\n }\n\n return statements;\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as o from './output/output_ast';\nimport {compileFactoryFunction, FactoryTarget, R3DependencyMetadata, R3FactoryDelegateType, R3FactoryMetadata} from './render3/r3_factory';\nimport {Identifiers} from './render3/r3_identifiers';\nimport {convertFromMaybeForwardRefExpression, ForwardRefHandling, generateForwardRef, MaybeForwardRefExpression, R3CompiledExpression, R3Reference, typeWithParameters} from './render3/util';\nimport {DefinitionMap} from './render3/view/util';\n\nexport interface R3InjectableMetadata {\n name: string;\n type: R3Reference;\n typeArgumentCount: number;\n providedIn: MaybeForwardRefExpression;\n useClass?: MaybeForwardRefExpression;\n useFactory?: o.Expression;\n useExisting?: MaybeForwardRefExpression;\n useValue?: MaybeForwardRefExpression;\n deps?: R3DependencyMetadata[];\n}\n\nexport function compileInjectable(\n meta: R3InjectableMetadata, resolveForwardRefs: boolean): R3CompiledExpression {\n let result: {expression: o.Expression, statements: o.Statement[]}|null = null;\n\n const factoryMeta: R3FactoryMetadata = {\n name: meta.name,\n type: meta.type,\n typeArgumentCount: meta.typeArgumentCount,\n deps: [],\n target: FactoryTarget.Injectable,\n };\n\n if (meta.useClass !== undefined) {\n // meta.useClass has two modes of operation. Either deps are specified, in which case `new` is\n // used to instantiate the class with dependencies injected, or deps are not specified and\n // the factory of the class is used to instantiate it.\n //\n // A special case exists for useClass: Type where Type is the injectable type itself and no\n // deps are specified, in which case 'useClass' is effectively ignored.\n\n const useClassOnSelf = meta.useClass.expression.isEquivalent(meta.type.value);\n let deps: R3DependencyMetadata[]|undefined = undefined;\n if (meta.deps !== undefined) {\n deps = meta.deps;\n }\n\n if (deps !== undefined) {\n // factory: () => new meta.useClass(...deps)\n result = compileFactoryFunction({\n ...factoryMeta,\n delegate: meta.useClass.expression,\n delegateDeps: deps,\n delegateType: R3FactoryDelegateType.Class,\n });\n } else if (useClassOnSelf) {\n result = compileFactoryFunction(factoryMeta);\n } else {\n result = {\n statements: [],\n expression: delegateToFactory(\n meta.type.value as o.WrappedNodeExpr<any>,\n meta.useClass.expression as o.WrappedNodeExpr<any>, resolveForwardRefs)\n };\n }\n } else if (meta.useFactory !== undefined) {\n if (meta.deps !== undefined) {\n result = compileFactoryFunction({\n ...factoryMeta,\n delegate: meta.useFactory,\n delegateDeps: meta.deps || [],\n delegateType: R3FactoryDelegateType.Function,\n });\n } else {\n result = {statements: [], expression: o.arrowFn([], meta.useFactory.callFn([]))};\n }\n } else if (meta.useValue !== undefined) {\n // Note: it's safe to use `meta.useValue` instead of the `USE_VALUE in meta` check used for\n // client code because meta.useValue is an Expression which will be defined even if the actual\n // value is undefined.\n result = compileFactoryFunction({\n ...factoryMeta,\n expression: meta.useValue.expression,\n });\n } else if (meta.useExisting !== undefined) {\n // useExisting is an `inject` call on the existing token.\n result = compileFactoryFunction({\n ...factoryMeta,\n expression: o.importExpr(Identifiers.inject).callFn([meta.useExisting.expression]),\n });\n } else {\n result = {\n statements: [],\n expression: delegateToFactory(\n meta.type.value as o.WrappedNodeExpr<any>, meta.type.value as o.WrappedNodeExpr<any>,\n resolveForwardRefs)\n };\n }\n\n const token = meta.type.value;\n\n const injectableProps =\n new DefinitionMap<{token: o.Expression, factory: o.Expression, providedIn: o.Expression}>();\n injectableProps.set('token', token);\n injectableProps.set('factory', result.expression);\n\n // Only generate providedIn property if it has a non-null value\n if ((meta.providedIn.expression as o.LiteralExpr).value !== null) {\n injectableProps.set('providedIn', convertFromMaybeForwardRefExpression(meta.providedIn));\n }\n\n const expression = o.importExpr(Identifiers.ɵɵdefineInjectable)\n .callFn([injectableProps.toLiteralMap()], undefined, true);\n return {\n expression,\n type: createInjectableType(meta),\n statements: result.statements,\n };\n}\n\nexport function createInjectableType(meta: R3InjectableMetadata) {\n return new o.ExpressionType(o.importExpr(\n Identifiers.InjectableDeclaration,\n [typeWithParameters(meta.type.type, meta.typeArgumentCount)]));\n}\n\nfunction delegateToFactory(\n type: o.WrappedNodeExpr<any>, useType: o.WrappedNodeExpr<any>,\n unwrapForwardRefs: boolean): o.Expression {\n if (type.node === useType.node) {\n // The types are the same, so we can simply delegate directly to the type's factory.\n // ```\n // factory: type.ɵfac\n // ```\n return useType.prop('ɵfac');\n }\n\n if (!unwrapForwardRefs) {\n // The type is not wrapped in a `forwardRef()`, so we create a simple factory function that\n // accepts a sub-type as an argument.\n // ```\n // factory: function(t) { return useType.ɵfac(t); }\n // ```\n return createFactoryFunction(useType);\n }\n\n // The useType is actually wrapped in a `forwardRef()` so we need to resolve that before\n // calling its factory.\n // ```\n // factory: function(t) { return core.resolveForwardRef(type).ɵfac(t); }\n // ```\n const unwrappedType = o.importExpr(Identifiers.resolveForwardRef).callFn([useType]);\n return createFactoryFunction(unwrappedType);\n}\n\nfunction createFactoryFunction(type: o.Expression): o.ArrowFunctionExpr {\n return o.arrowFn(\n [new o.FnParam('t', o.DYNAMIC_TYPE)], type.prop('ɵfac').callFn([o.variable('t')]));\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nconst UNUSABLE_INTERPOLATION_REGEXPS = [\n /^\\s*$/, // empty\n /[<>]/, // html tag\n /^[{}]$/, // i18n expansion\n /&(#|[a-z])/i, // character reference,\n /^\\/\\//, // comment\n];\n\nexport function assertInterpolationSymbols(identifier: string, value: any): void {\n if (value != null && !(Array.isArray(value) && value.length == 2)) {\n throw new Error(`Expected '${identifier}' to be an array, [start, end].`);\n } else if (value != null) {\n const start = value[0] as string;\n const end = value[1] as string;\n // Check for unusable interpolation symbols\n UNUSABLE_INTERPOLATION_REGEXPS.forEach(regexp => {\n if (regexp.test(start) || regexp.test(end)) {\n throw new Error(`['${start}', '${end}'] contains unusable interpolation symbol.`);\n }\n });\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {assertInterpolationSymbols} from '../assertions';\n\nexport class InterpolationConfig {\n static fromArray(markers: [string, string]|null): InterpolationConfig {\n if (!markers) {\n return DEFAULT_INTERPOLATION_CONFIG;\n }\n\n assertInterpolationSymbols('interpolation', markers);\n return new InterpolationConfig(markers[0], markers[1]);\n }\n\n constructor(public start: string, public end: string) {}\n}\n\nexport const DEFAULT_INTERPOLATION_CONFIG: InterpolationConfig =\n new InterpolationConfig('{{', '}}');\n\nexport const DEFAULT_CONTAINER_BLOCKS = new Set(['switch']);\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nexport const $EOF = 0;\nexport const $BSPACE = 8;\nexport const $TAB = 9;\nexport const $LF = 10;\nexport const $VTAB = 11;\nexport const $FF = 12;\nexport const $CR = 13;\nexport const $SPACE = 32;\nexport const $BANG = 33;\nexport const $DQ = 34;\nexport const $HASH = 35;\nexport const $$ = 36;\nexport const $PERCENT = 37;\nexport const $AMPERSAND = 38;\nexport const $SQ = 39;\nexport const $LPAREN = 40;\nexport const $RPAREN = 41;\nexport const $STAR = 42;\nexport const $PLUS = 43;\nexport const $COMMA = 44;\nexport const $MINUS = 45;\nexport const $PERIOD = 46;\nexport const $SLASH = 47;\nexport const $COLON = 58;\nexport const $SEMICOLON = 59;\nexport const $LT = 60;\nexport const $EQ = 61;\nexport const $GT = 62;\nexport const $QUESTION = 63;\n\nexport const $0 = 48;\nexport const $7 = 55;\nexport const $9 = 57;\n\nexport const $A = 65;\nexport const $E = 69;\nexport const $F = 70;\nexport const $X = 88;\nexport const $Z = 90;\n\nexport const $LBRACKET = 91;\nexport const $BACKSLASH = 92;\nexport const $RBRACKET = 93;\nexport const $CARET = 94;\nexport const $_ = 95;\n\nexport const $a = 97;\nexport const $b = 98;\nexport const $e = 101;\nexport const $f = 102;\nexport const $n = 110;\nexport const $r = 114;\nexport const $t = 116;\nexport const $u = 117;\nexport const $v = 118;\nexport const $x = 120;\nexport const $z = 122;\n\nexport const $LBRACE = 123;\nexport const $BAR = 124;\nexport const $RBRACE = 125;\nexport const $NBSP = 160;\n\nexport const $PIPE = 124;\nexport const $TILDA = 126;\nexport const $AT = 64;\n\nexport const $BT = 96;\n\nexport function isWhitespace(code: number): boolean {\n return (code >= $TAB && code <= $SPACE) || (code == $NBSP);\n}\n\nexport function isDigit(code: number): boolean {\n return $0 <= code && code <= $9;\n}\n\nexport function isAsciiLetter(code: number): boolean {\n return code >= $a && code <= $z || code >= $A && code <= $Z;\n}\n\nexport function isAsciiHexDigit(code: number): boolean {\n return code >= $a && code <= $f || code >= $A && code <= $F || isDigit(code);\n}\n\nexport function isNewLine(code: number): boolean {\n return code === $LF || code === $CR;\n}\n\nexport function isOctalDigit(code: number): boolean {\n return $0 <= code && code <= $7;\n}\n\nexport function isQuote(code: number): boolean {\n return code === $SQ || code === $DQ || code === $BT;\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nimport * as chars from './chars';\nimport {stringify} from './util';\n\nexport class ParseLocation {\n constructor(\n public file: ParseSourceFile, public offset: number, public line: number,\n public col: number) {}\n\n toString(): string {\n return this.offset != null ? `${this.file.url}@${this.line}:${this.col}` : this.file.url;\n }\n\n moveBy(delta: number): ParseLocation {\n const source = this.file.content;\n const len = source.length;\n let offset = this.offset;\n let line = this.line;\n let col = this.col;\n while (offset > 0 && delta < 0) {\n offset--;\n delta++;\n const ch = source.charCodeAt(offset);\n if (ch == chars.$LF) {\n line--;\n const priorLine =\n source.substring(0, offset - 1).lastIndexOf(String.fromCharCode(chars.$LF));\n col = priorLine > 0 ? offset - priorLine : offset;\n } else {\n col--;\n }\n }\n while (offset < len && delta > 0) {\n const ch = source.charCodeAt(offset);\n offset++;\n delta--;\n if (ch == chars.$LF) {\n line++;\n col = 0;\n } else {\n col++;\n }\n }\n return new ParseLocation(this.file, offset, line, col);\n }\n\n // Return the source around the location\n // Up to `maxChars` or `maxLines` on each side of the location\n getContext(maxChars: number, maxLines: number): {before: string, after: string}|null {\n const content = this.file.content;\n let startOffset = this.offset;\n\n if (startOffset != null) {\n if (startOffset > content.length - 1) {\n startOffset = content.length - 1;\n }\n let endOffset = startOffset;\n let ctxChars = 0;\n let ctxLines = 0;\n\n while (ctxChars < maxChars && startOffset > 0) {\n startOffset--;\n ctxChars++;\n if (content[startOffset] == '\\n') {\n if (++ctxLines == maxLines) {\n break;\n }\n }\n }\n\n ctxChars = 0;\n ctxLines = 0;\n while (ctxChars < maxChars && endOffset < content.length - 1) {\n endOffset++;\n ctxChars++;\n if (content[endOffset] == '\\n') {\n if (++ctxLines == maxLines) {\n break;\n }\n }\n }\n\n return {\n before: content.substring(startOffset, this.offset),\n after: content.substring(this.offset, endOffset + 1),\n };\n }\n\n return null;\n }\n}\n\nexport class ParseSourceFile {\n constructor(public content: string, public url: string) {}\n}\n\nexport class ParseSourceSpan {\n /**\n * Create an object that holds information about spans of tokens/nodes captured during\n * lexing/parsing of text.\n *\n * @param start\n * The location of the start of the span (having skipped leading trivia).\n * Skipping leading trivia makes source-spans more \"user friendly\", since things like HTML\n * elements will appear to begin at the start of the opening tag, rather than at the start of any\n * leading trivia, which could include newlines.\n *\n * @param end\n * The location of the end of the span.\n *\n * @param fullStart\n * The start of the token without skipping the leading trivia.\n * This is used by tooling that splits tokens further, such as extracting Angular interpolations\n * from text tokens. Such tooling creates new source-spans relative to the original token's\n * source-span. If leading trivia characters have been skipped then the new source-spans may be\n * incorrectly offset.\n *\n * @param details\n * Additional information (such as identifier names) that should be associated with the span.\n */\n constructor(\n public start: ParseLocation, public end: ParseLocation,\n public fullStart: ParseLocation = start, public details: string|null = null) {}\n\n toString(): string {\n return this.start.file.content.substring(this.start.offset, this.end.offset);\n }\n}\n\nexport enum ParseErrorLevel {\n WARNING,\n ERROR,\n}\n\nexport class ParseError {\n constructor(\n public span: ParseSourceSpan, public msg: string,\n public level: ParseErrorLevel = ParseErrorLevel.ERROR) {}\n\n contextualMessage(): string {\n const ctx = this.span.start.getContext(100, 3);\n return ctx ? `${this.msg} (\"${ctx.before}[${ParseErrorLevel[this.level]} ->]${ctx.after}\")` :\n this.msg;\n }\n\n toString(): string {\n const details = this.span.details ? `, ${this.span.details}` : '';\n return `${this.contextualMessage()}: ${this.span.start}${details}`;\n }\n}\n\n/**\n * Generates Source Span object for a given R3 Type for JIT mode.\n *\n * @param kind Component or Directive.\n * @param typeName name of the Component or Directive.\n * @param sourceUrl reference to Component or Directive source.\n * @returns instance of ParseSourceSpan that represent a given Component or Directive.\n */\nexport function r3JitTypeSourceSpan(\n kind: string, typeName: string, sourceUrl: string): ParseSourceSpan {\n const sourceFileName = `in ${kind} ${typeName} in ${sourceUrl}`;\n const sourceFile = new ParseSourceFile('', sourceFileName);\n return new ParseSourceSpan(\n new ParseLocation(sourceFile, -1, -1, -1), new ParseLocation(sourceFile, -1, -1, -1));\n}\n\nlet _anonymousTypeIndex = 0;\n\nexport function identifierName(compileIdentifier: CompileIdentifierMetadata|null|undefined): string|\n null {\n if (!compileIdentifier || !compileIdentifier.reference) {\n return null;\n }\n const ref = compileIdentifier.reference;\n if (ref['__anonymousType']) {\n return ref['__anonymousType'];\n }\n if (ref['__forward_ref__']) {\n // We do not want to try to stringify a `forwardRef()` function because that would cause the\n // inner function to be evaluated too early, defeating the whole point of the `forwardRef`.\n return '__forward_ref__';\n }\n let identifier = stringify(ref);\n if (identifier.indexOf('(') >= 0) {\n // case: anonymous functions!\n identifier = `anonymous_${_anonymousTypeIndex++}`;\n ref['__anonymousType'] = identifier;\n } else {\n identifier = sanitizeIdentifier(identifier);\n }\n return identifier;\n}\n\nexport interface CompileIdentifierMetadata {\n reference: any;\n}\n\nexport function sanitizeIdentifier(name: string): string {\n return name.replace(/\\W/g, '_');\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n\nimport {AbstractEmitterVisitor, EmitterVisitorContext, escapeIdentifier} from './abstract_emitter';\nimport * as o from './output_ast';\n\n/**\n * In TypeScript, tagged template functions expect a \"template object\", which is an array of\n * \"cooked\" strings plus a `raw` property that contains an array of \"raw\" strings. This is\n * typically constructed with a function called `__makeTemplateObject(cooked, raw)`, but it may not\n * be available in all environments.\n *\n * This is a JavaScript polyfill that uses __makeTemplateObject when it's available, but otherwise\n * creates an inline helper with the same functionality.\n *\n * In the inline function, if `Object.defineProperty` is available we use that to attach the `raw`\n * array.\n */\nconst makeTemplateObjectPolyfill =\n '(this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,\"raw\",{value:t}):e.raw=t,e})';\n\nexport abstract class AbstractJsEmitterVisitor extends AbstractEmitterVisitor {\n constructor() {\n super(false);\n }\n\n override visitWrappedNodeExpr(ast: o.WrappedNodeExpr<any>, ctx: EmitterVisitorContext): any {\n throw new Error('Cannot emit a WrappedNodeExpr in Javascript.');\n }\n\n override visitDeclareVarStmt(stmt: o.DeclareVarStmt, ctx: EmitterVisitorContext): any {\n ctx.print(stmt, `var ${stmt.name}`);\n if (stmt.value) {\n ctx.print(stmt, ' = ');\n stmt.value.visitExpression(this, ctx);\n }\n ctx.println(stmt, `;`);\n return null;\n }\n override visitTaggedTemplateExpr(ast: o.TaggedTemplateExpr, ctx: EmitterVisitorContext): any {\n // The following convoluted piece of code is effectively the downlevelled equivalent of\n // ```\n // tag`...`\n // ```\n // which is effectively like:\n // ```\n // tag(__makeTemplateObject(cooked, raw), expression1, expression2, ...);\n // ```\n const elements = ast.template.elements;\n ast.tag.visitExpression(this, ctx);\n ctx.print(ast, `(${makeTemplateObjectPolyfill}(`);\n ctx.print(ast, `[${elements.map(part => escapeIdentifier(part.text, false)).join(', ')}], `);\n ctx.print(ast, `[${elements.map(part => escapeIdentifier(part.rawText, false)).join(', ')}])`);\n ast.template.expressions.forEach(expression => {\n ctx.print(ast, ', ');\n expression.visitExpression(this, ctx);\n });\n ctx.print(ast, ')');\n return null;\n }\n override visitFunctionExpr(ast: o.FunctionExpr, ctx: EmitterVisitorContext): any {\n ctx.print(ast, `function${ast.name ? ' ' + ast.name : ''}(`);\n this._visitParams(ast.params, ctx);\n ctx.println(ast, `) {`);\n ctx.incIndent();\n this.visitAllStatements(ast.statements, ctx);\n ctx.decIndent();\n ctx.print(ast, `}`);\n return null;\n }\n override visitArrowFunctionExpr(ast: o.ArrowFunctionExpr, ctx: EmitterVisitorContext): any {\n ctx.print(ast, '(');\n this._visitParams(ast.params, ctx);\n ctx.print(ast, ') =>');\n\n if (Array.isArray(ast.body)) {\n ctx.println(ast, `{`);\n ctx.incIndent();\n this.visitAllStatements(ast.body, ctx);\n ctx.decIndent();\n ctx.print(ast, `}`);\n } else {\n const isObjectLiteral = ast.body instanceof o.LiteralMapExpr;\n\n if (isObjectLiteral) {\n ctx.print(ast, '(');\n }\n\n ast.body.visitExpression(this, ctx);\n\n if (isObjectLiteral) {\n ctx.print(ast, ')');\n }\n }\n\n return null;\n }\n override visitDeclareFunctionStmt(stmt: o.DeclareFunctionStmt, ctx: EmitterVisitorContext): any {\n ctx.print(stmt, `function ${stmt.name}(`);\n this._visitParams(stmt.params, ctx);\n ctx.println(stmt, `) {`);\n ctx.incIndent();\n this.visitAllStatements(stmt.statements, ctx);\n ctx.decIndent();\n ctx.println(stmt, `}`);\n return null;\n }\n override visitLocalizedString(ast: o.LocalizedString, ctx: EmitterVisitorContext): any {\n // The following convoluted piece of code is effectively the downlevelled equivalent of\n // ```\n // $localize `...`\n // ```\n // which is effectively like:\n // ```\n // $localize(__makeTemplateObject(cooked, raw), expression1, expression2, ...);\n // ```\n ctx.print(ast, `$localize(${makeTemplateObjectPolyfill}(`);\n const parts = [ast.serializeI18nHead()];\n for (let i = 1; i < ast.messageParts.length; i++) {\n parts.push(ast.serializeI18nTemplatePart(i));\n }\n ctx.print(ast, `[${parts.map(part => escapeIdentifier(part.cooked, false)).join(', ')}], `);\n ctx.print(ast, `[${parts.map(part => escapeIdentifier(part.raw, false)).join(', ')}])`);\n ast.expressions.forEach(expression => {\n ctx.print(ast, ', ');\n expression.visitExpression(this, ctx);\n });\n ctx.print(ast, ')');\n return null;\n }\n\n private _visitParams(params: o.FnParam[], ctx: EmitterVisitorContext): void {\n this.visitAllObjects(param => ctx.print(null, param.name), params, ctx, ',');\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @fileoverview\n * A module to facilitate use of a Trusted Types policy within the JIT\n * compiler. It lazily constructs the Trusted Types policy, providing helper\n * utilities for promoting strings to Trusted Types. When Trusted Types are not\n * available, strings are used as a fallback.\n * @security All use of this module is security-sensitive and should go through\n * security review.\n */\n\nimport {global} from '../util';\n\n/**\n * While Angular only uses Trusted Types internally for the time being,\n * references to Trusted Types could leak into our core.d.ts, which would force\n * anyone compiling against @angular/core to provide the @types/trusted-types\n * package in their compilation unit.\n *\n * Until https://github.com/microsoft/TypeScript/issues/30024 is resolved, we\n * will keep Angular's public API surface free of references to Trusted Types.\n * For internal and semi-private APIs that need to reference Trusted Types, the\n * minimal type definitions for the Trusted Types API provided by this module\n * should be used instead. They are marked as \"declare\" to prevent them from\n * being renamed by compiler optimization.\n *\n * Adapted from\n * https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/trusted-types/index.d.ts\n * but restricted to the API surface used within Angular.\n */\n\nexport declare interface TrustedScript {\n __brand__: 'TrustedScript';\n}\n\nexport declare interface TrustedTypePolicyFactory {\n createPolicy(policyName: string, policyOptions: {\n createScript?: (input: string) => string,\n }): TrustedTypePolicy;\n}\n\nexport declare interface TrustedTypePolicy {\n createScript(input: string): TrustedScript;\n}\n\n\n/**\n * The Trusted Types policy, or null if Trusted Types are not\n * enabled/supported, or undefined if the policy has not been created yet.\n */\nlet policy: TrustedTypePolicy|null|undefined;\n\n/**\n * Returns the Trusted Types policy, or null if Trusted Types are not\n * enabled/supported. The first call to this function will create the policy.\n */\nfunction getPolicy(): TrustedTypePolicy|null {\n if (policy === undefined) {\n const trustedTypes = global['trustedTypes'] as TrustedTypePolicyFactory | undefined;\n policy = null;\n\n if (trustedTypes) {\n try {\n policy = trustedTypes.createPolicy('angular#unsafe-jit', {\n createScript: (s: string) => s,\n });\n } catch {\n // trustedTypes.createPolicy throws if called with a name that is\n // already registered, even in report-only mode. Until the API changes,\n // catch the error not to break the applications functionally. In such\n // cases, the code will fall back to using strings.\n }\n }\n }\n return policy;\n}\n\n/**\n * Unsafely promote a string to a TrustedScript, falling back to strings when\n * Trusted Types are not available.\n * @security In particular, it must be assured that the provided string will\n * never cause an XSS vulnerability if used in a context that will be\n * interpreted and executed as a script by a browser, e.g. when calling eval.\n */\nfunction trustedScriptFromString(script: string): TrustedScript|string {\n return getPolicy()?.createScript(script) || script;\n}\n\n/**\n * Unsafely call the Function constructor with the given string arguments.\n * @security This is a security-sensitive function; any use of this function\n * must go through security review. In particular, it must be assured that it\n * is only called from the JIT compiler, as use in other code can lead to XSS\n * vulnerabilities.\n */\nexport function newTrustedFunctionForJIT(...args: string[]): Function {\n if (!global['trustedTypes']) {\n // In environments that don't support Trusted Types, fall back to the most\n // straightforward implementation:\n return new Function(...args);\n }\n\n // Chrome currently does not support passing TrustedScript to the Function\n // constructor. The following implements the workaround proposed on the page\n // below, where the Chromium bug is also referenced:\n // https://github.com/w3c/webappsec-trusted-types/wiki/Trusted-Types-for-function-constructor\n const fnArgs = args.slice(0, -1).join(',');\n const fnBody = args[args.length - 1];\n const body = `(function anonymous(${fnArgs}\n) { ${fnBody}\n})`;\n\n // Using eval directly confuses the compiler and prevents this module from\n // being stripped out of JS binaries even if not used. The global['eval']\n // indirection fixes that.\n const fn = global['eval'](trustedScriptFromString(body) as string) as Function;\n if (fn.bind === undefined) {\n // Workaround for a browser bug that only exists in Chrome 83, where passing\n // a TrustedScript to eval just returns the TrustedScript back without\n // evaluating it. In that case, fall back to the most straightforward\n // implementation:\n return new Function(...args);\n }\n\n // To completely mimic the behavior of calling \"new Function\", two more\n // things need to happen:\n // 1. Stringifying the resulting function should return its source code\n fn.toString = () => body;\n // 2. When calling the resulting function, `this` should refer to `global`\n return fn.bind(global);\n\n // When Trusted Types support in Function constructors is widely available,\n // the implementation of this function can be simplified to:\n // return new Function(...args.map(a => trustedScriptFromString(a)));\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {identifierName} from '../parse_util';\n\nimport {EmitterVisitorContext} from './abstract_emitter';\nimport {AbstractJsEmitterVisitor} from './abstract_js_emitter';\nimport * as o from './output_ast';\nimport {newTrustedFunctionForJIT} from './output_jit_trusted_types';\n\nexport interface ExternalReferenceResolver {\n resolveExternalReference(ref: o.ExternalReference): unknown;\n}\n\n/**\n * A helper class to manage the evaluation of JIT generated code.\n */\nexport class JitEvaluator {\n /**\n *\n * @param sourceUrl The URL of the generated code.\n * @param statements An array of Angular statement AST nodes to be evaluated.\n * @param refResolver Resolves `o.ExternalReference`s into values.\n * @param createSourceMaps If true then create a source-map for the generated code and include it\n * inline as a source-map comment.\n * @returns A map of all the variables in the generated code.\n */\n evaluateStatements(\n sourceUrl: string, statements: o.Statement[], refResolver: ExternalReferenceResolver,\n createSourceMaps: boolean): {[key: string]: any} {\n const converter = new JitEmitterVisitor(refResolver);\n const ctx = EmitterVisitorContext.createRoot();\n // Ensure generated code is in strict mode\n if (statements.length > 0 && !isUseStrictStatement(statements[0])) {\n statements = [\n o.literal('use strict').toStmt(),\n ...statements,\n ];\n }\n converter.visitAllStatements(statements, ctx);\n converter.createReturnStmt(ctx);\n return this.evaluateCode(sourceUrl, ctx, converter.getArgs(), createSourceMaps);\n }\n\n /**\n * Evaluate a piece of JIT generated code.\n * @param sourceUrl The URL of this generated code.\n * @param ctx A context object that contains an AST of the code to be evaluated.\n * @param vars A map containing the names and values of variables that the evaluated code might\n * reference.\n * @param createSourceMap If true then create a source-map for the generated code and include it\n * inline as a source-map comment.\n * @returns The result of evaluating the code.\n */\n evaluateCode(\n sourceUrl: string, ctx: EmitterVisitorContext, vars: {[key: string]: any},\n createSourceMap: boolean): any {\n let fnBody = `\"use strict\";${ctx.toSource()}\\n//# sourceURL=${sourceUrl}`;\n const fnArgNames: string[] = [];\n const fnArgValues: any[] = [];\n for (const argName in vars) {\n fnArgValues.push(vars[argName]);\n fnArgNames.push(argName);\n }\n if (createSourceMap) {\n // using `new Function(...)` generates a header, 1 line of no arguments, 2 lines otherwise\n // E.g. ```\n // function anonymous(a,b,c\n // /**/) { ... }```\n // We don't want to hard code this fact, so we auto detect it via an empty function first.\n const emptyFn = newTrustedFunctionForJIT(...fnArgNames.concat('return null;')).toString();\n const headerLines = emptyFn.slice(0, emptyFn.indexOf('return null;')).split('\\n').length - 1;\n fnBody += `\\n${ctx.toSourceMapGenerator(sourceUrl, headerLines).toJsComment()}`;\n }\n const fn = newTrustedFunctionForJIT(...fnArgNames.concat(fnBody));\n return this.executeFunction(fn, fnArgValues);\n }\n\n /**\n * Execute a JIT generated function by calling it.\n *\n * This method can be overridden in tests to capture the functions that are generated\n * by this `JitEvaluator` class.\n *\n * @param fn A function to execute.\n * @param args The arguments to pass to the function being executed.\n * @returns The return value of the executed function.\n */\n executeFunction(fn: Function, args: any[]) {\n return fn(...args);\n }\n}\n\n/**\n * An Angular AST visitor that converts AST nodes into executable JavaScript code.\n */\nexport class JitEmitterVisitor extends AbstractJsEmitterVisitor {\n private _evalArgNames: string[] = [];\n private _evalArgValues: any[] = [];\n private _evalExportedVars: string[] = [];\n\n constructor(private refResolver: ExternalReferenceResolver) {\n super();\n }\n\n createReturnStmt(ctx: EmitterVisitorContext) {\n const stmt = new o.ReturnStatement(new o.LiteralMapExpr(this._evalExportedVars.map(\n resultVar => new o.LiteralMapEntry(resultVar, o.variable(resultVar), false))));\n stmt.visitStatement(this, ctx);\n }\n\n getArgs(): {[key: string]: any} {\n const result: {[key: string]: any} = {};\n for (let i = 0; i < this._evalArgNames.length; i++) {\n result[this._evalArgNames[i]] = this._evalArgValues[i];\n }\n return result;\n }\n\n override visitExternalExpr(ast: o.ExternalExpr, ctx: EmitterVisitorContext): any {\n this._emitReferenceToExternal(ast, this.refResolver.resolveExternalReference(ast.value), ctx);\n return null;\n }\n\n override visitWrappedNodeExpr(ast: o.WrappedNodeExpr<any>, ctx: EmitterVisitorContext): any {\n this._emitReferenceToExternal(ast, ast.node, ctx);\n return null;\n }\n\n override visitDeclareVarStmt(stmt: o.DeclareVarStmt, ctx: EmitterVisitorContext): any {\n if (stmt.hasModifier(o.StmtModifier.Exported)) {\n this._evalExportedVars.push(stmt.name);\n }\n return super.visitDeclareVarStmt(stmt, ctx);\n }\n\n override visitDeclareFunctionStmt(stmt: o.DeclareFunctionStmt, ctx: EmitterVisitorContext): any {\n if (stmt.hasModifier(o.StmtModifier.Exported)) {\n this._evalExportedVars.push(stmt.name);\n }\n return super.visitDeclareFunctionStmt(stmt, ctx);\n }\n\n private _emitReferenceToExternal(ast: o.Expression, value: any, ctx: EmitterVisitorContext):\n void {\n let id = this._evalArgValues.indexOf(value);\n if (id === -1) {\n id = this._evalArgValues.length;\n this._evalArgValues.push(value);\n const name = identifierName({reference: value}) || 'val';\n this._evalArgNames.push(`jit_${name}_${id}`);\n }\n ctx.print(ast, this._evalArgNames[id]);\n }\n}\n\n\nfunction isUseStrictStatement(statement: o.Statement): boolean {\n return statement.isEquivalent(o.literal('use strict').toStmt());\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as o from '../output/output_ast';\n\nimport {Identifiers as R3} from './r3_identifiers';\nimport {R3CompiledExpression, R3Reference} from './util';\nimport {DefinitionMap} from './view/util';\n\nexport interface R3InjectorMetadata {\n name: string;\n type: R3Reference;\n providers: o.Expression|null;\n imports: o.Expression[];\n}\n\nexport function compileInjector(meta: R3InjectorMetadata): R3CompiledExpression {\n const definitionMap = new DefinitionMap<{providers: o.Expression; imports: o.Expression;}>();\n\n if (meta.providers !== null) {\n definitionMap.set('providers', meta.providers);\n }\n\n if (meta.imports.length > 0) {\n definitionMap.set('imports', o.literalArr(meta.imports));\n }\n\n const expression =\n o.importExpr(R3.defineInjector).callFn([definitionMap.toLiteralMap()], undefined, true);\n const type = createInjectorType(meta);\n return {expression, type, statements: []};\n}\n\nexport function createInjectorType(meta: R3InjectorMetadata): o.Type {\n return new o.ExpressionType(\n o.importExpr(R3.InjectorDeclaration, [new o.ExpressionType(meta.type.type)]));\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as o from '../output/output_ast';\nimport {ExternalReferenceResolver} from '../output/output_jit';\n\n/**\n * Implementation of `CompileReflector` which resolves references to @angular/core\n * symbols at runtime, according to a consumer-provided mapping.\n *\n * Only supports `resolveExternalReference`, all other methods throw.\n */\nexport class R3JitReflector implements ExternalReferenceResolver {\n constructor(private context: {[key: string]: unknown}) {}\n\n resolveExternalReference(ref: o.ExternalReference): unknown {\n // This reflector only handles @angular/core imports.\n if (ref.moduleName !== '@angular/core') {\n throw new Error(`Cannot resolve external reference to ${\n ref.moduleName}, only references to @angular/core are supported.`);\n }\n if (!this.context.hasOwnProperty(ref.name!)) {\n throw new Error(`No value provided for @angular/core symbol '${ref.name!}'.`);\n }\n return this.context[ref.name!];\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {R3DeclareNgModuleFacade} from '../compiler_facade_interface';\nimport * as o from '../output/output_ast';\n\nimport {Identifiers as R3} from './r3_identifiers';\nimport {jitOnlyGuardedExpression, R3CompiledExpression, R3Reference, refsToArray} from './util';\nimport {DefinitionMap} from './view/util';\n\n/**\n * How the selector scope of an NgModule (its declarations, imports, and exports) should be emitted\n * as a part of the NgModule definition.\n */\nexport enum R3SelectorScopeMode {\n /**\n * Emit the declarations inline into the module definition.\n *\n * This option is useful in certain contexts where it's known that JIT support is required. The\n * tradeoff here is that this emit style prevents directives and pipes from being tree-shaken if\n * they are unused, but the NgModule is used.\n */\n Inline,\n\n /**\n * Emit the declarations using a side effectful function call, `ɵɵsetNgModuleScope`, that is\n * guarded with the `ngJitMode` flag.\n *\n * This form of emit supports JIT and can be optimized away if the `ngJitMode` flag is set to\n * false, which allows unused directives and pipes to be tree-shaken.\n */\n SideEffect,\n\n /**\n * Don't generate selector scopes at all.\n *\n * This is useful for contexts where JIT support is known to be unnecessary.\n */\n Omit,\n}\n\n/**\n * The type of the NgModule meta data.\n * - Global: Used for full and partial compilation modes which mainly includes R3References.\n * - Local: Used for the local compilation mode which mainly includes the raw expressions as appears\n * in the NgModule decorator.\n */\nexport enum R3NgModuleMetadataKind {\n Global,\n Local,\n}\n\ninterface R3NgModuleMetadataCommon {\n kind: R3NgModuleMetadataKind;\n\n /**\n * An expression representing the module type being compiled.\n */\n type: R3Reference;\n\n /**\n * How to emit the selector scope values (declarations, imports, exports).\n */\n selectorScopeMode: R3SelectorScopeMode;\n\n /**\n * The set of schemas that declare elements to be allowed in the NgModule.\n */\n schemas: R3Reference[]|null;\n\n /** Unique ID or expression representing the unique ID of an NgModule. */\n id: o.Expression|null;\n}\n\n/**\n * Metadata required by the module compiler in full/partial mode to generate a module def (`ɵmod`)\n * for a type.\n */\nexport interface R3NgModuleMetadataGlobal extends R3NgModuleMetadataCommon {\n kind: R3NgModuleMetadataKind.Global;\n\n /**\n * An array of expressions representing the bootstrap components specified by the module.\n */\n bootstrap: R3Reference[];\n\n /**\n * An array of expressions representing the directives and pipes declared by the module.\n */\n declarations: R3Reference[];\n\n /**\n * Those declarations which should be visible to downstream consumers. If not specified, all\n * declarations are made visible to downstream consumers.\n */\n publicDeclarationTypes: o.Expression[]|null;\n\n /**\n * An array of expressions representing the imports of the module.\n */\n imports: R3Reference[];\n\n /**\n * Whether or not to include `imports` in generated type declarations.\n */\n includeImportTypes: boolean;\n\n /**\n * An array of expressions representing the exports of the module.\n */\n exports: R3Reference[];\n\n /**\n * Whether to generate closure wrappers for bootstrap, declarations, imports, and exports.\n */\n containsForwardDecls: boolean;\n}\n\n/**\n * Metadata required by the module compiler in local mode to generate a module def (`ɵmod`) for a\n * type.\n */\nexport interface R3NgModuleMetadataLocal extends R3NgModuleMetadataCommon {\n kind: R3NgModuleMetadataKind.Local;\n\n /**\n * The output expression representing the bootstrap components specified by the module.\n */\n bootstrapExpression: o.Expression|null;\n\n /**\n * The output expression representing the declarations of the module.\n */\n declarationsExpression: o.Expression|null;\n\n /**\n * The output expression representing the imports of the module.\n */\n importsExpression: o.Expression|null;\n\n /**\n * The output expression representing the exports of the module.\n */\n exportsExpression: o.Expression|null;\n\n /**\n * Local compilation mode always requires scope to be handled using side effect function calls.\n */\n selectorScopeMode: R3SelectorScopeMode.SideEffect;\n}\n\n/**\n * Metadata required by the module compiler to generate a module def (`ɵmod`) for a type.\n */\nexport type R3NgModuleMetadata = R3NgModuleMetadataGlobal|R3NgModuleMetadataLocal;\n\n/**\n * The shape of the object literal that is passed to the `ɵɵdefineNgModule()` call.\n */\ninterface R3NgModuleDefMap {\n /**\n * An expression representing the module type being compiled.\n */\n type: o.Expression;\n /**\n * An expression evaluating to an array of expressions representing the bootstrap components\n * specified by the module.\n */\n bootstrap?: o.Expression;\n /**\n * An expression evaluating to an array of expressions representing the directives and pipes\n * declared by the module.\n */\n declarations?: o.Expression;\n /**\n * An expression evaluating to an array of expressions representing the imports of the module.\n */\n imports?: o.Expression;\n /**\n * An expression evaluating to an array of expressions representing the exports of the module.\n */\n exports?: o.Expression;\n /**\n * A literal array expression containing the schemas that declare elements to be allowed in the\n * NgModule.\n */\n schemas?: o.LiteralArrayExpr;\n /**\n * An expression evaluating to the unique ID of an NgModule.\n * */\n id?: o.Expression;\n}\n\n/**\n * Construct an `R3NgModuleDef` for the given `R3NgModuleMetadata`.\n */\nexport function compileNgModule(meta: R3NgModuleMetadata): R3CompiledExpression {\n const statements: o.Statement[] = [];\n const definitionMap = new DefinitionMap<R3NgModuleDefMap>();\n definitionMap.set('type', meta.type.value);\n\n // Assign bootstrap definition. In local compilation mode (i.e., for\n // `R3NgModuleMetadataKind.LOCAL`) we assign the bootstrap field using the runtime\n // `ɵɵsetNgModuleScope`.\n if (meta.kind === R3NgModuleMetadataKind.Global && meta.bootstrap.length > 0) {\n definitionMap.set('bootstrap', refsToArray(meta.bootstrap, meta.containsForwardDecls));\n }\n\n if (meta.selectorScopeMode === R3SelectorScopeMode.Inline) {\n // If requested to emit scope information inline, pass the `declarations`, `imports` and\n // `exports` to the `ɵɵdefineNgModule()` call directly.\n\n if (meta.declarations.length > 0) {\n definitionMap.set('declarations', refsToArray(meta.declarations, meta.containsForwardDecls));\n }\n\n if (meta.imports.length > 0) {\n definitionMap.set('imports', refsToArray(meta.imports, meta.containsForwardDecls));\n }\n\n if (meta.exports.length > 0) {\n definitionMap.set('exports', refsToArray(meta.exports, meta.containsForwardDecls));\n }\n } else if (meta.selectorScopeMode === R3SelectorScopeMode.SideEffect) {\n // In this mode, scope information is not passed into `ɵɵdefineNgModule` as it\n // would prevent tree-shaking of the declarations, imports and exports references. Instead, it's\n // patched onto the NgModule definition with a `ɵɵsetNgModuleScope` call that's guarded by the\n // `ngJitMode` flag.\n const setNgModuleScopeCall = generateSetNgModuleScopeCall(meta);\n if (setNgModuleScopeCall !== null) {\n statements.push(setNgModuleScopeCall);\n }\n } else {\n // Selector scope emit was not requested, so skip it.\n }\n\n if (meta.schemas !== null && meta.schemas.length > 0) {\n definitionMap.set('schemas', o.literalArr(meta.schemas.map(ref => ref.value)));\n }\n\n if (meta.id !== null) {\n definitionMap.set('id', meta.id);\n\n // Generate a side-effectful call to register this NgModule by its id, as per the semantics of\n // NgModule ids.\n statements.push(\n o.importExpr(R3.registerNgModuleType).callFn([meta.type.value, meta.id]).toStmt());\n }\n\n const expression =\n o.importExpr(R3.defineNgModule).callFn([definitionMap.toLiteralMap()], undefined, true);\n const type = createNgModuleType(meta);\n\n return {expression, type, statements};\n}\n\n/**\n * This function is used in JIT mode to generate the call to `ɵɵdefineNgModule()` from a call to\n * `ɵɵngDeclareNgModule()`.\n */\nexport function compileNgModuleDeclarationExpression(meta: R3DeclareNgModuleFacade): o.Expression {\n const definitionMap = new DefinitionMap<R3NgModuleDefMap>();\n definitionMap.set('type', new o.WrappedNodeExpr(meta.type));\n if (meta.bootstrap !== undefined) {\n definitionMap.set('bootstrap', new o.WrappedNodeExpr(meta.bootstrap));\n }\n if (meta.declarations !== undefined) {\n definitionMap.set('declarations', new o.WrappedNodeExpr(meta.declarations));\n }\n if (meta.imports !== undefined) {\n definitionMap.set('imports', new o.WrappedNodeExpr(meta.imports));\n }\n if (meta.exports !== undefined) {\n definitionMap.set('exports', new o.WrappedNodeExpr(meta.exports));\n }\n if (meta.schemas !== undefined) {\n definitionMap.set('schemas', new o.WrappedNodeExpr(meta.schemas));\n }\n if (meta.id !== undefined) {\n definitionMap.set('id', new o.WrappedNodeExpr(meta.id));\n }\n return o.importExpr(R3.defineNgModule).callFn([definitionMap.toLiteralMap()]);\n}\n\nexport function createNgModuleType(meta: R3NgModuleMetadata): o.ExpressionType {\n if (meta.kind === R3NgModuleMetadataKind.Local) {\n return new o.ExpressionType(meta.type.value);\n }\n\n const {\n type: moduleType,\n declarations,\n exports,\n imports,\n includeImportTypes,\n publicDeclarationTypes\n } = meta;\n\n return new o.ExpressionType(o.importExpr(R3.NgModuleDeclaration, [\n new o.ExpressionType(moduleType.type),\n publicDeclarationTypes === null ? tupleTypeOf(declarations) :\n tupleOfTypes(publicDeclarationTypes),\n includeImportTypes ? tupleTypeOf(imports) : o.NONE_TYPE,\n tupleTypeOf(exports),\n ]));\n}\n\n/**\n * Generates a function call to `ɵɵsetNgModuleScope` with all necessary information so that the\n * transitive module scope can be computed during runtime in JIT mode. This call is marked pure\n * such that the references to declarations, imports and exports may be elided causing these\n * symbols to become tree-shakeable.\n */\nfunction generateSetNgModuleScopeCall(meta: R3NgModuleMetadata): o.Statement|null {\n const scopeMap = new DefinitionMap<{\n declarations: o.Expression,\n imports: o.Expression,\n exports: o.Expression,\n bootstrap: o.Expression\n }>();\n\n if (meta.kind === R3NgModuleMetadataKind.Global) {\n if (meta.declarations.length > 0) {\n scopeMap.set('declarations', refsToArray(meta.declarations, meta.containsForwardDecls));\n }\n } else {\n if (meta.declarationsExpression) {\n scopeMap.set('declarations', meta.declarationsExpression);\n }\n }\n\n if (meta.kind === R3NgModuleMetadataKind.Global) {\n if (meta.imports.length > 0) {\n scopeMap.set('imports', refsToArray(meta.imports, meta.containsForwardDecls));\n }\n } else {\n if (meta.importsExpression) {\n scopeMap.set('imports', meta.importsExpression);\n }\n }\n\n if (meta.kind === R3NgModuleMetadataKind.Global) {\n if (meta.exports.length > 0) {\n scopeMap.set('exports', refsToArray(meta.exports, meta.containsForwardDecls));\n }\n } else {\n if (meta.exportsExpression) {\n scopeMap.set('exports', meta.exportsExpression);\n }\n }\n\n if (meta.kind === R3NgModuleMetadataKind.Local && meta.bootstrapExpression) {\n scopeMap.set('bootstrap', meta.bootstrapExpression);\n }\n\n if (Object.keys(scopeMap.values).length === 0) {\n return null;\n }\n\n // setNgModuleScope(...)\n const fnCall = new o.InvokeFunctionExpr(\n /* fn */ o.importExpr(R3.setNgModuleScope),\n /* args */[meta.type.value, scopeMap.toLiteralMap()]);\n\n // (ngJitMode guard) && setNgModuleScope(...)\n const guardedCall = jitOnlyGuardedExpression(fnCall);\n\n // function() { (ngJitMode guard) && setNgModuleScope(...); }\n const iife = new o.FunctionExpr(\n /* params */[],\n /* statements */[guardedCall.toStmt()]);\n\n // (function() { (ngJitMode guard) && setNgModuleScope(...); })()\n const iifeCall = new o.InvokeFunctionExpr(\n /* fn */ iife,\n /* args */[]);\n\n return iifeCall.toStmt();\n}\n\nfunction tupleTypeOf(exp: R3Reference[]): o.Type {\n const types = exp.map(ref => o.typeofExpr(ref.type));\n return exp.length > 0 ? o.expressionType(o.literalArr(types)) : o.NONE_TYPE;\n}\n\nfunction tupleOfTypes(types: o.Expression[]): o.Type {\n const typeofTypes = types.map(type => o.typeofExpr(type));\n return types.length > 0 ? o.expressionType(o.literalArr(typeofTypes)) : o.NONE_TYPE;\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nimport * as o from '../output/output_ast';\n\nimport {R3DependencyMetadata} from './r3_factory';\nimport {Identifiers as R3} from './r3_identifiers';\nimport {R3CompiledExpression, R3Reference, typeWithParameters} from './util';\n\nexport interface R3PipeMetadata {\n /**\n * Name of the pipe type.\n */\n name: string;\n\n /**\n * An expression representing a reference to the pipe itself.\n */\n type: R3Reference;\n\n /**\n * Number of generic type parameters of the type itself.\n */\n typeArgumentCount: number;\n\n /**\n * Name of the pipe.\n */\n pipeName: string;\n\n /**\n * Dependencies of the pipe's constructor.\n */\n deps: R3DependencyMetadata[]|null;\n\n /**\n * Whether the pipe is marked as pure.\n */\n pure: boolean;\n\n /**\n * Whether the pipe is standalone.\n */\n isStandalone: boolean;\n}\n\nexport function compilePipeFromMetadata(metadata: R3PipeMetadata): R3CompiledExpression {\n const definitionMapValues: {key: string, quoted: boolean, value: o.Expression}[] = [];\n\n // e.g. `name: 'myPipe'`\n definitionMapValues.push({key: 'name', value: o.literal(metadata.pipeName), quoted: false});\n\n // e.g. `type: MyPipe`\n definitionMapValues.push({key: 'type', value: metadata.type.value, quoted: false});\n\n // e.g. `pure: true`\n definitionMapValues.push({key: 'pure', value: o.literal(metadata.pure), quoted: false});\n\n if (metadata.isStandalone) {\n definitionMapValues.push({key: 'standalone', value: o.literal(true), quoted: false});\n }\n\n const expression =\n o.importExpr(R3.definePipe).callFn([o.literalMap(definitionMapValues)], undefined, true);\n const type = createPipeType(metadata);\n\n return {expression, type, statements: []};\n}\n\nexport function createPipeType(metadata: R3PipeMetadata): o.Type {\n return new o.ExpressionType(o.importExpr(R3.PipeDeclaration, [\n typeWithParameters(metadata.type.type, metadata.typeArgumentCount),\n new o.ExpressionType(new o.LiteralExpr(metadata.pipeName)),\n new o.ExpressionType(new o.LiteralExpr(metadata.isStandalone)),\n ]));\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {ChangeDetectionStrategy, ViewEncapsulation} from '../../core';\nimport {InterpolationConfig} from '../../ml_parser/defaults';\nimport * as o from '../../output/output_ast';\nimport {ParseSourceSpan} from '../../parse_util';\nimport * as t from '../r3_ast';\nimport {R3DependencyMetadata} from '../r3_factory';\nimport {MaybeForwardRefExpression, R3Reference} from '../util';\n\n\n/**\n * Information needed to compile a directive for the render3 runtime.\n */\nexport interface R3DirectiveMetadata {\n /**\n * Name of the directive type.\n */\n name: string;\n\n /**\n * An expression representing a reference to the directive itself.\n */\n type: R3Reference;\n\n /**\n * Number of generic type parameters of the type itself.\n */\n typeArgumentCount: number;\n\n /**\n * A source span for the directive type.\n */\n typeSourceSpan: ParseSourceSpan;\n\n /**\n * Dependencies of the directive's constructor.\n */\n deps: R3DependencyMetadata[]|'invalid'|null;\n\n /**\n * Unparsed selector of the directive, or `null` if there was no selector.\n */\n selector: string|null;\n\n /**\n * Information about the content queries made by the directive.\n */\n queries: R3QueryMetadata[];\n\n /**\n * Information about the view queries made by the directive.\n */\n viewQueries: R3QueryMetadata[];\n\n /**\n * Mappings indicating how the directive interacts with its host element (host bindings,\n * listeners, etc).\n */\n host: R3HostMetadata;\n\n /**\n * Information about usage of specific lifecycle events which require special treatment in the\n * code generator.\n */\n lifecycle: {\n /**\n * Whether the directive uses NgOnChanges.\n */\n usesOnChanges: boolean;\n };\n\n /**\n * A mapping of inputs from class property names to binding property names, or to a tuple of\n * binding property name and class property name if the names are different.\n */\n inputs: {[field: string]: R3InputMetadata};\n\n /**\n * A mapping of outputs from class property names to binding property names, or to a tuple of\n * binding property name and class property name if the names are different.\n */\n outputs: {[field: string]: string};\n\n /**\n * Whether or not the component or directive inherits from another class\n */\n usesInheritance: boolean;\n\n /**\n * Whether or not the component or directive inherits its entire decorator from its base class.\n */\n fullInheritance: boolean;\n\n /**\n * Reference name under which to export the directive's type in a template,\n * if any.\n */\n exportAs: string[]|null;\n\n /**\n * The list of providers defined in the directive.\n */\n providers: o.Expression|null;\n\n /**\n * Whether or not the component or directive is standalone.\n */\n isStandalone: boolean;\n\n /**\n * Whether or not the component or directive is signal-based.\n */\n isSignal: boolean;\n\n /**\n * Additional directives applied to the directive host.\n */\n hostDirectives: R3HostDirectiveMetadata[]|null;\n}\n\n/**\n * Defines how dynamic imports for deferred dependencies should be emitted in the\n * generated output:\n * - either in a function on per-component basis (in case of local compilation)\n * - or in a function on per-block basis (in full compilation mode)\n */\nexport const enum DeferBlockDepsEmitMode {\n /**\n * Dynamic imports are grouped on per-block basis.\n *\n * This is used in full compilation mode, when compiler has more information\n * about particular dependencies that belong to this block.\n */\n PerBlock,\n\n /**\n * Dynamic imports are grouped on per-component basis.\n *\n * In local compilation, compiler doesn't have enough information to determine\n * which deferred dependencies belong to which block. In this case we group all\n * dynamic imports into a single file on per-component basis.\n */\n PerComponent,\n}\n\n/**\n * Specifies how a list of declaration type references should be emitted into the generated code.\n */\nexport const enum DeclarationListEmitMode {\n /**\n * The list of declarations is emitted into the generated code as is.\n *\n * ```\n * directives: [MyDir],\n * ```\n */\n Direct,\n\n /**\n * The list of declarations is emitted into the generated code wrapped inside a closure, which\n * is needed when at least one declaration is a forward reference.\n *\n * ```\n * directives: function () { return [MyDir, ForwardDir]; },\n * ```\n */\n Closure,\n\n /**\n * Similar to `Closure`, with the addition that the list of declarations can contain individual\n * items that are themselves forward references. This is relevant for JIT compilations, as\n * unwrapping the forwardRef cannot be done statically so must be deferred. This mode emits\n * the declaration list using a mapping transform through `resolveForwardRef` to ensure that\n * any forward references within the list are resolved when the outer closure is invoked.\n *\n * Consider the case where the runtime has captured two declarations in two distinct values:\n * ```\n * const dirA = MyDir;\n * const dirB = forwardRef(function() { return ForwardRef; });\n * ```\n *\n * This mode would emit the declarations captured in `dirA` and `dirB` as follows:\n * ```\n * directives: function () { return [dirA, dirB].map(ng.resolveForwardRef); },\n * ```\n */\n ClosureResolved,\n\n RuntimeResolved,\n}\n\n/**\n * Describes a dependency used within a `@defer` block.\n */\nexport interface R3DeferBlockTemplateDependency {\n /**\n * Reference to a dependency.\n */\n type: o.WrappedNodeExpr<unknown>;\n\n /**\n * Dependency class name.\n */\n symbolName: string;\n\n /**\n * Whether this dependency can be defer-loaded.\n */\n isDeferrable: boolean;\n\n /**\n * Import path where this dependency is located.\n */\n importPath: string|null;\n\n /**\n * Whether the symbol is the default export.\n */\n isDefaultImport: boolean;\n}\n\n/**\n * Information necessary to compile a `defer` block.\n */\nexport interface R3DeferBlockMetadata {\n /** Dependencies used within the block. */\n deps: R3DeferBlockTemplateDependency[];\n\n /** Mapping between triggers and the DOM nodes they refer to. */\n triggerElements: Map<t.DeferredTrigger, t.Element|null>;\n}\n\n/**\n * Information needed to compile a component for the render3 runtime.\n */\nexport interface R3ComponentMetadata<DeclarationT extends R3TemplateDependency> extends\n R3DirectiveMetadata {\n /**\n * Information about the component's template.\n */\n template: {\n /**\n * Parsed nodes of the template.\n */\n nodes: t.Node[];\n\n /**\n * Any ng-content selectors extracted from the template. Contains `*` when an ng-content\n * element without selector is present.\n */\n ngContentSelectors: string[];\n\n /**\n * Whether the template preserves whitespaces from the user's code.\n */\n preserveWhitespaces?: boolean;\n };\n\n declarations: DeclarationT[];\n\n /**\n * Map of all types that can be defer loaded (ts.ClassDeclaration) ->\n * corresponding import declaration (ts.ImportDeclaration) within\n * the current source file.\n */\n deferrableDeclToImportDecl: Map<o.Expression, o.Expression>;\n\n /**\n * Map of `@defer` blocks -> their corresponding metadata.\n */\n deferBlocks: Map<t.DeferredBlock, R3DeferBlockMetadata>;\n\n /**\n * Defines how dynamic imports for deferred dependencies should be grouped:\n * - either in a function on per-component basis (in case of local compilation)\n * - or in a function on per-block basis (in full compilation mode)\n */\n deferBlockDepsEmitMode: DeferBlockDepsEmitMode;\n\n /**\n * Map of deferrable symbol names -> corresponding import paths.\n */\n deferrableTypes: Map<string, {importPath: string, isDefaultImport: boolean}>;\n\n /**\n * Specifies how the 'directives' and/or `pipes` array, if generated, need to be emitted.\n */\n declarationListEmitMode: DeclarationListEmitMode;\n\n /**\n * A collection of styling data that will be applied and scoped to the component.\n */\n styles: string[];\n\n /**\n * An encapsulation policy for the component's styling.\n * Possible values:\n * - `ViewEncapsulation.Emulated`: Apply modified component styles in order to emulate\n * a native Shadow DOM CSS encapsulation behavior.\n * - `ViewEncapsulation.None`: Apply component styles globally without any sort of encapsulation.\n * - `ViewEncapsulation.ShadowDom`: Use the browser's native Shadow DOM API to encapsulate styles.\n */\n encapsulation: ViewEncapsulation;\n\n /**\n * A collection of animation triggers that will be used in the component template.\n */\n animations: o.Expression|null;\n\n /**\n * The list of view providers defined in the component.\n */\n viewProviders: o.Expression|null;\n\n /**\n * Path to the .ts file in which this template's generated code will be included, relative to\n * the compilation root. This will be used to generate identifiers that need to be globally\n * unique in certain contexts (such as g3).\n */\n relativeContextFilePath: string;\n\n /**\n * Whether translation variable name should contain external message id\n * (used by Closure Compiler's output of `goog.getMsg` for transition period).\n */\n i18nUseExternalIds: boolean;\n\n /**\n * Overrides the default interpolation start and end delimiters ({{ and }}).\n */\n interpolation: InterpolationConfig;\n\n /**\n * Strategy used for detecting changes in the component.\n *\n * In global compilation mode the value is ChangeDetectionStrategy if available as it is\n * statically resolved during analysis phase. Whereas in local compilation mode the value is the\n * expression as appears in the decorator.\n */\n changeDetection: ChangeDetectionStrategy|o.Expression|null;\n\n /**\n * The imports expression as appears on the component decorate for standalone component. This\n * field is currently needed only for local compilation, and so in other compilation modes it may\n * not be set. If component has empty array imports then this field is not set.\n */\n rawImports?: o.Expression;\n}\n\n/**\n * Metadata for an individual input on a directive.\n */\nexport interface R3InputMetadata {\n classPropertyName: string;\n bindingPropertyName: string;\n required: boolean;\n isSignal: boolean;\n /**\n * Transform function for the input.\n *\n * Null if there is no transform, or if this is a signal input.\n * Signal inputs capture their transform as part of the `InputSignal`.\n */\n transformFunction: o.Expression|null;\n}\n\nexport enum R3TemplateDependencyKind {\n Directive = 0,\n Pipe = 1,\n NgModule = 2,\n}\n\n/**\n * A dependency that's used within a component template.\n */\nexport interface R3TemplateDependency {\n kind: R3TemplateDependencyKind;\n\n /**\n * The type of the dependency as an expression.\n */\n type: o.Expression;\n}\n\n/**\n * A dependency that's used within a component template\n */\nexport type R3TemplateDependencyMetadata =\n R3DirectiveDependencyMetadata|R3PipeDependencyMetadata|R3NgModuleDependencyMetadata;\n\n/**\n * Information about a directive that is used in a component template. Only the stable, public\n * facing information of the directive is stored here.\n */\nexport interface R3DirectiveDependencyMetadata extends R3TemplateDependency {\n kind: R3TemplateDependencyKind.Directive;\n\n /**\n * The selector of the directive.\n */\n selector: string;\n\n /**\n * The binding property names of the inputs of the directive.\n */\n inputs: string[];\n\n /**\n * The binding property names of the outputs of the directive.\n */\n outputs: string[];\n\n /**\n * Name under which the directive is exported, if any (exportAs in Angular). Null otherwise.\n */\n exportAs: string[]|null;\n\n /**\n * If true then this directive is actually a component; otherwise it is not.\n */\n isComponent: boolean;\n}\n\nexport interface R3PipeDependencyMetadata extends R3TemplateDependency {\n kind: R3TemplateDependencyKind.Pipe;\n\n name: string;\n}\n\nexport interface R3NgModuleDependencyMetadata extends R3TemplateDependency {\n kind: R3TemplateDependencyKind.NgModule;\n}\n\n/**\n * Information needed to compile a query (view or content).\n */\nexport interface R3QueryMetadata {\n /**\n * Name of the property on the class to update with query results.\n */\n propertyName: string;\n\n /**\n * Whether to read only the first matching result, or an array of results.\n */\n first: boolean;\n\n /**\n * Either an expression representing a type or `InjectionToken` for the query\n * predicate, or a set of string selectors.\n */\n predicate: MaybeForwardRefExpression|string[];\n\n /**\n * Whether to include only direct children or all descendants.\n */\n descendants: boolean;\n\n /**\n * If the `QueryList` should fire change event only if actual change to query was computed (vs old\n * behavior where the change was fired whenever the query was recomputed, even if the recomputed\n * query resulted in the same list.)\n */\n emitDistinctChangesOnly: boolean;\n\n /**\n * An expression representing a type to read from each matched node, or null if the default value\n * for a given node is to be returned.\n */\n read: o.Expression|null;\n\n /**\n * Whether or not this query should collect only static results.\n *\n * If static is true, the query's results will be set on the component after nodes are created,\n * but before change detection runs. This means that any results that relied upon change detection\n * to run (e.g. results inside *ngIf or *ngFor views) will not be collected. Query results are\n * available in the ngOnInit hook.\n *\n * If static is false, the query's results will be set on the component after change detection\n * runs. This means that the query results can contain nodes inside *ngIf or *ngFor views, but\n * the results will not be available in the ngOnInit hook (only in the ngAfterContentInit for\n * content hooks and ngAfterViewInit for view hooks).\n */\n static: boolean;\n}\n\n/**\n * Mappings indicating how the class interacts with its\n * host element (host bindings, listeners, etc).\n */\nexport interface R3HostMetadata {\n /**\n * A mapping of attribute binding keys to `o.Expression`s.\n */\n attributes: {[key: string]: o.Expression};\n\n /**\n * A mapping of event binding keys to unparsed expressions.\n */\n listeners: {[key: string]: string};\n\n /**\n * A mapping of property binding keys to unparsed expressions.\n */\n properties: {[key: string]: string};\n\n specialAttributes: {styleAttr?: string; classAttr?: string;};\n}\n\n/**\n * Information needed to compile a host directive for the render3 runtime.\n */\nexport interface R3HostDirectiveMetadata {\n /** An expression representing the host directive class itself. */\n directive: R3Reference;\n\n /** Whether the expression referring to the host directive is a forward reference. */\n isForwardReference: boolean;\n\n /** Inputs from the host directive that will be exposed on the host. */\n inputs: {[publicName: string]: string}|null;\n\n /** Outputs from the host directive that will be exposed on the host. */\n outputs: {[publicName: string]: string}|null;\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {SecurityContext} from '../core';\nimport {ParseSourceSpan} from '../parse_util';\n\nexport class ParserError {\n public message: string;\n constructor(\n message: string, public input: string, public errLocation: string, public ctxLocation?: any) {\n this.message = `Parser Error: ${message} ${errLocation} [${input}] in ${ctxLocation}`;\n }\n}\n\nexport class ParseSpan {\n constructor(public start: number, public end: number) {}\n toAbsolute(absoluteOffset: number): AbsoluteSourceSpan {\n return new AbsoluteSourceSpan(absoluteOffset + this.start, absoluteOffset + this.end);\n }\n}\n\nexport abstract class AST {\n constructor(\n public span: ParseSpan,\n /**\n * Absolute location of the expression AST in a source code file.\n */\n public sourceSpan: AbsoluteSourceSpan) {}\n\n abstract visit(visitor: AstVisitor, context?: any): any;\n\n toString(): string {\n return 'AST';\n }\n}\n\nexport abstract class ASTWithName extends AST {\n constructor(\n span: ParseSpan, sourceSpan: AbsoluteSourceSpan, public nameSpan: AbsoluteSourceSpan) {\n super(span, sourceSpan);\n }\n}\n\nexport class EmptyExpr extends AST {\n override visit(visitor: AstVisitor, context: any = null) {\n // do nothing\n }\n}\n\nexport class ImplicitReceiver extends AST {\n override visit(visitor: AstVisitor, context: any = null): any {\n return visitor.visitImplicitReceiver(this, context);\n }\n}\n\n/**\n * Receiver when something is accessed through `this` (e.g. `this.foo`). Note that this class\n * inherits from `ImplicitReceiver`, because accessing something through `this` is treated the\n * same as accessing it implicitly inside of an Angular template (e.g. `[attr.title]=\"this.title\"`\n * is the same as `[attr.title]=\"title\"`.). Inheriting allows for the `this` accesses to be treated\n * the same as implicit ones, except for a couple of exceptions like `$event` and `$any`.\n * TODO: we should find a way for this class not to extend from `ImplicitReceiver` in the future.\n */\nexport class ThisReceiver extends ImplicitReceiver {\n override visit(visitor: AstVisitor, context: any = null): any {\n return visitor.visitThisReceiver?.(this, context);\n }\n}\n\n/**\n * Multiple expressions separated by a semicolon.\n */\nexport class Chain extends AST {\n constructor(span: ParseSpan, sourceSpan: AbsoluteSourceSpan, public expressions: any[]) {\n super(span, sourceSpan);\n }\n override visit(visitor: AstVisitor, context: any = null): any {\n return visitor.visitChain(this, context);\n }\n}\n\nexport class Conditional extends AST {\n constructor(\n span: ParseSpan, sourceSpan: AbsoluteSourceSpan, public condition: AST, public trueExp: AST,\n public falseExp: AST) {\n super(span, sourceSpan);\n }\n override visit(visitor: AstVisitor, context: any = null): any {\n return visitor.visitConditional(this, context);\n }\n}\n\nexport class PropertyRead extends ASTWithName {\n constructor(\n span: ParseSpan, sourceSpan: AbsoluteSourceSpan, nameSpan: AbsoluteSourceSpan,\n public receiver: AST, public name: string) {\n super(span, sourceSpan, nameSpan);\n }\n override visit(visitor: AstVisitor, context: any = null): any {\n return visitor.visitPropertyRead(this, context);\n }\n}\n\nexport class PropertyWrite extends ASTWithName {\n constructor(\n span: ParseSpan, sourceSpan: AbsoluteSourceSpan, nameSpan: AbsoluteSourceSpan,\n public receiver: AST, public name: string, public value: AST) {\n super(span, sourceSpan, nameSpan);\n }\n override visit(visitor: AstVisitor, context: any = null): any {\n return visitor.visitPropertyWrite(this, context);\n }\n}\n\nexport class SafePropertyRead extends ASTWithName {\n constructor(\n span: ParseSpan, sourceSpan: AbsoluteSourceSpan, nameSpan: AbsoluteSourceSpan,\n public receiver: AST, public name: string) {\n super(span, sourceSpan, nameSpan);\n }\n override visit(visitor: AstVisitor, context: any = null): any {\n return visitor.visitSafePropertyRead(this, context);\n }\n}\n\nexport class KeyedRead extends AST {\n constructor(\n span: ParseSpan, sourceSpan: AbsoluteSourceSpan, public receiver: AST, public key: AST) {\n super(span, sourceSpan);\n }\n override visit(visitor: AstVisitor, context: any = null): any {\n return visitor.visitKeyedRead(this, context);\n }\n}\n\nexport class SafeKeyedRead extends AST {\n constructor(\n span: ParseSpan, sourceSpan: AbsoluteSourceSpan, public receiver: AST, public key: AST) {\n super(span, sourceSpan);\n }\n override visit(visitor: AstVisitor, context: any = null): any {\n return visitor.visitSafeKeyedRead(this, context);\n }\n}\n\nexport class KeyedWrite extends AST {\n constructor(\n span: ParseSpan, sourceSpan: AbsoluteSourceSpan, public receiver: AST, public key: AST,\n public value: AST) {\n super(span, sourceSpan);\n }\n override visit(visitor: AstVisitor, context: any = null): any {\n return visitor.visitKeyedWrite(this, context);\n }\n}\n\nexport class BindingPipe extends ASTWithName {\n constructor(\n span: ParseSpan, sourceSpan: AbsoluteSourceSpan, public exp: AST, public name: string,\n public args: any[], nameSpan: AbsoluteSourceSpan) {\n super(span, sourceSpan, nameSpan);\n }\n override visit(visitor: AstVisitor, context: any = null): any {\n return visitor.visitPipe(this, context);\n }\n}\n\nexport class LiteralPrimitive extends AST {\n constructor(span: ParseSpan, sourceSpan: AbsoluteSourceSpan, public value: any) {\n super(span, sourceSpan);\n }\n override visit(visitor: AstVisitor, context: any = null): any {\n return visitor.visitLiteralPrimitive(this, context);\n }\n}\n\nexport class LiteralArray extends AST {\n constructor(span: ParseSpan, sourceSpan: AbsoluteSourceSpan, public expressions: any[]) {\n super(span, sourceSpan);\n }\n override visit(visitor: AstVisitor, context: any = null): any {\n return visitor.visitLiteralArray(this, context);\n }\n}\n\nexport type LiteralMapKey = {\n key: string; quoted: boolean;\n};\n\nexport class LiteralMap extends AST {\n constructor(\n span: ParseSpan, sourceSpan: AbsoluteSourceSpan, public keys: LiteralMapKey[],\n public values: any[]) {\n super(span, sourceSpan);\n }\n override visit(visitor: AstVisitor, context: any = null): any {\n return visitor.visitLiteralMap(this, context);\n }\n}\n\nexport class Interpolation extends AST {\n constructor(\n span: ParseSpan, sourceSpan: AbsoluteSourceSpan, public strings: string[],\n public expressions: AST[]) {\n super(span, sourceSpan);\n }\n override visit(visitor: AstVisitor, context: any = null): any {\n return visitor.visitInterpolation(this, context);\n }\n}\n\nexport class Binary extends AST {\n constructor(\n span: ParseSpan, sourceSpan: AbsoluteSourceSpan, public operation: string, public left: AST,\n public right: AST) {\n super(span, sourceSpan);\n }\n override visit(visitor: AstVisitor, context: any = null): any {\n return visitor.visitBinary(this, context);\n }\n}\n\n/**\n * For backwards compatibility reasons, `Unary` inherits from `Binary` and mimics the binary AST\n * node that was originally used. This inheritance relation can be deleted in some future major,\n * after consumers have been given a chance to fully support Unary.\n */\nexport class Unary extends Binary {\n // Redeclare the properties that are inherited from `Binary` as `never`, as consumers should not\n // depend on these fields when operating on `Unary`.\n override left: never = null as never;\n override right: never = null as never;\n override operation: never = null as never;\n\n /**\n * Creates a unary minus expression \"-x\", represented as `Binary` using \"0 - x\".\n */\n static createMinus(span: ParseSpan, sourceSpan: AbsoluteSourceSpan, expr: AST): Unary {\n return new Unary(\n span, sourceSpan, '-', expr, '-', new LiteralPrimitive(span, sourceSpan, 0), expr);\n }\n\n /**\n * Creates a unary plus expression \"+x\", represented as `Binary` using \"x - 0\".\n */\n static createPlus(span: ParseSpan, sourceSpan: AbsoluteSourceSpan, expr: AST): Unary {\n return new Unary(\n span, sourceSpan, '+', expr, '-', expr, new LiteralPrimitive(span, sourceSpan, 0));\n }\n\n /**\n * During the deprecation period this constructor is private, to avoid consumers from creating\n * a `Unary` with the fallback properties for `Binary`.\n */\n private constructor(\n span: ParseSpan, sourceSpan: AbsoluteSourceSpan, public operator: string, public expr: AST,\n binaryOp: string, binaryLeft: AST, binaryRight: AST) {\n super(span, sourceSpan, binaryOp, binaryLeft, binaryRight);\n }\n\n override visit(visitor: AstVisitor, context: any = null): any {\n if (visitor.visitUnary !== undefined) {\n return visitor.visitUnary(this, context);\n }\n return visitor.visitBinary(this, context);\n }\n}\n\nexport class PrefixNot extends AST {\n constructor(span: ParseSpan, sourceSpan: AbsoluteSourceSpan, public expression: AST) {\n super(span, sourceSpan);\n }\n override visit(visitor: AstVisitor, context: any = null): any {\n return visitor.visitPrefixNot(this, context);\n }\n}\n\nexport class NonNullAssert extends AST {\n constructor(span: ParseSpan, sourceSpan: AbsoluteSourceSpan, public expression: AST) {\n super(span, sourceSpan);\n }\n override visit(visitor: AstVisitor, context: any = null): any {\n return visitor.visitNonNullAssert(this, context);\n }\n}\n\nexport class Call extends AST {\n constructor(\n span: ParseSpan, sourceSpan: AbsoluteSourceSpan, public receiver: AST, public args: AST[],\n public argumentSpan: AbsoluteSourceSpan) {\n super(span, sourceSpan);\n }\n override visit(visitor: AstVisitor, context: any = null): any {\n return visitor.visitCall(this, context);\n }\n}\n\nexport class SafeCall extends AST {\n constructor(\n span: ParseSpan, sourceSpan: AbsoluteSourceSpan, public receiver: AST, public args: AST[],\n public argumentSpan: AbsoluteSourceSpan) {\n super(span, sourceSpan);\n }\n override visit(visitor: AstVisitor, context: any = null): any {\n return visitor.visitSafeCall(this, context);\n }\n}\n\n\n/**\n * Records the absolute position of a text span in a source file, where `start` and `end` are the\n * starting and ending byte offsets, respectively, of the text span in a source file.\n */\nexport class AbsoluteSourceSpan {\n constructor(public readonly start: number, public readonly end: number) {}\n}\n\nexport class ASTWithSource extends AST {\n constructor(\n public ast: AST, public source: string|null, public location: string, absoluteOffset: number,\n public errors: ParserError[]) {\n super(\n new ParseSpan(0, source === null ? 0 : source.length),\n new AbsoluteSourceSpan(\n absoluteOffset, source === null ? absoluteOffset : absoluteOffset + source.length));\n }\n override visit(visitor: AstVisitor, context: any = null): any {\n if (visitor.visitASTWithSource) {\n return visitor.visitASTWithSource(this, context);\n }\n return this.ast.visit(visitor, context);\n }\n override toString(): string {\n return `${this.source} in ${this.location}`;\n }\n}\n\n/**\n * TemplateBinding refers to a particular key-value pair in a microsyntax\n * expression. A few examples are:\n *\n * |---------------------|--------------|---------|--------------|\n * | expression | key | value | binding type |\n * |---------------------|--------------|---------|--------------|\n * | 1. let item | item | null | variable |\n * | 2. of items | ngForOf | items | expression |\n * | 3. let x = y | x | y | variable |\n * | 4. index as i | i | index | variable |\n * | 5. trackBy: func | ngForTrackBy | func | expression |\n * | 6. *ngIf=\"cond\" | ngIf | cond | expression |\n * |---------------------|--------------|---------|--------------|\n *\n * (6) is a notable exception because it is a binding from the template key in\n * the LHS of a HTML attribute to the expression in the RHS. All other bindings\n * in the example above are derived solely from the RHS.\n */\nexport type TemplateBinding = VariableBinding|ExpressionBinding;\n\nexport class VariableBinding {\n /**\n * @param sourceSpan entire span of the binding.\n * @param key name of the LHS along with its span.\n * @param value optional value for the RHS along with its span.\n */\n constructor(\n public readonly sourceSpan: AbsoluteSourceSpan,\n public readonly key: TemplateBindingIdentifier,\n public readonly value: TemplateBindingIdentifier|null) {}\n}\n\nexport class ExpressionBinding {\n /**\n * @param sourceSpan entire span of the binding.\n * @param key binding name, like ngForOf, ngForTrackBy, ngIf, along with its\n * span. Note that the length of the span may not be the same as\n * `key.source.length`. For example,\n * 1. key.source = ngFor, key.span is for \"ngFor\"\n * 2. key.source = ngForOf, key.span is for \"of\"\n * 3. key.source = ngForTrackBy, key.span is for \"trackBy\"\n * @param value optional expression for the RHS.\n */\n constructor(\n public readonly sourceSpan: AbsoluteSourceSpan,\n public readonly key: TemplateBindingIdentifier, public readonly value: ASTWithSource|null) {}\n}\n\nexport interface TemplateBindingIdentifier {\n source: string;\n span: AbsoluteSourceSpan;\n}\n\nexport interface AstVisitor {\n /**\n * The `visitUnary` method is declared as optional for backwards compatibility. In an upcoming\n * major release, this method will be made required.\n */\n visitUnary?(ast: Unary, context: any): any;\n visitBinary(ast: Binary, context: any): any;\n visitChain(ast: Chain, context: any): any;\n visitConditional(ast: Conditional, context: any): any;\n /**\n * The `visitThisReceiver` method is declared as optional for backwards compatibility.\n * In an upcoming major release, this method will be made required.\n */\n visitThisReceiver?(ast: ThisReceiver, context: any): any;\n visitImplicitReceiver(ast: ImplicitReceiver, context: any): any;\n visitInterpolation(ast: Interpolation, context: any): any;\n visitKeyedRead(ast: KeyedRead, context: any): any;\n visitKeyedWrite(ast: KeyedWrite, context: any): any;\n visitLiteralArray(ast: LiteralArray, context: any): any;\n visitLiteralMap(ast: LiteralMap, context: any): any;\n visitLiteralPrimitive(ast: LiteralPrimitive, context: any): any;\n visitPipe(ast: BindingPipe, context: any): any;\n visitPrefixNot(ast: PrefixNot, context: any): any;\n visitNonNullAssert(ast: NonNullAssert, context: any): any;\n visitPropertyRead(ast: PropertyRead, context: any): any;\n visitPropertyWrite(ast: PropertyWrite, context: any): any;\n visitSafePropertyRead(ast: SafePropertyRead, context: any): any;\n visitSafeKeyedRead(ast: SafeKeyedRead, context: any): any;\n visitCall(ast: Call, context: any): any;\n visitSafeCall(ast: SafeCall, context: any): any;\n visitASTWithSource?(ast: ASTWithSource, context: any): any;\n /**\n * This function is optionally defined to allow classes that implement this\n * interface to selectively decide if the specified `ast` should be visited.\n * @param ast node to visit\n * @param context context that gets passed to the node and all its children\n */\n visit?(ast: AST, context?: any): any;\n}\n\nexport class RecursiveAstVisitor implements AstVisitor {\n visit(ast: AST, context?: any): any {\n // The default implementation just visits every node.\n // Classes that extend RecursiveAstVisitor should override this function\n // to selectively visit the specified node.\n ast.visit(this, context);\n }\n visitUnary(ast: Unary, context: any): any {\n this.visit(ast.expr, context);\n }\n visitBinary(ast: Binary, context: any): any {\n this.visit(ast.left, context);\n this.visit(ast.right, context);\n }\n visitChain(ast: Chain, context: any): any {\n this.visitAll(ast.expressions, context);\n }\n visitConditional(ast: Conditional, context: any): any {\n this.visit(ast.condition, context);\n this.visit(ast.trueExp, context);\n this.visit(ast.falseExp, context);\n }\n visitPipe(ast: BindingPipe, context: any): any {\n this.visit(ast.exp, context);\n this.visitAll(ast.args, context);\n }\n visitImplicitReceiver(ast: ThisReceiver, context: any): any {}\n visitThisReceiver(ast: ThisReceiver, context: any): any {}\n visitInterpolation(ast: Interpolation, context: any): any {\n this.visitAll(ast.expressions, context);\n }\n visitKeyedRead(ast: KeyedRead, context: any): any {\n this.visit(ast.receiver, context);\n this.visit(ast.key, context);\n }\n visitKeyedWrite(ast: KeyedWrite, context: any): any {\n this.visit(ast.receiver, context);\n this.visit(ast.key, context);\n this.visit(ast.value, context);\n }\n visitLiteralArray(ast: LiteralArray, context: any): any {\n this.visitAll(ast.expressions, context);\n }\n visitLiteralMap(ast: LiteralMap, context: any): any {\n this.visitAll(ast.values, context);\n }\n visitLiteralPrimitive(ast: LiteralPrimitive, context: any): any {}\n visitPrefixNot(ast: PrefixNot, context: any): any {\n this.visit(ast.expression, context);\n }\n visitNonNullAssert(ast: NonNullAssert, context: any): any {\n this.visit(ast.expression, context);\n }\n visitPropertyRead(ast: PropertyRead, context: any): any {\n this.visit(ast.receiver, context);\n }\n visitPropertyWrite(ast: PropertyWrite, context: any): any {\n this.visit(ast.receiver, context);\n this.visit(ast.value, context);\n }\n visitSafePropertyRead(ast: SafePropertyRead, context: any): any {\n this.visit(ast.receiver, context);\n }\n visitSafeKeyedRead(ast: SafeKeyedRead, context: any): any {\n this.visit(ast.receiver, context);\n this.visit(ast.key, context);\n }\n visitCall(ast: Call, context: any): any {\n this.visit(ast.receiver, context);\n this.visitAll(ast.args, context);\n }\n visitSafeCall(ast: SafeCall, context: any): any {\n this.visit(ast.receiver, context);\n this.visitAll(ast.args, context);\n }\n // This is not part of the AstVisitor interface, just a helper method\n visitAll(asts: AST[], context: any): any {\n for (const ast of asts) {\n this.visit(ast, context);\n }\n }\n}\n\nexport class AstTransformer implements AstVisitor {\n visitImplicitReceiver(ast: ImplicitReceiver, context: any): AST {\n return ast;\n }\n\n visitThisReceiver(ast: ThisReceiver, context: any): AST {\n return ast;\n }\n\n visitInterpolation(ast: Interpolation, context: any): AST {\n return new Interpolation(ast.span, ast.sourceSpan, ast.strings, this.visitAll(ast.expressions));\n }\n\n visitLiteralPrimitive(ast: LiteralPrimitive, context: any): AST {\n return new LiteralPrimitive(ast.span, ast.sourceSpan, ast.value);\n }\n\n visitPropertyRead(ast: PropertyRead, context: any): AST {\n return new PropertyRead(\n ast.span, ast.sourceSpan, ast.nameSpan, ast.receiver.visit(this), ast.name);\n }\n\n visitPropertyWrite(ast: PropertyWrite, context: any): AST {\n return new PropertyWrite(\n ast.span, ast.sourceSpan, ast.nameSpan, ast.receiver.visit(this), ast.name,\n ast.value.visit(this));\n }\n\n visitSafePropertyRead(ast: SafePropertyRead, context: any): AST {\n return new SafePropertyRead(\n ast.span, ast.sourceSpan, ast.nameSpan, ast.receiver.visit(this), ast.name);\n }\n\n visitLiteralArray(ast: LiteralArray, context: any): AST {\n return new LiteralArray(ast.span, ast.sourceSpan, this.visitAll(ast.expressions));\n }\n\n visitLiteralMap(ast: LiteralMap, context: any): AST {\n return new LiteralMap(ast.span, ast.sourceSpan, ast.keys, this.visitAll(ast.values));\n }\n\n visitUnary(ast: Unary, context: any): AST {\n switch (ast.operator) {\n case '+':\n return Unary.createPlus(ast.span, ast.sourceSpan, ast.expr.visit(this));\n case '-':\n return Unary.createMinus(ast.span, ast.sourceSpan, ast.expr.visit(this));\n default:\n throw new Error(`Unknown unary operator ${ast.operator}`);\n }\n }\n\n visitBinary(ast: Binary, context: any): AST {\n return new Binary(\n ast.span, ast.sourceSpan, ast.operation, ast.left.visit(this), ast.right.visit(this));\n }\n\n visitPrefixNot(ast: PrefixNot, context: any): AST {\n return new PrefixNot(ast.span, ast.sourceSpan, ast.expression.visit(this));\n }\n\n visitNonNullAssert(ast: NonNullAssert, context: any): AST {\n return new NonNullAssert(ast.span, ast.sourceSpan, ast.expression.visit(this));\n }\n\n visitConditional(ast: Conditional, context: any): AST {\n return new Conditional(\n ast.span, ast.sourceSpan, ast.condition.visit(this), ast.trueExp.visit(this),\n ast.falseExp.visit(this));\n }\n\n visitPipe(ast: BindingPipe, context: any): AST {\n return new BindingPipe(\n ast.span, ast.sourceSpan, ast.exp.visit(this), ast.name, this.visitAll(ast.args),\n ast.nameSpan);\n }\n\n visitKeyedRead(ast: KeyedRead, context: any): AST {\n return new KeyedRead(ast.span, ast.sourceSpan, ast.receiver.visit(this), ast.key.visit(this));\n }\n\n visitKeyedWrite(ast: KeyedWrite, context: any): AST {\n return new KeyedWrite(\n ast.span, ast.sourceSpan, ast.receiver.visit(this), ast.key.visit(this),\n ast.value.visit(this));\n }\n\n visitCall(ast: Call, context: any): AST {\n return new Call(\n ast.span, ast.sourceSpan, ast.receiver.visit(this), this.visitAll(ast.args),\n ast.argumentSpan);\n }\n\n visitSafeCall(ast: SafeCall, context: any): AST {\n return new SafeCall(\n ast.span, ast.sourceSpan, ast.receiver.visit(this), this.visitAll(ast.args),\n ast.argumentSpan);\n }\n\n visitAll(asts: any[]): any[] {\n const res = [];\n for (let i = 0; i < asts.length; ++i) {\n res[i] = asts[i].visit(this);\n }\n return res;\n }\n\n visitChain(ast: Chain, context: any): AST {\n return new Chain(ast.span, ast.sourceSpan, this.visitAll(ast.expressions));\n }\n\n visitSafeKeyedRead(ast: SafeKeyedRead, context: any): AST {\n return new SafeKeyedRead(\n ast.span, ast.sourceSpan, ast.receiver.visit(this), ast.key.visit(this));\n }\n}\n\n// A transformer that only creates new nodes if the transformer makes a change or\n// a change is made a child node.\nexport class AstMemoryEfficientTransformer implements AstVisitor {\n visitImplicitReceiver(ast: ImplicitReceiver, context: any): AST {\n return ast;\n }\n\n visitThisReceiver(ast: ThisReceiver, context: any): AST {\n return ast;\n }\n\n visitInterpolation(ast: Interpolation, context: any): Interpolation {\n const expressions = this.visitAll(ast.expressions);\n if (expressions !== ast.expressions)\n return new Interpolation(ast.span, ast.sourceSpan, ast.strings, expressions);\n return ast;\n }\n\n visitLiteralPrimitive(ast: LiteralPrimitive, context: any): AST {\n return ast;\n }\n\n visitPropertyRead(ast: PropertyRead, context: any): AST {\n const receiver = ast.receiver.visit(this);\n if (receiver !== ast.receiver) {\n return new PropertyRead(ast.span, ast.sourceSpan, ast.nameSpan, receiver, ast.name);\n }\n return ast;\n }\n\n visitPropertyWrite(ast: PropertyWrite, context: any): AST {\n const receiver = ast.receiver.visit(this);\n const value = ast.value.visit(this);\n if (receiver !== ast.receiver || value !== ast.value) {\n return new PropertyWrite(ast.span, ast.sourceSpan, ast.nameSpan, receiver, ast.name, value);\n }\n return ast;\n }\n\n visitSafePropertyRead(ast: SafePropertyRead, context: any): AST {\n const receiver = ast.receiver.visit(this);\n if (receiver !== ast.receiver) {\n return new SafePropertyRead(ast.span, ast.sourceSpan, ast.nameSpan, receiver, ast.name);\n }\n return ast;\n }\n\n visitLiteralArray(ast: LiteralArray, context: any): AST {\n const expressions = this.visitAll(ast.expressions);\n if (expressions !== ast.expressions) {\n return new LiteralArray(ast.span, ast.sourceSpan, expressions);\n }\n return ast;\n }\n\n visitLiteralMap(ast: LiteralMap, context: any): AST {\n const values = this.visitAll(ast.values);\n if (values !== ast.values) {\n return new LiteralMap(ast.span, ast.sourceSpan, ast.keys, values);\n }\n return ast;\n }\n\n visitUnary(ast: Unary, context: any): AST {\n const expr = ast.expr.visit(this);\n if (expr !== ast.expr) {\n switch (ast.operator) {\n case '+':\n return Unary.createPlus(ast.span, ast.sourceSpan, expr);\n case '-':\n return Unary.createMinus(ast.span, ast.sourceSpan, expr);\n default:\n throw new Error(`Unknown unary operator ${ast.operator}`);\n }\n }\n return ast;\n }\n\n visitBinary(ast: Binary, context: any): AST {\n const left = ast.left.visit(this);\n const right = ast.right.visit(this);\n if (left !== ast.left || right !== ast.right) {\n return new Binary(ast.span, ast.sourceSpan, ast.operation, left, right);\n }\n return ast;\n }\n\n visitPrefixNot(ast: PrefixNot, context: any): AST {\n const expression = ast.expression.visit(this);\n if (expression !== ast.expression) {\n return new PrefixNot(ast.span, ast.sourceSpan, expression);\n }\n return ast;\n }\n\n visitNonNullAssert(ast: NonNullAssert, context: any): AST {\n const expression = ast.expression.visit(this);\n if (expression !== ast.expression) {\n return new NonNullAssert(ast.span, ast.sourceSpan, expression);\n }\n return ast;\n }\n\n visitConditional(ast: Conditional, context: any): AST {\n const condition = ast.condition.visit(this);\n const trueExp = ast.trueExp.visit(this);\n const falseExp = ast.falseExp.visit(this);\n if (condition !== ast.condition || trueExp !== ast.trueExp || falseExp !== ast.falseExp) {\n return new Conditional(ast.span, ast.sourceSpan, condition, trueExp, falseExp);\n }\n return ast;\n }\n\n visitPipe(ast: BindingPipe, context: any): AST {\n const exp = ast.exp.visit(this);\n const args = this.visitAll(ast.args);\n if (exp !== ast.exp || args !== ast.args) {\n return new BindingPipe(ast.span, ast.sourceSpan, exp, ast.name, args, ast.nameSpan);\n }\n return ast;\n }\n\n visitKeyedRead(ast: KeyedRead, context: any): AST {\n const obj = ast.receiver.visit(this);\n const key = ast.key.visit(this);\n if (obj !== ast.receiver || key !== ast.key) {\n return new KeyedRead(ast.span, ast.sourceSpan, obj, key);\n }\n return ast;\n }\n\n visitKeyedWrite(ast: KeyedWrite, context: any): AST {\n const obj = ast.receiver.visit(this);\n const key = ast.key.visit(this);\n const value = ast.value.visit(this);\n if (obj !== ast.receiver || key !== ast.key || value !== ast.value) {\n return new KeyedWrite(ast.span, ast.sourceSpan, obj, key, value);\n }\n return ast;\n }\n\n visitAll(asts: any[]): any[] {\n const res = [];\n let modified = false;\n for (let i = 0; i < asts.length; ++i) {\n const original = asts[i];\n const value = original.visit(this);\n res[i] = value;\n modified = modified || value !== original;\n }\n return modified ? res : asts;\n }\n\n visitChain(ast: Chain, context: any): AST {\n const expressions = this.visitAll(ast.expressions);\n if (expressions !== ast.expressions) {\n return new Chain(ast.span, ast.sourceSpan, expressions);\n }\n return ast;\n }\n\n\n visitCall(ast: Call, context: any): AST {\n const receiver = ast.receiver.visit(this);\n const args = this.visitAll(ast.args);\n if (receiver !== ast.receiver || args !== ast.args) {\n return new Call(ast.span, ast.sourceSpan, receiver, args, ast.argumentSpan);\n }\n return ast;\n }\n\n visitSafeCall(ast: SafeCall, context: any): AST {\n const receiver = ast.receiver.visit(this);\n const args = this.visitAll(ast.args);\n if (receiver !== ast.receiver || args !== ast.args) {\n return new SafeCall(ast.span, ast.sourceSpan, receiver, args, ast.argumentSpan);\n }\n return ast;\n }\n\n visitSafeKeyedRead(ast: SafeKeyedRead, context: any): AST {\n const obj = ast.receiver.visit(this);\n const key = ast.key.visit(this);\n if (obj !== ast.receiver || key !== ast.key) {\n return new SafeKeyedRead(ast.span, ast.sourceSpan, obj, key);\n }\n return ast;\n }\n}\n\n// Bindings\n\nexport class ParsedProperty {\n public readonly isLiteral: boolean;\n public readonly isAnimation: boolean;\n\n constructor(\n public name: string, public expression: ASTWithSource, public type: ParsedPropertyType,\n public sourceSpan: ParseSourceSpan, readonly keySpan: ParseSourceSpan,\n public valueSpan: ParseSourceSpan|undefined) {\n this.isLiteral = this.type === ParsedPropertyType.LITERAL_ATTR;\n this.isAnimation = this.type === ParsedPropertyType.ANIMATION;\n }\n}\n\nexport enum ParsedPropertyType {\n DEFAULT,\n LITERAL_ATTR,\n ANIMATION,\n TWO_WAY,\n}\n\nexport const enum ParsedEventType {\n // DOM or Directive event\n Regular,\n // Animation specific event\n Animation,\n // Event side of a two-way binding (e.g. `[(property)]=\"expression\"`).\n TwoWay,\n}\n\nexport class ParsedEvent {\n // Regular events have a target\n // Animation events have a phase\n constructor(\n public name: string, public targetOrPhase: string, public type: ParsedEventType,\n public handler: ASTWithSource, public sourceSpan: ParseSourceSpan,\n public handlerSpan: ParseSourceSpan, readonly keySpan: ParseSourceSpan) {}\n}\n\n/**\n * ParsedVariable represents a variable declaration in a microsyntax expression.\n */\nexport class ParsedVariable {\n constructor(\n public readonly name: string, public readonly value: string,\n public readonly sourceSpan: ParseSourceSpan, public readonly keySpan: ParseSourceSpan,\n public readonly valueSpan?: ParseSourceSpan) {}\n}\n\nexport const enum BindingType {\n // A regular binding to a property (e.g. `[property]=\"expression\"`).\n Property,\n // A binding to an element attribute (e.g. `[attr.name]=\"expression\"`).\n Attribute,\n // A binding to a CSS class (e.g. `[class.name]=\"condition\"`).\n Class,\n // A binding to a style rule (e.g. `[style.rule]=\"expression\"`).\n Style,\n // A binding to an animation reference (e.g. `[animate.key]=\"expression\"`).\n Animation,\n // Property side of a two-way binding (e.g. `[(property)]=\"expression\"`).\n TwoWay,\n}\n\nexport class BoundElementProperty {\n constructor(\n public name: string, public type: BindingType, public securityContext: SecurityContext,\n public value: ASTWithSource, public unit: string|null, public sourceSpan: ParseSourceSpan,\n readonly keySpan: ParseSourceSpan|undefined, public valueSpan: ParseSourceSpan|undefined) {}\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as cdAst from '../expression_parser/ast';\nimport * as o from '../output/output_ast';\nimport {ParseSourceSpan} from '../parse_util';\n\nexport class EventHandlerVars {\n static event = o.variable('$event');\n}\n\nexport interface LocalResolver {\n getLocal(name: string): o.Expression|null;\n notifyImplicitReceiverUse(): void;\n globals?: Set<string>;\n maybeRestoreView(): void;\n}\n\n/**\n * Converts the given expression AST into an executable output AST, assuming the expression is\n * used in an action binding (e.g. an event handler).\n */\nexport function convertActionBinding(\n localResolver: LocalResolver|null, implicitReceiver: o.Expression, action: cdAst.AST,\n bindingId: string, baseSourceSpan?: ParseSourceSpan, implicitReceiverAccesses?: Set<string>,\n globals?: Set<string>): o.Statement[] {\n if (!localResolver) {\n localResolver = new DefaultLocalResolver(globals);\n }\n const actionWithoutBuiltins = convertPropertyBindingBuiltins(\n {\n createLiteralArrayConverter: (argCount: number) => {\n // Note: no caching for literal arrays in actions.\n return (args: o.Expression[]) => o.literalArr(args);\n },\n createLiteralMapConverter: (keys: {key: string, quoted: boolean}[]) => {\n // Note: no caching for literal maps in actions.\n return (values: o.Expression[]) => {\n const entries = keys.map((k, i) => ({\n key: k.key,\n value: values[i],\n quoted: k.quoted,\n }));\n return o.literalMap(entries);\n };\n },\n createPipeConverter: (name: string) => {\n throw new Error(`Illegal State: Actions are not allowed to contain pipes. Pipe: ${name}`);\n }\n },\n action);\n\n const visitor = new _AstToIrVisitor(\n localResolver, implicitReceiver, bindingId, /* supportsInterpolation */ false, baseSourceSpan,\n implicitReceiverAccesses);\n const actionStmts: o.Statement[] = [];\n flattenStatements(actionWithoutBuiltins.visit(visitor, _Mode.Statement), actionStmts);\n prependTemporaryDecls(visitor.temporaryCount, bindingId, actionStmts);\n\n if (visitor.usesImplicitReceiver) {\n localResolver.notifyImplicitReceiverUse();\n }\n\n const lastIndex = actionStmts.length - 1;\n if (lastIndex >= 0) {\n const lastStatement = actionStmts[lastIndex];\n // Ensure that the value of the last expression statement is returned\n if (lastStatement instanceof o.ExpressionStatement) {\n actionStmts[lastIndex] = new o.ReturnStatement(lastStatement.expr);\n }\n }\n return actionStmts;\n}\n\nexport interface BuiltinConverter {\n (args: o.Expression[]): o.Expression;\n}\n\nexport interface BuiltinConverterFactory {\n createLiteralArrayConverter(argCount: number): BuiltinConverter;\n createLiteralMapConverter(keys: {key: string, quoted: boolean}[]): BuiltinConverter;\n createPipeConverter(name: string, argCount: number): BuiltinConverter;\n}\n\nfunction convertPropertyBindingBuiltins(\n converterFactory: BuiltinConverterFactory, ast: cdAst.AST): cdAst.AST {\n return convertBuiltins(converterFactory, ast);\n}\n\nexport class ConvertPropertyBindingResult {\n constructor(public stmts: o.Statement[], public currValExpr: o.Expression) {}\n}\n\n/**\n * Converts the given expression AST into an executable output AST, assuming the expression\n * is used in property binding. The expression has to be preprocessed via\n * `convertPropertyBindingBuiltins`.\n */\nexport function convertPropertyBinding(\n localResolver: LocalResolver|null, implicitReceiver: o.Expression,\n expressionWithoutBuiltins: cdAst.AST, bindingId: string): ConvertPropertyBindingResult {\n if (!localResolver) {\n localResolver = new DefaultLocalResolver();\n }\n const visitor = new _AstToIrVisitor(\n localResolver, implicitReceiver, bindingId, /* supportsInterpolation */ false);\n const outputExpr: o.Expression = expressionWithoutBuiltins.visit(visitor, _Mode.Expression);\n const stmts: o.Statement[] = getStatementsFromVisitor(visitor, bindingId);\n\n if (visitor.usesImplicitReceiver) {\n localResolver.notifyImplicitReceiverUse();\n }\n\n return new ConvertPropertyBindingResult(stmts, outputExpr);\n}\n\n/** Converts an AST to a pure function that may have access to the component scope. */\nexport function convertPureComponentScopeFunction(\n ast: cdAst.AST, localResolver: LocalResolver, implicitReceiver: o.Expression,\n bindingId: string): o.Statement[] {\n const converted = convertPropertyBindingBuiltins(\n {\n createLiteralArrayConverter: () => args => o.literalArr(args),\n createLiteralMapConverter: keys => values => o.literalMap(keys.map((key, index) => {\n return ({\n key: key.key,\n value: values[index],\n quoted: key.quoted,\n });\n })),\n createPipeConverter: () => {\n throw new Error('Illegal State: Pipes are not allowed in this context');\n }\n },\n ast);\n\n const visitor = new _AstToIrVisitor(localResolver, implicitReceiver, bindingId, false);\n const statements: o.Statement[] = [];\n flattenStatements(converted.visit(visitor, _Mode.Statement), statements);\n return statements;\n}\n\n/**\n * Given some expression, such as a binding or interpolation expression, and a context expression to\n * look values up on, visit each facet of the given expression resolving values from the context\n * expression such that a list of arguments can be derived from the found values that can be used as\n * arguments to an external update instruction.\n *\n * @param localResolver The resolver to use to look up expressions by name appropriately\n * @param contextVariableExpression The expression representing the context variable used to create\n * the final argument expressions\n * @param expressionWithArgumentsToExtract The expression to visit to figure out what values need to\n * be resolved and what arguments list to build.\n * @param bindingId A name prefix used to create temporary variable names if they're needed for the\n * arguments generated\n * @returns An array of expressions that can be passed as arguments to instruction expressions like\n * `o.importExpr(R3.propertyInterpolate).callFn(result)`\n */\nexport function convertUpdateArguments(\n localResolver: LocalResolver, contextVariableExpression: o.Expression,\n expressionWithArgumentsToExtract: cdAst.Interpolation, bindingId: string) {\n const visitor = new _AstToIrVisitor(\n localResolver, contextVariableExpression, bindingId, /* supportsInterpolation */ true);\n const outputExpr = visitor.visitInterpolation(expressionWithArgumentsToExtract, _Mode.Expression);\n\n if (visitor.usesImplicitReceiver) {\n localResolver.notifyImplicitReceiverUse();\n }\n\n const stmts = getStatementsFromVisitor(visitor, bindingId);\n const args = outputExpr.args;\n return {stmts, args};\n}\n\nfunction getStatementsFromVisitor(visitor: _AstToIrVisitor, bindingId: string) {\n const stmts: o.Statement[] = [];\n for (let i = 0; i < visitor.temporaryCount; i++) {\n stmts.push(temporaryDeclaration(bindingId, i));\n }\n return stmts;\n}\n\nfunction convertBuiltins(converterFactory: BuiltinConverterFactory, ast: cdAst.AST): cdAst.AST {\n const visitor = new _BuiltinAstConverter(converterFactory);\n return ast.visit(visitor);\n}\n\nfunction temporaryName(bindingId: string, temporaryNumber: number): string {\n return `tmp_${bindingId}_${temporaryNumber}`;\n}\n\nfunction temporaryDeclaration(bindingId: string, temporaryNumber: number): o.Statement {\n return new o.DeclareVarStmt(temporaryName(bindingId, temporaryNumber));\n}\n\nfunction prependTemporaryDecls(\n temporaryCount: number, bindingId: string, statements: o.Statement[]) {\n for (let i = temporaryCount - 1; i >= 0; i--) {\n statements.unshift(temporaryDeclaration(bindingId, i));\n }\n}\n\nenum _Mode {\n Statement,\n Expression\n}\n\nfunction ensureStatementMode(mode: _Mode, ast: cdAst.AST) {\n if (mode !== _Mode.Statement) {\n throw new Error(`Expected a statement, but saw ${ast}`);\n }\n}\n\nfunction ensureExpressionMode(mode: _Mode, ast: cdAst.AST) {\n if (mode !== _Mode.Expression) {\n throw new Error(`Expected an expression, but saw ${ast}`);\n }\n}\n\nfunction convertToStatementIfNeeded(mode: _Mode, expr: o.Expression): o.Expression|o.Statement {\n if (mode === _Mode.Statement) {\n return expr.toStmt();\n } else {\n return expr;\n }\n}\n\nclass _BuiltinAstConverter extends cdAst.AstTransformer {\n constructor(private _converterFactory: BuiltinConverterFactory) {\n super();\n }\n override visitPipe(ast: cdAst.BindingPipe, context: any): any {\n const args = [ast.exp, ...ast.args].map(ast => ast.visit(this, context));\n return new BuiltinFunctionCall(\n ast.span, ast.sourceSpan, args,\n this._converterFactory.createPipeConverter(ast.name, args.length));\n }\n override visitLiteralArray(ast: cdAst.LiteralArray, context: any): any {\n const args = ast.expressions.map(ast => ast.visit(this, context));\n return new BuiltinFunctionCall(\n ast.span, ast.sourceSpan, args,\n this._converterFactory.createLiteralArrayConverter(ast.expressions.length));\n }\n override visitLiteralMap(ast: cdAst.LiteralMap, context: any): any {\n const args = ast.values.map(ast => ast.visit(this, context));\n\n return new BuiltinFunctionCall(\n ast.span, ast.sourceSpan, args, this._converterFactory.createLiteralMapConverter(ast.keys));\n }\n}\n\nclass _AstToIrVisitor implements cdAst.AstVisitor {\n private _nodeMap = new Map<cdAst.AST, cdAst.AST>();\n private _resultMap = new Map<cdAst.AST, o.Expression>();\n private _currentTemporary: number = 0;\n public temporaryCount: number = 0;\n public usesImplicitReceiver: boolean = false;\n\n constructor(\n private _localResolver: LocalResolver, private _implicitReceiver: o.Expression,\n private bindingId: string, private supportsInterpolation: boolean,\n private baseSourceSpan?: ParseSourceSpan, private implicitReceiverAccesses?: Set<string>) {}\n\n visitUnary(ast: cdAst.Unary, mode: _Mode): any {\n let op: o.UnaryOperator;\n switch (ast.operator) {\n case '+':\n op = o.UnaryOperator.Plus;\n break;\n case '-':\n op = o.UnaryOperator.Minus;\n break;\n default:\n throw new Error(`Unsupported operator ${ast.operator}`);\n }\n\n return convertToStatementIfNeeded(\n mode,\n new o.UnaryOperatorExpr(\n op, this._visit(ast.expr, _Mode.Expression), undefined,\n this.convertSourceSpan(ast.span)));\n }\n\n visitBinary(ast: cdAst.Binary, mode: _Mode): any {\n let op: o.BinaryOperator;\n switch (ast.operation) {\n case '+':\n op = o.BinaryOperator.Plus;\n break;\n case '-':\n op = o.BinaryOperator.Minus;\n break;\n case '*':\n op = o.BinaryOperator.Multiply;\n break;\n case '/':\n op = o.BinaryOperator.Divide;\n break;\n case '%':\n op = o.BinaryOperator.Modulo;\n break;\n case '&&':\n op = o.BinaryOperator.And;\n break;\n case '||':\n op = o.BinaryOperator.Or;\n break;\n case '==':\n op = o.BinaryOperator.Equals;\n break;\n case '!=':\n op = o.BinaryOperator.NotEquals;\n break;\n case '===':\n op = o.BinaryOperator.Identical;\n break;\n case '!==':\n op = o.BinaryOperator.NotIdentical;\n break;\n case '<':\n op = o.BinaryOperator.Lower;\n break;\n case '>':\n op = o.BinaryOperator.Bigger;\n break;\n case '<=':\n op = o.BinaryOperator.LowerEquals;\n break;\n case '>=':\n op = o.BinaryOperator.BiggerEquals;\n break;\n case '??':\n return this.convertNullishCoalesce(ast, mode);\n default:\n throw new Error(`Unsupported operation ${ast.operation}`);\n }\n\n return convertToStatementIfNeeded(\n mode,\n new o.BinaryOperatorExpr(\n op, this._visit(ast.left, _Mode.Expression), this._visit(ast.right, _Mode.Expression),\n undefined, this.convertSourceSpan(ast.span)));\n }\n\n visitChain(ast: cdAst.Chain, mode: _Mode): any {\n ensureStatementMode(mode, ast);\n return this.visitAll(ast.expressions, mode);\n }\n\n visitConditional(ast: cdAst.Conditional, mode: _Mode): any {\n const value: o.Expression = this._visit(ast.condition, _Mode.Expression);\n return convertToStatementIfNeeded(\n mode,\n value.conditional(\n this._visit(ast.trueExp, _Mode.Expression), this._visit(ast.falseExp, _Mode.Expression),\n this.convertSourceSpan(ast.span)));\n }\n\n visitPipe(ast: cdAst.BindingPipe, mode: _Mode): any {\n throw new Error(\n `Illegal state: Pipes should have been converted into functions. Pipe: ${ast.name}`);\n }\n\n visitImplicitReceiver(ast: cdAst.ImplicitReceiver, mode: _Mode): any {\n ensureExpressionMode(mode, ast);\n this.usesImplicitReceiver = true;\n return this._implicitReceiver;\n }\n\n visitThisReceiver(ast: cdAst.ThisReceiver, mode: _Mode): any {\n return this.visitImplicitReceiver(ast, mode);\n }\n\n visitInterpolation(ast: cdAst.Interpolation, mode: _Mode): InterpolationExpression {\n if (!this.supportsInterpolation) {\n throw new Error('Unexpected interpolation');\n }\n\n ensureExpressionMode(mode, ast);\n let args: o.Expression[] = [];\n for (let i = 0; i < ast.strings.length - 1; i++) {\n args.push(o.literal(ast.strings[i]));\n args.push(this._visit(ast.expressions[i], _Mode.Expression));\n }\n args.push(o.literal(ast.strings[ast.strings.length - 1]));\n\n // If we're dealing with an interpolation of 1 value with an empty prefix and suffix, reduce the\n // args returned to just the value, because we're going to pass it to a special instruction.\n const strings = ast.strings;\n if (strings.length === 2 && strings[0] === '' && strings[1] === '') {\n // Single argument interpolate instructions.\n args = [args[1]];\n } else if (ast.expressions.length >= 9) {\n // 9 or more arguments must be passed to the `interpolateV`-style instructions, which accept\n // an array of arguments\n args = [o.literalArr(args)];\n }\n\n return new InterpolationExpression(args);\n }\n\n visitKeyedRead(ast: cdAst.KeyedRead, mode: _Mode): any {\n const leftMostSafe = this.leftMostSafeNode(ast);\n if (leftMostSafe) {\n return this.convertSafeAccess(ast, leftMostSafe, mode);\n } else {\n return convertToStatementIfNeeded(\n mode,\n this._visit(ast.receiver, _Mode.Expression).key(this._visit(ast.key, _Mode.Expression)));\n }\n }\n\n visitKeyedWrite(ast: cdAst.KeyedWrite, mode: _Mode): any {\n const obj: o.Expression = this._visit(ast.receiver, _Mode.Expression);\n const key: o.Expression = this._visit(ast.key, _Mode.Expression);\n const value: o.Expression = this._visit(ast.value, _Mode.Expression);\n\n if (obj === this._implicitReceiver) {\n this._localResolver.maybeRestoreView();\n }\n\n return convertToStatementIfNeeded(mode, obj.key(key).set(value));\n }\n\n visitLiteralArray(ast: cdAst.LiteralArray, mode: _Mode): any {\n throw new Error(`Illegal State: literal arrays should have been converted into functions`);\n }\n\n visitLiteralMap(ast: cdAst.LiteralMap, mode: _Mode): any {\n throw new Error(`Illegal State: literal maps should have been converted into functions`);\n }\n\n visitLiteralPrimitive(ast: cdAst.LiteralPrimitive, mode: _Mode): any {\n // For literal values of null, undefined, true, or false allow type interference\n // to infer the type.\n const type =\n ast.value === null || ast.value === undefined || ast.value === true || ast.value === true ?\n o.INFERRED_TYPE :\n undefined;\n return convertToStatementIfNeeded(\n mode, o.literal(ast.value, type, this.convertSourceSpan(ast.span)));\n }\n\n private _getLocal(name: string, receiver: cdAst.AST): o.Expression|null {\n if (this._localResolver.globals?.has(name) && receiver instanceof cdAst.ThisReceiver) {\n return null;\n }\n\n return this._localResolver.getLocal(name);\n }\n\n visitPrefixNot(ast: cdAst.PrefixNot, mode: _Mode): any {\n return convertToStatementIfNeeded(mode, o.not(this._visit(ast.expression, _Mode.Expression)));\n }\n\n visitNonNullAssert(ast: cdAst.NonNullAssert, mode: _Mode): any {\n return convertToStatementIfNeeded(mode, this._visit(ast.expression, _Mode.Expression));\n }\n\n visitPropertyRead(ast: cdAst.PropertyRead, mode: _Mode): any {\n const leftMostSafe = this.leftMostSafeNode(ast);\n if (leftMostSafe) {\n return this.convertSafeAccess(ast, leftMostSafe, mode);\n } else {\n let result: any = null;\n const prevUsesImplicitReceiver = this.usesImplicitReceiver;\n const receiver = this._visit(ast.receiver, _Mode.Expression);\n if (receiver === this._implicitReceiver) {\n result = this._getLocal(ast.name, ast.receiver);\n if (result) {\n // Restore the previous \"usesImplicitReceiver\" state since the implicit\n // receiver has been replaced with a resolved local expression.\n this.usesImplicitReceiver = prevUsesImplicitReceiver;\n this.addImplicitReceiverAccess(ast.name);\n }\n }\n if (result == null) {\n result = receiver.prop(ast.name, this.convertSourceSpan(ast.span));\n }\n return convertToStatementIfNeeded(mode, result);\n }\n }\n\n visitPropertyWrite(ast: cdAst.PropertyWrite, mode: _Mode): any {\n const receiver: o.Expression = this._visit(ast.receiver, _Mode.Expression);\n const prevUsesImplicitReceiver = this.usesImplicitReceiver;\n\n let varExpr: o.ReadPropExpr|null = null;\n if (receiver === this._implicitReceiver) {\n const localExpr = this._getLocal(ast.name, ast.receiver);\n if (localExpr) {\n if (localExpr instanceof o.ReadPropExpr) {\n // If the local variable is a property read expression, it's a reference\n // to a 'context.property' value and will be used as the target of the\n // write expression.\n varExpr = localExpr;\n // Restore the previous \"usesImplicitReceiver\" state since the implicit\n // receiver has been replaced with a resolved local expression.\n this.usesImplicitReceiver = prevUsesImplicitReceiver;\n this.addImplicitReceiverAccess(ast.name);\n } else {\n // Otherwise it's an error.\n const receiver = ast.name;\n const value = (ast.value instanceof cdAst.PropertyRead) ? ast.value.name : undefined;\n throw new Error(`Cannot assign value \"${value}\" to template variable \"${\n receiver}\". Template variables are read-only.`);\n }\n }\n }\n // If no local expression could be produced, use the original receiver's\n // property as the target.\n if (varExpr === null) {\n varExpr = receiver.prop(ast.name, this.convertSourceSpan(ast.span));\n }\n return convertToStatementIfNeeded(mode, varExpr.set(this._visit(ast.value, _Mode.Expression)));\n }\n\n visitSafePropertyRead(ast: cdAst.SafePropertyRead, mode: _Mode): any {\n return this.convertSafeAccess(ast, this.leftMostSafeNode(ast), mode);\n }\n\n visitSafeKeyedRead(ast: cdAst.SafeKeyedRead, mode: _Mode): any {\n return this.convertSafeAccess(ast, this.leftMostSafeNode(ast), mode);\n }\n\n visitAll(asts: cdAst.AST[], mode: _Mode): any {\n return asts.map(ast => this._visit(ast, mode));\n }\n\n visitCall(ast: cdAst.Call, mode: _Mode): any {\n const leftMostSafe = this.leftMostSafeNode(ast);\n if (leftMostSafe) {\n return this.convertSafeAccess(ast, leftMostSafe, mode);\n }\n\n const convertedArgs = this.visitAll(ast.args, _Mode.Expression);\n\n if (ast instanceof BuiltinFunctionCall) {\n return convertToStatementIfNeeded(mode, ast.converter(convertedArgs));\n }\n\n const receiver = ast.receiver;\n if (receiver instanceof cdAst.PropertyRead &&\n receiver.receiver instanceof cdAst.ImplicitReceiver &&\n !(receiver.receiver instanceof cdAst.ThisReceiver) && receiver.name === '$any') {\n if (convertedArgs.length !== 1) {\n throw new Error(`Invalid call to $any, expected 1 argument but received ${\n convertedArgs.length || 'none'}`);\n }\n return convertToStatementIfNeeded(mode, convertedArgs[0] as o.Expression);\n }\n\n const call = this._visit(receiver, _Mode.Expression)\n .callFn(convertedArgs, this.convertSourceSpan(ast.span));\n return convertToStatementIfNeeded(mode, call);\n }\n\n visitSafeCall(ast: cdAst.SafeCall, mode: _Mode): any {\n return this.convertSafeAccess(ast, this.leftMostSafeNode(ast), mode);\n }\n\n private _visit(ast: cdAst.AST, mode: _Mode): any {\n const result = this._resultMap.get(ast);\n if (result) return result;\n return (this._nodeMap.get(ast) || ast).visit(this, mode);\n }\n\n private convertSafeAccess(\n ast: cdAst.AST, leftMostSafe: cdAst.SafePropertyRead|cdAst.SafeKeyedRead|cdAst.SafeCall,\n mode: _Mode): any {\n // If the expression contains a safe access node on the left it needs to be converted to\n // an expression that guards the access to the member by checking the receiver for blank. As\n // execution proceeds from left to right, the left most part of the expression must be guarded\n // first but, because member access is left associative, the right side of the expression is at\n // the top of the AST. The desired result requires lifting a copy of the left part of the\n // expression up to test it for blank before generating the unguarded version.\n\n // Consider, for example the following expression: a?.b.c?.d.e\n\n // This results in the ast:\n // .\n // / \\\n // ?. e\n // / \\\n // . d\n // / \\\n // ?. c\n // / \\\n // a b\n\n // The following tree should be generated:\n //\n // /---- ? ----\\\n // / | \\\n // a /--- ? ---\\ null\n // / | \\\n // . . null\n // / \\ / \\\n // . c . e\n // / \\ / \\\n // a b . d\n // / \\\n // . c\n // / \\\n // a b\n //\n // Notice that the first guard condition is the left hand of the left most safe access node\n // which comes in as leftMostSafe to this routine.\n\n let guardedExpression = this._visit(leftMostSafe.receiver, _Mode.Expression);\n let temporary: o.ReadVarExpr|undefined = undefined;\n if (this.needsTemporaryInSafeAccess(leftMostSafe.receiver)) {\n // If the expression has method calls or pipes then we need to save the result into a\n // temporary variable to avoid calling stateful or impure code more than once.\n temporary = this.allocateTemporary();\n\n // Preserve the result in the temporary variable\n guardedExpression = temporary.set(guardedExpression);\n\n // Ensure all further references to the guarded expression refer to the temporary instead.\n this._resultMap.set(leftMostSafe.receiver, temporary);\n }\n const condition = guardedExpression.isBlank();\n\n // Convert the ast to an unguarded access to the receiver's member. The map will substitute\n // leftMostNode with its unguarded version in the call to `this.visit()`.\n if (leftMostSafe instanceof cdAst.SafeCall) {\n this._nodeMap.set(\n leftMostSafe,\n new cdAst.Call(\n leftMostSafe.span, leftMostSafe.sourceSpan, leftMostSafe.receiver, leftMostSafe.args,\n leftMostSafe.argumentSpan));\n } else if (leftMostSafe instanceof cdAst.SafeKeyedRead) {\n this._nodeMap.set(\n leftMostSafe,\n new cdAst.KeyedRead(\n leftMostSafe.span, leftMostSafe.sourceSpan, leftMostSafe.receiver, leftMostSafe.key));\n } else {\n this._nodeMap.set(\n leftMostSafe,\n new cdAst.PropertyRead(\n leftMostSafe.span, leftMostSafe.sourceSpan, leftMostSafe.nameSpan,\n leftMostSafe.receiver, leftMostSafe.name));\n }\n\n // Recursively convert the node now without the guarded member access.\n const access = this._visit(ast, _Mode.Expression);\n\n // Remove the mapping. This is not strictly required as the converter only traverses each node\n // once but is safer if the conversion is changed to traverse the nodes more than once.\n this._nodeMap.delete(leftMostSafe);\n\n // If we allocated a temporary, release it.\n if (temporary) {\n this.releaseTemporary(temporary);\n }\n\n // Produce the conditional\n return convertToStatementIfNeeded(mode, condition.conditional(o.NULL_EXPR, access));\n }\n\n private convertNullishCoalesce(ast: cdAst.Binary, mode: _Mode): any {\n const left: o.Expression = this._visit(ast.left, _Mode.Expression);\n const right: o.Expression = this._visit(ast.right, _Mode.Expression);\n const temporary = this.allocateTemporary();\n this.releaseTemporary(temporary);\n\n // Generate the following expression. It is identical to how TS\n // transpiles binary expressions with a nullish coalescing operator.\n // let temp;\n // (temp = a) !== null && temp !== undefined ? temp : b;\n return convertToStatementIfNeeded(\n mode,\n temporary.set(left)\n .notIdentical(o.NULL_EXPR)\n .and(temporary.notIdentical(o.literal(undefined)))\n .conditional(temporary, right));\n }\n\n // Given an expression of the form a?.b.c?.d.e then the left most safe node is\n // the (a?.b). The . and ?. are left associative thus can be rewritten as:\n // ((((a?.c).b).c)?.d).e. This returns the most deeply nested safe read or\n // safe method call as this needs to be transformed initially to:\n // a == null ? null : a.c.b.c?.d.e\n // then to:\n // a == null ? null : a.b.c == null ? null : a.b.c.d.e\n private leftMostSafeNode(ast: cdAst.AST): cdAst.SafePropertyRead|cdAst.SafeKeyedRead {\n const visit = (visitor: cdAst.AstVisitor, ast: cdAst.AST): any => {\n return (this._nodeMap.get(ast) || ast).visit(visitor);\n };\n return ast.visit({\n visitUnary(ast: cdAst.Unary) {\n return null;\n },\n visitBinary(ast: cdAst.Binary) {\n return null;\n },\n visitChain(ast: cdAst.Chain) {\n return null;\n },\n visitConditional(ast: cdAst.Conditional) {\n return null;\n },\n visitCall(ast: cdAst.Call) {\n return visit(this, ast.receiver);\n },\n visitSafeCall(ast: cdAst.SafeCall) {\n return visit(this, ast.receiver) || ast;\n },\n visitImplicitReceiver(ast: cdAst.ImplicitReceiver) {\n return null;\n },\n visitThisReceiver(ast: cdAst.ThisReceiver) {\n return null;\n },\n visitInterpolation(ast: cdAst.Interpolation) {\n return null;\n },\n visitKeyedRead(ast: cdAst.KeyedRead) {\n return visit(this, ast.receiver);\n },\n visitKeyedWrite(ast: cdAst.KeyedWrite) {\n return null;\n },\n visitLiteralArray(ast: cdAst.LiteralArray) {\n return null;\n },\n visitLiteralMap(ast: cdAst.LiteralMap) {\n return null;\n },\n visitLiteralPrimitive(ast: cdAst.LiteralPrimitive) {\n return null;\n },\n visitPipe(ast: cdAst.BindingPipe) {\n return null;\n },\n visitPrefixNot(ast: cdAst.PrefixNot) {\n return null;\n },\n visitNonNullAssert(ast: cdAst.NonNullAssert) {\n return visit(this, ast.expression);\n },\n visitPropertyRead(ast: cdAst.PropertyRead) {\n return visit(this, ast.receiver);\n },\n visitPropertyWrite(ast: cdAst.PropertyWrite) {\n return null;\n },\n visitSafePropertyRead(ast: cdAst.SafePropertyRead) {\n return visit(this, ast.receiver) || ast;\n },\n visitSafeKeyedRead(ast: cdAst.SafeKeyedRead) {\n return visit(this, ast.receiver) || ast;\n }\n });\n }\n\n // Returns true of the AST includes a method or a pipe indicating that, if the\n // expression is used as the target of a safe property or method access then\n // the expression should be stored into a temporary variable.\n private needsTemporaryInSafeAccess(ast: cdAst.AST): boolean {\n const visit = (visitor: cdAst.AstVisitor, ast: cdAst.AST): boolean => {\n return ast && (this._nodeMap.get(ast) || ast).visit(visitor);\n };\n const visitSome = (visitor: cdAst.AstVisitor, ast: cdAst.AST[]): boolean => {\n return ast.some(ast => visit(visitor, ast));\n };\n return ast.visit({\n visitUnary(ast: cdAst.Unary): boolean {\n return visit(this, ast.expr);\n },\n visitBinary(ast: cdAst.Binary): boolean {\n return visit(this, ast.left) || visit(this, ast.right);\n },\n visitChain(ast: cdAst.Chain) {\n return false;\n },\n visitConditional(ast: cdAst.Conditional): boolean {\n return visit(this, ast.condition) || visit(this, ast.trueExp) || visit(this, ast.falseExp);\n },\n visitCall(ast: cdAst.Call) {\n return true;\n },\n visitSafeCall(ast: cdAst.SafeCall) {\n return true;\n },\n visitImplicitReceiver(ast: cdAst.ImplicitReceiver) {\n return false;\n },\n visitThisReceiver(ast: cdAst.ThisReceiver) {\n return false;\n },\n visitInterpolation(ast: cdAst.Interpolation) {\n return visitSome(this, ast.expressions);\n },\n visitKeyedRead(ast: cdAst.KeyedRead) {\n return false;\n },\n visitKeyedWrite(ast: cdAst.KeyedWrite) {\n return false;\n },\n visitLiteralArray(ast: cdAst.LiteralArray) {\n return true;\n },\n visitLiteralMap(ast: cdAst.LiteralMap) {\n return true;\n },\n visitLiteralPrimitive(ast: cdAst.LiteralPrimitive) {\n return false;\n },\n visitPipe(ast: cdAst.BindingPipe) {\n return true;\n },\n visitPrefixNot(ast: cdAst.PrefixNot) {\n return visit(this, ast.expression);\n },\n visitNonNullAssert(ast: cdAst.PrefixNot) {\n return visit(this, ast.expression);\n },\n visitPropertyRead(ast: cdAst.PropertyRead) {\n return false;\n },\n visitPropertyWrite(ast: cdAst.PropertyWrite) {\n return false;\n },\n visitSafePropertyRead(ast: cdAst.SafePropertyRead) {\n return false;\n },\n visitSafeKeyedRead(ast: cdAst.SafeKeyedRead) {\n return false;\n }\n });\n }\n\n private allocateTemporary(): o.ReadVarExpr {\n const tempNumber = this._currentTemporary++;\n this.temporaryCount = Math.max(this._currentTemporary, this.temporaryCount);\n return new o.ReadVarExpr(temporaryName(this.bindingId, tempNumber));\n }\n\n private releaseTemporary(temporary: o.ReadVarExpr) {\n this._currentTemporary--;\n if (temporary.name != temporaryName(this.bindingId, this._currentTemporary)) {\n throw new Error(`Temporary ${temporary.name} released out of order`);\n }\n }\n\n /**\n * Creates an absolute `ParseSourceSpan` from the relative `ParseSpan`.\n *\n * `ParseSpan` objects are relative to the start of the expression.\n * This method converts these to full `ParseSourceSpan` objects that\n * show where the span is within the overall source file.\n *\n * @param span the relative span to convert.\n * @returns a `ParseSourceSpan` for the given span or null if no\n * `baseSourceSpan` was provided to this class.\n */\n private convertSourceSpan(span: cdAst.ParseSpan) {\n if (this.baseSourceSpan) {\n const start = this.baseSourceSpan.start.moveBy(span.start);\n const end = this.baseSourceSpan.start.moveBy(span.end);\n const fullStart = this.baseSourceSpan.fullStart.moveBy(span.start);\n return new ParseSourceSpan(start, end, fullStart);\n } else {\n return null;\n }\n }\n\n /** Adds the name of an AST to the list of implicit receiver accesses. */\n private addImplicitReceiverAccess(name: string) {\n if (this.implicitReceiverAccesses) {\n this.implicitReceiverAccesses.add(name);\n }\n }\n}\n\nfunction flattenStatements(arg: any, output: o.Statement[]) {\n if (Array.isArray(arg)) {\n (<any[]>arg).forEach((entry) => flattenStatements(entry, output));\n } else {\n output.push(arg);\n }\n}\n\nfunction unsupported(): never {\n throw new Error('Unsupported operation');\n}\n\nclass InterpolationExpression extends o.Expression {\n constructor(public args: o.Expression[]) {\n super(null, null);\n }\n\n override isConstant = unsupported;\n override isEquivalent = unsupported;\n override visitExpression = unsupported;\n override clone = unsupported;\n}\n\nclass DefaultLocalResolver implements LocalResolver {\n constructor(public globals?: Set<string>) {}\n notifyImplicitReceiverUse(): void {}\n maybeRestoreView(): void {}\n getLocal(name: string): o.Expression|null {\n if (name === EventHandlerVars.event.name) {\n return EventHandlerVars.event;\n }\n return null;\n }\n}\n\nexport class BuiltinFunctionCall extends cdAst.Call {\n constructor(\n span: cdAst.ParseSpan, sourceSpan: cdAst.AbsoluteSourceSpan, args: cdAst.AST[],\n public converter: BuiltinConverter) {\n super(span, sourceSpan, new cdAst.EmptyExpr(span, sourceSpan), args, null!);\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {SecurityContext} from '../core';\n\n// =================================================================================================\n// =================================================================================================\n// =========== S T O P - S T O P - S T O P - S T O P - S T O P - S T O P ===========\n// =================================================================================================\n// =================================================================================================\n//\n// DO NOT EDIT THIS LIST OF SECURITY SENSITIVE PROPERTIES WITHOUT A SECURITY REVIEW!\n// Reach out to mprobst for details.\n//\n// =================================================================================================\n\n/** Map from tagName|propertyName to SecurityContext. Properties applying to all tags use '*'. */\nlet _SECURITY_SCHEMA!: {[k: string]: SecurityContext};\n\nexport function SECURITY_SCHEMA(): {[k: string]: SecurityContext} {\n if (!_SECURITY_SCHEMA) {\n _SECURITY_SCHEMA = {};\n // Case is insignificant below, all element and attribute names are lower-cased for lookup.\n\n registerContext(SecurityContext.HTML, [\n 'iframe|srcdoc',\n '*|innerHTML',\n '*|outerHTML',\n ]);\n registerContext(SecurityContext.STYLE, ['*|style']);\n // NB: no SCRIPT contexts here, they are never allowed due to the parser stripping them.\n registerContext(SecurityContext.URL, [\n '*|formAction',\n 'area|href',\n 'area|ping',\n 'audio|src',\n 'a|href',\n 'a|ping',\n 'blockquote|cite',\n 'body|background',\n 'del|cite',\n 'form|action',\n 'img|src',\n 'input|src',\n 'ins|cite',\n 'q|cite',\n 'source|src',\n 'track|src',\n 'video|poster',\n 'video|src',\n ]);\n registerContext(SecurityContext.RESOURCE_URL, [\n 'applet|code',\n 'applet|codebase',\n 'base|href',\n 'embed|src',\n 'frame|src',\n 'head|profile',\n 'html|manifest',\n 'iframe|src',\n 'link|href',\n 'media|src',\n 'object|codebase',\n 'object|data',\n 'script|src',\n ]);\n }\n return _SECURITY_SCHEMA;\n}\n\nfunction registerContext(ctx: SecurityContext, specs: string[]) {\n for (const spec of specs) _SECURITY_SCHEMA[spec.toLowerCase()] = ctx;\n}\n\n/**\n * The set of security-sensitive attributes of an `<iframe>` that *must* be\n * applied as a static attribute only. This ensures that all security-sensitive\n * attributes are taken into account while creating an instance of an `<iframe>`\n * at runtime.\n *\n * Note: avoid using this set directly, use the `isIframeSecuritySensitiveAttr` function\n * in the code instead.\n */\nexport const IFRAME_SECURITY_SENSITIVE_ATTRS =\n new Set(['sandbox', 'allow', 'allowfullscreen', 'referrerpolicy', 'csp', 'fetchpriority']);\n\n/**\n * Checks whether a given attribute name might represent a security-sensitive\n * attribute of an <iframe>.\n */\nexport function isIframeSecuritySensitiveAttr(attrName: string): boolean {\n // The `setAttribute` DOM API is case-insensitive, so we lowercase the value\n // before checking it against a known security-sensitive attributes.\n return IFRAME_SECURITY_SENSITIVE_ATTRS.has(attrName.toLowerCase());\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * The following set contains all keywords that can be used in the animation css shorthand\n * property and is used during the scoping of keyframes to make sure such keywords\n * are not modified.\n */\nconst animationKeywords = new Set([\n // global values\n 'inherit', 'initial', 'revert', 'unset',\n // animation-direction\n 'alternate', 'alternate-reverse', 'normal', 'reverse',\n // animation-fill-mode\n 'backwards', 'both', 'forwards', 'none',\n // animation-play-state\n 'paused', 'running',\n // animation-timing-function\n 'ease', 'ease-in', 'ease-in-out', 'ease-out', 'linear', 'step-start', 'step-end',\n // `steps()` function\n 'end', 'jump-both', 'jump-end', 'jump-none', 'jump-start', 'start'\n]);\n\n/**\n * The following class has its origin from a port of shadowCSS from webcomponents.js to TypeScript.\n * It has since diverge in many ways to tailor Angular's needs.\n *\n * Source:\n * https://github.com/webcomponents/webcomponentsjs/blob/4efecd7e0e/src/ShadowCSS/ShadowCSS.js\n *\n * The original file level comment is reproduced below\n */\n\n/*\n This is a limited shim for ShadowDOM css styling.\n https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/shadow/index.html#styles\n\n The intention here is to support only the styling features which can be\n relatively simply implemented. The goal is to allow users to avoid the\n most obvious pitfalls and do so without compromising performance significantly.\n For ShadowDOM styling that's not covered here, a set of best practices\n can be provided that should allow users to accomplish more complex styling.\n\n The following is a list of specific ShadowDOM styling features and a brief\n discussion of the approach used to shim.\n\n Shimmed features:\n\n * :host, :host-context: ShadowDOM allows styling of the shadowRoot's host\n element using the :host rule. To shim this feature, the :host styles are\n reformatted and prefixed with a given scope name and promoted to a\n document level stylesheet.\n For example, given a scope name of .foo, a rule like this:\n\n :host {\n background: red;\n }\n }\n\n becomes:\n\n .foo {\n background: red;\n }\n\n * encapsulation: Styles defined within ShadowDOM, apply only to\n dom inside the ShadowDOM.\n The selectors are scoped by adding an attribute selector suffix to each\n simple selector that contains the host element tag name. Each element\n in the element's ShadowDOM template is also given the scope attribute.\n Thus, these rules match only elements that have the scope attribute.\n For example, given a scope name of x-foo, a rule like this:\n\n div {\n font-weight: bold;\n }\n\n becomes:\n\n div[x-foo] {\n font-weight: bold;\n }\n\n Note that elements that are dynamically added to a scope must have the scope\n selector added to them manually.\n\n * upper/lower bound encapsulation: Styles which are defined outside a\n shadowRoot should not cross the ShadowDOM boundary and should not apply\n inside a shadowRoot.\n\n This styling behavior is not emulated. Some possible ways to do this that\n were rejected due to complexity and/or performance concerns include: (1) reset\n every possible property for every possible selector for a given scope name;\n (2) re-implement css in javascript.\n\n As an alternative, users should make sure to use selectors\n specific to the scope in which they are working.\n\n * ::distributed: This behavior is not emulated. It's often not necessary\n to style the contents of a specific insertion point and instead, descendants\n of the host element can be styled selectively. Users can also create an\n extra node around an insertion point and style that node's contents\n via descendent selectors. For example, with a shadowRoot like this:\n\n <style>\n ::content(div) {\n background: red;\n }\n </style>\n <content></content>\n\n could become:\n\n <style>\n / *@polyfill .content-container div * /\n ::content(div) {\n background: red;\n }\n </style>\n <div class=\"content-container\">\n <content></content>\n </div>\n\n Note the use of @polyfill in the comment above a ShadowDOM specific style\n declaration. This is a directive to the styling shim to use the selector\n in comments in lieu of the next selector when running under polyfill.\n*/\nexport class ShadowCss {\n /*\n * Shim some cssText with the given selector. Returns cssText that can be included in the document\n *\n * The selector is the attribute added to all elements inside the host,\n * The hostSelector is the attribute added to the host itself.\n */\n shimCssText(cssText: string, selector: string, hostSelector: string = ''): string {\n // **NOTE**: Do not strip comments as this will cause component sourcemaps to break\n // due to shift in lines.\n\n // Collect comments and replace them with a placeholder, this is done to avoid complicating\n // the rule parsing RegExp and keep it safer.\n const comments: string[] = [];\n cssText = cssText.replace(_commentRe, (m) => {\n if (m.match(_commentWithHashRe)) {\n comments.push(m);\n } else {\n // Replace non hash comments with empty lines.\n // This is done so that we do not leak any senstive data in comments.\n const newLinesMatches = m.match(_newLinesRe);\n comments.push((newLinesMatches?.join('') ?? '') + '\\n');\n }\n\n return COMMENT_PLACEHOLDER;\n });\n\n cssText = this._insertDirectives(cssText);\n const scopedCssText = this._scopeCssText(cssText, selector, hostSelector);\n // Add back comments at the original position.\n let commentIdx = 0;\n return scopedCssText.replace(_commentWithHashPlaceHolderRe, () => comments[commentIdx++]);\n }\n\n private _insertDirectives(cssText: string): string {\n cssText = this._insertPolyfillDirectivesInCssText(cssText);\n return this._insertPolyfillRulesInCssText(cssText);\n }\n\n /**\n * Process styles to add scope to keyframes.\n *\n * Modify both the names of the keyframes defined in the component styles and also the css\n * animation rules using them.\n *\n * Animation rules using keyframes defined elsewhere are not modified to allow for globally\n * defined keyframes.\n *\n * For example, we convert this css:\n *\n * ```\n * .box {\n * animation: box-animation 1s forwards;\n * }\n *\n * @keyframes box-animation {\n * to {\n * background-color: green;\n * }\n * }\n * ```\n *\n * to this:\n *\n * ```\n * .box {\n * animation: scopeName_box-animation 1s forwards;\n * }\n *\n * @keyframes scopeName_box-animation {\n * to {\n * background-color: green;\n * }\n * }\n * ```\n *\n * @param cssText the component's css text that needs to be scoped.\n * @param scopeSelector the component's scope selector.\n *\n * @returns the scoped css text.\n */\n private _scopeKeyframesRelatedCss(cssText: string, scopeSelector: string): string {\n const unscopedKeyframesSet = new Set<string>();\n const scopedKeyframesCssText = processRules(\n cssText,\n rule => this._scopeLocalKeyframeDeclarations(rule, scopeSelector, unscopedKeyframesSet));\n return processRules(\n scopedKeyframesCssText,\n rule => this._scopeAnimationRule(rule, scopeSelector, unscopedKeyframesSet));\n }\n\n /**\n * Scopes local keyframes names, returning the updated css rule and it also\n * adds the original keyframe name to a provided set to collect all keyframes names\n * so that it can later be used to scope the animation rules.\n *\n * For example, it takes a rule such as:\n *\n * ```\n * @keyframes box-animation {\n * to {\n * background-color: green;\n * }\n * }\n * ```\n *\n * and returns:\n *\n * ```\n * @keyframes scopeName_box-animation {\n * to {\n * background-color: green;\n * }\n * }\n * ```\n * and as a side effect it adds \"box-animation\" to the `unscopedKeyframesSet` set\n *\n * @param cssRule the css rule to process.\n * @param scopeSelector the component's scope selector.\n * @param unscopedKeyframesSet the set of unscoped keyframes names (which can be\n * modified as a side effect)\n *\n * @returns the css rule modified with the scoped keyframes name.\n */\n private _scopeLocalKeyframeDeclarations(\n rule: CssRule, scopeSelector: string, unscopedKeyframesSet: Set<string>): CssRule {\n return {\n ...rule,\n selector: rule.selector.replace(\n /(^@(?:-webkit-)?keyframes(?:\\s+))(['\"]?)(.+)\\2(\\s*)$/,\n (_, start, quote, keyframeName, endSpaces) => {\n unscopedKeyframesSet.add(unescapeQuotes(keyframeName, quote));\n return `${start}${quote}${scopeSelector}_${keyframeName}${quote}${endSpaces}`;\n }),\n };\n }\n\n /**\n * Function used to scope a keyframes name (obtained from an animation declaration)\n * using an existing set of unscopedKeyframes names to discern if the scoping needs to be\n * performed (keyframes names of keyframes not defined in the component's css need not to be\n * scoped).\n *\n * @param keyframe the keyframes name to check.\n * @param scopeSelector the component's scope selector.\n * @param unscopedKeyframesSet the set of unscoped keyframes names.\n *\n * @returns the scoped name of the keyframe, or the original name is the name need not to be\n * scoped.\n */\n private _scopeAnimationKeyframe(\n keyframe: string, scopeSelector: string, unscopedKeyframesSet: ReadonlySet<string>): string {\n return keyframe.replace(/^(\\s*)(['\"]?)(.+?)\\2(\\s*)$/, (_, spaces1, quote, name, spaces2) => {\n name = `${unscopedKeyframesSet.has(unescapeQuotes(name, quote)) ? scopeSelector + '_' : ''}${\n name}`;\n return `${spaces1}${quote}${name}${quote}${spaces2}`;\n });\n }\n\n /**\n * Regular expression used to extrapolate the possible keyframes from an\n * animation declaration (with possibly multiple animation definitions)\n *\n * The regular expression can be divided in three parts\n * - (^|\\s+)\n * simply captures how many (if any) leading whitespaces are present\n * - (?:(?:(['\"])((?:\\\\\\\\|\\\\\\2|(?!\\2).)+)\\2)|(-?[A-Za-z][\\w\\-]*))\n * captures two different possible keyframes, ones which are quoted or ones which are valid css\n * idents (custom properties excluded)\n * - (?=[,\\s;]|$)\n * simply matches the end of the possible keyframe, valid endings are: a comma, a space, a\n * semicolon or the end of the string\n */\n private _animationDeclarationKeyframesRe =\n /(^|\\s+)(?:(?:(['\"])((?:\\\\\\\\|\\\\\\2|(?!\\2).)+)\\2)|(-?[A-Za-z][\\w\\-]*))(?=[,\\s]|$)/g;\n\n /**\n * Scope an animation rule so that the keyframes mentioned in such rule\n * are scoped if defined in the component's css and left untouched otherwise.\n *\n * It can scope values of both the 'animation' and 'animation-name' properties.\n *\n * @param rule css rule to scope.\n * @param scopeSelector the component's scope selector.\n * @param unscopedKeyframesSet the set of unscoped keyframes names.\n *\n * @returns the updated css rule.\n **/\n private _scopeAnimationRule(\n rule: CssRule, scopeSelector: string, unscopedKeyframesSet: ReadonlySet<string>): CssRule {\n let content = rule.content.replace(\n /((?:^|\\s+|;)(?:-webkit-)?animation(?:\\s*):(?:\\s*))([^;]+)/g,\n (_, start, animationDeclarations) => start +\n animationDeclarations.replace(\n this._animationDeclarationKeyframesRe,\n (original: string, leadingSpaces: string, quote = '', quotedName: string,\n nonQuotedName: string) => {\n if (quotedName) {\n return `${leadingSpaces}${\n this._scopeAnimationKeyframe(\n `${quote}${quotedName}${quote}`, scopeSelector, unscopedKeyframesSet)}`;\n } else {\n return animationKeywords.has(nonQuotedName) ?\n original :\n `${leadingSpaces}${\n this._scopeAnimationKeyframe(\n nonQuotedName, scopeSelector, unscopedKeyframesSet)}`;\n }\n }));\n content = content.replace(\n /((?:^|\\s+|;)(?:-webkit-)?animation-name(?:\\s*):(?:\\s*))([^;]+)/g,\n (_match, start, commaSeparatedKeyframes) => `${start}${\n commaSeparatedKeyframes.split(',')\n .map(\n (keyframe: string) =>\n this._scopeAnimationKeyframe(keyframe, scopeSelector, unscopedKeyframesSet))\n .join(',')}`);\n return {...rule, content};\n }\n\n /*\n * Process styles to convert native ShadowDOM rules that will trip\n * up the css parser; we rely on decorating the stylesheet with inert rules.\n *\n * For example, we convert this rule:\n *\n * polyfill-next-selector { content: ':host menu-item'; }\n * ::content menu-item {\n *\n * to this:\n *\n * scopeName menu-item {\n *\n **/\n private _insertPolyfillDirectivesInCssText(cssText: string): string {\n return cssText.replace(_cssContentNextSelectorRe, function(...m: string[]) {\n return m[2] + '{';\n });\n }\n\n /*\n * Process styles to add rules which will only apply under the polyfill\n *\n * For example, we convert this rule:\n *\n * polyfill-rule {\n * content: ':host menu-item';\n * ...\n * }\n *\n * to this:\n *\n * scopeName menu-item {...}\n *\n **/\n private _insertPolyfillRulesInCssText(cssText: string): string {\n return cssText.replace(_cssContentRuleRe, (...m: string[]) => {\n const rule = m[0].replace(m[1], '').replace(m[2], '');\n return m[4] + rule;\n });\n }\n\n /* Ensure styles are scoped. Pseudo-scoping takes a rule like:\n *\n * .foo {... }\n *\n * and converts this to\n *\n * scopeName .foo { ... }\n */\n private _scopeCssText(cssText: string, scopeSelector: string, hostSelector: string): string {\n const unscopedRules = this._extractUnscopedRulesFromCssText(cssText);\n // replace :host and :host-context -shadowcsshost and -shadowcsshost respectively\n cssText = this._insertPolyfillHostInCssText(cssText);\n cssText = this._convertColonHost(cssText);\n cssText = this._convertColonHostContext(cssText);\n cssText = this._convertShadowDOMSelectors(cssText);\n if (scopeSelector) {\n cssText = this._scopeKeyframesRelatedCss(cssText, scopeSelector);\n cssText = this._scopeSelectors(cssText, scopeSelector, hostSelector);\n }\n cssText = cssText + '\\n' + unscopedRules;\n return cssText.trim();\n }\n\n /*\n * Process styles to add rules which will only apply under the polyfill\n * and do not process via CSSOM. (CSSOM is destructive to rules on rare\n * occasions, e.g. -webkit-calc on Safari.)\n * For example, we convert this rule:\n *\n * @polyfill-unscoped-rule {\n * content: 'menu-item';\n * ... }\n *\n * to this:\n *\n * menu-item {...}\n *\n **/\n private _extractUnscopedRulesFromCssText(cssText: string): string {\n let r = '';\n let m: RegExpExecArray|null;\n _cssContentUnscopedRuleRe.lastIndex = 0;\n while ((m = _cssContentUnscopedRuleRe.exec(cssText)) !== null) {\n const rule = m[0].replace(m[2], '').replace(m[1], m[4]);\n r += rule + '\\n\\n';\n }\n return r;\n }\n\n /*\n * convert a rule like :host(.foo) > .bar { }\n *\n * to\n *\n * .foo<scopeName> > .bar\n */\n private _convertColonHost(cssText: string): string {\n return cssText.replace(_cssColonHostRe, (_, hostSelectors: string, otherSelectors: string) => {\n if (hostSelectors) {\n const convertedSelectors: string[] = [];\n const hostSelectorArray = hostSelectors.split(',').map((p) => p.trim());\n for (const hostSelector of hostSelectorArray) {\n if (!hostSelector) break;\n const convertedSelector =\n _polyfillHostNoCombinator + hostSelector.replace(_polyfillHost, '') + otherSelectors;\n convertedSelectors.push(convertedSelector);\n }\n return convertedSelectors.join(',');\n } else {\n return _polyfillHostNoCombinator + otherSelectors;\n }\n });\n }\n\n /*\n * convert a rule like :host-context(.foo) > .bar { }\n *\n * to\n *\n * .foo<scopeName> > .bar, .foo <scopeName> > .bar { }\n *\n * and\n *\n * :host-context(.foo:host) .bar { ... }\n *\n * to\n *\n * .foo<scopeName> .bar { ... }\n */\n private _convertColonHostContext(cssText: string): string {\n return cssText.replace(_cssColonHostContextReGlobal, (selectorText) => {\n // We have captured a selector that contains a `:host-context` rule.\n\n // For backward compatibility `:host-context` may contain a comma separated list of selectors.\n // Each context selector group will contain a list of host-context selectors that must match\n // an ancestor of the host.\n // (Normally `contextSelectorGroups` will only contain a single array of context selectors.)\n const contextSelectorGroups: string[][] = [[]];\n\n // There may be more than `:host-context` in this selector so `selectorText` could look like:\n // `:host-context(.one):host-context(.two)`.\n // Execute `_cssColonHostContextRe` over and over until we have extracted all the\n // `:host-context` selectors from this selector.\n let match: RegExpExecArray|null;\n while ((match = _cssColonHostContextRe.exec(selectorText))) {\n // `match` = [':host-context(<selectors>)<rest>', <selectors>, <rest>]\n\n // The `<selectors>` could actually be a comma separated list: `:host-context(.one, .two)`.\n const newContextSelectors =\n (match[1] ?? '').trim().split(',').map((m) => m.trim()).filter((m) => m !== '');\n\n // We must duplicate the current selector group for each of these new selectors.\n // For example if the current groups are:\n // ```\n // [\n // ['a', 'b', 'c'],\n // ['x', 'y', 'z'],\n // ]\n // ```\n // And we have a new set of comma separated selectors: `:host-context(m,n)` then the new\n // groups are:\n // ```\n // [\n // ['a', 'b', 'c', 'm'],\n // ['x', 'y', 'z', 'm'],\n // ['a', 'b', 'c', 'n'],\n // ['x', 'y', 'z', 'n'],\n // ]\n // ```\n const contextSelectorGroupsLength = contextSelectorGroups.length;\n repeatGroups(contextSelectorGroups, newContextSelectors.length);\n for (let i = 0; i < newContextSelectors.length; i++) {\n for (let j = 0; j < contextSelectorGroupsLength; j++) {\n contextSelectorGroups[j + i * contextSelectorGroupsLength].push(newContextSelectors[i]);\n }\n }\n\n // Update the `selectorText` and see repeat to see if there are more `:host-context`s.\n selectorText = match[2];\n }\n\n // The context selectors now must be combined with each other to capture all the possible\n // selectors that `:host-context` can match. See `combineHostContextSelectors()` for more\n // info about how this is done.\n return contextSelectorGroups\n .map((contextSelectors) => combineHostContextSelectors(contextSelectors, selectorText))\n .join(', ');\n });\n }\n\n /*\n * Convert combinators like ::shadow and pseudo-elements like ::content\n * by replacing with space.\n */\n private _convertShadowDOMSelectors(cssText: string): string {\n return _shadowDOMSelectorsRe.reduce((result, pattern) => result.replace(pattern, ' '), cssText);\n }\n\n // change a selector like 'div' to 'name div'\n private _scopeSelectors(cssText: string, scopeSelector: string, hostSelector: string): string {\n return processRules(cssText, (rule: CssRule) => {\n let selector = rule.selector;\n let content = rule.content;\n if (rule.selector[0] !== '@') {\n selector = this._scopeSelector(rule.selector, scopeSelector, hostSelector);\n } else if (\n rule.selector.startsWith('@media') || rule.selector.startsWith('@supports') ||\n rule.selector.startsWith('@document') || rule.selector.startsWith('@layer') ||\n rule.selector.startsWith('@container') || rule.selector.startsWith('@scope')) {\n content = this._scopeSelectors(rule.content, scopeSelector, hostSelector);\n } else if (rule.selector.startsWith('@font-face') || rule.selector.startsWith('@page')) {\n content = this._stripScopingSelectors(rule.content);\n }\n return new CssRule(selector, content);\n });\n }\n\n /**\n * Handle a css text that is within a rule that should not contain scope selectors by simply\n * removing them! An example of such a rule is `@font-face`.\n *\n * `@font-face` rules cannot contain nested selectors. Nor can they be nested under a selector.\n * Normally this would be a syntax error by the author of the styles. But in some rare cases, such\n * as importing styles from a library, and applying `:host ::ng-deep` to the imported styles, we\n * can end up with broken css if the imported styles happen to contain @font-face rules.\n *\n * For example:\n *\n * ```\n * :host ::ng-deep {\n * import 'some/lib/containing/font-face';\n * }\n *\n * Similar logic applies to `@page` rules which can contain a particular set of properties,\n * as well as some specific at-rules. Since they can't be encapsulated, we have to strip\n * any scoping selectors from them. For more information: https://www.w3.org/TR/css-page-3\n * ```\n */\n private _stripScopingSelectors(cssText: string): string {\n return processRules(cssText, (rule) => {\n const selector = rule.selector.replace(_shadowDeepSelectors, ' ')\n .replace(_polyfillHostNoCombinatorRe, ' ');\n return new CssRule(selector, rule.content);\n });\n }\n\n private _scopeSelector(selector: string, scopeSelector: string, hostSelector: string): string {\n return selector.split(',')\n .map((part) => part.trim().split(_shadowDeepSelectors))\n .map((deepParts) => {\n const [shallowPart, ...otherParts] = deepParts;\n const applyScope = (shallowPart: string) => {\n if (this._selectorNeedsScoping(shallowPart, scopeSelector)) {\n return this._applySelectorScope(shallowPart, scopeSelector, hostSelector);\n } else {\n return shallowPart;\n }\n };\n return [applyScope(shallowPart), ...otherParts].join(' ');\n })\n .join(', ');\n }\n\n private _selectorNeedsScoping(selector: string, scopeSelector: string): boolean {\n const re = this._makeScopeMatcher(scopeSelector);\n return !re.test(selector);\n }\n\n private _makeScopeMatcher(scopeSelector: string): RegExp {\n const lre = /\\[/g;\n const rre = /\\]/g;\n scopeSelector = scopeSelector.replace(lre, '\\\\[').replace(rre, '\\\\]');\n return new RegExp('^(' + scopeSelector + ')' + _selectorReSuffix, 'm');\n }\n\n // scope via name and [is=name]\n private _applySimpleSelectorScope(selector: string, scopeSelector: string, hostSelector: string):\n string {\n // In Android browser, the lastIndex is not reset when the regex is used in String.replace()\n _polyfillHostRe.lastIndex = 0;\n if (_polyfillHostRe.test(selector)) {\n const replaceBy = `[${hostSelector}]`;\n return selector\n .replace(\n _polyfillHostNoCombinatorRe,\n (hnc, selector) => {\n return selector.replace(\n /([^:]*)(:*)(.*)/,\n (_: string, before: string, colon: string, after: string) => {\n return before + replaceBy + colon + after;\n });\n })\n .replace(_polyfillHostRe, replaceBy + ' ');\n }\n\n return scopeSelector + ' ' + selector;\n }\n\n // return a selector with [name] suffix on each simple selector\n // e.g. .foo.bar > .zot becomes .foo[name].bar[name] > .zot[name] /** @internal */\n private _applySelectorScope(selector: string, scopeSelector: string, hostSelector: string):\n string {\n const isRe = /\\[is=([^\\]]*)\\]/g;\n scopeSelector = scopeSelector.replace(isRe, (_: string, ...parts: string[]) => parts[0]);\n\n const attrName = '[' + scopeSelector + ']';\n\n const _scopeSelectorPart = (p: string) => {\n let scopedP = p.trim();\n\n if (!scopedP) {\n return '';\n }\n\n if (p.indexOf(_polyfillHostNoCombinator) > -1) {\n scopedP = this._applySimpleSelectorScope(p, scopeSelector, hostSelector);\n } else {\n // remove :host since it should be unnecessary\n const t = p.replace(_polyfillHostRe, '');\n if (t.length > 0) {\n const matches = t.match(/([^:]*)(:*)(.*)/);\n if (matches) {\n scopedP = matches[1] + attrName + matches[2] + matches[3];\n }\n }\n }\n\n return scopedP;\n };\n\n const safeContent = new SafeSelector(selector);\n selector = safeContent.content();\n\n let scopedSelector = '';\n let startIndex = 0;\n let res: RegExpExecArray|null;\n const sep = /( |>|\\+|~(?!=))\\s*/g;\n\n // If a selector appears before :host it should not be shimmed as it\n // matches on ancestor elements and not on elements in the host's shadow\n // `:host-context(div)` is transformed to\n // `-shadowcsshost-no-combinatordiv, div -shadowcsshost-no-combinator`\n // the `div` is not part of the component in the 2nd selectors and should not be scoped.\n // Historically `component-tag:host` was matching the component so we also want to preserve\n // this behavior to avoid breaking legacy apps (it should not match).\n // The behavior should be:\n // - `tag:host` -> `tag[h]` (this is to avoid breaking legacy apps, should not match anything)\n // - `tag :host` -> `tag [h]` (`tag` is not scoped because it's considered part of a\n // `:host-context(tag)`)\n const hasHost = selector.indexOf(_polyfillHostNoCombinator) > -1;\n // Only scope parts after the first `-shadowcsshost-no-combinator` when it is present\n let shouldScope = !hasHost;\n\n while ((res = sep.exec(selector)) !== null) {\n const separator = res[1];\n const part = selector.slice(startIndex, res.index).trim();\n\n // A space following an escaped hex value and followed by another hex character\n // (ie: \".\\fc ber\" for \".über\") is not a separator between 2 selectors\n // also keep in mind that backslashes are replaced by a placeholder by SafeSelector\n // These escaped selectors happen for example when esbuild runs with optimization.minify.\n if (part.match(/__esc-ph-(\\d+)__/) && selector[res.index + 1]?.match(/[a-fA-F\\d]/)) {\n continue;\n }\n\n shouldScope = shouldScope || part.indexOf(_polyfillHostNoCombinator) > -1;\n const scopedPart = shouldScope ? _scopeSelectorPart(part) : part;\n scopedSelector += `${scopedPart} ${separator} `;\n startIndex = sep.lastIndex;\n }\n\n const part = selector.substring(startIndex);\n shouldScope = shouldScope || part.indexOf(_polyfillHostNoCombinator) > -1;\n scopedSelector += shouldScope ? _scopeSelectorPart(part) : part;\n\n // replace the placeholders with their original values\n return safeContent.restore(scopedSelector);\n }\n\n private _insertPolyfillHostInCssText(selector: string): string {\n return selector.replace(_colonHostContextRe, _polyfillHostContext)\n .replace(_colonHostRe, _polyfillHost);\n }\n}\n\nclass SafeSelector {\n private placeholders: string[] = [];\n private index = 0;\n private _content: string;\n\n constructor(selector: string) {\n // Replaces attribute selectors with placeholders.\n // The WS in [attr=\"va lue\"] would otherwise be interpreted as a selector separator.\n selector = this._escapeRegexMatches(selector, /(\\[[^\\]]*\\])/g);\n\n // CSS allows for certain special characters to be used in selectors if they're escaped.\n // E.g. `.foo:blue` won't match a class called `foo:blue`, because the colon denotes a\n // pseudo-class, but writing `.foo\\:blue` will match, because the colon was escaped.\n // Replace all escape sequences (`\\` followed by a character) with a placeholder so\n // that our handling of pseudo-selectors doesn't mess with them.\n // Escaped characters have a specific placeholder so they can be detected separately.\n selector = selector.replace(/(\\\\.)/g, (_, keep) => {\n const replaceBy = `__esc-ph-${this.index}__`;\n this.placeholders.push(keep);\n this.index++;\n return replaceBy;\n });\n\n // Replaces the expression in `:nth-child(2n + 1)` with a placeholder.\n // WS and \"+\" would otherwise be interpreted as selector separators.\n this._content = selector.replace(/(:nth-[-\\w]+)(\\([^)]+\\))/g, (_, pseudo, exp) => {\n const replaceBy = `__ph-${this.index}__`;\n this.placeholders.push(exp);\n this.index++;\n return pseudo + replaceBy;\n });\n }\n\n restore(content: string): string {\n return content.replace(/__(?:ph|esc-ph)-(\\d+)__/g, (_ph, index) => this.placeholders[+index]);\n }\n\n content(): string {\n return this._content;\n }\n\n /**\n * Replaces all of the substrings that match a regex within a\n * special string (e.g. `__ph-0__`, `__ph-1__`, etc).\n */\n private _escapeRegexMatches(content: string, pattern: RegExp): string {\n return content.replace(pattern, (_, keep) => {\n const replaceBy = `__ph-${this.index}__`;\n this.placeholders.push(keep);\n this.index++;\n return replaceBy;\n });\n }\n}\n\nconst _cssContentNextSelectorRe =\n /polyfill-next-selector[^}]*content:[\\s]*?(['\"])(.*?)\\1[;\\s]*}([^{]*?){/gim;\nconst _cssContentRuleRe = /(polyfill-rule)[^}]*(content:[\\s]*(['\"])(.*?)\\3)[;\\s]*[^}]*}/gim;\nconst _cssContentUnscopedRuleRe =\n /(polyfill-unscoped-rule)[^}]*(content:[\\s]*(['\"])(.*?)\\3)[;\\s]*[^}]*}/gim;\nconst _polyfillHost = '-shadowcsshost';\n// note: :host-context pre-processed to -shadowcsshostcontext.\nconst _polyfillHostContext = '-shadowcsscontext';\nconst _parenSuffix = '(?:\\\\((' +\n '(?:\\\\([^)(]*\\\\)|[^)(]*)+?' +\n ')\\\\))?([^,{]*)';\nconst _cssColonHostRe = new RegExp(_polyfillHost + _parenSuffix, 'gim');\nconst _cssColonHostContextReGlobal = new RegExp(_polyfillHostContext + _parenSuffix, 'gim');\nconst _cssColonHostContextRe = new RegExp(_polyfillHostContext + _parenSuffix, 'im');\nconst _polyfillHostNoCombinator = _polyfillHost + '-no-combinator';\nconst _polyfillHostNoCombinatorRe = /-shadowcsshost-no-combinator([^\\s]*)/;\nconst _shadowDOMSelectorsRe = [\n /::shadow/g,\n /::content/g,\n // Deprecated selectors\n /\\/shadow-deep\\//g,\n /\\/shadow\\//g,\n];\n\n// The deep combinator is deprecated in the CSS spec\n// Support for `>>>`, `deep`, `::ng-deep` is then also deprecated and will be removed in the future.\n// see https://github.com/angular/angular/pull/17677\nconst _shadowDeepSelectors = /(?:>>>)|(?:\\/deep\\/)|(?:::ng-deep)/g;\nconst _selectorReSuffix = '([>\\\\s~+[.,{:][\\\\s\\\\S]*)?$';\nconst _polyfillHostRe = /-shadowcsshost/gim;\nconst _colonHostRe = /:host/gim;\nconst _colonHostContextRe = /:host-context/gim;\n\nconst _newLinesRe = /\\r?\\n/g;\nconst _commentRe = /\\/\\*[\\s\\S]*?\\*\\//g;\nconst _commentWithHashRe = /\\/\\*\\s*#\\s*source(Mapping)?URL=/g;\nconst COMMENT_PLACEHOLDER = '%COMMENT%';\nconst _commentWithHashPlaceHolderRe = new RegExp(COMMENT_PLACEHOLDER, 'g');\n\nconst BLOCK_PLACEHOLDER = '%BLOCK%';\nconst _ruleRe = new RegExp(\n `(\\\\s*(?:${COMMENT_PLACEHOLDER}\\\\s*)*)([^;\\\\{\\\\}]+?)(\\\\s*)((?:{%BLOCK%}?\\\\s*;?)|(?:\\\\s*;))`,\n 'g');\nconst CONTENT_PAIRS = new Map([['{', '}']]);\n\nconst COMMA_IN_PLACEHOLDER = '%COMMA_IN_PLACEHOLDER%';\nconst SEMI_IN_PLACEHOLDER = '%SEMI_IN_PLACEHOLDER%';\nconst COLON_IN_PLACEHOLDER = '%COLON_IN_PLACEHOLDER%';\n\nconst _cssCommaInPlaceholderReGlobal = new RegExp(COMMA_IN_PLACEHOLDER, 'g');\nconst _cssSemiInPlaceholderReGlobal = new RegExp(SEMI_IN_PLACEHOLDER, 'g');\nconst _cssColonInPlaceholderReGlobal = new RegExp(COLON_IN_PLACEHOLDER, 'g');\n\nexport class CssRule {\n constructor(public selector: string, public content: string) {}\n}\n\nexport function processRules(input: string, ruleCallback: (rule: CssRule) => CssRule): string {\n const escaped = escapeInStrings(input);\n const inputWithEscapedBlocks = escapeBlocks(escaped, CONTENT_PAIRS, BLOCK_PLACEHOLDER);\n let nextBlockIndex = 0;\n const escapedResult = inputWithEscapedBlocks.escapedString.replace(_ruleRe, (...m: string[]) => {\n const selector = m[2];\n let content = '';\n let suffix = m[4];\n let contentPrefix = '';\n if (suffix && suffix.startsWith('{' + BLOCK_PLACEHOLDER)) {\n content = inputWithEscapedBlocks.blocks[nextBlockIndex++];\n suffix = suffix.substring(BLOCK_PLACEHOLDER.length + 1);\n contentPrefix = '{';\n }\n const rule = ruleCallback(new CssRule(selector, content));\n return `${m[1]}${rule.selector}${m[3]}${contentPrefix}${rule.content}${suffix}`;\n });\n return unescapeInStrings(escapedResult);\n}\n\nclass StringWithEscapedBlocks {\n constructor(public escapedString: string, public blocks: string[]) {}\n}\n\nfunction escapeBlocks(\n input: string, charPairs: Map<string, string>, placeholder: string): StringWithEscapedBlocks {\n const resultParts: string[] = [];\n const escapedBlocks: string[] = [];\n let openCharCount = 0;\n let nonBlockStartIndex = 0;\n let blockStartIndex = -1;\n let openChar: string|undefined;\n let closeChar: string|undefined;\n\n for (let i = 0; i < input.length; i++) {\n const char = input[i];\n if (char === '\\\\') {\n i++;\n } else if (char === closeChar) {\n openCharCount--;\n if (openCharCount === 0) {\n escapedBlocks.push(input.substring(blockStartIndex, i));\n resultParts.push(placeholder);\n nonBlockStartIndex = i;\n blockStartIndex = -1;\n openChar = closeChar = undefined;\n }\n } else if (char === openChar) {\n openCharCount++;\n } else if (openCharCount === 0 && charPairs.has(char)) {\n openChar = char;\n closeChar = charPairs.get(char);\n openCharCount = 1;\n blockStartIndex = i + 1;\n resultParts.push(input.substring(nonBlockStartIndex, blockStartIndex));\n }\n }\n\n if (blockStartIndex !== -1) {\n escapedBlocks.push(input.substring(blockStartIndex));\n resultParts.push(placeholder);\n } else {\n resultParts.push(input.substring(nonBlockStartIndex));\n }\n\n return new StringWithEscapedBlocks(resultParts.join(''), escapedBlocks);\n}\n\n/**\n * Object containing as keys characters that should be substituted by placeholders\n * when found in strings during the css text parsing, and as values the respective\n * placeholders\n */\nconst ESCAPE_IN_STRING_MAP: {[key: string]: string} = {\n ';': SEMI_IN_PLACEHOLDER,\n ',': COMMA_IN_PLACEHOLDER,\n ':': COLON_IN_PLACEHOLDER\n};\n\n/**\n * Parse the provided css text and inside strings (meaning, inside pairs of unescaped single or\n * double quotes) replace specific characters with their respective placeholders as indicated\n * by the `ESCAPE_IN_STRING_MAP` map.\n *\n * For example convert the text\n * `animation: \"my-anim:at\\\"ion\" 1s;`\n * to\n * `animation: \"my-anim%COLON_IN_PLACEHOLDER%at\\\"ion\" 1s;`\n *\n * This is necessary in order to remove the meaning of some characters when found inside strings\n * (for example `;` indicates the end of a css declaration, `,` the sequence of values and `:` the\n * division between property and value during a declaration, none of these meanings apply when such\n * characters are within strings and so in order to prevent parsing issues they need to be replaced\n * with placeholder text for the duration of the css manipulation process).\n *\n * @param input the original css text.\n *\n * @returns the css text with specific characters in strings replaced by placeholders.\n **/\nfunction escapeInStrings(input: string): string {\n let result = input;\n let currentQuoteChar: string|null = null;\n for (let i = 0; i < result.length; i++) {\n const char = result[i];\n if (char === '\\\\') {\n i++;\n } else {\n if (currentQuoteChar !== null) {\n // index i is inside a quoted sub-string\n if (char === currentQuoteChar) {\n currentQuoteChar = null;\n } else {\n const placeholder: string|undefined = ESCAPE_IN_STRING_MAP[char];\n if (placeholder) {\n result = `${result.substr(0, i)}${placeholder}${result.substr(i + 1)}`;\n i += placeholder.length - 1;\n }\n }\n } else if (char === '\\'' || char === '\"') {\n currentQuoteChar = char;\n }\n }\n }\n return result;\n}\n\n/**\n * Replace in a string all occurrences of keys in the `ESCAPE_IN_STRING_MAP` map with their\n * original representation, this is simply used to revert the changes applied by the\n * escapeInStrings function.\n *\n * For example it reverts the text:\n * `animation: \"my-anim%COLON_IN_PLACEHOLDER%at\\\"ion\" 1s;`\n * to it's original form of:\n * `animation: \"my-anim:at\\\"ion\" 1s;`\n *\n * Note: For the sake of simplicity this function does not check that the placeholders are\n * actually inside strings as it would anyway be extremely unlikely to find them outside of strings.\n *\n * @param input the css text containing the placeholders.\n *\n * @returns the css text without the placeholders.\n */\nfunction unescapeInStrings(input: string): string {\n let result = input.replace(_cssCommaInPlaceholderReGlobal, ',');\n result = result.replace(_cssSemiInPlaceholderReGlobal, ';');\n result = result.replace(_cssColonInPlaceholderReGlobal, ':');\n return result;\n}\n\n/**\n * Unescape all quotes present in a string, but only if the string was actually already\n * quoted.\n *\n * This generates a \"canonical\" representation of strings which can be used to match strings\n * which would otherwise only differ because of differently escaped quotes.\n *\n * For example it converts the string (assumed to be quoted):\n * `this \\\\\"is\\\\\" a \\\\'\\\\\\\\'test`\n * to:\n * `this \"is\" a '\\\\\\\\'test`\n * (note that the latter backslashes are not removed as they are not actually escaping the single\n * quote)\n *\n *\n * @param input the string possibly containing escaped quotes.\n * @param isQuoted boolean indicating whether the string was quoted inside a bigger string (if not\n * then it means that it doesn't represent an inner string and thus no unescaping is required)\n *\n * @returns the string in the \"canonical\" representation without escaped quotes.\n */\nfunction unescapeQuotes(str: string, isQuoted: boolean): string {\n return !isQuoted ? str : str.replace(/((?:^|[^\\\\])(?:\\\\\\\\)*)\\\\(?=['\"])/g, '$1');\n}\n\n/**\n * Combine the `contextSelectors` with the `hostMarker` and the `otherSelectors`\n * to create a selector that matches the same as `:host-context()`.\n *\n * Given a single context selector `A` we need to output selectors that match on the host and as an\n * ancestor of the host:\n *\n * ```\n * A <hostMarker>, A<hostMarker> {}\n * ```\n *\n * When there is more than one context selector we also have to create combinations of those\n * selectors with each other. For example if there are `A` and `B` selectors the output is:\n *\n * ```\n * AB<hostMarker>, AB <hostMarker>, A B<hostMarker>,\n * B A<hostMarker>, A B <hostMarker>, B A <hostMarker> {}\n * ```\n *\n * And so on...\n *\n * @param contextSelectors an array of context selectors that will be combined.\n * @param otherSelectors the rest of the selectors that are not context selectors.\n */\nfunction combineHostContextSelectors(contextSelectors: string[], otherSelectors: string): string {\n const hostMarker = _polyfillHostNoCombinator;\n _polyfillHostRe.lastIndex = 0; // reset the regex to ensure we get an accurate test\n const otherSelectorsHasHost = _polyfillHostRe.test(otherSelectors);\n\n // If there are no context selectors then just output a host marker\n if (contextSelectors.length === 0) {\n return hostMarker + otherSelectors;\n }\n\n const combined: string[] = [contextSelectors.pop() || ''];\n while (contextSelectors.length > 0) {\n const length = combined.length;\n const contextSelector = contextSelectors.pop();\n for (let i = 0; i < length; i++) {\n const previousSelectors = combined[i];\n // Add the new selector as a descendant of the previous selectors\n combined[length * 2 + i] = previousSelectors + ' ' + contextSelector;\n // Add the new selector as an ancestor of the previous selectors\n combined[length + i] = contextSelector + ' ' + previousSelectors;\n // Add the new selector to act on the same element as the previous selectors\n combined[i] = contextSelector + previousSelectors;\n }\n }\n // Finally connect the selector to the `hostMarker`s: either acting directly on the host\n // (A<hostMarker>) or as an ancestor (A <hostMarker>).\n return combined\n .map(\n s => otherSelectorsHasHost ?\n `${s}${otherSelectors}` :\n `${s}${hostMarker}${otherSelectors}, ${s} ${hostMarker}${otherSelectors}`)\n .join(',');\n}\n\n/**\n * Mutate the given `groups` array so that there are `multiples` clones of the original array\n * stored.\n *\n * For example `repeatGroups([a, b], 3)` will result in `[a, b, a, b, a, b]` - but importantly the\n * newly added groups will be clones of the original.\n *\n * @param groups An array of groups of strings that will be repeated. This array is mutated\n * in-place.\n * @param multiples The number of times the current groups should appear.\n */\nexport function repeatGroups(groups: string[][], multiples: number): void {\n const length = groups.length;\n for (let i = 1; i < multiples; i++) {\n for (let j = 0; j < length; j++) {\n groups[j + (i * length)] = groups[j].slice(0);\n }\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * Distinguishes different kinds of IR operations.\n *\n * Includes both creation and update operations.\n */\nexport enum OpKind {\n /**\n * A special operation type which is used to represent the beginning and end nodes of a linked\n * list of operations.\n */\n ListEnd,\n\n /**\n * An operation which wraps an output AST statement.\n */\n Statement,\n\n /**\n * An operation which declares and initializes a `SemanticVariable`.\n */\n Variable,\n\n /**\n * An operation to begin rendering of an element.\n */\n ElementStart,\n\n /**\n * An operation to render an element with no children.\n */\n Element,\n\n /**\n * An operation which declares an embedded view.\n */\n Template,\n\n /**\n * An operation to end rendering of an element previously started with `ElementStart`.\n */\n ElementEnd,\n\n /**\n * An operation to begin an `ng-container`.\n */\n ContainerStart,\n\n /**\n * An operation for an `ng-container` with no children.\n */\n Container,\n\n /**\n * An operation to end an `ng-container`.\n */\n ContainerEnd,\n\n /**\n * An operation disable binding for subsequent elements, which are descendants of a non-bindable\n * node.\n */\n DisableBindings,\n\n /**\n * An op to conditionally render a template.\n */\n Conditional,\n\n /**\n * An operation to re-enable binding, after it was previously disabled.\n */\n EnableBindings,\n\n /**\n * An operation to render a text node.\n */\n Text,\n\n /**\n * An operation declaring an event listener for an element.\n */\n Listener,\n\n /**\n * An operation to interpolate text into a text node.\n */\n InterpolateText,\n\n /**\n * An intermediate binding op, that has not yet been processed into an individual property,\n * attribute, style, etc.\n */\n Binding,\n\n /**\n * An operation to bind an expression to a property of an element.\n */\n Property,\n\n /**\n * An operation to bind an expression to a style property of an element.\n */\n StyleProp,\n\n /**\n * An operation to bind an expression to a class property of an element.\n */\n ClassProp,\n\n /**\n * An operation to bind an expression to the styles of an element.\n */\n StyleMap,\n\n /**\n * An operation to bind an expression to the classes of an element.\n */\n ClassMap,\n\n /**\n * An operation to advance the runtime's implicit slot context during the update phase of a view.\n */\n Advance,\n\n /**\n * An operation to instantiate a pipe.\n */\n Pipe,\n\n /**\n * An operation to associate an attribute with an element.\n */\n Attribute,\n\n /**\n * An attribute that has been extracted for inclusion in the consts array.\n */\n ExtractedAttribute,\n\n /**\n * An operation that configures a `@defer` block.\n */\n Defer,\n\n /**\n * An operation that controls when a `@defer` loads.\n */\n DeferOn,\n\n /**\n * An operation that controls when a `@defer` loads, using a custom expression as the condition.\n */\n DeferWhen,\n\n /**\n * An i18n message that has been extracted for inclusion in the consts array.\n */\n I18nMessage,\n\n /**\n * A host binding property.\n */\n HostProperty,\n\n /**\n * A namespace change, which causes the subsequent elements to be processed as either HTML or SVG.\n */\n Namespace,\n\n /**\n * Configure a content projeciton definition for the view.\n */\n ProjectionDef,\n\n /**\n * Create a content projection slot.\n */\n Projection,\n\n /**\n * Create a repeater creation instruction op.\n */\n RepeaterCreate,\n\n /**\n * An update up for a repeater.\n */\n Repeater,\n\n /**\n * The start of an i18n block.\n */\n I18nStart,\n\n /**\n * A self-closing i18n on a single element.\n */\n I18n,\n\n /**\n * The end of an i18n block.\n */\n I18nEnd,\n\n /**\n * An expression in an i18n message.\n */\n I18nExpression,\n\n /**\n * An instruction that applies a set of i18n expressions.\n */\n I18nApply,\n\n /**\n * An instruction to create an ICU expression.\n */\n IcuStart,\n\n /**\n * An instruction to update an ICU expression.\n */\n IcuEnd,\n\n /**\n * An instruction representing a placeholder in an ICU expression.\n */\n IcuPlaceholder,\n\n /**\n * An i18n context containing information needed to generate an i18n message.\n */\n I18nContext,\n\n /**\n * A creation op that corresponds to i18n attributes on an element.\n */\n I18nAttributes,\n}\n\n/**\n * Distinguishes different kinds of IR expressions.\n */\nexport enum ExpressionKind {\n /**\n * Read of a variable in a lexical scope.\n */\n LexicalRead,\n\n /**\n * A reference to the current view context.\n */\n Context,\n\n /**\n * A reference to the view context, for use inside a track function.\n */\n TrackContext,\n\n /**\n * Read of a variable declared in a `VariableOp`.\n */\n ReadVariable,\n\n /**\n * Runtime operation to navigate to the next view context in the view hierarchy.\n */\n NextContext,\n\n /**\n * Runtime operation to retrieve the value of a local reference.\n */\n Reference,\n\n /**\n * Runtime operation to snapshot the current view context.\n */\n GetCurrentView,\n\n /**\n * Runtime operation to restore a snapshotted view.\n */\n RestoreView,\n\n /**\n * Runtime operation to reset the current view context after `RestoreView`.\n */\n ResetView,\n\n /**\n * Defines and calls a function with change-detected arguments.\n */\n PureFunctionExpr,\n\n /**\n * Indicates a positional parameter to a pure function definition.\n */\n PureFunctionParameterExpr,\n\n /**\n * Binding to a pipe transformation.\n */\n PipeBinding,\n\n /**\n * Binding to a pipe transformation with a variable number of arguments.\n */\n PipeBindingVariadic,\n\n /*\n * A safe property read requiring expansion into a null check.\n */\n SafePropertyRead,\n\n /**\n * A safe keyed read requiring expansion into a null check.\n */\n SafeKeyedRead,\n\n /**\n * A safe function call requiring expansion into a null check.\n */\n SafeInvokeFunction,\n\n /**\n * An intermediate expression that will be expanded from a safe read into an explicit ternary.\n */\n SafeTernaryExpr,\n\n /**\n * An empty expression that will be stipped before generating the final output.\n */\n EmptyExpr,\n\n /*\n * An assignment to a temporary variable.\n */\n AssignTemporaryExpr,\n\n /**\n * A reference to a temporary variable.\n */\n ReadTemporaryExpr,\n\n /**\n * An expression representing a sanitizer function.\n */\n SanitizerExpr,\n\n /**\n * An expression representing a function to create trusted values.\n */\n TrustedValueFnExpr,\n\n /**\n * An expression that will cause a literal slot index to be emitted.\n */\n SlotLiteralExpr,\n\n /**\n * A test expression for a conditional op.\n */\n ConditionalCase,\n\n /**\n * A variable for use inside a repeater, providing one of the ambiently-available context\n * properties ($even, $first, etc.).\n */\n DerivedRepeaterVar,\n\n /**\n * An expression that will be automatically extracted to the component const array.\n */\n ConstCollected,\n}\n\nexport enum VariableFlags {\n None = 0b0000,\n\n /**\n * Always inline this variable, regardless of the number of times it's used.\n * An `AlwaysInline` variable may not depend on context, because doing so may cause side effects\n * that are illegal when multi-inlined. (The optimizer will enforce this constraint.)\n */\n AlwaysInline = 0b0001,\n}\n/**\n * Distinguishes between different kinds of `SemanticVariable`s.\n */\nexport enum SemanticVariableKind {\n /**\n * Represents the context of a particular view.\n */\n Context,\n\n /**\n * Represents an identifier declared in the lexical scope of a view.\n */\n Identifier,\n\n /**\n * Represents a saved state that can be used to restore a view in a listener handler function.\n */\n SavedView,\n\n /**\n * An alias generated by a special embedded view type (e.g. a `@for` block).\n */\n Alias,\n}\n\n/**\n * Whether to compile in compatibilty mode. In compatibility mode, the template pipeline will\n * attempt to match the output of `TemplateDefinitionBuilder` as exactly as possible, at the cost\n * of producing quirky or larger code in some cases.\n */\nexport enum CompatibilityMode {\n Normal,\n TemplateDefinitionBuilder,\n}\n\n/**\n * Enumeration of the different kinds of `@defer` secondary blocks.\n */\nexport enum DeferSecondaryKind {\n Loading,\n Placeholder,\n Error,\n}\n\n/**\n * Enumeration of the types of attributes which can be applied to an element.\n */\nexport enum BindingKind {\n /**\n * Static attributes.\n */\n Attribute,\n\n /**\n * Class bindings.\n */\n ClassName,\n\n /**\n * Style bindings.\n */\n StyleProperty,\n\n /**\n * Dynamic property bindings.\n */\n Property,\n\n /**\n * Property or attribute bindings on a template.\n */\n Template,\n\n /**\n * Internationalized attributes.\n */\n I18n,\n\n /**\n * Animation property bindings.\n */\n Animation,\n}\n\n/**\n * Enumeration of possible times i18n params can be resolved.\n */\nexport enum I18nParamResolutionTime {\n /**\n * Param is resolved at message creation time. Most params should be resolved at message creation\n * time. However, ICU params need to be handled in post-processing.\n */\n Creation,\n\n /**\n * Param is resolved during post-processing. This should be used for params who's value comes from\n * an ICU.\n */\n Postproccessing\n}\n\n/**\n * The contexts in which an i18n expression can be used.\n */\nexport enum I18nExpressionFor {\n /**\n * This expression is used as a value (i.e. inside an i18n block).\n */\n I18nText,\n\n /**\n * This expression is used in a binding.\n */\n I18nAttribute,\n}\n\n/**\n * Flags that describe what an i18n param value. These determine how the value is serialized into\n * the final map.\n */\nexport enum I18nParamValueFlags {\n None = 0b0000,\n\n /**\n * This value represtents an element tag.\n */\n ElementTag = 0b1,\n\n /**\n * This value represents a template tag.\n */\n TemplateTag = 0b10,\n\n /**\n * This value represents the opening of a tag.\n */\n OpenTag = 0b0100,\n\n /**\n * This value represents the closing of a tag.\n */\n CloseTag = 0b1000,\n\n /**\n * This value represents an i18n expression index.\n */\n ExpressionIndex = 0b10000\n}\n\n/**\n * Whether the active namespace is HTML, MathML, or SVG mode.\n */\nexport enum Namespace {\n HTML,\n SVG,\n Math,\n}\n\n/**\n * The type of a `@defer` trigger, for use in the ir.\n */\nexport enum DeferTriggerKind {\n Idle,\n Immediate,\n Timer,\n Hover,\n Interaction,\n Viewport,\n}\n\n/**\n * Kinds of i18n contexts. They can be created because of root i18n blocks, or ICUs.\n */\nexport enum I18nContextKind {\n RootI18n,\n Icu,\n Attr\n}\n\nexport enum TemplateKind {\n NgTemplate,\n Structural,\n Block\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport type {ParseSourceSpan} from '../../../../parse_util';\nimport type {Expression} from './expression';\nimport type {Op, XrefId} from './operations';\nimport {SlotHandle} from './handle';\n\n/**\n * Marker symbol for `ConsumesSlotOpTrait`.\n */\nexport const ConsumesSlot = Symbol('ConsumesSlot');\n\n/**\n * Marker symbol for `DependsOnSlotContextOpTrait`.\n */\nexport const DependsOnSlotContext = Symbol('DependsOnSlotContext');\n\n/**\n * Marker symbol for `ConsumesVars` trait.\n */\nexport const ConsumesVarsTrait = Symbol('ConsumesVars');\n\n/**\n * Marker symbol for `UsesVarOffset` trait.\n */\nexport const UsesVarOffset = Symbol('UsesVarOffset');\n\n/**\n * Marks an operation as requiring allocation of one or more data slots for storage.\n */\nexport interface ConsumesSlotOpTrait {\n readonly[ConsumesSlot]: true;\n\n /**\n * Assigned data slot (the starting index, if more than one slot is needed) for this operation, or\n * `null` if slots have not yet been assigned.\n */\n handle: SlotHandle;\n\n /**\n * The number of slots which will be used by this operation. By default 1, but can be increased if\n * necessary.\n */\n numSlotsUsed: number;\n\n /**\n * `XrefId` of this operation (e.g. the element stored in the assigned slot). This `XrefId` is\n * used to link this `ConsumesSlotOpTrait` operation with `DependsOnSlotContextTrait` or\n * `UsesSlotIndexExprTrait` implementors and ensure that the assigned slot is propagated through\n * the IR to all consumers.\n */\n xref: XrefId;\n}\n\n\n/**\n * Marks an operation as depending on the runtime's implicit slot context being set to a particular\n * slot.\n *\n * The runtime has an implicit slot context which is adjusted using the `advance()` instruction\n * during the execution of template update functions. This trait marks an operation as requiring\n * this implicit context to be `advance()`'d to point at a particular slot prior to execution.\n */\nexport interface DependsOnSlotContextOpTrait {\n readonly[DependsOnSlotContext]: true;\n\n /**\n * `XrefId` of the `ConsumesSlotOpTrait` which the implicit slot context must reference before\n * this operation can be executed.\n */\n target: XrefId;\n\n sourceSpan: ParseSourceSpan;\n}\n\n/**\n * Marker trait indicating that an operation or expression consumes variable storage space.\n */\nexport interface ConsumesVarsTrait {\n [ConsumesVarsTrait]: true;\n}\n\n/**\n * Marker trait indicating that an expression requires knowledge of the number of variable storage\n * slots used prior to it.\n */\nexport interface UsesVarOffsetTrait {\n [UsesVarOffset]: true;\n\n varOffset: number|null;\n}\n\n/**\n * Default values for most `ConsumesSlotOpTrait` fields (used with the spread operator to initialize\n * implementors of the trait).\n */\nexport const TRAIT_CONSUMES_SLOT: Omit<ConsumesSlotOpTrait, 'xref'|'handle'> = {\n [ConsumesSlot]: true,\n numSlotsUsed: 1,\n} as const;\n\n/**\n * Default values for most `DependsOnSlotContextOpTrait` fields (used with the spread operator to\n * initialize implementors of the trait).\n */\nexport const TRAIT_DEPENDS_ON_SLOT_CONTEXT:\n Omit<DependsOnSlotContextOpTrait, 'target'|'sourceSpan'> = {\n [DependsOnSlotContext]: true,\n } as const;\n\n/**\n * Default values for `UsesVars` fields (used with the spread operator to initialize\n * implementors of the trait).\n */\nexport const TRAIT_CONSUMES_VARS: ConsumesVarsTrait = {\n [ConsumesVarsTrait]: true,\n} as const;\n\n/**\n * Default values for `UsesVarOffset` fields (used with the spread operator to initialize\n * implementors of this trait).\n */\nexport const TRAIT_USES_VAR_OFFSET: UsesVarOffsetTrait = {\n [UsesVarOffset]: true,\n varOffset: null,\n} as const;\n\n/**\n * Test whether an operation implements `ConsumesSlotOpTrait`.\n */\nexport function hasConsumesSlotTrait<OpT extends Op<OpT>>(op: OpT): op is OpT&ConsumesSlotOpTrait {\n return (op as Partial<ConsumesSlotOpTrait>)[ConsumesSlot] === true;\n}\n\n/**\n * Test whether an operation implements `DependsOnSlotContextOpTrait`.\n */\nexport function hasDependsOnSlotContextTrait<OpT extends Op<OpT>>(op: OpT): op is OpT&\n DependsOnSlotContextOpTrait {\n return (op as Partial<DependsOnSlotContextOpTrait>)[DependsOnSlotContext] === true;\n}\n\n/**\n * Test whether an operation implements `ConsumesVarsTrait`.\n */\nexport function hasConsumesVarsTrait<ExprT extends Expression>(expr: ExprT): expr is ExprT&\n ConsumesVarsTrait;\nexport function hasConsumesVarsTrait<OpT extends Op<OpT>>(op: OpT): op is OpT&ConsumesVarsTrait;\nexport function hasConsumesVarsTrait(value: any): boolean {\n return (value as Partial<ConsumesVarsTrait>)[ConsumesVarsTrait] === true;\n}\n\n/**\n * Test whether an expression implements `UsesVarOffsetTrait`.\n */\nexport function hasUsesVarOffsetTrait<ExprT extends Expression>(expr: ExprT): expr is ExprT&\n UsesVarOffsetTrait {\n return (expr as Partial<UsesVarOffsetTrait>)[UsesVarOffset] === true;\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as o from '../../../../../output/output_ast';\nimport {OpKind, VariableFlags} from '../enums';\nimport {Op, XrefId} from '../operations';\nimport {SemanticVariable} from '../variable';\n\n/**\n * A special `Op` which is used internally in the `OpList` linked list to represent the head and\n * tail nodes of the list.\n *\n * `ListEndOp` is created internally in the `OpList` and should not be instantiated directly.\n */\nexport interface ListEndOp<OpT extends Op<OpT>> extends Op<OpT> {\n kind: OpKind.ListEnd;\n}\n\n/**\n * An `Op` which directly wraps an output `Statement`.\n *\n * Often `StatementOp`s are the final result of IR processing.\n */\nexport interface StatementOp<OpT extends Op<OpT>> extends Op<OpT> {\n kind: OpKind.Statement;\n\n /**\n * The output statement.\n */\n statement: o.Statement;\n}\n\n/**\n * Create a `StatementOp`.\n */\nexport function createStatementOp<OpT extends Op<OpT>>(statement: o.Statement): StatementOp<OpT> {\n return {\n kind: OpKind.Statement,\n statement,\n ...NEW_OP,\n };\n}\n\n/**\n * Operation which declares and initializes a `SemanticVariable`, that is valid either in create or\n * update IR.\n */\nexport interface VariableOp<OpT extends Op<OpT>> extends Op<OpT> {\n kind: OpKind.Variable;\n\n /**\n * `XrefId` which identifies this specific variable, and is used to reference this variable from\n * other parts of the IR.\n */\n xref: XrefId;\n\n /**\n * The `SemanticVariable` which describes the meaning behind this variable.\n */\n variable: SemanticVariable;\n\n /**\n * Expression representing the value of the variable.\n */\n initializer: o.Expression;\n\n flags: VariableFlags;\n}\n\n/**\n * Create a `VariableOp`.\n */\nexport function createVariableOp<OpT extends Op<OpT>>(\n xref: XrefId, variable: SemanticVariable, initializer: o.Expression,\n flags: VariableFlags): VariableOp<OpT> {\n return {\n kind: OpKind.Variable,\n xref,\n variable,\n initializer,\n flags,\n ...NEW_OP,\n };\n}\n\n/**\n * Static structure shared by all operations.\n *\n * Used as a convenience via the spread operator (`...NEW_OP`) when creating new operations, and\n * ensures the fields are always in the same order.\n */\nexport const NEW_OP: Pick<Op<any>, 'debugListId'|'prev'|'next'> = {\n debugListId: null,\n prev: null,\n next: null,\n};\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {SecurityContext} from '../../../../../core';\nimport * as i18n from '../../../../../i18n/i18n_ast';\nimport * as o from '../../../../../output/output_ast';\nimport {ParseSourceSpan} from '../../../../../parse_util';\nimport {BindingKind, I18nExpressionFor, I18nParamResolutionTime, OpKind, TemplateKind} from '../enums';\nimport type {ConditionalCaseExpr} from '../expression';\nimport {SlotHandle} from '../handle';\nimport {Op, XrefId} from '../operations';\nimport {ConsumesVarsTrait, DependsOnSlotContextOpTrait, TRAIT_CONSUMES_VARS, TRAIT_DEPENDS_ON_SLOT_CONTEXT} from '../traits';\nimport type {HostPropertyOp} from './host';\nimport {ListEndOp, NEW_OP, StatementOp, VariableOp} from './shared';\n\n\n/**\n * An operation usable on the update side of the IR.\n */\nexport type UpdateOp = ListEndOp<UpdateOp>|StatementOp<UpdateOp>|PropertyOp|AttributeOp|StylePropOp|\n ClassPropOp|StyleMapOp|ClassMapOp|InterpolateTextOp|AdvanceOp|VariableOp<UpdateOp>|BindingOp|\n HostPropertyOp|ConditionalOp|I18nExpressionOp|I18nApplyOp|RepeaterOp|DeferWhenOp;\n\n/**\n * A logical operation to perform string interpolation on a text node.\n *\n * Interpolation inputs are stored as static `string`s and dynamic `o.Expression`s, in separate\n * arrays. Thus, the interpolation `A{{b}}C{{d}}E` is stored as 3 static strings `['A', 'C', 'E']`\n * and 2 dynamic expressions `[b, d]`.\n */\nexport interface InterpolateTextOp extends Op<UpdateOp>, ConsumesVarsTrait {\n kind: OpKind.InterpolateText;\n\n /**\n * Reference to the text node to which the interpolation is bound.\n */\n target: XrefId;\n\n /**\n * The interpolated value.\n */\n interpolation: Interpolation;\n\n sourceSpan: ParseSourceSpan;\n}\n\n/**\n * Create an `InterpolationTextOp`.\n */\nexport function createInterpolateTextOp(\n xref: XrefId, interpolation: Interpolation, sourceSpan: ParseSourceSpan): InterpolateTextOp {\n return {\n kind: OpKind.InterpolateText,\n target: xref,\n interpolation,\n sourceSpan,\n ...TRAIT_DEPENDS_ON_SLOT_CONTEXT,\n ...TRAIT_CONSUMES_VARS,\n ...NEW_OP,\n };\n}\n\nexport class Interpolation {\n constructor(\n readonly strings: string[], readonly expressions: o.Expression[],\n readonly i18nPlaceholders: string[]) {\n if (i18nPlaceholders.length !== 0 && i18nPlaceholders.length !== expressions.length) {\n throw new Error(`Expected ${\n expressions.length} placeholders to match interpolation expression count, but got ${\n i18nPlaceholders.length}`);\n }\n }\n}\n\n/**\n * An intermediate binding op, that has not yet been processed into an individual property,\n * attribute, style, etc.\n */\nexport interface BindingOp extends Op<UpdateOp> {\n kind: OpKind.Binding;\n\n /**\n * Reference to the element on which the property is bound.\n */\n target: XrefId;\n\n /**\n * The kind of binding represented by this op.\n */\n bindingKind: BindingKind;\n\n /**\n * The name of this binding.\n */\n name: string;\n\n /**\n * Expression which is bound to the property.\n */\n expression: o.Expression|Interpolation;\n\n /**\n * The unit of the bound value.\n */\n unit: string|null;\n\n /**\n * The security context of the binding.\n */\n securityContext: SecurityContext|SecurityContext[];\n\n /**\n * Whether the binding is a TextAttribute (e.g. `some-attr=\"some-value\"`).\n *\n * This needs to be tracked for compatiblity with `TemplateDefinitionBuilder` which treats `style`\n * and `class` TextAttributes differently from `[attr.style]` and `[attr.class]`.\n */\n isTextAttribute: boolean;\n\n isStructuralTemplateAttribute: boolean;\n\n /**\n * Whether this binding is on a structural template.\n */\n templateKind: TemplateKind|null;\n\n i18nContext: XrefId|null;\n i18nMessage: i18n.Message|null;\n\n sourceSpan: ParseSourceSpan;\n}\n\n/**\n * Create a `BindingOp`, not yet transformed into a particular type of binding.\n */\nexport function createBindingOp(\n target: XrefId, kind: BindingKind, name: string, expression: o.Expression|Interpolation,\n unit: string|null, securityContext: SecurityContext|SecurityContext[], isTextAttribute: boolean,\n isStructuralTemplateAttribute: boolean, templateKind: TemplateKind|null,\n i18nMessage: i18n.Message|null, sourceSpan: ParseSourceSpan): BindingOp {\n return {\n kind: OpKind.Binding,\n bindingKind: kind,\n target,\n name,\n expression,\n unit,\n securityContext,\n isTextAttribute,\n isStructuralTemplateAttribute,\n templateKind,\n i18nContext: null,\n i18nMessage,\n sourceSpan,\n ...NEW_OP,\n };\n}\n\n/**\n * A logical operation representing binding to a property in the update IR.\n */\nexport interface PropertyOp extends Op<UpdateOp>, ConsumesVarsTrait, DependsOnSlotContextOpTrait {\n kind: OpKind.Property;\n\n /**\n * Reference to the element on which the property is bound.\n */\n target: XrefId;\n\n /**\n * Name of the bound property.\n */\n name: string;\n\n /**\n * Expression which is bound to the property.\n */\n expression: o.Expression|Interpolation;\n\n /**\n * Whether this property is an animation trigger.\n */\n isAnimationTrigger: boolean;\n\n /**\n * The security context of the binding.\n */\n securityContext: SecurityContext|SecurityContext[];\n\n /**\n * The sanitizer for this property.\n */\n sanitizer: o.Expression|null;\n\n isStructuralTemplateAttribute: boolean;\n\n /**\n * The kind of template targeted by the binding, or null if this binding does not target a\n * template.\n */\n templateKind: TemplateKind|null;\n\n i18nContext: XrefId|null;\n i18nMessage: i18n.Message|null;\n\n sourceSpan: ParseSourceSpan;\n}\n\n/**\n * Create a `PropertyOp`.\n */\nexport function createPropertyOp(\n target: XrefId, name: string, expression: o.Expression|Interpolation,\n isAnimationTrigger: boolean, securityContext: SecurityContext|SecurityContext[],\n isStructuralTemplateAttribute: boolean, templateKind: TemplateKind|null,\n i18nContext: XrefId|null, i18nMessage: i18n.Message|null,\n sourceSpan: ParseSourceSpan): PropertyOp {\n return {\n kind: OpKind.Property,\n target,\n name,\n expression,\n isAnimationTrigger,\n securityContext,\n sanitizer: null,\n isStructuralTemplateAttribute,\n templateKind,\n i18nContext,\n i18nMessage,\n sourceSpan,\n ...TRAIT_DEPENDS_ON_SLOT_CONTEXT,\n ...TRAIT_CONSUMES_VARS,\n ...NEW_OP,\n };\n}\n\n/**\n * A logical operation representing binding to a style property in the update IR.\n */\nexport interface StylePropOp extends Op<UpdateOp>, ConsumesVarsTrait, DependsOnSlotContextOpTrait {\n kind: OpKind.StyleProp;\n\n /**\n * Reference to the element on which the property is bound.\n */\n target: XrefId;\n\n /**\n * Name of the bound property.\n */\n name: string;\n\n /**\n * Expression which is bound to the property.\n */\n expression: o.Expression|Interpolation;\n\n /**\n * The unit of the bound value.\n */\n unit: string|null;\n\n sourceSpan: ParseSourceSpan;\n}\n\n/** Create a `StylePropOp`. */\nexport function createStylePropOp(\n xref: XrefId, name: string, expression: o.Expression|Interpolation, unit: string|null,\n sourceSpan: ParseSourceSpan): StylePropOp {\n return {\n kind: OpKind.StyleProp,\n target: xref,\n name,\n expression,\n unit,\n sourceSpan,\n ...TRAIT_DEPENDS_ON_SLOT_CONTEXT,\n ...TRAIT_CONSUMES_VARS,\n ...NEW_OP,\n };\n}\n\n/**\n * A logical operation representing binding to a class property in the update IR.\n */\nexport interface ClassPropOp extends Op<UpdateOp>, ConsumesVarsTrait, DependsOnSlotContextOpTrait {\n kind: OpKind.ClassProp;\n\n /**\n * Reference to the element on which the property is bound.\n */\n target: XrefId;\n\n /**\n * Name of the bound property.\n */\n name: string;\n\n /**\n * Expression which is bound to the property.\n */\n expression: o.Expression;\n\n sourceSpan: ParseSourceSpan;\n}\n\n/**\n * Create a `ClassPropOp`.\n */\nexport function createClassPropOp(\n xref: XrefId, name: string, expression: o.Expression,\n sourceSpan: ParseSourceSpan): ClassPropOp {\n return {\n kind: OpKind.ClassProp,\n target: xref,\n name,\n expression,\n sourceSpan,\n ...TRAIT_DEPENDS_ON_SLOT_CONTEXT,\n ...TRAIT_CONSUMES_VARS,\n ...NEW_OP,\n };\n}\n\n/**\n * A logical operation representing binding to a style map in the update IR.\n */\nexport interface StyleMapOp extends Op<UpdateOp>, ConsumesVarsTrait, DependsOnSlotContextOpTrait {\n kind: OpKind.StyleMap;\n\n /**\n * Reference to the element on which the property is bound.\n */\n target: XrefId;\n\n /**\n * Expression which is bound to the property.\n */\n expression: o.Expression|Interpolation;\n\n sourceSpan: ParseSourceSpan;\n}\n\n/** Create a `StyleMapOp`. */\nexport function createStyleMapOp(\n xref: XrefId, expression: o.Expression|Interpolation, sourceSpan: ParseSourceSpan): StyleMapOp {\n return {\n kind: OpKind.StyleMap,\n target: xref,\n expression,\n sourceSpan,\n ...TRAIT_DEPENDS_ON_SLOT_CONTEXT,\n ...TRAIT_CONSUMES_VARS,\n ...NEW_OP,\n };\n}\n\n/**\n * A logical operation representing binding to a style map in the update IR.\n */\nexport interface ClassMapOp extends Op<UpdateOp>, ConsumesVarsTrait, DependsOnSlotContextOpTrait {\n kind: OpKind.ClassMap;\n\n /**\n * Reference to the element on which the property is bound.\n */\n target: XrefId;\n\n /**\n * Expression which is bound to the property.\n */\n expression: o.Expression|Interpolation;\n\n sourceSpan: ParseSourceSpan;\n}\n\n/**\n * Create a `ClassMapOp`.\n */\nexport function createClassMapOp(\n xref: XrefId, expression: o.Expression|Interpolation, sourceSpan: ParseSourceSpan): ClassMapOp {\n return {\n kind: OpKind.ClassMap,\n target: xref,\n expression,\n sourceSpan,\n ...TRAIT_DEPENDS_ON_SLOT_CONTEXT,\n ...TRAIT_CONSUMES_VARS,\n ...NEW_OP,\n };\n}\n\n/**\n * A logical operation representing setting an attribute on an element in the update IR.\n */\nexport interface AttributeOp extends Op<UpdateOp> {\n kind: OpKind.Attribute;\n\n /**\n * The `XrefId` of the template-like element the attribute will belong to.\n */\n target: XrefId;\n\n /**\n * The namespace of the attribute (or null if none).\n */\n namespace: string|null;\n\n /**\n * The name of the attribute.\n */\n name: string;\n\n /**\n * The value of the attribute.\n */\n expression: o.Expression|Interpolation;\n\n /**\n * The security context of the binding.\n */\n securityContext: SecurityContext|SecurityContext[];\n\n /**\n * The sanitizer for this attribute.\n */\n sanitizer: o.Expression|null;\n\n /**\n * Whether the binding is a TextAttribute (e.g. `some-attr=\"some-value\"`).\n *\n * This needs to be tracked for compatiblity with `TemplateDefinitionBuilder` which treats `style`\n * and `class` TextAttributes differently from `[attr.style]` and `[attr.class]`.\n */\n isTextAttribute: boolean;\n\n isStructuralTemplateAttribute: boolean;\n\n /**\n * The kind of template targeted by the binding, or null if this binding does not target a\n * template.\n */\n templateKind: TemplateKind|null;\n\n /**\n * The i18n context, if this is an i18n attribute.\n */\n i18nContext: XrefId|null;\n\n i18nMessage: i18n.Message|null;\n\n sourceSpan: ParseSourceSpan;\n}\n\n/**\n * Create an `AttributeOp`.\n */\nexport function createAttributeOp(\n target: XrefId, namespace: string|null, name: string, expression: o.Expression|Interpolation,\n securityContext: SecurityContext|SecurityContext[], isTextAttribute: boolean,\n isStructuralTemplateAttribute: boolean, templateKind: TemplateKind|null,\n i18nMessage: i18n.Message|null, sourceSpan: ParseSourceSpan): AttributeOp {\n return {\n kind: OpKind.Attribute,\n target,\n namespace,\n name,\n expression,\n securityContext,\n sanitizer: null,\n isTextAttribute,\n isStructuralTemplateAttribute,\n templateKind,\n i18nContext: null,\n i18nMessage,\n sourceSpan,\n ...TRAIT_DEPENDS_ON_SLOT_CONTEXT,\n ...TRAIT_CONSUMES_VARS,\n ...NEW_OP,\n };\n}\n\n/**\n * Logical operation to advance the runtime's internal slot pointer in the update IR.\n */\nexport interface AdvanceOp extends Op<UpdateOp> {\n kind: OpKind.Advance;\n\n /**\n * Delta by which to advance the pointer.\n */\n delta: number;\n\n // Source span of the binding that caused the advance\n sourceSpan: ParseSourceSpan;\n}\n\n/**\n * Create an `AdvanceOp`.\n */\nexport function createAdvanceOp(delta: number, sourceSpan: ParseSourceSpan): AdvanceOp {\n return {\n kind: OpKind.Advance,\n delta,\n sourceSpan,\n ...NEW_OP,\n };\n}\n\n/**\n * Logical operation representing a conditional expression in the update IR.\n */\nexport interface ConditionalOp extends Op<ConditionalOp>, DependsOnSlotContextOpTrait,\n ConsumesVarsTrait {\n kind: OpKind.Conditional;\n\n /**\n * The insertion point, which is the first template in the creation block belonging to this\n * condition.\n */\n target: XrefId;\n\n /**\n * The slot of the target, to be populated during slot allocation.\n */\n targetSlot: SlotHandle;\n\n /**\n * The main test expression (for a switch), or `null` (for an if, which has no test\n * expression).\n */\n test: o.Expression|null;\n\n /**\n * Each possible embedded view that could be displayed has a condition (or is default). This\n * structure maps each view xref to its corresponding condition.\n */\n conditions: Array<ConditionalCaseExpr>;\n\n /**\n * After processing, this will be a single collapsed Joost-expression that evaluates the\n * conditions, and yields the slot number of the template which should be displayed.\n */\n processed: o.Expression|null;\n\n /**\n * Control flow conditionals can accept a context value (this is a result of specifying an\n * alias). This expression will be passed to the conditional instruction's context parameter.\n */\n contextValue: o.Expression|null;\n\n sourceSpan: ParseSourceSpan;\n}\n\n/**\n * Create a conditional op, which will display an embedded view according to a condtion.\n */\nexport function createConditionalOp(\n target: XrefId, targetSlot: SlotHandle, test: o.Expression|null,\n conditions: Array<ConditionalCaseExpr>, sourceSpan: ParseSourceSpan): ConditionalOp {\n return {\n kind: OpKind.Conditional,\n target,\n targetSlot,\n test,\n conditions,\n processed: null,\n sourceSpan,\n contextValue: null,\n ...NEW_OP,\n ...TRAIT_DEPENDS_ON_SLOT_CONTEXT,\n ...TRAIT_CONSUMES_VARS,\n };\n}\n\nexport interface RepeaterOp extends Op<UpdateOp>, DependsOnSlotContextOpTrait {\n kind: OpKind.Repeater;\n\n /**\n * The RepeaterCreate op associated with this repeater.\n */\n target: XrefId;\n\n targetSlot: SlotHandle;\n\n /**\n * The collection provided to the for loop as its expression.\n */\n collection: o.Expression;\n\n sourceSpan: ParseSourceSpan;\n}\n\nexport function createRepeaterOp(\n repeaterCreate: XrefId, targetSlot: SlotHandle, collection: o.Expression,\n sourceSpan: ParseSourceSpan): RepeaterOp {\n return {\n kind: OpKind.Repeater,\n target: repeaterCreate,\n targetSlot,\n collection,\n sourceSpan,\n ...NEW_OP,\n ...TRAIT_DEPENDS_ON_SLOT_CONTEXT,\n };\n}\n\nexport interface DeferWhenOp extends Op<UpdateOp>, DependsOnSlotContextOpTrait, ConsumesVarsTrait {\n kind: OpKind.DeferWhen;\n\n /**\n * The `defer` create op associated with this when condition.\n */\n target: XrefId;\n\n /**\n * A user-provided expression that triggers the defer op.\n */\n expr: o.Expression;\n\n /**\n * Whether to emit the prefetch version of the instruction.\n */\n prefetch: boolean;\n\n sourceSpan: ParseSourceSpan;\n}\n\nexport function createDeferWhenOp(\n target: XrefId, expr: o.Expression, prefetch: boolean,\n sourceSpan: ParseSourceSpan): DeferWhenOp {\n return {\n kind: OpKind.DeferWhen,\n target,\n expr,\n prefetch,\n sourceSpan,\n ...NEW_OP,\n ...TRAIT_DEPENDS_ON_SLOT_CONTEXT,\n ...TRAIT_CONSUMES_VARS,\n };\n}\n\n/**\n * An op that represents an expression in an i18n message.\n *\n * TODO: This can represent expressions used in both i18n attributes and normal i18n content. We\n * may want to split these into two different op types, deriving from the same base class.\n */\nexport interface I18nExpressionOp extends Op<UpdateOp>, ConsumesVarsTrait,\n DependsOnSlotContextOpTrait {\n kind: OpKind.I18nExpression;\n\n /**\n * The i18n context that this expression belongs to.\n */\n context: XrefId;\n\n /**\n * The Xref of the op that we need to `advance` to.\n *\n * In an i18n block, this is initially the i18n start op, but will eventually correspond to\n * the final slot consumer in the owning i18n block.\n * TODO: We should make text i18nExpressions target the i18nEnd instruction, instead the last\n * slot consumer in the i18n block. This makes them resilient to that last consumer being\n * deleted. (Or new slot consumers being added!)\n *\n * In an i18n attribute, this is the xref of the corresponding elementStart/element.\n */\n target: XrefId;\n\n /**\n * In an i18n block, this should be the i18n start op.\n *\n * In an i18n attribute, this will be the xref of the attribute configuration instruction.\n */\n i18nOwner: XrefId;\n\n /**\n * A handle for the slot that this expression modifies.\n * - In an i18n block, this is the handle of the block.\n * - In an i18n attribute, this is the handle of the corresponding i18nAttributes instruction.\n */\n handle: SlotHandle;\n\n /**\n * The expression value.\n */\n expression: o.Expression;\n\n icuPlaceholder: XrefId|null;\n\n /**\n * The i18n placeholder associated with this expression. This can be null if the expression is\n * part of an ICU placeholder. In this case it gets combined with the string literal value and\n * other expressions in the ICU placeholder and assigned to the translated message under the ICU\n * placeholder name.\n */\n i18nPlaceholder: string|null;\n\n /**\n * The time that this expression is resolved.\n */\n resolutionTime: I18nParamResolutionTime;\n\n /**\n * Whether this i18n expression applies to a template or to a binding.\n */\n usage: I18nExpressionFor;\n\n /**\n * If this is an I18nExpressionContext.Binding, this expression is associated with a named\n * attribute. That name is stored here.\n */\n name: string;\n\n sourceSpan: ParseSourceSpan;\n}\n\n/**\n * Create an i18n expression op.\n */\nexport function createI18nExpressionOp(\n context: XrefId, target: XrefId, i18nOwner: XrefId, handle: SlotHandle,\n expression: o.Expression, icuPlaceholder: XrefId|null, i18nPlaceholder: string|null,\n resolutionTime: I18nParamResolutionTime, usage: I18nExpressionFor, name: string,\n sourceSpan: ParseSourceSpan): I18nExpressionOp {\n return {\n kind: OpKind.I18nExpression,\n context,\n target,\n i18nOwner,\n handle,\n expression,\n icuPlaceholder,\n i18nPlaceholder,\n resolutionTime,\n usage,\n name,\n sourceSpan,\n ...NEW_OP,\n ...TRAIT_CONSUMES_VARS,\n ...TRAIT_DEPENDS_ON_SLOT_CONTEXT,\n };\n}\n\n/**\n * An op that represents applying a set of i18n expressions.\n */\nexport interface I18nApplyOp extends Op<UpdateOp> {\n kind: OpKind.I18nApply;\n\n /**\n * In an i18n block, this should be the i18n start op.\n *\n * In an i18n attribute, this will be the xref of the attribute configuration instruction.\n */\n owner: XrefId;\n\n /**\n * A handle for the slot that i18n apply instruction should apply to. In an i18n block, this\n * is the slot of the i18n block this expression belongs to. In an i18n attribute, this is the\n * slot of the corresponding i18nAttributes instruction.\n */\n handle: SlotHandle;\n\n sourceSpan: ParseSourceSpan;\n}\n\n/**\n * Creates an op to apply i18n expression ops.\n */\nexport function createI18nApplyOp(\n owner: XrefId, handle: SlotHandle, sourceSpan: ParseSourceSpan): I18nApplyOp {\n return {\n kind: OpKind.I18nApply,\n owner,\n handle,\n sourceSpan,\n ...NEW_OP,\n };\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as o from '../../../../output/output_ast';\nimport type {ParseSourceSpan} from '../../../../parse_util';\n\nimport * as t from '../../../../render3/r3_ast';\nimport {ExpressionKind, OpKind} from './enums';\nimport {SlotHandle} from './handle';\nimport type {XrefId} from './operations';\nimport type {CreateOp} from './ops/create';\nimport {Interpolation, type UpdateOp} from './ops/update';\nimport {ConsumesVarsTrait, UsesVarOffset, UsesVarOffsetTrait} from './traits';\n\n/**\n * An `o.Expression` subtype representing a logical expression in the intermediate representation.\n */\nexport type Expression =\n LexicalReadExpr|ReferenceExpr|ContextExpr|NextContextExpr|GetCurrentViewExpr|RestoreViewExpr|\n ResetViewExpr|ReadVariableExpr|PureFunctionExpr|PureFunctionParameterExpr|PipeBindingExpr|\n PipeBindingVariadicExpr|SafePropertyReadExpr|SafeKeyedReadExpr|SafeInvokeFunctionExpr|EmptyExpr|\n AssignTemporaryExpr|ReadTemporaryExpr|SlotLiteralExpr|ConditionalCaseExpr|ConstCollectedExpr;\n\n/**\n * Transformer type which converts expressions into general `o.Expression`s (which may be an\n * identity transformation).\n */\nexport type ExpressionTransform = (expr: o.Expression, flags: VisitorContextFlag) => o.Expression;\n\n/**\n * Check whether a given `o.Expression` is a logical IR expression type.\n */\nexport function isIrExpression(expr: o.Expression): expr is Expression {\n return expr instanceof ExpressionBase;\n}\n\n/**\n * Base type used for all logical IR expressions.\n */\nexport abstract class ExpressionBase extends o.Expression {\n abstract readonly kind: ExpressionKind;\n\n constructor(sourceSpan: ParseSourceSpan|null = null) {\n super(null, sourceSpan);\n }\n\n /**\n * Run the transformer against any nested expressions which may be present in this IR expression\n * subtype.\n */\n abstract transformInternalExpressions(transform: ExpressionTransform, flags: VisitorContextFlag):\n void;\n}\n\n/**\n * Logical expression representing a lexical read of a variable name.\n */\nexport class LexicalReadExpr extends ExpressionBase {\n override readonly kind = ExpressionKind.LexicalRead;\n\n constructor(readonly name: string) {\n super();\n }\n\n override visitExpression(visitor: o.ExpressionVisitor, context: any): void {}\n\n override isEquivalent(other: LexicalReadExpr): boolean {\n // We assume that the lexical reads are in the same context, which must be true for parent\n // expressions to be equivalent.\n // TODO: is this generally safe?\n return this.name === other.name;\n }\n\n override isConstant(): boolean {\n return false;\n }\n\n override transformInternalExpressions(): void {}\n\n override clone(): LexicalReadExpr {\n return new LexicalReadExpr(this.name);\n }\n}\n\n/**\n * Runtime operation to retrieve the value of a local reference.\n */\nexport class ReferenceExpr extends ExpressionBase {\n override readonly kind = ExpressionKind.Reference;\n\n constructor(readonly target: XrefId, readonly targetSlot: SlotHandle, readonly offset: number) {\n super();\n }\n\n override visitExpression(): void {}\n\n override isEquivalent(e: o.Expression): boolean {\n return e instanceof ReferenceExpr && e.target === this.target;\n }\n\n override isConstant(): boolean {\n return false;\n }\n\n override transformInternalExpressions(): void {}\n\n override clone(): ReferenceExpr {\n return new ReferenceExpr(this.target, this.targetSlot, this.offset);\n }\n}\n\n/**\n * A reference to the current view context (usually the `ctx` variable in a template function).\n */\nexport class ContextExpr extends ExpressionBase {\n override readonly kind = ExpressionKind.Context;\n\n constructor(readonly view: XrefId) {\n super();\n }\n\n override visitExpression(): void {}\n\n override isEquivalent(e: o.Expression): boolean {\n return e instanceof ContextExpr && e.view === this.view;\n }\n\n override isConstant(): boolean {\n return false;\n }\n\n override transformInternalExpressions(): void {}\n\n override clone(): ContextExpr {\n return new ContextExpr(this.view);\n }\n}\n\n/**\n * A reference to the current view context inside a track function.\n */\nexport class TrackContextExpr extends ExpressionBase {\n override readonly kind = ExpressionKind.TrackContext;\n\n constructor(readonly view: XrefId) {\n super();\n }\n\n override visitExpression(): void {}\n\n override isEquivalent(e: o.Expression): boolean {\n return e instanceof TrackContextExpr && e.view === this.view;\n }\n\n override isConstant(): boolean {\n return false;\n }\n\n override transformInternalExpressions(): void {}\n\n override clone(): TrackContextExpr {\n return new TrackContextExpr(this.view);\n }\n}\n\n/**\n * Runtime operation to navigate to the next view context in the view hierarchy.\n */\nexport class NextContextExpr extends ExpressionBase {\n override readonly kind = ExpressionKind.NextContext;\n\n steps = 1;\n\n constructor() {\n super();\n }\n\n override visitExpression(): void {}\n\n override isEquivalent(e: o.Expression): boolean {\n return e instanceof NextContextExpr && e.steps === this.steps;\n }\n\n override isConstant(): boolean {\n return false;\n }\n\n override transformInternalExpressions(): void {}\n\n override clone(): NextContextExpr {\n const expr = new NextContextExpr();\n expr.steps = this.steps;\n return expr;\n }\n}\n\n/**\n * Runtime operation to snapshot the current view context.\n *\n * The result of this operation can be stored in a variable and later used with the `RestoreView`\n * operation.\n */\nexport class GetCurrentViewExpr extends ExpressionBase {\n override readonly kind = ExpressionKind.GetCurrentView;\n\n constructor() {\n super();\n }\n\n override visitExpression(): void {}\n\n override isEquivalent(e: o.Expression): boolean {\n return e instanceof GetCurrentViewExpr;\n }\n\n override isConstant(): boolean {\n return false;\n }\n\n override transformInternalExpressions(): void {}\n\n override clone(): GetCurrentViewExpr {\n return new GetCurrentViewExpr();\n }\n}\n\n/**\n * Runtime operation to restore a snapshotted view.\n */\nexport class RestoreViewExpr extends ExpressionBase {\n override readonly kind = ExpressionKind.RestoreView;\n\n constructor(public view: XrefId|o.Expression) {\n super();\n }\n\n override visitExpression(visitor: o.ExpressionVisitor, context: any): void {\n if (typeof this.view !== 'number') {\n this.view.visitExpression(visitor, context);\n }\n }\n\n override isEquivalent(e: o.Expression): boolean {\n if (!(e instanceof RestoreViewExpr) || typeof e.view !== typeof this.view) {\n return false;\n }\n\n if (typeof this.view === 'number') {\n return this.view === e.view;\n } else {\n return this.view.isEquivalent(e.view as o.Expression);\n }\n }\n\n override isConstant(): boolean {\n return false;\n }\n\n override transformInternalExpressions(transform: ExpressionTransform, flags: VisitorContextFlag):\n void {\n if (typeof this.view !== 'number') {\n this.view = transformExpressionsInExpression(this.view, transform, flags);\n }\n }\n\n override clone(): RestoreViewExpr {\n return new RestoreViewExpr(this.view instanceof o.Expression ? this.view.clone() : this.view);\n }\n}\n\n/**\n * Runtime operation to reset the current view context after `RestoreView`.\n */\nexport class ResetViewExpr extends ExpressionBase {\n override readonly kind = ExpressionKind.ResetView;\n\n constructor(public expr: o.Expression) {\n super();\n }\n\n override visitExpression(visitor: o.ExpressionVisitor, context: any): any {\n this.expr.visitExpression(visitor, context);\n }\n\n override isEquivalent(e: o.Expression): boolean {\n return e instanceof ResetViewExpr && this.expr.isEquivalent(e.expr);\n }\n\n override isConstant(): boolean {\n return false;\n }\n\n override transformInternalExpressions(transform: ExpressionTransform, flags: VisitorContextFlag):\n void {\n this.expr = transformExpressionsInExpression(this.expr, transform, flags);\n }\n\n override clone(): ResetViewExpr {\n return new ResetViewExpr(this.expr.clone());\n }\n}\n\n/**\n * Read of a variable declared as an `ir.VariableOp` and referenced through its `ir.XrefId`.\n */\nexport class ReadVariableExpr extends ExpressionBase {\n override readonly kind = ExpressionKind.ReadVariable;\n name: string|null = null;\n constructor(readonly xref: XrefId) {\n super();\n }\n\n override visitExpression(): void {}\n\n override isEquivalent(other: o.Expression): boolean {\n return other instanceof ReadVariableExpr && other.xref === this.xref;\n }\n\n override isConstant(): boolean {\n return false;\n }\n\n override transformInternalExpressions(): void {}\n\n override clone(): ReadVariableExpr {\n const expr = new ReadVariableExpr(this.xref);\n expr.name = this.name;\n return expr;\n }\n}\n\nexport class PureFunctionExpr extends ExpressionBase implements ConsumesVarsTrait,\n UsesVarOffsetTrait {\n override readonly kind = ExpressionKind.PureFunctionExpr;\n readonly[ConsumesVarsTrait] = true;\n readonly[UsesVarOffset] = true;\n\n varOffset: number|null = null;\n\n /**\n * The expression which should be memoized as a pure computation.\n *\n * This expression contains internal `PureFunctionParameterExpr`s, which are placeholders for the\n * positional argument expressions in `args.\n */\n body: o.Expression|null;\n\n /**\n * Positional arguments to the pure function which will memoize the `body` expression, which act\n * as memoization keys.\n */\n args: o.Expression[];\n\n /**\n * Once extracted to the `ConstantPool`, a reference to the function which defines the computation\n * of `body`.\n */\n fn: o.Expression|null = null;\n\n constructor(expression: o.Expression|null, args: o.Expression[]) {\n super();\n this.body = expression;\n this.args = args;\n }\n\n override visitExpression(visitor: o.ExpressionVisitor, context: any) {\n this.body?.visitExpression(visitor, context);\n for (const arg of this.args) {\n arg.visitExpression(visitor, context);\n }\n }\n\n override isEquivalent(other: o.Expression): boolean {\n if (!(other instanceof PureFunctionExpr) || other.args.length !== this.args.length) {\n return false;\n }\n\n return other.body !== null && this.body !== null && other.body.isEquivalent(this.body) &&\n other.args.every((arg, idx) => arg.isEquivalent(this.args[idx]));\n }\n\n override isConstant(): boolean {\n return false;\n }\n\n override transformInternalExpressions(transform: ExpressionTransform, flags: VisitorContextFlag):\n void {\n if (this.body !== null) {\n // TODO: figure out if this is the right flag to pass here.\n this.body = transformExpressionsInExpression(\n this.body, transform, flags | VisitorContextFlag.InChildOperation);\n } else if (this.fn !== null) {\n this.fn = transformExpressionsInExpression(this.fn, transform, flags);\n }\n\n for (let i = 0; i < this.args.length; i++) {\n this.args[i] = transformExpressionsInExpression(this.args[i], transform, flags);\n }\n }\n\n override clone(): PureFunctionExpr {\n const expr =\n new PureFunctionExpr(this.body?.clone() ?? null, this.args.map(arg => arg.clone()));\n expr.fn = this.fn?.clone() ?? null;\n expr.varOffset = this.varOffset;\n return expr;\n }\n}\n\nexport class PureFunctionParameterExpr extends ExpressionBase {\n override readonly kind = ExpressionKind.PureFunctionParameterExpr;\n\n constructor(public index: number) {\n super();\n }\n\n override visitExpression(): void {}\n\n override isEquivalent(other: o.Expression): boolean {\n return other instanceof PureFunctionParameterExpr && other.index === this.index;\n }\n\n override isConstant(): boolean {\n return true;\n }\n\n override transformInternalExpressions(): void {}\n\n override clone(): PureFunctionParameterExpr {\n return new PureFunctionParameterExpr(this.index);\n }\n}\n\nexport class PipeBindingExpr extends ExpressionBase implements ConsumesVarsTrait,\n UsesVarOffsetTrait {\n override readonly kind = ExpressionKind.PipeBinding;\n readonly[ConsumesVarsTrait] = true;\n readonly[UsesVarOffset] = true;\n\n varOffset: number|null = null;\n\n constructor(\n readonly target: XrefId, readonly targetSlot: SlotHandle, readonly name: string,\n readonly args: o.Expression[]) {\n super();\n }\n\n override visitExpression(visitor: o.ExpressionVisitor, context: any): void {\n for (const arg of this.args) {\n arg.visitExpression(visitor, context);\n }\n }\n\n override isEquivalent(): boolean {\n return false;\n }\n\n override isConstant(): boolean {\n return false;\n }\n\n override transformInternalExpressions(transform: ExpressionTransform, flags: VisitorContextFlag):\n void {\n for (let idx = 0; idx < this.args.length; idx++) {\n this.args[idx] = transformExpressionsInExpression(this.args[idx], transform, flags);\n }\n }\n\n override clone() {\n const r =\n new PipeBindingExpr(this.target, this.targetSlot, this.name, this.args.map(a => a.clone()));\n r.varOffset = this.varOffset;\n return r;\n }\n}\n\nexport class PipeBindingVariadicExpr extends ExpressionBase implements ConsumesVarsTrait,\n UsesVarOffsetTrait {\n override readonly kind = ExpressionKind.PipeBindingVariadic;\n readonly[ConsumesVarsTrait] = true;\n readonly[UsesVarOffset] = true;\n\n varOffset: number|null = null;\n\n constructor(\n readonly target: XrefId, readonly targetSlot: SlotHandle, readonly name: string,\n public args: o.Expression, public numArgs: number) {\n super();\n }\n\n override visitExpression(visitor: o.ExpressionVisitor, context: any): void {\n this.args.visitExpression(visitor, context);\n }\n\n override isEquivalent(): boolean {\n return false;\n }\n\n override isConstant(): boolean {\n return false;\n }\n\n override transformInternalExpressions(transform: ExpressionTransform, flags: VisitorContextFlag):\n void {\n this.args = transformExpressionsInExpression(this.args, transform, flags);\n }\n\n override clone(): PipeBindingVariadicExpr {\n const r = new PipeBindingVariadicExpr(\n this.target, this.targetSlot, this.name, this.args.clone(), this.numArgs);\n r.varOffset = this.varOffset;\n return r;\n }\n}\n\nexport class SafePropertyReadExpr extends ExpressionBase {\n override readonly kind = ExpressionKind.SafePropertyRead;\n\n constructor(public receiver: o.Expression, public name: string) {\n super();\n }\n\n // An alias for name, which allows other logic to handle property reads and keyed reads together.\n get index() {\n return this.name;\n }\n\n override visitExpression(visitor: o.ExpressionVisitor, context: any): any {\n this.receiver.visitExpression(visitor, context);\n }\n\n override isEquivalent(): boolean {\n return false;\n }\n\n override isConstant(): boolean {\n return false;\n }\n\n override transformInternalExpressions(transform: ExpressionTransform, flags: VisitorContextFlag):\n void {\n this.receiver = transformExpressionsInExpression(this.receiver, transform, flags);\n }\n\n override clone(): SafePropertyReadExpr {\n return new SafePropertyReadExpr(this.receiver.clone(), this.name);\n }\n}\n\nexport class SafeKeyedReadExpr extends ExpressionBase {\n override readonly kind = ExpressionKind.SafeKeyedRead;\n\n constructor(\n public receiver: o.Expression, public index: o.Expression, sourceSpan: ParseSourceSpan|null) {\n super(sourceSpan);\n }\n\n override visitExpression(visitor: o.ExpressionVisitor, context: any): any {\n this.receiver.visitExpression(visitor, context);\n this.index.visitExpression(visitor, context);\n }\n\n override isEquivalent(): boolean {\n return false;\n }\n\n override isConstant(): boolean {\n return false;\n }\n\n override transformInternalExpressions(transform: ExpressionTransform, flags: VisitorContextFlag):\n void {\n this.receiver = transformExpressionsInExpression(this.receiver, transform, flags);\n this.index = transformExpressionsInExpression(this.index, transform, flags);\n }\n\n override clone(): SafeKeyedReadExpr {\n return new SafeKeyedReadExpr(this.receiver.clone(), this.index.clone(), this.sourceSpan);\n }\n}\n\nexport class SafeInvokeFunctionExpr extends ExpressionBase {\n override readonly kind = ExpressionKind.SafeInvokeFunction;\n\n constructor(public receiver: o.Expression, public args: o.Expression[]) {\n super();\n }\n\n override visitExpression(visitor: o.ExpressionVisitor, context: any): any {\n this.receiver.visitExpression(visitor, context);\n for (const a of this.args) {\n a.visitExpression(visitor, context);\n }\n }\n\n override isEquivalent(): boolean {\n return false;\n }\n\n override isConstant(): boolean {\n return false;\n }\n\n override transformInternalExpressions(transform: ExpressionTransform, flags: VisitorContextFlag):\n void {\n this.receiver = transformExpressionsInExpression(this.receiver, transform, flags);\n for (let i = 0; i < this.args.length; i++) {\n this.args[i] = transformExpressionsInExpression(this.args[i], transform, flags);\n }\n }\n\n override clone(): SafeInvokeFunctionExpr {\n return new SafeInvokeFunctionExpr(this.receiver.clone(), this.args.map(a => a.clone()));\n }\n}\n\nexport class SafeTernaryExpr extends ExpressionBase {\n override readonly kind = ExpressionKind.SafeTernaryExpr;\n\n constructor(public guard: o.Expression, public expr: o.Expression) {\n super();\n }\n\n override visitExpression(visitor: o.ExpressionVisitor, context: any): any {\n this.guard.visitExpression(visitor, context);\n this.expr.visitExpression(visitor, context);\n }\n\n override isEquivalent(): boolean {\n return false;\n }\n\n override isConstant(): boolean {\n return false;\n }\n\n override transformInternalExpressions(transform: ExpressionTransform, flags: VisitorContextFlag):\n void {\n this.guard = transformExpressionsInExpression(this.guard, transform, flags);\n this.expr = transformExpressionsInExpression(this.expr, transform, flags);\n }\n\n override clone(): SafeTernaryExpr {\n return new SafeTernaryExpr(this.guard.clone(), this.expr.clone());\n }\n}\n\nexport class EmptyExpr extends ExpressionBase {\n override readonly kind = ExpressionKind.EmptyExpr;\n\n override visitExpression(visitor: o.ExpressionVisitor, context: any): any {}\n\n override isEquivalent(e: Expression): boolean {\n return e instanceof EmptyExpr;\n }\n\n override isConstant() {\n return true;\n }\n\n override clone(): EmptyExpr {\n return new EmptyExpr();\n }\n\n override transformInternalExpressions(): void {}\n}\n\nexport class AssignTemporaryExpr extends ExpressionBase {\n override readonly kind = ExpressionKind.AssignTemporaryExpr;\n\n public name: string|null = null;\n\n constructor(public expr: o.Expression, public xref: XrefId) {\n super();\n }\n\n override visitExpression(visitor: o.ExpressionVisitor, context: any): any {\n this.expr.visitExpression(visitor, context);\n }\n\n override isEquivalent(): boolean {\n return false;\n }\n\n override isConstant(): boolean {\n return false;\n }\n\n override transformInternalExpressions(transform: ExpressionTransform, flags: VisitorContextFlag):\n void {\n this.expr = transformExpressionsInExpression(this.expr, transform, flags);\n }\n\n override clone(): AssignTemporaryExpr {\n const a = new AssignTemporaryExpr(this.expr.clone(), this.xref);\n a.name = this.name;\n return a;\n }\n}\n\nexport class ReadTemporaryExpr extends ExpressionBase {\n override readonly kind = ExpressionKind.ReadTemporaryExpr;\n\n public name: string|null = null;\n\n constructor(public xref: XrefId) {\n super();\n }\n\n override visitExpression(visitor: o.ExpressionVisitor, context: any): any {}\n\n override isEquivalent(): boolean {\n return this.xref === this.xref;\n }\n\n override isConstant(): boolean {\n return false;\n }\n\n override transformInternalExpressions(transform: ExpressionTransform, flags: VisitorContextFlag):\n void {}\n\n override clone(): ReadTemporaryExpr {\n const r = new ReadTemporaryExpr(this.xref);\n r.name = this.name;\n return r;\n }\n}\n\nexport class SlotLiteralExpr extends ExpressionBase {\n override readonly kind = ExpressionKind.SlotLiteralExpr;\n\n constructor(readonly slot: SlotHandle) {\n super();\n }\n\n override visitExpression(visitor: o.ExpressionVisitor, context: any): any {}\n\n override isEquivalent(e: Expression): boolean {\n return e instanceof SlotLiteralExpr && e.slot === this.slot;\n }\n\n override isConstant() {\n return true;\n }\n\n override clone(): SlotLiteralExpr {\n return new SlotLiteralExpr(this.slot);\n }\n\n override transformInternalExpressions(): void {}\n}\n\nexport class ConditionalCaseExpr extends ExpressionBase {\n override readonly kind = ExpressionKind.ConditionalCase;\n\n /**\n * Create an expression for one branch of a conditional.\n * @param expr The expression to be tested for this case. Might be null, as in an `else` case.\n * @param target The Xref of the view to be displayed if this condition is true.\n */\n constructor(\n public expr: o.Expression|null, readonly target: XrefId, readonly targetSlot: SlotHandle,\n readonly alias: t.Variable|null = null) {\n super();\n }\n\n override visitExpression(visitor: o.ExpressionVisitor, context: any): any {\n if (this.expr !== null) {\n this.expr.visitExpression(visitor, context);\n }\n }\n\n override isEquivalent(e: Expression): boolean {\n return e instanceof ConditionalCaseExpr && e.expr === this.expr;\n }\n\n override isConstant() {\n return true;\n }\n\n override clone(): ConditionalCaseExpr {\n return new ConditionalCaseExpr(this.expr, this.target, this.targetSlot);\n }\n\n override transformInternalExpressions(transform: ExpressionTransform, flags: VisitorContextFlag):\n void {\n if (this.expr !== null) {\n this.expr = transformExpressionsInExpression(this.expr, transform, flags);\n }\n }\n}\n\n\nexport class ConstCollectedExpr extends ExpressionBase {\n override readonly kind = ExpressionKind.ConstCollected;\n\n constructor(public expr: o.Expression) {\n super();\n }\n\n override transformInternalExpressions(transform: ExpressionTransform, flags: VisitorContextFlag):\n void {\n this.expr = transform(this.expr, flags);\n }\n\n override visitExpression(visitor: o.ExpressionVisitor, context: any) {\n this.expr.visitExpression(visitor, context);\n }\n\n override isEquivalent(e: o.Expression): boolean {\n if (!(e instanceof ConstCollectedExpr)) {\n return false;\n }\n return this.expr.isEquivalent(e.expr);\n }\n\n override isConstant(): boolean {\n return this.expr.isConstant();\n }\n\n override clone(): ConstCollectedExpr {\n return new ConstCollectedExpr(this.expr);\n }\n}\n\n/**\n * Visits all `Expression`s in the AST of `op` with the `visitor` function.\n */\nexport function visitExpressionsInOp(\n op: CreateOp|UpdateOp, visitor: (expr: o.Expression, flags: VisitorContextFlag) => void): void {\n transformExpressionsInOp(op, (expr, flags) => {\n visitor(expr, flags);\n return expr;\n }, VisitorContextFlag.None);\n}\n\nexport enum VisitorContextFlag {\n None = 0b0000,\n InChildOperation = 0b0001,\n}\n\nfunction transformExpressionsInInterpolation(\n interpolation: Interpolation, transform: ExpressionTransform, flags: VisitorContextFlag) {\n for (let i = 0; i < interpolation.expressions.length; i++) {\n interpolation.expressions[i] =\n transformExpressionsInExpression(interpolation.expressions[i], transform, flags);\n }\n}\n\n/**\n * Transform all `Expression`s in the AST of `op` with the `transform` function.\n *\n * All such operations will be replaced with the result of applying `transform`, which may be an\n * identity transformation.\n */\nexport function transformExpressionsInOp(\n op: CreateOp|UpdateOp, transform: ExpressionTransform, flags: VisitorContextFlag): void {\n switch (op.kind) {\n case OpKind.StyleProp:\n case OpKind.StyleMap:\n case OpKind.ClassProp:\n case OpKind.ClassMap:\n case OpKind.Binding:\n if (op.expression instanceof Interpolation) {\n transformExpressionsInInterpolation(op.expression, transform, flags);\n } else {\n op.expression = transformExpressionsInExpression(op.expression, transform, flags);\n }\n break;\n case OpKind.Property:\n case OpKind.HostProperty:\n case OpKind.Attribute:\n if (op.expression instanceof Interpolation) {\n transformExpressionsInInterpolation(op.expression, transform, flags);\n } else {\n op.expression = transformExpressionsInExpression(op.expression, transform, flags);\n }\n op.sanitizer =\n op.sanitizer && transformExpressionsInExpression(op.sanitizer, transform, flags);\n break;\n case OpKind.I18nExpression:\n op.expression = transformExpressionsInExpression(op.expression, transform, flags);\n break;\n case OpKind.InterpolateText:\n transformExpressionsInInterpolation(op.interpolation, transform, flags);\n break;\n case OpKind.Statement:\n transformExpressionsInStatement(op.statement, transform, flags);\n break;\n case OpKind.Variable:\n op.initializer = transformExpressionsInExpression(op.initializer, transform, flags);\n break;\n case OpKind.Conditional:\n for (const condition of op.conditions) {\n if (condition.expr === null) {\n // This is a default case.\n continue;\n }\n condition.expr = transformExpressionsInExpression(condition.expr, transform, flags);\n }\n if (op.processed !== null) {\n op.processed = transformExpressionsInExpression(op.processed, transform, flags);\n }\n if (op.contextValue !== null) {\n op.contextValue = transformExpressionsInExpression(op.contextValue, transform, flags);\n }\n break;\n case OpKind.Listener:\n for (const innerOp of op.handlerOps) {\n transformExpressionsInOp(innerOp, transform, flags | VisitorContextFlag.InChildOperation);\n }\n break;\n case OpKind.ExtractedAttribute:\n op.expression =\n op.expression && transformExpressionsInExpression(op.expression, transform, flags);\n op.trustedValueFn = op.trustedValueFn &&\n transformExpressionsInExpression(op.trustedValueFn, transform, flags);\n break;\n case OpKind.RepeaterCreate:\n op.track = transformExpressionsInExpression(op.track, transform, flags);\n if (op.trackByFn !== null) {\n op.trackByFn = transformExpressionsInExpression(op.trackByFn, transform, flags);\n }\n break;\n case OpKind.Repeater:\n op.collection = transformExpressionsInExpression(op.collection, transform, flags);\n break;\n case OpKind.Defer:\n if (op.loadingConfig !== null) {\n op.loadingConfig = transformExpressionsInExpression(op.loadingConfig, transform, flags);\n }\n if (op.placeholderConfig !== null) {\n op.placeholderConfig =\n transformExpressionsInExpression(op.placeholderConfig, transform, flags);\n }\n if (op.resolverFn !== null) {\n op.resolverFn = transformExpressionsInExpression(op.resolverFn, transform, flags);\n }\n break;\n case OpKind.I18nMessage:\n for (const [placeholder, expr] of op.params) {\n op.params.set(placeholder, transformExpressionsInExpression(expr, transform, flags));\n }\n for (const [placeholder, expr] of op.postprocessingParams) {\n op.postprocessingParams.set(\n placeholder, transformExpressionsInExpression(expr, transform, flags));\n }\n break;\n case OpKind.DeferWhen:\n op.expr = transformExpressionsInExpression(op.expr, transform, flags);\n break;\n case OpKind.Advance:\n case OpKind.Container:\n case OpKind.ContainerEnd:\n case OpKind.ContainerStart:\n case OpKind.DeferOn:\n case OpKind.DisableBindings:\n case OpKind.Element:\n case OpKind.ElementEnd:\n case OpKind.ElementStart:\n case OpKind.EnableBindings:\n case OpKind.I18n:\n case OpKind.I18nApply:\n case OpKind.I18nContext:\n case OpKind.I18nEnd:\n case OpKind.I18nStart:\n case OpKind.IcuEnd:\n case OpKind.IcuStart:\n case OpKind.Namespace:\n case OpKind.Pipe:\n case OpKind.Projection:\n case OpKind.ProjectionDef:\n case OpKind.Template:\n case OpKind.Text:\n case OpKind.I18nAttributes:\n case OpKind.IcuPlaceholder:\n // These operations contain no expressions.\n break;\n default:\n throw new Error(`AssertionError: transformExpressionsInOp doesn't handle ${OpKind[op.kind]}`);\n }\n}\n\n/**\n * Transform all `Expression`s in the AST of `expr` with the `transform` function.\n *\n * All such operations will be replaced with the result of applying `transform`, which may be an\n * identity transformation.\n */\nexport function transformExpressionsInExpression(\n expr: o.Expression, transform: ExpressionTransform, flags: VisitorContextFlag): o.Expression {\n if (expr instanceof ExpressionBase) {\n expr.transformInternalExpressions(transform, flags);\n } else if (expr instanceof o.BinaryOperatorExpr) {\n expr.lhs = transformExpressionsInExpression(expr.lhs, transform, flags);\n expr.rhs = transformExpressionsInExpression(expr.rhs, transform, flags);\n } else if (expr instanceof o.UnaryOperatorExpr) {\n expr.expr = transformExpressionsInExpression(expr.expr, transform, flags);\n } else if (expr instanceof o.ReadPropExpr) {\n expr.receiver = transformExpressionsInExpression(expr.receiver, transform, flags);\n } else if (expr instanceof o.ReadKeyExpr) {\n expr.receiver = transformExpressionsInExpression(expr.receiver, transform, flags);\n expr.index = transformExpressionsInExpression(expr.index, transform, flags);\n } else if (expr instanceof o.WritePropExpr) {\n expr.receiver = transformExpressionsInExpression(expr.receiver, transform, flags);\n expr.value = transformExpressionsInExpression(expr.value, transform, flags);\n } else if (expr instanceof o.WriteKeyExpr) {\n expr.receiver = transformExpressionsInExpression(expr.receiver, transform, flags);\n expr.index = transformExpressionsInExpression(expr.index, transform, flags);\n expr.value = transformExpressionsInExpression(expr.value, transform, flags);\n } else if (expr instanceof o.InvokeFunctionExpr) {\n expr.fn = transformExpressionsInExpression(expr.fn, transform, flags);\n for (let i = 0; i < expr.args.length; i++) {\n expr.args[i] = transformExpressionsInExpression(expr.args[i], transform, flags);\n }\n } else if (expr instanceof o.LiteralArrayExpr) {\n for (let i = 0; i < expr.entries.length; i++) {\n expr.entries[i] = transformExpressionsInExpression(expr.entries[i], transform, flags);\n }\n } else if (expr instanceof o.LiteralMapExpr) {\n for (let i = 0; i < expr.entries.length; i++) {\n expr.entries[i].value =\n transformExpressionsInExpression(expr.entries[i].value, transform, flags);\n }\n } else if (expr instanceof o.ConditionalExpr) {\n expr.condition = transformExpressionsInExpression(expr.condition, transform, flags);\n expr.trueCase = transformExpressionsInExpression(expr.trueCase, transform, flags);\n if (expr.falseCase !== null) {\n expr.falseCase = transformExpressionsInExpression(expr.falseCase, transform, flags);\n }\n } else if (expr instanceof o.TypeofExpr) {\n expr.expr = transformExpressionsInExpression(expr.expr, transform, flags);\n } else if (expr instanceof o.WriteVarExpr) {\n expr.value = transformExpressionsInExpression(expr.value, transform, flags);\n } else if (expr instanceof o.LocalizedString) {\n for (let i = 0; i < expr.expressions.length; i++) {\n expr.expressions[i] = transformExpressionsInExpression(expr.expressions[i], transform, flags);\n }\n } else if (expr instanceof o.NotExpr) {\n expr.condition = transformExpressionsInExpression(expr.condition, transform, flags);\n } else if (expr instanceof o.TaggedTemplateExpr) {\n expr.tag = transformExpressionsInExpression(expr.tag, transform, flags);\n expr.template.expressions =\n expr.template.expressions.map(e => transformExpressionsInExpression(e, transform, flags));\n } else if (expr instanceof o.ArrowFunctionExpr) {\n if (Array.isArray(expr.body)) {\n for (let i = 0; i < expr.body.length; i++) {\n transformExpressionsInStatement(expr.body[i], transform, flags);\n }\n } else {\n expr.body = transformExpressionsInExpression(expr.body, transform, flags);\n }\n } else if (expr instanceof o.WrappedNodeExpr) {\n // TODO: Do we need to transform any TS nodes nested inside of this expression?\n } else if (\n expr instanceof o.ReadVarExpr || expr instanceof o.ExternalExpr ||\n expr instanceof o.LiteralExpr) {\n // No action for these types.\n } else {\n throw new Error(`Unhandled expression kind: ${expr.constructor.name}`);\n }\n return transform(expr, flags);\n}\n\n/**\n * Transform all `Expression`s in the AST of `stmt` with the `transform` function.\n *\n * All such operations will be replaced with the result of applying `transform`, which may be an\n * identity transformation.\n */\nexport function transformExpressionsInStatement(\n stmt: o.Statement, transform: ExpressionTransform, flags: VisitorContextFlag): void {\n if (stmt instanceof o.ExpressionStatement) {\n stmt.expr = transformExpressionsInExpression(stmt.expr, transform, flags);\n } else if (stmt instanceof o.ReturnStatement) {\n stmt.value = transformExpressionsInExpression(stmt.value, transform, flags);\n } else if (stmt instanceof o.DeclareVarStmt) {\n if (stmt.value !== undefined) {\n stmt.value = transformExpressionsInExpression(stmt.value, transform, flags);\n }\n } else if (stmt instanceof o.IfStmt) {\n stmt.condition = transformExpressionsInExpression(stmt.condition, transform, flags);\n for (const caseStatement of stmt.trueCase) {\n transformExpressionsInStatement(caseStatement, transform, flags);\n }\n for (const caseStatement of stmt.falseCase) {\n transformExpressionsInStatement(caseStatement, transform, flags);\n }\n } else {\n throw new Error(`Unhandled statement kind: ${stmt.constructor.name}`);\n }\n}\n\n/**\n * Checks whether the given expression is a string literal.\n */\nexport function isStringLiteral(expr: o.Expression): expr is o.LiteralExpr&{value: string} {\n return expr instanceof o.LiteralExpr && typeof expr.value === 'string';\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {OpKind} from './enums';\n\n/**\n * Branded type for a cross-reference ID. During ingest, `XrefId`s are generated to link together\n * different IR operations which need to reference each other.\n */\nexport type XrefId = number&{__brand: 'XrefId'};\n\n/**\n * Base interface for semantic operations being performed within a template.\n *\n * @param OpT a specific narrower type of `Op` (for example, creation operations) which this\n * specific subtype of `Op` can be linked with in a linked list.\n */\nexport interface Op<OpT extends Op<OpT>> {\n /**\n * All operations have a distinct kind.\n */\n kind: OpKind;\n\n /**\n * The previous operation in the linked list, if any.\n *\n * This is `null` for operation nodes not currently in a list, or for the special head/tail nodes.\n */\n prev: OpT|null;\n\n /**\n * The next operation in the linked list, if any.\n *\n * This is `null` for operation nodes not currently in a list, or for the special head/tail nodes.\n */\n next: OpT|null;\n\n /**\n * Debug id of the list to which this node currently belongs, or `null` if this node is not part\n * of a list.\n */\n debugListId: number|null;\n}\n\n/**\n * A linked list of `Op` nodes of a given subtype.\n *\n * @param OpT specific subtype of `Op` nodes which this list contains.\n */\nexport class OpList<OpT extends Op<OpT>> {\n static nextListId = 0;\n\n /**\n * Debug ID of this `OpList` instance.\n */\n readonly debugListId = OpList.nextListId++;\n\n // OpList uses static head/tail nodes of a special `ListEnd` type.\n // This avoids the need for special casing of the first and last list\n // elements in all list operations.\n readonly head: OpT = {\n kind: OpKind.ListEnd,\n next: null,\n prev: null,\n debugListId: this.debugListId,\n } as OpT;\n\n readonly tail = {\n kind: OpKind.ListEnd,\n next: null,\n prev: null,\n debugListId: this.debugListId,\n } as OpT;\n\n\n constructor() {\n // Link `head` and `tail` together at the start (list is empty).\n this.head.next = this.tail;\n this.tail.prev = this.head;\n }\n\n /**\n * Push a new operation to the tail of the list.\n */\n push(op: OpT|Array<OpT>): void {\n if (Array.isArray(op)) {\n for (const o of op) {\n this.push(o);\n }\n return;\n }\n\n OpList.assertIsNotEnd(op);\n OpList.assertIsUnowned(op);\n\n op.debugListId = this.debugListId;\n\n // The old \"previous\" node (which might be the head, if the list is empty).\n const oldLast = this.tail.prev!;\n\n // Insert `op` following the old last node.\n op.prev = oldLast;\n oldLast.next = op;\n\n // Connect `op` with the list tail.\n op.next = this.tail;\n this.tail.prev = op;\n }\n\n /**\n * Prepend one or more nodes to the start of the list.\n */\n prepend(ops: OpT[]): void {\n if (ops.length === 0) {\n return;\n }\n\n for (const op of ops) {\n OpList.assertIsNotEnd(op);\n OpList.assertIsUnowned(op);\n\n op.debugListId = this.debugListId;\n }\n\n const first = this.head.next!;\n\n let prev = this.head;\n for (const op of ops) {\n prev.next = op;\n op.prev = prev;\n\n prev = op;\n }\n\n prev.next = first;\n first.prev = prev;\n }\n\n /**\n * `OpList` is iterable via the iteration protocol.\n *\n * It's safe to mutate the part of the list that has already been returned by the iterator, up to\n * and including the last operation returned. Mutations beyond that point _may_ be safe, but may\n * also corrupt the iteration position and should be avoided.\n */\n * [Symbol.iterator](): Generator<OpT> {\n let current = this.head.next!;\n while (current !== this.tail) {\n // Guards against corruption of the iterator state by mutations to the tail of the list during\n // iteration.\n OpList.assertIsOwned(current, this.debugListId);\n\n const next = current.next!;\n yield current;\n current = next;\n }\n }\n\n * reversed(): Generator<OpT> {\n let current = this.tail.prev!;\n while (current !== this.head) {\n OpList.assertIsOwned(current, this.debugListId);\n\n const prev = current.prev!;\n yield current;\n current = prev;\n }\n }\n\n /**\n * Replace `oldOp` with `newOp` in the list.\n */\n static replace<OpT extends Op<OpT>>(oldOp: OpT, newOp: OpT): void {\n OpList.assertIsNotEnd(oldOp);\n OpList.assertIsNotEnd(newOp);\n\n OpList.assertIsOwned(oldOp);\n OpList.assertIsUnowned(newOp);\n\n newOp.debugListId = oldOp.debugListId;\n if (oldOp.prev !== null) {\n oldOp.prev.next = newOp;\n newOp.prev = oldOp.prev;\n }\n if (oldOp.next !== null) {\n oldOp.next.prev = newOp;\n newOp.next = oldOp.next;\n }\n oldOp.debugListId = null;\n oldOp.prev = null;\n oldOp.next = null;\n }\n\n /**\n * Replace `oldOp` with some number of new operations in the list (which may include `oldOp`).\n */\n static replaceWithMany<OpT extends Op<OpT>>(oldOp: OpT, newOps: OpT[]): void {\n if (newOps.length === 0) {\n // Replacing with an empty list -> pure removal.\n OpList.remove(oldOp);\n return;\n }\n\n OpList.assertIsNotEnd(oldOp);\n OpList.assertIsOwned(oldOp);\n\n const listId = oldOp.debugListId;\n oldOp.debugListId = null;\n\n for (const newOp of newOps) {\n OpList.assertIsNotEnd(newOp);\n\n // `newOp` might be `oldOp`, but at this point it's been marked as unowned.\n OpList.assertIsUnowned(newOp);\n }\n\n // It should be safe to reuse `oldOp` in the `newOps` list - maybe you want to sandwich an\n // operation between two new ops.\n const {prev: oldPrev, next: oldNext} = oldOp;\n oldOp.prev = null;\n oldOp.next = null;\n\n let prev: OpT = oldPrev!;\n for (const newOp of newOps) {\n this.assertIsUnowned(newOp);\n newOp.debugListId = listId;\n\n prev!.next = newOp;\n newOp.prev = prev;\n\n // This _should_ be the case, but set it just in case.\n newOp.next = null;\n\n prev = newOp;\n }\n // At the end of iteration, `prev` holds the last node in the list.\n const first = newOps[0]!;\n const last = prev!;\n\n // Replace `oldOp` with the chain `first` -> `last`.\n if (oldPrev !== null) {\n oldPrev.next = first;\n first.prev = oldPrev;\n }\n\n if (oldNext !== null) {\n oldNext.prev = last;\n last.next = oldNext;\n }\n }\n\n /**\n * Remove the given node from the list which contains it.\n */\n static remove<OpT extends Op<OpT>>(op: OpT): void {\n OpList.assertIsNotEnd(op);\n OpList.assertIsOwned(op);\n\n op.prev!.next = op.next;\n op.next!.prev = op.prev;\n\n // Break any link between the node and this list to safeguard against its usage in future\n // operations.\n op.debugListId = null;\n op.prev = null;\n op.next = null;\n }\n\n /**\n * Insert `op` before `target`.\n */\n static insertBefore<OpT extends Op<OpT>>(op: OpT|OpT[], target: OpT): void {\n if (Array.isArray(op)) {\n for (const o of op) {\n this.insertBefore(o, target);\n }\n return;\n }\n\n OpList.assertIsOwned(target);\n if (target.prev === null) {\n throw new Error(`AssertionError: illegal operation on list start`);\n }\n\n OpList.assertIsNotEnd(op);\n\n OpList.assertIsUnowned(op);\n\n op.debugListId = target.debugListId;\n\n // Just in case.\n op.prev = null;\n\n target.prev!.next = op;\n op.prev = target.prev;\n\n op.next = target;\n target.prev = op;\n }\n\n /**\n * Insert `op` after `target`.\n */\n static insertAfter<OpT extends Op<OpT>>(op: OpT, target: OpT): void {\n OpList.assertIsOwned(target);\n if (target.next === null) {\n throw new Error(`AssertionError: illegal operation on list end`);\n }\n\n OpList.assertIsNotEnd(op);\n\n OpList.assertIsUnowned(op);\n\n op.debugListId = target.debugListId;\n\n target.next.prev = op;\n op.next = target.next;\n\n op.prev = target;\n target.next = op;\n }\n\n /**\n * Asserts that `op` does not currently belong to a list.\n */\n static assertIsUnowned<OpT extends Op<OpT>>(op: OpT): void {\n if (op.debugListId !== null) {\n throw new Error(`AssertionError: illegal operation on owned node: ${OpKind[op.kind]}`);\n }\n }\n\n /**\n * Asserts that `op` currently belongs to a list. If `byList` is passed, `op` is asserted to\n * specifically belong to that list.\n */\n static assertIsOwned<OpT extends Op<OpT>>(op: OpT, byList?: number): void {\n if (op.debugListId === null) {\n throw new Error(`AssertionError: illegal operation on unowned node: ${OpKind[op.kind]}`);\n } else if (byList !== undefined && op.debugListId !== byList) {\n throw new Error(`AssertionError: node belongs to the wrong list (expected ${byList}, actual ${\n op.debugListId})`);\n }\n }\n\n /**\n * Asserts that `op` is not a special `ListEnd` node.\n */\n static assertIsNotEnd<OpT extends Op<OpT>>(op: OpT): void {\n if (op.kind === OpKind.ListEnd) {\n throw new Error(`AssertionError: illegal operation on list head or tail`);\n }\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nexport class SlotHandle {\n slot: number|null = null;\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {SecurityContext} from '../../../../../core';\nimport * as i18n from '../../../../../i18n/i18n_ast';\nimport * as o from '../../../../../output/output_ast';\nimport {ParseSourceSpan} from '../../../../../parse_util';\nimport {R3DeferBlockMetadata} from '../../../../../render3/view/api';\nimport {BindingKind, DeferTriggerKind, I18nContextKind, I18nParamValueFlags, Namespace, OpKind, TemplateKind} from '../enums';\nimport {SlotHandle} from '../handle';\nimport {Op, OpList, XrefId} from '../operations';\nimport {ConsumesSlotOpTrait, ConsumesVarsTrait, TRAIT_CONSUMES_SLOT, TRAIT_CONSUMES_VARS} from '../traits';\n\nimport {ListEndOp, NEW_OP, StatementOp, VariableOp} from './shared';\n\nimport type {UpdateOp} from './update';\n\n/**\n * An operation usable on the creation side of the IR.\n */\nexport type CreateOp = ListEndOp<CreateOp>|StatementOp<CreateOp>|ElementOp|ElementStartOp|\n ElementEndOp|ContainerOp|ContainerStartOp|ContainerEndOp|TemplateOp|EnableBindingsOp|\n DisableBindingsOp|TextOp|ListenerOp|PipeOp|VariableOp<CreateOp>|NamespaceOp|ProjectionDefOp|\n ProjectionOp|ExtractedAttributeOp|DeferOp|DeferOnOp|RepeaterCreateOp|I18nMessageOp|I18nOp|\n I18nStartOp|I18nEndOp|IcuStartOp|IcuEndOp|IcuPlaceholderOp|I18nContextOp|I18nAttributesOp;\n\n/**\n * An operation representing the creation of an element or container.\n */\nexport type ElementOrContainerOps =\n ElementOp|ElementStartOp|ContainerOp|ContainerStartOp|TemplateOp|RepeaterCreateOp;\n\n/**\n * The set of OpKinds that represent the creation of an element or container\n */\nconst elementContainerOpKinds = new Set([\n OpKind.Element, OpKind.ElementStart, OpKind.Container, OpKind.ContainerStart, OpKind.Template,\n OpKind.RepeaterCreate\n]);\n\n/**\n * Checks whether the given operation represents the creation of an element or container.\n */\nexport function isElementOrContainerOp(op: CreateOp): op is ElementOrContainerOps {\n return elementContainerOpKinds.has(op.kind);\n}\n\n/**\n * Representation of a local reference on an element.\n */\nexport interface LocalRef {\n /**\n * User-defined name of the local ref variable.\n */\n name: string;\n\n /**\n * Target of the local reference variable (often `''`).\n */\n target: string;\n}\n\n/**\n * Base interface for `Element`, `ElementStart`, and `Template` operations, containing common fields\n * used to represent their element-like nature.\n */\nexport interface ElementOrContainerOpBase extends Op<CreateOp>, ConsumesSlotOpTrait {\n kind: ElementOrContainerOps['kind'];\n\n /**\n * `XrefId` allocated for this element.\n *\n * This ID is used to reference this element from other IR structures.\n */\n xref: XrefId;\n\n /**\n * Attributes of various kinds on this element. Represented as a `ConstIndex` pointer into the\n * shared `consts` array of the component compilation.\n */\n attributes: ConstIndex|null;\n\n /**\n * Local references to this element.\n *\n * Before local ref processing, this is an array of `LocalRef` declarations.\n *\n * After processing, it's a `ConstIndex` pointer into the shared `consts` array of the component\n * compilation.\n */\n localRefs: LocalRef[]|ConstIndex|null;\n\n /**\n * Whether this container is marked `ngNonBindable`, which disabled Angular binding for itself and\n * all descendants.\n */\n nonBindable: boolean;\n\n /**\n * The span of the element's start tag.\n */\n startSourceSpan: ParseSourceSpan;\n\n /**\n * The whole source span of the element, including children.\n */\n wholeSourceSpan: ParseSourceSpan;\n}\n\nexport interface ElementOpBase extends ElementOrContainerOpBase {\n kind: OpKind.Element|OpKind.ElementStart|OpKind.Template|OpKind.RepeaterCreate;\n\n /**\n * The HTML tag name for this element.\n */\n tag: string|null;\n\n /**\n * The namespace of this element, which controls the preceding namespace instruction.\n */\n namespace: Namespace;\n}\n\n/**\n * Logical operation representing the start of an element in the creation IR.\n */\nexport interface ElementStartOp extends ElementOpBase {\n kind: OpKind.ElementStart;\n\n /**\n * The i18n placeholder data associated with this element.\n */\n i18nPlaceholder?: i18n.TagPlaceholder;\n}\n\n/**\n * Create an `ElementStartOp`.\n */\nexport function createElementStartOp(\n tag: string, xref: XrefId, namespace: Namespace, i18nPlaceholder: i18n.TagPlaceholder|undefined,\n startSourceSpan: ParseSourceSpan, wholeSourceSpan: ParseSourceSpan): ElementStartOp {\n return {\n kind: OpKind.ElementStart,\n xref,\n tag,\n handle: new SlotHandle(),\n attributes: null,\n localRefs: [],\n nonBindable: false,\n namespace,\n i18nPlaceholder,\n startSourceSpan,\n wholeSourceSpan,\n ...TRAIT_CONSUMES_SLOT,\n ...NEW_OP,\n };\n}\n\n/**\n * Logical operation representing an element with no children in the creation IR.\n */\nexport interface ElementOp extends ElementOpBase {\n kind: OpKind.Element;\n\n /**\n * The i18n placeholder data associated with this element.\n */\n i18nPlaceholder?: i18n.TagPlaceholder;\n}\n\n/**\n * Logical operation representing an embedded view declaration in the creation IR.\n */\nexport interface TemplateOp extends ElementOpBase {\n kind: OpKind.Template;\n\n templateKind: TemplateKind;\n\n /**\n * The number of declaration slots used by this template, or `null` if slots have not yet been\n * assigned.\n */\n decls: number|null;\n\n /**\n * The number of binding variable slots used by this template, or `null` if binding variables have\n * not yet been counted.\n */\n vars: number|null;\n\n /**\n * Suffix to add to the name of the generated template function.\n */\n functionNameSuffix: string;\n\n /**\n * The i18n placeholder data associated with this template.\n */\n i18nPlaceholder?: i18n.TagPlaceholder|i18n.BlockPlaceholder;\n}\n\n/**\n * Create a `TemplateOp`.\n */\nexport function createTemplateOp(\n xref: XrefId, templateKind: TemplateKind, tag: string|null, functionNameSuffix: string,\n namespace: Namespace, i18nPlaceholder: i18n.TagPlaceholder|i18n.BlockPlaceholder|undefined,\n startSourceSpan: ParseSourceSpan, wholeSourceSpan: ParseSourceSpan): TemplateOp {\n return {\n kind: OpKind.Template,\n xref,\n templateKind,\n attributes: null,\n tag,\n handle: new SlotHandle(),\n functionNameSuffix,\n decls: null,\n vars: null,\n localRefs: [],\n nonBindable: false,\n namespace,\n i18nPlaceholder,\n startSourceSpan,\n wholeSourceSpan,\n ...TRAIT_CONSUMES_SLOT,\n ...NEW_OP,\n };\n}\n\n/**\n * An op that creates a repeater (e.g. a for loop).\n */\nexport interface RepeaterCreateOp extends ElementOpBase, ConsumesVarsTrait {\n kind: OpKind.RepeaterCreate;\n\n /**\n * The number of declaration slots used by this repeater's template, or `null` if slots have not\n * yet been assigned.\n */\n decls: number|null;\n\n /**\n * The number of binding variable slots used by this repeater's, or `null` if binding variables\n * have not yet been counted.\n */\n vars: number|null;\n\n /**\n * The Xref of the empty view function. (For the primary view function, use the `xref` property).\n */\n emptyView: XrefId|null;\n\n /**\n * The track expression to use while iterating.\n */\n track: o.Expression;\n\n /**\n * `null` initially, then an `o.Expression`. Might be a track expression, or might be a reference\n * into the constant pool.\n */\n trackByFn: o.Expression|null;\n\n /**\n * Context variables avaialable in this block.\n */\n varNames: RepeaterVarNames;\n\n /**\n * Whether the repeater track function relies on the component instance.\n */\n usesComponentInstance: boolean;\n\n /**\n * Suffix to add to the name of the generated template function.\n */\n functionNameSuffix: string;\n\n /**\n * Tag name for the empty block.\n */\n emptyTag: string|null;\n\n /**\n * Attributes of various kinds on the empty block. Represented as a `ConstIndex` pointer into the\n * shared `consts` array of the component compilation.\n */\n emptyAttributes: ConstIndex|null;\n\n /**\n * The i18n placeholder for the repeated item template.\n */\n i18nPlaceholder: i18n.BlockPlaceholder|undefined;\n\n /**\n * The i18n placeholder for the empty template.\n */\n emptyI18nPlaceholder: i18n.BlockPlaceholder|undefined;\n}\n\n// TODO: add source spans?\nexport interface RepeaterVarNames {\n $index: string;\n $count: string;\n $first: string;\n $last: string;\n $even: string;\n $odd: string;\n $implicit: string;\n}\n\nexport function createRepeaterCreateOp(\n primaryView: XrefId, emptyView: XrefId|null, tag: string|null, track: o.Expression,\n varNames: RepeaterVarNames, emptyTag: string|null,\n i18nPlaceholder: i18n.BlockPlaceholder|undefined,\n emptyI18nPlaceholder: i18n.BlockPlaceholder|undefined, startSourceSpan: ParseSourceSpan,\n wholeSourceSpan: ParseSourceSpan): RepeaterCreateOp {\n return {\n kind: OpKind.RepeaterCreate,\n attributes: null,\n xref: primaryView,\n handle: new SlotHandle(),\n emptyView,\n track,\n trackByFn: null,\n tag,\n emptyTag,\n emptyAttributes: null,\n functionNameSuffix: 'For',\n namespace: Namespace.HTML,\n nonBindable: false,\n localRefs: [],\n decls: null,\n vars: null,\n varNames,\n usesComponentInstance: false,\n i18nPlaceholder,\n emptyI18nPlaceholder,\n startSourceSpan,\n wholeSourceSpan,\n ...TRAIT_CONSUMES_SLOT,\n ...NEW_OP,\n ...TRAIT_CONSUMES_VARS,\n numSlotsUsed: emptyView === null ? 2 : 3,\n };\n}\n\n/**\n * Logical operation representing the end of an element structure in the creation IR.\n *\n * Pairs with an `ElementStart` operation.\n */\nexport interface ElementEndOp extends Op<CreateOp> {\n kind: OpKind.ElementEnd;\n\n /**\n * The `XrefId` of the element declared via `ElementStart`.\n */\n xref: XrefId;\n\n sourceSpan: ParseSourceSpan|null;\n}\n\n/**\n * Create an `ElementEndOp`.\n */\nexport function createElementEndOp(xref: XrefId, sourceSpan: ParseSourceSpan|null): ElementEndOp {\n return {\n kind: OpKind.ElementEnd,\n xref,\n sourceSpan,\n ...NEW_OP,\n };\n}\n\n/**\n * Logical operation representing the start of a container in the creation IR.\n */\nexport interface ContainerStartOp extends ElementOrContainerOpBase {\n kind: OpKind.ContainerStart;\n}\n\n/**\n * Logical operation representing an empty container in the creation IR.\n */\nexport interface ContainerOp extends ElementOrContainerOpBase {\n kind: OpKind.Container;\n}\n\n/**\n * Logical operation representing the end of a container structure in the creation IR.\n *\n * Pairs with an `ContainerStart` operation.\n */\nexport interface ContainerEndOp extends Op<CreateOp> {\n kind: OpKind.ContainerEnd;\n\n /**\n * The `XrefId` of the element declared via `ContainerStart`.\n */\n xref: XrefId;\n\n sourceSpan: ParseSourceSpan;\n}\n\n/**\n * Logical operation causing binding to be disabled in descendents of a non-bindable container.\n */\nexport interface DisableBindingsOp extends Op<CreateOp> {\n kind: OpKind.DisableBindings;\n\n /**\n * `XrefId` of the element that was marked non-bindable.\n */\n xref: XrefId;\n}\n\nexport function createDisableBindingsOp(xref: XrefId): DisableBindingsOp {\n return {\n kind: OpKind.DisableBindings,\n xref,\n ...NEW_OP,\n };\n}\n\n/**\n * Logical operation causing binding to be re-enabled after visiting descendants of a\n * non-bindable container.\n */\nexport interface EnableBindingsOp extends Op<CreateOp> {\n kind: OpKind.EnableBindings;\n\n /**\n * `XrefId` of the element that was marked non-bindable.\n */\n xref: XrefId;\n}\n\nexport function createEnableBindingsOp(xref: XrefId): EnableBindingsOp {\n return {\n kind: OpKind.EnableBindings,\n xref,\n ...NEW_OP,\n };\n}\n\n/**\n * Logical operation representing a text node in the creation IR.\n */\nexport interface TextOp extends Op<CreateOp>, ConsumesSlotOpTrait {\n kind: OpKind.Text;\n\n /**\n * `XrefId` used to reference this text node in other IR structures.\n */\n xref: XrefId;\n\n /**\n * The static initial value of the text node.\n */\n initialValue: string;\n\n /**\n * The placeholder for this text in its parent ICU. If this text is not part of an ICU, the\n * placeholder is null.\n */\n icuPlaceholder: string|null;\n\n sourceSpan: ParseSourceSpan|null;\n}\n\n/**\n * Create a `TextOp`.\n */\nexport function createTextOp(\n xref: XrefId, initialValue: string, icuPlaceholder: string|null,\n sourceSpan: ParseSourceSpan|null): TextOp {\n return {\n kind: OpKind.Text,\n xref,\n handle: new SlotHandle(),\n initialValue,\n icuPlaceholder,\n sourceSpan,\n ...TRAIT_CONSUMES_SLOT,\n ...NEW_OP,\n };\n}\n\n/**\n * Logical operation representing an event listener on an element in the creation IR.\n */\nexport interface ListenerOp extends Op<CreateOp> {\n kind: OpKind.Listener;\n\n target: XrefId;\n targetSlot: SlotHandle;\n\n /**\n * Whether this listener is from a host binding.\n */\n hostListener: boolean;\n\n /**\n * Name of the event which is being listened to.\n */\n name: string;\n\n /**\n * Tag name of the element on which this listener is placed. Might be null, if this listener\n * belongs to a host binding.\n */\n tag: string|null;\n\n /**\n * A list of `UpdateOp`s representing the body of the event listener.\n */\n handlerOps: OpList<UpdateOp>;\n\n /**\n * Name of the function\n */\n handlerFnName: string|null;\n\n /**\n * Whether this listener is known to consume `$event` in its body.\n */\n consumesDollarEvent: boolean;\n\n /**\n * Whether the listener is listening for an animation event.\n */\n isAnimationListener: boolean;\n\n /**\n * The animation phase of the listener.\n */\n animationPhase: string|null;\n\n /**\n * Some event listeners can have a target, e.g. in `document:dragover`.\n */\n eventTarget: string|null;\n\n sourceSpan: ParseSourceSpan;\n}\n\n/**\n * Create a `ListenerOp`. Host bindings reuse all the listener logic.\n */\nexport function createListenerOp(\n target: XrefId, targetSlot: SlotHandle, name: string, tag: string|null,\n handlerOps: Array<UpdateOp>, animationPhase: string|null, eventTarget: string|null,\n hostListener: boolean, sourceSpan: ParseSourceSpan): ListenerOp {\n const handlerList = new OpList<UpdateOp>();\n handlerList.push(handlerOps);\n return {\n kind: OpKind.Listener,\n target,\n targetSlot,\n tag,\n hostListener,\n name,\n handlerOps: handlerList,\n handlerFnName: null,\n consumesDollarEvent: false,\n isAnimationListener: animationPhase !== null,\n animationPhase,\n eventTarget,\n sourceSpan,\n ...NEW_OP,\n };\n}\n\nexport interface PipeOp extends Op<CreateOp>, ConsumesSlotOpTrait {\n kind: OpKind.Pipe;\n xref: XrefId;\n name: string;\n}\n\nexport function createPipeOp(xref: XrefId, slot: SlotHandle, name: string): PipeOp {\n return {\n kind: OpKind.Pipe,\n xref,\n handle: slot,\n name,\n ...NEW_OP,\n ...TRAIT_CONSUMES_SLOT,\n };\n}\n\n/**\n * An op corresponding to a namespace instruction, for switching between HTML, SVG, and MathML.\n */\nexport interface NamespaceOp extends Op<CreateOp> {\n kind: OpKind.Namespace;\n active: Namespace;\n}\n\nexport function createNamespaceOp(namespace: Namespace): NamespaceOp {\n return {\n kind: OpKind.Namespace,\n active: namespace,\n ...NEW_OP,\n };\n}\n\n/**\n * An op that creates a content projection slot.\n */\nexport interface ProjectionDefOp extends Op<CreateOp> {\n kind: OpKind.ProjectionDef;\n\n // The parsed selector information for this projection def.\n def: o.Expression|null;\n}\n\nexport function createProjectionDefOp(def: o.Expression|null): ProjectionDefOp {\n return {\n kind: OpKind.ProjectionDef,\n def,\n ...NEW_OP,\n };\n}\n\n/**\n * An op that creates a content projection slot.\n */\nexport interface ProjectionOp extends Op<CreateOp>, ConsumesSlotOpTrait {\n kind: OpKind.Projection;\n\n xref: XrefId;\n\n projectionSlotIndex: number;\n\n attributes: null|o.LiteralArrayExpr;\n\n localRefs: string[];\n\n selector: string;\n\n i18nPlaceholder?: i18n.TagPlaceholder;\n\n sourceSpan: ParseSourceSpan;\n}\n\nexport function createProjectionOp(\n xref: XrefId, selector: string, i18nPlaceholder: i18n.TagPlaceholder|undefined,\n sourceSpan: ParseSourceSpan): ProjectionOp {\n return {\n kind: OpKind.Projection,\n xref,\n handle: new SlotHandle(),\n selector,\n i18nPlaceholder,\n projectionSlotIndex: 0,\n attributes: null,\n localRefs: [],\n sourceSpan,\n ...NEW_OP,\n ...TRAIT_CONSUMES_SLOT,\n };\n}\n\n/**\n * Represents an attribute that has been extracted for inclusion in the consts array.\n */\nexport interface ExtractedAttributeOp extends Op<CreateOp> {\n kind: OpKind.ExtractedAttribute;\n\n /**\n * The `XrefId` of the template-like element the extracted attribute will belong to.\n */\n target: XrefId;\n\n /**\n * The kind of binding represented by this extracted attribute.\n */\n bindingKind: BindingKind;\n\n /**\n * The namespace of the attribute (or null if none).\n */\n namespace: string|null;\n\n /**\n * The name of the extracted attribute.\n */\n name: string;\n\n /**\n * The value expression of the extracted attribute.\n */\n expression: o.Expression|null;\n\n /**\n * If this attribute has a corresponding i18n attribute (e.g. `i18n-foo=\"m:d\"`), then this is the\n * i18n context for it.\n */\n i18nContext: XrefId|null;\n\n /**\n * The security context of the binding.\n */\n securityContext: SecurityContext|SecurityContext[];\n\n /**\n * The trusted value function for this property.\n */\n trustedValueFn: o.Expression|null;\n\n i18nMessage: i18n.Message|null;\n}\n\n/**\n * Create an `ExtractedAttributeOp`.\n */\nexport function createExtractedAttributeOp(\n target: XrefId, bindingKind: BindingKind, namespace: string|null, name: string,\n expression: o.Expression|null, i18nContext: XrefId|null, i18nMessage: i18n.Message|null,\n securityContext: SecurityContext|SecurityContext[]): ExtractedAttributeOp {\n return {\n kind: OpKind.ExtractedAttribute,\n target,\n bindingKind,\n namespace,\n name,\n expression,\n i18nContext,\n i18nMessage,\n securityContext,\n trustedValueFn: null,\n ...NEW_OP,\n };\n}\n\nexport interface DeferOp extends Op<CreateOp>, ConsumesSlotOpTrait {\n kind: OpKind.Defer;\n\n /**\n * The xref of this defer op.\n */\n xref: XrefId;\n\n /**\n * The xref of the main view.\n */\n mainView: XrefId;\n\n mainSlot: SlotHandle;\n\n /**\n * Secondary loading block associated with this defer op.\n */\n loadingView: XrefId|null;\n\n loadingSlot: SlotHandle|null;\n\n /**\n * Secondary placeholder block associated with this defer op.\n */\n placeholderView: XrefId|null;\n\n placeholderSlot: SlotHandle|null;\n\n /**\n * Secondary error block associated with this defer op.\n */\n errorView: XrefId|null;\n\n errorSlot: SlotHandle|null;\n\n placeholderMinimumTime: number|null;\n loadingMinimumTime: number|null;\n loadingAfterTime: number|null;\n\n placeholderConfig: o.Expression|null;\n loadingConfig: o.Expression|null;\n\n /**\n * Metadata about this defer block, provided by the parser.\n */\n metadata: R3DeferBlockMetadata;\n\n /**\n * After processing, the resolver function for the defer deps will be extracted to the constant\n * pool, and a reference to that function will be populated here.\n */\n resolverFn: o.Expression|null;\n\n sourceSpan: ParseSourceSpan;\n}\n\nexport function createDeferOp(\n xref: XrefId, main: XrefId, mainSlot: SlotHandle, metadata: R3DeferBlockMetadata,\n resolverFn: o.Expression|null, sourceSpan: ParseSourceSpan): DeferOp {\n return {\n kind: OpKind.Defer,\n xref,\n handle: new SlotHandle(),\n mainView: main,\n mainSlot,\n loadingView: null,\n loadingSlot: null,\n loadingConfig: null,\n loadingMinimumTime: null,\n loadingAfterTime: null,\n placeholderView: null,\n placeholderSlot: null,\n placeholderConfig: null,\n placeholderMinimumTime: null,\n errorView: null,\n errorSlot: null,\n metadata,\n resolverFn,\n sourceSpan,\n ...NEW_OP,\n ...TRAIT_CONSUMES_SLOT,\n numSlotsUsed: 2,\n };\n}\ninterface DeferTriggerBase {\n kind: DeferTriggerKind;\n}\n\ninterface DeferTriggerWithTargetBase extends DeferTriggerBase {\n targetName: string|null;\n\n /**\n * The Xref of the targeted name. May be in a different view.\n */\n targetXref: XrefId|null;\n\n /**\n * The slot index of the named reference, inside the view provided below. This slot may not be\n * inside the current view, and is handled specially as a result.\n */\n targetSlot: SlotHandle|null;\n\n targetView: XrefId|null;\n\n /**\n * Number of steps to walk up or down the view tree to find the target localRef.\n */\n targetSlotViewSteps: number|null;\n}\n\ninterface DeferIdleTrigger extends DeferTriggerBase {\n kind: DeferTriggerKind.Idle;\n}\n\ninterface DeferImmediateTrigger extends DeferTriggerBase {\n kind: DeferTriggerKind.Immediate;\n}\n\ninterface DeferHoverTrigger extends DeferTriggerWithTargetBase {\n kind: DeferTriggerKind.Hover;\n}\n\ninterface DeferTimerTrigger extends DeferTriggerBase {\n kind: DeferTriggerKind.Timer;\n\n delay: number;\n}\n\ninterface DeferInteractionTrigger extends DeferTriggerWithTargetBase {\n kind: DeferTriggerKind.Interaction;\n}\n\ninterface DeferViewportTrigger extends DeferTriggerWithTargetBase {\n kind: DeferTriggerKind.Viewport;\n}\n\n/**\n * The union type of all defer trigger interfaces.\n */\nexport type DeferTrigger = DeferIdleTrigger|DeferImmediateTrigger|DeferTimerTrigger|\n DeferHoverTrigger|DeferInteractionTrigger|DeferViewportTrigger;\n\nexport interface DeferOnOp extends Op<CreateOp> {\n kind: OpKind.DeferOn;\n\n defer: XrefId;\n\n /**\n * The trigger for this defer op (e.g. idle, hover, etc).\n */\n trigger: DeferTrigger;\n\n /**\n * Whether to emit the prefetch version of the instruction.\n */\n prefetch: boolean;\n\n sourceSpan: ParseSourceSpan;\n}\n\nexport function createDeferOnOp(\n defer: XrefId, trigger: DeferTrigger, prefetch: boolean,\n sourceSpan: ParseSourceSpan): DeferOnOp {\n return {\n kind: OpKind.DeferOn,\n defer,\n trigger,\n prefetch,\n sourceSpan,\n ...NEW_OP,\n };\n}\n\n/**\n * Represents a single value in an i18n param map. Each placeholder in the map may have multiple of\n * these values associated with it.\n */\nexport interface I18nParamValue {\n /**\n * The value. This can be either a slot number, special string, or compound-value consisting of an\n * element slot number and template slot number.\n */\n value: string|number|{element: number, template: number};\n\n /**\n * The sub-template index associated with the value.\n */\n subTemplateIndex: number|null;\n\n /**\n * Flags associated with the value.\n */\n flags: I18nParamValueFlags;\n}\n\n/**\n * Represents an i18n message that has been extracted for inclusion in the consts array.\n */\nexport interface I18nMessageOp extends Op<CreateOp> {\n kind: OpKind.I18nMessage;\n\n /**\n * An id used to reference this message.\n */\n xref: XrefId;\n\n /**\n * The context from which this message was extracted\n * TODO: remove this, and add another property here instead to match ExtractedAttributes\n */\n i18nContext: XrefId;\n\n /**\n * A reference to the i18n op this message was extracted from.\n *\n * This might be null, which means this message is not associated with a block. This probably\n * means it is an i18n attribute's message.\n */\n i18nBlock: XrefId|null;\n\n /**\n * The i18n message represented by this op.\n */\n message: i18n.Message;\n\n /**\n * The placeholder used for this message when it is referenced in another message.\n * For a top-level message that isn't referenced from another message, this will be null.\n */\n messagePlaceholder: string|null;\n\n /**\n * Whether this message needs post-processing.\n */\n needsPostprocessing: boolean;\n\n /**\n * The param map, with placeholders represented as an `Expression`.\n */\n params: Map<string, o.Expression>;\n\n /**\n * The post-processing param map, with placeholders represented as an `Expression`.\n */\n postprocessingParams: Map<string, o.Expression>;\n\n /**\n * A list of sub-messages that are referenced by this message.\n */\n subMessages: XrefId[];\n}\n\n/**\n * Create an `ExtractedMessageOp`.\n */\nexport function createI18nMessageOp(\n xref: XrefId, i18nContext: XrefId, i18nBlock: XrefId|null, message: i18n.Message,\n messagePlaceholder: string|null, params: Map<string, o.Expression>,\n postprocessingParams: Map<string, o.Expression>, needsPostprocessing: boolean): I18nMessageOp {\n return {\n kind: OpKind.I18nMessage,\n xref,\n i18nContext,\n i18nBlock,\n message,\n messagePlaceholder,\n params,\n postprocessingParams,\n needsPostprocessing,\n subMessages: [],\n ...NEW_OP,\n };\n}\n\nexport interface I18nOpBase extends Op<CreateOp>, ConsumesSlotOpTrait {\n kind: OpKind.I18nStart|OpKind.I18n;\n\n /**\n * `XrefId` allocated for this i18n block.\n */\n xref: XrefId;\n\n /**\n * A reference to the root i18n block that this one belongs to. For a root i18n block, this is\n * the same as xref.\n */\n root: XrefId;\n\n /**\n * The i18n metadata associated with this op.\n */\n message: i18n.Message;\n\n /**\n * The index in the consts array where the message i18n message is stored.\n */\n messageIndex: ConstIndex|null;\n\n /**\n * The index of this sub-block in the i18n message. For a root i18n block, this is null.\n */\n subTemplateIndex: number|null;\n\n /**\n * The i18n context generated from this block. Initially null, until the context is created.\n */\n context: XrefId|null;\n\n sourceSpan: ParseSourceSpan|null;\n}\n\n/**\n * Represents an empty i18n block.\n */\nexport interface I18nOp extends I18nOpBase {\n kind: OpKind.I18n;\n}\n\n/**\n * Represents the start of an i18n block.\n */\nexport interface I18nStartOp extends I18nOpBase {\n kind: OpKind.I18nStart;\n}\n\n/**\n * Create an `I18nStartOp`.\n */\nexport function createI18nStartOp(\n xref: XrefId, message: i18n.Message, root: XrefId|undefined,\n sourceSpan: ParseSourceSpan|null): I18nStartOp {\n return {\n kind: OpKind.I18nStart,\n xref,\n handle: new SlotHandle(),\n root: root ?? xref,\n message,\n messageIndex: null,\n subTemplateIndex: null,\n context: null,\n sourceSpan,\n ...NEW_OP,\n ...TRAIT_CONSUMES_SLOT,\n };\n}\n\n/**\n * Represents the end of an i18n block.\n */\nexport interface I18nEndOp extends Op<CreateOp> {\n kind: OpKind.I18nEnd;\n\n /**\n * The `XrefId` of the `I18nStartOp` that created this block.\n */\n xref: XrefId;\n\n sourceSpan: ParseSourceSpan|null;\n}\n\n/**\n * Create an `I18nEndOp`.\n */\nexport function createI18nEndOp(xref: XrefId, sourceSpan: ParseSourceSpan|null): I18nEndOp {\n return {\n kind: OpKind.I18nEnd,\n xref,\n sourceSpan,\n ...NEW_OP,\n };\n}\n\n/**\n * An op that represents the start of an ICU expression.\n */\nexport interface IcuStartOp extends Op<CreateOp> {\n kind: OpKind.IcuStart;\n\n /**\n * The ID of the ICU.\n */\n xref: XrefId;\n\n /**\n * The i18n message for this ICU.\n */\n message: i18n.Message;\n\n /**\n * Placeholder used to reference this ICU in other i18n messages.\n */\n messagePlaceholder: string;\n\n /**\n * A reference to the i18n context for this op. Initially null, until the context is created.\n */\n context: XrefId|null;\n\n sourceSpan: ParseSourceSpan;\n}\n\n/**\n * Creates an ICU start op.\n */\nexport function createIcuStartOp(\n xref: XrefId, message: i18n.Message, messagePlaceholder: string,\n sourceSpan: ParseSourceSpan): IcuStartOp {\n return {\n kind: OpKind.IcuStart,\n xref,\n message,\n messagePlaceholder,\n context: null,\n sourceSpan,\n ...NEW_OP,\n };\n}\n\n/**\n * An op that represents the end of an ICU expression.\n */\nexport interface IcuEndOp extends Op<CreateOp> {\n kind: OpKind.IcuEnd;\n\n /**\n * The ID of the corresponding IcuStartOp.\n */\n xref: XrefId;\n}\n\n/**\n * Creates an ICU end op.\n */\nexport function createIcuEndOp(xref: XrefId): IcuEndOp {\n return {\n kind: OpKind.IcuEnd,\n xref,\n ...NEW_OP,\n };\n}\n\n/**\n * An op that represents a placeholder in an ICU expression.\n */\nexport interface IcuPlaceholderOp extends Op<CreateOp> {\n kind: OpKind.IcuPlaceholder;\n\n /**\n * The ID of the ICU placeholder.\n */\n xref: XrefId;\n\n /**\n * The name of the placeholder in the ICU expression.\n */\n name: string;\n\n /**\n * The static strings to be combined with dynamic expression values to form the text. This works\n * like interpolation, but the strings are combined at compile time, using special placeholders\n * for the dynamic expressions, and put into the translated message.\n */\n strings: string[];\n\n /**\n * Placeholder values for the i18n expressions to be combined with the static strings to form the\n * full placeholder value.\n */\n expressionPlaceholders: I18nParamValue[];\n}\n\n/**\n * Creates an ICU placeholder op.\n */\nexport function createIcuPlaceholderOp(\n xref: XrefId, name: string, strings: string[]): IcuPlaceholderOp {\n return {\n kind: OpKind.IcuPlaceholder,\n xref,\n name,\n strings,\n expressionPlaceholders: [],\n ...NEW_OP,\n };\n}\n\n/**\n * An i18n context that is used to generate a translated i18n message. A separate context is created\n * for three different scenarios:\n *\n * 1. For each top-level i18n block.\n * 2. For each ICU referenced as a sub-message. ICUs that are referenced as a sub-message will be\n * used to generate a separate i18n message, but will not be extracted directly into the consts\n * array. Instead they will be pulled in as part of the initialization statements for the message\n * that references them.\n * 3. For each i18n attribute.\n *\n * Child i18n blocks, resulting from the use of an ng-template inside of a parent i18n block, do not\n * generate a separate context. Instead their content is included in the translated message for\n * their root block.\n */\nexport interface I18nContextOp extends Op<CreateOp> {\n kind: OpKind.I18nContext;\n\n contextKind: I18nContextKind;\n\n /**\n * The id of this context.\n */\n xref: XrefId;\n\n /**\n * A reference to the I18nStartOp or I18nOp this context belongs to.\n *\n * It is possible for multiple contexts to belong to the same block, since both the block and any\n * ICUs inside the block will each get their own context.\n *\n * This might be `null`, in which case the context is not associated with an i18n block. This\n * probably means that it belongs to an i18n attribute.\n */\n i18nBlock: XrefId|null;\n\n /**\n * The i18n message associated with this context.\n */\n message: i18n.Message;\n\n /**\n * The param map for this context.\n */\n params: Map<string, I18nParamValue[]>;\n\n /**\n * The post-processing param map for this context.\n */\n postprocessingParams: Map<string, I18nParamValue[]>;\n\n sourceSpan: ParseSourceSpan;\n}\n\nexport function createI18nContextOp(\n contextKind: I18nContextKind, xref: XrefId, i18nBlock: XrefId|null, message: i18n.Message,\n sourceSpan: ParseSourceSpan): I18nContextOp {\n if (i18nBlock === null && contextKind !== I18nContextKind.Attr) {\n throw new Error('AssertionError: i18nBlock must be provided for non-attribute contexts.');\n }\n\n return {\n kind: OpKind.I18nContext,\n contextKind,\n xref,\n i18nBlock,\n message,\n sourceSpan,\n params: new Map(),\n postprocessingParams: new Map(),\n ...NEW_OP,\n };\n}\n\nexport interface I18nAttributesOp extends Op<CreateOp>, ConsumesSlotOpTrait {\n kind: OpKind.I18nAttributes;\n\n /**\n * The element targeted by these attributes.\n */\n target: XrefId;\n\n /**\n * I18nAttributes instructions correspond to a const array with configuration information.\n */\n i18nAttributesConfig: ConstIndex|null;\n}\n\nexport function createI18nAttributesOp(\n xref: XrefId, handle: SlotHandle, target: XrefId): I18nAttributesOp {\n return {\n kind: OpKind.I18nAttributes,\n xref,\n handle,\n target,\n i18nAttributesConfig: null,\n ...NEW_OP,\n ...TRAIT_CONSUMES_SLOT,\n };\n}\n\n/**\n * An index into the `consts` array which is shared across the compilation of all views in a\n * component.\n */\nexport type ConstIndex = number&{__brand: 'ConstIndex'};\n\nexport function literalOrArrayLiteral(value: any): o.Expression {\n if (Array.isArray(value)) {\n return o.literalArr(value.map(literalOrArrayLiteral));\n }\n return o.literal(value, o.INFERRED_TYPE);\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as o from '../../../../../../src/output/output_ast';\nimport {ParseSourceSpan} from '../../../../../../src/parse_util';\nimport {SecurityContext} from '../../../../../core';\nimport {OpKind} from '../enums';\nimport {Op, XrefId} from '../operations';\nimport {ConsumesVarsTrait, TRAIT_CONSUMES_VARS} from '../traits';\n\nimport {NEW_OP} from './shared';\n\nimport type {Interpolation, UpdateOp} from './update';\n\n\n/**\n * Logical operation representing a host binding to a property.\n */\nexport interface HostPropertyOp extends Op<UpdateOp>, ConsumesVarsTrait {\n kind: OpKind.HostProperty;\n name: string;\n expression: o.Expression|Interpolation;\n isAnimationTrigger: boolean;\n\n i18nContext: XrefId|null;\n\n securityContext: SecurityContext|SecurityContext[];\n\n sanitizer: o.Expression|null;\n\n sourceSpan: ParseSourceSpan|null;\n}\n\nexport function createHostPropertyOp(\n name: string, expression: o.Expression|Interpolation, isAnimationTrigger: boolean,\n i18nContext: XrefId|null, securityContext: SecurityContext|SecurityContext[],\n sourceSpan: ParseSourceSpan|null): HostPropertyOp {\n return {\n kind: OpKind.HostProperty,\n name,\n expression,\n isAnimationTrigger,\n i18nContext,\n securityContext,\n sanitizer: null,\n sourceSpan,\n ...TRAIT_CONSUMES_VARS,\n ...NEW_OP,\n };\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as o from '../../../../output/output_ast';\nimport type {SemanticVariableKind} from './enums';\nimport type {XrefId} from './operations';\n\n/**\n * Union type for the different kinds of variables.\n */\nexport type SemanticVariable = ContextVariable|IdentifierVariable|SavedViewVariable|AliasVariable;\n\nexport interface SemanticVariableBase {\n kind: SemanticVariableKind;\n\n /**\n * Name assigned to this variable in generated code, or `null` if not yet assigned.\n */\n name: string|null;\n}\n\n/**\n * When referenced in the template's context parameters, this indicates a reference to the entire\n * context object, rather than a specific parameter.\n */\nexport const CTX_REF = 'CTX_REF_MARKER';\n\n/**\n * A variable that represents the context of a particular view.\n */\nexport interface ContextVariable extends SemanticVariableBase {\n kind: SemanticVariableKind.Context;\n\n /**\n * `XrefId` of the view that this variable represents.\n */\n view: XrefId;\n}\n\n/**\n * A variable that represents a specific identifier within a template.\n */\nexport interface IdentifierVariable extends SemanticVariableBase {\n kind: SemanticVariableKind.Identifier;\n\n /**\n * The identifier whose value in the template is tracked in this variable.\n */\n identifier: string;\n}\n\n/**\n * A variable that represents a saved view context.\n */\nexport interface SavedViewVariable extends SemanticVariableBase {\n kind: SemanticVariableKind.SavedView;\n\n /**\n * The view context saved in this variable.\n */\n view: XrefId;\n}\n\n/**\n * A variable that will be inlined at every location it is used. An alias is also allowed to depend\n * on the value of a semantic variable.\n */\nexport interface AliasVariable extends SemanticVariableBase {\n kind: SemanticVariableKind.Alias;\n identifier: string;\n expression: o.Expression;\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {ConstantPool} from '../../../constant_pool';\nimport * as o from '../../../output/output_ast';\nimport * as t from '../../../render3/r3_ast';\nimport {R3DeferBlockMetadata} from '../../../render3/view/api';\nimport * as ir from '../ir';\n\nexport enum CompilationJobKind {\n Tmpl,\n Host,\n Both, // A special value used to indicate that some logic applies to both compilation types\n}\n\n/**\n * An entire ongoing compilation, which will result in one or more template functions when complete.\n * Contains one or more corresponding compilation units.\n */\nexport abstract class CompilationJob {\n constructor(\n readonly componentName: string, readonly pool: ConstantPool,\n readonly compatibility: ir.CompatibilityMode) {}\n\n kind: CompilationJobKind = CompilationJobKind.Both;\n\n /**\n * A compilation job will contain one or more compilation units.\n */\n abstract get units(): Iterable<CompilationUnit>;\n\n /**\n * The root compilation unit, such as the component's template, or the host binding's compilation\n * unit.\n */\n abstract root: CompilationUnit;\n\n /**\n * A unique string used to identify this kind of job, and generate the template function (as a\n * suffix of the name).\n */\n abstract fnSuffix: string;\n\n /**\n * Generate a new unique `ir.XrefId` in this job.\n */\n allocateXrefId(): ir.XrefId {\n return this.nextXrefId++ as ir.XrefId;\n }\n\n /**\n * Tracks the next `ir.XrefId` which can be assigned as template structures are ingested.\n */\n private nextXrefId: ir.XrefId = 0 as ir.XrefId;\n}\n\n/**\n * Compilation-in-progress of a whole component's template, including the main template and any\n * embedded views or host bindings.\n */\nexport class ComponentCompilationJob extends CompilationJob {\n constructor(\n componentName: string, pool: ConstantPool, compatibility: ir.CompatibilityMode,\n readonly relativeContextFilePath: string, readonly i18nUseExternalIds: boolean,\n readonly deferBlocksMeta: Map<t.DeferredBlock, R3DeferBlockMetadata>,\n readonly allDeferrableDepsFn: o.ReadVarExpr|null) {\n super(componentName, pool, compatibility);\n this.root = new ViewCompilationUnit(this, this.allocateXrefId(), null);\n this.views.set(this.root.xref, this.root);\n }\n\n override kind = CompilationJobKind.Tmpl;\n\n override readonly fnSuffix: string = 'Template';\n\n /**\n * The root view, representing the component's template.\n */\n override readonly root: ViewCompilationUnit;\n\n readonly views = new Map<ir.XrefId, ViewCompilationUnit>();\n\n /**\n * Causes ngContentSelectors to be emitted, for content projection slots in the view. Possibly a\n * reference into the constant pool.\n */\n public contentSelectors: o.Expression|null = null;\n\n /**\n * Add a `ViewCompilation` for a new embedded view to this compilation.\n */\n allocateView(parent: ir.XrefId): ViewCompilationUnit {\n const view = new ViewCompilationUnit(this, this.allocateXrefId(), parent);\n this.views.set(view.xref, view);\n return view;\n }\n\n override get units(): Iterable<ViewCompilationUnit> {\n return this.views.values();\n }\n\n /**\n * Add a constant `o.Expression` to the compilation and return its index in the `consts` array.\n */\n addConst(newConst: o.Expression, initializers?: o.Statement[]): ir.ConstIndex {\n for (let idx = 0; idx < this.consts.length; idx++) {\n if (this.consts[idx].isEquivalent(newConst)) {\n return idx as ir.ConstIndex;\n }\n }\n const idx = this.consts.length;\n this.consts.push(newConst);\n if (initializers) {\n this.constsInitializers.push(...initializers);\n }\n return idx as ir.ConstIndex;\n }\n\n /**\n * Constant expressions used by operations within this component's compilation.\n *\n * This will eventually become the `consts` array in the component definition.\n */\n readonly consts: o.Expression[] = [];\n\n /**\n * Initialization statements needed to set up the consts.\n */\n readonly constsInitializers: o.Statement[] = [];\n}\n\n/**\n * A compilation unit is compiled into a template function. Some example units are views and host\n * bindings.\n */\nexport abstract class CompilationUnit {\n constructor(readonly xref: ir.XrefId) {}\n\n /**\n * List of creation operations for this view.\n *\n * Creation operations may internally contain other operations, including update operations.\n */\n readonly create = new ir.OpList<ir.CreateOp>();\n\n /**\n * List of update operations for this view.\n */\n readonly update = new ir.OpList<ir.UpdateOp>();\n\n /**\n * The enclosing job, which might contain several individual compilation units.\n */\n abstract readonly job: CompilationJob;\n\n /**\n * Name of the function which will be generated for this unit.\n *\n * May be `null` if not yet determined.\n */\n fnName: string|null = null;\n\n /**\n * Number of variable slots used within this view, or `null` if variables have not yet been\n * counted.\n */\n vars: number|null = null;\n\n /**\n * Iterate over all `ir.Op`s within this view.\n *\n * Some operations may have child operations, which this iterator will visit.\n */\n * ops(): Generator<ir.CreateOp|ir.UpdateOp> {\n for (const op of this.create) {\n yield op;\n if (op.kind === ir.OpKind.Listener) {\n for (const listenerOp of op.handlerOps) {\n yield listenerOp;\n }\n }\n }\n for (const op of this.update) {\n yield op;\n }\n }\n}\n\n/**\n * Compilation-in-progress of an individual view within a template.\n */\nexport class ViewCompilationUnit extends CompilationUnit {\n constructor(\n readonly job: ComponentCompilationJob, xref: ir.XrefId, readonly parent: ir.XrefId|null) {\n super(xref);\n }\n\n /**\n * Map of declared variables available within this view to the property on the context object\n * which they alias.\n */\n readonly contextVariables = new Map<string, string>();\n\n /**\n * Set of aliases available within this view. An alias is a variable whose provided expression is\n * inlined at every location it is used. It may also depend on context variables, by name.\n */\n readonly aliases = new Set<ir.AliasVariable>();\n\n /**\n * Number of declaration slots used within this view, or `null` if slots have not yet been\n * allocated.\n */\n decls: number|null = null;\n}\n\n/**\n * Compilation-in-progress of a host binding, which contains a single unit for that host binding.\n */\nexport class HostBindingCompilationJob extends CompilationJob {\n constructor(componentName: string, pool: ConstantPool, compatibility: ir.CompatibilityMode) {\n super(componentName, pool, compatibility);\n this.root = new HostBindingCompilationUnit(this);\n }\n\n override kind = CompilationJobKind.Host;\n\n override readonly fnSuffix: string = 'HostBindings';\n\n override readonly root: HostBindingCompilationUnit;\n\n override get units(): Iterable<HostBindingCompilationUnit> {\n return [this.root];\n }\n}\n\nexport class HostBindingCompilationUnit extends CompilationUnit {\n constructor(readonly job: HostBindingCompilationJob) {\n super(0 as ir.XrefId);\n }\n\n /**\n * Much like an element can have attributes, so can a host binding function.\n */\n attributes: o.LiteralArrayExpr|null = null;\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as o from '../../../../output/output_ast';\nimport * as ir from '../../ir';\nimport {CompilationJob} from '../compilation';\n\n/**\n * Find any function calls to `$any`, excluding `this.$any`, and delete them, since they have no\n * runtime effects.\n */\nexport function deleteAnyCasts(job: CompilationJob): void {\n for (const unit of job.units) {\n for (const op of unit.ops()) {\n ir.transformExpressionsInOp(op, removeAnys, ir.VisitorContextFlag.None);\n }\n }\n}\n\nfunction removeAnys(e: o.Expression): o.Expression {\n if (e instanceof o.InvokeFunctionExpr && e.fn instanceof ir.LexicalReadExpr &&\n e.fn.name === '$any') {\n if (e.args.length !== 1) {\n throw new Error('The $any builtin function expects exactly one argument.');\n }\n return e.args[0];\n }\n return e;\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as ir from '../../ir';\nimport {CompilationJob} from '../compilation';\n\n/**\n * Adds apply operations after i18n expressions.\n */\nexport function applyI18nExpressions(job: CompilationJob): void {\n const i18nContexts = new Map<ir.XrefId, ir.I18nContextOp>();\n for (const unit of job.units) {\n for (const op of unit.create) {\n if (op.kind === ir.OpKind.I18nContext) {\n i18nContexts.set(op.xref, op);\n }\n }\n }\n\n for (const unit of job.units) {\n for (const op of unit.update) {\n // Only add apply after expressions that are not followed by more expressions.\n if (op.kind === ir.OpKind.I18nExpression && needsApplication(i18nContexts, op)) {\n // TODO: what should be the source span for the apply op?\n ir.OpList.insertAfter<ir.UpdateOp>(\n ir.createI18nApplyOp(op.i18nOwner, op.handle, null!), op);\n }\n }\n }\n}\n\n/**\n * Checks whether the given expression op needs to be followed with an apply op.\n */\nfunction needsApplication(i18nContexts: Map<ir.XrefId, ir.I18nContextOp>, op: ir.I18nExpressionOp) {\n // If the next op is not another expression, we need to apply.\n if (op.next?.kind !== ir.OpKind.I18nExpression) {\n return true;\n }\n\n const context = i18nContexts.get(op.context);\n const nextContext = i18nContexts.get(op.next.context);\n\n if (context === undefined) {\n throw new Error(\n 'AssertionError: expected an I18nContextOp to exist for the I18nExpressionOp\\'s context');\n }\n\n if (nextContext === undefined) {\n throw new Error(\n 'AssertionError: expected an I18nContextOp to exist for the next I18nExpressionOp\\'s context');\n }\n\n // If the next op is an expression targeting a different i18n block (or different element, in the\n // case of i18n attributes), we need to apply.\n\n // First, handle the case of i18n blocks.\n if (context.i18nBlock !== null) {\n // This is a block context. Compare the blocks.\n if (context.i18nBlock !== nextContext.i18nBlock) {\n return true;\n }\n return false;\n }\n\n // Second, handle the case of i18n attributes.\n if (op.i18nOwner !== op.next.i18nOwner) {\n return true;\n }\n return false;\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as ir from '../../ir';\nimport {CompilationJob} from '../compilation';\n\ninterface BlockState {\n blockXref: ir.XrefId;\n lastSlotConsumer: ir.XrefId;\n}\n\n/**\n * Updates i18n expression ops to target the last slot in their owning i18n block, and moves them\n * after the last update instruction that depends on that slot.\n */\nexport function assignI18nSlotDependencies(job: CompilationJob) {\n for (const unit of job.units) {\n // The first update op.\n let updateOp = unit.update.head;\n\n // I18n expressions currently being moved during the iteration.\n let i18nExpressionsInProgress: ir.I18nExpressionOp[] = [];\n\n // Non-null while we are iterating through an i18nStart/i18nEnd pair\n let state: BlockState|null = null;\n\n for (const createOp of unit.create) {\n if (createOp.kind === ir.OpKind.I18nStart) {\n state = {\n blockXref: createOp.xref,\n lastSlotConsumer: createOp.xref,\n };\n } else if (createOp.kind === ir.OpKind.I18nEnd) {\n for (const op of i18nExpressionsInProgress) {\n op.target = state!.lastSlotConsumer;\n ir.OpList.insertBefore(op as ir.UpdateOp, updateOp!);\n }\n i18nExpressionsInProgress.length = 0;\n state = null;\n }\n\n if (ir.hasConsumesSlotTrait(createOp)) {\n if (state !== null) {\n state.lastSlotConsumer = createOp.xref;\n }\n\n while (true) {\n if (updateOp.next === null) {\n break;\n }\n\n if (state !== null && updateOp.kind === ir.OpKind.I18nExpression &&\n updateOp.usage === ir.I18nExpressionFor.I18nText &&\n updateOp.i18nOwner === state.blockXref) {\n const opToRemove = updateOp;\n updateOp = updateOp.next!;\n ir.OpList.remove<ir.UpdateOp>(opToRemove);\n i18nExpressionsInProgress.push(opToRemove);\n continue;\n }\n\n if (ir.hasDependsOnSlotContextTrait(updateOp) && updateOp.target !== createOp.xref) {\n break;\n }\n\n updateOp = updateOp.next!;\n }\n }\n }\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as ir from '../../ir';\nimport type {CompilationUnit} from '../compilation';\n\n/**\n * Gets a map of all elements in the given view by their xref id.\n */\nexport function createOpXrefMap(unit: CompilationUnit):\n Map<ir.XrefId, ir.ConsumesSlotOpTrait&ir.CreateOp> {\n const map = new Map<ir.XrefId, ir.ConsumesSlotOpTrait&ir.CreateOp>();\n for (const op of unit.create) {\n if (!ir.hasConsumesSlotTrait(op)) {\n continue;\n }\n map.set(op.xref, op);\n\n // TODO(dylhunn): `@for` loops with `@empty` blocks need to be special-cased here,\n // because the slot consumer trait currently only supports one slot per consumer and we\n // need two. This should be revisited when making the refactors mentioned in:\n // https://github.com/angular/angular/pull/53620#discussion_r1430918822\n if (op.kind === ir.OpKind.RepeaterCreate && op.emptyView !== null) {\n map.set(op.emptyView, op);\n }\n }\n return map;\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n\nimport {SecurityContext} from '../../../../core';\nimport * as ir from '../../ir';\nimport {CompilationJobKind, type CompilationJob, type CompilationUnit} from '../compilation';\nimport {createOpXrefMap} from '../util/elements';\n\n/**\n * Find all extractable attribute and binding ops, and create ExtractedAttributeOps for them.\n * In cases where no instruction needs to be generated for the attribute or binding, it is removed.\n */\nexport function extractAttributes(job: CompilationJob): void {\n for (const unit of job.units) {\n const elements = createOpXrefMap(unit);\n for (const op of unit.ops()) {\n switch (op.kind) {\n case ir.OpKind.Attribute:\n extractAttributeOp(unit, op, elements);\n break;\n case ir.OpKind.Property:\n if (!op.isAnimationTrigger) {\n let bindingKind: ir.BindingKind;\n if (op.i18nMessage !== null && op.templateKind === null) {\n // If the binding has an i18n context, it is an i18n attribute, and should have that\n // kind in the consts array.\n bindingKind = ir.BindingKind.I18n;\n } else if (op.isStructuralTemplateAttribute) {\n bindingKind = ir.BindingKind.Template;\n } else {\n bindingKind = ir.BindingKind.Property;\n }\n\n ir.OpList.insertBefore<ir.CreateOp>(\n // Deliberaly null i18nMessage value\n ir.createExtractedAttributeOp(\n op.target, bindingKind, null, op.name, /* expression */ null,\n /* i18nContext */ null,\n /* i18nMessage */ null, op.securityContext),\n lookupElement(elements, op.target));\n }\n break;\n case ir.OpKind.StyleProp:\n case ir.OpKind.ClassProp:\n // TODO: Can style or class bindings be i18n attributes?\n\n // The old compiler treated empty style bindings as regular bindings for the purpose of\n // directive matching. That behavior is incorrect, but we emulate it in compatibility\n // mode.\n if (unit.job.compatibility === ir.CompatibilityMode.TemplateDefinitionBuilder &&\n op.expression instanceof ir.EmptyExpr) {\n ir.OpList.insertBefore<ir.CreateOp>(\n ir.createExtractedAttributeOp(\n op.target, ir.BindingKind.Property, null, op.name, /* expression */ null,\n /* i18nContext */ null,\n /* i18nMessage */ null, SecurityContext.STYLE),\n lookupElement(elements, op.target));\n }\n break;\n case ir.OpKind.Listener:\n if (!op.isAnimationListener) {\n const extractedAttributeOp = ir.createExtractedAttributeOp(\n op.target, ir.BindingKind.Property, null, op.name, /* expression */ null,\n /* i18nContext */ null,\n /* i18nMessage */ null, SecurityContext.NONE);\n if (job.kind === CompilationJobKind.Host) {\n if (job.compatibility) {\n // TemplateDefinitionBuilder does not extract listener bindings to the const array\n // (which is honestly pretty inconsistent).\n break;\n }\n // This attribute will apply to the enclosing host binding compilation unit, so order\n // doesn't matter.\n unit.create.push(extractedAttributeOp);\n } else {\n ir.OpList.insertBefore<ir.CreateOp>(\n extractedAttributeOp, lookupElement(elements, op.target));\n }\n }\n break;\n }\n }\n }\n}\n\n/**\n * Looks up an element in the given map by xref ID.\n */\nfunction lookupElement(\n elements: Map<ir.XrefId, ir.ConsumesSlotOpTrait&ir.CreateOp>,\n xref: ir.XrefId): ir.ConsumesSlotOpTrait&ir.CreateOp {\n const el = elements.get(xref);\n if (el === undefined) {\n throw new Error('All attributes should have an element-like target.');\n }\n return el;\n}\n\n/**\n * Extracts an attribute binding.\n */\nfunction extractAttributeOp(\n unit: CompilationUnit, op: ir.AttributeOp,\n elements: Map<ir.XrefId, ir.ConsumesSlotOpTrait&ir.CreateOp>) {\n if (op.expression instanceof ir.Interpolation) {\n return;\n }\n\n let extractable = op.isTextAttribute || op.expression.isConstant();\n if (unit.job.compatibility === ir.CompatibilityMode.TemplateDefinitionBuilder) {\n // TemplateDefinitionBuilder only extracts text attributes. It does not extract attriibute\n // bindings, even if they are constants.\n extractable &&= op.isTextAttribute;\n }\n\n if (extractable) {\n const extractedAttributeOp = ir.createExtractedAttributeOp(\n op.target,\n op.isStructuralTemplateAttribute ? ir.BindingKind.Template : ir.BindingKind.Attribute,\n op.namespace, op.name, op.expression, op.i18nContext, op.i18nMessage, op.securityContext);\n if (unit.job.kind === CompilationJobKind.Host) {\n // This attribute will apply to the enclosing host binding compilation unit, so order doesn't\n // matter.\n unit.create.push(extractedAttributeOp);\n } else {\n const ownerOp = lookupElement(elements, op.target);\n ir.OpList.insertBefore<ir.CreateOp>(extractedAttributeOp, ownerOp);\n }\n ir.OpList.remove<ir.UpdateOp>(op);\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {splitNsName} from '../../../../ml_parser/tags';\nimport * as ir from '../../ir';\nimport {CompilationJob, CompilationJobKind} from '../compilation';\n\n/**\n * Looks up an element in the given map by xref ID.\n */\nfunction lookupElement(\n elements: Map<ir.XrefId, ir.ElementOrContainerOps>, xref: ir.XrefId): ir.ElementOrContainerOps {\n const el = elements.get(xref);\n if (el === undefined) {\n throw new Error('All attributes should have an element-like target.');\n }\n return el;\n}\n\nexport function specializeBindings(job: CompilationJob): void {\n const elements = new Map<ir.XrefId, ir.ElementOrContainerOps>();\n for (const unit of job.units) {\n for (const op of unit.create) {\n if (!ir.isElementOrContainerOp(op)) {\n continue;\n }\n elements.set(op.xref, op);\n }\n }\n\n for (const unit of job.units) {\n for (const op of unit.ops()) {\n if (op.kind !== ir.OpKind.Binding) {\n continue;\n }\n switch (op.bindingKind) {\n case ir.BindingKind.Attribute:\n if (op.name === 'ngNonBindable') {\n ir.OpList.remove<ir.UpdateOp>(op);\n const target = lookupElement(elements, op.target);\n target.nonBindable = true;\n } else {\n const [namespace, name] = splitNsName(op.name);\n ir.OpList.replace<ir.UpdateOp>(\n op,\n ir.createAttributeOp(\n op.target, namespace, name, op.expression, op.securityContext,\n op.isTextAttribute, op.isStructuralTemplateAttribute, op.templateKind,\n op.i18nMessage, op.sourceSpan));\n }\n break;\n case ir.BindingKind.Property:\n case ir.BindingKind.Animation:\n if (job.kind === CompilationJobKind.Host) {\n ir.OpList.replace<ir.UpdateOp>(\n op,\n ir.createHostPropertyOp(\n op.name, op.expression, op.bindingKind === ir.BindingKind.Animation,\n op.i18nContext, op.securityContext, op.sourceSpan));\n } else {\n ir.OpList.replace<ir.UpdateOp>(\n op,\n ir.createPropertyOp(\n op.target, op.name, op.expression, op.bindingKind === ir.BindingKind.Animation,\n op.securityContext, op.isStructuralTemplateAttribute, op.templateKind,\n op.i18nContext, op.i18nMessage, op.sourceSpan));\n }\n\n break;\n case ir.BindingKind.I18n:\n case ir.BindingKind.ClassName:\n case ir.BindingKind.StyleProperty:\n throw new Error(`Unhandled binding of kind ${ir.BindingKind[op.bindingKind]}`);\n }\n }\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as o from '../../../../output/output_ast';\nimport {Identifiers as R3} from '../../../../render3/r3_identifiers';\nimport * as ir from '../../ir';\nimport {CompilationJob} from '../compilation';\n\nconst CHAINABLE = new Set([\n R3.attribute,\n R3.classProp,\n R3.element,\n R3.elementContainer,\n R3.elementContainerEnd,\n R3.elementContainerStart,\n R3.elementEnd,\n R3.elementStart,\n R3.hostProperty,\n R3.i18nExp,\n R3.listener,\n R3.listener,\n R3.property,\n R3.styleProp,\n R3.stylePropInterpolate1,\n R3.stylePropInterpolate2,\n R3.stylePropInterpolate3,\n R3.stylePropInterpolate4,\n R3.stylePropInterpolate5,\n R3.stylePropInterpolate6,\n R3.stylePropInterpolate7,\n R3.stylePropInterpolate8,\n R3.stylePropInterpolateV,\n R3.syntheticHostListener,\n R3.syntheticHostProperty,\n R3.templateCreate,\n]);\n\n/**\n * Post-process a reified view compilation and convert sequential calls to chainable instructions\n * into chain calls.\n *\n * For example, two `elementStart` operations in sequence:\n *\n * ```typescript\n * elementStart(0, 'div');\n * elementStart(1, 'span');\n * ```\n *\n * Can be called as a chain instead:\n *\n * ```typescript\n * elementStart(0, 'div')(1, 'span');\n * ```\n */\nexport function chain(job: CompilationJob): void {\n for (const unit of job.units) {\n chainOperationsInList(unit.create);\n chainOperationsInList(unit.update);\n }\n}\n\nfunction chainOperationsInList(opList: ir.OpList<ir.CreateOp|ir.UpdateOp>): void {\n let chain: Chain|null = null;\n for (const op of opList) {\n if (op.kind !== ir.OpKind.Statement || !(op.statement instanceof o.ExpressionStatement)) {\n // This type of statement isn't chainable.\n chain = null;\n continue;\n }\n if (!(op.statement.expr instanceof o.InvokeFunctionExpr) ||\n !(op.statement.expr.fn instanceof o.ExternalExpr)) {\n // This is a statement, but not an instruction-type call, so not chainable.\n chain = null;\n continue;\n }\n\n const instruction = op.statement.expr.fn.value;\n if (!CHAINABLE.has(instruction)) {\n // This instruction isn't chainable.\n chain = null;\n continue;\n }\n\n // This instruction can be chained. It can either be added on to the previous chain (if\n // compatible) or it can be the start of a new chain.\n if (chain !== null && chain.instruction === instruction) {\n // This instruction can be added onto the previous chain.\n const expression = chain.expression.callFn(\n op.statement.expr.args, op.statement.expr.sourceSpan, op.statement.expr.pure);\n chain.expression = expression;\n chain.op.statement = expression.toStmt();\n ir.OpList.remove(op as ir.Op<ir.CreateOp|ir.UpdateOp>);\n } else {\n // Leave this instruction alone for now, but consider it the start of a new chain.\n chain = {\n op,\n instruction,\n expression: op.statement.expr,\n };\n }\n }\n}\n\n/**\n * Structure representing an in-progress chain.\n */\ninterface Chain {\n /**\n * The statement which holds the entire chain.\n */\n op: ir.StatementOp<ir.CreateOp|ir.UpdateOp>;\n\n /**\n * The expression representing the whole current chained call.\n *\n * This should be the same as `op.statement.expression`, but is extracted here for convenience\n * since the `op` type doesn't capture the fact that `op.statement` is an `o.ExpressionStatement`.\n */\n expression: o.Expression;\n\n /**\n * The instruction that is being chained.\n */\n instruction: o.ExternalReference;\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as ir from '../../ir';\nimport {CompilationJob} from '../compilation';\n\n/**\n * Attribute interpolations of the form `[attr.foo]=\"{{foo}}\"\"` should be \"collapsed\" into a plain\n * attribute instruction, instead of an `attributeInterpolate` instruction.\n *\n * (We cannot do this for singleton property interpolations, because `propertyInterpolate`\n * stringifies its expression.)\n *\n * The reification step is also capable of performing this transformation, but doing it early in the\n * pipeline allows other phases to accurately know what instruction will be emitted.\n */\nexport function collapseSingletonInterpolations(job: CompilationJob): void {\n for (const unit of job.units) {\n for (const op of unit.update) {\n const eligibleOpKind = op.kind === ir.OpKind.Attribute;\n if (eligibleOpKind && op.expression instanceof ir.Interpolation &&\n op.expression.strings.length === 2 &&\n op.expression.strings.every((s: string) => s === '')) {\n op.expression = op.expression.expressions[0];\n }\n }\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as o from '../../../../output/output_ast';\nimport * as ir from '../../ir';\nimport {ComponentCompilationJob} from '../compilation';\n\n/**\n * Collapse the various conditions of conditional ops (if, switch) into a single test expression.\n */\nexport function generateConditionalExpressions(job: ComponentCompilationJob): void {\n for (const unit of job.units) {\n for (const op of unit.ops()) {\n if (op.kind !== ir.OpKind.Conditional) {\n continue;\n }\n\n let test: o.Expression;\n\n // Any case with a `null` condition is `default`. If one exists, default to it instead.\n const defaultCase = op.conditions.findIndex((cond) => cond.expr === null);\n if (defaultCase >= 0) {\n const slot = op.conditions.splice(defaultCase, 1)[0].targetSlot;\n test = new ir.SlotLiteralExpr(slot);\n } else {\n // By default, a switch evaluates to `-1`, causing no template to be displayed.\n test = o.literal(-1);\n }\n\n // Switch expressions assign their main test to a temporary, to avoid re-executing it.\n let tmp = op.test == null ? null : new ir.AssignTemporaryExpr(op.test, job.allocateXrefId());\n\n // For each remaining condition, test whether the temporary satifies the check. (If no temp is\n // present, just check each expression directly.)\n for (let i = op.conditions.length - 1; i >= 0; i--) {\n let conditionalCase = op.conditions[i];\n if (conditionalCase.expr === null) {\n continue;\n }\n if (tmp !== null) {\n const useTmp = i === 0 ? tmp : new ir.ReadTemporaryExpr(tmp.xref);\n conditionalCase.expr =\n new o.BinaryOperatorExpr(o.BinaryOperator.Identical, useTmp, conditionalCase.expr);\n } else if (conditionalCase.alias !== null) {\n const caseExpressionTemporaryXref = job.allocateXrefId();\n conditionalCase.expr =\n new ir.AssignTemporaryExpr(conditionalCase.expr, caseExpressionTemporaryXref);\n op.contextValue = new ir.ReadTemporaryExpr(caseExpressionTemporaryXref);\n }\n test = new o.ConditionalExpr(\n conditionalCase.expr, new ir.SlotLiteralExpr(conditionalCase.targetSlot), test);\n }\n\n // Save the resulting aggregate Joost-expression.\n op.processed = test;\n\n // Clear the original conditions array, since we no longer need it, and don't want it to\n // affect subsequent phases (e.g. pipe creation).\n op.conditions = [];\n }\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as o from '../../../output/output_ast';\nimport * as ir from '../ir';\n\nexport const BINARY_OPERATORS = new Map([\n ['&&', o.BinaryOperator.And],\n ['>', o.BinaryOperator.Bigger],\n ['>=', o.BinaryOperator.BiggerEquals],\n ['|', o.BinaryOperator.BitwiseOr],\n ['&', o.BinaryOperator.BitwiseAnd],\n ['/', o.BinaryOperator.Divide],\n ['==', o.BinaryOperator.Equals],\n ['===', o.BinaryOperator.Identical],\n ['<', o.BinaryOperator.Lower],\n ['<=', o.BinaryOperator.LowerEquals],\n ['-', o.BinaryOperator.Minus],\n ['%', o.BinaryOperator.Modulo],\n ['*', o.BinaryOperator.Multiply],\n ['!=', o.BinaryOperator.NotEquals],\n ['!==', o.BinaryOperator.NotIdentical],\n ['??', o.BinaryOperator.NullishCoalesce],\n ['||', o.BinaryOperator.Or],\n ['+', o.BinaryOperator.Plus],\n]);\n\nexport function namespaceForKey(namespacePrefixKey: string|null): ir.Namespace {\n const NAMESPACES = new Map([['svg', ir.Namespace.SVG], ['math', ir.Namespace.Math]]);\n if (namespacePrefixKey === null) {\n return ir.Namespace.HTML;\n }\n return NAMESPACES.get(namespacePrefixKey) ?? ir.Namespace.HTML;\n}\n\nexport function keyForNamespace(namespace: ir.Namespace): string|null {\n const NAMESPACES = new Map([['svg', ir.Namespace.SVG], ['math', ir.Namespace.Math]]);\n for (const [k, n] of NAMESPACES.entries()) {\n if (n === namespace) {\n return k;\n }\n }\n return null; // No namespace prefix for HTML\n}\n\nexport function prefixWithNamespace(strippedTag: string, namespace: ir.Namespace): string {\n if (namespace === ir.Namespace.HTML) {\n return strippedTag;\n }\n return `:${keyForNamespace(namespace)}:${strippedTag}`;\n}\n\nexport type LiteralType = string|number|boolean|null|Array<LiteralType>;\n\nexport function literalOrArrayLiteral(value: LiteralType): o.Expression {\n if (Array.isArray(value)) {\n return o.literalArr(value.map(literalOrArrayLiteral));\n }\n return o.literal(value);\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n\nimport * as core from '../../../../core';\nimport * as o from '../../../../output/output_ast';\nimport * as ir from '../../ir';\n\nimport {ComponentCompilationJob, HostBindingCompilationJob, type CompilationJob} from '../compilation';\nimport {literalOrArrayLiteral} from '../conversion';\n\n/**\n * Converts the semantic attributes of element-like operations (elements, templates) into constant\n * array expressions, and lifts them into the overall component `consts`.\n */\nexport function collectElementConsts(job: CompilationJob): void {\n // Collect all extracted attributes.\n const allElementAttributes = new Map<ir.XrefId, ElementAttributes>();\n for (const unit of job.units) {\n for (const op of unit.create) {\n if (op.kind === ir.OpKind.ExtractedAttribute) {\n const attributes =\n allElementAttributes.get(op.target) || new ElementAttributes(job.compatibility);\n allElementAttributes.set(op.target, attributes);\n attributes.add(op.bindingKind, op.name, op.expression, op.namespace, op.trustedValueFn);\n ir.OpList.remove<ir.CreateOp>(op);\n }\n }\n }\n\n // Serialize the extracted attributes into the const array.\n if (job instanceof ComponentCompilationJob) {\n for (const unit of job.units) {\n for (const op of unit.create) {\n // TODO: Simplify and combine these cases.\n if (op.kind == ir.OpKind.Projection) {\n const attributes = allElementAttributes.get(op.xref);\n if (attributes !== undefined) {\n const attrArray = serializeAttributes(attributes);\n if (attrArray.entries.length > 0) {\n op.attributes = attrArray;\n }\n }\n } else if (ir.isElementOrContainerOp(op)) {\n op.attributes = getConstIndex(job, allElementAttributes, op.xref);\n\n // TODO(dylhunn): `@for` loops with `@empty` blocks need to be special-cased here,\n // because the slot consumer trait currently only supports one slot per consumer and we\n // need two. This should be revisited when making the refactors mentioned in:\n // https://github.com/angular/angular/pull/53620#discussion_r1430918822\n if (op.kind === ir.OpKind.RepeaterCreate && op.emptyView !== null) {\n op.emptyAttributes = getConstIndex(job, allElementAttributes, op.emptyView);\n }\n }\n }\n }\n } else if (job instanceof HostBindingCompilationJob) {\n // TODO: If the host binding case further diverges, we may want to split it into its own\n // phase.\n for (const [xref, attributes] of allElementAttributes.entries()) {\n if (xref !== job.root.xref) {\n throw new Error(\n `An attribute would be const collected into the host binding's template function, but is not associated with the root xref.`);\n }\n const attrArray = serializeAttributes(attributes);\n if (attrArray.entries.length > 0) {\n job.root.attributes = attrArray;\n }\n }\n }\n}\n\nfunction getConstIndex(\n job: ComponentCompilationJob, allElementAttributes: Map<ir.XrefId, ElementAttributes>,\n xref: ir.XrefId): ir.ConstIndex|null {\n const attributes = allElementAttributes.get(xref);\n if (attributes !== undefined) {\n const attrArray = serializeAttributes(attributes);\n if (attrArray.entries.length > 0) {\n return job.addConst(attrArray);\n }\n }\n return null;\n}\n\n/**\n * Shared instance of an empty array to avoid unnecessary array allocations.\n */\nconst FLYWEIGHT_ARRAY: ReadonlyArray<o.Expression> = Object.freeze<o.Expression[]>([]);\n\n/**\n * Container for all of the various kinds of attributes which are applied on an element.\n */\nclass ElementAttributes {\n private known = new Map<ir.BindingKind, Set<string>>();\n private byKind = new Map<ir.BindingKind, o.Expression[]>;\n\n projectAs: string|null = null;\n\n get attributes(): ReadonlyArray<o.Expression> {\n return this.byKind.get(ir.BindingKind.Attribute) ?? FLYWEIGHT_ARRAY;\n }\n\n get classes(): ReadonlyArray<o.Expression> {\n return this.byKind.get(ir.BindingKind.ClassName) ?? FLYWEIGHT_ARRAY;\n }\n\n get styles(): ReadonlyArray<o.Expression> {\n return this.byKind.get(ir.BindingKind.StyleProperty) ?? FLYWEIGHT_ARRAY;\n }\n\n get bindings(): ReadonlyArray<o.Expression> {\n return this.byKind.get(ir.BindingKind.Property) ?? FLYWEIGHT_ARRAY;\n }\n\n get template(): ReadonlyArray<o.Expression> {\n return this.byKind.get(ir.BindingKind.Template) ?? FLYWEIGHT_ARRAY;\n }\n\n get i18n(): ReadonlyArray<o.Expression> {\n return this.byKind.get(ir.BindingKind.I18n) ?? FLYWEIGHT_ARRAY;\n }\n\n constructor(private compatibility: ir.CompatibilityMode) {}\n\n isKnown(kind: ir.BindingKind, name: string, value: o.Expression|null) {\n const nameToValue = this.known.get(kind) ?? new Set<string>();\n this.known.set(kind, nameToValue);\n if (nameToValue.has(name)) {\n return true;\n }\n nameToValue.add(name);\n return false;\n }\n\n add(kind: ir.BindingKind, name: string, value: o.Expression|null, namespace: string|null,\n trustedValueFn: o.Expression|null): void {\n // TemplateDefinitionBuilder puts duplicate attribute, class, and style values into the consts\n // array. This seems inefficient, we can probably keep just the first one or the last value\n // (whichever actually gets applied when multiple values are listed for the same attribute).\n const allowDuplicates = this.compatibility === ir.CompatibilityMode.TemplateDefinitionBuilder &&\n (kind === ir.BindingKind.Attribute || kind === ir.BindingKind.ClassName ||\n kind === ir.BindingKind.StyleProperty);\n if (!allowDuplicates && this.isKnown(kind, name, value)) {\n return;\n }\n\n // TODO: Can this be its own phase\n if (name === 'ngProjectAs') {\n if (value === null || !(value instanceof o.LiteralExpr) || (value.value == null) ||\n (typeof value.value?.toString() !== 'string')) {\n throw Error('ngProjectAs must have a string literal value');\n }\n this.projectAs = value.value.toString();\n // TODO: TemplateDefinitionBuilder allows `ngProjectAs` to also be assigned as a literal\n // attribute. Is this sane?\n }\n\n\n const array = this.arrayFor(kind);\n array.push(...getAttributeNameLiterals(namespace, name));\n if (kind === ir.BindingKind.Attribute || kind === ir.BindingKind.StyleProperty) {\n if (value === null) {\n throw Error('Attribute, i18n attribute, & style element attributes must have a value');\n }\n if (trustedValueFn !== null) {\n if (!ir.isStringLiteral(value)) {\n throw Error('AssertionError: extracted attribute value should be string literal');\n }\n array.push(o.taggedTemplate(\n trustedValueFn, new o.TemplateLiteral([new o.TemplateLiteralElement(value.value)], []),\n undefined, value.sourceSpan));\n } else {\n array.push(value);\n }\n }\n }\n\n private arrayFor(kind: ir.BindingKind): o.Expression[] {\n if (!this.byKind.has(kind)) {\n this.byKind.set(kind, []);\n }\n return this.byKind.get(kind)!;\n }\n}\n\n/**\n * Gets an array of literal expressions representing the attribute's namespaced name.\n */\nfunction getAttributeNameLiterals(namespace: string|null, name: string): o.LiteralExpr[] {\n const nameLiteral = o.literal(name);\n\n if (namespace) {\n return [o.literal(core.AttributeMarker.NamespaceURI), o.literal(namespace), nameLiteral];\n }\n\n return [nameLiteral];\n}\n\n/**\n * Serializes an ElementAttributes object into an array expression.\n */\nfunction serializeAttributes({attributes, bindings, classes, i18n, projectAs, styles, template}:\n ElementAttributes): o.LiteralArrayExpr {\n const attrArray = [...attributes];\n\n if (projectAs !== null) {\n // Parse the attribute value into a CssSelectorList. Note that we only take the\n // first selector, because we don't support multiple selectors in ngProjectAs.\n const parsedR3Selector = core.parseSelectorToR3Selector(projectAs)[0];\n attrArray.push(\n o.literal(core.AttributeMarker.ProjectAs), literalOrArrayLiteral(parsedR3Selector));\n }\n if (classes.length > 0) {\n attrArray.push(o.literal(core.AttributeMarker.Classes), ...classes);\n }\n if (styles.length > 0) {\n attrArray.push(o.literal(core.AttributeMarker.Styles), ...styles);\n }\n if (bindings.length > 0) {\n attrArray.push(o.literal(core.AttributeMarker.Bindings), ...bindings);\n }\n if (template.length > 0) {\n attrArray.push(o.literal(core.AttributeMarker.Template), ...template);\n }\n if (i18n.length > 0) {\n attrArray.push(o.literal(core.AttributeMarker.I18n), ...i18n);\n }\n return o.literalArr(attrArray);\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as ir from '../../ir';\nimport {CompilationJob} from '../compilation';\n\n/**\n * Some binding instructions in the update block may actually correspond to i18n bindings. In that\n * case, they should be replaced with i18nExp instructions for the dynamic portions.\n */\nexport function convertI18nBindings(job: CompilationJob): void {\n const i18nAttributesByElem: Map<ir.XrefId, ir.I18nAttributesOp> = new Map();\n for (const unit of job.units) {\n for (const op of unit.create) {\n if (op.kind === ir.OpKind.I18nAttributes) {\n i18nAttributesByElem.set(op.target, op);\n }\n }\n\n for (const op of unit.update) {\n switch (op.kind) {\n case ir.OpKind.Property:\n case ir.OpKind.Attribute:\n if (op.i18nContext === null) {\n continue;\n }\n\n if (!(op.expression instanceof ir.Interpolation)) {\n continue;\n }\n\n const i18nAttributesForElem = i18nAttributesByElem.get(op.target);\n if (i18nAttributesForElem === undefined) {\n throw new Error(\n 'AssertionError: An i18n attribute binding instruction requires the owning element to have an I18nAttributes create instruction');\n }\n\n if (i18nAttributesForElem.target !== op.target) {\n throw new Error(\n 'AssertionError: Expected i18nAttributes target element to match binding target element');\n }\n\n const ops: ir.UpdateOp[] = [];\n for (let i = 0; i < op.expression.expressions.length; i++) {\n const expr = op.expression.expressions[i];\n\n if (op.expression.i18nPlaceholders.length !== op.expression.expressions.length) {\n throw new Error(\n `AssertionError: An i18n attribute binding instruction requires the same number of expressions and placeholders, but found ${\n op.expression.i18nPlaceholders.length} placeholders and ${\n op.expression.expressions.length} expressions`);\n }\n\n ops.push(ir.createI18nExpressionOp(\n op.i18nContext, i18nAttributesForElem.target, i18nAttributesForElem.xref,\n i18nAttributesForElem.handle, expr, null, op.expression.i18nPlaceholders[i],\n ir.I18nParamResolutionTime.Creation, ir.I18nExpressionFor.I18nAttribute, op.name,\n op.sourceSpan));\n }\n ir.OpList.replaceWithMany(op as ir.UpdateOp, ops);\n break;\n }\n }\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as o from '../../../../output/output_ast';\nimport * as ir from '../../ir';\nimport {ComponentCompilationJob} from '../compilation';\n\n/**\n * Create extracted deps functions for defer ops.\n */\nexport function createDeferDepsFns(job: ComponentCompilationJob): void {\n for (const unit of job.units) {\n for (const op of unit.create) {\n if (op.kind === ir.OpKind.Defer) {\n if (op.metadata.deps.length === 0) {\n continue;\n }\n if (op.resolverFn !== null) {\n continue;\n }\n const dependencies: o.Expression[] = [];\n for (const dep of op.metadata.deps) {\n if (dep.isDeferrable) {\n // Callback function, e.g. `m () => m.MyCmp;`.\n const innerFn = o.arrowFn(\n // Default imports are always accessed through the `default` property.\n [new o.FnParam('m', o.DYNAMIC_TYPE)],\n o.variable('m').prop(dep.isDefaultImport ? 'default' : dep.symbolName));\n\n // Dynamic import, e.g. `import('./a').then(...)`.\n const importExpr =\n (new o.DynamicImportExpr(dep.importPath!)).prop('then').callFn([innerFn]);\n dependencies.push(importExpr);\n } else {\n // Non-deferrable symbol, just use a reference to the type.\n dependencies.push(dep.type);\n }\n }\n const depsFnExpr = o.arrowFn([], o.literalArr(dependencies));\n if (op.handle.slot === null) {\n throw new Error(\n 'AssertionError: slot must be assigned bfore extracting defer deps functions');\n }\n const fullPathName = unit.fnName?.replace(`_Template`, ``);\n op.resolverFn = job.pool.getSharedFunctionReference(\n depsFnExpr, `${fullPathName}_Defer_${op.handle.slot}_DepsFn`,\n /* Don't use unique names for TDB compatibility */ false);\n }\n }\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as i18n from '../../../../i18n/i18n_ast';\nimport * as ir from '../../ir';\nimport {CompilationJob} from '../compilation';\n\n/**\n * Create one helper context op per i18n block (including generate descending blocks).\n *\n * Also, if an ICU exists inside an i18n block that also contains other localizable content (such as\n * string), create an additional helper context op for the ICU.\n *\n * These context ops are later used for generating i18n messages. (Although we generate at least one\n * context op per nested view, we will collect them up the tree later, to generate a top-level\n * message.)\n */\nexport function createI18nContexts(job: CompilationJob) {\n // Create i18n context ops for i18n attrs.\n const attrContextByMessage = new Map<i18n.Message, ir.XrefId>();\n for (const unit of job.units) {\n for (const op of unit.ops()) {\n switch (op.kind) {\n case ir.OpKind.Binding:\n case ir.OpKind.Property:\n case ir.OpKind.Attribute:\n case ir.OpKind.ExtractedAttribute:\n if (op.i18nMessage === null) {\n continue;\n }\n if (!attrContextByMessage.has(op.i18nMessage)) {\n const i18nContext = ir.createI18nContextOp(\n ir.I18nContextKind.Attr, job.allocateXrefId(), null, op.i18nMessage, null!);\n unit.create.push(i18nContext);\n attrContextByMessage.set(op.i18nMessage, i18nContext.xref);\n }\n op.i18nContext = attrContextByMessage.get(op.i18nMessage)!;\n break;\n }\n }\n }\n\n // Create i18n context ops for root i18n blocks.\n const blockContextByI18nBlock = new Map<ir.XrefId, ir.I18nContextOp>();\n for (const unit of job.units) {\n for (const op of unit.create) {\n switch (op.kind) {\n case ir.OpKind.I18nStart:\n if (op.xref === op.root) {\n const contextOp = ir.createI18nContextOp(\n ir.I18nContextKind.RootI18n, job.allocateXrefId(), op.xref, op.message, null!);\n unit.create.push(contextOp);\n op.context = contextOp.xref;\n blockContextByI18nBlock.set(op.xref, contextOp);\n }\n break;\n }\n }\n }\n\n // Assign i18n contexts for child i18n blocks. These don't need their own conext, instead they\n // should inherit from their root i18n block.\n for (const unit of job.units) {\n for (const op of unit.create) {\n if (op.kind === ir.OpKind.I18nStart && op.xref !== op.root) {\n const rootContext = blockContextByI18nBlock.get(op.root);\n if (rootContext === undefined) {\n throw Error('AssertionError: Root i18n block i18n context should have been created.');\n }\n op.context = rootContext.xref;\n blockContextByI18nBlock.set(op.xref, rootContext);\n }\n }\n }\n\n // Create or assign i18n contexts for ICUs.\n let currentI18nOp: ir.I18nStartOp|null = null;\n for (const unit of job.units) {\n for (const op of unit.create) {\n switch (op.kind) {\n case ir.OpKind.I18nStart:\n currentI18nOp = op;\n break;\n case ir.OpKind.I18nEnd:\n currentI18nOp = null;\n break;\n case ir.OpKind.IcuStart:\n if (currentI18nOp === null) {\n throw Error('AssertionError: Unexpected ICU outside of an i18n block.');\n }\n if (op.message.id !== currentI18nOp.message.id) {\n // This ICU is a sub-message inside its parent i18n block message. We need to give it\n // its own context.\n const contextOp = ir.createI18nContextOp(\n ir.I18nContextKind.Icu, job.allocateXrefId(), currentI18nOp.root, op.message, null!\n );\n unit.create.push(contextOp);\n op.context = contextOp.xref;\n } else {\n // This ICU is the only translatable content in its parent i18n block. We need to\n // convert the parent's context into an ICU context.\n op.context = currentI18nOp.context;\n blockContextByI18nBlock.get(currentI18nOp.xref)!.contextKind = ir.I18nContextKind.Icu;\n }\n break;\n }\n }\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as ir from '../../ir';\nimport type {CompilationJob} from '../compilation';\n\n/**\n * Deduplicate text bindings, e.g. <div class=\"cls1\" class=\"cls2\">\n */\nexport function deduplicateTextBindings(job: CompilationJob): void {\n const seen = new Map<ir.XrefId, Set<string>>();\n for (const unit of job.units) {\n for (const op of unit.update.reversed()) {\n if (op.kind === ir.OpKind.Binding && op.isTextAttribute) {\n const seenForElement = seen.get(op.target) || new Set();\n if (seenForElement.has(op.name)) {\n if (job.compatibility === ir.CompatibilityMode.TemplateDefinitionBuilder) {\n // For most duplicated attributes, TemplateDefinitionBuilder lists all of the values in\n // the consts array. However, for style and class attributes it only keeps the last one.\n // We replicate that behavior here since it has actual consequences for apps with\n // duplicate class or style attrs.\n if (op.name === 'style' || op.name === 'class') {\n ir.OpList.remove<ir.UpdateOp>(op);\n }\n } else {\n // TODO: Determine the correct behavior. It would probably make sense to merge multiple\n // style and class attributes. Alternatively we could just throw an error, as HTML\n // doesn't permit duplicate attributes.\n }\n }\n seenForElement.add(op.name);\n seen.set(op.target, seenForElement);\n }\n }\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as ir from '../../ir';\nimport type {ComponentCompilationJob} from '../compilation';\nimport {literalOrArrayLiteral} from '../conversion';\n\n/**\n * Defer instructions take a configuration array, which should be collected into the component\n * consts. This phase finds the config options, and creates the corresponding const array.\n */\nexport function configureDeferInstructions(job: ComponentCompilationJob): void {\n for (const unit of job.units) {\n for (const op of unit.create) {\n if (op.kind !== ir.OpKind.Defer) {\n continue;\n }\n\n if (op.placeholderMinimumTime !== null) {\n op.placeholderConfig =\n new ir.ConstCollectedExpr(literalOrArrayLiteral([op.placeholderMinimumTime]));\n }\n if (op.loadingMinimumTime !== null || op.loadingAfterTime !== null) {\n op.loadingConfig = new ir.ConstCollectedExpr(\n literalOrArrayLiteral([op.loadingMinimumTime, op.loadingAfterTime]));\n }\n }\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as ir from '../../ir';\nimport type {ComponentCompilationJob, ViewCompilationUnit} from '../compilation';\n\n/**\n * Some `defer` conditions can reference other elements in the template, using their local reference\n * names. However, the semantics are quite different from the normal local reference system: in\n * particular, we need to look at local reference names in enclosing views. This phase resolves\n * all such references to actual xrefs.\n */\nexport function resolveDeferTargetNames(job: ComponentCompilationJob): void {\n const scopes = new Map<ir.XrefId, Scope>();\n\n function getScopeForView(view: ViewCompilationUnit): Scope {\n if (scopes.has(view.xref)) {\n return scopes.get(view.xref)!;\n }\n\n const scope = new Scope();\n for (const op of view.create) {\n // add everything that can be referenced.\n if (!ir.isElementOrContainerOp(op) || op.localRefs === null) {\n continue;\n }\n if (!Array.isArray(op.localRefs)) {\n throw new Error(\n 'LocalRefs were already processed, but were needed to resolve defer targets.');\n }\n\n for (const ref of op.localRefs) {\n if (ref.target !== '') {\n continue;\n }\n scope.targets.set(ref.name, {xref: op.xref, slot: op.handle});\n }\n }\n\n scopes.set(view.xref, scope);\n return scope;\n }\n\n function resolveTrigger(\n deferOwnerView: ViewCompilationUnit, op: ir.DeferOnOp,\n placeholderView: ir.XrefId|null): void {\n switch (op.trigger.kind) {\n case ir.DeferTriggerKind.Idle:\n case ir.DeferTriggerKind.Immediate:\n case ir.DeferTriggerKind.Timer:\n return;\n case ir.DeferTriggerKind.Hover:\n case ir.DeferTriggerKind.Interaction:\n case ir.DeferTriggerKind.Viewport:\n if (op.trigger.targetName === null) {\n // A `null` target name indicates we should default to the first element in the\n // placeholder block.\n if (placeholderView === null) {\n throw new Error('defer on trigger with no target name must have a placeholder block');\n }\n const placeholder = job.views.get(placeholderView);\n if (placeholder == undefined) {\n throw new Error('AssertionError: could not find placeholder view for defer on trigger');\n }\n for (const placeholderOp of placeholder.create) {\n if (ir.hasConsumesSlotTrait(placeholderOp) &&\n (ir.isElementOrContainerOp(placeholderOp) ||\n placeholderOp.kind === ir.OpKind.Projection)) {\n op.trigger.targetXref = placeholderOp.xref;\n op.trigger.targetView = placeholderView;\n op.trigger.targetSlotViewSteps = -1;\n op.trigger.targetSlot = placeholderOp.handle;\n return;\n }\n }\n return;\n }\n let view: ViewCompilationUnit|null =\n placeholderView !== null ? job.views.get(placeholderView)! : deferOwnerView;\n let step = placeholderView !== null ? -1 : 0;\n\n while (view !== null) {\n const scope = getScopeForView(view);\n if (scope.targets.has(op.trigger.targetName)) {\n const {xref, slot} = scope.targets.get(op.trigger.targetName)!;\n\n op.trigger.targetXref = xref;\n op.trigger.targetView = view.xref;\n op.trigger.targetSlotViewSteps = step;\n op.trigger.targetSlot = slot;\n return;\n }\n\n view = view.parent !== null ? job.views.get(view.parent)! : null;\n step++;\n }\n break;\n default:\n throw new Error(`Trigger kind ${(op.trigger as any).kind} not handled`);\n }\n }\n\n // Find the defer ops, and assign the data about their targets.\n for (const unit of job.units) {\n const defers = new Map<ir.XrefId, ir.DeferOp>();\n for (const op of unit.create) {\n switch (op.kind) {\n case ir.OpKind.Defer:\n defers.set(op.xref, op);\n break;\n case ir.OpKind.DeferOn:\n const deferOp = defers.get(op.defer)!;\n resolveTrigger(unit, op, deferOp.placeholderView);\n break;\n }\n }\n }\n}\n\nclass Scope {\n targets = new Map<string, {xref: ir.XrefId, slot: ir.SlotHandle}>();\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as ir from '../../ir';\nimport type {CompilationJob} from '../compilation';\n\nconst REPLACEMENTS = new Map<ir.OpKind, [ir.OpKind, ir.OpKind]>([\n [ir.OpKind.ElementEnd, [ir.OpKind.ElementStart, ir.OpKind.Element]],\n [ir.OpKind.ContainerEnd, [ir.OpKind.ContainerStart, ir.OpKind.Container]],\n [ir.OpKind.I18nEnd, [ir.OpKind.I18nStart, ir.OpKind.I18n]],\n]);\n\n/**\n * Op kinds that should not prevent merging of start/end ops.\n */\nconst IGNORED_OP_KINDS = new Set([ir.OpKind.Pipe]);\n\n/**\n * Replace sequences of mergable instructions (e.g. `ElementStart` and `ElementEnd`) with a\n * consolidated instruction (e.g. `Element`).\n */\nexport function collapseEmptyInstructions(job: CompilationJob): void {\n for (const unit of job.units) {\n for (const op of unit.create) {\n // Find end ops that may be able to be merged.\n const opReplacements = REPLACEMENTS.get(op.kind);\n if (opReplacements === undefined) {\n continue;\n }\n const [startKind, mergedKind] = opReplacements;\n\n // Locate the previous (non-ignored) op.\n let prevOp: ir.CreateOp|null = op.prev;\n while (prevOp !== null && IGNORED_OP_KINDS.has(prevOp.kind)) {\n prevOp = prevOp.prev;\n }\n\n // If the previous op is the corresponding start op, we can megre.\n if (prevOp !== null && prevOp.kind === startKind) {\n // Transmute the start instruction to the merged version. This is safe as they're designed\n // to be identical apart from the `kind`.\n (prevOp as ir.Op<ir.CreateOp>).kind = mergedKind;\n\n // Remove the end instruction.\n ir.OpList.remove<ir.CreateOp>(op);\n }\n }\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as o from '../../../../output/output_ast';\nimport * as ir from '../../ir';\nimport {CompilationJob} from '../compilation';\n\ninterface SafeTransformContext {\n job: CompilationJob;\n}\n\n/**\n * Safe read expressions such as `a?.b` have different semantics in Angular templates as\n * compared to JavaScript. In particular, they default to `null` instead of `undefined`. This phase\n * finds all unresolved safe read expressions, and converts them into the appropriate output AST\n * reads, guarded by null checks. We generate temporaries as needed, to avoid re-evaluating the same\n * sub-expression multiple times.\n */\nexport function expandSafeReads(job: CompilationJob): void {\n for (const unit of job.units) {\n for (const op of unit.ops()) {\n ir.transformExpressionsInOp(op, e => safeTransform(e, {job}), ir.VisitorContextFlag.None);\n ir.transformExpressionsInOp(op, ternaryTransform, ir.VisitorContextFlag.None);\n }\n }\n}\n\n// A lookup set of all the expression kinds that require a temporary variable to be generated.\nconst requiresTemporary = [\n o.InvokeFunctionExpr, o.LiteralArrayExpr, o.LiteralMapExpr, ir.SafeInvokeFunctionExpr,\n ir.PipeBindingExpr\n].map(e => e.constructor.name);\n\nfunction needsTemporaryInSafeAccess(e: o.Expression): boolean {\n // TODO: We probably want to use an expression visitor to recursively visit all descendents.\n // However, that would potentially do a lot of extra work (because it cannot short circuit), so we\n // implement the logic ourselves for now.\n if (e instanceof o.UnaryOperatorExpr) {\n return needsTemporaryInSafeAccess(e.expr);\n } else if (e instanceof o.BinaryOperatorExpr) {\n return needsTemporaryInSafeAccess(e.lhs) || needsTemporaryInSafeAccess(e.rhs);\n } else if (e instanceof o.ConditionalExpr) {\n if (e.falseCase && needsTemporaryInSafeAccess(e.falseCase)) return true;\n return needsTemporaryInSafeAccess(e.condition) || needsTemporaryInSafeAccess(e.trueCase);\n } else if (e instanceof o.NotExpr) {\n return needsTemporaryInSafeAccess(e.condition);\n } else if (e instanceof ir.AssignTemporaryExpr) {\n return needsTemporaryInSafeAccess(e.expr);\n } else if (e instanceof o.ReadPropExpr) {\n return needsTemporaryInSafeAccess(e.receiver);\n } else if (e instanceof o.ReadKeyExpr) {\n return needsTemporaryInSafeAccess(e.receiver) || needsTemporaryInSafeAccess(e.index);\n }\n // TODO: Switch to a method which is exhaustive of newly added expression subtypes.\n return e instanceof o.InvokeFunctionExpr || e instanceof o.LiteralArrayExpr ||\n e instanceof o.LiteralMapExpr || e instanceof ir.SafeInvokeFunctionExpr ||\n e instanceof ir.PipeBindingExpr;\n}\n\nfunction temporariesIn(e: o.Expression): Set<ir.XrefId> {\n const temporaries = new Set<ir.XrefId>();\n // TODO: Although it's not currently supported by the transform helper, we should be able to\n // short-circuit exploring the tree to do less work. In particular, we don't have to penetrate\n // into the subexpressions of temporary assignments.\n ir.transformExpressionsInExpression(e, e => {\n if (e instanceof ir.AssignTemporaryExpr) {\n temporaries.add(e.xref);\n }\n return e;\n }, ir.VisitorContextFlag.None);\n return temporaries;\n}\n\nfunction eliminateTemporaryAssignments(\n e: o.Expression, tmps: Set<ir.XrefId>, ctx: SafeTransformContext): o.Expression {\n // TODO: We can be more efficient than the transform helper here. We don't need to visit any\n // descendents of temporary assignments.\n ir.transformExpressionsInExpression(e, e => {\n if (e instanceof ir.AssignTemporaryExpr && tmps.has(e.xref)) {\n const read = new ir.ReadTemporaryExpr(e.xref);\n // `TemplateDefinitionBuilder` has the (accidental?) behavior of generating assignments of\n // temporary variables to themselves. This happens because some subexpression that the\n // temporary refers to, possibly through nested temporaries, has a function call. We copy that\n // behavior here.\n return ctx.job.compatibility === ir.CompatibilityMode.TemplateDefinitionBuilder ?\n new ir.AssignTemporaryExpr(read, read.xref) :\n read;\n }\n return e;\n }, ir.VisitorContextFlag.None);\n return e;\n}\n\n/**\n * Creates a safe ternary guarded by the input expression, and with a body generated by the provided\n * callback on the input expression. Generates a temporary variable assignment if needed, and\n * deduplicates nested temporary assignments if needed.\n */\nfunction safeTernaryWithTemporary(\n guard: o.Expression, body: (e: o.Expression) => o.Expression,\n ctx: SafeTransformContext): ir.SafeTernaryExpr {\n let result: [o.Expression, o.Expression];\n if (needsTemporaryInSafeAccess(guard)) {\n const xref = ctx.job.allocateXrefId();\n result = [new ir.AssignTemporaryExpr(guard, xref), new ir.ReadTemporaryExpr(xref)];\n } else {\n result = [guard, guard.clone()];\n // Consider an expression like `a?.[b?.c()]?.d`. The `b?.c()` will be transformed first,\n // introducing a temporary assignment into the key. Then, as part of expanding the `?.d`. That\n // assignment will be duplicated into both the guard and expression sides. We de-duplicate it,\n // by transforming it from an assignment into a read on the expression side.\n eliminateTemporaryAssignments(result[1], temporariesIn(result[0]), ctx);\n }\n return new ir.SafeTernaryExpr(result[0], body(result[1]));\n}\n\nfunction isSafeAccessExpression(e: o.Expression): e is ir.SafePropertyReadExpr|\n ir.SafeKeyedReadExpr|ir.SafeInvokeFunctionExpr {\n return e instanceof ir.SafePropertyReadExpr || e instanceof ir.SafeKeyedReadExpr ||\n e instanceof ir.SafeInvokeFunctionExpr;\n}\n\nfunction isUnsafeAccessExpression(e: o.Expression): e is o.ReadPropExpr|o.ReadKeyExpr|\n o.InvokeFunctionExpr {\n return e instanceof o.ReadPropExpr || e instanceof o.ReadKeyExpr ||\n e instanceof o.InvokeFunctionExpr;\n}\n\nfunction isAccessExpression(e: o.Expression): e is o.ReadPropExpr|ir.SafePropertyReadExpr|\n o.ReadKeyExpr|ir.SafeKeyedReadExpr|o.InvokeFunctionExpr|ir.SafeInvokeFunctionExpr {\n return isSafeAccessExpression(e) || isUnsafeAccessExpression(e);\n}\n\nfunction deepestSafeTernary(e: o.Expression): ir.SafeTernaryExpr|null {\n if (isAccessExpression(e) && e.receiver instanceof ir.SafeTernaryExpr) {\n let st = e.receiver;\n while (st.expr instanceof ir.SafeTernaryExpr) {\n st = st.expr;\n }\n return st;\n }\n return null;\n}\n\n// TODO: When strict compatibility with TemplateDefinitionBuilder is not required, we can use `&&`\n// instead to save some code size.\nfunction safeTransform(e: o.Expression, ctx: SafeTransformContext): o.Expression {\n if (!isAccessExpression(e)) {\n return e;\n }\n\n const dst = deepestSafeTernary(e);\n\n if (dst) {\n if (e instanceof o.InvokeFunctionExpr) {\n dst.expr = dst.expr.callFn(e.args);\n return e.receiver;\n }\n if (e instanceof o.ReadPropExpr) {\n dst.expr = dst.expr.prop(e.name);\n return e.receiver;\n }\n if (e instanceof o.ReadKeyExpr) {\n dst.expr = dst.expr.key(e.index);\n return e.receiver;\n }\n if (e instanceof ir.SafeInvokeFunctionExpr) {\n dst.expr = safeTernaryWithTemporary(dst.expr, (r: o.Expression) => r.callFn(e.args), ctx);\n return e.receiver;\n }\n if (e instanceof ir.SafePropertyReadExpr) {\n dst.expr = safeTernaryWithTemporary(dst.expr, (r: o.Expression) => r.prop(e.name), ctx);\n return e.receiver;\n }\n if (e instanceof ir.SafeKeyedReadExpr) {\n dst.expr = safeTernaryWithTemporary(dst.expr, (r: o.Expression) => r.key(e.index), ctx);\n return e.receiver;\n }\n } else {\n if (e instanceof ir.SafeInvokeFunctionExpr) {\n return safeTernaryWithTemporary(e.receiver, (r: o.Expression) => r.callFn(e.args), ctx);\n }\n if (e instanceof ir.SafePropertyReadExpr) {\n return safeTernaryWithTemporary(e.receiver, (r: o.Expression) => r.prop(e.name), ctx);\n }\n if (e instanceof ir.SafeKeyedReadExpr) {\n return safeTernaryWithTemporary(e.receiver, (r: o.Expression) => r.key(e.index), ctx);\n }\n }\n\n return e;\n}\n\nfunction ternaryTransform(e: o.Expression): o.Expression {\n if (!(e instanceof ir.SafeTernaryExpr)) {\n return e;\n }\n return new o.ConditionalExpr(\n new o.BinaryOperatorExpr(o.BinaryOperator.Equals, e.guard, o.NULL_EXPR),\n o.NULL_EXPR,\n e.expr,\n );\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as o from '../../../../output/output_ast';\nimport * as ir from '../../ir';\nimport {CompilationJob} from '../compilation';\n\n/**\n * The escape sequence used indicate message param values.\n */\nconst ESCAPE = '\\uFFFD';\n\n/**\n * Marker used to indicate an element tag.\n */\nconst ELEMENT_MARKER = '#';\n\n/**\n * Marker used to indicate a template tag.\n */\nconst TEMPLATE_MARKER = '*';\n\n/**\n * Marker used to indicate closing of an element or template tag.\n */\nconst TAG_CLOSE_MARKER = '/';\n\n/**\n * Marker used to indicate the sub-template context.\n */\nconst CONTEXT_MARKER = ':';\n\n/**\n * Marker used to indicate the start of a list of values.\n */\nconst LIST_START_MARKER = '[';\n\n/**\n * Marker used to indicate the end of a list of values.\n */\nconst LIST_END_MARKER = ']';\n\n/**\n * Delimiter used to separate multiple values in a list.\n */\nconst LIST_DELIMITER = '|';\n\n/**\n * Formats the param maps on extracted message ops into a maps of `Expression` objects that can be\n * used in the final output.\n */\nexport function extractI18nMessages(job: CompilationJob): void {\n // Create an i18n message for each context.\n // TODO: Merge the context op with the message op since they're 1:1 anyways.\n const i18nMessagesByContext = new Map<ir.XrefId, ir.I18nMessageOp>();\n const i18nBlocks = new Map<ir.XrefId, ir.I18nStartOp>();\n const i18nContexts = new Map<ir.XrefId, ir.I18nContextOp>();\n for (const unit of job.units) {\n for (const op of unit.create) {\n switch (op.kind) {\n case ir.OpKind.I18nContext:\n const i18nMessageOp = createI18nMessage(job, op);\n unit.create.push(i18nMessageOp);\n i18nMessagesByContext.set(op.xref, i18nMessageOp);\n i18nContexts.set(op.xref, op);\n break;\n case ir.OpKind.I18nStart:\n i18nBlocks.set(op.xref, op);\n break;\n }\n }\n }\n\n // Associate sub-messages for ICUs with their root message. At this point we can also remove the\n // ICU start/end ops, as they are no longer needed.\n let currentIcu: ir.IcuStartOp|null = null;\n for (const unit of job.units) {\n for (const op of unit.create) {\n switch (op.kind) {\n case ir.OpKind.IcuStart:\n currentIcu = op;\n ir.OpList.remove<ir.CreateOp>(op);\n // Skip any contexts not associated with an ICU.\n const icuContext = i18nContexts.get(op.context!)!;\n if (icuContext.contextKind !== ir.I18nContextKind.Icu) {\n continue;\n }\n // Skip ICUs that share a context with their i18n message. These represent root-level\n // ICUs, not sub-messages.\n const i18nBlock = i18nBlocks.get(icuContext.i18nBlock!)!;\n if (i18nBlock.context === icuContext.xref) {\n continue;\n }\n // Find the root message and push this ICUs message as a sub-message.\n const rootI18nBlock = i18nBlocks.get(i18nBlock.root)!;\n const rootMessage = i18nMessagesByContext.get(rootI18nBlock.context!);\n if (rootMessage === undefined) {\n throw Error('AssertionError: ICU sub-message should belong to a root message.');\n }\n const subMessage = i18nMessagesByContext.get(icuContext.xref)!;\n subMessage.messagePlaceholder = op.messagePlaceholder;\n rootMessage.subMessages.push(subMessage.xref);\n break;\n case ir.OpKind.IcuEnd:\n currentIcu = null;\n ir.OpList.remove<ir.CreateOp>(op);\n break;\n case ir.OpKind.IcuPlaceholder:\n // Add ICU placeholders to the message, then remove the ICU placeholder ops.\n if (currentIcu === null || currentIcu.context == null) {\n throw Error('AssertionError: Unexpected ICU placeholder outside of i18n context');\n }\n const msg = i18nMessagesByContext.get(currentIcu.context)!;\n msg.postprocessingParams.set(op.name, o.literal(formatIcuPlaceholder(op)));\n ir.OpList.remove<ir.CreateOp>(op);\n break;\n }\n }\n }\n}\n\n/**\n * Create an i18n message op from an i18n context op.\n */\nfunction createI18nMessage(\n job: CompilationJob, context: ir.I18nContextOp, messagePlaceholder?: string): ir.I18nMessageOp {\n let formattedParams = formatParams(context.params);\n const formattedPostprocessingParams = formatParams(context.postprocessingParams);\n let needsPostprocessing = [...context.params.values()].some(v => v.length > 1);\n return ir.createI18nMessageOp(\n job.allocateXrefId(), context.xref, context.i18nBlock, context.message,\n messagePlaceholder ?? null, formattedParams, formattedPostprocessingParams,\n needsPostprocessing);\n}\n\n/**\n * Formats an ICU placeholder into a single string with expression placeholders.\n */\nfunction formatIcuPlaceholder(op: ir.IcuPlaceholderOp) {\n if (op.strings.length !== op.expressionPlaceholders.length + 1) {\n throw Error(`AsserionError: Invalid ICU placeholder with ${op.strings.length} strings and ${\n op.expressionPlaceholders.length} expressions`);\n }\n const values = op.expressionPlaceholders.map(formatValue);\n return op.strings.flatMap((str, i) => [str, values[i] || '']).join('');\n}\n\n/**\n * Formats a map of `I18nParamValue[]` values into a map of `Expression` values.\n */\nfunction formatParams(params: Map<string, ir.I18nParamValue[]>) {\n const formattedParams = new Map<string, o.Expression>();\n for (const [placeholder, placeholderValues] of params) {\n const serializedValues = formatParamValues(placeholderValues);\n if (serializedValues !== null) {\n formattedParams.set(placeholder, o.literal(serializedValues));\n }\n }\n return formattedParams;\n}\n\n/**\n * Formats an `I18nParamValue[]` into a string (or null for empty array).\n */\nfunction formatParamValues(values: ir.I18nParamValue[]): string|null {\n if (values.length === 0) {\n return null;\n }\n const serializedValues = values.map(value => formatValue(value));\n return serializedValues.length === 1 ?\n serializedValues[0] :\n `${LIST_START_MARKER}${serializedValues.join(LIST_DELIMITER)}${LIST_END_MARKER}`;\n}\n\n/**\n * Formats a single `I18nParamValue` into a string\n */\nfunction formatValue(value: ir.I18nParamValue): string {\n // Element tags with a structural directive use a special form that concatenates the element and\n // template values.\n if ((value.flags & ir.I18nParamValueFlags.ElementTag) &&\n (value.flags & ir.I18nParamValueFlags.TemplateTag)) {\n if (typeof value.value !== 'object') {\n throw Error('AssertionError: Expected i18n param value to have an element and template slot');\n }\n const elementValue = formatValue({\n ...value,\n value: value.value.element,\n flags: value.flags & ~ir.I18nParamValueFlags.TemplateTag\n });\n const templateValue = formatValue({\n ...value,\n value: value.value.template,\n flags: value.flags & ~ir.I18nParamValueFlags.ElementTag\n });\n // TODO(mmalerba): This is likely a bug in TemplateDefinitionBuilder, we should not need to\n // record the template value twice. For now I'm re-implementing the behavior here to keep the\n // output consistent with TemplateDefinitionBuilder.\n if ((value.flags & ir.I18nParamValueFlags.OpenTag) &&\n (value.flags & ir.I18nParamValueFlags.CloseTag)) {\n return `${templateValue}${elementValue}${templateValue}`;\n }\n // To match the TemplateDefinitionBuilder output, flip the order depending on whether the\n // values represent a closing or opening tag (or both).\n // TODO(mmalerba): Figure out if this makes a difference in terms of either functionality,\n // or the resulting message ID. If not, we can remove the special-casing in the future.\n return value.flags & ir.I18nParamValueFlags.CloseTag ? `${elementValue}${templateValue}` :\n `${templateValue}${elementValue}`;\n }\n\n // Self-closing tags use a special form that concatenates the start and close tag values.\n if ((value.flags & ir.I18nParamValueFlags.OpenTag) &&\n (value.flags & ir.I18nParamValueFlags.CloseTag)) {\n return `${formatValue({...value, flags: value.flags & ~ir.I18nParamValueFlags.CloseTag})}${\n formatValue({...value, flags: value.flags & ~ir.I18nParamValueFlags.OpenTag})}`;\n }\n\n // If there are no special flags, just return the raw value.\n if (value.flags === ir.I18nParamValueFlags.None) {\n return `${value.value}`;\n }\n\n // Encode the remaining flags as part of the value.\n let tagMarker = '';\n let closeMarker = '';\n if (value.flags & ir.I18nParamValueFlags.ElementTag) {\n tagMarker = ELEMENT_MARKER;\n } else if (value.flags & ir.I18nParamValueFlags.TemplateTag) {\n tagMarker = TEMPLATE_MARKER;\n }\n if (tagMarker !== '') {\n closeMarker = value.flags & ir.I18nParamValueFlags.CloseTag ? TAG_CLOSE_MARKER : '';\n }\n const context =\n value.subTemplateIndex === null ? '' : `${CONTEXT_MARKER}${value.subTemplateIndex}`;\n return `${ESCAPE}${closeMarker}${tagMarker}${value.value}${context}${ESCAPE}`;\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as ir from '../../ir';\nimport type {CompilationJob} from '../compilation';\n\n/**\n * Generate `ir.AdvanceOp`s in between `ir.UpdateOp`s that ensure the runtime's implicit slot\n * context will be advanced correctly.\n */\nexport function generateAdvance(job: CompilationJob): void {\n for (const unit of job.units) {\n // First build a map of all of the declarations in the view that have assigned slots.\n const slotMap = new Map<ir.XrefId, number>();\n for (const op of unit.create) {\n if (!ir.hasConsumesSlotTrait(op)) {\n continue;\n } else if (op.handle.slot === null) {\n throw new Error(\n `AssertionError: expected slots to have been allocated before generating advance() calls`);\n }\n\n slotMap.set(op.xref, op.handle.slot);\n }\n\n // Next, step through the update operations and generate `ir.AdvanceOp`s as required to ensure\n // the runtime's implicit slot counter will be set to the correct slot before executing each\n // update operation which depends on it.\n //\n // To do that, we track what the runtime's slot counter will be through the update operations.\n let slotContext = 0;\n for (const op of unit.update) {\n if (!ir.hasDependsOnSlotContextTrait(op)) {\n // `op` doesn't depend on the slot counter, so it can be skipped.\n continue;\n } else if (!slotMap.has(op.target)) {\n // We expect ops that _do_ depend on the slot counter to point at declarations that exist in\n // the `slotMap`.\n throw new Error(`AssertionError: reference to unknown slot for target ${op.target}`);\n }\n\n const slot = slotMap.get(op.target)!;\n\n // Does the slot counter need to be adjusted?\n if (slotContext !== slot) {\n // If so, generate an `ir.AdvanceOp` to advance the counter.\n const delta = slot - slotContext;\n if (delta < 0) {\n throw new Error(`AssertionError: slot counter should never need to move backwards`);\n }\n\n ir.OpList.insertBefore<ir.UpdateOp>(\n ir.createAdvanceOp(delta, (op as ir.DependsOnSlotContextOpTrait).sourceSpan), op);\n slotContext = slot;\n }\n }\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {parseSelectorToR3Selector} from '../../../../core';\nimport * as o from '../../../../output/output_ast';\nimport * as ir from '../../ir';\nimport type {ComponentCompilationJob} from '../compilation';\nimport {literalOrArrayLiteral} from '../conversion';\n\n/**\n * Locate projection slots, populate the each component's `ngContentSelectors` literal field,\n * populate `project` arguments, and generate the required `projectionDef` instruction for the job's\n * root view.\n */\nexport function generateProjectionDefs(job: ComponentCompilationJob): void {\n // TODO: Why does TemplateDefinitionBuilder force a shared constant?\n const share = job.compatibility === ir.CompatibilityMode.TemplateDefinitionBuilder;\n\n // Collect all selectors from this component, and its nested views. Also, assign each projection a\n // unique ascending projection slot index.\n const selectors = [];\n let projectionSlotIndex = 0;\n for (const unit of job.units) {\n for (const op of unit.create) {\n if (op.kind === ir.OpKind.Projection) {\n selectors.push(op.selector);\n op.projectionSlotIndex = projectionSlotIndex++;\n }\n }\n }\n\n if (selectors.length > 0) {\n // Create the projectionDef array. If we only found a single wildcard selector, then we use the\n // default behavior with no arguments instead.\n let defExpr: o.Expression|null = null;\n if (selectors.length > 1 || selectors[0] !== '*') {\n const def = selectors.map(s => s === '*' ? s : parseSelectorToR3Selector(s));\n defExpr = job.pool.getConstLiteral(literalOrArrayLiteral(def), share);\n }\n\n // Create the ngContentSelectors constant.\n job.contentSelectors = job.pool.getConstLiteral(literalOrArrayLiteral(selectors), share);\n\n // The projection def instruction goes at the beginning of the root view, before any\n // `projection` instructions.\n job.root.create.prepend([ir.createProjectionDefOp(defExpr)]);\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as o from '../../../../output/output_ast';\nimport * as ir from '../../ir';\n\nimport type {ComponentCompilationJob, ViewCompilationUnit} from '../compilation';\n\n/**\n * Generate a preamble sequence for each view creation block and listener function which declares\n * any variables that be referenced in other operations in the block.\n *\n * Variables generated include:\n * * a saved view context to be used to restore the current view in event listeners.\n * * the context of the restored view within event listener handlers.\n * * context variables from the current view as well as all parent views (including the root\n * context if needed).\n * * local references from elements within the current view and any lexical parents.\n *\n * Variables are generated here unconditionally, and may optimized away in future operations if it\n * turns out their values (and any side effects) are unused.\n */\nexport function generateVariables(job: ComponentCompilationJob): void {\n recursivelyProcessView(job.root, /* there is no parent scope for the root view */ null);\n}\n\n/**\n * Process the given `ViewCompilation` and generate preambles for it and any listeners that it\n * declares.\n *\n * @param `parentScope` a scope extracted from the parent view which captures any variables which\n * should be inherited by this view. `null` if the current view is the root view.\n */\nfunction recursivelyProcessView(view: ViewCompilationUnit, parentScope: Scope|null): void {\n // Extract a `Scope` from this view.\n const scope = getScopeForView(view, parentScope);\n\n for (const op of view.create) {\n switch (op.kind) {\n case ir.OpKind.Template:\n // Descend into child embedded views.\n recursivelyProcessView(view.job.views.get(op.xref)!, scope);\n break;\n case ir.OpKind.RepeaterCreate:\n // Descend into child embedded views.\n recursivelyProcessView(view.job.views.get(op.xref)!, scope);\n if (op.emptyView) {\n recursivelyProcessView(view.job.views.get(op.emptyView)!, scope);\n }\n break;\n case ir.OpKind.Listener:\n // Prepend variables to listener handler functions.\n op.handlerOps.prepend(generateVariablesInScopeForView(view, scope));\n break;\n }\n }\n\n // Prepend the declarations for all available variables in scope to the `update` block.\n const preambleOps = generateVariablesInScopeForView(view, scope);\n view.update.prepend(preambleOps);\n}\n\n/**\n * Lexical scope of a view, including a reference to its parent view's scope, if any.\n */\ninterface Scope {\n /**\n * `XrefId` of the view to which this scope corresponds.\n */\n view: ir.XrefId;\n\n viewContextVariable: ir.SemanticVariable;\n\n contextVariables: Map<string, ir.SemanticVariable>;\n\n aliases: Set<ir.AliasVariable>;\n\n /**\n * Local references collected from elements within the view.\n */\n references: Reference[];\n\n /**\n * `Scope` of the parent view, if any.\n */\n parent: Scope|null;\n}\n\n/**\n * Information needed about a local reference collected from an element within a view.\n */\ninterface Reference {\n /**\n * Name given to the local reference variable within the template.\n *\n * This is not the name which will be used for the variable declaration in the generated\n * template code.\n */\n name: string;\n\n /**\n * `XrefId` of the element-like node which this reference targets.\n *\n * The reference may be either to the element (or template) itself, or to a directive on it.\n */\n targetId: ir.XrefId;\n\n targetSlot: ir.SlotHandle;\n\n /**\n * A generated offset of this reference among all the references on a specific element.\n */\n offset: number;\n\n variable: ir.SemanticVariable;\n}\n\n/**\n * Process a view and generate a `Scope` representing the variables available for reference within\n * that view.\n */\nfunction getScopeForView(view: ViewCompilationUnit, parent: Scope|null): Scope {\n const scope: Scope = {\n view: view.xref,\n viewContextVariable: {\n kind: ir.SemanticVariableKind.Context,\n name: null,\n view: view.xref,\n },\n contextVariables: new Map<string, ir.SemanticVariable>(),\n aliases: view.aliases,\n references: [],\n parent,\n };\n\n for (const identifier of view.contextVariables.keys()) {\n scope.contextVariables.set(identifier, {\n kind: ir.SemanticVariableKind.Identifier,\n name: null,\n identifier,\n });\n }\n\n for (const op of view.create) {\n switch (op.kind) {\n case ir.OpKind.ElementStart:\n case ir.OpKind.Template:\n if (!Array.isArray(op.localRefs)) {\n throw new Error(`AssertionError: expected localRefs to be an array`);\n }\n\n // Record available local references from this element.\n for (let offset = 0; offset < op.localRefs.length; offset++) {\n scope.references.push({\n name: op.localRefs[offset].name,\n targetId: op.xref,\n targetSlot: op.handle,\n offset,\n variable: {\n kind: ir.SemanticVariableKind.Identifier,\n name: null,\n identifier: op.localRefs[offset].name,\n },\n });\n }\n break;\n }\n }\n\n return scope;\n}\n\n/**\n * Generate declarations for all variables that are in scope for a given view.\n *\n * This is a recursive process, as views inherit variables available from their parent view, which\n * itself may have inherited variables, etc.\n */\nfunction generateVariablesInScopeForView(\n view: ViewCompilationUnit, scope: Scope): ir.VariableOp<ir.UpdateOp>[] {\n const newOps: ir.VariableOp<ir.UpdateOp>[] = [];\n\n if (scope.view !== view.xref) {\n // Before generating variables for a parent view, we need to switch to the context of the parent\n // view with a `nextContext` expression. This context switching operation itself declares a\n // variable, because the context of the view may be referenced directly.\n newOps.push(ir.createVariableOp(\n view.job.allocateXrefId(), scope.viewContextVariable, new ir.NextContextExpr(),\n ir.VariableFlags.None));\n }\n\n // Add variables for all context variables available in this scope's view.\n const scopeView = view.job.views.get(scope.view)!;\n for (const [name, value] of scopeView.contextVariables) {\n const context = new ir.ContextExpr(scope.view);\n // We either read the context, or, if the variable is CTX_REF, use the context directly.\n const variable = value === ir.CTX_REF ? context : new o.ReadPropExpr(context, value);\n // Add the variable declaration.\n newOps.push(ir.createVariableOp(\n view.job.allocateXrefId(), scope.contextVariables.get(name)!, variable,\n ir.VariableFlags.None));\n }\n\n for (const alias of scopeView.aliases) {\n newOps.push(ir.createVariableOp(\n view.job.allocateXrefId(), alias, alias.expression.clone(), ir.VariableFlags.AlwaysInline));\n }\n\n // Add variables for all local references declared for elements in this scope.\n for (const ref of scope.references) {\n newOps.push(ir.createVariableOp(\n view.job.allocateXrefId(), ref.variable,\n new ir.ReferenceExpr(ref.targetId, ref.targetSlot, ref.offset), ir.VariableFlags.None));\n }\n\n if (scope.parent !== null) {\n // Recursively add variables from the parent scope.\n newOps.push(...generateVariablesInScopeForView(view, scope.parent));\n }\n return newOps;\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as o from '../../../../output/output_ast';\nimport * as ir from '../../ir';\nimport type {ComponentCompilationJob} from '../compilation';\n\n/**\n * `ir.ConstCollectedExpr` may be present in any IR expression. This means that expression needs to\n * be lifted into the component const array, and replaced with a reference to the const array at its\n *\n * usage site. This phase walks the IR and performs this transformation.\n */\nexport function collectConstExpressions(job: ComponentCompilationJob): void {\n for (const unit of job.units) {\n for (const op of unit.ops()) {\n ir.transformExpressionsInOp(op, expr => {\n if (!(expr instanceof ir.ConstCollectedExpr)) {\n return expr;\n }\n return o.literal(job.addConst(expr.expr));\n }, ir.VisitorContextFlag.None);\n }\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as ir from '../../ir';\n\nimport type {CompilationJob} from '../compilation';\n\nconst STYLE_DOT = 'style.';\nconst CLASS_DOT = 'class.';\n\nconst STYLE_BANG = 'style!';\nconst CLASS_BANG = 'class!';\nconst BANG_IMPORTANT = '!important';\n\n/**\n * Host bindings are compiled using a different parser entrypoint, and are parsed quite differently\n * as a result. Therefore, we need to do some extra parsing for host style properties, as compared\n * to non-host style properties.\n * TODO: Unify host bindings and non-host bindings in the parser.\n */\nexport function parseHostStyleProperties(job: CompilationJob): void {\n for (const op of job.root.update) {\n if (!(op.kind === ir.OpKind.Binding && op.bindingKind === ir.BindingKind.Property)) {\n continue;\n }\n\n if (op.name.endsWith(BANG_IMPORTANT)) {\n // Delete any `!important` suffixes from the binding name.\n op.name = op.name.substring(0, op.name.length - BANG_IMPORTANT.length);\n }\n\n if (op.name.startsWith(STYLE_DOT)) {\n op.bindingKind = ir.BindingKind.StyleProperty;\n op.name = op.name.substring(STYLE_DOT.length);\n\n if (!isCssCustomProperty(op.name)) {\n op.name = hyphenate(op.name);\n }\n\n const {property, suffix} = parseProperty(op.name);\n op.name = property;\n op.unit = suffix;\n } else if (op.name.startsWith(STYLE_BANG)) {\n op.bindingKind = ir.BindingKind.StyleProperty;\n op.name = 'style';\n } else if (op.name.startsWith(CLASS_DOT)) {\n op.bindingKind = ir.BindingKind.ClassName;\n op.name = parseProperty(op.name.substring(CLASS_DOT.length)).property;\n } else if (op.name.startsWith(CLASS_BANG)) {\n op.bindingKind = ir.BindingKind.ClassName;\n op.name = parseProperty(op.name.substring(CLASS_BANG.length)).property;\n }\n }\n}\n\n\n/**\n * Checks whether property name is a custom CSS property.\n * See: https://www.w3.org/TR/css-variables-1\n */\nfunction isCssCustomProperty(name: string): boolean {\n return name.startsWith('--');\n}\n\nfunction hyphenate(value: string): string {\n return value\n .replace(\n /[a-z][A-Z]/g,\n v => {\n return v.charAt(0) + '-' + v.charAt(1);\n })\n .toLowerCase();\n}\n\nfunction parseProperty(name: string): {property: string, suffix: string|null} {\n const overrideIndex = name.indexOf('!important');\n if (overrideIndex !== -1) {\n name = overrideIndex > 0 ? name.substring(0, overrideIndex) : '';\n }\n\n let suffix: string|null = null;\n let property = name;\n const unitIndex = name.lastIndexOf('.');\n if (unitIndex > 0) {\n suffix = name.slice(unitIndex + 1);\n property = name.substring(0, unitIndex);\n }\n\n return {property, suffix};\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as o from './output_ast';\n\nexport type MapEntry = {\n key: string,\n quoted: boolean,\n value: o.Expression\n};\n\nexport type MapLiteral = MapEntry[];\n\nexport function mapEntry(key: string, value: o.Expression): MapEntry {\n return {key, value, quoted: false};\n}\n\nexport function mapLiteral(\n obj: {[key: string]: o.Expression}, quoted: boolean = false): o.Expression {\n return o.literalMap(Object.keys(obj).map(key => ({\n key,\n quoted,\n value: obj[key],\n })));\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as i18n from '../../../i18n/i18n_ast';\n\nimport {formatI18nPlaceholderName} from './util';\n\nclass IcuSerializerVisitor implements i18n.Visitor {\n visitText(text: i18n.Text): any {\n return text.value;\n }\n\n visitContainer(container: i18n.Container): any {\n return container.children.map(child => child.visit(this)).join('');\n }\n\n visitIcu(icu: i18n.Icu): any {\n const strCases =\n Object.keys(icu.cases).map((k: string) => `${k} {${icu.cases[k].visit(this)}}`);\n const result = `{${icu.expressionPlaceholder}, ${icu.type}, ${strCases.join(' ')}}`;\n return result;\n }\n\n visitTagPlaceholder(ph: i18n.TagPlaceholder): any {\n return ph.isVoid ?\n this.formatPh(ph.startName) :\n `${this.formatPh(ph.startName)}${ph.children.map(child => child.visit(this)).join('')}${\n this.formatPh(ph.closeName)}`;\n }\n\n visitPlaceholder(ph: i18n.Placeholder): any {\n return this.formatPh(ph.name);\n }\n\n visitBlockPlaceholder(ph: i18n.BlockPlaceholder): any {\n return `${this.formatPh(ph.startName)}${ph.children.map(child => child.visit(this)).join('')}${\n this.formatPh(ph.closeName)}`;\n }\n\n visitIcuPlaceholder(ph: i18n.IcuPlaceholder, context?: any): any {\n return this.formatPh(ph.name);\n }\n\n private formatPh(value: string): string {\n return `{${formatI18nPlaceholderName(value, /* useCamelCase */ false)}}`;\n }\n}\n\nconst serializer = new IcuSerializerVisitor();\nexport function serializeIcuNode(icu: i18n.Icu): string {\n return icu.visit(serializer);\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as chars from '../chars';\n\nexport enum TokenType {\n Character,\n Identifier,\n PrivateIdentifier,\n Keyword,\n String,\n Operator,\n Number,\n Error\n}\n\nconst KEYWORDS = ['var', 'let', 'as', 'null', 'undefined', 'true', 'false', 'if', 'else', 'this'];\n\nexport class Lexer {\n tokenize(text: string): Token[] {\n const scanner = new _Scanner(text);\n const tokens: Token[] = [];\n let token = scanner.scanToken();\n while (token != null) {\n tokens.push(token);\n token = scanner.scanToken();\n }\n return tokens;\n }\n}\n\nexport class Token {\n constructor(\n public index: number, public end: number, public type: TokenType, public numValue: number,\n public strValue: string) {}\n\n isCharacter(code: number): boolean {\n return this.type == TokenType.Character && this.numValue == code;\n }\n\n isNumber(): boolean {\n return this.type == TokenType.Number;\n }\n\n isString(): boolean {\n return this.type == TokenType.String;\n }\n\n isOperator(operator: string): boolean {\n return this.type == TokenType.Operator && this.strValue == operator;\n }\n\n isIdentifier(): boolean {\n return this.type == TokenType.Identifier;\n }\n\n isPrivateIdentifier(): boolean {\n return this.type == TokenType.PrivateIdentifier;\n }\n\n isKeyword(): boolean {\n return this.type == TokenType.Keyword;\n }\n\n isKeywordLet(): boolean {\n return this.type == TokenType.Keyword && this.strValue == 'let';\n }\n\n isKeywordAs(): boolean {\n return this.type == TokenType.Keyword && this.strValue == 'as';\n }\n\n isKeywordNull(): boolean {\n return this.type == TokenType.Keyword && this.strValue == 'null';\n }\n\n isKeywordUndefined(): boolean {\n return this.type == TokenType.Keyword && this.strValue == 'undefined';\n }\n\n isKeywordTrue(): boolean {\n return this.type == TokenType.Keyword && this.strValue == 'true';\n }\n\n isKeywordFalse(): boolean {\n return this.type == TokenType.Keyword && this.strValue == 'false';\n }\n\n isKeywordThis(): boolean {\n return this.type == TokenType.Keyword && this.strValue == 'this';\n }\n\n isError(): boolean {\n return this.type == TokenType.Error;\n }\n\n toNumber(): number {\n return this.type == TokenType.Number ? this.numValue : -1;\n }\n\n toString(): string|null {\n switch (this.type) {\n case TokenType.Character:\n case TokenType.Identifier:\n case TokenType.Keyword:\n case TokenType.Operator:\n case TokenType.PrivateIdentifier:\n case TokenType.String:\n case TokenType.Error:\n return this.strValue;\n case TokenType.Number:\n return this.numValue.toString();\n default:\n return null;\n }\n }\n}\n\nfunction newCharacterToken(index: number, end: number, code: number): Token {\n return new Token(index, end, TokenType.Character, code, String.fromCharCode(code));\n}\n\nfunction newIdentifierToken(index: number, end: number, text: string): Token {\n return new Token(index, end, TokenType.Identifier, 0, text);\n}\n\nfunction newPrivateIdentifierToken(index: number, end: number, text: string): Token {\n return new Token(index, end, TokenType.PrivateIdentifier, 0, text);\n}\n\nfunction newKeywordToken(index: number, end: number, text: string): Token {\n return new Token(index, end, TokenType.Keyword, 0, text);\n}\n\nfunction newOperatorToken(index: number, end: number, text: string): Token {\n return new Token(index, end, TokenType.Operator, 0, text);\n}\n\nfunction newStringToken(index: number, end: number, text: string): Token {\n return new Token(index, end, TokenType.String, 0, text);\n}\n\nfunction newNumberToken(index: number, end: number, n: number): Token {\n return new Token(index, end, TokenType.Number, n, '');\n}\n\nfunction newErrorToken(index: number, end: number, message: string): Token {\n return new Token(index, end, TokenType.Error, 0, message);\n}\n\nexport const EOF: Token = new Token(-1, -1, TokenType.Character, 0, '');\n\nclass _Scanner {\n length: number;\n peek: number = 0;\n index: number = -1;\n\n constructor(public input: string) {\n this.length = input.length;\n this.advance();\n }\n\n advance() {\n this.peek = ++this.index >= this.length ? chars.$EOF : this.input.charCodeAt(this.index);\n }\n\n scanToken(): Token|null {\n const input = this.input, length = this.length;\n let peek = this.peek, index = this.index;\n\n // Skip whitespace.\n while (peek <= chars.$SPACE) {\n if (++index >= length) {\n peek = chars.$EOF;\n break;\n } else {\n peek = input.charCodeAt(index);\n }\n }\n\n this.peek = peek;\n this.index = index;\n\n if (index >= length) {\n return null;\n }\n\n // Handle identifiers and numbers.\n if (isIdentifierStart(peek)) return this.scanIdentifier();\n if (chars.isDigit(peek)) return this.scanNumber(index);\n\n const start: number = index;\n switch (peek) {\n case chars.$PERIOD:\n this.advance();\n return chars.isDigit(this.peek) ? this.scanNumber(start) :\n newCharacterToken(start, this.index, chars.$PERIOD);\n case chars.$LPAREN:\n case chars.$RPAREN:\n case chars.$LBRACE:\n case chars.$RBRACE:\n case chars.$LBRACKET:\n case chars.$RBRACKET:\n case chars.$COMMA:\n case chars.$COLON:\n case chars.$SEMICOLON:\n return this.scanCharacter(start, peek);\n case chars.$SQ:\n case chars.$DQ:\n return this.scanString();\n case chars.$HASH:\n return this.scanPrivateIdentifier();\n case chars.$PLUS:\n case chars.$MINUS:\n case chars.$STAR:\n case chars.$SLASH:\n case chars.$PERCENT:\n case chars.$CARET:\n return this.scanOperator(start, String.fromCharCode(peek));\n case chars.$QUESTION:\n return this.scanQuestion(start);\n case chars.$LT:\n case chars.$GT:\n return this.scanComplexOperator(start, String.fromCharCode(peek), chars.$EQ, '=');\n case chars.$BANG:\n case chars.$EQ:\n return this.scanComplexOperator(\n start, String.fromCharCode(peek), chars.$EQ, '=', chars.$EQ, '=');\n case chars.$AMPERSAND:\n return this.scanComplexOperator(start, '&', chars.$AMPERSAND, '&');\n case chars.$BAR:\n return this.scanComplexOperator(start, '|', chars.$BAR, '|');\n case chars.$NBSP:\n while (chars.isWhitespace(this.peek)) this.advance();\n return this.scanToken();\n }\n\n this.advance();\n return this.error(`Unexpected character [${String.fromCharCode(peek)}]`, 0);\n }\n\n scanCharacter(start: number, code: number): Token {\n this.advance();\n return newCharacterToken(start, this.index, code);\n }\n\n\n scanOperator(start: number, str: string): Token {\n this.advance();\n return newOperatorToken(start, this.index, str);\n }\n\n /**\n * Tokenize a 2/3 char long operator\n *\n * @param start start index in the expression\n * @param one first symbol (always part of the operator)\n * @param twoCode code point for the second symbol\n * @param two second symbol (part of the operator when the second code point matches)\n * @param threeCode code point for the third symbol\n * @param three third symbol (part of the operator when provided and matches source expression)\n */\n scanComplexOperator(\n start: number, one: string, twoCode: number, two: string, threeCode?: number,\n three?: string): Token {\n this.advance();\n let str: string = one;\n if (this.peek == twoCode) {\n this.advance();\n str += two;\n }\n if (threeCode != null && this.peek == threeCode) {\n this.advance();\n str += three;\n }\n return newOperatorToken(start, this.index, str);\n }\n\n scanIdentifier(): Token {\n const start: number = this.index;\n this.advance();\n while (isIdentifierPart(this.peek)) this.advance();\n const str: string = this.input.substring(start, this.index);\n return KEYWORDS.indexOf(str) > -1 ? newKeywordToken(start, this.index, str) :\n newIdentifierToken(start, this.index, str);\n }\n\n /** Scans an ECMAScript private identifier. */\n scanPrivateIdentifier(): Token {\n const start: number = this.index;\n this.advance();\n if (!isIdentifierStart(this.peek)) {\n return this.error('Invalid character [#]', -1);\n }\n while (isIdentifierPart(this.peek)) this.advance();\n const identifierName: string = this.input.substring(start, this.index);\n return newPrivateIdentifierToken(start, this.index, identifierName);\n }\n\n scanNumber(start: number): Token {\n let simple = (this.index === start);\n let hasSeparators = false;\n this.advance(); // Skip initial digit.\n while (true) {\n if (chars.isDigit(this.peek)) {\n // Do nothing.\n } else if (this.peek === chars.$_) {\n // Separators are only valid when they're surrounded by digits. E.g. `1_0_1` is\n // valid while `_101` and `101_` are not. The separator can't be next to the decimal\n // point or another separator either. Note that it's unlikely that we'll hit a case where\n // the underscore is at the start, because that's a valid identifier and it will be picked\n // up earlier in the parsing. We validate for it anyway just in case.\n if (!chars.isDigit(this.input.charCodeAt(this.index - 1)) ||\n !chars.isDigit(this.input.charCodeAt(this.index + 1))) {\n return this.error('Invalid numeric separator', 0);\n }\n hasSeparators = true;\n } else if (this.peek === chars.$PERIOD) {\n simple = false;\n } else if (isExponentStart(this.peek)) {\n this.advance();\n if (isExponentSign(this.peek)) this.advance();\n if (!chars.isDigit(this.peek)) return this.error('Invalid exponent', -1);\n simple = false;\n } else {\n break;\n }\n this.advance();\n }\n\n let str = this.input.substring(start, this.index);\n if (hasSeparators) {\n str = str.replace(/_/g, '');\n }\n const value = simple ? parseIntAutoRadix(str) : parseFloat(str);\n return newNumberToken(start, this.index, value);\n }\n\n scanString(): Token {\n const start: number = this.index;\n const quote: number = this.peek;\n this.advance(); // Skip initial quote.\n\n let buffer: string = '';\n let marker: number = this.index;\n const input: string = this.input;\n\n while (this.peek != quote) {\n if (this.peek == chars.$BACKSLASH) {\n buffer += input.substring(marker, this.index);\n let unescapedCode: number;\n this.advance(); // mutates this.peek\n // @ts-expect-error see microsoft/TypeScript#9998\n if (this.peek == chars.$u) {\n // 4 character hex code for unicode character.\n const hex: string = input.substring(this.index + 1, this.index + 5);\n if (/^[0-9a-f]+$/i.test(hex)) {\n unescapedCode = parseInt(hex, 16);\n } else {\n return this.error(`Invalid unicode escape [\\\\u${hex}]`, 0);\n }\n for (let i: number = 0; i < 5; i++) {\n this.advance();\n }\n } else {\n unescapedCode = unescape(this.peek);\n this.advance();\n }\n buffer += String.fromCharCode(unescapedCode);\n marker = this.index;\n } else if (this.peek == chars.$EOF) {\n return this.error('Unterminated quote', 0);\n } else {\n this.advance();\n }\n }\n\n const last: string = input.substring(marker, this.index);\n this.advance(); // Skip terminating quote.\n\n return newStringToken(start, this.index, buffer + last);\n }\n\n scanQuestion(start: number): Token {\n this.advance();\n let str: string = '?';\n // Either `a ?? b` or 'a?.b'.\n if (this.peek === chars.$QUESTION || this.peek === chars.$PERIOD) {\n str += this.peek === chars.$PERIOD ? '.' : '?';\n this.advance();\n }\n return newOperatorToken(start, this.index, str);\n }\n\n error(message: string, offset: number): Token {\n const position: number = this.index + offset;\n return newErrorToken(\n position, this.index,\n `Lexer Error: ${message} at column ${position} in expression [${this.input}]`);\n }\n}\n\nfunction isIdentifierStart(code: number): boolean {\n return (chars.$a <= code && code <= chars.$z) || (chars.$A <= code && code <= chars.$Z) ||\n (code == chars.$_) || (code == chars.$$);\n}\n\nexport function isIdentifier(input: string): boolean {\n if (input.length == 0) return false;\n const scanner = new _Scanner(input);\n if (!isIdentifierStart(scanner.peek)) return false;\n scanner.advance();\n while (scanner.peek !== chars.$EOF) {\n if (!isIdentifierPart(scanner.peek)) return false;\n scanner.advance();\n }\n return true;\n}\n\nfunction isIdentifierPart(code: number): boolean {\n return chars.isAsciiLetter(code) || chars.isDigit(code) || (code == chars.$_) ||\n (code == chars.$$);\n}\n\nfunction isExponentStart(code: number): boolean {\n return code == chars.$e || code == chars.$E;\n}\n\nfunction isExponentSign(code: number): boolean {\n return code == chars.$MINUS || code == chars.$PLUS;\n}\n\nfunction unescape(code: number): number {\n switch (code) {\n case chars.$n:\n return chars.$LF;\n case chars.$f:\n return chars.$FF;\n case chars.$r:\n return chars.$CR;\n case chars.$t:\n return chars.$TAB;\n case chars.$v:\n return chars.$VTAB;\n default:\n return code;\n }\n}\n\nfunction parseIntAutoRadix(text: string): number {\n const result: number = parseInt(text);\n if (isNaN(result)) {\n throw new Error('Invalid integer literal when parsing ' + text);\n }\n return result;\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as chars from '../chars';\nimport {DEFAULT_INTERPOLATION_CONFIG, InterpolationConfig} from '../ml_parser/defaults';\nimport {InterpolatedAttributeToken, InterpolatedTextToken, TokenType as MlParserTokenType} from '../ml_parser/tokens';\n\nimport {AbsoluteSourceSpan, AST, ASTWithSource, Binary, BindingPipe, Call, Chain, Conditional, EmptyExpr, ExpressionBinding, ImplicitReceiver, Interpolation, KeyedRead, KeyedWrite, LiteralArray, LiteralMap, LiteralMapKey, LiteralPrimitive, NonNullAssert, ParserError, ParseSpan, PrefixNot, PropertyRead, PropertyWrite, RecursiveAstVisitor, SafeCall, SafeKeyedRead, SafePropertyRead, TemplateBinding, TemplateBindingIdentifier, ThisReceiver, Unary, VariableBinding} from './ast';\nimport {EOF, Lexer, Token, TokenType} from './lexer';\n\nexport interface InterpolationPiece {\n text: string;\n start: number;\n end: number;\n}\nexport class SplitInterpolation {\n constructor(\n public strings: InterpolationPiece[], public expressions: InterpolationPiece[],\n public offsets: number[]) {}\n}\n\nexport class TemplateBindingParseResult {\n constructor(\n public templateBindings: TemplateBinding[], public warnings: string[],\n public errors: ParserError[]) {}\n}\n\n/**\n * Represents the possible parse modes to be used as a bitmask.\n */\nexport const enum ParseFlags {\n None = 0,\n\n /**\n * Whether an output binding is being parsed.\n */\n Action = 1 << 0,\n\n /**\n * Whether an assignment event is being parsed, i.e. an expression originating from\n * two-way-binding aka banana-in-a-box syntax.\n */\n AssignmentEvent = 1 << 1,\n}\n\nexport class Parser {\n private errors: ParserError[] = [];\n\n constructor(private _lexer: Lexer) {}\n\n parseAction(\n input: string, isAssignmentEvent: boolean, location: string, absoluteOffset: number,\n interpolationConfig: InterpolationConfig = DEFAULT_INTERPOLATION_CONFIG): ASTWithSource {\n this._checkNoInterpolation(input, location, interpolationConfig);\n const sourceToLex = this._stripComments(input);\n const tokens = this._lexer.tokenize(sourceToLex);\n let flags = ParseFlags.Action;\n if (isAssignmentEvent) {\n flags |= ParseFlags.AssignmentEvent;\n }\n const ast =\n new _ParseAST(input, location, absoluteOffset, tokens, flags, this.errors, 0).parseChain();\n return new ASTWithSource(ast, input, location, absoluteOffset, this.errors);\n }\n\n parseBinding(\n input: string, location: string, absoluteOffset: number,\n interpolationConfig: InterpolationConfig = DEFAULT_INTERPOLATION_CONFIG): ASTWithSource {\n const ast = this._parseBindingAst(input, location, absoluteOffset, interpolationConfig);\n return new ASTWithSource(ast, input, location, absoluteOffset, this.errors);\n }\n\n private checkSimpleExpression(ast: AST): string[] {\n const checker = new SimpleExpressionChecker();\n ast.visit(checker);\n return checker.errors;\n }\n\n // Host bindings parsed here\n parseSimpleBinding(\n input: string, location: string, absoluteOffset: number,\n interpolationConfig: InterpolationConfig = DEFAULT_INTERPOLATION_CONFIG): ASTWithSource {\n const ast = this._parseBindingAst(input, location, absoluteOffset, interpolationConfig);\n const errors = this.checkSimpleExpression(ast);\n if (errors.length > 0) {\n this._reportError(\n `Host binding expression cannot contain ${errors.join(' ')}`, input, location);\n }\n return new ASTWithSource(ast, input, location, absoluteOffset, this.errors);\n }\n\n private _reportError(message: string, input: string, errLocation: string, ctxLocation?: string) {\n this.errors.push(new ParserError(message, input, errLocation, ctxLocation));\n }\n\n private _parseBindingAst(\n input: string, location: string, absoluteOffset: number,\n interpolationConfig: InterpolationConfig): AST {\n this._checkNoInterpolation(input, location, interpolationConfig);\n const sourceToLex = this._stripComments(input);\n const tokens = this._lexer.tokenize(sourceToLex);\n return new _ParseAST(input, location, absoluteOffset, tokens, ParseFlags.None, this.errors, 0)\n .parseChain();\n }\n\n /**\n * Parse microsyntax template expression and return a list of bindings or\n * parsing errors in case the given expression is invalid.\n *\n * For example,\n * ```\n * <div *ngFor=\"let item of items\">\n * ^ ^ absoluteValueOffset for `templateValue`\n * absoluteKeyOffset for `templateKey`\n * ```\n * contains three bindings:\n * 1. ngFor -> null\n * 2. item -> NgForOfContext.$implicit\n * 3. ngForOf -> items\n *\n * This is apparent from the de-sugared template:\n * ```\n * <ng-template ngFor let-item [ngForOf]=\"items\">\n * ```\n *\n * @param templateKey name of directive, without the * prefix. For example: ngIf, ngFor\n * @param templateValue RHS of the microsyntax attribute\n * @param templateUrl template filename if it's external, component filename if it's inline\n * @param absoluteKeyOffset start of the `templateKey`\n * @param absoluteValueOffset start of the `templateValue`\n */\n parseTemplateBindings(\n templateKey: string, templateValue: string, templateUrl: string, absoluteKeyOffset: number,\n absoluteValueOffset: number): TemplateBindingParseResult {\n const tokens = this._lexer.tokenize(templateValue);\n const parser = new _ParseAST(\n templateValue, templateUrl, absoluteValueOffset, tokens, ParseFlags.None, this.errors,\n 0 /* relative offset */);\n return parser.parseTemplateBindings({\n source: templateKey,\n span: new AbsoluteSourceSpan(absoluteKeyOffset, absoluteKeyOffset + templateKey.length),\n });\n }\n\n parseInterpolation(\n input: string, location: string, absoluteOffset: number,\n interpolatedTokens: InterpolatedAttributeToken[]|InterpolatedTextToken[]|null,\n interpolationConfig: InterpolationConfig = DEFAULT_INTERPOLATION_CONFIG): ASTWithSource|null {\n const {strings, expressions, offsets} =\n this.splitInterpolation(input, location, interpolatedTokens, interpolationConfig);\n if (expressions.length === 0) return null;\n\n const expressionNodes: AST[] = [];\n\n for (let i = 0; i < expressions.length; ++i) {\n const expressionText = expressions[i].text;\n const sourceToLex = this._stripComments(expressionText);\n const tokens = this._lexer.tokenize(sourceToLex);\n const ast =\n new _ParseAST(\n input, location, absoluteOffset, tokens, ParseFlags.None, this.errors, offsets[i])\n .parseChain();\n expressionNodes.push(ast);\n }\n\n return this.createInterpolationAst(\n strings.map(s => s.text), expressionNodes, input, location, absoluteOffset);\n }\n\n /**\n * Similar to `parseInterpolation`, but treats the provided string as a single expression\n * element that would normally appear within the interpolation prefix and suffix (`{{` and `}}`).\n * This is used for parsing the switch expression in ICUs.\n */\n parseInterpolationExpression(expression: string, location: string, absoluteOffset: number):\n ASTWithSource {\n const sourceToLex = this._stripComments(expression);\n const tokens = this._lexer.tokenize(sourceToLex);\n const ast =\n new _ParseAST(expression, location, absoluteOffset, tokens, ParseFlags.None, this.errors, 0)\n .parseChain();\n const strings = ['', '']; // The prefix and suffix strings are both empty\n return this.createInterpolationAst(strings, [ast], expression, location, absoluteOffset);\n }\n\n private createInterpolationAst(\n strings: string[], expressions: AST[], input: string, location: string,\n absoluteOffset: number): ASTWithSource {\n const span = new ParseSpan(0, input.length);\n const interpolation =\n new Interpolation(span, span.toAbsolute(absoluteOffset), strings, expressions);\n return new ASTWithSource(interpolation, input, location, absoluteOffset, this.errors);\n }\n\n /**\n * Splits a string of text into \"raw\" text segments and expressions present in interpolations in\n * the string.\n * Returns `null` if there are no interpolations, otherwise a\n * `SplitInterpolation` with splits that look like\n * <raw text> <expression> <raw text> ... <raw text> <expression> <raw text>\n */\n splitInterpolation(\n input: string, location: string,\n interpolatedTokens: InterpolatedAttributeToken[]|InterpolatedTextToken[]|null,\n interpolationConfig: InterpolationConfig = DEFAULT_INTERPOLATION_CONFIG): SplitInterpolation {\n const strings: InterpolationPiece[] = [];\n const expressions: InterpolationPiece[] = [];\n const offsets: number[] = [];\n const inputToTemplateIndexMap =\n interpolatedTokens ? getIndexMapForOriginalTemplate(interpolatedTokens) : null;\n let i = 0;\n let atInterpolation = false;\n let extendLastString = false;\n let {start: interpStart, end: interpEnd} = interpolationConfig;\n while (i < input.length) {\n if (!atInterpolation) {\n // parse until starting {{\n const start = i;\n i = input.indexOf(interpStart, i);\n if (i === -1) {\n i = input.length;\n }\n const text = input.substring(start, i);\n strings.push({text, start, end: i});\n\n atInterpolation = true;\n } else {\n // parse from starting {{ to ending }} while ignoring content inside quotes.\n const fullStart = i;\n const exprStart = fullStart + interpStart.length;\n const exprEnd = this._getInterpolationEndIndex(input, interpEnd, exprStart);\n if (exprEnd === -1) {\n // Could not find the end of the interpolation; do not parse an expression.\n // Instead we should extend the content on the last raw string.\n atInterpolation = false;\n extendLastString = true;\n break;\n }\n const fullEnd = exprEnd + interpEnd.length;\n\n const text = input.substring(exprStart, exprEnd);\n if (text.trim().length === 0) {\n this._reportError(\n 'Blank expressions are not allowed in interpolated strings', input,\n `at column ${i} in`, location);\n }\n expressions.push({text, start: fullStart, end: fullEnd});\n const startInOriginalTemplate = inputToTemplateIndexMap?.get(fullStart) ?? fullStart;\n const offset = startInOriginalTemplate + interpStart.length;\n offsets.push(offset);\n\n i = fullEnd;\n atInterpolation = false;\n }\n }\n if (!atInterpolation) {\n // If we are now at a text section, add the remaining content as a raw string.\n if (extendLastString) {\n const piece = strings[strings.length - 1];\n piece.text += input.substring(i);\n piece.end = input.length;\n } else {\n strings.push({text: input.substring(i), start: i, end: input.length});\n }\n }\n return new SplitInterpolation(strings, expressions, offsets);\n }\n\n wrapLiteralPrimitive(input: string|null, location: string, absoluteOffset: number):\n ASTWithSource {\n const span = new ParseSpan(0, input == null ? 0 : input.length);\n return new ASTWithSource(\n new LiteralPrimitive(span, span.toAbsolute(absoluteOffset), input), input, location,\n absoluteOffset, this.errors);\n }\n\n private _stripComments(input: string): string {\n const i = this._commentStart(input);\n return i != null ? input.substring(0, i) : input;\n }\n\n private _commentStart(input: string): number|null {\n let outerQuote: number|null = null;\n for (let i = 0; i < input.length - 1; i++) {\n const char = input.charCodeAt(i);\n const nextChar = input.charCodeAt(i + 1);\n\n if (char === chars.$SLASH && nextChar == chars.$SLASH && outerQuote == null) return i;\n\n if (outerQuote === char) {\n outerQuote = null;\n } else if (outerQuote == null && chars.isQuote(char)) {\n outerQuote = char;\n }\n }\n return null;\n }\n\n private _checkNoInterpolation(input: string, location: string, {start, end}: InterpolationConfig):\n void {\n let startIndex = -1;\n let endIndex = -1;\n\n for (const charIndex of this._forEachUnquotedChar(input, 0)) {\n if (startIndex === -1) {\n if (input.startsWith(start)) {\n startIndex = charIndex;\n }\n } else {\n endIndex = this._getInterpolationEndIndex(input, end, charIndex);\n if (endIndex > -1) {\n break;\n }\n }\n }\n\n if (startIndex > -1 && endIndex > -1) {\n this._reportError(\n `Got interpolation (${start}${end}) where expression was expected`, input,\n `at column ${startIndex} in`, location);\n }\n }\n\n /**\n * Finds the index of the end of an interpolation expression\n * while ignoring comments and quoted content.\n */\n private _getInterpolationEndIndex(input: string, expressionEnd: string, start: number): number {\n for (const charIndex of this._forEachUnquotedChar(input, start)) {\n if (input.startsWith(expressionEnd, charIndex)) {\n return charIndex;\n }\n\n // Nothing else in the expression matters after we've\n // hit a comment so look directly for the end token.\n if (input.startsWith('//', charIndex)) {\n return input.indexOf(expressionEnd, charIndex);\n }\n }\n\n return -1;\n }\n\n /**\n * Generator used to iterate over the character indexes of a string that are outside of quotes.\n * @param input String to loop through.\n * @param start Index within the string at which to start.\n */\n private * _forEachUnquotedChar(input: string, start: number) {\n let currentQuote: string|null = null;\n let escapeCount = 0;\n for (let i = start; i < input.length; i++) {\n const char = input[i];\n // Skip the characters inside quotes. Note that we only care about the outer-most\n // quotes matching up and we need to account for escape characters.\n if (chars.isQuote(input.charCodeAt(i)) && (currentQuote === null || currentQuote === char) &&\n escapeCount % 2 === 0) {\n currentQuote = currentQuote === null ? char : null;\n } else if (currentQuote === null) {\n yield i;\n }\n escapeCount = char === '\\\\' ? escapeCount + 1 : 0;\n }\n }\n}\n\n/** Describes a stateful context an expression parser is in. */\nenum ParseContextFlags {\n None = 0,\n /**\n * A Writable context is one in which a value may be written to an lvalue.\n * For example, after we see a property access, we may expect a write to the\n * property via the \"=\" operator.\n * prop\n * ^ possible \"=\" after\n */\n Writable = 1,\n}\n\nexport class _ParseAST {\n private rparensExpected = 0;\n private rbracketsExpected = 0;\n private rbracesExpected = 0;\n private context = ParseContextFlags.None;\n\n // Cache of expression start and input indeces to the absolute source span they map to, used to\n // prevent creating superfluous source spans in `sourceSpan`.\n // A serial of the expression start and input index is used for mapping because both are stateful\n // and may change for subsequent expressions visited by the parser.\n private sourceSpanCache = new Map<string, AbsoluteSourceSpan>();\n\n index: number = 0;\n\n constructor(\n public input: string, public location: string, public absoluteOffset: number,\n public tokens: Token[], public parseFlags: ParseFlags, private errors: ParserError[],\n private offset: number) {}\n\n peek(offset: number): Token {\n const i = this.index + offset;\n return i < this.tokens.length ? this.tokens[i] : EOF;\n }\n\n get next(): Token {\n return this.peek(0);\n }\n\n /** Whether all the parser input has been processed. */\n get atEOF(): boolean {\n return this.index >= this.tokens.length;\n }\n\n /**\n * Index of the next token to be processed, or the end of the last token if all have been\n * processed.\n */\n get inputIndex(): number {\n return this.atEOF ? this.currentEndIndex : this.next.index + this.offset;\n }\n\n /**\n * End index of the last processed token, or the start of the first token if none have been\n * processed.\n */\n get currentEndIndex(): number {\n if (this.index > 0) {\n const curToken = this.peek(-1);\n return curToken.end + this.offset;\n }\n // No tokens have been processed yet; return the next token's start or the length of the input\n // if there is no token.\n if (this.tokens.length === 0) {\n return this.input.length + this.offset;\n }\n return this.next.index + this.offset;\n }\n\n /**\n * Returns the absolute offset of the start of the current token.\n */\n get currentAbsoluteOffset(): number {\n return this.absoluteOffset + this.inputIndex;\n }\n\n /**\n * Retrieve a `ParseSpan` from `start` to the current position (or to `artificialEndIndex` if\n * provided).\n *\n * @param start Position from which the `ParseSpan` will start.\n * @param artificialEndIndex Optional ending index to be used if provided (and if greater than the\n * natural ending index)\n */\n span(start: number, artificialEndIndex?: number): ParseSpan {\n let endIndex = this.currentEndIndex;\n if (artificialEndIndex !== undefined && artificialEndIndex > this.currentEndIndex) {\n endIndex = artificialEndIndex;\n }\n\n // In some unusual parsing scenarios (like when certain tokens are missing and an `EmptyExpr` is\n // being created), the current token may already be advanced beyond the `currentEndIndex`. This\n // appears to be a deep-seated parser bug.\n //\n // As a workaround for now, swap the start and end indices to ensure a valid `ParseSpan`.\n // TODO(alxhub): fix the bug upstream in the parser state, and remove this workaround.\n if (start > endIndex) {\n const tmp = endIndex;\n endIndex = start;\n start = tmp;\n }\n\n return new ParseSpan(start, endIndex);\n }\n\n sourceSpan(start: number, artificialEndIndex?: number): AbsoluteSourceSpan {\n const serial = `${start}@${this.inputIndex}:${artificialEndIndex}`;\n if (!this.sourceSpanCache.has(serial)) {\n this.sourceSpanCache.set(\n serial, this.span(start, artificialEndIndex).toAbsolute(this.absoluteOffset));\n }\n return this.sourceSpanCache.get(serial)!;\n }\n\n advance() {\n this.index++;\n }\n\n /**\n * Executes a callback in the provided context.\n */\n private withContext<T>(context: ParseContextFlags, cb: () => T): T {\n this.context |= context;\n const ret = cb();\n this.context ^= context;\n return ret;\n }\n\n consumeOptionalCharacter(code: number): boolean {\n if (this.next.isCharacter(code)) {\n this.advance();\n return true;\n } else {\n return false;\n }\n }\n\n peekKeywordLet(): boolean {\n return this.next.isKeywordLet();\n }\n peekKeywordAs(): boolean {\n return this.next.isKeywordAs();\n }\n\n /**\n * Consumes an expected character, otherwise emits an error about the missing expected character\n * and skips over the token stream until reaching a recoverable point.\n *\n * See `this.error` and `this.skip` for more details.\n */\n expectCharacter(code: number) {\n if (this.consumeOptionalCharacter(code)) return;\n this.error(`Missing expected ${String.fromCharCode(code)}`);\n }\n\n consumeOptionalOperator(op: string): boolean {\n if (this.next.isOperator(op)) {\n this.advance();\n return true;\n } else {\n return false;\n }\n }\n\n expectOperator(operator: string) {\n if (this.consumeOptionalOperator(operator)) return;\n this.error(`Missing expected operator ${operator}`);\n }\n\n prettyPrintToken(tok: Token): string {\n return tok === EOF ? 'end of input' : `token ${tok}`;\n }\n\n expectIdentifierOrKeyword(): string|null {\n const n = this.next;\n if (!n.isIdentifier() && !n.isKeyword()) {\n if (n.isPrivateIdentifier()) {\n this._reportErrorForPrivateIdentifier(n, 'expected identifier or keyword');\n } else {\n this.error(`Unexpected ${this.prettyPrintToken(n)}, expected identifier or keyword`);\n }\n return null;\n }\n this.advance();\n return n.toString() as string;\n }\n\n expectIdentifierOrKeywordOrString(): string {\n const n = this.next;\n if (!n.isIdentifier() && !n.isKeyword() && !n.isString()) {\n if (n.isPrivateIdentifier()) {\n this._reportErrorForPrivateIdentifier(n, 'expected identifier, keyword or string');\n } else {\n this.error(\n `Unexpected ${this.prettyPrintToken(n)}, expected identifier, keyword, or string`);\n }\n return '';\n }\n this.advance();\n return n.toString() as string;\n }\n\n parseChain(): AST {\n const exprs: AST[] = [];\n const start = this.inputIndex;\n while (this.index < this.tokens.length) {\n const expr = this.parsePipe();\n exprs.push(expr);\n\n if (this.consumeOptionalCharacter(chars.$SEMICOLON)) {\n if (!(this.parseFlags & ParseFlags.Action)) {\n this.error('Binding expression cannot contain chained expression');\n }\n while (this.consumeOptionalCharacter(chars.$SEMICOLON)) {\n } // read all semicolons\n } else if (this.index < this.tokens.length) {\n const errorIndex = this.index;\n this.error(`Unexpected token '${this.next}'`);\n // The `error` call above will skip ahead to the next recovery point in an attempt to\n // recover part of the expression, but that might be the token we started from which will\n // lead to an infinite loop. If that's the case, break the loop assuming that we can't\n // parse further.\n if (this.index === errorIndex) {\n break;\n }\n }\n }\n if (exprs.length === 0) {\n // We have no expressions so create an empty expression that spans the entire input length\n const artificialStart = this.offset;\n const artificialEnd = this.offset + this.input.length;\n return new EmptyExpr(\n this.span(artificialStart, artificialEnd),\n this.sourceSpan(artificialStart, artificialEnd));\n }\n if (exprs.length == 1) return exprs[0];\n return new Chain(this.span(start), this.sourceSpan(start), exprs);\n }\n\n parsePipe(): AST {\n const start = this.inputIndex;\n let result = this.parseExpression();\n if (this.consumeOptionalOperator('|')) {\n if (this.parseFlags & ParseFlags.Action) {\n this.error('Cannot have a pipe in an action expression');\n }\n\n do {\n const nameStart = this.inputIndex;\n let nameId = this.expectIdentifierOrKeyword();\n let nameSpan: AbsoluteSourceSpan;\n let fullSpanEnd: number|undefined = undefined;\n if (nameId !== null) {\n nameSpan = this.sourceSpan(nameStart);\n } else {\n // No valid identifier was found, so we'll assume an empty pipe name ('').\n nameId = '';\n\n // However, there may have been whitespace present between the pipe character and the next\n // token in the sequence (or the end of input). We want to track this whitespace so that\n // the `BindingPipe` we produce covers not just the pipe character, but any trailing\n // whitespace beyond it. Another way of thinking about this is that the zero-length name\n // is assumed to be at the end of any whitespace beyond the pipe character.\n //\n // Therefore, we push the end of the `ParseSpan` for this pipe all the way up to the\n // beginning of the next token, or until the end of input if the next token is EOF.\n fullSpanEnd = this.next.index !== -1 ? this.next.index : this.input.length + this.offset;\n\n // The `nameSpan` for an empty pipe name is zero-length at the end of any whitespace\n // beyond the pipe character.\n nameSpan = new ParseSpan(fullSpanEnd, fullSpanEnd).toAbsolute(this.absoluteOffset);\n }\n\n const args: AST[] = [];\n while (this.consumeOptionalCharacter(chars.$COLON)) {\n args.push(this.parseExpression());\n\n // If there are additional expressions beyond the name, then the artificial end for the\n // name is no longer relevant.\n }\n result = new BindingPipe(\n this.span(start), this.sourceSpan(start, fullSpanEnd), result, nameId, args, nameSpan);\n } while (this.consumeOptionalOperator('|'));\n }\n\n return result;\n }\n\n parseExpression(): AST {\n return this.parseConditional();\n }\n\n parseConditional(): AST {\n const start = this.inputIndex;\n const result = this.parseLogicalOr();\n\n if (this.consumeOptionalOperator('?')) {\n const yes = this.parsePipe();\n let no: AST;\n if (!this.consumeOptionalCharacter(chars.$COLON)) {\n const end = this.inputIndex;\n const expression = this.input.substring(start, end);\n this.error(`Conditional expression ${expression} requires all 3 expressions`);\n no = new EmptyExpr(this.span(start), this.sourceSpan(start));\n } else {\n no = this.parsePipe();\n }\n return new Conditional(this.span(start), this.sourceSpan(start), result, yes, no);\n } else {\n return result;\n }\n }\n\n parseLogicalOr(): AST {\n // '||'\n const start = this.inputIndex;\n let result = this.parseLogicalAnd();\n while (this.consumeOptionalOperator('||')) {\n const right = this.parseLogicalAnd();\n result = new Binary(this.span(start), this.sourceSpan(start), '||', result, right);\n }\n return result;\n }\n\n parseLogicalAnd(): AST {\n // '&&'\n const start = this.inputIndex;\n let result = this.parseNullishCoalescing();\n while (this.consumeOptionalOperator('&&')) {\n const right = this.parseNullishCoalescing();\n result = new Binary(this.span(start), this.sourceSpan(start), '&&', result, right);\n }\n return result;\n }\n\n parseNullishCoalescing(): AST {\n // '??'\n const start = this.inputIndex;\n let result = this.parseEquality();\n while (this.consumeOptionalOperator('??')) {\n const right = this.parseEquality();\n result = new Binary(this.span(start), this.sourceSpan(start), '??', result, right);\n }\n return result;\n }\n\n parseEquality(): AST {\n // '==','!=','===','!=='\n const start = this.inputIndex;\n let result = this.parseRelational();\n while (this.next.type == TokenType.Operator) {\n const operator = this.next.strValue;\n switch (operator) {\n case '==':\n case '===':\n case '!=':\n case '!==':\n this.advance();\n const right = this.parseRelational();\n result = new Binary(this.span(start), this.sourceSpan(start), operator, result, right);\n continue;\n }\n break;\n }\n return result;\n }\n\n parseRelational(): AST {\n // '<', '>', '<=', '>='\n const start = this.inputIndex;\n let result = this.parseAdditive();\n while (this.next.type == TokenType.Operator) {\n const operator = this.next.strValue;\n switch (operator) {\n case '<':\n case '>':\n case '<=':\n case '>=':\n this.advance();\n const right = this.parseAdditive();\n result = new Binary(this.span(start), this.sourceSpan(start), operator, result, right);\n continue;\n }\n break;\n }\n return result;\n }\n\n parseAdditive(): AST {\n // '+', '-'\n const start = this.inputIndex;\n let result = this.parseMultiplicative();\n while (this.next.type == TokenType.Operator) {\n const operator = this.next.strValue;\n switch (operator) {\n case '+':\n case '-':\n this.advance();\n let right = this.parseMultiplicative();\n result = new Binary(this.span(start), this.sourceSpan(start), operator, result, right);\n continue;\n }\n break;\n }\n return result;\n }\n\n parseMultiplicative(): AST {\n // '*', '%', '/'\n const start = this.inputIndex;\n let result = this.parsePrefix();\n while (this.next.type == TokenType.Operator) {\n const operator = this.next.strValue;\n switch (operator) {\n case '*':\n case '%':\n case '/':\n this.advance();\n let right = this.parsePrefix();\n result = new Binary(this.span(start), this.sourceSpan(start), operator, result, right);\n continue;\n }\n break;\n }\n return result;\n }\n\n parsePrefix(): AST {\n if (this.next.type == TokenType.Operator) {\n const start = this.inputIndex;\n const operator = this.next.strValue;\n let result: AST;\n switch (operator) {\n case '+':\n this.advance();\n result = this.parsePrefix();\n return Unary.createPlus(this.span(start), this.sourceSpan(start), result);\n case '-':\n this.advance();\n result = this.parsePrefix();\n return Unary.createMinus(this.span(start), this.sourceSpan(start), result);\n case '!':\n this.advance();\n result = this.parsePrefix();\n return new PrefixNot(this.span(start), this.sourceSpan(start), result);\n }\n }\n return this.parseCallChain();\n }\n\n parseCallChain(): AST {\n const start = this.inputIndex;\n let result = this.parsePrimary();\n while (true) {\n if (this.consumeOptionalCharacter(chars.$PERIOD)) {\n result = this.parseAccessMember(result, start, false);\n } else if (this.consumeOptionalOperator('?.')) {\n if (this.consumeOptionalCharacter(chars.$LPAREN)) {\n result = this.parseCall(result, start, true);\n } else {\n result = this.consumeOptionalCharacter(chars.$LBRACKET) ?\n this.parseKeyedReadOrWrite(result, start, true) :\n this.parseAccessMember(result, start, true);\n }\n } else if (this.consumeOptionalCharacter(chars.$LBRACKET)) {\n result = this.parseKeyedReadOrWrite(result, start, false);\n } else if (this.consumeOptionalCharacter(chars.$LPAREN)) {\n result = this.parseCall(result, start, false);\n } else if (this.consumeOptionalOperator('!')) {\n result = new NonNullAssert(this.span(start), this.sourceSpan(start), result);\n\n } else {\n return result;\n }\n }\n }\n\n parsePrimary(): AST {\n const start = this.inputIndex;\n if (this.consumeOptionalCharacter(chars.$LPAREN)) {\n this.rparensExpected++;\n const result = this.parsePipe();\n this.rparensExpected--;\n this.expectCharacter(chars.$RPAREN);\n return result;\n\n } else if (this.next.isKeywordNull()) {\n this.advance();\n return new LiteralPrimitive(this.span(start), this.sourceSpan(start), null);\n\n } else if (this.next.isKeywordUndefined()) {\n this.advance();\n return new LiteralPrimitive(this.span(start), this.sourceSpan(start), void 0);\n\n } else if (this.next.isKeywordTrue()) {\n this.advance();\n return new LiteralPrimitive(this.span(start), this.sourceSpan(start), true);\n\n } else if (this.next.isKeywordFalse()) {\n this.advance();\n return new LiteralPrimitive(this.span(start), this.sourceSpan(start), false);\n\n } else if (this.next.isKeywordThis()) {\n this.advance();\n return new ThisReceiver(this.span(start), this.sourceSpan(start));\n } else if (this.consumeOptionalCharacter(chars.$LBRACKET)) {\n this.rbracketsExpected++;\n const elements = this.parseExpressionList(chars.$RBRACKET);\n this.rbracketsExpected--;\n this.expectCharacter(chars.$RBRACKET);\n return new LiteralArray(this.span(start), this.sourceSpan(start), elements);\n\n } else if (this.next.isCharacter(chars.$LBRACE)) {\n return this.parseLiteralMap();\n\n } else if (this.next.isIdentifier()) {\n return this.parseAccessMember(\n new ImplicitReceiver(this.span(start), this.sourceSpan(start)), start, false);\n } else if (this.next.isNumber()) {\n const value = this.next.toNumber();\n this.advance();\n return new LiteralPrimitive(this.span(start), this.sourceSpan(start), value);\n\n } else if (this.next.isString()) {\n const literalValue = this.next.toString();\n this.advance();\n return new LiteralPrimitive(this.span(start), this.sourceSpan(start), literalValue);\n\n } else if (this.next.isPrivateIdentifier()) {\n this._reportErrorForPrivateIdentifier(this.next, null);\n return new EmptyExpr(this.span(start), this.sourceSpan(start));\n\n } else if (this.index >= this.tokens.length) {\n this.error(`Unexpected end of expression: ${this.input}`);\n return new EmptyExpr(this.span(start), this.sourceSpan(start));\n } else {\n this.error(`Unexpected token ${this.next}`);\n return new EmptyExpr(this.span(start), this.sourceSpan(start));\n }\n }\n\n parseExpressionList(terminator: number): AST[] {\n const result: AST[] = [];\n\n do {\n if (!this.next.isCharacter(terminator)) {\n result.push(this.parsePipe());\n } else {\n break;\n }\n } while (this.consumeOptionalCharacter(chars.$COMMA));\n return result;\n }\n\n parseLiteralMap(): LiteralMap {\n const keys: LiteralMapKey[] = [];\n const values: AST[] = [];\n const start = this.inputIndex;\n this.expectCharacter(chars.$LBRACE);\n if (!this.consumeOptionalCharacter(chars.$RBRACE)) {\n this.rbracesExpected++;\n do {\n const keyStart = this.inputIndex;\n const quoted = this.next.isString();\n const key = this.expectIdentifierOrKeywordOrString();\n keys.push({key, quoted});\n\n // Properties with quoted keys can't use the shorthand syntax.\n if (quoted) {\n this.expectCharacter(chars.$COLON);\n values.push(this.parsePipe());\n } else if (this.consumeOptionalCharacter(chars.$COLON)) {\n values.push(this.parsePipe());\n } else {\n const span = this.span(keyStart);\n const sourceSpan = this.sourceSpan(keyStart);\n values.push(new PropertyRead(\n span, sourceSpan, sourceSpan, new ImplicitReceiver(span, sourceSpan), key));\n }\n } while (this.consumeOptionalCharacter(chars.$COMMA) &&\n !this.next.isCharacter(chars.$RBRACE));\n this.rbracesExpected--;\n this.expectCharacter(chars.$RBRACE);\n }\n return new LiteralMap(this.span(start), this.sourceSpan(start), keys, values);\n }\n\n parseAccessMember(readReceiver: AST, start: number, isSafe: boolean): AST {\n const nameStart = this.inputIndex;\n const id = this.withContext(ParseContextFlags.Writable, () => {\n const id = this.expectIdentifierOrKeyword() ?? '';\n if (id.length === 0) {\n this.error(`Expected identifier for property access`, readReceiver.span.end);\n }\n return id;\n });\n const nameSpan = this.sourceSpan(nameStart);\n let receiver: AST;\n\n if (isSafe) {\n if (this.consumeOptionalAssignment()) {\n this.error('The \\'?.\\' operator cannot be used in the assignment');\n receiver = new EmptyExpr(this.span(start), this.sourceSpan(start));\n } else {\n receiver = new SafePropertyRead(\n this.span(start), this.sourceSpan(start), nameSpan, readReceiver, id);\n }\n } else {\n if (this.consumeOptionalAssignment()) {\n if (!(this.parseFlags & ParseFlags.Action)) {\n this.error('Bindings cannot contain assignments');\n return new EmptyExpr(this.span(start), this.sourceSpan(start));\n }\n\n const value = this.parseConditional();\n receiver = new PropertyWrite(\n this.span(start), this.sourceSpan(start), nameSpan, readReceiver, id, value);\n } else {\n receiver =\n new PropertyRead(this.span(start), this.sourceSpan(start), nameSpan, readReceiver, id);\n }\n }\n\n return receiver;\n }\n\n parseCall(receiver: AST, start: number, isSafe: boolean): AST {\n const argumentStart = this.inputIndex;\n this.rparensExpected++;\n const args = this.parseCallArguments();\n const argumentSpan = this.span(argumentStart, this.inputIndex).toAbsolute(this.absoluteOffset);\n this.expectCharacter(chars.$RPAREN);\n this.rparensExpected--;\n const span = this.span(start);\n const sourceSpan = this.sourceSpan(start);\n return isSafe ? new SafeCall(span, sourceSpan, receiver, args, argumentSpan) :\n new Call(span, sourceSpan, receiver, args, argumentSpan);\n }\n\n private consumeOptionalAssignment(): boolean {\n // When parsing assignment events (originating from two-way-binding aka banana-in-a-box syntax),\n // it is valid for the primary expression to be terminated by the non-null operator. This\n // primary expression is substituted as LHS of the assignment operator to achieve\n // two-way-binding, such that the LHS could be the non-null operator. The grammar doesn't\n // naturally allow for this syntax, so assignment events are parsed specially.\n if ((this.parseFlags & ParseFlags.AssignmentEvent) && this.next.isOperator('!') &&\n this.peek(1).isOperator('=')) {\n // First skip over the ! operator.\n this.advance();\n // Then skip over the = operator, to fully consume the optional assignment operator.\n this.advance();\n return true;\n }\n\n return this.consumeOptionalOperator('=');\n }\n\n parseCallArguments(): BindingPipe[] {\n if (this.next.isCharacter(chars.$RPAREN)) return [];\n const positionals: AST[] = [];\n do {\n positionals.push(this.parsePipe());\n } while (this.consumeOptionalCharacter(chars.$COMMA));\n return positionals as BindingPipe[];\n }\n\n /**\n * Parses an identifier, a keyword, a string with an optional `-` in between,\n * and returns the string along with its absolute source span.\n */\n expectTemplateBindingKey(): TemplateBindingIdentifier {\n let result = '';\n let operatorFound = false;\n const start = this.currentAbsoluteOffset;\n do {\n result += this.expectIdentifierOrKeywordOrString();\n operatorFound = this.consumeOptionalOperator('-');\n if (operatorFound) {\n result += '-';\n }\n } while (operatorFound);\n return {\n source: result,\n span: new AbsoluteSourceSpan(start, start + result.length),\n };\n }\n\n /**\n * Parse microsyntax template expression and return a list of bindings or\n * parsing errors in case the given expression is invalid.\n *\n * For example,\n * ```\n * <div *ngFor=\"let item of items; index as i; trackBy: func\">\n * ```\n * contains five bindings:\n * 1. ngFor -> null\n * 2. item -> NgForOfContext.$implicit\n * 3. ngForOf -> items\n * 4. i -> NgForOfContext.index\n * 5. ngForTrackBy -> func\n *\n * For a full description of the microsyntax grammar, see\n * https://gist.github.com/mhevery/d3530294cff2e4a1b3fe15ff75d08855\n *\n * @param templateKey name of the microsyntax directive, like ngIf, ngFor,\n * without the *, along with its absolute span.\n */\n parseTemplateBindings(templateKey: TemplateBindingIdentifier): TemplateBindingParseResult {\n const bindings: TemplateBinding[] = [];\n\n // The first binding is for the template key itself\n // In *ngFor=\"let item of items\", key = \"ngFor\", value = null\n // In *ngIf=\"cond | pipe\", key = \"ngIf\", value = \"cond | pipe\"\n bindings.push(...this.parseDirectiveKeywordBindings(templateKey));\n\n while (this.index < this.tokens.length) {\n // If it starts with 'let', then this must be variable declaration\n const letBinding = this.parseLetBinding();\n if (letBinding) {\n bindings.push(letBinding);\n } else {\n // Two possible cases here, either `value \"as\" key` or\n // \"directive-keyword expression\". We don't know which case, but both\n // \"value\" and \"directive-keyword\" are template binding key, so consume\n // the key first.\n const key = this.expectTemplateBindingKey();\n // Peek at the next token, if it is \"as\" then this must be variable\n // declaration.\n const binding = this.parseAsBinding(key);\n if (binding) {\n bindings.push(binding);\n } else {\n // Otherwise the key must be a directive keyword, like \"of\". Transform\n // the key to actual key. Eg. of -> ngForOf, trackBy -> ngForTrackBy\n key.source =\n templateKey.source + key.source.charAt(0).toUpperCase() + key.source.substring(1);\n bindings.push(...this.parseDirectiveKeywordBindings(key));\n }\n }\n this.consumeStatementTerminator();\n }\n\n return new TemplateBindingParseResult(bindings, [] /* warnings */, this.errors);\n }\n\n parseKeyedReadOrWrite(receiver: AST, start: number, isSafe: boolean): AST {\n return this.withContext(ParseContextFlags.Writable, () => {\n this.rbracketsExpected++;\n const key = this.parsePipe();\n if (key instanceof EmptyExpr) {\n this.error(`Key access cannot be empty`);\n }\n this.rbracketsExpected--;\n this.expectCharacter(chars.$RBRACKET);\n if (this.consumeOptionalOperator('=')) {\n if (isSafe) {\n this.error('The \\'?.\\' operator cannot be used in the assignment');\n } else {\n const value = this.parseConditional();\n return new KeyedWrite(this.span(start), this.sourceSpan(start), receiver, key, value);\n }\n } else {\n return isSafe ? new SafeKeyedRead(this.span(start), this.sourceSpan(start), receiver, key) :\n new KeyedRead(this.span(start), this.sourceSpan(start), receiver, key);\n }\n\n return new EmptyExpr(this.span(start), this.sourceSpan(start));\n });\n }\n\n /**\n * Parse a directive keyword, followed by a mandatory expression.\n * For example, \"of items\", \"trackBy: func\".\n * The bindings are: ngForOf -> items, ngForTrackBy -> func\n * There could be an optional \"as\" binding that follows the expression.\n * For example,\n * ```\n * *ngFor=\"let item of items | slice:0:1 as collection\".\n * ^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^\n * keyword bound target optional 'as' binding\n * ```\n *\n * @param key binding key, for example, ngFor, ngIf, ngForOf, along with its\n * absolute span.\n */\n private parseDirectiveKeywordBindings(key: TemplateBindingIdentifier): TemplateBinding[] {\n const bindings: TemplateBinding[] = [];\n this.consumeOptionalCharacter(chars.$COLON); // trackBy: trackByFunction\n const value = this.getDirectiveBoundTarget();\n let spanEnd = this.currentAbsoluteOffset;\n // The binding could optionally be followed by \"as\". For example,\n // *ngIf=\"cond | pipe as x\". In this case, the key in the \"as\" binding\n // is \"x\" and the value is the template key itself (\"ngIf\"). Note that the\n // 'key' in the current context now becomes the \"value\" in the next binding.\n const asBinding = this.parseAsBinding(key);\n if (!asBinding) {\n this.consumeStatementTerminator();\n spanEnd = this.currentAbsoluteOffset;\n }\n const sourceSpan = new AbsoluteSourceSpan(key.span.start, spanEnd);\n bindings.push(new ExpressionBinding(sourceSpan, key, value));\n if (asBinding) {\n bindings.push(asBinding);\n }\n return bindings;\n }\n\n /**\n * Return the expression AST for the bound target of a directive keyword\n * binding. For example,\n * ```\n * *ngIf=\"condition | pipe\"\n * ^^^^^^^^^^^^^^^^ bound target for \"ngIf\"\n * *ngFor=\"let item of items\"\n * ^^^^^ bound target for \"ngForOf\"\n * ```\n */\n private getDirectiveBoundTarget(): ASTWithSource|null {\n if (this.next === EOF || this.peekKeywordAs() || this.peekKeywordLet()) {\n return null;\n }\n const ast = this.parsePipe(); // example: \"condition | async\"\n const {start, end} = ast.span;\n const value = this.input.substring(start, end);\n return new ASTWithSource(ast, value, this.location, this.absoluteOffset + start, this.errors);\n }\n\n /**\n * Return the binding for a variable declared using `as`. Note that the order\n * of the key-value pair in this declaration is reversed. For example,\n * ```\n * *ngFor=\"let item of items; index as i\"\n * ^^^^^ ^\n * value key\n * ```\n *\n * @param value name of the value in the declaration, \"ngIf\" in the example\n * above, along with its absolute span.\n */\n private parseAsBinding(value: TemplateBindingIdentifier): TemplateBinding|null {\n if (!this.peekKeywordAs()) {\n return null;\n }\n this.advance(); // consume the 'as' keyword\n const key = this.expectTemplateBindingKey();\n this.consumeStatementTerminator();\n const sourceSpan = new AbsoluteSourceSpan(value.span.start, this.currentAbsoluteOffset);\n return new VariableBinding(sourceSpan, key, value);\n }\n\n /**\n * Return the binding for a variable declared using `let`. For example,\n * ```\n * *ngFor=\"let item of items; let i=index;\"\n * ^^^^^^^^ ^^^^^^^^^^^\n * ```\n * In the first binding, `item` is bound to `NgForOfContext.$implicit`.\n * In the second binding, `i` is bound to `NgForOfContext.index`.\n */\n private parseLetBinding(): TemplateBinding|null {\n if (!this.peekKeywordLet()) {\n return null;\n }\n const spanStart = this.currentAbsoluteOffset;\n this.advance(); // consume the 'let' keyword\n const key = this.expectTemplateBindingKey();\n let value: TemplateBindingIdentifier|null = null;\n if (this.consumeOptionalOperator('=')) {\n value = this.expectTemplateBindingKey();\n }\n this.consumeStatementTerminator();\n const sourceSpan = new AbsoluteSourceSpan(spanStart, this.currentAbsoluteOffset);\n return new VariableBinding(sourceSpan, key, value);\n }\n\n /**\n * Consume the optional statement terminator: semicolon or comma.\n */\n private consumeStatementTerminator() {\n this.consumeOptionalCharacter(chars.$SEMICOLON) || this.consumeOptionalCharacter(chars.$COMMA);\n }\n\n /**\n * Records an error and skips over the token stream until reaching a recoverable point. See\n * `this.skip` for more details on token skipping.\n */\n error(message: string, index: number|null = null) {\n this.errors.push(new ParserError(message, this.input, this.locationText(index), this.location));\n this.skip();\n }\n\n private locationText(index: number|null = null) {\n if (index == null) index = this.index;\n return (index < this.tokens.length) ? `at column ${this.tokens[index].index + 1} in` :\n `at the end of the expression`;\n }\n\n /**\n * Records an error for an unexpected private identifier being discovered.\n * @param token Token representing a private identifier.\n * @param extraMessage Optional additional message being appended to the error.\n */\n private _reportErrorForPrivateIdentifier(token: Token, extraMessage: string|null) {\n let errorMessage =\n `Private identifiers are not supported. Unexpected private identifier: ${token}`;\n if (extraMessage !== null) {\n errorMessage += `, ${extraMessage}`;\n }\n this.error(errorMessage);\n }\n\n /**\n * Error recovery should skip tokens until it encounters a recovery point.\n *\n * The following are treated as unconditional recovery points:\n * - end of input\n * - ';' (parseChain() is always the root production, and it expects a ';')\n * - '|' (since pipes may be chained and each pipe expression may be treated independently)\n *\n * The following are conditional recovery points:\n * - ')', '}', ']' if one of calling productions is expecting one of these symbols\n * - This allows skip() to recover from errors such as '(a.) + 1' allowing more of the AST to\n * be retained (it doesn't skip any tokens as the ')' is retained because of the '(' begins\n * an '(' <expr> ')' production).\n * The recovery points of grouping symbols must be conditional as they must be skipped if\n * none of the calling productions are not expecting the closing token else we will never\n * make progress in the case of an extraneous group closing symbol (such as a stray ')').\n * That is, we skip a closing symbol if we are not in a grouping production.\n * - '=' in a `Writable` context\n * - In this context, we are able to recover after seeing the `=` operator, which\n * signals the presence of an independent rvalue expression following the `=` operator.\n *\n * If a production expects one of these token it increments the corresponding nesting count,\n * and then decrements it just prior to checking if the token is in the input.\n */\n private skip() {\n let n = this.next;\n while (this.index < this.tokens.length && !n.isCharacter(chars.$SEMICOLON) &&\n !n.isOperator('|') && (this.rparensExpected <= 0 || !n.isCharacter(chars.$RPAREN)) &&\n (this.rbracesExpected <= 0 || !n.isCharacter(chars.$RBRACE)) &&\n (this.rbracketsExpected <= 0 || !n.isCharacter(chars.$RBRACKET)) &&\n (!(this.context & ParseContextFlags.Writable) || !n.isOperator('='))) {\n if (this.next.isError()) {\n this.errors.push(\n new ParserError(this.next.toString()!, this.input, this.locationText(), this.location));\n }\n this.advance();\n n = this.next;\n }\n }\n}\n\nclass SimpleExpressionChecker extends RecursiveAstVisitor {\n errors: string[] = [];\n\n override visitPipe() {\n this.errors.push('pipes');\n }\n}\n/**\n * Computes the real offset in the original template for indexes in an interpolation.\n *\n * Because templates can have encoded HTML entities and the input passed to the parser at this stage\n * of the compiler is the _decoded_ value, we need to compute the real offset using the original\n * encoded values in the interpolated tokens. Note that this is only a special case handling for\n * `MlParserTokenType.ENCODED_ENTITY` token types. All other interpolated tokens are expected to\n * have parts which exactly match the input string for parsing the interpolation.\n *\n * @param interpolatedTokens The tokens for the interpolated value.\n *\n * @returns A map of index locations in the decoded template to indexes in the original template\n */\nfunction getIndexMapForOriginalTemplate(interpolatedTokens: InterpolatedAttributeToken[]|\n InterpolatedTextToken[]): Map<number, number> {\n let offsetMap = new Map<number, number>();\n let consumedInOriginalTemplate = 0;\n let consumedInInput = 0;\n let tokenIndex = 0;\n while (tokenIndex < interpolatedTokens.length) {\n const currentToken = interpolatedTokens[tokenIndex];\n if (currentToken.type === MlParserTokenType.ENCODED_ENTITY) {\n const [decoded, encoded] = currentToken.parts;\n consumedInOriginalTemplate += encoded.length;\n consumedInInput += decoded.length;\n } else {\n const lengthOfParts = currentToken.parts.reduce((sum, current) => sum + current.length, 0);\n consumedInInput += lengthOfParts;\n consumedInOriginalTemplate += lengthOfParts;\n }\n offsetMap.set(consumedInInput, consumedInOriginalTemplate);\n tokenIndex++;\n }\n return offsetMap;\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {I18nMeta} from '../i18n/i18n_ast';\nimport {ParseSourceSpan} from '../parse_util';\n\nimport {InterpolatedAttributeToken, InterpolatedTextToken} from './tokens';\n\ninterface BaseNode {\n sourceSpan: ParseSourceSpan;\n visit(visitor: Visitor, context: any): any;\n}\n\nexport type Node = Attribute|Comment|Element|Expansion|ExpansionCase|Text|Block|BlockParameter;\n\nexport abstract class NodeWithI18n implements BaseNode {\n constructor(public sourceSpan: ParseSourceSpan, public i18n?: I18nMeta) {}\n abstract visit(visitor: Visitor, context: any): any;\n}\n\nexport class Text extends NodeWithI18n {\n constructor(\n public value: string, sourceSpan: ParseSourceSpan, public tokens: InterpolatedTextToken[],\n i18n?: I18nMeta) {\n super(sourceSpan, i18n);\n }\n override visit(visitor: Visitor, context: any): any {\n return visitor.visitText(this, context);\n }\n}\n\nexport class Expansion extends NodeWithI18n {\n constructor(\n public switchValue: string, public type: string, public cases: ExpansionCase[],\n sourceSpan: ParseSourceSpan, public switchValueSourceSpan: ParseSourceSpan, i18n?: I18nMeta) {\n super(sourceSpan, i18n);\n }\n override visit(visitor: Visitor, context: any): any {\n return visitor.visitExpansion(this, context);\n }\n}\n\nexport class ExpansionCase implements BaseNode {\n constructor(\n public value: string, public expression: Node[], public sourceSpan: ParseSourceSpan,\n public valueSourceSpan: ParseSourceSpan, public expSourceSpan: ParseSourceSpan) {}\n\n visit(visitor: Visitor, context: any): any {\n return visitor.visitExpansionCase(this, context);\n }\n}\n\nexport class Attribute extends NodeWithI18n {\n constructor(\n public name: string, public value: string, sourceSpan: ParseSourceSpan,\n readonly keySpan: ParseSourceSpan|undefined, public valueSpan: ParseSourceSpan|undefined,\n public valueTokens: InterpolatedAttributeToken[]|undefined, i18n: I18nMeta|undefined) {\n super(sourceSpan, i18n);\n }\n override visit(visitor: Visitor, context: any): any {\n return visitor.visitAttribute(this, context);\n }\n}\n\nexport class Element extends NodeWithI18n {\n constructor(\n public name: string, public attrs: Attribute[], public children: Node[],\n sourceSpan: ParseSourceSpan, public startSourceSpan: ParseSourceSpan,\n public endSourceSpan: ParseSourceSpan|null = null, i18n?: I18nMeta) {\n super(sourceSpan, i18n);\n }\n override visit(visitor: Visitor, context: any): any {\n return visitor.visitElement(this, context);\n }\n}\n\nexport class Comment implements BaseNode {\n constructor(public value: string|null, public sourceSpan: ParseSourceSpan) {}\n visit(visitor: Visitor, context: any): any {\n return visitor.visitComment(this, context);\n }\n}\n\nexport class Block extends NodeWithI18n {\n constructor(\n public name: string, public parameters: BlockParameter[], public children: Node[],\n sourceSpan: ParseSourceSpan, public nameSpan: ParseSourceSpan,\n public startSourceSpan: ParseSourceSpan, public endSourceSpan: ParseSourceSpan|null = null,\n i18n?: I18nMeta) {\n super(sourceSpan, i18n);\n }\n\n override visit(visitor: Visitor, context: any) {\n return visitor.visitBlock(this, context);\n }\n}\n\nexport class BlockParameter implements BaseNode {\n constructor(public expression: string, public sourceSpan: ParseSourceSpan) {}\n\n visit(visitor: Visitor, context: any): any {\n return visitor.visitBlockParameter(this, context);\n }\n}\n\nexport interface Visitor {\n // Returning a truthy value from `visit()` will prevent `visitAll()` from the call to the typed\n // method and result returned will become the result included in `visitAll()`s result array.\n visit?(node: Node, context: any): any;\n\n visitElement(element: Element, context: any): any;\n visitAttribute(attribute: Attribute, context: any): any;\n visitText(text: Text, context: any): any;\n visitComment(comment: Comment, context: any): any;\n visitExpansion(expansion: Expansion, context: any): any;\n visitExpansionCase(expansionCase: ExpansionCase, context: any): any;\n visitBlock(block: Block, context: any): any;\n visitBlockParameter(parameter: BlockParameter, context: any): any;\n}\n\nexport function visitAll(visitor: Visitor, nodes: Node[], context: any = null): any[] {\n const result: any[] = [];\n\n const visit = visitor.visit ?\n (ast: Node) => visitor.visit!(ast, context) || ast.visit(visitor, context) :\n (ast: Node) => ast.visit(visitor, context);\n nodes.forEach(ast => {\n const astResult = visit(ast);\n if (astResult) {\n result.push(astResult);\n }\n });\n return result;\n}\n\nexport class RecursiveVisitor implements Visitor {\n constructor() {}\n\n visitElement(ast: Element, context: any): any {\n this.visitChildren(context, visit => {\n visit(ast.attrs);\n visit(ast.children);\n });\n }\n\n visitAttribute(ast: Attribute, context: any): any {}\n visitText(ast: Text, context: any): any {}\n visitComment(ast: Comment, context: any): any {}\n\n visitExpansion(ast: Expansion, context: any): any {\n return this.visitChildren(context, visit => {\n visit(ast.cases);\n });\n }\n\n visitExpansionCase(ast: ExpansionCase, context: any): any {}\n\n visitBlock(block: Block, context: any): any {\n this.visitChildren(context, visit => {\n visit(block.parameters);\n visit(block.children);\n });\n }\n\n visitBlockParameter(ast: BlockParameter, context: any): any {}\n\n private visitChildren<T extends Node>(\n context: any, cb: (visit: (<V extends Node>(children: V[]|undefined) => void)) => void) {\n let results: any[][] = [];\n let t = this;\n function visit<T extends Node>(children: T[]|undefined) {\n if (children) results.push(visitAll(t, children, context));\n }\n cb(visit);\n return Array.prototype.concat.apply([], results);\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {SchemaMetadata, SecurityContext} from '../core';\n\nexport abstract class ElementSchemaRegistry {\n abstract hasProperty(tagName: string, propName: string, schemaMetas: SchemaMetadata[]): boolean;\n abstract hasElement(tagName: string, schemaMetas: SchemaMetadata[]): boolean;\n abstract securityContext(elementName: string, propName: string, isAttribute: boolean):\n SecurityContext;\n abstract allKnownElementNames(): string[];\n abstract getMappedPropName(propName: string): string;\n abstract getDefaultComponentElementName(): string;\n abstract validateProperty(name: string): {error: boolean, msg?: string};\n abstract validateAttribute(name: string): {error: boolean, msg?: string};\n abstract normalizeAnimationStyleProperty(propName: string): string;\n abstract normalizeAnimationStyleValue(\n camelCaseProp: string, userProvidedProp: string,\n val: string|number): {error: string, value: string};\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA, SchemaMetadata, SecurityContext} from '../core';\nimport {isNgContainer, isNgContent} from '../ml_parser/tags';\nimport {dashCaseToCamelCase} from '../util';\n\nimport {SECURITY_SCHEMA} from './dom_security_schema';\nimport {ElementSchemaRegistry} from './element_schema_registry';\n\nconst BOOLEAN = 'boolean';\nconst NUMBER = 'number';\nconst STRING = 'string';\nconst OBJECT = 'object';\n\n/**\n * This array represents the DOM schema. It encodes inheritance, properties, and events.\n *\n * ## Overview\n *\n * Each line represents one kind of element. The `element_inheritance` and properties are joined\n * using `element_inheritance|properties` syntax.\n *\n * ## Element Inheritance\n *\n * The `element_inheritance` can be further subdivided as `element1,element2,...^parentElement`.\n * Here the individual elements are separated by `,` (commas). Every element in the list\n * has identical properties.\n *\n * An `element` may inherit additional properties from `parentElement` If no `^parentElement` is\n * specified then `\"\"` (blank) element is assumed.\n *\n * NOTE: The blank element inherits from root `[Element]` element, the super element of all\n * elements.\n *\n * NOTE an element prefix such as `:svg:` has no special meaning to the schema.\n *\n * ## Properties\n *\n * Each element has a set of properties separated by `,` (commas). Each property can be prefixed\n * by a special character designating its type:\n *\n * - (no prefix): property is a string.\n * - `*`: property represents an event.\n * - `!`: property is a boolean.\n * - `#`: property is a number.\n * - `%`: property is an object.\n *\n * ## Query\n *\n * The class creates an internal squas representation which allows to easily answer the query of\n * if a given property exist on a given element.\n *\n * NOTE: We don't yet support querying for types or events.\n * NOTE: This schema is auto extracted from `schema_extractor.ts` located in the test folder,\n * see dom_element_schema_registry_spec.ts\n */\n\n// =================================================================================================\n// =================================================================================================\n// =========== S T O P - S T O P - S T O P - S T O P - S T O P - S T O P ===========\n// =================================================================================================\n// =================================================================================================\n//\n// DO NOT EDIT THIS DOM SCHEMA WITHOUT A SECURITY REVIEW!\n//\n// Newly added properties must be security reviewed and assigned an appropriate SecurityContext in\n// dom_security_schema.ts. Reach out to mprobst & rjamet for details.\n//\n// =================================================================================================\n\nconst SCHEMA: string[] = [\n '[Element]|textContent,%ariaAtomic,%ariaAutoComplete,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColSpan,%ariaCurrent,%ariaDescription,%ariaDisabled,%ariaExpanded,%ariaHasPopup,%ariaHidden,%ariaKeyShortcuts,%ariaLabel,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%ariaRowSpan,%ariaSelected,%ariaSetSize,%ariaSort,%ariaValueMax,%ariaValueMin,%ariaValueNow,%ariaValueText,%classList,className,elementTiming,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*fullscreenchange,*fullscreenerror,*search,*webkitfullscreenchange,*webkitfullscreenerror,outerHTML,%part,#scrollLeft,#scrollTop,slot' +\n /* added manually to avoid breaking changes */\n ',*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored',\n '[HTMLElement]^[Element]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy',\n 'abbr,address,article,aside,b,bdi,bdo,cite,content,code,dd,dfn,dt,em,figcaption,figure,footer,header,hgroup,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy',\n 'media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,!preservesPitch,src,%srcObject,#volume',\n ':svg:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex',\n ':svg:graphics^:svg:|',\n ':svg:animation^:svg:|*begin,*end,*repeat',\n ':svg:geometry^:svg:|',\n ':svg:componentTransferFunction^:svg:|',\n ':svg:gradient^:svg:|',\n ':svg:textContent^:svg:graphics|',\n ':svg:textPositioning^:svg:textContent|',\n 'a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,rev,search,shape,target,text,type,username',\n 'area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,search,shape,target,username',\n 'audio^media|',\n 'br^[HTMLElement]|clear',\n 'base^[HTMLElement]|href,target',\n 'body^[HTMLElement]|aLink,background,bgColor,link,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink',\n 'button^[HTMLElement]|!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value',\n 'canvas^[HTMLElement]|#height,#width',\n 'content^[HTMLElement]|select',\n 'dl^[HTMLElement]|!compact',\n 'data^[HTMLElement]|value',\n 'datalist^[HTMLElement]|',\n 'details^[HTMLElement]|!open',\n 'dialog^[HTMLElement]|!open,returnValue',\n 'dir^[HTMLElement]|!compact',\n 'div^[HTMLElement]|align',\n 'embed^[HTMLElement]|align,height,name,src,type,width',\n 'fieldset^[HTMLElement]|!disabled,name',\n 'font^[HTMLElement]|color,face,size',\n 'form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target',\n 'frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src',\n 'frameset^[HTMLElement]|cols,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows',\n 'hr^[HTMLElement]|align,color,!noShade,size,width',\n 'head^[HTMLElement]|',\n 'h1,h2,h3,h4,h5,h6^[HTMLElement]|align',\n 'html^[HTMLElement]|version',\n 'iframe^[HTMLElement]|align,allow,!allowFullscreen,!allowPaymentRequest,csp,frameBorder,height,loading,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width',\n 'img^[HTMLElement]|align,alt,border,%crossOrigin,decoding,#height,#hspace,!isMap,loading,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width',\n 'input^[HTMLElement]|accept,align,alt,autocomplete,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width',\n 'li^[HTMLElement]|type,#value',\n 'label^[HTMLElement]|htmlFor',\n 'legend^[HTMLElement]|align',\n 'link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,imageSizes,imageSrcset,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type',\n 'map^[HTMLElement]|name',\n 'marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width',\n 'menu^[HTMLElement]|!compact',\n 'meta^[HTMLElement]|content,httpEquiv,media,name,scheme',\n 'meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value',\n 'ins,del^[HTMLElement]|cite,dateTime',\n 'ol^[HTMLElement]|!compact,!reversed,#start,type',\n 'object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width',\n 'optgroup^[HTMLElement]|!disabled,label',\n 'option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value',\n 'output^[HTMLElement]|defaultValue,%htmlFor,name,value',\n 'p^[HTMLElement]|align',\n 'param^[HTMLElement]|name,type,value,valueType',\n 'picture^[HTMLElement]|',\n 'pre^[HTMLElement]|#width',\n 'progress^[HTMLElement]|#max,#value',\n 'q,blockquote,cite^[HTMLElement]|',\n 'script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,!noModule,%referrerPolicy,src,text,type',\n 'select^[HTMLElement]|autocomplete,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value',\n 'slot^[HTMLElement]|name',\n 'source^[HTMLElement]|#height,media,sizes,src,srcset,type,#width',\n 'span^[HTMLElement]|',\n 'style^[HTMLElement]|!disabled,media,type',\n 'caption^[HTMLElement]|align',\n 'th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width',\n 'col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width',\n 'table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width',\n 'tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign',\n 'tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign',\n 'template^[HTMLElement]|',\n 'textarea^[HTMLElement]|autocomplete,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap',\n 'time^[HTMLElement]|dateTime',\n 'title^[HTMLElement]|text',\n 'track^[HTMLElement]|!default,kind,label,src,srclang',\n 'ul^[HTMLElement]|!compact,type',\n 'unknown^[HTMLElement]|',\n 'video^media|!disablePictureInPicture,#height,*enterpictureinpicture,*leavepictureinpicture,!playsInline,poster,#width',\n ':svg:a^:svg:graphics|',\n ':svg:animate^:svg:animation|',\n ':svg:animateMotion^:svg:animation|',\n ':svg:animateTransform^:svg:animation|',\n ':svg:circle^:svg:geometry|',\n ':svg:clipPath^:svg:graphics|',\n ':svg:defs^:svg:graphics|',\n ':svg:desc^:svg:|',\n ':svg:discard^:svg:|',\n ':svg:ellipse^:svg:geometry|',\n ':svg:feBlend^:svg:|',\n ':svg:feColorMatrix^:svg:|',\n ':svg:feComponentTransfer^:svg:|',\n ':svg:feComposite^:svg:|',\n ':svg:feConvolveMatrix^:svg:|',\n ':svg:feDiffuseLighting^:svg:|',\n ':svg:feDisplacementMap^:svg:|',\n ':svg:feDistantLight^:svg:|',\n ':svg:feDropShadow^:svg:|',\n ':svg:feFlood^:svg:|',\n ':svg:feFuncA^:svg:componentTransferFunction|',\n ':svg:feFuncB^:svg:componentTransferFunction|',\n ':svg:feFuncG^:svg:componentTransferFunction|',\n ':svg:feFuncR^:svg:componentTransferFunction|',\n ':svg:feGaussianBlur^:svg:|',\n ':svg:feImage^:svg:|',\n ':svg:feMerge^:svg:|',\n ':svg:feMergeNode^:svg:|',\n ':svg:feMorphology^:svg:|',\n ':svg:feOffset^:svg:|',\n ':svg:fePointLight^:svg:|',\n ':svg:feSpecularLighting^:svg:|',\n ':svg:feSpotLight^:svg:|',\n ':svg:feTile^:svg:|',\n ':svg:feTurbulence^:svg:|',\n ':svg:filter^:svg:|',\n ':svg:foreignObject^:svg:graphics|',\n ':svg:g^:svg:graphics|',\n ':svg:image^:svg:graphics|decoding',\n ':svg:line^:svg:geometry|',\n ':svg:linearGradient^:svg:gradient|',\n ':svg:mpath^:svg:|',\n ':svg:marker^:svg:|',\n ':svg:mask^:svg:|',\n ':svg:metadata^:svg:|',\n ':svg:path^:svg:geometry|',\n ':svg:pattern^:svg:|',\n ':svg:polygon^:svg:geometry|',\n ':svg:polyline^:svg:geometry|',\n ':svg:radialGradient^:svg:gradient|',\n ':svg:rect^:svg:geometry|',\n ':svg:svg^:svg:graphics|#currentScale,#zoomAndPan',\n ':svg:script^:svg:|type',\n ':svg:set^:svg:animation|',\n ':svg:stop^:svg:|',\n ':svg:style^:svg:|!disabled,media,title,type',\n ':svg:switch^:svg:graphics|',\n ':svg:symbol^:svg:|',\n ':svg:tspan^:svg:textPositioning|',\n ':svg:text^:svg:textPositioning|',\n ':svg:textPath^:svg:textContent|',\n ':svg:title^:svg:|',\n ':svg:use^:svg:graphics|',\n ':svg:view^:svg:|#zoomAndPan',\n 'data^[HTMLElement]|value',\n 'keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name',\n 'menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default',\n 'summary^[HTMLElement]|',\n 'time^[HTMLElement]|dateTime',\n ':svg:cursor^:svg:|',\n];\n\nconst _ATTR_TO_PROP = new Map(Object.entries({\n 'class': 'className',\n 'for': 'htmlFor',\n 'formaction': 'formAction',\n 'innerHtml': 'innerHTML',\n 'readonly': 'readOnly',\n 'tabindex': 'tabIndex',\n}));\n\n// Invert _ATTR_TO_PROP.\nconst _PROP_TO_ATTR =\n Array.from(_ATTR_TO_PROP).reduce((inverted, [propertyName, attributeName]) => {\n inverted.set(propertyName, attributeName);\n return inverted;\n }, new Map<string, string>());\n\nexport class DomElementSchemaRegistry extends ElementSchemaRegistry {\n private _schema = new Map<string, Map<string, string>>();\n // We don't allow binding to events for security reasons. Allowing event bindings would almost\n // certainly introduce bad XSS vulnerabilities. Instead, we store events in a separate schema.\n private _eventSchema = new Map<string, Set<string>>;\n\n constructor() {\n super();\n SCHEMA.forEach(encodedType => {\n const type = new Map<string, string>();\n const events: Set<string> = new Set();\n const [strType, strProperties] = encodedType.split('|');\n const properties = strProperties.split(',');\n const [typeNames, superName] = strType.split('^');\n typeNames.split(',').forEach(tag => {\n this._schema.set(tag.toLowerCase(), type);\n this._eventSchema.set(tag.toLowerCase(), events);\n });\n const superType = superName && this._schema.get(superName.toLowerCase());\n if (superType) {\n for (const [prop, value] of superType) {\n type.set(prop, value);\n }\n for (const superEvent of this._eventSchema.get(superName.toLowerCase())!) {\n events.add(superEvent);\n }\n }\n properties.forEach((property: string) => {\n if (property.length > 0) {\n switch (property[0]) {\n case '*':\n events.add(property.substring(1));\n break;\n case '!':\n type.set(property.substring(1), BOOLEAN);\n break;\n case '#':\n type.set(property.substring(1), NUMBER);\n break;\n case '%':\n type.set(property.substring(1), OBJECT);\n break;\n default:\n type.set(property, STRING);\n }\n }\n });\n });\n }\n\n override hasProperty(tagName: string, propName: string, schemaMetas: SchemaMetadata[]): boolean {\n if (schemaMetas.some((schema) => schema.name === NO_ERRORS_SCHEMA.name)) {\n return true;\n }\n\n if (tagName.indexOf('-') > -1) {\n if (isNgContainer(tagName) || isNgContent(tagName)) {\n return false;\n }\n\n if (schemaMetas.some((schema) => schema.name === CUSTOM_ELEMENTS_SCHEMA.name)) {\n // Can't tell now as we don't know which properties a custom element will get\n // once it is instantiated\n return true;\n }\n }\n\n const elementProperties =\n this._schema.get(tagName.toLowerCase()) || this._schema.get('unknown')!;\n return elementProperties.has(propName);\n }\n\n override hasElement(tagName: string, schemaMetas: SchemaMetadata[]): boolean {\n if (schemaMetas.some((schema) => schema.name === NO_ERRORS_SCHEMA.name)) {\n return true;\n }\n\n if (tagName.indexOf('-') > -1) {\n if (isNgContainer(tagName) || isNgContent(tagName)) {\n return true;\n }\n\n if (schemaMetas.some((schema) => schema.name === CUSTOM_ELEMENTS_SCHEMA.name)) {\n // Allow any custom elements\n return true;\n }\n }\n\n return this._schema.has(tagName.toLowerCase());\n }\n\n /**\n * securityContext returns the security context for the given property on the given DOM tag.\n *\n * Tag and property name are statically known and cannot change at runtime, i.e. it is not\n * possible to bind a value into a changing attribute or tag name.\n *\n * The filtering is based on a list of allowed tags|attributes. All attributes in the schema\n * above are assumed to have the 'NONE' security context, i.e. that they are safe inert\n * string values. Only specific well known attack vectors are assigned their appropriate context.\n */\n override securityContext(tagName: string, propName: string, isAttribute: boolean):\n SecurityContext {\n if (isAttribute) {\n // NB: For security purposes, use the mapped property name, not the attribute name.\n propName = this.getMappedPropName(propName);\n }\n\n // Make sure comparisons are case insensitive, so that case differences between attribute and\n // property names do not have a security impact.\n tagName = tagName.toLowerCase();\n propName = propName.toLowerCase();\n let ctx = SECURITY_SCHEMA()[tagName + '|' + propName];\n if (ctx) {\n return ctx;\n }\n ctx = SECURITY_SCHEMA()['*|' + propName];\n return ctx ? ctx : SecurityContext.NONE;\n }\n\n override getMappedPropName(propName: string): string {\n return _ATTR_TO_PROP.get(propName) ?? propName;\n }\n\n override getDefaultComponentElementName(): string {\n return 'ng-component';\n }\n\n override validateProperty(name: string): {error: boolean, msg?: string} {\n if (name.toLowerCase().startsWith('on')) {\n const msg = `Binding to event property '${name}' is disallowed for security reasons, ` +\n `please use (${name.slice(2)})=...` +\n `\\nIf '${name}' is a directive input, make sure the directive is imported by the` +\n ` current module.`;\n return {error: true, msg: msg};\n } else {\n return {error: false};\n }\n }\n\n override validateAttribute(name: string): {error: boolean, msg?: string} {\n if (name.toLowerCase().startsWith('on')) {\n const msg = `Binding to event attribute '${name}' is disallowed for security reasons, ` +\n `please use (${name.slice(2)})=...`;\n return {error: true, msg: msg};\n } else {\n return {error: false};\n }\n }\n\n override allKnownElementNames(): string[] {\n return Array.from(this._schema.keys());\n }\n\n allKnownAttributesOfElement(tagName: string): string[] {\n const elementProperties =\n this._schema.get(tagName.toLowerCase()) || this._schema.get('unknown')!;\n // Convert properties to attributes.\n return Array.from(elementProperties.keys()).map(prop => _PROP_TO_ATTR.get(prop) ?? prop);\n }\n\n allKnownEventsOfElement(tagName: string): string[] {\n return Array.from(this._eventSchema.get(tagName.toLowerCase()) ?? []);\n }\n\n override normalizeAnimationStyleProperty(propName: string): string {\n return dashCaseToCamelCase(propName);\n }\n\n override normalizeAnimationStyleValue(\n camelCaseProp: string, userProvidedProp: string,\n val: string|number): {error: string, value: string} {\n let unit: string = '';\n const strVal = val.toString().trim();\n let errorMsg: string = null!;\n\n if (_isPixelDimensionStyle(camelCaseProp) && val !== 0 && val !== '0') {\n if (typeof val === 'number') {\n unit = 'px';\n } else {\n const valAndSuffixMatch = val.match(/^[+-]?[\\d\\.]+([a-z]*)$/);\n if (valAndSuffixMatch && valAndSuffixMatch[1].length == 0) {\n errorMsg = `Please provide a CSS unit value for ${userProvidedProp}:${val}`;\n }\n }\n }\n return {error: errorMsg, value: strVal + unit};\n }\n}\n\nfunction _isPixelDimensionStyle(prop: string): boolean {\n switch (prop) {\n case 'width':\n case 'height':\n case 'minWidth':\n case 'minHeight':\n case 'maxWidth':\n case 'maxHeight':\n case 'left':\n case 'top':\n case 'bottom':\n case 'right':\n case 'fontSize':\n case 'outlineWidth':\n case 'outlineOffset':\n case 'paddingTop':\n case 'paddingLeft':\n case 'paddingBottom':\n case 'paddingRight':\n case 'marginTop':\n case 'marginLeft':\n case 'marginBottom':\n case 'marginRight':\n case 'borderRadius':\n case 'borderWidth':\n case 'borderTopWidth':\n case 'borderLeftWidth':\n case 'borderRightWidth':\n case 'borderBottomWidth':\n case 'textIndent':\n return true;\n\n default:\n return false;\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {DomElementSchemaRegistry} from '../schema/dom_element_schema_registry';\n\nimport {getNsPrefix, TagContentType, TagDefinition} from './tags';\n\nexport class HtmlTagDefinition implements TagDefinition {\n private closedByChildren: {[key: string]: boolean} = {};\n private contentType: TagContentType|\n {default: TagContentType, [namespace: string]: TagContentType};\n\n closedByParent = false;\n implicitNamespacePrefix: string|null;\n isVoid: boolean;\n ignoreFirstLf: boolean;\n canSelfClose: boolean;\n preventNamespaceInheritance: boolean;\n\n constructor({\n closedByChildren,\n implicitNamespacePrefix,\n contentType = TagContentType.PARSABLE_DATA,\n closedByParent = false,\n isVoid = false,\n ignoreFirstLf = false,\n preventNamespaceInheritance = false,\n canSelfClose = false,\n }: {\n closedByChildren?: string[],\n closedByParent?: boolean,\n implicitNamespacePrefix?: string,\n contentType?: TagContentType|{default: TagContentType, [namespace: string]: TagContentType},\n isVoid?: boolean,\n ignoreFirstLf?: boolean,\n preventNamespaceInheritance?: boolean,\n canSelfClose?: boolean\n } = {}) {\n if (closedByChildren && closedByChildren.length > 0) {\n closedByChildren.forEach(tagName => this.closedByChildren[tagName] = true);\n }\n this.isVoid = isVoid;\n this.closedByParent = closedByParent || isVoid;\n this.implicitNamespacePrefix = implicitNamespacePrefix || null;\n this.contentType = contentType;\n this.ignoreFirstLf = ignoreFirstLf;\n this.preventNamespaceInheritance = preventNamespaceInheritance;\n this.canSelfClose = canSelfClose ?? isVoid;\n }\n\n isClosedByChild(name: string): boolean {\n return this.isVoid || name.toLowerCase() in this.closedByChildren;\n }\n\n getContentType(prefix?: string): TagContentType {\n if (typeof this.contentType === 'object') {\n const overrideType = prefix === undefined ? undefined : this.contentType[prefix];\n return overrideType ?? this.contentType.default;\n }\n return this.contentType;\n }\n}\n\nlet DEFAULT_TAG_DEFINITION!: HtmlTagDefinition;\n\n// see https://www.w3.org/TR/html51/syntax.html#optional-tags\n// This implementation does not fully conform to the HTML5 spec.\nlet TAG_DEFINITIONS!: {[key: string]: HtmlTagDefinition};\n\nexport function getHtmlTagDefinition(tagName: string): HtmlTagDefinition {\n if (!TAG_DEFINITIONS) {\n DEFAULT_TAG_DEFINITION = new HtmlTagDefinition({canSelfClose: true});\n TAG_DEFINITIONS = Object.assign(Object.create(null), {\n 'base': new HtmlTagDefinition({isVoid: true}),\n 'meta': new HtmlTagDefinition({isVoid: true}),\n 'area': new HtmlTagDefinition({isVoid: true}),\n 'embed': new HtmlTagDefinition({isVoid: true}),\n 'link': new HtmlTagDefinition({isVoid: true}),\n 'img': new HtmlTagDefinition({isVoid: true}),\n 'input': new HtmlTagDefinition({isVoid: true}),\n 'param': new HtmlTagDefinition({isVoid: true}),\n 'hr': new HtmlTagDefinition({isVoid: true}),\n 'br': new HtmlTagDefinition({isVoid: true}),\n 'source': new HtmlTagDefinition({isVoid: true}),\n 'track': new HtmlTagDefinition({isVoid: true}),\n 'wbr': new HtmlTagDefinition({isVoid: true}),\n 'p': new HtmlTagDefinition({\n closedByChildren: [\n 'address', 'article', 'aside', 'blockquote', 'div', 'dl', 'fieldset',\n 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5',\n 'h6', 'header', 'hgroup', 'hr', 'main', 'nav', 'ol',\n 'p', 'pre', 'section', 'table', 'ul'\n ],\n closedByParent: true\n }),\n 'thead': new HtmlTagDefinition({closedByChildren: ['tbody', 'tfoot']}),\n 'tbody': new HtmlTagDefinition({closedByChildren: ['tbody', 'tfoot'], closedByParent: true}),\n 'tfoot': new HtmlTagDefinition({closedByChildren: ['tbody'], closedByParent: true}),\n 'tr': new HtmlTagDefinition({closedByChildren: ['tr'], closedByParent: true}),\n 'td': new HtmlTagDefinition({closedByChildren: ['td', 'th'], closedByParent: true}),\n 'th': new HtmlTagDefinition({closedByChildren: ['td', 'th'], closedByParent: true}),\n 'col': new HtmlTagDefinition({isVoid: true}),\n 'svg': new HtmlTagDefinition({implicitNamespacePrefix: 'svg'}),\n 'foreignObject': new HtmlTagDefinition({\n // Usually the implicit namespace here would be redundant since it will be inherited from\n // the parent `svg`, but we have to do it for `foreignObject`, because the way the parser\n // works is that the parent node of an end tag is its own start tag which means that\n // the `preventNamespaceInheritance` on `foreignObject` would have it default to the\n // implicit namespace which is `html`, unless specified otherwise.\n implicitNamespacePrefix: 'svg',\n // We want to prevent children of foreignObject from inheriting its namespace, because\n // the point of the element is to allow nodes from other namespaces to be inserted.\n preventNamespaceInheritance: true,\n }),\n 'math': new HtmlTagDefinition({implicitNamespacePrefix: 'math'}),\n 'li': new HtmlTagDefinition({closedByChildren: ['li'], closedByParent: true}),\n 'dt': new HtmlTagDefinition({closedByChildren: ['dt', 'dd']}),\n 'dd': new HtmlTagDefinition({closedByChildren: ['dt', 'dd'], closedByParent: true}),\n 'rb': new HtmlTagDefinition(\n {closedByChildren: ['rb', 'rt', 'rtc', 'rp'], closedByParent: true}),\n 'rt': new HtmlTagDefinition(\n {closedByChildren: ['rb', 'rt', 'rtc', 'rp'], closedByParent: true}),\n 'rtc': new HtmlTagDefinition({closedByChildren: ['rb', 'rtc', 'rp'], closedByParent: true}),\n 'rp': new HtmlTagDefinition(\n {closedByChildren: ['rb', 'rt', 'rtc', 'rp'], closedByParent: true}),\n 'optgroup': new HtmlTagDefinition({closedByChildren: ['optgroup'], closedByParent: true}),\n 'option':\n new HtmlTagDefinition({closedByChildren: ['option', 'optgroup'], closedByParent: true}),\n 'pre': new HtmlTagDefinition({ignoreFirstLf: true}),\n 'listing': new HtmlTagDefinition({ignoreFirstLf: true}),\n 'style': new HtmlTagDefinition({contentType: TagContentType.RAW_TEXT}),\n 'script': new HtmlTagDefinition({contentType: TagContentType.RAW_TEXT}),\n 'title': new HtmlTagDefinition({\n // The browser supports two separate `title` tags which have to use\n // a different content type: `HTMLTitleElement` and `SVGTitleElement`\n contentType: {default: TagContentType.ESCAPABLE_RAW_TEXT, svg: TagContentType.PARSABLE_DATA}\n }),\n 'textarea': new HtmlTagDefinition(\n {contentType: TagContentType.ESCAPABLE_RAW_TEXT, ignoreFirstLf: true}),\n });\n\n new DomElementSchemaRegistry().allKnownElementNames().forEach(knownTagName => {\n if (!TAG_DEFINITIONS[knownTagName] && getNsPrefix(knownTagName) === null) {\n TAG_DEFINITIONS[knownTagName] = new HtmlTagDefinition({canSelfClose: false});\n }\n });\n }\n // We have to make both a case-sensitive and a case-insensitive lookup, because\n // HTML tag names are case insensitive, whereas some SVG tags are case sensitive.\n return TAG_DEFINITIONS[tagName] ?? TAG_DEFINITIONS[tagName.toLowerCase()] ??\n DEFAULT_TAG_DEFINITION;\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nconst TAG_TO_PLACEHOLDER_NAMES: {[k: string]: string} = {\n 'A': 'LINK',\n 'B': 'BOLD_TEXT',\n 'BR': 'LINE_BREAK',\n 'EM': 'EMPHASISED_TEXT',\n 'H1': 'HEADING_LEVEL1',\n 'H2': 'HEADING_LEVEL2',\n 'H3': 'HEADING_LEVEL3',\n 'H4': 'HEADING_LEVEL4',\n 'H5': 'HEADING_LEVEL5',\n 'H6': 'HEADING_LEVEL6',\n 'HR': 'HORIZONTAL_RULE',\n 'I': 'ITALIC_TEXT',\n 'LI': 'LIST_ITEM',\n 'LINK': 'MEDIA_LINK',\n 'OL': 'ORDERED_LIST',\n 'P': 'PARAGRAPH',\n 'Q': 'QUOTATION',\n 'S': 'STRIKETHROUGH_TEXT',\n 'SMALL': 'SMALL_TEXT',\n 'SUB': 'SUBSTRIPT',\n 'SUP': 'SUPERSCRIPT',\n 'TBODY': 'TABLE_BODY',\n 'TD': 'TABLE_CELL',\n 'TFOOT': 'TABLE_FOOTER',\n 'TH': 'TABLE_HEADER_CELL',\n 'THEAD': 'TABLE_HEADER',\n 'TR': 'TABLE_ROW',\n 'TT': 'MONOSPACED_TEXT',\n 'U': 'UNDERLINED_TEXT',\n 'UL': 'UNORDERED_LIST',\n};\n\n/**\n * Creates unique names for placeholder with different content.\n *\n * Returns the same placeholder name when the content is identical.\n */\nexport class PlaceholderRegistry {\n // Count the occurrence of the base name top generate a unique name\n private _placeHolderNameCounts: {[k: string]: number} = {};\n // Maps signature to placeholder names\n private _signatureToName: {[k: string]: string} = {};\n\n getStartTagPlaceholderName(tag: string, attrs: {[k: string]: string}, isVoid: boolean): string {\n const signature = this._hashTag(tag, attrs, isVoid);\n if (this._signatureToName[signature]) {\n return this._signatureToName[signature];\n }\n\n const upperTag = tag.toUpperCase();\n const baseName = TAG_TO_PLACEHOLDER_NAMES[upperTag] || `TAG_${upperTag}`;\n const name = this._generateUniqueName(isVoid ? baseName : `START_${baseName}`);\n\n this._signatureToName[signature] = name;\n\n return name;\n }\n\n getCloseTagPlaceholderName(tag: string): string {\n const signature = this._hashClosingTag(tag);\n if (this._signatureToName[signature]) {\n return this._signatureToName[signature];\n }\n\n const upperTag = tag.toUpperCase();\n const baseName = TAG_TO_PLACEHOLDER_NAMES[upperTag] || `TAG_${upperTag}`;\n const name = this._generateUniqueName(`CLOSE_${baseName}`);\n\n this._signatureToName[signature] = name;\n\n return name;\n }\n\n getPlaceholderName(name: string, content: string): string {\n const upperName = name.toUpperCase();\n const signature = `PH: ${upperName}=${content}`;\n if (this._signatureToName[signature]) {\n return this._signatureToName[signature];\n }\n\n const uniqueName = this._generateUniqueName(upperName);\n this._signatureToName[signature] = uniqueName;\n\n return uniqueName;\n }\n\n getUniquePlaceholder(name: string): string {\n return this._generateUniqueName(name.toUpperCase());\n }\n\n getStartBlockPlaceholderName(name: string, parameters: string[]): string {\n const signature = this._hashBlock(name, parameters);\n if (this._signatureToName[signature]) {\n return this._signatureToName[signature];\n }\n\n const placeholder = this._generateUniqueName(`START_BLOCK_${this._toSnakeCase(name)}`);\n this._signatureToName[signature] = placeholder;\n return placeholder;\n }\n\n getCloseBlockPlaceholderName(name: string): string {\n const signature = this._hashClosingBlock(name);\n if (this._signatureToName[signature]) {\n return this._signatureToName[signature];\n }\n\n const placeholder = this._generateUniqueName(`CLOSE_BLOCK_${this._toSnakeCase(name)}`);\n this._signatureToName[signature] = placeholder;\n return placeholder;\n }\n\n\n // Generate a hash for a tag - does not take attribute order into account\n private _hashTag(tag: string, attrs: {[k: string]: string}, isVoid: boolean): string {\n const start = `<${tag}`;\n const strAttrs = Object.keys(attrs).sort().map((name) => ` ${name}=${attrs[name]}`).join('');\n const end = isVoid ? '/>' : `></${tag}>`;\n\n return start + strAttrs + end;\n }\n\n private _hashClosingTag(tag: string): string {\n return this._hashTag(`/${tag}`, {}, false);\n }\n\n private _hashBlock(name: string, parameters: string[]): string {\n const params = parameters.length === 0 ? '' : ` (${parameters.sort().join('; ')})`;\n return `@${name}${params} {}`;\n }\n\n private _hashClosingBlock(name: string): string {\n return this._hashBlock(`close_${name}`, []);\n }\n\n private _toSnakeCase(name: string) {\n return name.toUpperCase().replace(/[^A-Z0-9]/g, '_');\n }\n\n private _generateUniqueName(base: string): string {\n const seen = this._placeHolderNameCounts.hasOwnProperty(base);\n if (!seen) {\n this._placeHolderNameCounts[base] = 1;\n return base;\n }\n\n const id = this._placeHolderNameCounts[base];\n this._placeHolderNameCounts[base] = id + 1;\n return `${base}_${id}`;\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {Lexer as ExpressionLexer} from '../expression_parser/lexer';\nimport {Parser as ExpressionParser} from '../expression_parser/parser';\nimport * as html from '../ml_parser/ast';\nimport {InterpolationConfig} from '../ml_parser/defaults';\nimport {getHtmlTagDefinition} from '../ml_parser/html_tags';\nimport {InterpolatedAttributeToken, InterpolatedTextToken, TokenType} from '../ml_parser/tokens';\nimport {ParseSourceSpan} from '../parse_util';\n\nimport * as i18n from './i18n_ast';\nimport {PlaceholderRegistry} from './serializers/placeholder';\n\nconst _expParser = new ExpressionParser(new ExpressionLexer());\n\nexport type VisitNodeFn = (html: html.Node, i18n: i18n.Node) => i18n.Node;\n\nexport interface I18nMessageFactory {\n (nodes: html.Node[], meaning: string|undefined, description: string|undefined,\n customId: string|undefined, visitNodeFn?: VisitNodeFn): i18n.Message;\n}\n\n/**\n * Returns a function converting html nodes to an i18n Message given an interpolationConfig\n */\nexport function createI18nMessageFactory(\n interpolationConfig: InterpolationConfig, containerBlocks: Set<string>): I18nMessageFactory {\n const visitor = new _I18nVisitor(_expParser, interpolationConfig, containerBlocks);\n return (nodes, meaning, description, customId, visitNodeFn) =>\n visitor.toI18nMessage(nodes, meaning, description, customId, visitNodeFn);\n}\n\ninterface I18nMessageVisitorContext {\n isIcu: boolean;\n icuDepth: number;\n placeholderRegistry: PlaceholderRegistry;\n placeholderToContent: {[phName: string]: i18n.MessagePlaceholder};\n placeholderToMessage: {[phName: string]: i18n.Message};\n visitNodeFn: VisitNodeFn;\n}\n\nfunction noopVisitNodeFn(_html: html.Node, i18n: i18n.Node): i18n.Node {\n return i18n;\n}\n\nclass _I18nVisitor implements html.Visitor {\n constructor(\n private _expressionParser: ExpressionParser,\n private _interpolationConfig: InterpolationConfig,\n private _containerBlocks: Set<string>,\n ) {}\n\n public toI18nMessage(\n nodes: html.Node[], meaning = '', description = '', customId = '',\n visitNodeFn: VisitNodeFn|undefined): i18n.Message {\n const context: I18nMessageVisitorContext = {\n isIcu: nodes.length == 1 && nodes[0] instanceof html.Expansion,\n icuDepth: 0,\n placeholderRegistry: new PlaceholderRegistry(),\n placeholderToContent: {},\n placeholderToMessage: {},\n visitNodeFn: visitNodeFn || noopVisitNodeFn,\n };\n\n const i18nodes: i18n.Node[] = html.visitAll(this, nodes, context);\n\n return new i18n.Message(\n i18nodes, context.placeholderToContent, context.placeholderToMessage, meaning, description,\n customId);\n }\n\n visitElement(el: html.Element, context: I18nMessageVisitorContext): i18n.Node {\n const children = html.visitAll(this, el.children, context);\n const attrs: {[k: string]: string} = {};\n el.attrs.forEach(attr => {\n // Do not visit the attributes, translatable ones are top-level ASTs\n attrs[attr.name] = attr.value;\n });\n\n const isVoid: boolean = getHtmlTagDefinition(el.name).isVoid;\n const startPhName =\n context.placeholderRegistry.getStartTagPlaceholderName(el.name, attrs, isVoid);\n context.placeholderToContent[startPhName] = {\n text: el.startSourceSpan.toString(),\n sourceSpan: el.startSourceSpan,\n };\n\n let closePhName = '';\n\n if (!isVoid) {\n closePhName = context.placeholderRegistry.getCloseTagPlaceholderName(el.name);\n context.placeholderToContent[closePhName] = {\n text: `</${el.name}>`,\n sourceSpan: el.endSourceSpan ?? el.sourceSpan,\n };\n }\n\n const node = new i18n.TagPlaceholder(\n el.name, attrs, startPhName, closePhName, children, isVoid, el.sourceSpan,\n el.startSourceSpan, el.endSourceSpan);\n return context.visitNodeFn(el, node);\n }\n\n visitAttribute(attribute: html.Attribute, context: I18nMessageVisitorContext): i18n.Node {\n const node = attribute.valueTokens === undefined || attribute.valueTokens.length === 1 ?\n new i18n.Text(attribute.value, attribute.valueSpan || attribute.sourceSpan) :\n this._visitTextWithInterpolation(\n attribute.valueTokens, attribute.valueSpan || attribute.sourceSpan, context,\n attribute.i18n);\n return context.visitNodeFn(attribute, node);\n }\n\n visitText(text: html.Text, context: I18nMessageVisitorContext): i18n.Node {\n const node = text.tokens.length === 1 ?\n new i18n.Text(text.value, text.sourceSpan) :\n this._visitTextWithInterpolation(text.tokens, text.sourceSpan, context, text.i18n);\n return context.visitNodeFn(text, node);\n }\n\n visitComment(comment: html.Comment, context: I18nMessageVisitorContext): i18n.Node|null {\n return null;\n }\n\n visitExpansion(icu: html.Expansion, context: I18nMessageVisitorContext): i18n.Node {\n context.icuDepth++;\n const i18nIcuCases: {[k: string]: i18n.Node} = {};\n const i18nIcu = new i18n.Icu(icu.switchValue, icu.type, i18nIcuCases, icu.sourceSpan);\n icu.cases.forEach((caze): void => {\n i18nIcuCases[caze.value] = new i18n.Container(\n caze.expression.map((node) => node.visit(this, context)), caze.expSourceSpan);\n });\n context.icuDepth--;\n\n if (context.isIcu || context.icuDepth > 0) {\n // Returns an ICU node when:\n // - the message (vs a part of the message) is an ICU message, or\n // - the ICU message is nested.\n const expPh = context.placeholderRegistry.getUniquePlaceholder(`VAR_${icu.type}`);\n i18nIcu.expressionPlaceholder = expPh;\n context.placeholderToContent[expPh] = {\n text: icu.switchValue,\n sourceSpan: icu.switchValueSourceSpan,\n };\n return context.visitNodeFn(icu, i18nIcu);\n }\n\n // Else returns a placeholder\n // ICU placeholders should not be replaced with their original content but with the their\n // translations.\n // TODO(vicb): add a html.Node -> i18n.Message cache to avoid having to re-create the msg\n const phName = context.placeholderRegistry.getPlaceholderName('ICU', icu.sourceSpan.toString());\n context.placeholderToMessage[phName] = this.toI18nMessage([icu], '', '', '', undefined);\n const node = new i18n.IcuPlaceholder(i18nIcu, phName, icu.sourceSpan);\n return context.visitNodeFn(icu, node);\n }\n\n visitExpansionCase(_icuCase: html.ExpansionCase, _context: I18nMessageVisitorContext): i18n.Node {\n throw new Error('Unreachable code');\n }\n\n visitBlock(block: html.Block, context: I18nMessageVisitorContext) {\n const children = html.visitAll(this, block.children, context);\n\n if (this._containerBlocks.has(block.name)) {\n return new i18n.Container(children, block.sourceSpan);\n }\n\n const parameters = block.parameters.map(param => param.expression);\n const startPhName =\n context.placeholderRegistry.getStartBlockPlaceholderName(block.name, parameters);\n const closePhName = context.placeholderRegistry.getCloseBlockPlaceholderName(block.name);\n\n context.placeholderToContent[startPhName] = {\n text: block.startSourceSpan.toString(),\n sourceSpan: block.startSourceSpan,\n };\n\n context.placeholderToContent[closePhName] = {\n text: block.endSourceSpan ? block.endSourceSpan.toString() : '}',\n sourceSpan: block.endSourceSpan ?? block.sourceSpan,\n };\n\n const node = new i18n.BlockPlaceholder(\n block.name, parameters, startPhName, closePhName, children, block.sourceSpan,\n block.startSourceSpan, block.endSourceSpan);\n return context.visitNodeFn(block, node);\n }\n\n visitBlockParameter(_parameter: html.BlockParameter, _context: I18nMessageVisitorContext) {\n throw new Error('Unreachable code');\n }\n\n /**\n * Convert, text and interpolated tokens up into text and placeholder pieces.\n *\n * @param tokens The text and interpolated tokens.\n * @param sourceSpan The span of the whole of the `text` string.\n * @param context The current context of the visitor, used to compute and store placeholders.\n * @param previousI18n Any i18n metadata associated with this `text` from a previous pass.\n */\n private _visitTextWithInterpolation(\n tokens: (InterpolatedTextToken|InterpolatedAttributeToken)[], sourceSpan: ParseSourceSpan,\n context: I18nMessageVisitorContext, previousI18n: i18n.I18nMeta|undefined): i18n.Node {\n // Return a sequence of `Text` and `Placeholder` nodes grouped in a `Container`.\n const nodes: i18n.Node[] = [];\n // We will only create a container if there are actually interpolations,\n // so this flag tracks that.\n let hasInterpolation = false;\n for (const token of tokens) {\n switch (token.type) {\n case TokenType.INTERPOLATION:\n case TokenType.ATTR_VALUE_INTERPOLATION:\n hasInterpolation = true;\n const expression = token.parts[1];\n const baseName = extractPlaceholderName(expression) || 'INTERPOLATION';\n const phName = context.placeholderRegistry.getPlaceholderName(baseName, expression);\n context.placeholderToContent[phName] = {\n text: token.parts.join(''),\n sourceSpan: token.sourceSpan\n };\n nodes.push(new i18n.Placeholder(expression, phName, token.sourceSpan));\n break;\n default:\n if (token.parts[0].length > 0) {\n // This token is text or an encoded entity.\n // If it is following on from a previous text node then merge it into that node\n // Otherwise, if it is following an interpolation, then add a new node.\n const previous = nodes[nodes.length - 1];\n if (previous instanceof i18n.Text) {\n previous.value += token.parts[0];\n previous.sourceSpan = new ParseSourceSpan(\n previous.sourceSpan.start, token.sourceSpan.end, previous.sourceSpan.fullStart,\n previous.sourceSpan.details);\n } else {\n nodes.push(new i18n.Text(token.parts[0], token.sourceSpan));\n }\n }\n break;\n }\n }\n\n if (hasInterpolation) {\n // Whitespace removal may have invalidated the interpolation source-spans.\n reusePreviousSourceSpans(nodes, previousI18n);\n return new i18n.Container(nodes, sourceSpan);\n } else {\n return nodes[0];\n }\n }\n}\n\n/**\n * Re-use the source-spans from `previousI18n` metadata for the `nodes`.\n *\n * Whitespace removal can invalidate the source-spans of interpolation nodes, so we\n * reuse the source-span stored from a previous pass before the whitespace was removed.\n *\n * @param nodes The `Text` and `Placeholder` nodes to be processed.\n * @param previousI18n Any i18n metadata for these `nodes` stored from a previous pass.\n */\nfunction reusePreviousSourceSpans(nodes: i18n.Node[], previousI18n: i18n.I18nMeta|undefined): void {\n if (previousI18n instanceof i18n.Message) {\n // The `previousI18n` is an i18n `Message`, so we are processing an `Attribute` with i18n\n // metadata. The `Message` should consist only of a single `Container` that contains the\n // parts (`Text` and `Placeholder`) to process.\n assertSingleContainerMessage(previousI18n);\n previousI18n = previousI18n.nodes[0];\n }\n\n if (previousI18n instanceof i18n.Container) {\n // The `previousI18n` is a `Container`, which means that this is a second i18n extraction pass\n // after whitespace has been removed from the AST nodes.\n assertEquivalentNodes(previousI18n.children, nodes);\n\n // Reuse the source-spans from the first pass.\n for (let i = 0; i < nodes.length; i++) {\n nodes[i].sourceSpan = previousI18n.children[i].sourceSpan;\n }\n }\n}\n\n/**\n * Asserts that the `message` contains exactly one `Container` node.\n */\nfunction assertSingleContainerMessage(message: i18n.Message): void {\n const nodes = message.nodes;\n if (nodes.length !== 1 || !(nodes[0] instanceof i18n.Container)) {\n throw new Error(\n 'Unexpected previous i18n message - expected it to consist of only a single `Container` node.');\n }\n}\n\n/**\n * Asserts that the `previousNodes` and `node` collections have the same number of elements and\n * corresponding elements have the same node type.\n */\nfunction assertEquivalentNodes(previousNodes: i18n.Node[], nodes: i18n.Node[]): void {\n if (previousNodes.length !== nodes.length) {\n throw new Error('The number of i18n message children changed between first and second pass.');\n }\n if (previousNodes.some((node, i) => nodes[i].constructor !== node.constructor)) {\n throw new Error(\n 'The types of the i18n message children changed between first and second pass.');\n }\n}\n\nconst _CUSTOM_PH_EXP =\n /\\/\\/[\\s\\S]*i18n[\\s\\S]*\\([\\s\\S]*ph[\\s\\S]*=[\\s\\S]*(\"|')([\\s\\S]*?)\\1[\\s\\S]*\\)/g;\n\nfunction extractPlaceholderName(input: string): string {\n return input.split(_CUSTOM_PH_EXP)[2];\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {ParseError, ParseSourceSpan} from '../parse_util';\n\n/**\n * An i18n error.\n */\nexport class I18nError extends ParseError {\n constructor(span: ParseSourceSpan, msg: string) {\n super(span, msg);\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n// Mapping between all HTML entity names and their unicode representation.\n// Generated from https://html.spec.whatwg.org/multipage/entities.json by stripping\n// the `&` and `;` from the keys and removing the duplicates.\n// see https://www.w3.org/TR/html51/syntax.html#named-character-references\nexport const NAMED_ENTITIES: Record<string, string> = {\n 'AElig': '\\u00C6',\n 'AMP': '\\u0026',\n 'amp': '\\u0026',\n 'Aacute': '\\u00C1',\n 'Abreve': '\\u0102',\n 'Acirc': '\\u00C2',\n 'Acy': '\\u0410',\n 'Afr': '\\uD835\\uDD04',\n 'Agrave': '\\u00C0',\n 'Alpha': '\\u0391',\n 'Amacr': '\\u0100',\n 'And': '\\u2A53',\n 'Aogon': '\\u0104',\n 'Aopf': '\\uD835\\uDD38',\n 'ApplyFunction': '\\u2061',\n 'af': '\\u2061',\n 'Aring': '\\u00C5',\n 'angst': '\\u00C5',\n 'Ascr': '\\uD835\\uDC9C',\n 'Assign': '\\u2254',\n 'colone': '\\u2254',\n 'coloneq': '\\u2254',\n 'Atilde': '\\u00C3',\n 'Auml': '\\u00C4',\n 'Backslash': '\\u2216',\n 'setminus': '\\u2216',\n 'setmn': '\\u2216',\n 'smallsetminus': '\\u2216',\n 'ssetmn': '\\u2216',\n 'Barv': '\\u2AE7',\n 'Barwed': '\\u2306',\n 'doublebarwedge': '\\u2306',\n 'Bcy': '\\u0411',\n 'Because': '\\u2235',\n 'becaus': '\\u2235',\n 'because': '\\u2235',\n 'Bernoullis': '\\u212C',\n 'Bscr': '\\u212C',\n 'bernou': '\\u212C',\n 'Beta': '\\u0392',\n 'Bfr': '\\uD835\\uDD05',\n 'Bopf': '\\uD835\\uDD39',\n 'Breve': '\\u02D8',\n 'breve': '\\u02D8',\n 'Bumpeq': '\\u224E',\n 'HumpDownHump': '\\u224E',\n 'bump': '\\u224E',\n 'CHcy': '\\u0427',\n 'COPY': '\\u00A9',\n 'copy': '\\u00A9',\n 'Cacute': '\\u0106',\n 'Cap': '\\u22D2',\n 'CapitalDifferentialD': '\\u2145',\n 'DD': '\\u2145',\n 'Cayleys': '\\u212D',\n 'Cfr': '\\u212D',\n 'Ccaron': '\\u010C',\n 'Ccedil': '\\u00C7',\n 'Ccirc': '\\u0108',\n 'Cconint': '\\u2230',\n 'Cdot': '\\u010A',\n 'Cedilla': '\\u00B8',\n 'cedil': '\\u00B8',\n 'CenterDot': '\\u00B7',\n 'centerdot': '\\u00B7',\n 'middot': '\\u00B7',\n 'Chi': '\\u03A7',\n 'CircleDot': '\\u2299',\n 'odot': '\\u2299',\n 'CircleMinus': '\\u2296',\n 'ominus': '\\u2296',\n 'CirclePlus': '\\u2295',\n 'oplus': '\\u2295',\n 'CircleTimes': '\\u2297',\n 'otimes': '\\u2297',\n 'ClockwiseContourIntegral': '\\u2232',\n 'cwconint': '\\u2232',\n 'CloseCurlyDoubleQuote': '\\u201D',\n 'rdquo': '\\u201D',\n 'rdquor': '\\u201D',\n 'CloseCurlyQuote': '\\u2019',\n 'rsquo': '\\u2019',\n 'rsquor': '\\u2019',\n 'Colon': '\\u2237',\n 'Proportion': '\\u2237',\n 'Colone': '\\u2A74',\n 'Congruent': '\\u2261',\n 'equiv': '\\u2261',\n 'Conint': '\\u222F',\n 'DoubleContourIntegral': '\\u222F',\n 'ContourIntegral': '\\u222E',\n 'conint': '\\u222E',\n 'oint': '\\u222E',\n 'Copf': '\\u2102',\n 'complexes': '\\u2102',\n 'Coproduct': '\\u2210',\n 'coprod': '\\u2210',\n 'CounterClockwiseContourIntegral': '\\u2233',\n 'awconint': '\\u2233',\n 'Cross': '\\u2A2F',\n 'Cscr': '\\uD835\\uDC9E',\n 'Cup': '\\u22D3',\n 'CupCap': '\\u224D',\n 'asympeq': '\\u224D',\n 'DDotrahd': '\\u2911',\n 'DJcy': '\\u0402',\n 'DScy': '\\u0405',\n 'DZcy': '\\u040F',\n 'Dagger': '\\u2021',\n 'ddagger': '\\u2021',\n 'Darr': '\\u21A1',\n 'Dashv': '\\u2AE4',\n 'DoubleLeftTee': '\\u2AE4',\n 'Dcaron': '\\u010E',\n 'Dcy': '\\u0414',\n 'Del': '\\u2207',\n 'nabla': '\\u2207',\n 'Delta': '\\u0394',\n 'Dfr': '\\uD835\\uDD07',\n 'DiacriticalAcute': '\\u00B4',\n 'acute': '\\u00B4',\n 'DiacriticalDot': '\\u02D9',\n 'dot': '\\u02D9',\n 'DiacriticalDoubleAcute': '\\u02DD',\n 'dblac': '\\u02DD',\n 'DiacriticalGrave': '\\u0060',\n 'grave': '\\u0060',\n 'DiacriticalTilde': '\\u02DC',\n 'tilde': '\\u02DC',\n 'Diamond': '\\u22C4',\n 'diam': '\\u22C4',\n 'diamond': '\\u22C4',\n 'DifferentialD': '\\u2146',\n 'dd': '\\u2146',\n 'Dopf': '\\uD835\\uDD3B',\n 'Dot': '\\u00A8',\n 'DoubleDot': '\\u00A8',\n 'die': '\\u00A8',\n 'uml': '\\u00A8',\n 'DotDot': '\\u20DC',\n 'DotEqual': '\\u2250',\n 'doteq': '\\u2250',\n 'esdot': '\\u2250',\n 'DoubleDownArrow': '\\u21D3',\n 'Downarrow': '\\u21D3',\n 'dArr': '\\u21D3',\n 'DoubleLeftArrow': '\\u21D0',\n 'Leftarrow': '\\u21D0',\n 'lArr': '\\u21D0',\n 'DoubleLeftRightArrow': '\\u21D4',\n 'Leftrightarrow': '\\u21D4',\n 'hArr': '\\u21D4',\n 'iff': '\\u21D4',\n 'DoubleLongLeftArrow': '\\u27F8',\n 'Longleftarrow': '\\u27F8',\n 'xlArr': '\\u27F8',\n 'DoubleLongLeftRightArrow': '\\u27FA',\n 'Longleftrightarrow': '\\u27FA',\n 'xhArr': '\\u27FA',\n 'DoubleLongRightArrow': '\\u27F9',\n 'Longrightarrow': '\\u27F9',\n 'xrArr': '\\u27F9',\n 'DoubleRightArrow': '\\u21D2',\n 'Implies': '\\u21D2',\n 'Rightarrow': '\\u21D2',\n 'rArr': '\\u21D2',\n 'DoubleRightTee': '\\u22A8',\n 'vDash': '\\u22A8',\n 'DoubleUpArrow': '\\u21D1',\n 'Uparrow': '\\u21D1',\n 'uArr': '\\u21D1',\n 'DoubleUpDownArrow': '\\u21D5',\n 'Updownarrow': '\\u21D5',\n 'vArr': '\\u21D5',\n 'DoubleVerticalBar': '\\u2225',\n 'par': '\\u2225',\n 'parallel': '\\u2225',\n 'shortparallel': '\\u2225',\n 'spar': '\\u2225',\n 'DownArrow': '\\u2193',\n 'ShortDownArrow': '\\u2193',\n 'darr': '\\u2193',\n 'downarrow': '\\u2193',\n 'DownArrowBar': '\\u2913',\n 'DownArrowUpArrow': '\\u21F5',\n 'duarr': '\\u21F5',\n 'DownBreve': '\\u0311',\n 'DownLeftRightVector': '\\u2950',\n 'DownLeftTeeVector': '\\u295E',\n 'DownLeftVector': '\\u21BD',\n 'leftharpoondown': '\\u21BD',\n 'lhard': '\\u21BD',\n 'DownLeftVectorBar': '\\u2956',\n 'DownRightTeeVector': '\\u295F',\n 'DownRightVector': '\\u21C1',\n 'rhard': '\\u21C1',\n 'rightharpoondown': '\\u21C1',\n 'DownRightVectorBar': '\\u2957',\n 'DownTee': '\\u22A4',\n 'top': '\\u22A4',\n 'DownTeeArrow': '\\u21A7',\n 'mapstodown': '\\u21A7',\n 'Dscr': '\\uD835\\uDC9F',\n 'Dstrok': '\\u0110',\n 'ENG': '\\u014A',\n 'ETH': '\\u00D0',\n 'Eacute': '\\u00C9',\n 'Ecaron': '\\u011A',\n 'Ecirc': '\\u00CA',\n 'Ecy': '\\u042D',\n 'Edot': '\\u0116',\n 'Efr': '\\uD835\\uDD08',\n 'Egrave': '\\u00C8',\n 'Element': '\\u2208',\n 'in': '\\u2208',\n 'isin': '\\u2208',\n 'isinv': '\\u2208',\n 'Emacr': '\\u0112',\n 'EmptySmallSquare': '\\u25FB',\n 'EmptyVerySmallSquare': '\\u25AB',\n 'Eogon': '\\u0118',\n 'Eopf': '\\uD835\\uDD3C',\n 'Epsilon': '\\u0395',\n 'Equal': '\\u2A75',\n 'EqualTilde': '\\u2242',\n 'eqsim': '\\u2242',\n 'esim': '\\u2242',\n 'Equilibrium': '\\u21CC',\n 'rightleftharpoons': '\\u21CC',\n 'rlhar': '\\u21CC',\n 'Escr': '\\u2130',\n 'expectation': '\\u2130',\n 'Esim': '\\u2A73',\n 'Eta': '\\u0397',\n 'Euml': '\\u00CB',\n 'Exists': '\\u2203',\n 'exist': '\\u2203',\n 'ExponentialE': '\\u2147',\n 'ee': '\\u2147',\n 'exponentiale': '\\u2147',\n 'Fcy': '\\u0424',\n 'Ffr': '\\uD835\\uDD09',\n 'FilledSmallSquare': '\\u25FC',\n 'FilledVerySmallSquare': '\\u25AA',\n 'blacksquare': '\\u25AA',\n 'squarf': '\\u25AA',\n 'squf': '\\u25AA',\n 'Fopf': '\\uD835\\uDD3D',\n 'ForAll': '\\u2200',\n 'forall': '\\u2200',\n 'Fouriertrf': '\\u2131',\n 'Fscr': '\\u2131',\n 'GJcy': '\\u0403',\n 'GT': '\\u003E',\n 'gt': '\\u003E',\n 'Gamma': '\\u0393',\n 'Gammad': '\\u03DC',\n 'Gbreve': '\\u011E',\n 'Gcedil': '\\u0122',\n 'Gcirc': '\\u011C',\n 'Gcy': '\\u0413',\n 'Gdot': '\\u0120',\n 'Gfr': '\\uD835\\uDD0A',\n 'Gg': '\\u22D9',\n 'ggg': '\\u22D9',\n 'Gopf': '\\uD835\\uDD3E',\n 'GreaterEqual': '\\u2265',\n 'ge': '\\u2265',\n 'geq': '\\u2265',\n 'GreaterEqualLess': '\\u22DB',\n 'gel': '\\u22DB',\n 'gtreqless': '\\u22DB',\n 'GreaterFullEqual': '\\u2267',\n 'gE': '\\u2267',\n 'geqq': '\\u2267',\n 'GreaterGreater': '\\u2AA2',\n 'GreaterLess': '\\u2277',\n 'gl': '\\u2277',\n 'gtrless': '\\u2277',\n 'GreaterSlantEqual': '\\u2A7E',\n 'geqslant': '\\u2A7E',\n 'ges': '\\u2A7E',\n 'GreaterTilde': '\\u2273',\n 'gsim': '\\u2273',\n 'gtrsim': '\\u2273',\n 'Gscr': '\\uD835\\uDCA2',\n 'Gt': '\\u226B',\n 'NestedGreaterGreater': '\\u226B',\n 'gg': '\\u226B',\n 'HARDcy': '\\u042A',\n 'Hacek': '\\u02C7',\n 'caron': '\\u02C7',\n 'Hat': '\\u005E',\n 'Hcirc': '\\u0124',\n 'Hfr': '\\u210C',\n 'Poincareplane': '\\u210C',\n 'HilbertSpace': '\\u210B',\n 'Hscr': '\\u210B',\n 'hamilt': '\\u210B',\n 'Hopf': '\\u210D',\n 'quaternions': '\\u210D',\n 'HorizontalLine': '\\u2500',\n 'boxh': '\\u2500',\n 'Hstrok': '\\u0126',\n 'HumpEqual': '\\u224F',\n 'bumpe': '\\u224F',\n 'bumpeq': '\\u224F',\n 'IEcy': '\\u0415',\n 'IJlig': '\\u0132',\n 'IOcy': '\\u0401',\n 'Iacute': '\\u00CD',\n 'Icirc': '\\u00CE',\n 'Icy': '\\u0418',\n 'Idot': '\\u0130',\n 'Ifr': '\\u2111',\n 'Im': '\\u2111',\n 'image': '\\u2111',\n 'imagpart': '\\u2111',\n 'Igrave': '\\u00CC',\n 'Imacr': '\\u012A',\n 'ImaginaryI': '\\u2148',\n 'ii': '\\u2148',\n 'Int': '\\u222C',\n 'Integral': '\\u222B',\n 'int': '\\u222B',\n 'Intersection': '\\u22C2',\n 'bigcap': '\\u22C2',\n 'xcap': '\\u22C2',\n 'InvisibleComma': '\\u2063',\n 'ic': '\\u2063',\n 'InvisibleTimes': '\\u2062',\n 'it': '\\u2062',\n 'Iogon': '\\u012E',\n 'Iopf': '\\uD835\\uDD40',\n 'Iota': '\\u0399',\n 'Iscr': '\\u2110',\n 'imagline': '\\u2110',\n 'Itilde': '\\u0128',\n 'Iukcy': '\\u0406',\n 'Iuml': '\\u00CF',\n 'Jcirc': '\\u0134',\n 'Jcy': '\\u0419',\n 'Jfr': '\\uD835\\uDD0D',\n 'Jopf': '\\uD835\\uDD41',\n 'Jscr': '\\uD835\\uDCA5',\n 'Jsercy': '\\u0408',\n 'Jukcy': '\\u0404',\n 'KHcy': '\\u0425',\n 'KJcy': '\\u040C',\n 'Kappa': '\\u039A',\n 'Kcedil': '\\u0136',\n 'Kcy': '\\u041A',\n 'Kfr': '\\uD835\\uDD0E',\n 'Kopf': '\\uD835\\uDD42',\n 'Kscr': '\\uD835\\uDCA6',\n 'LJcy': '\\u0409',\n 'LT': '\\u003C',\n 'lt': '\\u003C',\n 'Lacute': '\\u0139',\n 'Lambda': '\\u039B',\n 'Lang': '\\u27EA',\n 'Laplacetrf': '\\u2112',\n 'Lscr': '\\u2112',\n 'lagran': '\\u2112',\n 'Larr': '\\u219E',\n 'twoheadleftarrow': '\\u219E',\n 'Lcaron': '\\u013D',\n 'Lcedil': '\\u013B',\n 'Lcy': '\\u041B',\n 'LeftAngleBracket': '\\u27E8',\n 'lang': '\\u27E8',\n 'langle': '\\u27E8',\n 'LeftArrow': '\\u2190',\n 'ShortLeftArrow': '\\u2190',\n 'larr': '\\u2190',\n 'leftarrow': '\\u2190',\n 'slarr': '\\u2190',\n 'LeftArrowBar': '\\u21E4',\n 'larrb': '\\u21E4',\n 'LeftArrowRightArrow': '\\u21C6',\n 'leftrightarrows': '\\u21C6',\n 'lrarr': '\\u21C6',\n 'LeftCeiling': '\\u2308',\n 'lceil': '\\u2308',\n 'LeftDoubleBracket': '\\u27E6',\n 'lobrk': '\\u27E6',\n 'LeftDownTeeVector': '\\u2961',\n 'LeftDownVector': '\\u21C3',\n 'dharl': '\\u21C3',\n 'downharpoonleft': '\\u21C3',\n 'LeftDownVectorBar': '\\u2959',\n 'LeftFloor': '\\u230A',\n 'lfloor': '\\u230A',\n 'LeftRightArrow': '\\u2194',\n 'harr': '\\u2194',\n 'leftrightarrow': '\\u2194',\n 'LeftRightVector': '\\u294E',\n 'LeftTee': '\\u22A3',\n 'dashv': '\\u22A3',\n 'LeftTeeArrow': '\\u21A4',\n 'mapstoleft': '\\u21A4',\n 'LeftTeeVector': '\\u295A',\n 'LeftTriangle': '\\u22B2',\n 'vartriangleleft': '\\u22B2',\n 'vltri': '\\u22B2',\n 'LeftTriangleBar': '\\u29CF',\n 'LeftTriangleEqual': '\\u22B4',\n 'ltrie': '\\u22B4',\n 'trianglelefteq': '\\u22B4',\n 'LeftUpDownVector': '\\u2951',\n 'LeftUpTeeVector': '\\u2960',\n 'LeftUpVector': '\\u21BF',\n 'uharl': '\\u21BF',\n 'upharpoonleft': '\\u21BF',\n 'LeftUpVectorBar': '\\u2958',\n 'LeftVector': '\\u21BC',\n 'leftharpoonup': '\\u21BC',\n 'lharu': '\\u21BC',\n 'LeftVectorBar': '\\u2952',\n 'LessEqualGreater': '\\u22DA',\n 'leg': '\\u22DA',\n 'lesseqgtr': '\\u22DA',\n 'LessFullEqual': '\\u2266',\n 'lE': '\\u2266',\n 'leqq': '\\u2266',\n 'LessGreater': '\\u2276',\n 'lessgtr': '\\u2276',\n 'lg': '\\u2276',\n 'LessLess': '\\u2AA1',\n 'LessSlantEqual': '\\u2A7D',\n 'leqslant': '\\u2A7D',\n 'les': '\\u2A7D',\n 'LessTilde': '\\u2272',\n 'lesssim': '\\u2272',\n 'lsim': '\\u2272',\n 'Lfr': '\\uD835\\uDD0F',\n 'Ll': '\\u22D8',\n 'Lleftarrow': '\\u21DA',\n 'lAarr': '\\u21DA',\n 'Lmidot': '\\u013F',\n 'LongLeftArrow': '\\u27F5',\n 'longleftarrow': '\\u27F5',\n 'xlarr': '\\u27F5',\n 'LongLeftRightArrow': '\\u27F7',\n 'longleftrightarrow': '\\u27F7',\n 'xharr': '\\u27F7',\n 'LongRightArrow': '\\u27F6',\n 'longrightarrow': '\\u27F6',\n 'xrarr': '\\u27F6',\n 'Lopf': '\\uD835\\uDD43',\n 'LowerLeftArrow': '\\u2199',\n 'swarr': '\\u2199',\n 'swarrow': '\\u2199',\n 'LowerRightArrow': '\\u2198',\n 'searr': '\\u2198',\n 'searrow': '\\u2198',\n 'Lsh': '\\u21B0',\n 'lsh': '\\u21B0',\n 'Lstrok': '\\u0141',\n 'Lt': '\\u226A',\n 'NestedLessLess': '\\u226A',\n 'll': '\\u226A',\n 'Map': '\\u2905',\n 'Mcy': '\\u041C',\n 'MediumSpace': '\\u205F',\n 'Mellintrf': '\\u2133',\n 'Mscr': '\\u2133',\n 'phmmat': '\\u2133',\n 'Mfr': '\\uD835\\uDD10',\n 'MinusPlus': '\\u2213',\n 'mnplus': '\\u2213',\n 'mp': '\\u2213',\n 'Mopf': '\\uD835\\uDD44',\n 'Mu': '\\u039C',\n 'NJcy': '\\u040A',\n 'Nacute': '\\u0143',\n 'Ncaron': '\\u0147',\n 'Ncedil': '\\u0145',\n 'Ncy': '\\u041D',\n 'NegativeMediumSpace': '\\u200B',\n 'NegativeThickSpace': '\\u200B',\n 'NegativeThinSpace': '\\u200B',\n 'NegativeVeryThinSpace': '\\u200B',\n 'ZeroWidthSpace': '\\u200B',\n 'NewLine': '\\u000A',\n 'Nfr': '\\uD835\\uDD11',\n 'NoBreak': '\\u2060',\n 'NonBreakingSpace': '\\u00A0',\n 'nbsp': '\\u00A0',\n 'Nopf': '\\u2115',\n 'naturals': '\\u2115',\n 'Not': '\\u2AEC',\n 'NotCongruent': '\\u2262',\n 'nequiv': '\\u2262',\n 'NotCupCap': '\\u226D',\n 'NotDoubleVerticalBar': '\\u2226',\n 'npar': '\\u2226',\n 'nparallel': '\\u2226',\n 'nshortparallel': '\\u2226',\n 'nspar': '\\u2226',\n 'NotElement': '\\u2209',\n 'notin': '\\u2209',\n 'notinva': '\\u2209',\n 'NotEqual': '\\u2260',\n 'ne': '\\u2260',\n 'NotEqualTilde': '\\u2242\\u0338',\n 'nesim': '\\u2242\\u0338',\n 'NotExists': '\\u2204',\n 'nexist': '\\u2204',\n 'nexists': '\\u2204',\n 'NotGreater': '\\u226F',\n 'ngt': '\\u226F',\n 'ngtr': '\\u226F',\n 'NotGreaterEqual': '\\u2271',\n 'nge': '\\u2271',\n 'ngeq': '\\u2271',\n 'NotGreaterFullEqual': '\\u2267\\u0338',\n 'ngE': '\\u2267\\u0338',\n 'ngeqq': '\\u2267\\u0338',\n 'NotGreaterGreater': '\\u226B\\u0338',\n 'nGtv': '\\u226B\\u0338',\n 'NotGreaterLess': '\\u2279',\n 'ntgl': '\\u2279',\n 'NotGreaterSlantEqual': '\\u2A7E\\u0338',\n 'ngeqslant': '\\u2A7E\\u0338',\n 'nges': '\\u2A7E\\u0338',\n 'NotGreaterTilde': '\\u2275',\n 'ngsim': '\\u2275',\n 'NotHumpDownHump': '\\u224E\\u0338',\n 'nbump': '\\u224E\\u0338',\n 'NotHumpEqual': '\\u224F\\u0338',\n 'nbumpe': '\\u224F\\u0338',\n 'NotLeftTriangle': '\\u22EA',\n 'nltri': '\\u22EA',\n 'ntriangleleft': '\\u22EA',\n 'NotLeftTriangleBar': '\\u29CF\\u0338',\n 'NotLeftTriangleEqual': '\\u22EC',\n 'nltrie': '\\u22EC',\n 'ntrianglelefteq': '\\u22EC',\n 'NotLess': '\\u226E',\n 'nless': '\\u226E',\n 'nlt': '\\u226E',\n 'NotLessEqual': '\\u2270',\n 'nle': '\\u2270',\n 'nleq': '\\u2270',\n 'NotLessGreater': '\\u2278',\n 'ntlg': '\\u2278',\n 'NotLessLess': '\\u226A\\u0338',\n 'nLtv': '\\u226A\\u0338',\n 'NotLessSlantEqual': '\\u2A7D\\u0338',\n 'nleqslant': '\\u2A7D\\u0338',\n 'nles': '\\u2A7D\\u0338',\n 'NotLessTilde': '\\u2274',\n 'nlsim': '\\u2274',\n 'NotNestedGreaterGreater': '\\u2AA2\\u0338',\n 'NotNestedLessLess': '\\u2AA1\\u0338',\n 'NotPrecedes': '\\u2280',\n 'npr': '\\u2280',\n 'nprec': '\\u2280',\n 'NotPrecedesEqual': '\\u2AAF\\u0338',\n 'npre': '\\u2AAF\\u0338',\n 'npreceq': '\\u2AAF\\u0338',\n 'NotPrecedesSlantEqual': '\\u22E0',\n 'nprcue': '\\u22E0',\n 'NotReverseElement': '\\u220C',\n 'notni': '\\u220C',\n 'notniva': '\\u220C',\n 'NotRightTriangle': '\\u22EB',\n 'nrtri': '\\u22EB',\n 'ntriangleright': '\\u22EB',\n 'NotRightTriangleBar': '\\u29D0\\u0338',\n 'NotRightTriangleEqual': '\\u22ED',\n 'nrtrie': '\\u22ED',\n 'ntrianglerighteq': '\\u22ED',\n 'NotSquareSubset': '\\u228F\\u0338',\n 'NotSquareSubsetEqual': '\\u22E2',\n 'nsqsube': '\\u22E2',\n 'NotSquareSuperset': '\\u2290\\u0338',\n 'NotSquareSupersetEqual': '\\u22E3',\n 'nsqsupe': '\\u22E3',\n 'NotSubset': '\\u2282\\u20D2',\n 'nsubset': '\\u2282\\u20D2',\n 'vnsub': '\\u2282\\u20D2',\n 'NotSubsetEqual': '\\u2288',\n 'nsube': '\\u2288',\n 'nsubseteq': '\\u2288',\n 'NotSucceeds': '\\u2281',\n 'nsc': '\\u2281',\n 'nsucc': '\\u2281',\n 'NotSucceedsEqual': '\\u2AB0\\u0338',\n 'nsce': '\\u2AB0\\u0338',\n 'nsucceq': '\\u2AB0\\u0338',\n 'NotSucceedsSlantEqual': '\\u22E1',\n 'nsccue': '\\u22E1',\n 'NotSucceedsTilde': '\\u227F\\u0338',\n 'NotSuperset': '\\u2283\\u20D2',\n 'nsupset': '\\u2283\\u20D2',\n 'vnsup': '\\u2283\\u20D2',\n 'NotSupersetEqual': '\\u2289',\n 'nsupe': '\\u2289',\n 'nsupseteq': '\\u2289',\n 'NotTilde': '\\u2241',\n 'nsim': '\\u2241',\n 'NotTildeEqual': '\\u2244',\n 'nsime': '\\u2244',\n 'nsimeq': '\\u2244',\n 'NotTildeFullEqual': '\\u2247',\n 'ncong': '\\u2247',\n 'NotTildeTilde': '\\u2249',\n 'nap': '\\u2249',\n 'napprox': '\\u2249',\n 'NotVerticalBar': '\\u2224',\n 'nmid': '\\u2224',\n 'nshortmid': '\\u2224',\n 'nsmid': '\\u2224',\n 'Nscr': '\\uD835\\uDCA9',\n 'Ntilde': '\\u00D1',\n 'Nu': '\\u039D',\n 'OElig': '\\u0152',\n 'Oacute': '\\u00D3',\n 'Ocirc': '\\u00D4',\n 'Ocy': '\\u041E',\n 'Odblac': '\\u0150',\n 'Ofr': '\\uD835\\uDD12',\n 'Ograve': '\\u00D2',\n 'Omacr': '\\u014C',\n 'Omega': '\\u03A9',\n 'ohm': '\\u03A9',\n 'Omicron': '\\u039F',\n 'Oopf': '\\uD835\\uDD46',\n 'OpenCurlyDoubleQuote': '\\u201C',\n 'ldquo': '\\u201C',\n 'OpenCurlyQuote': '\\u2018',\n 'lsquo': '\\u2018',\n 'Or': '\\u2A54',\n 'Oscr': '\\uD835\\uDCAA',\n 'Oslash': '\\u00D8',\n 'Otilde': '\\u00D5',\n 'Otimes': '\\u2A37',\n 'Ouml': '\\u00D6',\n 'OverBar': '\\u203E',\n 'oline': '\\u203E',\n 'OverBrace': '\\u23DE',\n 'OverBracket': '\\u23B4',\n 'tbrk': '\\u23B4',\n 'OverParenthesis': '\\u23DC',\n 'PartialD': '\\u2202',\n 'part': '\\u2202',\n 'Pcy': '\\u041F',\n 'Pfr': '\\uD835\\uDD13',\n 'Phi': '\\u03A6',\n 'Pi': '\\u03A0',\n 'PlusMinus': '\\u00B1',\n 'plusmn': '\\u00B1',\n 'pm': '\\u00B1',\n 'Popf': '\\u2119',\n 'primes': '\\u2119',\n 'Pr': '\\u2ABB',\n 'Precedes': '\\u227A',\n 'pr': '\\u227A',\n 'prec': '\\u227A',\n 'PrecedesEqual': '\\u2AAF',\n 'pre': '\\u2AAF',\n 'preceq': '\\u2AAF',\n 'PrecedesSlantEqual': '\\u227C',\n 'prcue': '\\u227C',\n 'preccurlyeq': '\\u227C',\n 'PrecedesTilde': '\\u227E',\n 'precsim': '\\u227E',\n 'prsim': '\\u227E',\n 'Prime': '\\u2033',\n 'Product': '\\u220F',\n 'prod': '\\u220F',\n 'Proportional': '\\u221D',\n 'prop': '\\u221D',\n 'propto': '\\u221D',\n 'varpropto': '\\u221D',\n 'vprop': '\\u221D',\n 'Pscr': '\\uD835\\uDCAB',\n 'Psi': '\\u03A8',\n 'QUOT': '\\u0022',\n 'quot': '\\u0022',\n 'Qfr': '\\uD835\\uDD14',\n 'Qopf': '\\u211A',\n 'rationals': '\\u211A',\n 'Qscr': '\\uD835\\uDCAC',\n 'RBarr': '\\u2910',\n 'drbkarow': '\\u2910',\n 'REG': '\\u00AE',\n 'circledR': '\\u00AE',\n 'reg': '\\u00AE',\n 'Racute': '\\u0154',\n 'Rang': '\\u27EB',\n 'Rarr': '\\u21A0',\n 'twoheadrightarrow': '\\u21A0',\n 'Rarrtl': '\\u2916',\n 'Rcaron': '\\u0158',\n 'Rcedil': '\\u0156',\n 'Rcy': '\\u0420',\n 'Re': '\\u211C',\n 'Rfr': '\\u211C',\n 'real': '\\u211C',\n 'realpart': '\\u211C',\n 'ReverseElement': '\\u220B',\n 'SuchThat': '\\u220B',\n 'ni': '\\u220B',\n 'niv': '\\u220B',\n 'ReverseEquilibrium': '\\u21CB',\n 'leftrightharpoons': '\\u21CB',\n 'lrhar': '\\u21CB',\n 'ReverseUpEquilibrium': '\\u296F',\n 'duhar': '\\u296F',\n 'Rho': '\\u03A1',\n 'RightAngleBracket': '\\u27E9',\n 'rang': '\\u27E9',\n 'rangle': '\\u27E9',\n 'RightArrow': '\\u2192',\n 'ShortRightArrow': '\\u2192',\n 'rarr': '\\u2192',\n 'rightarrow': '\\u2192',\n 'srarr': '\\u2192',\n 'RightArrowBar': '\\u21E5',\n 'rarrb': '\\u21E5',\n 'RightArrowLeftArrow': '\\u21C4',\n 'rightleftarrows': '\\u21C4',\n 'rlarr': '\\u21C4',\n 'RightCeiling': '\\u2309',\n 'rceil': '\\u2309',\n 'RightDoubleBracket': '\\u27E7',\n 'robrk': '\\u27E7',\n 'RightDownTeeVector': '\\u295D',\n 'RightDownVector': '\\u21C2',\n 'dharr': '\\u21C2',\n 'downharpoonright': '\\u21C2',\n 'RightDownVectorBar': '\\u2955',\n 'RightFloor': '\\u230B',\n 'rfloor': '\\u230B',\n 'RightTee': '\\u22A2',\n 'vdash': '\\u22A2',\n 'RightTeeArrow': '\\u21A6',\n 'map': '\\u21A6',\n 'mapsto': '\\u21A6',\n 'RightTeeVector': '\\u295B',\n 'RightTriangle': '\\u22B3',\n 'vartriangleright': '\\u22B3',\n 'vrtri': '\\u22B3',\n 'RightTriangleBar': '\\u29D0',\n 'RightTriangleEqual': '\\u22B5',\n 'rtrie': '\\u22B5',\n 'trianglerighteq': '\\u22B5',\n 'RightUpDownVector': '\\u294F',\n 'RightUpTeeVector': '\\u295C',\n 'RightUpVector': '\\u21BE',\n 'uharr': '\\u21BE',\n 'upharpoonright': '\\u21BE',\n 'RightUpVectorBar': '\\u2954',\n 'RightVector': '\\u21C0',\n 'rharu': '\\u21C0',\n 'rightharpoonup': '\\u21C0',\n 'RightVectorBar': '\\u2953',\n 'Ropf': '\\u211D',\n 'reals': '\\u211D',\n 'RoundImplies': '\\u2970',\n 'Rrightarrow': '\\u21DB',\n 'rAarr': '\\u21DB',\n 'Rscr': '\\u211B',\n 'realine': '\\u211B',\n 'Rsh': '\\u21B1',\n 'rsh': '\\u21B1',\n 'RuleDelayed': '\\u29F4',\n 'SHCHcy': '\\u0429',\n 'SHcy': '\\u0428',\n 'SOFTcy': '\\u042C',\n 'Sacute': '\\u015A',\n 'Sc': '\\u2ABC',\n 'Scaron': '\\u0160',\n 'Scedil': '\\u015E',\n 'Scirc': '\\u015C',\n 'Scy': '\\u0421',\n 'Sfr': '\\uD835\\uDD16',\n 'ShortUpArrow': '\\u2191',\n 'UpArrow': '\\u2191',\n 'uarr': '\\u2191',\n 'uparrow': '\\u2191',\n 'Sigma': '\\u03A3',\n 'SmallCircle': '\\u2218',\n 'compfn': '\\u2218',\n 'Sopf': '\\uD835\\uDD4A',\n 'Sqrt': '\\u221A',\n 'radic': '\\u221A',\n 'Square': '\\u25A1',\n 'squ': '\\u25A1',\n 'square': '\\u25A1',\n 'SquareIntersection': '\\u2293',\n 'sqcap': '\\u2293',\n 'SquareSubset': '\\u228F',\n 'sqsub': '\\u228F',\n 'sqsubset': '\\u228F',\n 'SquareSubsetEqual': '\\u2291',\n 'sqsube': '\\u2291',\n 'sqsubseteq': '\\u2291',\n 'SquareSuperset': '\\u2290',\n 'sqsup': '\\u2290',\n 'sqsupset': '\\u2290',\n 'SquareSupersetEqual': '\\u2292',\n 'sqsupe': '\\u2292',\n 'sqsupseteq': '\\u2292',\n 'SquareUnion': '\\u2294',\n 'sqcup': '\\u2294',\n 'Sscr': '\\uD835\\uDCAE',\n 'Star': '\\u22C6',\n 'sstarf': '\\u22C6',\n 'Sub': '\\u22D0',\n 'Subset': '\\u22D0',\n 'SubsetEqual': '\\u2286',\n 'sube': '\\u2286',\n 'subseteq': '\\u2286',\n 'Succeeds': '\\u227B',\n 'sc': '\\u227B',\n 'succ': '\\u227B',\n 'SucceedsEqual': '\\u2AB0',\n 'sce': '\\u2AB0',\n 'succeq': '\\u2AB0',\n 'SucceedsSlantEqual': '\\u227D',\n 'sccue': '\\u227D',\n 'succcurlyeq': '\\u227D',\n 'SucceedsTilde': '\\u227F',\n 'scsim': '\\u227F',\n 'succsim': '\\u227F',\n 'Sum': '\\u2211',\n 'sum': '\\u2211',\n 'Sup': '\\u22D1',\n 'Supset': '\\u22D1',\n 'Superset': '\\u2283',\n 'sup': '\\u2283',\n 'supset': '\\u2283',\n 'SupersetEqual': '\\u2287',\n 'supe': '\\u2287',\n 'supseteq': '\\u2287',\n 'THORN': '\\u00DE',\n 'TRADE': '\\u2122',\n 'trade': '\\u2122',\n 'TSHcy': '\\u040B',\n 'TScy': '\\u0426',\n 'Tab': '\\u0009',\n 'Tau': '\\u03A4',\n 'Tcaron': '\\u0164',\n 'Tcedil': '\\u0162',\n 'Tcy': '\\u0422',\n 'Tfr': '\\uD835\\uDD17',\n 'Therefore': '\\u2234',\n 'there4': '\\u2234',\n 'therefore': '\\u2234',\n 'Theta': '\\u0398',\n 'ThickSpace': '\\u205F\\u200A',\n 'ThinSpace': '\\u2009',\n 'thinsp': '\\u2009',\n 'Tilde': '\\u223C',\n 'sim': '\\u223C',\n 'thicksim': '\\u223C',\n 'thksim': '\\u223C',\n 'TildeEqual': '\\u2243',\n 'sime': '\\u2243',\n 'simeq': '\\u2243',\n 'TildeFullEqual': '\\u2245',\n 'cong': '\\u2245',\n 'TildeTilde': '\\u2248',\n 'ap': '\\u2248',\n 'approx': '\\u2248',\n 'asymp': '\\u2248',\n 'thickapprox': '\\u2248',\n 'thkap': '\\u2248',\n 'Topf': '\\uD835\\uDD4B',\n 'TripleDot': '\\u20DB',\n 'tdot': '\\u20DB',\n 'Tscr': '\\uD835\\uDCAF',\n 'Tstrok': '\\u0166',\n 'Uacute': '\\u00DA',\n 'Uarr': '\\u219F',\n 'Uarrocir': '\\u2949',\n 'Ubrcy': '\\u040E',\n 'Ubreve': '\\u016C',\n 'Ucirc': '\\u00DB',\n 'Ucy': '\\u0423',\n 'Udblac': '\\u0170',\n 'Ufr': '\\uD835\\uDD18',\n 'Ugrave': '\\u00D9',\n 'Umacr': '\\u016A',\n 'UnderBar': '\\u005F',\n 'lowbar': '\\u005F',\n 'UnderBrace': '\\u23DF',\n 'UnderBracket': '\\u23B5',\n 'bbrk': '\\u23B5',\n 'UnderParenthesis': '\\u23DD',\n 'Union': '\\u22C3',\n 'bigcup': '\\u22C3',\n 'xcup': '\\u22C3',\n 'UnionPlus': '\\u228E',\n 'uplus': '\\u228E',\n 'Uogon': '\\u0172',\n 'Uopf': '\\uD835\\uDD4C',\n 'UpArrowBar': '\\u2912',\n 'UpArrowDownArrow': '\\u21C5',\n 'udarr': '\\u21C5',\n 'UpDownArrow': '\\u2195',\n 'updownarrow': '\\u2195',\n 'varr': '\\u2195',\n 'UpEquilibrium': '\\u296E',\n 'udhar': '\\u296E',\n 'UpTee': '\\u22A5',\n 'bot': '\\u22A5',\n 'bottom': '\\u22A5',\n 'perp': '\\u22A5',\n 'UpTeeArrow': '\\u21A5',\n 'mapstoup': '\\u21A5',\n 'UpperLeftArrow': '\\u2196',\n 'nwarr': '\\u2196',\n 'nwarrow': '\\u2196',\n 'UpperRightArrow': '\\u2197',\n 'nearr': '\\u2197',\n 'nearrow': '\\u2197',\n 'Upsi': '\\u03D2',\n 'upsih': '\\u03D2',\n 'Upsilon': '\\u03A5',\n 'Uring': '\\u016E',\n 'Uscr': '\\uD835\\uDCB0',\n 'Utilde': '\\u0168',\n 'Uuml': '\\u00DC',\n 'VDash': '\\u22AB',\n 'Vbar': '\\u2AEB',\n 'Vcy': '\\u0412',\n 'Vdash': '\\u22A9',\n 'Vdashl': '\\u2AE6',\n 'Vee': '\\u22C1',\n 'bigvee': '\\u22C1',\n 'xvee': '\\u22C1',\n 'Verbar': '\\u2016',\n 'Vert': '\\u2016',\n 'VerticalBar': '\\u2223',\n 'mid': '\\u2223',\n 'shortmid': '\\u2223',\n 'smid': '\\u2223',\n 'VerticalLine': '\\u007C',\n 'verbar': '\\u007C',\n 'vert': '\\u007C',\n 'VerticalSeparator': '\\u2758',\n 'VerticalTilde': '\\u2240',\n 'wr': '\\u2240',\n 'wreath': '\\u2240',\n 'VeryThinSpace': '\\u200A',\n 'hairsp': '\\u200A',\n 'Vfr': '\\uD835\\uDD19',\n 'Vopf': '\\uD835\\uDD4D',\n 'Vscr': '\\uD835\\uDCB1',\n 'Vvdash': '\\u22AA',\n 'Wcirc': '\\u0174',\n 'Wedge': '\\u22C0',\n 'bigwedge': '\\u22C0',\n 'xwedge': '\\u22C0',\n 'Wfr': '\\uD835\\uDD1A',\n 'Wopf': '\\uD835\\uDD4E',\n 'Wscr': '\\uD835\\uDCB2',\n 'Xfr': '\\uD835\\uDD1B',\n 'Xi': '\\u039E',\n 'Xopf': '\\uD835\\uDD4F',\n 'Xscr': '\\uD835\\uDCB3',\n 'YAcy': '\\u042F',\n 'YIcy': '\\u0407',\n 'YUcy': '\\u042E',\n 'Yacute': '\\u00DD',\n 'Ycirc': '\\u0176',\n 'Ycy': '\\u042B',\n 'Yfr': '\\uD835\\uDD1C',\n 'Yopf': '\\uD835\\uDD50',\n 'Yscr': '\\uD835\\uDCB4',\n 'Yuml': '\\u0178',\n 'ZHcy': '\\u0416',\n 'Zacute': '\\u0179',\n 'Zcaron': '\\u017D',\n 'Zcy': '\\u0417',\n 'Zdot': '\\u017B',\n 'Zeta': '\\u0396',\n 'Zfr': '\\u2128',\n 'zeetrf': '\\u2128',\n 'Zopf': '\\u2124',\n 'integers': '\\u2124',\n 'Zscr': '\\uD835\\uDCB5',\n 'aacute': '\\u00E1',\n 'abreve': '\\u0103',\n 'ac': '\\u223E',\n 'mstpos': '\\u223E',\n 'acE': '\\u223E\\u0333',\n 'acd': '\\u223F',\n 'acirc': '\\u00E2',\n 'acy': '\\u0430',\n 'aelig': '\\u00E6',\n 'afr': '\\uD835\\uDD1E',\n 'agrave': '\\u00E0',\n 'alefsym': '\\u2135',\n 'aleph': '\\u2135',\n 'alpha': '\\u03B1',\n 'amacr': '\\u0101',\n 'amalg': '\\u2A3F',\n 'and': '\\u2227',\n 'wedge': '\\u2227',\n 'andand': '\\u2A55',\n 'andd': '\\u2A5C',\n 'andslope': '\\u2A58',\n 'andv': '\\u2A5A',\n 'ang': '\\u2220',\n 'angle': '\\u2220',\n 'ange': '\\u29A4',\n 'angmsd': '\\u2221',\n 'measuredangle': '\\u2221',\n 'angmsdaa': '\\u29A8',\n 'angmsdab': '\\u29A9',\n 'angmsdac': '\\u29AA',\n 'angmsdad': '\\u29AB',\n 'angmsdae': '\\u29AC',\n 'angmsdaf': '\\u29AD',\n 'angmsdag': '\\u29AE',\n 'angmsdah': '\\u29AF',\n 'angrt': '\\u221F',\n 'angrtvb': '\\u22BE',\n 'angrtvbd': '\\u299D',\n 'angsph': '\\u2222',\n 'angzarr': '\\u237C',\n 'aogon': '\\u0105',\n 'aopf': '\\uD835\\uDD52',\n 'apE': '\\u2A70',\n 'apacir': '\\u2A6F',\n 'ape': '\\u224A',\n 'approxeq': '\\u224A',\n 'apid': '\\u224B',\n 'apos': '\\u0027',\n 'aring': '\\u00E5',\n 'ascr': '\\uD835\\uDCB6',\n 'ast': '\\u002A',\n 'midast': '\\u002A',\n 'atilde': '\\u00E3',\n 'auml': '\\u00E4',\n 'awint': '\\u2A11',\n 'bNot': '\\u2AED',\n 'backcong': '\\u224C',\n 'bcong': '\\u224C',\n 'backepsilon': '\\u03F6',\n 'bepsi': '\\u03F6',\n 'backprime': '\\u2035',\n 'bprime': '\\u2035',\n 'backsim': '\\u223D',\n 'bsim': '\\u223D',\n 'backsimeq': '\\u22CD',\n 'bsime': '\\u22CD',\n 'barvee': '\\u22BD',\n 'barwed': '\\u2305',\n 'barwedge': '\\u2305',\n 'bbrktbrk': '\\u23B6',\n 'bcy': '\\u0431',\n 'bdquo': '\\u201E',\n 'ldquor': '\\u201E',\n 'bemptyv': '\\u29B0',\n 'beta': '\\u03B2',\n 'beth': '\\u2136',\n 'between': '\\u226C',\n 'twixt': '\\u226C',\n 'bfr': '\\uD835\\uDD1F',\n 'bigcirc': '\\u25EF',\n 'xcirc': '\\u25EF',\n 'bigodot': '\\u2A00',\n 'xodot': '\\u2A00',\n 'bigoplus': '\\u2A01',\n 'xoplus': '\\u2A01',\n 'bigotimes': '\\u2A02',\n 'xotime': '\\u2A02',\n 'bigsqcup': '\\u2A06',\n 'xsqcup': '\\u2A06',\n 'bigstar': '\\u2605',\n 'starf': '\\u2605',\n 'bigtriangledown': '\\u25BD',\n 'xdtri': '\\u25BD',\n 'bigtriangleup': '\\u25B3',\n 'xutri': '\\u25B3',\n 'biguplus': '\\u2A04',\n 'xuplus': '\\u2A04',\n 'bkarow': '\\u290D',\n 'rbarr': '\\u290D',\n 'blacklozenge': '\\u29EB',\n 'lozf': '\\u29EB',\n 'blacktriangle': '\\u25B4',\n 'utrif': '\\u25B4',\n 'blacktriangledown': '\\u25BE',\n 'dtrif': '\\u25BE',\n 'blacktriangleleft': '\\u25C2',\n 'ltrif': '\\u25C2',\n 'blacktriangleright': '\\u25B8',\n 'rtrif': '\\u25B8',\n 'blank': '\\u2423',\n 'blk12': '\\u2592',\n 'blk14': '\\u2591',\n 'blk34': '\\u2593',\n 'block': '\\u2588',\n 'bne': '\\u003D\\u20E5',\n 'bnequiv': '\\u2261\\u20E5',\n 'bnot': '\\u2310',\n 'bopf': '\\uD835\\uDD53',\n 'bowtie': '\\u22C8',\n 'boxDL': '\\u2557',\n 'boxDR': '\\u2554',\n 'boxDl': '\\u2556',\n 'boxDr': '\\u2553',\n 'boxH': '\\u2550',\n 'boxHD': '\\u2566',\n 'boxHU': '\\u2569',\n 'boxHd': '\\u2564',\n 'boxHu': '\\u2567',\n 'boxUL': '\\u255D',\n 'boxUR': '\\u255A',\n 'boxUl': '\\u255C',\n 'boxUr': '\\u2559',\n 'boxV': '\\u2551',\n 'boxVH': '\\u256C',\n 'boxVL': '\\u2563',\n 'boxVR': '\\u2560',\n 'boxVh': '\\u256B',\n 'boxVl': '\\u2562',\n 'boxVr': '\\u255F',\n 'boxbox': '\\u29C9',\n 'boxdL': '\\u2555',\n 'boxdR': '\\u2552',\n 'boxdl': '\\u2510',\n 'boxdr': '\\u250C',\n 'boxhD': '\\u2565',\n 'boxhU': '\\u2568',\n 'boxhd': '\\u252C',\n 'boxhu': '\\u2534',\n 'boxminus': '\\u229F',\n 'minusb': '\\u229F',\n 'boxplus': '\\u229E',\n 'plusb': '\\u229E',\n 'boxtimes': '\\u22A0',\n 'timesb': '\\u22A0',\n 'boxuL': '\\u255B',\n 'boxuR': '\\u2558',\n 'boxul': '\\u2518',\n 'boxur': '\\u2514',\n 'boxv': '\\u2502',\n 'boxvH': '\\u256A',\n 'boxvL': '\\u2561',\n 'boxvR': '\\u255E',\n 'boxvh': '\\u253C',\n 'boxvl': '\\u2524',\n 'boxvr': '\\u251C',\n 'brvbar': '\\u00A6',\n 'bscr': '\\uD835\\uDCB7',\n 'bsemi': '\\u204F',\n 'bsol': '\\u005C',\n 'bsolb': '\\u29C5',\n 'bsolhsub': '\\u27C8',\n 'bull': '\\u2022',\n 'bullet': '\\u2022',\n 'bumpE': '\\u2AAE',\n 'cacute': '\\u0107',\n 'cap': '\\u2229',\n 'capand': '\\u2A44',\n 'capbrcup': '\\u2A49',\n 'capcap': '\\u2A4B',\n 'capcup': '\\u2A47',\n 'capdot': '\\u2A40',\n 'caps': '\\u2229\\uFE00',\n 'caret': '\\u2041',\n 'ccaps': '\\u2A4D',\n 'ccaron': '\\u010D',\n 'ccedil': '\\u00E7',\n 'ccirc': '\\u0109',\n 'ccups': '\\u2A4C',\n 'ccupssm': '\\u2A50',\n 'cdot': '\\u010B',\n 'cemptyv': '\\u29B2',\n 'cent': '\\u00A2',\n 'cfr': '\\uD835\\uDD20',\n 'chcy': '\\u0447',\n 'check': '\\u2713',\n 'checkmark': '\\u2713',\n 'chi': '\\u03C7',\n 'cir': '\\u25CB',\n 'cirE': '\\u29C3',\n 'circ': '\\u02C6',\n 'circeq': '\\u2257',\n 'cire': '\\u2257',\n 'circlearrowleft': '\\u21BA',\n 'olarr': '\\u21BA',\n 'circlearrowright': '\\u21BB',\n 'orarr': '\\u21BB',\n 'circledS': '\\u24C8',\n 'oS': '\\u24C8',\n 'circledast': '\\u229B',\n 'oast': '\\u229B',\n 'circledcirc': '\\u229A',\n 'ocir': '\\u229A',\n 'circleddash': '\\u229D',\n 'odash': '\\u229D',\n 'cirfnint': '\\u2A10',\n 'cirmid': '\\u2AEF',\n 'cirscir': '\\u29C2',\n 'clubs': '\\u2663',\n 'clubsuit': '\\u2663',\n 'colon': '\\u003A',\n 'comma': '\\u002C',\n 'commat': '\\u0040',\n 'comp': '\\u2201',\n 'complement': '\\u2201',\n 'congdot': '\\u2A6D',\n 'copf': '\\uD835\\uDD54',\n 'copysr': '\\u2117',\n 'crarr': '\\u21B5',\n 'cross': '\\u2717',\n 'cscr': '\\uD835\\uDCB8',\n 'csub': '\\u2ACF',\n 'csube': '\\u2AD1',\n 'csup': '\\u2AD0',\n 'csupe': '\\u2AD2',\n 'ctdot': '\\u22EF',\n 'cudarrl': '\\u2938',\n 'cudarrr': '\\u2935',\n 'cuepr': '\\u22DE',\n 'curlyeqprec': '\\u22DE',\n 'cuesc': '\\u22DF',\n 'curlyeqsucc': '\\u22DF',\n 'cularr': '\\u21B6',\n 'curvearrowleft': '\\u21B6',\n 'cularrp': '\\u293D',\n 'cup': '\\u222A',\n 'cupbrcap': '\\u2A48',\n 'cupcap': '\\u2A46',\n 'cupcup': '\\u2A4A',\n 'cupdot': '\\u228D',\n 'cupor': '\\u2A45',\n 'cups': '\\u222A\\uFE00',\n 'curarr': '\\u21B7',\n 'curvearrowright': '\\u21B7',\n 'curarrm': '\\u293C',\n 'curlyvee': '\\u22CE',\n 'cuvee': '\\u22CE',\n 'curlywedge': '\\u22CF',\n 'cuwed': '\\u22CF',\n 'curren': '\\u00A4',\n 'cwint': '\\u2231',\n 'cylcty': '\\u232D',\n 'dHar': '\\u2965',\n 'dagger': '\\u2020',\n 'daleth': '\\u2138',\n 'dash': '\\u2010',\n 'hyphen': '\\u2010',\n 'dbkarow': '\\u290F',\n 'rBarr': '\\u290F',\n 'dcaron': '\\u010F',\n 'dcy': '\\u0434',\n 'ddarr': '\\u21CA',\n 'downdownarrows': '\\u21CA',\n 'ddotseq': '\\u2A77',\n 'eDDot': '\\u2A77',\n 'deg': '\\u00B0',\n 'delta': '\\u03B4',\n 'demptyv': '\\u29B1',\n 'dfisht': '\\u297F',\n 'dfr': '\\uD835\\uDD21',\n 'diamondsuit': '\\u2666',\n 'diams': '\\u2666',\n 'digamma': '\\u03DD',\n 'gammad': '\\u03DD',\n 'disin': '\\u22F2',\n 'div': '\\u00F7',\n 'divide': '\\u00F7',\n 'divideontimes': '\\u22C7',\n 'divonx': '\\u22C7',\n 'djcy': '\\u0452',\n 'dlcorn': '\\u231E',\n 'llcorner': '\\u231E',\n 'dlcrop': '\\u230D',\n 'dollar': '\\u0024',\n 'dopf': '\\uD835\\uDD55',\n 'doteqdot': '\\u2251',\n 'eDot': '\\u2251',\n 'dotminus': '\\u2238',\n 'minusd': '\\u2238',\n 'dotplus': '\\u2214',\n 'plusdo': '\\u2214',\n 'dotsquare': '\\u22A1',\n 'sdotb': '\\u22A1',\n 'drcorn': '\\u231F',\n 'lrcorner': '\\u231F',\n 'drcrop': '\\u230C',\n 'dscr': '\\uD835\\uDCB9',\n 'dscy': '\\u0455',\n 'dsol': '\\u29F6',\n 'dstrok': '\\u0111',\n 'dtdot': '\\u22F1',\n 'dtri': '\\u25BF',\n 'triangledown': '\\u25BF',\n 'dwangle': '\\u29A6',\n 'dzcy': '\\u045F',\n 'dzigrarr': '\\u27FF',\n 'eacute': '\\u00E9',\n 'easter': '\\u2A6E',\n 'ecaron': '\\u011B',\n 'ecir': '\\u2256',\n 'eqcirc': '\\u2256',\n 'ecirc': '\\u00EA',\n 'ecolon': '\\u2255',\n 'eqcolon': '\\u2255',\n 'ecy': '\\u044D',\n 'edot': '\\u0117',\n 'efDot': '\\u2252',\n 'fallingdotseq': '\\u2252',\n 'efr': '\\uD835\\uDD22',\n 'eg': '\\u2A9A',\n 'egrave': '\\u00E8',\n 'egs': '\\u2A96',\n 'eqslantgtr': '\\u2A96',\n 'egsdot': '\\u2A98',\n 'el': '\\u2A99',\n 'elinters': '\\u23E7',\n 'ell': '\\u2113',\n 'els': '\\u2A95',\n 'eqslantless': '\\u2A95',\n 'elsdot': '\\u2A97',\n 'emacr': '\\u0113',\n 'empty': '\\u2205',\n 'emptyset': '\\u2205',\n 'emptyv': '\\u2205',\n 'varnothing': '\\u2205',\n 'emsp13': '\\u2004',\n 'emsp14': '\\u2005',\n 'emsp': '\\u2003',\n 'eng': '\\u014B',\n 'ensp': '\\u2002',\n 'eogon': '\\u0119',\n 'eopf': '\\uD835\\uDD56',\n 'epar': '\\u22D5',\n 'eparsl': '\\u29E3',\n 'eplus': '\\u2A71',\n 'epsi': '\\u03B5',\n 'epsilon': '\\u03B5',\n 'epsiv': '\\u03F5',\n 'straightepsilon': '\\u03F5',\n 'varepsilon': '\\u03F5',\n 'equals': '\\u003D',\n 'equest': '\\u225F',\n 'questeq': '\\u225F',\n 'equivDD': '\\u2A78',\n 'eqvparsl': '\\u29E5',\n 'erDot': '\\u2253',\n 'risingdotseq': '\\u2253',\n 'erarr': '\\u2971',\n 'escr': '\\u212F',\n 'eta': '\\u03B7',\n 'eth': '\\u00F0',\n 'euml': '\\u00EB',\n 'euro': '\\u20AC',\n 'excl': '\\u0021',\n 'fcy': '\\u0444',\n 'female': '\\u2640',\n 'ffilig': '\\uFB03',\n 'fflig': '\\uFB00',\n 'ffllig': '\\uFB04',\n 'ffr': '\\uD835\\uDD23',\n 'filig': '\\uFB01',\n 'fjlig': '\\u0066\\u006A',\n 'flat': '\\u266D',\n 'fllig': '\\uFB02',\n 'fltns': '\\u25B1',\n 'fnof': '\\u0192',\n 'fopf': '\\uD835\\uDD57',\n 'fork': '\\u22D4',\n 'pitchfork': '\\u22D4',\n 'forkv': '\\u2AD9',\n 'fpartint': '\\u2A0D',\n 'frac12': '\\u00BD',\n 'half': '\\u00BD',\n 'frac13': '\\u2153',\n 'frac14': '\\u00BC',\n 'frac15': '\\u2155',\n 'frac16': '\\u2159',\n 'frac18': '\\u215B',\n 'frac23': '\\u2154',\n 'frac25': '\\u2156',\n 'frac34': '\\u00BE',\n 'frac35': '\\u2157',\n 'frac38': '\\u215C',\n 'frac45': '\\u2158',\n 'frac56': '\\u215A',\n 'frac58': '\\u215D',\n 'frac78': '\\u215E',\n 'frasl': '\\u2044',\n 'frown': '\\u2322',\n 'sfrown': '\\u2322',\n 'fscr': '\\uD835\\uDCBB',\n 'gEl': '\\u2A8C',\n 'gtreqqless': '\\u2A8C',\n 'gacute': '\\u01F5',\n 'gamma': '\\u03B3',\n 'gap': '\\u2A86',\n 'gtrapprox': '\\u2A86',\n 'gbreve': '\\u011F',\n 'gcirc': '\\u011D',\n 'gcy': '\\u0433',\n 'gdot': '\\u0121',\n 'gescc': '\\u2AA9',\n 'gesdot': '\\u2A80',\n 'gesdoto': '\\u2A82',\n 'gesdotol': '\\u2A84',\n 'gesl': '\\u22DB\\uFE00',\n 'gesles': '\\u2A94',\n 'gfr': '\\uD835\\uDD24',\n 'gimel': '\\u2137',\n 'gjcy': '\\u0453',\n 'glE': '\\u2A92',\n 'gla': '\\u2AA5',\n 'glj': '\\u2AA4',\n 'gnE': '\\u2269',\n 'gneqq': '\\u2269',\n 'gnap': '\\u2A8A',\n 'gnapprox': '\\u2A8A',\n 'gne': '\\u2A88',\n 'gneq': '\\u2A88',\n 'gnsim': '\\u22E7',\n 'gopf': '\\uD835\\uDD58',\n 'gscr': '\\u210A',\n 'gsime': '\\u2A8E',\n 'gsiml': '\\u2A90',\n 'gtcc': '\\u2AA7',\n 'gtcir': '\\u2A7A',\n 'gtdot': '\\u22D7',\n 'gtrdot': '\\u22D7',\n 'gtlPar': '\\u2995',\n 'gtquest': '\\u2A7C',\n 'gtrarr': '\\u2978',\n 'gvertneqq': '\\u2269\\uFE00',\n 'gvnE': '\\u2269\\uFE00',\n 'hardcy': '\\u044A',\n 'harrcir': '\\u2948',\n 'harrw': '\\u21AD',\n 'leftrightsquigarrow': '\\u21AD',\n 'hbar': '\\u210F',\n 'hslash': '\\u210F',\n 'planck': '\\u210F',\n 'plankv': '\\u210F',\n 'hcirc': '\\u0125',\n 'hearts': '\\u2665',\n 'heartsuit': '\\u2665',\n 'hellip': '\\u2026',\n 'mldr': '\\u2026',\n 'hercon': '\\u22B9',\n 'hfr': '\\uD835\\uDD25',\n 'hksearow': '\\u2925',\n 'searhk': '\\u2925',\n 'hkswarow': '\\u2926',\n 'swarhk': '\\u2926',\n 'hoarr': '\\u21FF',\n 'homtht': '\\u223B',\n 'hookleftarrow': '\\u21A9',\n 'larrhk': '\\u21A9',\n 'hookrightarrow': '\\u21AA',\n 'rarrhk': '\\u21AA',\n 'hopf': '\\uD835\\uDD59',\n 'horbar': '\\u2015',\n 'hscr': '\\uD835\\uDCBD',\n 'hstrok': '\\u0127',\n 'hybull': '\\u2043',\n 'iacute': '\\u00ED',\n 'icirc': '\\u00EE',\n 'icy': '\\u0438',\n 'iecy': '\\u0435',\n 'iexcl': '\\u00A1',\n 'ifr': '\\uD835\\uDD26',\n 'igrave': '\\u00EC',\n 'iiiint': '\\u2A0C',\n 'qint': '\\u2A0C',\n 'iiint': '\\u222D',\n 'tint': '\\u222D',\n 'iinfin': '\\u29DC',\n 'iiota': '\\u2129',\n 'ijlig': '\\u0133',\n 'imacr': '\\u012B',\n 'imath': '\\u0131',\n 'inodot': '\\u0131',\n 'imof': '\\u22B7',\n 'imped': '\\u01B5',\n 'incare': '\\u2105',\n 'infin': '\\u221E',\n 'infintie': '\\u29DD',\n 'intcal': '\\u22BA',\n 'intercal': '\\u22BA',\n 'intlarhk': '\\u2A17',\n 'intprod': '\\u2A3C',\n 'iprod': '\\u2A3C',\n 'iocy': '\\u0451',\n 'iogon': '\\u012F',\n 'iopf': '\\uD835\\uDD5A',\n 'iota': '\\u03B9',\n 'iquest': '\\u00BF',\n 'iscr': '\\uD835\\uDCBE',\n 'isinE': '\\u22F9',\n 'isindot': '\\u22F5',\n 'isins': '\\u22F4',\n 'isinsv': '\\u22F3',\n 'itilde': '\\u0129',\n 'iukcy': '\\u0456',\n 'iuml': '\\u00EF',\n 'jcirc': '\\u0135',\n 'jcy': '\\u0439',\n 'jfr': '\\uD835\\uDD27',\n 'jmath': '\\u0237',\n 'jopf': '\\uD835\\uDD5B',\n 'jscr': '\\uD835\\uDCBF',\n 'jsercy': '\\u0458',\n 'jukcy': '\\u0454',\n 'kappa': '\\u03BA',\n 'kappav': '\\u03F0',\n 'varkappa': '\\u03F0',\n 'kcedil': '\\u0137',\n 'kcy': '\\u043A',\n 'kfr': '\\uD835\\uDD28',\n 'kgreen': '\\u0138',\n 'khcy': '\\u0445',\n 'kjcy': '\\u045C',\n 'kopf': '\\uD835\\uDD5C',\n 'kscr': '\\uD835\\uDCC0',\n 'lAtail': '\\u291B',\n 'lBarr': '\\u290E',\n 'lEg': '\\u2A8B',\n 'lesseqqgtr': '\\u2A8B',\n 'lHar': '\\u2962',\n 'lacute': '\\u013A',\n 'laemptyv': '\\u29B4',\n 'lambda': '\\u03BB',\n 'langd': '\\u2991',\n 'lap': '\\u2A85',\n 'lessapprox': '\\u2A85',\n 'laquo': '\\u00AB',\n 'larrbfs': '\\u291F',\n 'larrfs': '\\u291D',\n 'larrlp': '\\u21AB',\n 'looparrowleft': '\\u21AB',\n 'larrpl': '\\u2939',\n 'larrsim': '\\u2973',\n 'larrtl': '\\u21A2',\n 'leftarrowtail': '\\u21A2',\n 'lat': '\\u2AAB',\n 'latail': '\\u2919',\n 'late': '\\u2AAD',\n 'lates': '\\u2AAD\\uFE00',\n 'lbarr': '\\u290C',\n 'lbbrk': '\\u2772',\n 'lbrace': '\\u007B',\n 'lcub': '\\u007B',\n 'lbrack': '\\u005B',\n 'lsqb': '\\u005B',\n 'lbrke': '\\u298B',\n 'lbrksld': '\\u298F',\n 'lbrkslu': '\\u298D',\n 'lcaron': '\\u013E',\n 'lcedil': '\\u013C',\n 'lcy': '\\u043B',\n 'ldca': '\\u2936',\n 'ldrdhar': '\\u2967',\n 'ldrushar': '\\u294B',\n 'ldsh': '\\u21B2',\n 'le': '\\u2264',\n 'leq': '\\u2264',\n 'leftleftarrows': '\\u21C7',\n 'llarr': '\\u21C7',\n 'leftthreetimes': '\\u22CB',\n 'lthree': '\\u22CB',\n 'lescc': '\\u2AA8',\n 'lesdot': '\\u2A7F',\n 'lesdoto': '\\u2A81',\n 'lesdotor': '\\u2A83',\n 'lesg': '\\u22DA\\uFE00',\n 'lesges': '\\u2A93',\n 'lessdot': '\\u22D6',\n 'ltdot': '\\u22D6',\n 'lfisht': '\\u297C',\n 'lfr': '\\uD835\\uDD29',\n 'lgE': '\\u2A91',\n 'lharul': '\\u296A',\n 'lhblk': '\\u2584',\n 'ljcy': '\\u0459',\n 'llhard': '\\u296B',\n 'lltri': '\\u25FA',\n 'lmidot': '\\u0140',\n 'lmoust': '\\u23B0',\n 'lmoustache': '\\u23B0',\n 'lnE': '\\u2268',\n 'lneqq': '\\u2268',\n 'lnap': '\\u2A89',\n 'lnapprox': '\\u2A89',\n 'lne': '\\u2A87',\n 'lneq': '\\u2A87',\n 'lnsim': '\\u22E6',\n 'loang': '\\u27EC',\n 'loarr': '\\u21FD',\n 'longmapsto': '\\u27FC',\n 'xmap': '\\u27FC',\n 'looparrowright': '\\u21AC',\n 'rarrlp': '\\u21AC',\n 'lopar': '\\u2985',\n 'lopf': '\\uD835\\uDD5D',\n 'loplus': '\\u2A2D',\n 'lotimes': '\\u2A34',\n 'lowast': '\\u2217',\n 'loz': '\\u25CA',\n 'lozenge': '\\u25CA',\n 'lpar': '\\u0028',\n 'lparlt': '\\u2993',\n 'lrhard': '\\u296D',\n 'lrm': '\\u200E',\n 'lrtri': '\\u22BF',\n 'lsaquo': '\\u2039',\n 'lscr': '\\uD835\\uDCC1',\n 'lsime': '\\u2A8D',\n 'lsimg': '\\u2A8F',\n 'lsquor': '\\u201A',\n 'sbquo': '\\u201A',\n 'lstrok': '\\u0142',\n 'ltcc': '\\u2AA6',\n 'ltcir': '\\u2A79',\n 'ltimes': '\\u22C9',\n 'ltlarr': '\\u2976',\n 'ltquest': '\\u2A7B',\n 'ltrPar': '\\u2996',\n 'ltri': '\\u25C3',\n 'triangleleft': '\\u25C3',\n 'lurdshar': '\\u294A',\n 'luruhar': '\\u2966',\n 'lvertneqq': '\\u2268\\uFE00',\n 'lvnE': '\\u2268\\uFE00',\n 'mDDot': '\\u223A',\n 'macr': '\\u00AF',\n 'strns': '\\u00AF',\n 'male': '\\u2642',\n 'malt': '\\u2720',\n 'maltese': '\\u2720',\n 'marker': '\\u25AE',\n 'mcomma': '\\u2A29',\n 'mcy': '\\u043C',\n 'mdash': '\\u2014',\n 'mfr': '\\uD835\\uDD2A',\n 'mho': '\\u2127',\n 'micro': '\\u00B5',\n 'midcir': '\\u2AF0',\n 'minus': '\\u2212',\n 'minusdu': '\\u2A2A',\n 'mlcp': '\\u2ADB',\n 'models': '\\u22A7',\n 'mopf': '\\uD835\\uDD5E',\n 'mscr': '\\uD835\\uDCC2',\n 'mu': '\\u03BC',\n 'multimap': '\\u22B8',\n 'mumap': '\\u22B8',\n 'nGg': '\\u22D9\\u0338',\n 'nGt': '\\u226B\\u20D2',\n 'nLeftarrow': '\\u21CD',\n 'nlArr': '\\u21CD',\n 'nLeftrightarrow': '\\u21CE',\n 'nhArr': '\\u21CE',\n 'nLl': '\\u22D8\\u0338',\n 'nLt': '\\u226A\\u20D2',\n 'nRightarrow': '\\u21CF',\n 'nrArr': '\\u21CF',\n 'nVDash': '\\u22AF',\n 'nVdash': '\\u22AE',\n 'nacute': '\\u0144',\n 'nang': '\\u2220\\u20D2',\n 'napE': '\\u2A70\\u0338',\n 'napid': '\\u224B\\u0338',\n 'napos': '\\u0149',\n 'natur': '\\u266E',\n 'natural': '\\u266E',\n 'ncap': '\\u2A43',\n 'ncaron': '\\u0148',\n 'ncedil': '\\u0146',\n 'ncongdot': '\\u2A6D\\u0338',\n 'ncup': '\\u2A42',\n 'ncy': '\\u043D',\n 'ndash': '\\u2013',\n 'neArr': '\\u21D7',\n 'nearhk': '\\u2924',\n 'nedot': '\\u2250\\u0338',\n 'nesear': '\\u2928',\n 'toea': '\\u2928',\n 'nfr': '\\uD835\\uDD2B',\n 'nharr': '\\u21AE',\n 'nleftrightarrow': '\\u21AE',\n 'nhpar': '\\u2AF2',\n 'nis': '\\u22FC',\n 'nisd': '\\u22FA',\n 'njcy': '\\u045A',\n 'nlE': '\\u2266\\u0338',\n 'nleqq': '\\u2266\\u0338',\n 'nlarr': '\\u219A',\n 'nleftarrow': '\\u219A',\n 'nldr': '\\u2025',\n 'nopf': '\\uD835\\uDD5F',\n 'not': '\\u00AC',\n 'notinE': '\\u22F9\\u0338',\n 'notindot': '\\u22F5\\u0338',\n 'notinvb': '\\u22F7',\n 'notinvc': '\\u22F6',\n 'notnivb': '\\u22FE',\n 'notnivc': '\\u22FD',\n 'nparsl': '\\u2AFD\\u20E5',\n 'npart': '\\u2202\\u0338',\n 'npolint': '\\u2A14',\n 'nrarr': '\\u219B',\n 'nrightarrow': '\\u219B',\n 'nrarrc': '\\u2933\\u0338',\n 'nrarrw': '\\u219D\\u0338',\n 'nscr': '\\uD835\\uDCC3',\n 'nsub': '\\u2284',\n 'nsubE': '\\u2AC5\\u0338',\n 'nsubseteqq': '\\u2AC5\\u0338',\n 'nsup': '\\u2285',\n 'nsupE': '\\u2AC6\\u0338',\n 'nsupseteqq': '\\u2AC6\\u0338',\n 'ntilde': '\\u00F1',\n 'nu': '\\u03BD',\n 'num': '\\u0023',\n 'numero': '\\u2116',\n 'numsp': '\\u2007',\n 'nvDash': '\\u22AD',\n 'nvHarr': '\\u2904',\n 'nvap': '\\u224D\\u20D2',\n 'nvdash': '\\u22AC',\n 'nvge': '\\u2265\\u20D2',\n 'nvgt': '\\u003E\\u20D2',\n 'nvinfin': '\\u29DE',\n 'nvlArr': '\\u2902',\n 'nvle': '\\u2264\\u20D2',\n 'nvlt': '\\u003C\\u20D2',\n 'nvltrie': '\\u22B4\\u20D2',\n 'nvrArr': '\\u2903',\n 'nvrtrie': '\\u22B5\\u20D2',\n 'nvsim': '\\u223C\\u20D2',\n 'nwArr': '\\u21D6',\n 'nwarhk': '\\u2923',\n 'nwnear': '\\u2927',\n 'oacute': '\\u00F3',\n 'ocirc': '\\u00F4',\n 'ocy': '\\u043E',\n 'odblac': '\\u0151',\n 'odiv': '\\u2A38',\n 'odsold': '\\u29BC',\n 'oelig': '\\u0153',\n 'ofcir': '\\u29BF',\n 'ofr': '\\uD835\\uDD2C',\n 'ogon': '\\u02DB',\n 'ograve': '\\u00F2',\n 'ogt': '\\u29C1',\n 'ohbar': '\\u29B5',\n 'olcir': '\\u29BE',\n 'olcross': '\\u29BB',\n 'olt': '\\u29C0',\n 'omacr': '\\u014D',\n 'omega': '\\u03C9',\n 'omicron': '\\u03BF',\n 'omid': '\\u29B6',\n 'oopf': '\\uD835\\uDD60',\n 'opar': '\\u29B7',\n 'operp': '\\u29B9',\n 'or': '\\u2228',\n 'vee': '\\u2228',\n 'ord': '\\u2A5D',\n 'order': '\\u2134',\n 'orderof': '\\u2134',\n 'oscr': '\\u2134',\n 'ordf': '\\u00AA',\n 'ordm': '\\u00BA',\n 'origof': '\\u22B6',\n 'oror': '\\u2A56',\n 'orslope': '\\u2A57',\n 'orv': '\\u2A5B',\n 'oslash': '\\u00F8',\n 'osol': '\\u2298',\n 'otilde': '\\u00F5',\n 'otimesas': '\\u2A36',\n 'ouml': '\\u00F6',\n 'ovbar': '\\u233D',\n 'para': '\\u00B6',\n 'parsim': '\\u2AF3',\n 'parsl': '\\u2AFD',\n 'pcy': '\\u043F',\n 'percnt': '\\u0025',\n 'period': '\\u002E',\n 'permil': '\\u2030',\n 'pertenk': '\\u2031',\n 'pfr': '\\uD835\\uDD2D',\n 'phi': '\\u03C6',\n 'phiv': '\\u03D5',\n 'straightphi': '\\u03D5',\n 'varphi': '\\u03D5',\n 'phone': '\\u260E',\n 'pi': '\\u03C0',\n 'piv': '\\u03D6',\n 'varpi': '\\u03D6',\n 'planckh': '\\u210E',\n 'plus': '\\u002B',\n 'plusacir': '\\u2A23',\n 'pluscir': '\\u2A22',\n 'plusdu': '\\u2A25',\n 'pluse': '\\u2A72',\n 'plussim': '\\u2A26',\n 'plustwo': '\\u2A27',\n 'pointint': '\\u2A15',\n 'popf': '\\uD835\\uDD61',\n 'pound': '\\u00A3',\n 'prE': '\\u2AB3',\n 'prap': '\\u2AB7',\n 'precapprox': '\\u2AB7',\n 'precnapprox': '\\u2AB9',\n 'prnap': '\\u2AB9',\n 'precneqq': '\\u2AB5',\n 'prnE': '\\u2AB5',\n 'precnsim': '\\u22E8',\n 'prnsim': '\\u22E8',\n 'prime': '\\u2032',\n 'profalar': '\\u232E',\n 'profline': '\\u2312',\n 'profsurf': '\\u2313',\n 'prurel': '\\u22B0',\n 'pscr': '\\uD835\\uDCC5',\n 'psi': '\\u03C8',\n 'puncsp': '\\u2008',\n 'qfr': '\\uD835\\uDD2E',\n 'qopf': '\\uD835\\uDD62',\n 'qprime': '\\u2057',\n 'qscr': '\\uD835\\uDCC6',\n 'quatint': '\\u2A16',\n 'quest': '\\u003F',\n 'rAtail': '\\u291C',\n 'rHar': '\\u2964',\n 'race': '\\u223D\\u0331',\n 'racute': '\\u0155',\n 'raemptyv': '\\u29B3',\n 'rangd': '\\u2992',\n 'range': '\\u29A5',\n 'raquo': '\\u00BB',\n 'rarrap': '\\u2975',\n 'rarrbfs': '\\u2920',\n 'rarrc': '\\u2933',\n 'rarrfs': '\\u291E',\n 'rarrpl': '\\u2945',\n 'rarrsim': '\\u2974',\n 'rarrtl': '\\u21A3',\n 'rightarrowtail': '\\u21A3',\n 'rarrw': '\\u219D',\n 'rightsquigarrow': '\\u219D',\n 'ratail': '\\u291A',\n 'ratio': '\\u2236',\n 'rbbrk': '\\u2773',\n 'rbrace': '\\u007D',\n 'rcub': '\\u007D',\n 'rbrack': '\\u005D',\n 'rsqb': '\\u005D',\n 'rbrke': '\\u298C',\n 'rbrksld': '\\u298E',\n 'rbrkslu': '\\u2990',\n 'rcaron': '\\u0159',\n 'rcedil': '\\u0157',\n 'rcy': '\\u0440',\n 'rdca': '\\u2937',\n 'rdldhar': '\\u2969',\n 'rdsh': '\\u21B3',\n 'rect': '\\u25AD',\n 'rfisht': '\\u297D',\n 'rfr': '\\uD835\\uDD2F',\n 'rharul': '\\u296C',\n 'rho': '\\u03C1',\n 'rhov': '\\u03F1',\n 'varrho': '\\u03F1',\n 'rightrightarrows': '\\u21C9',\n 'rrarr': '\\u21C9',\n 'rightthreetimes': '\\u22CC',\n 'rthree': '\\u22CC',\n 'ring': '\\u02DA',\n 'rlm': '\\u200F',\n 'rmoust': '\\u23B1',\n 'rmoustache': '\\u23B1',\n 'rnmid': '\\u2AEE',\n 'roang': '\\u27ED',\n 'roarr': '\\u21FE',\n 'ropar': '\\u2986',\n 'ropf': '\\uD835\\uDD63',\n 'roplus': '\\u2A2E',\n 'rotimes': '\\u2A35',\n 'rpar': '\\u0029',\n 'rpargt': '\\u2994',\n 'rppolint': '\\u2A12',\n 'rsaquo': '\\u203A',\n 'rscr': '\\uD835\\uDCC7',\n 'rtimes': '\\u22CA',\n 'rtri': '\\u25B9',\n 'triangleright': '\\u25B9',\n 'rtriltri': '\\u29CE',\n 'ruluhar': '\\u2968',\n 'rx': '\\u211E',\n 'sacute': '\\u015B',\n 'scE': '\\u2AB4',\n 'scap': '\\u2AB8',\n 'succapprox': '\\u2AB8',\n 'scaron': '\\u0161',\n 'scedil': '\\u015F',\n 'scirc': '\\u015D',\n 'scnE': '\\u2AB6',\n 'succneqq': '\\u2AB6',\n 'scnap': '\\u2ABA',\n 'succnapprox': '\\u2ABA',\n 'scnsim': '\\u22E9',\n 'succnsim': '\\u22E9',\n 'scpolint': '\\u2A13',\n 'scy': '\\u0441',\n 'sdot': '\\u22C5',\n 'sdote': '\\u2A66',\n 'seArr': '\\u21D8',\n 'sect': '\\u00A7',\n 'semi': '\\u003B',\n 'seswar': '\\u2929',\n 'tosa': '\\u2929',\n 'sext': '\\u2736',\n 'sfr': '\\uD835\\uDD30',\n 'sharp': '\\u266F',\n 'shchcy': '\\u0449',\n 'shcy': '\\u0448',\n 'shy': '\\u00AD',\n 'sigma': '\\u03C3',\n 'sigmaf': '\\u03C2',\n 'sigmav': '\\u03C2',\n 'varsigma': '\\u03C2',\n 'simdot': '\\u2A6A',\n 'simg': '\\u2A9E',\n 'simgE': '\\u2AA0',\n 'siml': '\\u2A9D',\n 'simlE': '\\u2A9F',\n 'simne': '\\u2246',\n 'simplus': '\\u2A24',\n 'simrarr': '\\u2972',\n 'smashp': '\\u2A33',\n 'smeparsl': '\\u29E4',\n 'smile': '\\u2323',\n 'ssmile': '\\u2323',\n 'smt': '\\u2AAA',\n 'smte': '\\u2AAC',\n 'smtes': '\\u2AAC\\uFE00',\n 'softcy': '\\u044C',\n 'sol': '\\u002F',\n 'solb': '\\u29C4',\n 'solbar': '\\u233F',\n 'sopf': '\\uD835\\uDD64',\n 'spades': '\\u2660',\n 'spadesuit': '\\u2660',\n 'sqcaps': '\\u2293\\uFE00',\n 'sqcups': '\\u2294\\uFE00',\n 'sscr': '\\uD835\\uDCC8',\n 'star': '\\u2606',\n 'sub': '\\u2282',\n 'subset': '\\u2282',\n 'subE': '\\u2AC5',\n 'subseteqq': '\\u2AC5',\n 'subdot': '\\u2ABD',\n 'subedot': '\\u2AC3',\n 'submult': '\\u2AC1',\n 'subnE': '\\u2ACB',\n 'subsetneqq': '\\u2ACB',\n 'subne': '\\u228A',\n 'subsetneq': '\\u228A',\n 'subplus': '\\u2ABF',\n 'subrarr': '\\u2979',\n 'subsim': '\\u2AC7',\n 'subsub': '\\u2AD5',\n 'subsup': '\\u2AD3',\n 'sung': '\\u266A',\n 'sup1': '\\u00B9',\n 'sup2': '\\u00B2',\n 'sup3': '\\u00B3',\n 'supE': '\\u2AC6',\n 'supseteqq': '\\u2AC6',\n 'supdot': '\\u2ABE',\n 'supdsub': '\\u2AD8',\n 'supedot': '\\u2AC4',\n 'suphsol': '\\u27C9',\n 'suphsub': '\\u2AD7',\n 'suplarr': '\\u297B',\n 'supmult': '\\u2AC2',\n 'supnE': '\\u2ACC',\n 'supsetneqq': '\\u2ACC',\n 'supne': '\\u228B',\n 'supsetneq': '\\u228B',\n 'supplus': '\\u2AC0',\n 'supsim': '\\u2AC8',\n 'supsub': '\\u2AD4',\n 'supsup': '\\u2AD6',\n 'swArr': '\\u21D9',\n 'swnwar': '\\u292A',\n 'szlig': '\\u00DF',\n 'target': '\\u2316',\n 'tau': '\\u03C4',\n 'tcaron': '\\u0165',\n 'tcedil': '\\u0163',\n 'tcy': '\\u0442',\n 'telrec': '\\u2315',\n 'tfr': '\\uD835\\uDD31',\n 'theta': '\\u03B8',\n 'thetasym': '\\u03D1',\n 'thetav': '\\u03D1',\n 'vartheta': '\\u03D1',\n 'thorn': '\\u00FE',\n 'times': '\\u00D7',\n 'timesbar': '\\u2A31',\n 'timesd': '\\u2A30',\n 'topbot': '\\u2336',\n 'topcir': '\\u2AF1',\n 'topf': '\\uD835\\uDD65',\n 'topfork': '\\u2ADA',\n 'tprime': '\\u2034',\n 'triangle': '\\u25B5',\n 'utri': '\\u25B5',\n 'triangleq': '\\u225C',\n 'trie': '\\u225C',\n 'tridot': '\\u25EC',\n 'triminus': '\\u2A3A',\n 'triplus': '\\u2A39',\n 'trisb': '\\u29CD',\n 'tritime': '\\u2A3B',\n 'trpezium': '\\u23E2',\n 'tscr': '\\uD835\\uDCC9',\n 'tscy': '\\u0446',\n 'tshcy': '\\u045B',\n 'tstrok': '\\u0167',\n 'uHar': '\\u2963',\n 'uacute': '\\u00FA',\n 'ubrcy': '\\u045E',\n 'ubreve': '\\u016D',\n 'ucirc': '\\u00FB',\n 'ucy': '\\u0443',\n 'udblac': '\\u0171',\n 'ufisht': '\\u297E',\n 'ufr': '\\uD835\\uDD32',\n 'ugrave': '\\u00F9',\n 'uhblk': '\\u2580',\n 'ulcorn': '\\u231C',\n 'ulcorner': '\\u231C',\n 'ulcrop': '\\u230F',\n 'ultri': '\\u25F8',\n 'umacr': '\\u016B',\n 'uogon': '\\u0173',\n 'uopf': '\\uD835\\uDD66',\n 'upsi': '\\u03C5',\n 'upsilon': '\\u03C5',\n 'upuparrows': '\\u21C8',\n 'uuarr': '\\u21C8',\n 'urcorn': '\\u231D',\n 'urcorner': '\\u231D',\n 'urcrop': '\\u230E',\n 'uring': '\\u016F',\n 'urtri': '\\u25F9',\n 'uscr': '\\uD835\\uDCCA',\n 'utdot': '\\u22F0',\n 'utilde': '\\u0169',\n 'uuml': '\\u00FC',\n 'uwangle': '\\u29A7',\n 'vBar': '\\u2AE8',\n 'vBarv': '\\u2AE9',\n 'vangrt': '\\u299C',\n 'varsubsetneq': '\\u228A\\uFE00',\n 'vsubne': '\\u228A\\uFE00',\n 'varsubsetneqq': '\\u2ACB\\uFE00',\n 'vsubnE': '\\u2ACB\\uFE00',\n 'varsupsetneq': '\\u228B\\uFE00',\n 'vsupne': '\\u228B\\uFE00',\n 'varsupsetneqq': '\\u2ACC\\uFE00',\n 'vsupnE': '\\u2ACC\\uFE00',\n 'vcy': '\\u0432',\n 'veebar': '\\u22BB',\n 'veeeq': '\\u225A',\n 'vellip': '\\u22EE',\n 'vfr': '\\uD835\\uDD33',\n 'vopf': '\\uD835\\uDD67',\n 'vscr': '\\uD835\\uDCCB',\n 'vzigzag': '\\u299A',\n 'wcirc': '\\u0175',\n 'wedbar': '\\u2A5F',\n 'wedgeq': '\\u2259',\n 'weierp': '\\u2118',\n 'wp': '\\u2118',\n 'wfr': '\\uD835\\uDD34',\n 'wopf': '\\uD835\\uDD68',\n 'wscr': '\\uD835\\uDCCC',\n 'xfr': '\\uD835\\uDD35',\n 'xi': '\\u03BE',\n 'xnis': '\\u22FB',\n 'xopf': '\\uD835\\uDD69',\n 'xscr': '\\uD835\\uDCCD',\n 'yacute': '\\u00FD',\n 'yacy': '\\u044F',\n 'ycirc': '\\u0177',\n 'ycy': '\\u044B',\n 'yen': '\\u00A5',\n 'yfr': '\\uD835\\uDD36',\n 'yicy': '\\u0457',\n 'yopf': '\\uD835\\uDD6A',\n 'yscr': '\\uD835\\uDCCE',\n 'yucy': '\\u044E',\n 'yuml': '\\u00FF',\n 'zacute': '\\u017A',\n 'zcaron': '\\u017E',\n 'zcy': '\\u0437',\n 'zdot': '\\u017C',\n 'zeta': '\\u03B6',\n 'zfr': '\\uD835\\uDD37',\n 'zhcy': '\\u0436',\n 'zigrarr': '\\u21DD',\n 'zopf': '\\uD835\\uDD6B',\n 'zscr': '\\uD835\\uDCCF',\n 'zwj': '\\u200D',\n 'zwnj': '\\u200C'\n};\n\n\n// The &ngsp; pseudo-entity is denoting a space.\n// 0xE500 is a PUA (Private Use Areas) unicode character\n// This is inspired by the Angular Dart implementation.\nexport const NGSP_UNICODE = '\\uE500';\n\nNAMED_ENTITIES['ngsp'] = NGSP_UNICODE;\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as chars from '../chars';\nimport {ParseError, ParseLocation, ParseSourceFile, ParseSourceSpan} from '../parse_util';\n\nimport {DEFAULT_INTERPOLATION_CONFIG, InterpolationConfig} from './defaults';\nimport {NAMED_ENTITIES} from './entities';\nimport {TagContentType, TagDefinition} from './tags';\nimport {IncompleteTagOpenToken, TagOpenStartToken, Token, TokenType} from './tokens';\n\nexport class TokenError extends ParseError {\n constructor(errorMsg: string, public tokenType: TokenType|null, span: ParseSourceSpan) {\n super(span, errorMsg);\n }\n}\n\nexport class TokenizeResult {\n constructor(\n public tokens: Token[], public errors: TokenError[],\n public nonNormalizedIcuExpressions: Token[]) {}\n}\n\nexport interface LexerRange {\n startPos: number;\n startLine: number;\n startCol: number;\n endPos: number;\n}\n\n/**\n * Options that modify how the text is tokenized.\n */\nexport interface TokenizeOptions {\n /** Whether to tokenize ICU messages (considered as text nodes when false). */\n tokenizeExpansionForms?: boolean;\n /** How to tokenize interpolation markers. */\n interpolationConfig?: InterpolationConfig;\n /**\n * The start and end point of the text to parse within the `source` string.\n * The entire `source` string is parsed if this is not provided.\n * */\n range?: LexerRange;\n /**\n * If this text is stored in a JavaScript string, then we have to deal with escape sequences.\n *\n * **Example 1:**\n *\n * ```\n * \"abc\\\"def\\nghi\"\n * ```\n *\n * - The `\\\"` must be converted to `\"`.\n * - The `\\n` must be converted to a new line character in a token,\n * but it should not increment the current line for source mapping.\n *\n * **Example 2:**\n *\n * ```\n * \"abc\\\n * def\"\n * ```\n *\n * The line continuation (`\\` followed by a newline) should be removed from a token\n * but the new line should increment the current line for source mapping.\n */\n escapedString?: boolean;\n /**\n * If this text is stored in an external template (e.g. via `templateUrl`) then we need to decide\n * whether or not to normalize the line-endings (from `\\r\\n` to `\\n`) when processing ICU\n * expressions.\n *\n * If `true` then we will normalize ICU expression line endings.\n * The default is `false`, but this will be switched in a future major release.\n */\n i18nNormalizeLineEndingsInICUs?: boolean;\n /**\n * An array of characters that should be considered as leading trivia.\n * Leading trivia are characters that are not important to the developer, and so should not be\n * included in source-map segments. A common example is whitespace.\n */\n leadingTriviaChars?: string[];\n /**\n * If true, do not convert CRLF to LF.\n */\n preserveLineEndings?: boolean;\n\n /**\n * Whether to tokenize @ block syntax. Otherwise considered text,\n * or ICU tokens if `tokenizeExpansionForms` is enabled.\n */\n tokenizeBlocks?: boolean;\n}\n\nexport function tokenize(\n source: string, url: string, getTagDefinition: (tagName: string) => TagDefinition,\n options: TokenizeOptions = {}): TokenizeResult {\n const tokenizer = new _Tokenizer(new ParseSourceFile(source, url), getTagDefinition, options);\n tokenizer.tokenize();\n return new TokenizeResult(\n mergeTextTokens(tokenizer.tokens), tokenizer.errors, tokenizer.nonNormalizedIcuExpressions);\n}\n\nconst _CR_OR_CRLF_REGEXP = /\\r\\n?/g;\n\nfunction _unexpectedCharacterErrorMsg(charCode: number): string {\n const char = charCode === chars.$EOF ? 'EOF' : String.fromCharCode(charCode);\n return `Unexpected character \"${char}\"`;\n}\n\nfunction _unknownEntityErrorMsg(entitySrc: string): string {\n return `Unknown entity \"${entitySrc}\" - use the \"&#<decimal>;\" or \"&#x<hex>;\" syntax`;\n}\n\nfunction _unparsableEntityErrorMsg(type: CharacterReferenceType, entityStr: string): string {\n return `Unable to parse entity \"${entityStr}\" - ${\n type} character reference entities must end with \";\"`;\n}\n\nenum CharacterReferenceType {\n HEX = 'hexadecimal',\n DEC = 'decimal',\n}\n\nclass _ControlFlowError {\n constructor(public error: TokenError) {}\n}\n\n// See https://www.w3.org/TR/html51/syntax.html#writing-html-documents\nclass _Tokenizer {\n private _cursor: CharacterCursor;\n private _tokenizeIcu: boolean;\n private _interpolationConfig: InterpolationConfig;\n private _leadingTriviaCodePoints: number[]|undefined;\n private _currentTokenStart: CharacterCursor|null = null;\n private _currentTokenType: TokenType|null = null;\n private _expansionCaseStack: TokenType[] = [];\n private _inInterpolation: boolean = false;\n private readonly _preserveLineEndings: boolean;\n private readonly _i18nNormalizeLineEndingsInICUs: boolean;\n private readonly _tokenizeBlocks: boolean;\n tokens: Token[] = [];\n errors: TokenError[] = [];\n nonNormalizedIcuExpressions: Token[] = [];\n\n /**\n * @param _file The html source file being tokenized.\n * @param _getTagDefinition A function that will retrieve a tag definition for a given tag name.\n * @param options Configuration of the tokenization.\n */\n constructor(\n _file: ParseSourceFile, private _getTagDefinition: (tagName: string) => TagDefinition,\n options: TokenizeOptions) {\n this._tokenizeIcu = options.tokenizeExpansionForms || false;\n this._interpolationConfig = options.interpolationConfig || DEFAULT_INTERPOLATION_CONFIG;\n this._leadingTriviaCodePoints =\n options.leadingTriviaChars && options.leadingTriviaChars.map(c => c.codePointAt(0) || 0);\n const range =\n options.range || {endPos: _file.content.length, startPos: 0, startLine: 0, startCol: 0};\n this._cursor = options.escapedString ? new EscapedCharacterCursor(_file, range) :\n new PlainCharacterCursor(_file, range);\n this._preserveLineEndings = options.preserveLineEndings || false;\n this._i18nNormalizeLineEndingsInICUs = options.i18nNormalizeLineEndingsInICUs || false;\n this._tokenizeBlocks = options.tokenizeBlocks ?? true;\n try {\n this._cursor.init();\n } catch (e) {\n this.handleError(e);\n }\n }\n\n private _processCarriageReturns(content: string): string {\n if (this._preserveLineEndings) {\n return content;\n }\n // https://www.w3.org/TR/html51/syntax.html#preprocessing-the-input-stream\n // In order to keep the original position in the source, we can not\n // pre-process it.\n // Instead CRs are processed right before instantiating the tokens.\n return content.replace(_CR_OR_CRLF_REGEXP, '\\n');\n }\n\n tokenize(): void {\n while (this._cursor.peek() !== chars.$EOF) {\n const start = this._cursor.clone();\n try {\n if (this._attemptCharCode(chars.$LT)) {\n if (this._attemptCharCode(chars.$BANG)) {\n if (this._attemptCharCode(chars.$LBRACKET)) {\n this._consumeCdata(start);\n } else if (this._attemptCharCode(chars.$MINUS)) {\n this._consumeComment(start);\n } else {\n this._consumeDocType(start);\n }\n } else if (this._attemptCharCode(chars.$SLASH)) {\n this._consumeTagClose(start);\n } else {\n this._consumeTagOpen(start);\n }\n } else if (this._tokenizeBlocks && this._attemptCharCode(chars.$AT)) {\n this._consumeBlockStart(start);\n } else if (\n this._tokenizeBlocks && !this._inInterpolation && !this._isInExpansionCase() &&\n !this._isInExpansionForm() && this._attemptCharCode(chars.$RBRACE)) {\n this._consumeBlockEnd(start);\n } else if (!(this._tokenizeIcu && this._tokenizeExpansionForm())) {\n // In (possibly interpolated) text the end of the text is given by `isTextEnd()`, while\n // the premature end of an interpolation is given by the start of a new HTML element.\n this._consumeWithInterpolation(\n TokenType.TEXT, TokenType.INTERPOLATION, () => this._isTextEnd(),\n () => this._isTagStart());\n }\n } catch (e) {\n this.handleError(e);\n }\n }\n this._beginToken(TokenType.EOF);\n this._endToken([]);\n }\n\n private _getBlockName(): string {\n // This allows us to capture up something like `@else if`, but not `@ if`.\n let spacesInNameAllowed = false;\n const nameCursor = this._cursor.clone();\n\n this._attemptCharCodeUntilFn(code => {\n if (chars.isWhitespace(code)) {\n return !spacesInNameAllowed;\n }\n if (isBlockNameChar(code)) {\n spacesInNameAllowed = true;\n return false;\n }\n return true;\n });\n return this._cursor.getChars(nameCursor).trim();\n }\n\n private _consumeBlockStart(start: CharacterCursor) {\n this._beginToken(TokenType.BLOCK_OPEN_START, start);\n const startToken = this._endToken([this._getBlockName()]);\n\n if (this._cursor.peek() === chars.$LPAREN) {\n // Advance past the opening paren.\n this._cursor.advance();\n // Capture the parameters.\n this._consumeBlockParameters();\n // Allow spaces before the closing paren.\n this._attemptCharCodeUntilFn(isNotWhitespace);\n\n if (this._attemptCharCode(chars.$RPAREN)) {\n // Allow spaces after the paren.\n this._attemptCharCodeUntilFn(isNotWhitespace);\n } else {\n startToken.type = TokenType.INCOMPLETE_BLOCK_OPEN;\n return;\n }\n }\n\n if (this._attemptCharCode(chars.$LBRACE)) {\n this._beginToken(TokenType.BLOCK_OPEN_END);\n this._endToken([]);\n } else {\n startToken.type = TokenType.INCOMPLETE_BLOCK_OPEN;\n }\n }\n\n private _consumeBlockEnd(start: CharacterCursor) {\n this._beginToken(TokenType.BLOCK_CLOSE, start);\n this._endToken([]);\n }\n\n private _consumeBlockParameters() {\n // Trim the whitespace until the first parameter.\n this._attemptCharCodeUntilFn(isBlockParameterChar);\n\n while (this._cursor.peek() !== chars.$RPAREN && this._cursor.peek() !== chars.$EOF) {\n this._beginToken(TokenType.BLOCK_PARAMETER);\n const start = this._cursor.clone();\n let inQuote: number|null = null;\n let openParens = 0;\n\n // Consume the parameter until the next semicolon or brace.\n // Note that we skip over semicolons/braces inside of strings.\n while ((this._cursor.peek() !== chars.$SEMICOLON && this._cursor.peek() !== chars.$EOF) ||\n inQuote !== null) {\n const char = this._cursor.peek();\n\n // Skip to the next character if it was escaped.\n if (char === chars.$BACKSLASH) {\n this._cursor.advance();\n } else if (char === inQuote) {\n inQuote = null;\n } else if (inQuote === null && chars.isQuote(char)) {\n inQuote = char;\n } else if (char === chars.$LPAREN && inQuote === null) {\n openParens++;\n } else if (char === chars.$RPAREN && inQuote === null) {\n if (openParens === 0) {\n break;\n } else if (openParens > 0) {\n openParens--;\n }\n }\n\n this._cursor.advance();\n }\n\n this._endToken([this._cursor.getChars(start)]);\n\n // Skip to the next parameter.\n this._attemptCharCodeUntilFn(isBlockParameterChar);\n }\n }\n\n /**\n * @returns whether an ICU token has been created\n * @internal\n */\n private _tokenizeExpansionForm(): boolean {\n if (this.isExpansionFormStart()) {\n this._consumeExpansionFormStart();\n return true;\n }\n\n if (isExpansionCaseStart(this._cursor.peek()) && this._isInExpansionForm()) {\n this._consumeExpansionCaseStart();\n return true;\n }\n\n if (this._cursor.peek() === chars.$RBRACE) {\n if (this._isInExpansionCase()) {\n this._consumeExpansionCaseEnd();\n return true;\n }\n\n if (this._isInExpansionForm()) {\n this._consumeExpansionFormEnd();\n return true;\n }\n }\n\n return false;\n }\n\n private _beginToken(type: TokenType, start = this._cursor.clone()) {\n this._currentTokenStart = start;\n this._currentTokenType = type;\n }\n\n private _endToken(parts: string[], end?: CharacterCursor): Token {\n if (this._currentTokenStart === null) {\n throw new TokenError(\n 'Programming error - attempted to end a token when there was no start to the token',\n this._currentTokenType, this._cursor.getSpan(end));\n }\n if (this._currentTokenType === null) {\n throw new TokenError(\n 'Programming error - attempted to end a token which has no token type', null,\n this._cursor.getSpan(this._currentTokenStart));\n }\n const token = {\n type: this._currentTokenType,\n parts,\n sourceSpan:\n (end ?? this._cursor).getSpan(this._currentTokenStart, this._leadingTriviaCodePoints),\n } as Token;\n this.tokens.push(token);\n this._currentTokenStart = null;\n this._currentTokenType = null;\n return token;\n }\n\n private _createError(msg: string, span: ParseSourceSpan): _ControlFlowError {\n if (this._isInExpansionForm()) {\n msg += ` (Do you have an unescaped \"{\" in your template? Use \"{{ '{' }}\") to escape it.)`;\n }\n const error = new TokenError(msg, this._currentTokenType, span);\n this._currentTokenStart = null;\n this._currentTokenType = null;\n return new _ControlFlowError(error);\n }\n\n private handleError(e: any) {\n if (e instanceof CursorError) {\n e = this._createError(e.msg, this._cursor.getSpan(e.cursor));\n }\n if (e instanceof _ControlFlowError) {\n this.errors.push(e.error);\n } else {\n throw e;\n }\n }\n\n private _attemptCharCode(charCode: number): boolean {\n if (this._cursor.peek() === charCode) {\n this._cursor.advance();\n return true;\n }\n return false;\n }\n\n private _attemptCharCodeCaseInsensitive(charCode: number): boolean {\n if (compareCharCodeCaseInsensitive(this._cursor.peek(), charCode)) {\n this._cursor.advance();\n return true;\n }\n return false;\n }\n\n private _requireCharCode(charCode: number) {\n const location = this._cursor.clone();\n if (!this._attemptCharCode(charCode)) {\n throw this._createError(\n _unexpectedCharacterErrorMsg(this._cursor.peek()), this._cursor.getSpan(location));\n }\n }\n\n private _attemptStr(chars: string): boolean {\n const len = chars.length;\n if (this._cursor.charsLeft() < len) {\n return false;\n }\n const initialPosition = this._cursor.clone();\n for (let i = 0; i < len; i++) {\n if (!this._attemptCharCode(chars.charCodeAt(i))) {\n // If attempting to parse the string fails, we want to reset the parser\n // to where it was before the attempt\n this._cursor = initialPosition;\n return false;\n }\n }\n return true;\n }\n\n private _attemptStrCaseInsensitive(chars: string): boolean {\n for (let i = 0; i < chars.length; i++) {\n if (!this._attemptCharCodeCaseInsensitive(chars.charCodeAt(i))) {\n return false;\n }\n }\n return true;\n }\n\n private _requireStr(chars: string) {\n const location = this._cursor.clone();\n if (!this._attemptStr(chars)) {\n throw this._createError(\n _unexpectedCharacterErrorMsg(this._cursor.peek()), this._cursor.getSpan(location));\n }\n }\n\n private _attemptCharCodeUntilFn(predicate: (code: number) => boolean) {\n while (!predicate(this._cursor.peek())) {\n this._cursor.advance();\n }\n }\n\n private _requireCharCodeUntilFn(predicate: (code: number) => boolean, len: number) {\n const start = this._cursor.clone();\n this._attemptCharCodeUntilFn(predicate);\n if (this._cursor.diff(start) < len) {\n throw this._createError(\n _unexpectedCharacterErrorMsg(this._cursor.peek()), this._cursor.getSpan(start));\n }\n }\n\n private _attemptUntilChar(char: number) {\n while (this._cursor.peek() !== char) {\n this._cursor.advance();\n }\n }\n\n private _readChar(): string {\n // Don't rely upon reading directly from `_input` as the actual char value\n // may have been generated from an escape sequence.\n const char = String.fromCodePoint(this._cursor.peek());\n this._cursor.advance();\n return char;\n }\n\n private _consumeEntity(textTokenType: TokenType): void {\n this._beginToken(TokenType.ENCODED_ENTITY);\n const start = this._cursor.clone();\n this._cursor.advance();\n if (this._attemptCharCode(chars.$HASH)) {\n const isHex = this._attemptCharCode(chars.$x) || this._attemptCharCode(chars.$X);\n const codeStart = this._cursor.clone();\n this._attemptCharCodeUntilFn(isDigitEntityEnd);\n if (this._cursor.peek() != chars.$SEMICOLON) {\n // Advance cursor to include the peeked character in the string provided to the error\n // message.\n this._cursor.advance();\n const entityType = isHex ? CharacterReferenceType.HEX : CharacterReferenceType.DEC;\n throw this._createError(\n _unparsableEntityErrorMsg(entityType, this._cursor.getChars(start)),\n this._cursor.getSpan());\n }\n const strNum = this._cursor.getChars(codeStart);\n this._cursor.advance();\n try {\n const charCode = parseInt(strNum, isHex ? 16 : 10);\n this._endToken([String.fromCharCode(charCode), this._cursor.getChars(start)]);\n } catch {\n throw this._createError(\n _unknownEntityErrorMsg(this._cursor.getChars(start)), this._cursor.getSpan());\n }\n } else {\n const nameStart = this._cursor.clone();\n this._attemptCharCodeUntilFn(isNamedEntityEnd);\n if (this._cursor.peek() != chars.$SEMICOLON) {\n // No semicolon was found so abort the encoded entity token that was in progress, and treat\n // this as a text token\n this._beginToken(textTokenType, start);\n this._cursor = nameStart;\n this._endToken(['&']);\n } else {\n const name = this._cursor.getChars(nameStart);\n this._cursor.advance();\n const char = NAMED_ENTITIES[name];\n if (!char) {\n throw this._createError(_unknownEntityErrorMsg(name), this._cursor.getSpan(start));\n }\n this._endToken([char, `&${name};`]);\n }\n }\n }\n\n private _consumeRawText(consumeEntities: boolean, endMarkerPredicate: () => boolean): void {\n this._beginToken(consumeEntities ? TokenType.ESCAPABLE_RAW_TEXT : TokenType.RAW_TEXT);\n const parts: string[] = [];\n while (true) {\n const tagCloseStart = this._cursor.clone();\n const foundEndMarker = endMarkerPredicate();\n this._cursor = tagCloseStart;\n if (foundEndMarker) {\n break;\n }\n if (consumeEntities && this._cursor.peek() === chars.$AMPERSAND) {\n this._endToken([this._processCarriageReturns(parts.join(''))]);\n parts.length = 0;\n this._consumeEntity(TokenType.ESCAPABLE_RAW_TEXT);\n this._beginToken(TokenType.ESCAPABLE_RAW_TEXT);\n } else {\n parts.push(this._readChar());\n }\n }\n this._endToken([this._processCarriageReturns(parts.join(''))]);\n }\n\n private _consumeComment(start: CharacterCursor) {\n this._beginToken(TokenType.COMMENT_START, start);\n this._requireCharCode(chars.$MINUS);\n this._endToken([]);\n this._consumeRawText(false, () => this._attemptStr('-->'));\n this._beginToken(TokenType.COMMENT_END);\n this._requireStr('-->');\n this._endToken([]);\n }\n\n private _consumeCdata(start: CharacterCursor) {\n this._beginToken(TokenType.CDATA_START, start);\n this._requireStr('CDATA[');\n this._endToken([]);\n this._consumeRawText(false, () => this._attemptStr(']]>'));\n this._beginToken(TokenType.CDATA_END);\n this._requireStr(']]>');\n this._endToken([]);\n }\n\n private _consumeDocType(start: CharacterCursor) {\n this._beginToken(TokenType.DOC_TYPE, start);\n const contentStart = this._cursor.clone();\n this._attemptUntilChar(chars.$GT);\n const content = this._cursor.getChars(contentStart);\n this._cursor.advance();\n this._endToken([content]);\n }\n\n private _consumePrefixAndName(): string[] {\n const nameOrPrefixStart = this._cursor.clone();\n let prefix: string = '';\n while (this._cursor.peek() !== chars.$COLON && !isPrefixEnd(this._cursor.peek())) {\n this._cursor.advance();\n }\n let nameStart: CharacterCursor;\n if (this._cursor.peek() === chars.$COLON) {\n prefix = this._cursor.getChars(nameOrPrefixStart);\n this._cursor.advance();\n nameStart = this._cursor.clone();\n } else {\n nameStart = nameOrPrefixStart;\n }\n this._requireCharCodeUntilFn(isNameEnd, prefix === '' ? 0 : 1);\n const name = this._cursor.getChars(nameStart);\n return [prefix, name];\n }\n\n private _consumeTagOpen(start: CharacterCursor) {\n let tagName: string;\n let prefix: string;\n let openTagToken: TagOpenStartToken|IncompleteTagOpenToken|undefined;\n try {\n if (!chars.isAsciiLetter(this._cursor.peek())) {\n throw this._createError(\n _unexpectedCharacterErrorMsg(this._cursor.peek()), this._cursor.getSpan(start));\n }\n\n openTagToken = this._consumeTagOpenStart(start);\n prefix = openTagToken.parts[0];\n tagName = openTagToken.parts[1];\n this._attemptCharCodeUntilFn(isNotWhitespace);\n while (this._cursor.peek() !== chars.$SLASH && this._cursor.peek() !== chars.$GT &&\n this._cursor.peek() !== chars.$LT && this._cursor.peek() !== chars.$EOF) {\n this._consumeAttributeName();\n this._attemptCharCodeUntilFn(isNotWhitespace);\n if (this._attemptCharCode(chars.$EQ)) {\n this._attemptCharCodeUntilFn(isNotWhitespace);\n this._consumeAttributeValue();\n }\n this._attemptCharCodeUntilFn(isNotWhitespace);\n }\n this._consumeTagOpenEnd();\n } catch (e) {\n if (e instanceof _ControlFlowError) {\n if (openTagToken) {\n // We errored before we could close the opening tag, so it is incomplete.\n openTagToken.type = TokenType.INCOMPLETE_TAG_OPEN;\n } else {\n // When the start tag is invalid, assume we want a \"<\" as text.\n // Back to back text tokens are merged at the end.\n this._beginToken(TokenType.TEXT, start);\n this._endToken(['<']);\n }\n return;\n }\n\n throw e;\n }\n\n const contentTokenType = this._getTagDefinition(tagName).getContentType(prefix);\n\n if (contentTokenType === TagContentType.RAW_TEXT) {\n this._consumeRawTextWithTagClose(prefix, tagName, false);\n } else if (contentTokenType === TagContentType.ESCAPABLE_RAW_TEXT) {\n this._consumeRawTextWithTagClose(prefix, tagName, true);\n }\n }\n\n private _consumeRawTextWithTagClose(prefix: string, tagName: string, consumeEntities: boolean) {\n this._consumeRawText(consumeEntities, () => {\n if (!this._attemptCharCode(chars.$LT)) return false;\n if (!this._attemptCharCode(chars.$SLASH)) return false;\n this._attemptCharCodeUntilFn(isNotWhitespace);\n if (!this._attemptStrCaseInsensitive(tagName)) return false;\n this._attemptCharCodeUntilFn(isNotWhitespace);\n return this._attemptCharCode(chars.$GT);\n });\n this._beginToken(TokenType.TAG_CLOSE);\n this._requireCharCodeUntilFn(code => code === chars.$GT, 3);\n this._cursor.advance(); // Consume the `>`\n this._endToken([prefix, tagName]);\n }\n\n private _consumeTagOpenStart(start: CharacterCursor): TagOpenStartToken {\n this._beginToken(TokenType.TAG_OPEN_START, start);\n const parts = this._consumePrefixAndName();\n return this._endToken(parts) as TagOpenStartToken;\n }\n\n private _consumeAttributeName() {\n const attrNameStart = this._cursor.peek();\n if (attrNameStart === chars.$SQ || attrNameStart === chars.$DQ) {\n throw this._createError(_unexpectedCharacterErrorMsg(attrNameStart), this._cursor.getSpan());\n }\n this._beginToken(TokenType.ATTR_NAME);\n const prefixAndName = this._consumePrefixAndName();\n this._endToken(prefixAndName);\n }\n\n private _consumeAttributeValue() {\n if (this._cursor.peek() === chars.$SQ || this._cursor.peek() === chars.$DQ) {\n const quoteChar = this._cursor.peek();\n this._consumeQuote(quoteChar);\n // In an attribute then end of the attribute value and the premature end to an interpolation\n // are both triggered by the `quoteChar`.\n const endPredicate = () => this._cursor.peek() === quoteChar;\n this._consumeWithInterpolation(\n TokenType.ATTR_VALUE_TEXT, TokenType.ATTR_VALUE_INTERPOLATION, endPredicate,\n endPredicate);\n this._consumeQuote(quoteChar);\n } else {\n const endPredicate = () => isNameEnd(this._cursor.peek());\n this._consumeWithInterpolation(\n TokenType.ATTR_VALUE_TEXT, TokenType.ATTR_VALUE_INTERPOLATION, endPredicate,\n endPredicate);\n }\n }\n\n private _consumeQuote(quoteChar: number) {\n this._beginToken(TokenType.ATTR_QUOTE);\n this._requireCharCode(quoteChar);\n this._endToken([String.fromCodePoint(quoteChar)]);\n }\n\n private _consumeTagOpenEnd() {\n const tokenType =\n this._attemptCharCode(chars.$SLASH) ? TokenType.TAG_OPEN_END_VOID : TokenType.TAG_OPEN_END;\n this._beginToken(tokenType);\n this._requireCharCode(chars.$GT);\n this._endToken([]);\n }\n\n private _consumeTagClose(start: CharacterCursor) {\n this._beginToken(TokenType.TAG_CLOSE, start);\n this._attemptCharCodeUntilFn(isNotWhitespace);\n const prefixAndName = this._consumePrefixAndName();\n this._attemptCharCodeUntilFn(isNotWhitespace);\n this._requireCharCode(chars.$GT);\n this._endToken(prefixAndName);\n }\n\n private _consumeExpansionFormStart() {\n this._beginToken(TokenType.EXPANSION_FORM_START);\n this._requireCharCode(chars.$LBRACE);\n this._endToken([]);\n\n this._expansionCaseStack.push(TokenType.EXPANSION_FORM_START);\n\n this._beginToken(TokenType.RAW_TEXT);\n const condition = this._readUntil(chars.$COMMA);\n const normalizedCondition = this._processCarriageReturns(condition);\n if (this._i18nNormalizeLineEndingsInICUs) {\n // We explicitly want to normalize line endings for this text.\n this._endToken([normalizedCondition]);\n } else {\n // We are not normalizing line endings.\n const conditionToken = this._endToken([condition]);\n if (normalizedCondition !== condition) {\n this.nonNormalizedIcuExpressions.push(conditionToken);\n }\n }\n this._requireCharCode(chars.$COMMA);\n this._attemptCharCodeUntilFn(isNotWhitespace);\n\n this._beginToken(TokenType.RAW_TEXT);\n const type = this._readUntil(chars.$COMMA);\n this._endToken([type]);\n this._requireCharCode(chars.$COMMA);\n this._attemptCharCodeUntilFn(isNotWhitespace);\n }\n\n private _consumeExpansionCaseStart() {\n this._beginToken(TokenType.EXPANSION_CASE_VALUE);\n const value = this._readUntil(chars.$LBRACE).trim();\n this._endToken([value]);\n this._attemptCharCodeUntilFn(isNotWhitespace);\n\n this._beginToken(TokenType.EXPANSION_CASE_EXP_START);\n this._requireCharCode(chars.$LBRACE);\n this._endToken([]);\n this._attemptCharCodeUntilFn(isNotWhitespace);\n\n this._expansionCaseStack.push(TokenType.EXPANSION_CASE_EXP_START);\n }\n\n private _consumeExpansionCaseEnd() {\n this._beginToken(TokenType.EXPANSION_CASE_EXP_END);\n this._requireCharCode(chars.$RBRACE);\n this._endToken([]);\n this._attemptCharCodeUntilFn(isNotWhitespace);\n\n this._expansionCaseStack.pop();\n }\n\n private _consumeExpansionFormEnd() {\n this._beginToken(TokenType.EXPANSION_FORM_END);\n this._requireCharCode(chars.$RBRACE);\n this._endToken([]);\n\n this._expansionCaseStack.pop();\n }\n\n /**\n * Consume a string that may contain interpolation expressions.\n *\n * The first token consumed will be of `tokenType` and then there will be alternating\n * `interpolationTokenType` and `tokenType` tokens until the `endPredicate()` returns true.\n *\n * If an interpolation token ends prematurely it will have no end marker in its `parts` array.\n *\n * @param textTokenType the kind of tokens to interleave around interpolation tokens.\n * @param interpolationTokenType the kind of tokens that contain interpolation.\n * @param endPredicate a function that should return true when we should stop consuming.\n * @param endInterpolation a function that should return true if there is a premature end to an\n * interpolation expression - i.e. before we get to the normal interpolation closing marker.\n */\n private _consumeWithInterpolation(\n textTokenType: TokenType, interpolationTokenType: TokenType, endPredicate: () => boolean,\n endInterpolation: () => boolean) {\n this._beginToken(textTokenType);\n const parts: string[] = [];\n\n while (!endPredicate()) {\n const current = this._cursor.clone();\n if (this._interpolationConfig && this._attemptStr(this._interpolationConfig.start)) {\n this._endToken([this._processCarriageReturns(parts.join(''))], current);\n parts.length = 0;\n this._consumeInterpolation(interpolationTokenType, current, endInterpolation);\n this._beginToken(textTokenType);\n } else if (this._cursor.peek() === chars.$AMPERSAND) {\n this._endToken([this._processCarriageReturns(parts.join(''))]);\n parts.length = 0;\n this._consumeEntity(textTokenType);\n this._beginToken(textTokenType);\n } else {\n parts.push(this._readChar());\n }\n }\n\n // It is possible that an interpolation was started but not ended inside this text token.\n // Make sure that we reset the state of the lexer correctly.\n this._inInterpolation = false;\n\n this._endToken([this._processCarriageReturns(parts.join(''))]);\n }\n\n /**\n * Consume a block of text that has been interpreted as an Angular interpolation.\n *\n * @param interpolationTokenType the type of the interpolation token to generate.\n * @param interpolationStart a cursor that points to the start of this interpolation.\n * @param prematureEndPredicate a function that should return true if the next characters indicate\n * an end to the interpolation before its normal closing marker.\n */\n private _consumeInterpolation(\n interpolationTokenType: TokenType, interpolationStart: CharacterCursor,\n prematureEndPredicate: (() => boolean)|null): void {\n const parts: string[] = [];\n this._beginToken(interpolationTokenType, interpolationStart);\n parts.push(this._interpolationConfig.start);\n\n // Find the end of the interpolation, ignoring content inside quotes.\n const expressionStart = this._cursor.clone();\n let inQuote: number|null = null;\n let inComment = false;\n while (this._cursor.peek() !== chars.$EOF &&\n (prematureEndPredicate === null || !prematureEndPredicate())) {\n const current = this._cursor.clone();\n\n if (this._isTagStart()) {\n // We are starting what looks like an HTML element in the middle of this interpolation.\n // Reset the cursor to before the `<` character and end the interpolation token.\n // (This is actually wrong but here for backward compatibility).\n this._cursor = current;\n parts.push(this._getProcessedChars(expressionStart, current));\n this._endToken(parts);\n return;\n }\n\n if (inQuote === null) {\n if (this._attemptStr(this._interpolationConfig.end)) {\n // We are not in a string, and we hit the end interpolation marker\n parts.push(this._getProcessedChars(expressionStart, current));\n parts.push(this._interpolationConfig.end);\n this._endToken(parts);\n return;\n } else if (this._attemptStr('//')) {\n // Once we are in a comment we ignore any quotes\n inComment = true;\n }\n }\n\n const char = this._cursor.peek();\n this._cursor.advance();\n if (char === chars.$BACKSLASH) {\n // Skip the next character because it was escaped.\n this._cursor.advance();\n } else if (char === inQuote) {\n // Exiting the current quoted string\n inQuote = null;\n } else if (!inComment && inQuote === null && chars.isQuote(char)) {\n // Entering a new quoted string\n inQuote = char;\n }\n }\n\n // We hit EOF without finding a closing interpolation marker\n parts.push(this._getProcessedChars(expressionStart, this._cursor));\n this._endToken(parts);\n }\n\n private _getProcessedChars(start: CharacterCursor, end: CharacterCursor): string {\n return this._processCarriageReturns(end.getChars(start));\n }\n\n private _isTextEnd(): boolean {\n if (this._isTagStart() || this._cursor.peek() === chars.$EOF) {\n return true;\n }\n\n if (this._tokenizeIcu && !this._inInterpolation) {\n if (this.isExpansionFormStart()) {\n // start of an expansion form\n return true;\n }\n\n if (this._cursor.peek() === chars.$RBRACE && this._isInExpansionCase()) {\n // end of and expansion case\n return true;\n }\n }\n\n if (this._tokenizeBlocks && !this._inInterpolation && !this._isInExpansion() &&\n (this._cursor.peek() === chars.$AT || this._cursor.peek() === chars.$RBRACE)) {\n return true;\n }\n\n return false;\n }\n\n /**\n * Returns true if the current cursor is pointing to the start of a tag\n * (opening/closing/comments/cdata/etc).\n */\n private _isTagStart(): boolean {\n if (this._cursor.peek() === chars.$LT) {\n // We assume that `<` followed by whitespace is not the start of an HTML element.\n const tmp = this._cursor.clone();\n tmp.advance();\n // If the next character is alphabetic, ! nor / then it is a tag start\n const code = tmp.peek();\n if ((chars.$a <= code && code <= chars.$z) || (chars.$A <= code && code <= chars.$Z) ||\n code === chars.$SLASH || code === chars.$BANG) {\n return true;\n }\n }\n return false;\n }\n\n private _readUntil(char: number): string {\n const start = this._cursor.clone();\n this._attemptUntilChar(char);\n return this._cursor.getChars(start);\n }\n\n private _isInExpansion(): boolean {\n return this._isInExpansionCase() || this._isInExpansionForm();\n }\n\n private _isInExpansionCase(): boolean {\n return this._expansionCaseStack.length > 0 &&\n this._expansionCaseStack[this._expansionCaseStack.length - 1] ===\n TokenType.EXPANSION_CASE_EXP_START;\n }\n\n private _isInExpansionForm(): boolean {\n return this._expansionCaseStack.length > 0 &&\n this._expansionCaseStack[this._expansionCaseStack.length - 1] ===\n TokenType.EXPANSION_FORM_START;\n }\n\n private isExpansionFormStart(): boolean {\n if (this._cursor.peek() !== chars.$LBRACE) {\n return false;\n }\n if (this._interpolationConfig) {\n const start = this._cursor.clone();\n const isInterpolation = this._attemptStr(this._interpolationConfig.start);\n this._cursor = start;\n return !isInterpolation;\n }\n return true;\n }\n}\n\nfunction isNotWhitespace(code: number): boolean {\n return !chars.isWhitespace(code) || code === chars.$EOF;\n}\n\nfunction isNameEnd(code: number): boolean {\n return chars.isWhitespace(code) || code === chars.$GT || code === chars.$LT ||\n code === chars.$SLASH || code === chars.$SQ || code === chars.$DQ || code === chars.$EQ ||\n code === chars.$EOF;\n}\n\nfunction isPrefixEnd(code: number): boolean {\n return (code < chars.$a || chars.$z < code) && (code < chars.$A || chars.$Z < code) &&\n (code < chars.$0 || code > chars.$9);\n}\n\nfunction isDigitEntityEnd(code: number): boolean {\n return code === chars.$SEMICOLON || code === chars.$EOF || !chars.isAsciiHexDigit(code);\n}\n\nfunction isNamedEntityEnd(code: number): boolean {\n return code === chars.$SEMICOLON || code === chars.$EOF || !chars.isAsciiLetter(code);\n}\n\nfunction isExpansionCaseStart(peek: number): boolean {\n return peek !== chars.$RBRACE;\n}\n\nfunction compareCharCodeCaseInsensitive(code1: number, code2: number): boolean {\n return toUpperCaseCharCode(code1) === toUpperCaseCharCode(code2);\n}\n\nfunction toUpperCaseCharCode(code: number): number {\n return code >= chars.$a && code <= chars.$z ? code - chars.$a + chars.$A : code;\n}\n\nfunction isBlockNameChar(code: number): boolean {\n return chars.isAsciiLetter(code) || chars.isDigit(code) || code === chars.$_;\n}\n\nfunction isBlockParameterChar(code: number): boolean {\n return code !== chars.$SEMICOLON && isNotWhitespace(code);\n}\n\nfunction mergeTextTokens(srcTokens: Token[]): Token[] {\n const dstTokens: Token[] = [];\n let lastDstToken: Token|undefined = undefined;\n for (let i = 0; i < srcTokens.length; i++) {\n const token = srcTokens[i];\n if ((lastDstToken && lastDstToken.type === TokenType.TEXT && token.type === TokenType.TEXT) ||\n (lastDstToken && lastDstToken.type === TokenType.ATTR_VALUE_TEXT &&\n token.type === TokenType.ATTR_VALUE_TEXT)) {\n lastDstToken.parts[0]! += token.parts[0];\n lastDstToken.sourceSpan.end = token.sourceSpan.end;\n } else {\n lastDstToken = token;\n dstTokens.push(lastDstToken);\n }\n }\n\n return dstTokens;\n}\n\n\n/**\n * The _Tokenizer uses objects of this type to move through the input text,\n * extracting \"parsed characters\". These could be more than one actual character\n * if the text contains escape sequences.\n */\ninterface CharacterCursor {\n /** Initialize the cursor. */\n init(): void;\n /** The parsed character at the current cursor position. */\n peek(): number;\n /** Advance the cursor by one parsed character. */\n advance(): void;\n /** Get a span from the marked start point to the current point. */\n getSpan(start?: this, leadingTriviaCodePoints?: number[]): ParseSourceSpan;\n /** Get the parsed characters from the marked start point to the current point. */\n getChars(start: this): string;\n /** The number of characters left before the end of the cursor. */\n charsLeft(): number;\n /** The number of characters between `this` cursor and `other` cursor. */\n diff(other: this): number;\n /** Make a copy of this cursor */\n clone(): CharacterCursor;\n}\n\ninterface CursorState {\n peek: number;\n offset: number;\n line: number;\n column: number;\n}\n\nclass PlainCharacterCursor implements CharacterCursor {\n protected state: CursorState;\n protected file: ParseSourceFile;\n protected input: string;\n protected end: number;\n\n constructor(fileOrCursor: PlainCharacterCursor);\n constructor(fileOrCursor: ParseSourceFile, range: LexerRange);\n constructor(fileOrCursor: ParseSourceFile|PlainCharacterCursor, range?: LexerRange) {\n if (fileOrCursor instanceof PlainCharacterCursor) {\n this.file = fileOrCursor.file;\n this.input = fileOrCursor.input;\n this.end = fileOrCursor.end;\n\n const state = fileOrCursor.state;\n // Note: avoid using `{...fileOrCursor.state}` here as that has a severe performance penalty.\n // In ES5 bundles the object spread operator is translated into the `__assign` helper, which\n // is not optimized by VMs as efficiently as a raw object literal. Since this constructor is\n // called in tight loops, this difference matters.\n this.state = {\n peek: state.peek,\n offset: state.offset,\n line: state.line,\n column: state.column,\n };\n } else {\n if (!range) {\n throw new Error(\n 'Programming error: the range argument must be provided with a file argument.');\n }\n this.file = fileOrCursor;\n this.input = fileOrCursor.content;\n this.end = range.endPos;\n this.state = {\n peek: -1,\n offset: range.startPos,\n line: range.startLine,\n column: range.startCol,\n };\n }\n }\n\n clone(): PlainCharacterCursor {\n return new PlainCharacterCursor(this);\n }\n\n peek() {\n return this.state.peek;\n }\n charsLeft() {\n return this.end - this.state.offset;\n }\n diff(other: this) {\n return this.state.offset - other.state.offset;\n }\n\n advance(): void {\n this.advanceState(this.state);\n }\n\n init(): void {\n this.updatePeek(this.state);\n }\n\n getSpan(start?: this, leadingTriviaCodePoints?: number[]): ParseSourceSpan {\n start = start || this;\n let fullStart = start;\n if (leadingTriviaCodePoints) {\n while (this.diff(start) > 0 && leadingTriviaCodePoints.indexOf(start.peek()) !== -1) {\n if (fullStart === start) {\n start = start.clone() as this;\n }\n start.advance();\n }\n }\n const startLocation = this.locationFromCursor(start);\n const endLocation = this.locationFromCursor(this);\n const fullStartLocation =\n fullStart !== start ? this.locationFromCursor(fullStart) : startLocation;\n return new ParseSourceSpan(startLocation, endLocation, fullStartLocation);\n }\n\n getChars(start: this): string {\n return this.input.substring(start.state.offset, this.state.offset);\n }\n\n charAt(pos: number): number {\n return this.input.charCodeAt(pos);\n }\n\n protected advanceState(state: CursorState) {\n if (state.offset >= this.end) {\n this.state = state;\n throw new CursorError('Unexpected character \"EOF\"', this);\n }\n const currentChar = this.charAt(state.offset);\n if (currentChar === chars.$LF) {\n state.line++;\n state.column = 0;\n } else if (!chars.isNewLine(currentChar)) {\n state.column++;\n }\n state.offset++;\n this.updatePeek(state);\n }\n\n protected updatePeek(state: CursorState): void {\n state.peek = state.offset >= this.end ? chars.$EOF : this.charAt(state.offset);\n }\n\n private locationFromCursor(cursor: this): ParseLocation {\n return new ParseLocation(\n cursor.file, cursor.state.offset, cursor.state.line, cursor.state.column);\n }\n}\n\nclass EscapedCharacterCursor extends PlainCharacterCursor {\n protected internalState: CursorState;\n\n constructor(fileOrCursor: EscapedCharacterCursor);\n constructor(fileOrCursor: ParseSourceFile, range: LexerRange);\n constructor(fileOrCursor: ParseSourceFile|EscapedCharacterCursor, range?: LexerRange) {\n if (fileOrCursor instanceof EscapedCharacterCursor) {\n super(fileOrCursor);\n this.internalState = {...fileOrCursor.internalState};\n } else {\n super(fileOrCursor, range!);\n this.internalState = this.state;\n }\n }\n\n override advance(): void {\n this.state = this.internalState;\n super.advance();\n this.processEscapeSequence();\n }\n\n override init(): void {\n super.init();\n this.processEscapeSequence();\n }\n\n override clone(): EscapedCharacterCursor {\n return new EscapedCharacterCursor(this);\n }\n\n override getChars(start: this): string {\n const cursor = start.clone();\n let chars = '';\n while (cursor.internalState.offset < this.internalState.offset) {\n chars += String.fromCodePoint(cursor.peek());\n cursor.advance();\n }\n return chars;\n }\n\n /**\n * Process the escape sequence that starts at the current position in the text.\n *\n * This method is called to ensure that `peek` has the unescaped value of escape sequences.\n */\n protected processEscapeSequence(): void {\n const peek = () => this.internalState.peek;\n\n if (peek() === chars.$BACKSLASH) {\n // We have hit an escape sequence so we need the internal state to become independent\n // of the external state.\n this.internalState = {...this.state};\n\n // Move past the backslash\n this.advanceState(this.internalState);\n\n // First check for standard control char sequences\n if (peek() === chars.$n) {\n this.state.peek = chars.$LF;\n } else if (peek() === chars.$r) {\n this.state.peek = chars.$CR;\n } else if (peek() === chars.$v) {\n this.state.peek = chars.$VTAB;\n } else if (peek() === chars.$t) {\n this.state.peek = chars.$TAB;\n } else if (peek() === chars.$b) {\n this.state.peek = chars.$BSPACE;\n } else if (peek() === chars.$f) {\n this.state.peek = chars.$FF;\n }\n\n // Now consider more complex sequences\n else if (peek() === chars.$u) {\n // Unicode code-point sequence\n this.advanceState(this.internalState); // advance past the `u` char\n if (peek() === chars.$LBRACE) {\n // Variable length Unicode, e.g. `\\x{123}`\n this.advanceState(this.internalState); // advance past the `{` char\n // Advance past the variable number of hex digits until we hit a `}` char\n const digitStart = this.clone();\n let length = 0;\n while (peek() !== chars.$RBRACE) {\n this.advanceState(this.internalState);\n length++;\n }\n this.state.peek = this.decodeHexDigits(digitStart, length);\n } else {\n // Fixed length Unicode, e.g. `\\u1234`\n const digitStart = this.clone();\n this.advanceState(this.internalState);\n this.advanceState(this.internalState);\n this.advanceState(this.internalState);\n this.state.peek = this.decodeHexDigits(digitStart, 4);\n }\n }\n\n else if (peek() === chars.$x) {\n // Hex char code, e.g. `\\x2F`\n this.advanceState(this.internalState); // advance past the `x` char\n const digitStart = this.clone();\n this.advanceState(this.internalState);\n this.state.peek = this.decodeHexDigits(digitStart, 2);\n }\n\n else if (chars.isOctalDigit(peek())) {\n // Octal char code, e.g. `\\012`,\n let octal = '';\n let length = 0;\n let previous = this.clone();\n while (chars.isOctalDigit(peek()) && length < 3) {\n previous = this.clone();\n octal += String.fromCodePoint(peek());\n this.advanceState(this.internalState);\n length++;\n }\n this.state.peek = parseInt(octal, 8);\n // Backup one char\n this.internalState = previous.internalState;\n }\n\n else if (chars.isNewLine(this.internalState.peek)) {\n // Line continuation `\\` followed by a new line\n this.advanceState(this.internalState); // advance over the newline\n this.state = this.internalState;\n }\n\n else {\n // If none of the `if` blocks were executed then we just have an escaped normal character.\n // In that case we just, effectively, skip the backslash from the character.\n this.state.peek = this.internalState.peek;\n }\n }\n }\n\n protected decodeHexDigits(start: EscapedCharacterCursor, length: number): number {\n const hex = this.input.slice(start.internalState.offset, start.internalState.offset + length);\n const charCode = parseInt(hex, 16);\n if (!isNaN(charCode)) {\n return charCode;\n } else {\n start.state = start.internalState;\n throw new CursorError('Invalid hexadecimal escape sequence', start);\n }\n }\n}\n\nexport class CursorError {\n constructor(public msg: string, public cursor: CharacterCursor) {}\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {ParseError, ParseLocation, ParseSourceSpan} from '../parse_util';\n\nimport * as html from './ast';\nimport {NAMED_ENTITIES} from './entities';\nimport {tokenize, TokenizeOptions} from './lexer';\nimport {getNsPrefix, mergeNsAndName, splitNsName, TagDefinition} from './tags';\nimport {AttributeNameToken, AttributeQuoteToken, BlockCloseToken, BlockOpenStartToken, BlockParameterToken, CdataStartToken, CommentStartToken, ExpansionCaseExpressionEndToken, ExpansionCaseExpressionStartToken, ExpansionCaseValueToken, ExpansionFormStartToken, IncompleteBlockOpenToken, IncompleteTagOpenToken, InterpolatedAttributeToken, InterpolatedTextToken, TagCloseToken, TagOpenStartToken, TextToken, Token, TokenType} from './tokens';\n\n/** Nodes that can contain other nodes. */\ntype NodeContainer = html.Element|html.Block;\n\n/** Class that can construct a `NodeContainer`. */\ninterface NodeContainerConstructor extends Function {\n new(...args: any[]): NodeContainer;\n}\n\nexport class TreeError extends ParseError {\n static create(elementName: string|null, span: ParseSourceSpan, msg: string): TreeError {\n return new TreeError(elementName, span, msg);\n }\n\n constructor(public elementName: string|null, span: ParseSourceSpan, msg: string) {\n super(span, msg);\n }\n}\n\nexport class ParseTreeResult {\n constructor(public rootNodes: html.Node[], public errors: ParseError[]) {}\n}\n\nexport class Parser {\n constructor(public getTagDefinition: (tagName: string) => TagDefinition) {}\n\n parse(source: string, url: string, options?: TokenizeOptions): ParseTreeResult {\n const tokenizeResult = tokenize(source, url, this.getTagDefinition, options);\n const parser = new _TreeBuilder(tokenizeResult.tokens, this.getTagDefinition);\n parser.build();\n return new ParseTreeResult(\n parser.rootNodes,\n (tokenizeResult.errors as ParseError[]).concat(parser.errors),\n );\n }\n}\n\nclass _TreeBuilder {\n private _index: number = -1;\n // `_peek` will be initialized by the call to `_advance()` in the constructor.\n private _peek!: Token;\n private _containerStack: NodeContainer[] = [];\n\n rootNodes: html.Node[] = [];\n errors: TreeError[] = [];\n\n constructor(\n private tokens: Token[], private getTagDefinition: (tagName: string) => TagDefinition) {\n this._advance();\n }\n\n build(): void {\n while (this._peek.type !== TokenType.EOF) {\n if (this._peek.type === TokenType.TAG_OPEN_START ||\n this._peek.type === TokenType.INCOMPLETE_TAG_OPEN) {\n this._consumeStartTag(this._advance());\n } else if (this._peek.type === TokenType.TAG_CLOSE) {\n this._consumeEndTag(this._advance());\n } else if (this._peek.type === TokenType.CDATA_START) {\n this._closeVoidElement();\n this._consumeCdata(this._advance());\n } else if (this._peek.type === TokenType.COMMENT_START) {\n this._closeVoidElement();\n this._consumeComment(this._advance());\n } else if (\n this._peek.type === TokenType.TEXT || this._peek.type === TokenType.RAW_TEXT ||\n this._peek.type === TokenType.ESCAPABLE_RAW_TEXT) {\n this._closeVoidElement();\n this._consumeText(this._advance());\n } else if (this._peek.type === TokenType.EXPANSION_FORM_START) {\n this._consumeExpansion(this._advance());\n } else if (this._peek.type === TokenType.BLOCK_OPEN_START) {\n this._closeVoidElement();\n this._consumeBlockOpen(this._advance());\n } else if (this._peek.type === TokenType.BLOCK_CLOSE) {\n this._closeVoidElement();\n this._consumeBlockClose(this._advance());\n } else if (this._peek.type === TokenType.INCOMPLETE_BLOCK_OPEN) {\n this._closeVoidElement();\n this._consumeIncompleteBlock(this._advance());\n } else {\n // Skip all other tokens...\n this._advance();\n }\n }\n\n for (const leftoverContainer of this._containerStack) {\n // Unlike HTML elements, blocks aren't closed implicitly by the end of the file.\n if (leftoverContainer instanceof html.Block) {\n this.errors.push(TreeError.create(\n leftoverContainer.name, leftoverContainer.sourceSpan,\n `Unclosed block \"${leftoverContainer.name}\"`));\n }\n }\n }\n\n private _advance<T extends Token>(): T {\n const prev = this._peek;\n if (this._index < this.tokens.length - 1) {\n // Note: there is always an EOF token at the end\n this._index++;\n }\n this._peek = this.tokens[this._index];\n return prev as T;\n }\n\n private _advanceIf<T extends TokenType>(type: T): (Token&{type: T})|null {\n if (this._peek.type === type) {\n return this._advance<Token&{type: T}>();\n }\n return null;\n }\n\n private _consumeCdata(_startToken: CdataStartToken) {\n this._consumeText(this._advance<TextToken>());\n this._advanceIf(TokenType.CDATA_END);\n }\n\n private _consumeComment(token: CommentStartToken) {\n const text = this._advanceIf(TokenType.RAW_TEXT);\n const endToken = this._advanceIf(TokenType.COMMENT_END);\n const value = text != null ? text.parts[0].trim() : null;\n const sourceSpan = endToken == null ?\n token.sourceSpan :\n new ParseSourceSpan(\n token.sourceSpan.start, endToken.sourceSpan.end, token.sourceSpan.fullStart);\n this._addToParent(new html.Comment(value, sourceSpan));\n }\n\n private _consumeExpansion(token: ExpansionFormStartToken) {\n const switchValue = this._advance<TextToken>();\n\n const type = this._advance<TextToken>();\n const cases: html.ExpansionCase[] = [];\n\n // read =\n while (this._peek.type === TokenType.EXPANSION_CASE_VALUE) {\n const expCase = this._parseExpansionCase();\n if (!expCase) return; // error\n cases.push(expCase);\n }\n\n // read the final }\n if (this._peek.type !== TokenType.EXPANSION_FORM_END) {\n this.errors.push(\n TreeError.create(null, this._peek.sourceSpan, `Invalid ICU message. Missing '}'.`));\n return;\n }\n const sourceSpan = new ParseSourceSpan(\n token.sourceSpan.start, this._peek.sourceSpan.end, token.sourceSpan.fullStart);\n this._addToParent(new html.Expansion(\n switchValue.parts[0], type.parts[0], cases, sourceSpan, switchValue.sourceSpan));\n\n this._advance();\n }\n\n private _parseExpansionCase(): html.ExpansionCase|null {\n const value = this._advance<ExpansionCaseValueToken>();\n\n // read {\n if (this._peek.type !== TokenType.EXPANSION_CASE_EXP_START) {\n this.errors.push(\n TreeError.create(null, this._peek.sourceSpan, `Invalid ICU message. Missing '{'.`));\n return null;\n }\n\n // read until }\n const start = this._advance<ExpansionCaseExpressionStartToken>();\n\n const exp = this._collectExpansionExpTokens(start);\n if (!exp) return null;\n\n const end = this._advance<ExpansionCaseExpressionEndToken>();\n exp.push({type: TokenType.EOF, parts: [], sourceSpan: end.sourceSpan});\n\n // parse everything in between { and }\n const expansionCaseParser = new _TreeBuilder(exp, this.getTagDefinition);\n expansionCaseParser.build();\n if (expansionCaseParser.errors.length > 0) {\n this.errors = this.errors.concat(expansionCaseParser.errors);\n return null;\n }\n\n const sourceSpan =\n new ParseSourceSpan(value.sourceSpan.start, end.sourceSpan.end, value.sourceSpan.fullStart);\n const expSourceSpan =\n new ParseSourceSpan(start.sourceSpan.start, end.sourceSpan.end, start.sourceSpan.fullStart);\n return new html.ExpansionCase(\n value.parts[0], expansionCaseParser.rootNodes, sourceSpan, value.sourceSpan, expSourceSpan);\n }\n\n private _collectExpansionExpTokens(start: Token): Token[]|null {\n const exp: Token[] = [];\n const expansionFormStack = [TokenType.EXPANSION_CASE_EXP_START];\n\n while (true) {\n if (this._peek.type === TokenType.EXPANSION_FORM_START ||\n this._peek.type === TokenType.EXPANSION_CASE_EXP_START) {\n expansionFormStack.push(this._peek.type);\n }\n\n if (this._peek.type === TokenType.EXPANSION_CASE_EXP_END) {\n if (lastOnStack(expansionFormStack, TokenType.EXPANSION_CASE_EXP_START)) {\n expansionFormStack.pop();\n if (expansionFormStack.length === 0) return exp;\n\n } else {\n this.errors.push(\n TreeError.create(null, start.sourceSpan, `Invalid ICU message. Missing '}'.`));\n return null;\n }\n }\n\n if (this._peek.type === TokenType.EXPANSION_FORM_END) {\n if (lastOnStack(expansionFormStack, TokenType.EXPANSION_FORM_START)) {\n expansionFormStack.pop();\n } else {\n this.errors.push(\n TreeError.create(null, start.sourceSpan, `Invalid ICU message. Missing '}'.`));\n return null;\n }\n }\n\n if (this._peek.type === TokenType.EOF) {\n this.errors.push(\n TreeError.create(null, start.sourceSpan, `Invalid ICU message. Missing '}'.`));\n return null;\n }\n\n exp.push(this._advance());\n }\n }\n\n private _consumeText(token: InterpolatedTextToken) {\n const tokens = [token];\n const startSpan = token.sourceSpan;\n let text = token.parts[0];\n if (text.length > 0 && text[0] === '\\n') {\n const parent = this._getContainer();\n\n if (parent != null && parent.children.length === 0 &&\n this.getTagDefinition(parent.name).ignoreFirstLf) {\n text = text.substring(1);\n tokens[0] = {type: token.type, sourceSpan: token.sourceSpan, parts: [text]} as typeof token;\n }\n }\n\n while (this._peek.type === TokenType.INTERPOLATION || this._peek.type === TokenType.TEXT ||\n this._peek.type === TokenType.ENCODED_ENTITY) {\n token = this._advance();\n tokens.push(token);\n if (token.type === TokenType.INTERPOLATION) {\n // For backward compatibility we decode HTML entities that appear in interpolation\n // expressions. This is arguably a bug, but it could be a considerable breaking change to\n // fix it. It should be addressed in a larger project to refactor the entire parser/lexer\n // chain after View Engine has been removed.\n text += token.parts.join('').replace(/&([^;]+);/g, decodeEntity);\n } else if (token.type === TokenType.ENCODED_ENTITY) {\n text += token.parts[0];\n } else {\n text += token.parts.join('');\n }\n }\n\n if (text.length > 0) {\n const endSpan = token.sourceSpan;\n this._addToParent(new html.Text(\n text,\n new ParseSourceSpan(startSpan.start, endSpan.end, startSpan.fullStart, startSpan.details),\n tokens));\n }\n }\n\n private _closeVoidElement(): void {\n const el = this._getContainer();\n if (el instanceof html.Element && this.getTagDefinition(el.name).isVoid) {\n this._containerStack.pop();\n }\n }\n\n private _consumeStartTag(startTagToken: TagOpenStartToken|IncompleteTagOpenToken) {\n const [prefix, name] = startTagToken.parts;\n const attrs: html.Attribute[] = [];\n while (this._peek.type === TokenType.ATTR_NAME) {\n attrs.push(this._consumeAttr(this._advance<AttributeNameToken>()));\n }\n const fullName = this._getElementFullName(prefix, name, this._getClosestParentElement());\n let selfClosing = false;\n // Note: There could have been a tokenizer error\n // so that we don't get a token for the end tag...\n if (this._peek.type === TokenType.TAG_OPEN_END_VOID) {\n this._advance();\n selfClosing = true;\n const tagDef = this.getTagDefinition(fullName);\n if (!(tagDef.canSelfClose || getNsPrefix(fullName) !== null || tagDef.isVoid)) {\n this.errors.push(TreeError.create(\n fullName, startTagToken.sourceSpan,\n `Only void, custom and foreign elements can be self closed \"${\n startTagToken.parts[1]}\"`));\n }\n } else if (this._peek.type === TokenType.TAG_OPEN_END) {\n this._advance();\n selfClosing = false;\n }\n const end = this._peek.sourceSpan.fullStart;\n const span = new ParseSourceSpan(\n startTagToken.sourceSpan.start, end, startTagToken.sourceSpan.fullStart);\n // Create a separate `startSpan` because `span` will be modified when there is an `end` span.\n const startSpan = new ParseSourceSpan(\n startTagToken.sourceSpan.start, end, startTagToken.sourceSpan.fullStart);\n const el = new html.Element(fullName, attrs, [], span, startSpan, undefined);\n const parentEl = this._getContainer();\n this._pushContainer(\n el,\n parentEl instanceof html.Element &&\n this.getTagDefinition(parentEl.name).isClosedByChild(el.name));\n if (selfClosing) {\n // Elements that are self-closed have their `endSourceSpan` set to the full span, as the\n // element start tag also represents the end tag.\n this._popContainer(fullName, html.Element, span);\n } else if (startTagToken.type === TokenType.INCOMPLETE_TAG_OPEN) {\n // We already know the opening tag is not complete, so it is unlikely it has a corresponding\n // close tag. Let's optimistically parse it as a full element and emit an error.\n this._popContainer(fullName, html.Element, null);\n this.errors.push(\n TreeError.create(fullName, span, `Opening tag \"${fullName}\" not terminated.`));\n }\n }\n\n private _pushContainer(node: NodeContainer, isClosedByChild: boolean) {\n if (isClosedByChild) {\n this._containerStack.pop();\n }\n\n this._addToParent(node);\n this._containerStack.push(node);\n }\n\n private _consumeEndTag(endTagToken: TagCloseToken) {\n const fullName = this._getElementFullName(\n endTagToken.parts[0], endTagToken.parts[1], this._getClosestParentElement());\n\n if (this.getTagDefinition(fullName).isVoid) {\n this.errors.push(TreeError.create(\n fullName, endTagToken.sourceSpan,\n `Void elements do not have end tags \"${endTagToken.parts[1]}\"`));\n } else if (!this._popContainer(fullName, html.Element, endTagToken.sourceSpan)) {\n const errMsg = `Unexpected closing tag \"${\n fullName}\". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags`;\n this.errors.push(TreeError.create(fullName, endTagToken.sourceSpan, errMsg));\n }\n }\n\n /**\n * Closes the nearest element with the tag name `fullName` in the parse tree.\n * `endSourceSpan` is the span of the closing tag, or null if the element does\n * not have a closing tag (for example, this happens when an incomplete\n * opening tag is recovered).\n */\n private _popContainer(\n expectedName: string|null, expectedType: NodeContainerConstructor,\n endSourceSpan: ParseSourceSpan|null): boolean {\n let unexpectedCloseTagDetected = false;\n for (let stackIndex = this._containerStack.length - 1; stackIndex >= 0; stackIndex--) {\n const node = this._containerStack[stackIndex];\n\n if ((node.name === expectedName || expectedName === null) && node instanceof expectedType) {\n // Record the parse span with the element that is being closed. Any elements that are\n // removed from the element stack at this point are closed implicitly, so they won't get\n // an end source span (as there is no explicit closing element).\n node.endSourceSpan = endSourceSpan;\n node.sourceSpan.end = endSourceSpan !== null ? endSourceSpan.end : node.sourceSpan.end;\n this._containerStack.splice(stackIndex, this._containerStack.length - stackIndex);\n return !unexpectedCloseTagDetected;\n }\n\n // Blocks and most elements are not self closing.\n if (node instanceof html.Block ||\n node instanceof html.Element && !this.getTagDefinition(node.name).closedByParent) {\n // Note that we encountered an unexpected close tag but continue processing the element\n // stack so we can assign an `endSourceSpan` if there is a corresponding start tag for this\n // end tag in the stack.\n unexpectedCloseTagDetected = true;\n }\n }\n return false;\n }\n\n private _consumeAttr(attrName: AttributeNameToken): html.Attribute {\n const fullName = mergeNsAndName(attrName.parts[0], attrName.parts[1]);\n let attrEnd = attrName.sourceSpan.end;\n\n // Consume any quote\n if (this._peek.type === TokenType.ATTR_QUOTE) {\n this._advance();\n }\n\n // Consume the attribute value\n let value = '';\n const valueTokens: InterpolatedAttributeToken[] = [];\n let valueStartSpan: ParseSourceSpan|undefined = undefined;\n let valueEnd: ParseLocation|undefined = undefined;\n // NOTE: We need to use a new variable `nextTokenType` here to hide the actual type of\n // `_peek.type` from TS. Otherwise TS will narrow the type of `_peek.type` preventing it from\n // being able to consider `ATTR_VALUE_INTERPOLATION` as an option. This is because TS is not\n // able to see that `_advance()` will actually mutate `_peek`.\n const nextTokenType = this._peek.type as TokenType;\n if (nextTokenType === TokenType.ATTR_VALUE_TEXT) {\n valueStartSpan = this._peek.sourceSpan;\n valueEnd = this._peek.sourceSpan.end;\n while (this._peek.type === TokenType.ATTR_VALUE_TEXT ||\n this._peek.type === TokenType.ATTR_VALUE_INTERPOLATION ||\n this._peek.type === TokenType.ENCODED_ENTITY) {\n const valueToken = this._advance<InterpolatedAttributeToken>();\n valueTokens.push(valueToken);\n if (valueToken.type === TokenType.ATTR_VALUE_INTERPOLATION) {\n // For backward compatibility we decode HTML entities that appear in interpolation\n // expressions. This is arguably a bug, but it could be a considerable breaking change to\n // fix it. It should be addressed in a larger project to refactor the entire parser/lexer\n // chain after View Engine has been removed.\n value += valueToken.parts.join('').replace(/&([^;]+);/g, decodeEntity);\n } else if (valueToken.type === TokenType.ENCODED_ENTITY) {\n value += valueToken.parts[0];\n } else {\n value += valueToken.parts.join('');\n }\n valueEnd = attrEnd = valueToken.sourceSpan.end;\n }\n }\n\n // Consume any quote\n if (this._peek.type === TokenType.ATTR_QUOTE) {\n const quoteToken = this._advance<AttributeQuoteToken>();\n attrEnd = quoteToken.sourceSpan.end;\n }\n\n const valueSpan = valueStartSpan && valueEnd &&\n new ParseSourceSpan(valueStartSpan.start, valueEnd, valueStartSpan.fullStart);\n return new html.Attribute(\n fullName, value,\n new ParseSourceSpan(attrName.sourceSpan.start, attrEnd, attrName.sourceSpan.fullStart),\n attrName.sourceSpan, valueSpan, valueTokens.length > 0 ? valueTokens : undefined,\n undefined);\n }\n\n private _consumeBlockOpen(token: BlockOpenStartToken) {\n const parameters: html.BlockParameter[] = [];\n\n while (this._peek.type === TokenType.BLOCK_PARAMETER) {\n const paramToken = this._advance<BlockParameterToken>();\n parameters.push(new html.BlockParameter(paramToken.parts[0], paramToken.sourceSpan));\n }\n\n if (this._peek.type === TokenType.BLOCK_OPEN_END) {\n this._advance();\n }\n\n const end = this._peek.sourceSpan.fullStart;\n const span = new ParseSourceSpan(token.sourceSpan.start, end, token.sourceSpan.fullStart);\n // Create a separate `startSpan` because `span` will be modified when there is an `end` span.\n const startSpan = new ParseSourceSpan(token.sourceSpan.start, end, token.sourceSpan.fullStart);\n const block = new html.Block(token.parts[0], parameters, [], span, token.sourceSpan, startSpan);\n this._pushContainer(block, false);\n }\n\n private _consumeBlockClose(token: BlockCloseToken) {\n if (!this._popContainer(null, html.Block, token.sourceSpan)) {\n this.errors.push(TreeError.create(\n null, token.sourceSpan,\n `Unexpected closing block. The block may have been closed earlier. ` +\n `If you meant to write the } character, you should use the \"}\" ` +\n `HTML entity instead.`));\n }\n }\n\n private _consumeIncompleteBlock(token: IncompleteBlockOpenToken) {\n const parameters: html.BlockParameter[] = [];\n\n while (this._peek.type === TokenType.BLOCK_PARAMETER) {\n const paramToken = this._advance<BlockParameterToken>();\n parameters.push(new html.BlockParameter(paramToken.parts[0], paramToken.sourceSpan));\n }\n\n const end = this._peek.sourceSpan.fullStart;\n const span = new ParseSourceSpan(token.sourceSpan.start, end, token.sourceSpan.fullStart);\n // Create a separate `startSpan` because `span` will be modified when there is an `end` span.\n const startSpan = new ParseSourceSpan(token.sourceSpan.start, end, token.sourceSpan.fullStart);\n const block = new html.Block(token.parts[0], parameters, [], span, token.sourceSpan, startSpan);\n this._pushContainer(block, false);\n\n // Incomplete blocks don't have children so we close them immediately and report an error.\n this._popContainer(null, html.Block, null);\n\n this.errors.push(TreeError.create(\n token.parts[0], span,\n `Incomplete block \"${token.parts[0]}\". If you meant to write the @ character, ` +\n `you should use the \"@\" HTML entity instead.`));\n }\n\n private _getContainer(): NodeContainer|null {\n return this._containerStack.length > 0 ? this._containerStack[this._containerStack.length - 1] :\n null;\n }\n\n private _getClosestParentElement(): html.Element|null {\n for (let i = this._containerStack.length - 1; i > -1; i--) {\n if (this._containerStack[i] instanceof html.Element) {\n return this._containerStack[i] as html.Element;\n }\n }\n\n return null;\n }\n\n private _addToParent(node: html.Node) {\n const parent = this._getContainer();\n\n if (parent === null) {\n this.rootNodes.push(node);\n } else {\n parent.children.push(node);\n }\n }\n\n private _getElementFullName(prefix: string, localName: string, parentElement: html.Element|null):\n string {\n if (prefix === '') {\n prefix = this.getTagDefinition(localName).implicitNamespacePrefix || '';\n if (prefix === '' && parentElement != null) {\n const parentTagName = splitNsName(parentElement.name)[1];\n const parentTagDefinition = this.getTagDefinition(parentTagName);\n if (!parentTagDefinition.preventNamespaceInheritance) {\n prefix = getNsPrefix(parentElement.name);\n }\n }\n }\n\n return mergeNsAndName(prefix, localName);\n }\n}\n\nfunction lastOnStack(stack: any[], element: any): boolean {\n return stack.length > 0 && stack[stack.length - 1] === element;\n}\n\n/**\n * Decode the `entity` string, which we believe is the contents of an HTML entity.\n *\n * If the string is not actually a valid/known entity then just return the original `match` string.\n */\nfunction decodeEntity(match: string, entity: string): string {\n if (NAMED_ENTITIES[entity] !== undefined) {\n return NAMED_ENTITIES[entity] || match;\n }\n if (/^#x[a-f0-9]+$/i.test(entity)) {\n return String.fromCodePoint(parseInt(entity.slice(2), 16));\n }\n if (/^#\\d+$/.test(entity)) {\n return String.fromCodePoint(parseInt(entity.slice(1), 10));\n }\n return match;\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * Set of tagName|propertyName corresponding to Trusted Types sinks. Properties applying to all\n * tags use '*'.\n *\n * Extracted from, and should be kept in sync with\n * https://w3c.github.io/webappsec-trusted-types/dist/spec/#integrations\n */\nconst TRUSTED_TYPES_SINKS = new Set<string>([\n // NOTE: All strings in this set *must* be lowercase!\n\n // TrustedHTML\n 'iframe|srcdoc',\n '*|innerhtml',\n '*|outerhtml',\n\n // NB: no TrustedScript here, as the corresponding tags are stripped by the compiler.\n\n // TrustedScriptURL\n 'embed|src',\n 'object|codebase',\n 'object|data',\n]);\n\n/**\n * isTrustedTypesSink returns true if the given property on the given DOM tag is a Trusted Types\n * sink. In that case, use `ElementSchemaRegistry.securityContext` to determine which particular\n * Trusted Type is required for values passed to the sink:\n * - SecurityContext.HTML corresponds to TrustedHTML\n * - SecurityContext.RESOURCE_URL corresponds to TrustedScriptURL\n */\nexport function isTrustedTypesSink(tagName: string, propName: string): boolean {\n // Make sure comparisons are case insensitive, so that case differences between attribute and\n // property names do not have a security impact.\n tagName = tagName.toLowerCase();\n propName = propName.toLowerCase();\n\n return TRUSTED_TYPES_SINKS.has(tagName + '|' + propName) ||\n TRUSTED_TYPES_SINKS.has('*|' + propName);\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {computeDecimalDigest, computeDigest, decimalDigest} from '../../../i18n/digest';\nimport * as i18n from '../../../i18n/i18n_ast';\nimport {createI18nMessageFactory, VisitNodeFn} from '../../../i18n/i18n_parser';\nimport {I18nError} from '../../../i18n/parse_util';\nimport * as html from '../../../ml_parser/ast';\nimport {DEFAULT_CONTAINER_BLOCKS, DEFAULT_INTERPOLATION_CONFIG, InterpolationConfig} from '../../../ml_parser/defaults';\nimport {ParseTreeResult} from '../../../ml_parser/parser';\nimport * as o from '../../../output/output_ast';\nimport {isTrustedTypesSink} from '../../../schema/trusted_types_sinks';\n\nimport {hasI18nAttrs, I18N_ATTR, I18N_ATTR_PREFIX, icuFromI18nMessage} from './util';\n\nexport type I18nMeta = {\n id?: string,\n customId?: string,\n legacyIds?: string[],\n description?: string,\n meaning?: string\n};\n\n\nconst setI18nRefs: VisitNodeFn = (htmlNode, i18nNode) => {\n if (htmlNode instanceof html.NodeWithI18n) {\n if (i18nNode instanceof i18n.IcuPlaceholder && htmlNode.i18n instanceof i18n.Message) {\n // This html node represents an ICU but this is a second processing pass, and the legacy id\n // was computed in the previous pass and stored in the `i18n` property as a message.\n // We are about to wipe out that property so capture the previous message to be reused when\n // generating the message for this ICU later. See `_generateI18nMessage()`.\n i18nNode.previousMessage = htmlNode.i18n;\n }\n htmlNode.i18n = i18nNode;\n }\n return i18nNode;\n};\n\n/**\n * This visitor walks over HTML parse tree and converts information stored in\n * i18n-related attributes (\"i18n\" and \"i18n-*\") into i18n meta object that is\n * stored with other element's and attribute's information.\n */\nexport class I18nMetaVisitor implements html.Visitor {\n // whether visited nodes contain i18n information\n public hasI18nMeta: boolean = false;\n private _errors: I18nError[] = [];\n\n constructor(\n private interpolationConfig: InterpolationConfig = DEFAULT_INTERPOLATION_CONFIG,\n private keepI18nAttrs = false, private enableI18nLegacyMessageIdFormat = false,\n private containerBlocks: Set<string> = DEFAULT_CONTAINER_BLOCKS) {}\n\n private _generateI18nMessage(\n nodes: html.Node[], meta: string|i18n.I18nMeta = '',\n visitNodeFn?: VisitNodeFn): i18n.Message {\n const {meaning, description, customId} = this._parseMetadata(meta);\n const createI18nMessage =\n createI18nMessageFactory(this.interpolationConfig, this.containerBlocks);\n const message = createI18nMessage(nodes, meaning, description, customId, visitNodeFn);\n this._setMessageId(message, meta);\n this._setLegacyIds(message, meta);\n return message;\n }\n\n visitAllWithErrors(nodes: html.Node[]): ParseTreeResult {\n const result = nodes.map(node => node.visit(this, null));\n return new ParseTreeResult(result, this._errors);\n }\n\n visitElement(element: html.Element): any {\n let message: i18n.Message|undefined = undefined;\n\n if (hasI18nAttrs(element)) {\n this.hasI18nMeta = true;\n const attrs: html.Attribute[] = [];\n const attrsMeta: {[key: string]: string} = {};\n\n for (const attr of element.attrs) {\n if (attr.name === I18N_ATTR) {\n // root 'i18n' node attribute\n const i18n = element.i18n || attr.value;\n message = this._generateI18nMessage(element.children, i18n, setI18nRefs);\n if (message.nodes.length === 0) {\n // Ignore the message if it is empty.\n message = undefined;\n }\n // Store the message on the element\n element.i18n = message;\n } else if (attr.name.startsWith(I18N_ATTR_PREFIX)) {\n // 'i18n-*' attributes\n const name = attr.name.slice(I18N_ATTR_PREFIX.length);\n if (isTrustedTypesSink(element.name, name)) {\n this._reportError(\n attr, `Translating attribute '${name}' is disallowed for security reasons.`);\n } else {\n attrsMeta[name] = attr.value;\n }\n } else {\n // non-i18n attributes\n attrs.push(attr);\n }\n }\n\n // set i18n meta for attributes\n if (Object.keys(attrsMeta).length) {\n for (const attr of attrs) {\n const meta = attrsMeta[attr.name];\n // do not create translation for empty attributes\n if (meta !== undefined && attr.value) {\n attr.i18n = this._generateI18nMessage([attr], attr.i18n || meta);\n }\n }\n }\n\n if (!this.keepI18nAttrs) {\n // update element's attributes,\n // keeping only non-i18n related ones\n element.attrs = attrs;\n }\n }\n html.visitAll(this, element.children, message);\n return element;\n }\n\n visitExpansion(expansion: html.Expansion, currentMessage: i18n.Message|null): any {\n let message;\n const meta = expansion.i18n;\n this.hasI18nMeta = true;\n if (meta instanceof i18n.IcuPlaceholder) {\n // set ICU placeholder name (e.g. \"ICU_1\"),\n // generated while processing root element contents,\n // so we can reference it when we output translation\n const name = meta.name;\n message = this._generateI18nMessage([expansion], meta);\n const icu = icuFromI18nMessage(message);\n icu.name = name;\n if (currentMessage !== null) {\n // Also update the placeholderToMessage map with this new message\n currentMessage.placeholderToMessage[name] = message;\n }\n } else {\n // ICU is a top level message, try to use metadata from container element if provided via\n // `context` argument. Note: context may not be available for standalone ICUs (without\n // wrapping element), so fallback to ICU metadata in this case.\n message = this._generateI18nMessage([expansion], currentMessage || meta);\n }\n expansion.i18n = message;\n return expansion;\n }\n\n visitText(text: html.Text): any {\n return text;\n }\n visitAttribute(attribute: html.Attribute): any {\n return attribute;\n }\n visitComment(comment: html.Comment): any {\n return comment;\n }\n visitExpansionCase(expansionCase: html.ExpansionCase): any {\n return expansionCase;\n }\n\n visitBlock(block: html.Block, context: any) {\n html.visitAll(this, block.children, context);\n return block;\n }\n\n visitBlockParameter(parameter: html.BlockParameter, context: any) {\n return parameter;\n }\n\n /**\n * Parse the general form `meta` passed into extract the explicit metadata needed to create a\n * `Message`.\n *\n * There are three possibilities for the `meta` variable\n * 1) a string from an `i18n` template attribute: parse it to extract the metadata values.\n * 2) a `Message` from a previous processing pass: reuse the metadata values in the message.\n * 4) other: ignore this and just process the message metadata as normal\n *\n * @param meta the bucket that holds information about the message\n * @returns the parsed metadata.\n */\n private _parseMetadata(meta: string|i18n.I18nMeta): I18nMeta {\n return typeof meta === 'string' ? parseI18nMeta(meta) :\n meta instanceof i18n.Message ? meta :\n {};\n }\n\n /**\n * Generate (or restore) message id if not specified already.\n */\n private _setMessageId(message: i18n.Message, meta: string|i18n.I18nMeta): void {\n if (!message.id) {\n message.id = meta instanceof i18n.Message && meta.id || decimalDigest(message);\n }\n }\n\n /**\n * Update the `message` with a `legacyId` if necessary.\n *\n * @param message the message whose legacy id should be set\n * @param meta information about the message being processed\n */\n private _setLegacyIds(message: i18n.Message, meta: string|i18n.I18nMeta): void {\n if (this.enableI18nLegacyMessageIdFormat) {\n message.legacyIds = [computeDigest(message), computeDecimalDigest(message)];\n } else if (typeof meta !== 'string') {\n // This occurs if we are doing the 2nd pass after whitespace removal (see `parseTemplate()` in\n // `packages/compiler/src/render3/view/template.ts`).\n // In that case we want to reuse the legacy message generated in the 1st pass (see\n // `setI18nRefs()`).\n const previousMessage = meta instanceof i18n.Message ? meta :\n meta instanceof i18n.IcuPlaceholder ? meta.previousMessage :\n undefined;\n message.legacyIds = previousMessage ? previousMessage.legacyIds : [];\n }\n }\n\n private _reportError(node: html.Node, msg: string): void {\n this._errors.push(new I18nError(node.sourceSpan, msg));\n }\n}\n\n/** I18n separators for metadata **/\nconst I18N_MEANING_SEPARATOR = '|';\nconst I18N_ID_SEPARATOR = '@@';\n\n/**\n * Parses i18n metas like:\n * - \"@@id\",\n * - \"description[@@id]\",\n * - \"meaning|description[@@id]\"\n * and returns an object with parsed output.\n *\n * @param meta String that represents i18n meta\n * @returns Object with id, meaning and description fields\n */\nexport function parseI18nMeta(meta: string = ''): I18nMeta {\n let customId: string|undefined;\n let meaning: string|undefined;\n let description: string|undefined;\n\n meta = meta.trim();\n if (meta) {\n const idIndex = meta.indexOf(I18N_ID_SEPARATOR);\n const descIndex = meta.indexOf(I18N_MEANING_SEPARATOR);\n let meaningAndDesc: string;\n [meaningAndDesc, customId] =\n (idIndex > -1) ? [meta.slice(0, idIndex), meta.slice(idIndex + 2)] : [meta, ''];\n [meaning, description] = (descIndex > -1) ?\n [meaningAndDesc.slice(0, descIndex), meaningAndDesc.slice(descIndex + 1)] :\n ['', meaningAndDesc];\n }\n\n return {customId, meaning, description};\n}\n\n// Converts i18n meta information for a message (id, description, meaning)\n// to a JsDoc statement formatted as expected by the Closure compiler.\nexport function i18nMetaToJSDoc(meta: I18nMeta): o.JSDocComment {\n const tags: o.JSDocTag[] = [];\n if (meta.description) {\n tags.push({tagName: o.JSDocTagName.Desc, text: meta.description});\n } else {\n // Suppress the JSCompiler warning that a `@desc` was not given for this message.\n tags.push({tagName: o.JSDocTagName.Suppress, text: '{msgDescriptions}'});\n }\n if (meta.meaning) {\n tags.push({tagName: o.JSDocTagName.Meaning, text: meta.meaning});\n }\n return o.jsDocComment(tags);\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nimport * as i18n from '../../../i18n/i18n_ast';\nimport {mapLiteral} from '../../../output/map_util';\nimport * as o from '../../../output/output_ast';\n\nimport {serializeIcuNode} from './icu_serializer';\nimport {i18nMetaToJSDoc} from './meta';\nimport {formatI18nPlaceholderName, formatI18nPlaceholderNamesInMap} from './util';\n\n/** Closure uses `goog.getMsg(message)` to lookup translations */\nconst GOOG_GET_MSG = 'goog.getMsg';\n\n/**\n * Generates a `goog.getMsg()` statement and reassignment. The template:\n *\n * ```html\n * <div i18n>Sent from {{ sender }} to <span class=\"receiver\">{{ receiver }}</span></div>\n * ```\n *\n * Generates:\n *\n * ```typescript\n * const MSG_FOO = goog.getMsg(\n * // Message template.\n * 'Sent from {$interpolation} to {$startTagSpan}{$interpolation_1}{$closeTagSpan}.',\n * // Placeholder values, set to magic strings which get replaced by the Angular runtime.\n * {\n * 'interpolation': '\\uFFFD0\\uFFFD',\n * 'startTagSpan': '\\uFFFD1\\uFFFD',\n * 'interpolation_1': '\\uFFFD2\\uFFFD',\n * 'closeTagSpan': '\\uFFFD3\\uFFFD',\n * },\n * // Options bag.\n * {\n * // Maps each placeholder to the original Angular source code which generates it's value.\n * original_code: {\n * 'interpolation': '{{ sender }}',\n * 'startTagSpan': '<span class=\"receiver\">',\n * 'interpolation_1': '{{ receiver }}',\n * 'closeTagSpan': '</span>',\n * },\n * },\n * );\n * const I18N_0 = MSG_FOO;\n * ```\n */\nexport function createGoogleGetMsgStatements(\n variable: o.ReadVarExpr, message: i18n.Message, closureVar: o.ReadVarExpr,\n placeholderValues: {[name: string]: o.Expression}): o.Statement[] {\n const messageString = serializeI18nMessageForGetMsg(message);\n const args = [o.literal(messageString) as o.Expression];\n if (Object.keys(placeholderValues).length) {\n // Message template parameters containing the magic strings replaced by the Angular runtime with\n // real data, e.g. `{'interpolation': '\\uFFFD0\\uFFFD'}`.\n args.push(mapLiteral(\n formatI18nPlaceholderNamesInMap(placeholderValues, true /* useCamelCase */),\n true /* quoted */));\n\n // Message options object, which contains original source code for placeholders (as they are\n // present in a template, e.g.\n // `{original_code: {'interpolation': '{{ name }}', 'startTagSpan': '<span>'}}`.\n args.push(mapLiteral({\n original_code:\n o.literalMap(Object.keys(placeholderValues)\n .map((param) => ({\n key: formatI18nPlaceholderName(param),\n quoted: true,\n value: message.placeholders[param] ?\n // Get source span for typical placeholder if it exists.\n o.literal(message.placeholders[param].sourceSpan.toString()) :\n // Otherwise must be an ICU expression, get it's source span.\n o.literal(\n message.placeholderToMessage[param]\n .nodes.map((node) => node.sourceSpan.toString())\n .join(''),\n ),\n }))),\n }));\n }\n\n // /**\n // * @desc description of message\n // * @meaning meaning of message\n // */\n // const MSG_... = goog.getMsg(..);\n // I18N_X = MSG_...;\n const googGetMsgStmt = closureVar.set(o.variable(GOOG_GET_MSG).callFn(args)).toConstDecl();\n googGetMsgStmt.addLeadingComment(i18nMetaToJSDoc(message));\n const i18nAssignmentStmt = new o.ExpressionStatement(variable.set(closureVar));\n return [googGetMsgStmt, i18nAssignmentStmt];\n}\n\n/**\n * This visitor walks over i18n tree and generates its string representation, including ICUs and\n * placeholders in `{$placeholder}` (for plain messages) or `{PLACEHOLDER}` (inside ICUs) format.\n */\nclass GetMsgSerializerVisitor implements i18n.Visitor {\n private formatPh(value: string): string {\n return `{$${formatI18nPlaceholderName(value)}}`;\n }\n\n visitText(text: i18n.Text): any {\n return text.value;\n }\n\n visitContainer(container: i18n.Container): any {\n return container.children.map(child => child.visit(this)).join('');\n }\n\n visitIcu(icu: i18n.Icu): any {\n return serializeIcuNode(icu);\n }\n\n visitTagPlaceholder(ph: i18n.TagPlaceholder): any {\n return ph.isVoid ?\n this.formatPh(ph.startName) :\n `${this.formatPh(ph.startName)}${ph.children.map(child => child.visit(this)).join('')}${\n this.formatPh(ph.closeName)}`;\n }\n\n visitPlaceholder(ph: i18n.Placeholder): any {\n return this.formatPh(ph.name);\n }\n\n visitBlockPlaceholder(ph: i18n.BlockPlaceholder): any {\n return `${this.formatPh(ph.startName)}${ph.children.map(child => child.visit(this)).join('')}${\n this.formatPh(ph.closeName)}`;\n }\n\n visitIcuPlaceholder(ph: i18n.IcuPlaceholder, context?: any): any {\n return this.formatPh(ph.name);\n }\n}\n\nconst serializerVisitor = new GetMsgSerializerVisitor();\n\nexport function serializeI18nMessageForGetMsg(message: i18n.Message): string {\n return message.nodes.map(node => node.visit(serializerVisitor, null)).join('');\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nimport * as i18n from '../../../i18n/i18n_ast';\nimport * as o from '../../../output/output_ast';\nimport {ParseLocation, ParseSourceSpan} from '../../../parse_util';\n\nimport {serializeIcuNode} from './icu_serializer';\nimport {formatI18nPlaceholderName} from './util';\n\nexport function createLocalizeStatements(\n variable: o.ReadVarExpr, message: i18n.Message,\n params: {[name: string]: o.Expression}): o.Statement[] {\n const {messageParts, placeHolders} = serializeI18nMessageForLocalize(message);\n const sourceSpan = getSourceSpan(message);\n const expressions = placeHolders.map(ph => params[ph.text]);\n const localizedString =\n o.localizedString(message, messageParts, placeHolders, expressions, sourceSpan);\n const variableInitialization = variable.set(localizedString);\n return [new o.ExpressionStatement(variableInitialization)];\n}\n\n/**\n * This visitor walks over an i18n tree, capturing literal strings and placeholders.\n *\n * The result can be used for generating the `$localize` tagged template literals.\n */\nclass LocalizeSerializerVisitor implements i18n.Visitor {\n constructor(\n private placeholderToMessage: {[phName: string]: i18n.Message},\n private pieces: o.MessagePiece[]) {}\n\n visitText(text: i18n.Text): any {\n if (this.pieces[this.pieces.length - 1] instanceof o.LiteralPiece) {\n // Two literal pieces in a row means that there was some comment node in-between.\n this.pieces[this.pieces.length - 1].text += text.value;\n } else {\n const sourceSpan = new ParseSourceSpan(\n text.sourceSpan.fullStart, text.sourceSpan.end, text.sourceSpan.fullStart,\n text.sourceSpan.details);\n this.pieces.push(new o.LiteralPiece(text.value, sourceSpan));\n }\n }\n\n visitContainer(container: i18n.Container): any {\n container.children.forEach(child => child.visit(this));\n }\n\n visitIcu(icu: i18n.Icu): any {\n this.pieces.push(new o.LiteralPiece(serializeIcuNode(icu), icu.sourceSpan));\n }\n\n visitTagPlaceholder(ph: i18n.TagPlaceholder): any {\n this.pieces.push(\n this.createPlaceholderPiece(ph.startName, ph.startSourceSpan ?? ph.sourceSpan));\n if (!ph.isVoid) {\n ph.children.forEach(child => child.visit(this));\n this.pieces.push(\n this.createPlaceholderPiece(ph.closeName, ph.endSourceSpan ?? ph.sourceSpan));\n }\n }\n\n visitPlaceholder(ph: i18n.Placeholder): any {\n this.pieces.push(this.createPlaceholderPiece(ph.name, ph.sourceSpan));\n }\n\n visitBlockPlaceholder(ph: i18n.BlockPlaceholder): any {\n this.pieces.push(\n this.createPlaceholderPiece(ph.startName, ph.startSourceSpan ?? ph.sourceSpan));\n ph.children.forEach(child => child.visit(this));\n this.pieces.push(this.createPlaceholderPiece(ph.closeName, ph.endSourceSpan ?? ph.sourceSpan));\n }\n\n visitIcuPlaceholder(ph: i18n.IcuPlaceholder): any {\n this.pieces.push(\n this.createPlaceholderPiece(ph.name, ph.sourceSpan, this.placeholderToMessage[ph.name]));\n }\n\n private createPlaceholderPiece(\n name: string, sourceSpan: ParseSourceSpan,\n associatedMessage?: i18n.Message): o.PlaceholderPiece {\n return new o.PlaceholderPiece(\n formatI18nPlaceholderName(name, /* useCamelCase */ false), sourceSpan, associatedMessage);\n }\n}\n\n/**\n * Serialize an i18n message into two arrays: messageParts and placeholders.\n *\n * These arrays will be used to generate `$localize` tagged template literals.\n *\n * @param message The message to be serialized.\n * @returns an object containing the messageParts and placeholders.\n */\nexport function serializeI18nMessageForLocalize(message: i18n.Message):\n {messageParts: o.LiteralPiece[], placeHolders: o.PlaceholderPiece[]} {\n const pieces: o.MessagePiece[] = [];\n const serializerVisitor = new LocalizeSerializerVisitor(message.placeholderToMessage, pieces);\n message.nodes.forEach(node => node.visit(serializerVisitor));\n return processMessagePieces(pieces);\n}\n\nfunction getSourceSpan(message: i18n.Message): ParseSourceSpan {\n const startNode = message.nodes[0];\n const endNode = message.nodes[message.nodes.length - 1];\n return new ParseSourceSpan(\n startNode.sourceSpan.fullStart, endNode.sourceSpan.end, startNode.sourceSpan.fullStart,\n startNode.sourceSpan.details);\n}\n\n/**\n * Convert the list of serialized MessagePieces into two arrays.\n *\n * One contains the literal string pieces and the other the placeholders that will be replaced by\n * expressions when rendering `$localize` tagged template literals.\n *\n * @param pieces The pieces to process.\n * @returns an object containing the messageParts and placeholders.\n */\nfunction processMessagePieces(pieces: o.MessagePiece[]):\n {messageParts: o.LiteralPiece[], placeHolders: o.PlaceholderPiece[]} {\n const messageParts: o.LiteralPiece[] = [];\n const placeHolders: o.PlaceholderPiece[] = [];\n\n if (pieces[0] instanceof o.PlaceholderPiece) {\n // The first piece was a placeholder so we need to add an initial empty message part.\n messageParts.push(createEmptyMessagePart(pieces[0].sourceSpan.start));\n }\n\n for (let i = 0; i < pieces.length; i++) {\n const part = pieces[i];\n if (part instanceof o.LiteralPiece) {\n messageParts.push(part);\n } else {\n placeHolders.push(part);\n if (pieces[i - 1] instanceof o.PlaceholderPiece) {\n // There were two placeholders in a row, so we need to add an empty message part.\n messageParts.push(createEmptyMessagePart(pieces[i - 1].sourceSpan.end));\n }\n }\n }\n if (pieces[pieces.length - 1] instanceof o.PlaceholderPiece) {\n // The last piece was a placeholder so we need to add a final empty message part.\n messageParts.push(createEmptyMessagePart(pieces[pieces.length - 1].sourceSpan.end));\n }\n return {messageParts, placeHolders};\n}\n\nfunction createEmptyMessagePart(location: ParseLocation): o.LiteralPiece {\n return new o.LiteralPiece('', new ParseSourceSpan(location, location));\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {type ConstantPool} from '../../../../constant_pool';\nimport * as i18n from '../../../../i18n/i18n_ast';\nimport {mapLiteral} from '../../../../output/map_util';\nimport * as o from '../../../../output/output_ast';\nimport {sanitizeIdentifier} from '../../../../parse_util';\nimport {Identifiers} from '../../../../render3/r3_identifiers';\nimport {createGoogleGetMsgStatements} from '../../../../render3/view/i18n/get_msg_utils';\nimport {createLocalizeStatements} from '../../../../render3/view/i18n/localize_utils';\nimport {declareI18nVariable, formatI18nPlaceholderNamesInMap, getTranslationConstPrefix} from '../../../../render3/view/i18n/util';\nimport * as ir from '../../ir';\nimport {ComponentCompilationJob} from '../compilation';\n\n/** Name of the global variable that is used to determine if we use Closure translations or not */\nconst NG_I18N_CLOSURE_MODE = 'ngI18nClosureMode';\n\n/**\n * Prefix for non-`goog.getMsg` i18n-related vars.\n * Note: the prefix uses lowercase characters intentionally due to a Closure behavior that\n * considers variables like `I18N_0` as constants and throws an error when their value changes.\n */\nconst TRANSLATION_VAR_PREFIX = 'i18n_';\n\n/** Prefix of ICU expressions for post processing */\nexport const I18N_ICU_MAPPING_PREFIX = 'I18N_EXP_';\n\n/**\n * The escape sequence used for message param values.\n */\nconst ESCAPE = '\\uFFFD';\n\n/**\n * Lifts i18n properties into the consts array.\n * TODO: Can we use `ConstCollectedExpr`?\n * TODO: The way the various attributes are linked together is very complex. Perhaps we could\n * simplify the process, maybe by combining the context and message ops?\n */\nexport function collectI18nConsts(job: ComponentCompilationJob): void {\n const fileBasedI18nSuffix =\n job.relativeContextFilePath.replace(/[^A-Za-z0-9]/g, '_').toUpperCase() + '_';\n // Step One: Build up various lookup maps we need to collect all the consts.\n\n // Context Xref -> Extracted Attribute Ops\n const extractedAttributesByI18nContext = new Map<ir.XrefId, ir.ExtractedAttributeOp[]>();\n // Element/ElementStart Xref -> I18n Attributes config op\n const i18nAttributesByElement = new Map<ir.XrefId, ir.I18nAttributesOp>();\n // Element/ElementStart Xref -> All I18n Expression ops for attrs on that target\n const i18nExpressionsByElement = new Map<ir.XrefId, ir.I18nExpressionOp[]>();\n // I18n Message Xref -> I18n Message Op (TODO: use a central op map)\n const messages = new Map<ir.XrefId, ir.I18nMessageOp>();\n\n for (const unit of job.units) {\n for (const op of unit.ops()) {\n if (op.kind === ir.OpKind.ExtractedAttribute && op.i18nContext !== null) {\n const attributes = extractedAttributesByI18nContext.get(op.i18nContext) ?? [];\n attributes.push(op);\n extractedAttributesByI18nContext.set(op.i18nContext, attributes);\n } else if (op.kind === ir.OpKind.I18nAttributes) {\n i18nAttributesByElement.set(op.target, op);\n } else if (\n op.kind === ir.OpKind.I18nExpression && op.usage === ir.I18nExpressionFor.I18nAttribute) {\n const expressions = i18nExpressionsByElement.get(op.target) ?? [];\n expressions.push(op);\n i18nExpressionsByElement.set(op.target, expressions);\n } else if (op.kind === ir.OpKind.I18nMessage) {\n messages.set(op.xref, op);\n }\n }\n }\n\n // Step Two: Serialize the extracted i18n messages for root i18n blocks and i18n attributes into\n // the const array.\n //\n // Also, each i18n message will have a variable expression that can refer to its\n // value. Store these expressions in the appropriate place:\n // 1. For normal i18n content, it also goes in the const array. We save the const index to use\n // later.\n // 2. For extracted attributes, it becomes the value of the extracted attribute instruction.\n // 3. For i18n bindings, it will go in a separate const array instruction below; for now, we just\n // save it.\n\n const i18nValuesByContext = new Map<ir.XrefId, o.Expression>();\n const messageConstIndices = new Map<ir.XrefId, ir.ConstIndex>();\n\n for (const unit of job.units) {\n for (const op of unit.create) {\n if (op.kind === ir.OpKind.I18nMessage) {\n if (op.messagePlaceholder === null) {\n const {mainVar, statements} = collectMessage(job, fileBasedI18nSuffix, messages, op);\n if (op.i18nBlock !== null) {\n // This is a regular i18n message with a corresponding i18n block. Collect it into the\n // const array.\n const i18nConst = job.addConst(mainVar, statements);\n messageConstIndices.set(op.i18nBlock, i18nConst);\n } else {\n // This is an i18n attribute. Extract the initializers into the const pool.\n job.constsInitializers.push(...statements);\n\n // Save the i18n variable value for later.\n i18nValuesByContext.set(op.i18nContext, mainVar);\n\n // This i18n message may correspond to an individual extracted attribute. If so, The\n // value of that attribute is updated to read the extracted i18n variable.\n const attributesForMessage = extractedAttributesByI18nContext.get(op.i18nContext);\n if (attributesForMessage !== undefined) {\n for (const attr of attributesForMessage) {\n attr.expression = mainVar.clone();\n }\n }\n }\n }\n ir.OpList.remove<ir.CreateOp>(op);\n }\n }\n }\n\n // Step Three: Serialize I18nAttributes configurations into the const array. Each I18nAttributes\n // instruction has a config array, which contains k-v pairs describing each binding name, and the\n // i18n variable that provides the value.\n\n for (const unit of job.units) {\n for (const elem of unit.create) {\n if (ir.isElementOrContainerOp(elem)) {\n const i18nAttributes = i18nAttributesByElement.get(elem.xref);\n if (i18nAttributes === undefined) {\n // This element is not associated with an i18n attributes configuration instruction.\n continue;\n }\n\n let i18nExpressions = i18nExpressionsByElement.get(elem.xref);\n if (i18nExpressions === undefined) {\n // Unused i18nAttributes should have already been removed.\n // TODO: Should the removal of those dead instructions be merged with this phase?\n throw new Error(\n 'AssertionError: Could not find any i18n expressions associated with an I18nAttributes instruction');\n }\n\n // Find expressions for all the unique property names, removing duplicates.\n const seenPropertyNames = new Set<string>();\n i18nExpressions = i18nExpressions.filter(i18nExpr => {\n const seen = (seenPropertyNames.has(i18nExpr.name));\n seenPropertyNames.add(i18nExpr.name);\n return !seen;\n });\n\n const i18nAttributeConfig = i18nExpressions.flatMap(i18nExpr => {\n const i18nExprValue = i18nValuesByContext.get(i18nExpr.context);\n if (i18nExprValue === undefined) {\n throw new Error('AssertionError: Could not find i18n expression\\'s value');\n }\n return [o.literal(i18nExpr.name), i18nExprValue];\n });\n\n\n i18nAttributes.i18nAttributesConfig =\n job.addConst(new o.LiteralArrayExpr(i18nAttributeConfig));\n }\n }\n }\n\n // Step Four: Propagate the extracted const index into i18n ops that messages were extracted from.\n\n for (const unit of job.units) {\n for (const op of unit.create) {\n if (op.kind === ir.OpKind.I18nStart) {\n const msgIndex = messageConstIndices.get(op.root);\n if (msgIndex === undefined) {\n throw new Error(\n 'AssertionError: Could not find corresponding i18n block index for an i18n message op; was an i18n message incorrectly assumed to correspond to an attribute?');\n }\n op.messageIndex = msgIndex;\n }\n }\n }\n}\n\n/**\n * Collects the given message into a set of statements that can be added to the const array.\n * This will recursively collect any sub-messages referenced from the parent message as well.\n */\nfunction collectMessage(\n job: ComponentCompilationJob, fileBasedI18nSuffix: string,\n messages: Map<ir.XrefId, ir.I18nMessageOp>,\n messageOp: ir.I18nMessageOp): {mainVar: o.ReadVarExpr, statements: o.Statement[]} {\n // Recursively collect any sub-messages, record each sub-message's main variable under its\n // placeholder so that we can add them to the params for the parent message. It is possible\n // that multiple sub-messages will share the same placeholder, so we need to track an array of\n // variables for each placeholder.\n const statements: o.Statement[] = [];\n const subMessagePlaceholders = new Map<string, o.Expression[]>();\n for (const subMessageId of messageOp.subMessages) {\n const subMessage = messages.get(subMessageId)!;\n const {mainVar: subMessageVar, statements: subMessageStatements} =\n collectMessage(job, fileBasedI18nSuffix, messages, subMessage);\n statements.push(...subMessageStatements);\n const subMessages = subMessagePlaceholders.get(subMessage.messagePlaceholder!) ?? [];\n subMessages.push(subMessageVar);\n subMessagePlaceholders.set(subMessage.messagePlaceholder!, subMessages);\n }\n addSubMessageParams(messageOp, subMessagePlaceholders);\n\n // Sort the params for consistency with TemaplateDefinitionBuilder output.\n messageOp.params = new Map([...messageOp.params.entries()].sort());\n\n const mainVar = o.variable(job.pool.uniqueName(TRANSLATION_VAR_PREFIX));\n // Closure Compiler requires const names to start with `MSG_` but disallows any other\n // const to start with `MSG_`. We define a variable starting with `MSG_` just for the\n // `goog.getMsg` call\n const closureVar = i18nGenerateClosureVar(\n job.pool, messageOp.message.id, fileBasedI18nSuffix, job.i18nUseExternalIds);\n let transformFn = undefined;\n\n // If nescessary, add a post-processing step and resolve any placeholder params that are\n // set in post-processing.\n if (messageOp.needsPostprocessing || messageOp.postprocessingParams.size > 0) {\n // Sort the post-processing params for consistency with TemaplateDefinitionBuilder output.\n const postprocessingParams =\n Object.fromEntries([...messageOp.postprocessingParams.entries()].sort());\n const formattedPostprocessingParams =\n formatI18nPlaceholderNamesInMap(postprocessingParams, /* useCamelCase */ false);\n const extraTransformFnParams: o.Expression[] = [];\n if (messageOp.postprocessingParams.size > 0) {\n extraTransformFnParams.push(mapLiteral(formattedPostprocessingParams, /* quoted */ true));\n }\n transformFn = (expr: o.ReadVarExpr) =>\n o.importExpr(Identifiers.i18nPostprocess).callFn([expr, ...extraTransformFnParams]);\n }\n\n // Add the message's statements\n statements.push(...getTranslationDeclStmts(\n messageOp.message, mainVar, closureVar, messageOp.params, transformFn));\n\n return {mainVar, statements};\n}\n\n/**\n * Adds the given subMessage placeholders to the given message op.\n *\n * If a placeholder only corresponds to a single sub-message variable, we just set that variable\n * as the param value. However, if the placeholder corresponds to multiple sub-message\n * variables, we need to add a special placeholder value that is handled by the post-processing\n * step. We then add the array of variables as a post-processing param.\n */\nfunction addSubMessageParams(\n messageOp: ir.I18nMessageOp, subMessagePlaceholders: Map<string, o.Expression[]>) {\n for (const [placeholder, subMessages] of subMessagePlaceholders) {\n if (subMessages.length === 1) {\n messageOp.params.set(placeholder, subMessages[0]);\n } else {\n messageOp.params.set(\n placeholder, o.literal(`${ESCAPE}${I18N_ICU_MAPPING_PREFIX}${placeholder}${ESCAPE}`));\n messageOp.postprocessingParams.set(placeholder, o.literalArr(subMessages));\n }\n }\n}\n\n/**\n * Generate statements that define a given translation message.\n *\n * ```\n * var I18N_1;\n * if (typeof ngI18nClosureMode !== undefined && ngI18nClosureMode) {\n * var MSG_EXTERNAL_XXX = goog.getMsg(\n * \"Some message with {$interpolation}!\",\n * { \"interpolation\": \"\\uFFFD0\\uFFFD\" }\n * );\n * I18N_1 = MSG_EXTERNAL_XXX;\n * }\n * else {\n * I18N_1 = $localize`Some message with ${'\\uFFFD0\\uFFFD'}!`;\n * }\n * ```\n *\n * @param message The original i18n AST message node\n * @param variable The variable that will be assigned the translation, e.g. `I18N_1`.\n * @param closureVar The variable for Closure `goog.getMsg` calls, e.g. `MSG_EXTERNAL_XXX`.\n * @param params Object mapping placeholder names to their values (e.g.\n * `{ \"interpolation\": \"\\uFFFD0\\uFFFD\" }`).\n * @param transformFn Optional transformation function that will be applied to the translation\n * (e.g.\n * post-processing).\n * @returns An array of statements that defined a given translation.\n */\nfunction getTranslationDeclStmts(\n message: i18n.Message, variable: o.ReadVarExpr, closureVar: o.ReadVarExpr,\n params: Map<string, o.Expression>,\n transformFn?: (raw: o.ReadVarExpr) => o.Expression): o.Statement[] {\n const paramsObject = Object.fromEntries(params);\n const statements: o.Statement[] = [\n declareI18nVariable(variable),\n o.ifStmt(\n createClosureModeGuard(),\n createGoogleGetMsgStatements(variable, message, closureVar, paramsObject),\n createLocalizeStatements(\n variable, message,\n formatI18nPlaceholderNamesInMap(paramsObject, /* useCamelCase */ false))),\n ];\n\n if (transformFn) {\n statements.push(new o.ExpressionStatement(variable.set(transformFn(variable))));\n }\n\n return statements;\n}\n\n/**\n * Create the expression that will be used to guard the closure mode block\n * It is equivalent to:\n *\n * ```\n * typeof ngI18nClosureMode !== undefined && ngI18nClosureMode\n * ```\n */\nfunction createClosureModeGuard(): o.BinaryOperatorExpr {\n return o.typeofExpr(o.variable(NG_I18N_CLOSURE_MODE))\n .notIdentical(o.literal('undefined', o.STRING_TYPE))\n .and(o.variable(NG_I18N_CLOSURE_MODE));\n}\n\n/**\n * Generates vars with Closure-specific names for i18n blocks (i.e. `MSG_XXX`).\n */\nfunction i18nGenerateClosureVar(\n pool: ConstantPool, messageId: string, fileBasedI18nSuffix: string,\n useExternalIds: boolean): o.ReadVarExpr {\n let name: string;\n const suffix = fileBasedI18nSuffix;\n if (useExternalIds) {\n const prefix = getTranslationConstPrefix(`EXTERNAL_`);\n const uniqueSuffix = pool.uniqueName(suffix);\n name = `${prefix}${sanitizeIdentifier(messageId)}$$${uniqueSuffix}`;\n } else {\n const prefix = getTranslationConstPrefix(suffix);\n name = pool.uniqueName(prefix);\n }\n return o.variable(name);\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as ir from '../../ir';\nimport {CompilationJob} from '../compilation';\n\n/**\n * Removes text nodes within i18n blocks since they are already hardcoded into the i18n message.\n * Also, replaces interpolations on these text nodes with i18n expressions of the non-text portions,\n * which will be applied later.\n */\nexport function convertI18nText(job: CompilationJob): void {\n for (const unit of job.units) {\n // Remove all text nodes within i18n blocks, their content is already captured in the i18n\n // message.\n let currentI18n: ir.I18nStartOp|null = null;\n let currentIcu: ir.IcuStartOp|null = null;\n const textNodeI18nBlocks = new Map<ir.XrefId, ir.I18nStartOp>();\n const textNodeIcus = new Map<ir.XrefId, ir.IcuStartOp|null>();\n const icuPlaceholderByText = new Map<ir.XrefId, ir.IcuPlaceholderOp>();\n for (const op of unit.create) {\n switch (op.kind) {\n case ir.OpKind.I18nStart:\n if (op.context === null) {\n throw Error('I18n op should have its context set.');\n }\n currentI18n = op;\n break;\n case ir.OpKind.I18nEnd:\n currentI18n = null;\n break;\n case ir.OpKind.IcuStart:\n if (op.context === null) {\n throw Error('Icu op should have its context set.');\n }\n currentIcu = op;\n break;\n case ir.OpKind.IcuEnd:\n currentIcu = null;\n break;\n case ir.OpKind.Text:\n if (currentI18n !== null) {\n textNodeI18nBlocks.set(op.xref, currentI18n);\n textNodeIcus.set(op.xref, currentIcu);\n if (op.icuPlaceholder !== null) {\n // Create an op to represent the ICU placeholder. Initially set its static text to the\n // value of the text op, though this may be overwritten later if this text op is a\n // placeholder for an interpolation.\n const icuPlaceholderOp = ir.createIcuPlaceholderOp(\n job.allocateXrefId(), op.icuPlaceholder, [op.initialValue]);\n ir.OpList.replace<ir.CreateOp>(op, icuPlaceholderOp);\n icuPlaceholderByText.set(op.xref, icuPlaceholderOp);\n } else {\n // Otherwise just remove the text op, since its value is already accounted for in the\n // translated message.\n ir.OpList.remove<ir.CreateOp>(op);\n }\n }\n break;\n }\n }\n\n // Update any interpolations to the removed text, and instead represent them as a series of i18n\n // expressions that we then apply.\n for (const op of unit.update) {\n switch (op.kind) {\n case ir.OpKind.InterpolateText:\n if (!textNodeI18nBlocks.has(op.target)) {\n continue;\n }\n\n const i18nOp = textNodeI18nBlocks.get(op.target)!;\n const icuOp = textNodeIcus.get(op.target);\n const icuPlaceholder = icuPlaceholderByText.get(op.target);\n const contextId = icuOp ? icuOp.context : i18nOp.context;\n const resolutionTime = icuOp ? ir.I18nParamResolutionTime.Postproccessing :\n ir.I18nParamResolutionTime.Creation;\n const ops: ir.I18nExpressionOp[] = [];\n for (let i = 0; i < op.interpolation.expressions.length; i++) {\n const expr = op.interpolation.expressions[i];\n // For now, this i18nExpression depends on the slot context of the enclosing i18n block.\n // Later, we will modify this, and advance to a different point.\n ops.push(ir.createI18nExpressionOp(\n contextId!, i18nOp.xref, i18nOp.xref, i18nOp.handle, expr,\n icuPlaceholder?.xref ?? null, op.interpolation.i18nPlaceholders[i] ?? null,\n resolutionTime, ir.I18nExpressionFor.I18nText, '',\n expr.sourceSpan ?? op.sourceSpan));\n }\n ir.OpList.replaceWithMany(op as ir.UpdateOp, ops);\n // If this interpolation is part of an ICU placeholder, add the strings and expressions to\n // the placeholder.\n if (icuPlaceholder !== undefined) {\n icuPlaceholder.strings = op.interpolation.strings;\n }\n break;\n }\n }\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as o from '../../../../output/output_ast';\nimport * as ir from '../../ir';\n\nimport type {ComponentCompilationJob} from '../compilation';\n\n/**\n * Lifts local reference declarations on element-like structures within each view into an entry in\n * the `consts` array for the whole component.\n */\nexport function liftLocalRefs(job: ComponentCompilationJob): void {\n for (const unit of job.units) {\n for (const op of unit.create) {\n switch (op.kind) {\n case ir.OpKind.ElementStart:\n case ir.OpKind.Template:\n if (!Array.isArray(op.localRefs)) {\n throw new Error(`AssertionError: expected localRefs to be an array still`);\n }\n op.numSlotsUsed += op.localRefs.length;\n\n if (op.localRefs.length > 0) {\n const localRefs = serializeLocalRefs(op.localRefs);\n op.localRefs = job.addConst(localRefs);\n } else {\n op.localRefs = null;\n }\n break;\n }\n }\n }\n}\n\nfunction serializeLocalRefs(refs: ir.LocalRef[]): o.Expression {\n const constRefs: o.Expression[] = [];\n for (const ref of refs) {\n constRefs.push(o.literal(ref.name), o.literal(ref.target));\n }\n return o.literalArr(constRefs);\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as ir from '../../ir';\nimport type {CompilationJob} from '../compilation';\n\n/**\n * Change namespaces between HTML, SVG and MathML, depending on the next element.\n */\nexport function emitNamespaceChanges(job: CompilationJob): void {\n for (const unit of job.units) {\n let activeNamespace = ir.Namespace.HTML;\n\n for (const op of unit.create) {\n if (op.kind !== ir.OpKind.ElementStart) {\n continue;\n }\n if (op.namespace !== activeNamespace) {\n ir.OpList.insertBefore<ir.CreateOp>(ir.createNamespaceOp(op.namespace), op);\n activeNamespace = op.namespace;\n }\n }\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n// Any changes here should be ported to the Angular Domino fork.\n// https://github.com/angular/domino/blob/main/lib/style_parser.js\n\nconst enum Char {\n OpenParen = 40,\n CloseParen = 41,\n Colon = 58,\n Semicolon = 59,\n BackSlash = 92,\n QuoteNone = 0, // indicating we are not inside a quote\n QuoteDouble = 34,\n QuoteSingle = 39,\n}\n\n\n/**\n * Parses string representation of a style and converts it into object literal.\n *\n * @param value string representation of style as used in the `style` attribute in HTML.\n * Example: `color: red; height: auto`.\n * @returns An array of style property name and value pairs, e.g. `['color', 'red', 'height',\n * 'auto']`\n */\nexport function parse(value: string): string[] {\n // we use a string array here instead of a string map\n // because a string-map is not guaranteed to retain the\n // order of the entries whereas a string array can be\n // constructed in a [key, value, key, value] format.\n const styles: string[] = [];\n\n let i = 0;\n let parenDepth = 0;\n let quote: Char = Char.QuoteNone;\n let valueStart = 0;\n let propStart = 0;\n let currentProp: string|null = null;\n while (i < value.length) {\n const token = value.charCodeAt(i++) as Char;\n switch (token) {\n case Char.OpenParen:\n parenDepth++;\n break;\n case Char.CloseParen:\n parenDepth--;\n break;\n case Char.QuoteSingle:\n // valueStart needs to be there since prop values don't\n // have quotes in CSS\n if (quote === Char.QuoteNone) {\n quote = Char.QuoteSingle;\n } else if (quote === Char.QuoteSingle && value.charCodeAt(i - 1) !== Char.BackSlash) {\n quote = Char.QuoteNone;\n }\n break;\n case Char.QuoteDouble:\n // same logic as above\n if (quote === Char.QuoteNone) {\n quote = Char.QuoteDouble;\n } else if (quote === Char.QuoteDouble && value.charCodeAt(i - 1) !== Char.BackSlash) {\n quote = Char.QuoteNone;\n }\n break;\n case Char.Colon:\n if (!currentProp && parenDepth === 0 && quote === Char.QuoteNone) {\n // TODO: Do not hyphenate CSS custom property names like: `--intentionallyCamelCase`\n currentProp = hyphenate(value.substring(propStart, i - 1).trim());\n valueStart = i;\n }\n break;\n case Char.Semicolon:\n if (currentProp && valueStart > 0 && parenDepth === 0 && quote === Char.QuoteNone) {\n const styleVal = value.substring(valueStart, i - 1).trim();\n styles.push(currentProp, styleVal);\n propStart = i;\n valueStart = 0;\n currentProp = null;\n }\n break;\n }\n }\n\n if (currentProp && valueStart) {\n const styleVal = value.slice(valueStart).trim();\n styles.push(currentProp, styleVal);\n }\n\n return styles;\n}\n\nexport function hyphenate(value: string): string {\n return value\n .replace(\n /[a-z][A-Z]/g,\n v => {\n return v.charAt(0) + '-' + v.charAt(1);\n })\n .toLowerCase();\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {sanitizeIdentifier} from '../../../../parse_util';\nimport {hyphenate} from '../../../../render3/view/style_parser';\nimport * as ir from '../../ir';\nimport {type CompilationJob, type CompilationUnit, ViewCompilationUnit} from '../compilation';\n\n/**\n * Generate names for functions and variables across all views.\n *\n * This includes propagating those names into any `ir.ReadVariableExpr`s of those variables, so that\n * the reads can be emitted correctly.\n */\nexport function nameFunctionsAndVariables(job: CompilationJob): void {\n addNamesToView(\n job.root, job.componentName, {index: 0},\n job.compatibility === ir.CompatibilityMode.TemplateDefinitionBuilder);\n}\n\nfunction addNamesToView(\n unit: CompilationUnit, baseName: string, state: {index: number}, compatibility: boolean): void {\n if (unit.fnName === null) {\n // Ensure unique names for view units. This is necessary because there might be multiple\n // components with same names in the context of the same pool. Only add the suffix\n // if really needed.\n unit.fnName = unit.job.pool.uniqueName(\n sanitizeIdentifier(`${baseName}_${unit.job.fnSuffix}`), /* alwaysIncludeSuffix */ false);\n }\n\n // Keep track of the names we assign to variables in the view. We'll need to propagate these\n // into reads of those variables afterwards.\n const varNames = new Map<ir.XrefId, string>();\n\n for (const op of unit.ops()) {\n switch (op.kind) {\n case ir.OpKind.Property:\n case ir.OpKind.HostProperty:\n if (op.isAnimationTrigger) {\n op.name = '@' + op.name;\n }\n break;\n case ir.OpKind.Listener:\n if (op.handlerFnName !== null) {\n break;\n }\n if (!op.hostListener && op.targetSlot.slot === null) {\n throw new Error(`Expected a slot to be assigned`);\n }\n let animation = '';\n if (op.isAnimationListener) {\n op.name = `@${op.name}.${op.animationPhase}`;\n animation = 'animation';\n }\n if (op.hostListener) {\n op.handlerFnName = `${baseName}_${animation}${op.name}_HostBindingHandler`;\n } else {\n op.handlerFnName = `${unit.fnName}_${op.tag!.replace('-', '_')}_${animation}${op.name}_${\n op.targetSlot.slot}_listener`;\n }\n op.handlerFnName = sanitizeIdentifier(op.handlerFnName);\n break;\n case ir.OpKind.Variable:\n varNames.set(op.xref, getVariableName(unit, op.variable, state));\n break;\n case ir.OpKind.RepeaterCreate:\n if (!(unit instanceof ViewCompilationUnit)) {\n throw new Error(`AssertionError: must be compiling a component`);\n }\n if (op.handle.slot === null) {\n throw new Error(`Expected slot to be assigned`);\n }\n if (op.emptyView !== null) {\n const emptyView = unit.job.views.get(op.emptyView)!;\n // Repeater empty view function is at slot +2 (metadata is in the first slot).\n addNamesToView(\n emptyView, `${baseName}_${`${op.functionNameSuffix}Empty`}_${op.handle.slot + 2}`,\n state, compatibility);\n }\n // Repeater primary view function is at slot +1 (metadata is in the first slot).\n addNamesToView(\n unit.job.views.get(op.xref)!,\n `${baseName}_${op.functionNameSuffix}_${op.handle.slot + 1}`, state, compatibility);\n break;\n case ir.OpKind.Template:\n if (!(unit instanceof ViewCompilationUnit)) {\n throw new Error(`AssertionError: must be compiling a component`);\n }\n const childView = unit.job.views.get(op.xref)!;\n if (op.handle.slot === null) {\n throw new Error(`Expected slot to be assigned`);\n }\n const suffix = op.functionNameSuffix.length === 0 ? '' : `_${op.functionNameSuffix}`;\n addNamesToView(childView, `${baseName}${suffix}_${op.handle.slot}`, state, compatibility);\n break;\n case ir.OpKind.StyleProp:\n op.name = normalizeStylePropName(op.name);\n if (compatibility) {\n op.name = stripImportant(op.name);\n }\n break;\n case ir.OpKind.ClassProp:\n if (compatibility) {\n op.name = stripImportant(op.name);\n }\n break;\n }\n }\n\n // Having named all variables declared in the view, now we can push those names into the\n // `ir.ReadVariableExpr` expressions which represent reads of those variables.\n for (const op of unit.ops()) {\n ir.visitExpressionsInOp(op, expr => {\n if (!(expr instanceof ir.ReadVariableExpr) || expr.name !== null) {\n return;\n }\n if (!varNames.has(expr.xref)) {\n throw new Error(`Variable ${expr.xref} not yet named`);\n }\n expr.name = varNames.get(expr.xref)!;\n });\n }\n}\n\nfunction getVariableName(\n unit: CompilationUnit, variable: ir.SemanticVariable, state: {index: number}): string {\n if (variable.name === null) {\n switch (variable.kind) {\n case ir.SemanticVariableKind.Context:\n variable.name = `ctx_r${state.index++}`;\n break;\n case ir.SemanticVariableKind.Identifier:\n if (unit.job.compatibility === ir.CompatibilityMode.TemplateDefinitionBuilder) {\n // TODO: Prefix increment and `_r` are for compatiblity with the old naming scheme.\n // This has the potential to cause collisions when `ctx` is the identifier, so we need a\n // special check for that as well.\n const compatPrefix = variable.identifier === 'ctx' ? 'i' : '';\n variable.name = `${variable.identifier}_${compatPrefix}r${++state.index}`;\n } else {\n variable.name = `${variable.identifier}_i${state.index++}`;\n }\n\n break;\n default:\n // TODO: Prefix increment for compatibility only.\n variable.name = `_r${++state.index}`;\n break;\n }\n }\n return variable.name;\n}\n\n/**\n * Normalizes a style prop name by hyphenating it (unless its a CSS variable).\n */\nfunction normalizeStylePropName(name: string) {\n return name.startsWith('--') ? name : hyphenate(name);\n}\n\n/**\n * Strips `!important` out of the given style or class name.\n */\nfunction stripImportant(name: string) {\n const importantIndex = name.indexOf('!important');\n if (importantIndex > -1) {\n return name.substring(0, importantIndex);\n }\n return name;\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as o from '../../../../output/output_ast';\nimport * as ir from '../../ir';\n\nimport type {CompilationJob} from '../compilation';\n\n/**\n * Merges logically sequential `NextContextExpr` operations.\n *\n * `NextContextExpr` can be referenced repeatedly, \"popping\" the runtime's context stack each time.\n * When two such expressions appear back-to-back, it's possible to merge them together into a single\n * `NextContextExpr` that steps multiple contexts. This merging is possible if all conditions are\n * met:\n *\n * * The result of the `NextContextExpr` that's folded into the subsequent one is not stored (that\n * is, the call is purely side-effectful).\n * * No operations in between them uses the implicit context.\n */\nexport function mergeNextContextExpressions(job: CompilationJob): void {\n for (const unit of job.units) {\n for (const op of unit.create) {\n if (op.kind === ir.OpKind.Listener) {\n mergeNextContextsInOps(op.handlerOps);\n }\n }\n mergeNextContextsInOps(unit.update);\n }\n}\n\nfunction mergeNextContextsInOps(ops: ir.OpList<ir.UpdateOp>): void {\n for (const op of ops) {\n // Look for a candidate operation to maybe merge.\n if (op.kind !== ir.OpKind.Statement || !(op.statement instanceof o.ExpressionStatement) ||\n !(op.statement.expr instanceof ir.NextContextExpr)) {\n continue;\n }\n\n const mergeSteps = op.statement.expr.steps;\n\n // Try to merge this `ir.NextContextExpr`.\n let tryToMerge = true;\n for (let candidate = op.next!; candidate.kind !== ir.OpKind.ListEnd && tryToMerge;\n candidate = candidate.next!) {\n ir.visitExpressionsInOp(candidate, (expr, flags) => {\n if (!ir.isIrExpression(expr)) {\n return expr;\n }\n\n if (!tryToMerge) {\n // Either we've already merged, or failed to merge.\n return;\n }\n\n if (flags & ir.VisitorContextFlag.InChildOperation) {\n // We cannot merge into child operations.\n return;\n }\n\n switch (expr.kind) {\n case ir.ExpressionKind.NextContext:\n // Merge the previous `ir.NextContextExpr` into this one.\n expr.steps += mergeSteps;\n ir.OpList.remove(op as ir.UpdateOp);\n tryToMerge = false;\n break;\n case ir.ExpressionKind.GetCurrentView:\n case ir.ExpressionKind.Reference:\n // Can't merge past a dependency on the context.\n tryToMerge = false;\n break;\n }\n return;\n });\n }\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as ir from '../../ir';\nimport type {CompilationJob} from '../compilation';\n\nconst CONTAINER_TAG = 'ng-container';\n\n/**\n * Replace an `Element` or `ElementStart` whose tag is `ng-container` with a specific op.\n */\nexport function generateNgContainerOps(job: CompilationJob): void {\n for (const unit of job.units) {\n const updatedElementXrefs = new Set<ir.XrefId>();\n for (const op of unit.create) {\n if (op.kind === ir.OpKind.ElementStart && op.tag === CONTAINER_TAG) {\n // Transmute the `ElementStart` instruction to `ContainerStart`.\n (op as ir.Op<ir.CreateOp>).kind = ir.OpKind.ContainerStart;\n updatedElementXrefs.add(op.xref);\n }\n\n if (op.kind === ir.OpKind.ElementEnd && updatedElementXrefs.has(op.xref)) {\n // This `ElementEnd` is associated with an `ElementStart` we already transmuted.\n (op as ir.Op<ir.CreateOp>).kind = ir.OpKind.ContainerEnd;\n }\n }\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as ir from '../../ir';\nimport type {CompilationJob} from '../compilation';\n\n/**\n * Looks up an element in the given map by xref ID.\n */\nfunction lookupElement(\n elements: Map<ir.XrefId, ir.ElementOrContainerOps>, xref: ir.XrefId): ir.ElementOrContainerOps {\n const el = elements.get(xref);\n if (el === undefined) {\n throw new Error('All attributes should have an element-like target.');\n }\n return el;\n}\n\n/**\n * When a container is marked with `ngNonBindable`, the non-bindable characteristic also applies to\n * all descendants of that container. Therefore, we must emit `disableBindings` and `enableBindings`\n * instructions for every such container.\n */\nexport function disableBindings(job: CompilationJob): void {\n const elements = new Map<ir.XrefId, ir.ElementOrContainerOps>();\n for (const view of job.units) {\n for (const op of view.create) {\n if (!ir.isElementOrContainerOp(op)) {\n continue;\n }\n elements.set(op.xref, op);\n }\n }\n\n for (const unit of job.units) {\n for (const op of unit.create) {\n if ((op.kind === ir.OpKind.ElementStart || op.kind === ir.OpKind.ContainerStart) &&\n op.nonBindable) {\n ir.OpList.insertAfter<ir.CreateOp>(ir.createDisableBindingsOp(op.xref), op);\n }\n if ((op.kind === ir.OpKind.ElementEnd || op.kind === ir.OpKind.ContainerEnd) &&\n lookupElement(elements, op.xref).nonBindable) {\n ir.OpList.insertBefore<ir.CreateOp>(ir.createEnableBindingsOp(op.xref), op);\n }\n }\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as o from '../../../../output/output_ast';\nimport * as ir from '../../ir';\nimport type {CompilationJob} from '../compilation';\n\n/**\n * Nullish coalescing expressions such as `a ?? b` have different semantics in Angular templates as\n * compared to JavaScript. In particular, they default to `null` instead of `undefined`. Therefore,\n * we replace them with ternary expressions, assigning temporaries as needed to avoid re-evaluating\n * the same sub-expression multiple times.\n */\nexport function generateNullishCoalesceExpressions(job: CompilationJob): void {\n for (const unit of job.units) {\n for (const op of unit.ops()) {\n ir.transformExpressionsInOp(op, expr => {\n if (!(expr instanceof o.BinaryOperatorExpr) ||\n expr.operator !== o.BinaryOperator.NullishCoalesce) {\n return expr;\n }\n\n const assignment = new ir.AssignTemporaryExpr(expr.lhs.clone(), job.allocateXrefId());\n const read = new ir.ReadTemporaryExpr(assignment.xref);\n\n // TODO: When not in compatibility mode for TemplateDefinitionBuilder, we can just emit\n // `t != null` instead of including an undefined check as well.\n return new o.ConditionalExpr(\n new o.BinaryOperatorExpr(\n o.BinaryOperator.And,\n new o.BinaryOperatorExpr(o.BinaryOperator.NotIdentical, assignment, o.NULL_EXPR),\n new o.BinaryOperatorExpr(\n o.BinaryOperator.NotIdentical, read, new o.LiteralExpr(undefined))),\n read.clone(),\n expr.rhs,\n );\n }, ir.VisitorContextFlag.None);\n }\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as ir from '../../ir';\nimport {CompilationJobKind, type CompilationJob} from '../compilation';\n\nfunction kindTest(kind: ir.OpKind): (op: ir.UpdateOp) => boolean {\n return (op: ir.UpdateOp) => op.kind === kind;\n}\n\nfunction kindWithInterpolationTest(\n kind: ir.OpKind.Attribute|ir.OpKind.Property|ir.OpKind.HostProperty,\n interpolation: boolean): (op: ir.UpdateOp) => boolean {\n return (op: ir.UpdateOp) => {\n return op.kind === kind && interpolation === op.expression instanceof ir.Interpolation;\n };\n}\n\ninterface Rule<T extends ir.CreateOp|ir.UpdateOp> {\n test: (op: T) => boolean;\n transform?: (ops: Array<T>) => Array<T>;\n}\n\n/**\n * Defines the groups based on `OpKind` that ops will be divided into, for the various create\n * op kinds. Ops will be collected into groups, then optionally transformed, before recombining\n * the groups in the order defined here.\n */\nconst CREATE_ORDERING: Array<Rule<ir.CreateOp>> = [\n {test: op => op.kind === ir.OpKind.Listener && op.hostListener && op.isAnimationListener},\n {test: op => op.kind === ir.OpKind.Listener && !(op.hostListener && op.isAnimationListener)},\n];\n\n/**\n * Defines the groups based on `OpKind` that ops will be divided into, for the various update\n * op kinds.\n */\nconst UPDATE_ORDERING: Array<Rule<ir.UpdateOp>> = [\n {test: kindTest(ir.OpKind.StyleMap), transform: keepLast},\n {test: kindTest(ir.OpKind.ClassMap), transform: keepLast},\n {test: kindTest(ir.OpKind.StyleProp)},\n {test: kindTest(ir.OpKind.ClassProp)},\n {test: kindWithInterpolationTest(ir.OpKind.Attribute, true)},\n {test: kindWithInterpolationTest(ir.OpKind.Property, true)},\n {test: kindWithInterpolationTest(ir.OpKind.Property, false)},\n {test: kindWithInterpolationTest(ir.OpKind.Attribute, false)},\n];\n\n/**\n * Host bindings have their own update ordering.\n */\nconst UPDATE_HOST_ORDERING: Array<Rule<ir.UpdateOp>> = [\n {test: kindWithInterpolationTest(ir.OpKind.HostProperty, true)},\n {test: kindWithInterpolationTest(ir.OpKind.HostProperty, false)},\n {test: kindTest(ir.OpKind.Attribute)},\n {test: kindTest(ir.OpKind.StyleMap), transform: keepLast},\n {test: kindTest(ir.OpKind.ClassMap), transform: keepLast},\n {test: kindTest(ir.OpKind.StyleProp)},\n {test: kindTest(ir.OpKind.ClassProp)},\n];\n\n/**\n * The set of all op kinds we handle in the reordering phase.\n */\nconst handledOpKinds = new Set([\n ir.OpKind.Listener, ir.OpKind.StyleMap, ir.OpKind.ClassMap, ir.OpKind.StyleProp,\n ir.OpKind.ClassProp, ir.OpKind.Property, ir.OpKind.HostProperty, ir.OpKind.Attribute\n]);\n\n/**\n * Many type of operations have ordering constraints that must be respected. For example, a\n * `ClassMap` instruction must be ordered after a `StyleMap` instruction, in order to have\n * predictable semantics that match TemplateDefinitionBuilder and don't break applications.\n */\nexport function orderOps(job: CompilationJob) {\n for (const unit of job.units) {\n // First, we pull out ops that need to be ordered. Then, when we encounter an op that shouldn't\n // be reordered, put the ones we've pulled so far back in the correct order. Finally, if we\n // still have ops pulled at the end, put them back in the correct order.\n\n // Create mode:\n orderWithin(unit.create, CREATE_ORDERING as Array<Rule<ir.CreateOp|ir.UpdateOp>>);\n\n\n // Update mode:\n const ordering =\n unit.job.kind === CompilationJobKind.Host ? UPDATE_HOST_ORDERING : UPDATE_ORDERING;\n orderWithin(unit.update, ordering as Array<Rule<ir.CreateOp|ir.UpdateOp>>);\n }\n}\n\n/**\n * Order all the ops within the specified group.\n */\nfunction orderWithin(\n opList: ir.OpList<ir.CreateOp|ir.UpdateOp>, ordering: Array<Rule<ir.CreateOp|ir.UpdateOp>>) {\n let opsToOrder: Array<ir.CreateOp|ir.UpdateOp> = [];\n // Only reorder ops that target the same xref; do not mix ops that target different xrefs.\n let firstTargetInGroup: ir.XrefId|null = null;\n for (const op of opList) {\n const currentTarget = ir.hasDependsOnSlotContextTrait(op) ? op.target : null;\n if (!handledOpKinds.has(op.kind) ||\n (currentTarget !== firstTargetInGroup &&\n (firstTargetInGroup !== null && currentTarget !== null))) {\n ir.OpList.insertBefore(reorder(opsToOrder, ordering), op);\n opsToOrder = [];\n firstTargetInGroup = null;\n }\n if (handledOpKinds.has(op.kind)) {\n opsToOrder.push(op);\n ir.OpList.remove(op);\n firstTargetInGroup = currentTarget ?? firstTargetInGroup;\n }\n }\n opList.push(reorder(opsToOrder, ordering));\n}\n\n/**\n * Reorders the given list of ops according to the ordering defined by `ORDERING`.\n */\nfunction reorder<T extends ir.CreateOp|ir.UpdateOp>(\n ops: Array<T>, ordering: Array<Rule<T>>): Array<T> {\n // Break the ops list into groups based on OpKind.\n const groups = Array.from(ordering, () => new Array<T>());\n for (const op of ops) {\n const groupIndex = ordering.findIndex(o => o.test(op));\n groups[groupIndex].push(op);\n }\n // Reassemble the groups into a single list, in the correct order.\n return groups.flatMap((group, i) => {\n const transform = ordering[i].transform;\n return transform ? transform(group) : group;\n });\n}\n\n/**\n * Keeps only the last op in a list of ops.\n */\nfunction keepLast<T>(ops: Array<T>) {\n return ops.slice(ops.length - 1);\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {SecurityContext} from '../../../../core';\nimport * as o from '../../../../output/output_ast';\nimport {parse as parseStyle} from '../../../../render3/view/style_parser';\nimport * as ir from '../../ir';\n\nimport type {CompilationJob} from '../compilation';\n\n/**\n * Parses extracted style and class attributes into separate ExtractedAttributeOps per style or\n * class property.\n */\nexport function parseExtractedStyles(job: CompilationJob) {\n const elements = new Map<ir.XrefId, ir.CreateOp>();\n\n for (const unit of job.units) {\n for (const op of unit.create) {\n if (ir.isElementOrContainerOp(op)) {\n elements.set(op.xref, op);\n }\n }\n }\n\n for (const unit of job.units) {\n for (const op of unit.create) {\n if (op.kind === ir.OpKind.ExtractedAttribute && op.bindingKind === ir.BindingKind.Attribute &&\n ir.isStringLiteral(op.expression!)) {\n const target = elements.get(op.target)!;\n\n if (target !== undefined && target.kind === ir.OpKind.Template &&\n target.templateKind === ir.TemplateKind.Structural) {\n // TemplateDefinitionBuilder will not apply class and style bindings to structural\n // directives; instead, it will leave them as attributes.\n // (It's not clear what that would mean, anyway -- classes and styles on a structural\n // element should probably be a parse error.)\n // TODO: We may be able to remove this once Template Pipeline is the default.\n continue;\n }\n\n if (op.name === 'style') {\n const parsedStyles = parseStyle(op.expression.value);\n for (let i = 0; i < parsedStyles.length - 1; i += 2) {\n ir.OpList.insertBefore<ir.CreateOp>(\n ir.createExtractedAttributeOp(\n op.target, ir.BindingKind.StyleProperty, null, parsedStyles[i],\n o.literal(parsedStyles[i + 1]), null, null, SecurityContext.STYLE),\n op);\n }\n ir.OpList.remove<ir.CreateOp>(op);\n } else if (op.name === 'class') {\n const parsedClasses = op.expression.value.trim().split(/\\s+/g);\n for (const parsedClass of parsedClasses) {\n ir.OpList.insertBefore<ir.CreateOp>(\n ir.createExtractedAttributeOp(\n op.target, ir.BindingKind.ClassName, null, parsedClass, null, null, null,\n SecurityContext.NONE),\n op);\n }\n ir.OpList.remove<ir.CreateOp>(op);\n }\n }\n }\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as ir from '../../ir';\nimport type {CompilationJob} from '../compilation';\nimport {createOpXrefMap} from '../util/elements';\n\n/**\n * Attributes of `ng-content` named 'select' are specifically removed, because they control which\n * content matches as a property of the `projection`, and are not a plain attribute.\n */\nexport function removeContentSelectors(job: CompilationJob): void {\n for (const unit of job.units) {\n const elements = createOpXrefMap(unit);\n for (const op of unit.ops()) {\n switch (op.kind) {\n case ir.OpKind.Binding:\n const target = lookupInXrefMap(elements, op.target);\n if (isSelectAttribute(op.name) && target.kind === ir.OpKind.Projection) {\n ir.OpList.remove<ir.UpdateOp>(op);\n }\n break;\n }\n }\n }\n}\n\nfunction isSelectAttribute(name: string) {\n return name.toLowerCase() === 'select';\n}\n\n/**\n * Looks up an element in the given map by xref ID.\n */\nfunction lookupInXrefMap(map: Map<ir.XrefId, ir.ConsumesSlotOpTrait&ir.CreateOp>, xref: ir.XrefId):\n ir.ConsumesSlotOpTrait&ir.CreateOp {\n const el = map.get(xref);\n if (el === undefined) {\n throw new Error('All attributes should have an slottable target.');\n }\n return el;\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as ir from '../../ir';\nimport type {CompilationJob, CompilationUnit} from '../compilation';\n\n/**\n * This phase generates pipe creation instructions. We do this based on the pipe bindings found in\n * the update block, in the order we see them.\n *\n * When not in compatibility mode, we can simply group all these creation instructions together, to\n * maximize chaining opportunities.\n */\nexport function createPipes(job: CompilationJob): void {\n for (const unit of job.units) {\n processPipeBindingsInView(unit);\n }\n}\n\nfunction processPipeBindingsInView(unit: CompilationUnit): void {\n for (const updateOp of unit.update) {\n ir.visitExpressionsInOp(updateOp, (expr, flags) => {\n if (!ir.isIrExpression(expr)) {\n return;\n }\n\n if (expr.kind !== ir.ExpressionKind.PipeBinding) {\n return;\n }\n\n if (flags & ir.VisitorContextFlag.InChildOperation) {\n throw new Error(`AssertionError: pipe bindings should not appear in child expressions`);\n }\n\n if (unit.job.compatibility) {\n // TODO: We can delete this cast and check once compatibility mode is removed.\n const slotHandle = (updateOp as any).target;\n if (slotHandle == undefined) {\n throw new Error(`AssertionError: expected slot handle to be assigned for pipe creation`);\n }\n addPipeToCreationBlock(unit, (updateOp as any).target, expr);\n } else {\n // When not in compatibility mode, we just add the pipe to the end of the create block. This\n // is not only simpler and faster, but allows more chaining opportunities for other\n // instructions.\n unit.create.push(ir.createPipeOp(expr.target, expr.targetSlot, expr.name));\n }\n });\n }\n}\n\nfunction addPipeToCreationBlock(\n unit: CompilationUnit, afterTargetXref: ir.XrefId, binding: ir.PipeBindingExpr): void {\n // Find the appropriate point to insert the Pipe creation operation.\n // We're looking for `afterTargetXref` (and also want to insert after any other pipe operations\n // which might be beyond it).\n for (let op = unit.create.head.next!; op.kind !== ir.OpKind.ListEnd; op = op.next!) {\n if (!ir.hasConsumesSlotTrait<ir.CreateOp>(op)) {\n continue;\n }\n\n if (op.xref !== afterTargetXref) {\n continue;\n }\n\n // We've found a tentative insertion point; however, we also want to skip past any _other_ pipe\n // operations present.\n while (op.next!.kind === ir.OpKind.Pipe) {\n op = op.next!;\n }\n\n const pipe = ir.createPipeOp(binding.target, binding.targetSlot, binding.name) as ir.CreateOp;\n ir.OpList.insertBefore(pipe, op.next!);\n\n // This completes adding the pipe to the creation block.\n return;\n }\n\n // At this point, we've failed to add the pipe to the creation block.\n throw new Error(`AssertionError: unable to find insertion point for pipe ${binding.name}`);\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as o from '../../../../output/output_ast';\nimport * as ir from '../../ir';\n\nimport type {CompilationJob, ComponentCompilationJob} from '../compilation';\n\n/**\n * Pipes that accept more than 4 arguments are variadic, and are handled with a different runtime\n * instruction.\n */\nexport function createVariadicPipes(job: CompilationJob): void {\n for (const unit of job.units) {\n for (const op of unit.update) {\n ir.transformExpressionsInOp(op, expr => {\n if (!(expr instanceof ir.PipeBindingExpr)) {\n return expr;\n }\n\n // Pipes are variadic if they have more than 4 arguments.\n if (expr.args.length <= 4) {\n return expr;\n }\n\n return new ir.PipeBindingVariadicExpr(\n expr.target, expr.targetSlot, expr.name, o.literalArr(expr.args), expr.args.length);\n }, ir.VisitorContextFlag.None);\n }\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n\nimport * as i18n from '../../../../i18n/i18n_ast';\nimport * as ir from '../../ir';\nimport {ComponentCompilationJob, ViewCompilationUnit} from '../compilation';\n\n/**\n * Propagate i18n blocks down through child templates that act as placeholders in the root i18n\n * message. Specifically, perform an in-order traversal of all the views, and add i18nStart/i18nEnd\n * op pairs into descending views. Also, assign an increasing sub-template index to each\n * descending view.\n */\nexport function propagateI18nBlocks(job: ComponentCompilationJob): void {\n propagateI18nBlocksToTemplates(job.root, 0);\n}\n\n/**\n * Propagates i18n ops in the given view through to any child views recursively.\n */\nfunction propagateI18nBlocksToTemplates(\n unit: ViewCompilationUnit, subTemplateIndex: number): number {\n let i18nBlock: ir.I18nStartOp|null = null;\n for (const op of unit.create) {\n switch (op.kind) {\n case ir.OpKind.I18nStart:\n op.subTemplateIndex = subTemplateIndex === 0 ? null : subTemplateIndex;\n i18nBlock = op;\n break;\n case ir.OpKind.I18nEnd:\n // When we exit a root-level i18n block, reset the sub-template index counter.\n if (i18nBlock!.subTemplateIndex === null) {\n subTemplateIndex = 0;\n }\n i18nBlock = null;\n break;\n case ir.OpKind.Template:\n subTemplateIndex = propagateI18nBlocksForView(\n unit.job.views.get(op.xref)!, i18nBlock, op.i18nPlaceholder, subTemplateIndex);\n break;\n case ir.OpKind.RepeaterCreate:\n // Propagate i18n blocks to the @for template.\n const forView = unit.job.views.get(op.xref)!;\n subTemplateIndex = propagateI18nBlocksForView(\n unit.job.views.get(op.xref)!, i18nBlock, op.i18nPlaceholder, subTemplateIndex);\n // Then if there's an @empty template, propagate the i18n blocks for it as well.\n if (op.emptyView !== null) {\n subTemplateIndex = propagateI18nBlocksForView(\n unit.job.views.get(op.emptyView)!, i18nBlock, op.emptyI18nPlaceholder,\n subTemplateIndex);\n }\n break;\n }\n }\n return subTemplateIndex;\n}\n\n/**\n * Propagate i18n blocks for a view.\n */\nfunction propagateI18nBlocksForView(\n view: ViewCompilationUnit, i18nBlock: ir.I18nStartOp|null,\n i18nPlaceholder: i18n.TagPlaceholder|i18n.BlockPlaceholder|undefined,\n subTemplateIndex: number) {\n // We found an <ng-template> inside an i18n block; increment the sub-template counter and\n // wrap the template's view in a child i18n block.\n if (i18nPlaceholder !== undefined) {\n if (i18nBlock === null) {\n throw Error('Expected template with i18n placeholder to be in an i18n block.');\n }\n subTemplateIndex++;\n wrapTemplateWithI18n(view, i18nBlock);\n }\n\n // Continue traversing inside the template's view.\n return propagateI18nBlocksToTemplates(view, subTemplateIndex);\n}\n\n/**\n * Wraps a template view with i18n start and end ops.\n */\nfunction wrapTemplateWithI18n(unit: ViewCompilationUnit, parentI18n: ir.I18nStartOp) {\n // Only add i18n ops if they have not already been propagated to this template.\n if (unit.create.head.next?.kind !== ir.OpKind.I18nStart) {\n const id = unit.job.allocateXrefId();\n ir.OpList.insertAfter(\n // Nested ng-template i18n start/end ops should not recieve source spans.\n ir.createI18nStartOp(id, parentI18n.message, parentI18n.root, null), unit.create.head);\n ir.OpList.insertBefore(ir.createI18nEndOp(id, null), unit.create.tail);\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {GenericKeyFn, SharedConstantDefinition} from '../../../../constant_pool';\nimport * as o from '../../../../output/output_ast';\nimport * as ir from '../../ir';\n\nimport type {CompilationJob} from '../compilation';\n\nexport function extractPureFunctions(job: CompilationJob): void {\n for (const view of job.units) {\n for (const op of view.ops()) {\n ir.visitExpressionsInOp(op, expr => {\n if (!(expr instanceof ir.PureFunctionExpr) || expr.body === null) {\n return;\n }\n\n const constantDef = new PureFunctionConstant(expr.args.length);\n expr.fn = job.pool.getSharedConstant(constantDef, expr.body);\n expr.body = null;\n });\n }\n }\n}\n\nclass PureFunctionConstant extends GenericKeyFn implements SharedConstantDefinition {\n constructor(private numArgs: number) {\n super();\n }\n\n override keyOf(expr: o.Expression): string {\n if (expr instanceof ir.PureFunctionParameterExpr) {\n return `param(${expr.index})`;\n } else {\n return super.keyOf(expr);\n }\n }\n\n // TODO: Use the new pool method `getSharedFunctionReference`\n toSharedConstantDeclaration(declName: string, keyExpr: o.Expression): o.Statement {\n const fnParams: o.FnParam[] = [];\n for (let idx = 0; idx < this.numArgs; idx++) {\n fnParams.push(new o.FnParam('a' + idx));\n }\n\n // We will never visit `ir.PureFunctionParameterExpr`s that don't belong to us, because this\n // transform runs inside another visitor which will visit nested pure functions before this one.\n const returnExpr = ir.transformExpressionsInExpression(keyExpr, expr => {\n if (!(expr instanceof ir.PureFunctionParameterExpr)) {\n return expr;\n }\n\n return o.variable('a' + expr.index);\n }, ir.VisitorContextFlag.None);\n\n return new o.DeclareVarStmt(\n declName, new o.ArrowFunctionExpr(fnParams, returnExpr), undefined, o.StmtModifier.Final);\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as o from '../../../../output/output_ast';\nimport * as ir from '../../ir';\nimport type {CompilationJob} from '../compilation';\n\nexport function generatePureLiteralStructures(job: CompilationJob): void {\n for (const unit of job.units) {\n for (const op of unit.update) {\n ir.transformExpressionsInOp(op, (expr, flags) => {\n if (flags & ir.VisitorContextFlag.InChildOperation) {\n return expr;\n }\n\n if (expr instanceof o.LiteralArrayExpr) {\n return transformLiteralArray(expr);\n } else if (expr instanceof o.LiteralMapExpr) {\n return transformLiteralMap(expr);\n }\n\n return expr;\n }, ir.VisitorContextFlag.None);\n }\n }\n}\n\nfunction transformLiteralArray(expr: o.LiteralArrayExpr): o.Expression {\n const derivedEntries: o.Expression[] = [];\n const nonConstantArgs: o.Expression[] = [];\n for (const entry of expr.entries) {\n if (entry.isConstant()) {\n derivedEntries.push(entry);\n } else {\n const idx = nonConstantArgs.length;\n nonConstantArgs.push(entry);\n derivedEntries.push(new ir.PureFunctionParameterExpr(idx));\n }\n }\n return new ir.PureFunctionExpr(o.literalArr(derivedEntries), nonConstantArgs);\n}\n\nfunction transformLiteralMap(expr: o.LiteralMapExpr): o.Expression {\n let derivedEntries: o.LiteralMapEntry[] = [];\n const nonConstantArgs: o.Expression[] = [];\n for (const entry of expr.entries) {\n if (entry.value.isConstant()) {\n derivedEntries.push(entry);\n } else {\n const idx = nonConstantArgs.length;\n nonConstantArgs.push(entry.value);\n derivedEntries.push(new o.LiteralMapEntry(\n entry.key,\n new ir.PureFunctionParameterExpr(idx),\n entry.quoted,\n ));\n }\n }\n return new ir.PureFunctionExpr(o.literalMap(derivedEntries), nonConstantArgs);\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as o from '../../../output/output_ast';\nimport {ParseSourceSpan} from '../../../parse_util';\nimport {Identifiers} from '../../../render3/r3_identifiers';\nimport * as ir from '../ir';\n\n// This file contains helpers for generating calls to Ivy instructions. In particular, each\n// instruction type is represented as a function, which may select a specific instruction variant\n// depending on the exact arguments.\n\nexport function element(\n slot: number, tag: string, constIndex: number|null, localRefIndex: number|null,\n sourceSpan: ParseSourceSpan): ir.CreateOp {\n return elementOrContainerBase(\n Identifiers.element, slot, tag, constIndex, localRefIndex, sourceSpan);\n}\n\nexport function elementStart(\n slot: number, tag: string, constIndex: number|null, localRefIndex: number|null,\n sourceSpan: ParseSourceSpan): ir.CreateOp {\n return elementOrContainerBase(\n Identifiers.elementStart, slot, tag, constIndex, localRefIndex, sourceSpan);\n}\n\nfunction elementOrContainerBase(\n instruction: o.ExternalReference, slot: number, tag: string|null, constIndex: number|null,\n localRefIndex: number|null, sourceSpan: ParseSourceSpan): ir.CreateOp {\n const args: o.Expression[] = [o.literal(slot)];\n if (tag !== null) {\n args.push(o.literal(tag));\n }\n if (localRefIndex !== null) {\n args.push(\n o.literal(constIndex), // might be null, but that's okay.\n o.literal(localRefIndex),\n );\n } else if (constIndex !== null) {\n args.push(o.literal(constIndex));\n }\n\n return call(instruction, args, sourceSpan);\n}\n\nexport function elementEnd(sourceSpan: ParseSourceSpan|null): ir.CreateOp {\n return call(Identifiers.elementEnd, [], sourceSpan);\n}\n\nexport function elementContainerStart(\n slot: number, constIndex: number|null, localRefIndex: number|null,\n sourceSpan: ParseSourceSpan): ir.CreateOp {\n return elementOrContainerBase(\n Identifiers.elementContainerStart, slot, /* tag */ null, constIndex, localRefIndex,\n sourceSpan);\n}\n\nexport function elementContainer(\n slot: number, constIndex: number|null, localRefIndex: number|null,\n sourceSpan: ParseSourceSpan): ir.CreateOp {\n return elementOrContainerBase(\n Identifiers.elementContainer, slot, /* tag */ null, constIndex, localRefIndex, sourceSpan);\n}\n\nexport function elementContainerEnd(): ir.CreateOp {\n return call(Identifiers.elementContainerEnd, [], null);\n}\n\nexport function template(\n slot: number, templateFnRef: o.Expression, decls: number, vars: number, tag: string|null,\n constIndex: number|null, localRefs: number|null, sourceSpan: ParseSourceSpan): ir.CreateOp {\n const args = [\n o.literal(slot),\n templateFnRef,\n o.literal(decls),\n o.literal(vars),\n o.literal(tag),\n o.literal(constIndex),\n ];\n if (localRefs !== null) {\n args.push(o.literal(localRefs));\n args.push(o.importExpr(Identifiers.templateRefExtractor));\n }\n while (args[args.length - 1].isEquivalent(o.NULL_EXPR)) {\n args.pop();\n }\n return call(Identifiers.templateCreate, args, sourceSpan);\n}\n\nexport function disableBindings(): ir.CreateOp {\n return call(Identifiers.disableBindings, [], null);\n}\n\nexport function enableBindings(): ir.CreateOp {\n return call(Identifiers.enableBindings, [], null);\n}\n\nexport function listener(\n name: string, handlerFn: o.Expression, eventTargetResolver: o.ExternalReference|null,\n syntheticHost: boolean, sourceSpan: ParseSourceSpan): ir.CreateOp {\n const args = [o.literal(name), handlerFn];\n if (eventTargetResolver !== null) {\n args.push(o.literal(false)); // `useCapture` flag, defaults to `false`\n args.push(o.importExpr(eventTargetResolver));\n }\n return call(\n syntheticHost ? Identifiers.syntheticHostListener : Identifiers.listener, args, sourceSpan);\n}\n\nexport function pipe(slot: number, name: string): ir.CreateOp {\n return call(\n Identifiers.pipe,\n [\n o.literal(slot),\n o.literal(name),\n ],\n null);\n}\n\nexport function namespaceHTML(): ir.CreateOp {\n return call(Identifiers.namespaceHTML, [], null);\n}\n\nexport function namespaceSVG(): ir.CreateOp {\n return call(Identifiers.namespaceSVG, [], null);\n}\n\nexport function namespaceMath(): ir.CreateOp {\n return call(Identifiers.namespaceMathML, [], null);\n}\n\nexport function advance(delta: number, sourceSpan: ParseSourceSpan): ir.UpdateOp {\n return call(Identifiers.advance, delta > 1 ? [o.literal(delta)] : [], sourceSpan);\n}\n\nexport function reference(slot: number): o.Expression {\n return o.importExpr(Identifiers.reference).callFn([\n o.literal(slot),\n ]);\n}\n\nexport function nextContext(steps: number): o.Expression {\n return o.importExpr(Identifiers.nextContext).callFn(steps === 1 ? [] : [o.literal(steps)]);\n}\n\n\nexport function getCurrentView(): o.Expression {\n return o.importExpr(Identifiers.getCurrentView).callFn([]);\n}\n\n\nexport function restoreView(savedView: o.Expression): o.Expression {\n return o.importExpr(Identifiers.restoreView).callFn([\n savedView,\n ]);\n}\n\n\nexport function resetView(returnValue: o.Expression): o.Expression {\n return o.importExpr(Identifiers.resetView).callFn([\n returnValue,\n ]);\n}\n\nexport function text(\n slot: number, initialValue: string, sourceSpan: ParseSourceSpan|null): ir.CreateOp {\n const args: o.Expression[] = [o.literal(slot, null)];\n if (initialValue !== '') {\n args.push(o.literal(initialValue));\n }\n return call(Identifiers.text, args, sourceSpan);\n}\n\nexport function defer(\n selfSlot: number, primarySlot: number, dependencyResolverFn: o.Expression|null,\n loadingSlot: number|null, placeholderSlot: number|null, errorSlot: number|null,\n loadingConfig: o.Expression|null, placeholderConfig: o.Expression|null,\n enableTimerScheduling: boolean, sourceSpan: ParseSourceSpan|null): ir.CreateOp {\n const args: Array<o.Expression> = [\n o.literal(selfSlot),\n o.literal(primarySlot),\n dependencyResolverFn ?? o.literal(null),\n o.literal(loadingSlot),\n o.literal(placeholderSlot),\n o.literal(errorSlot),\n loadingConfig ?? o.literal(null),\n placeholderConfig ?? o.literal(null),\n enableTimerScheduling ? o.importExpr(Identifiers.deferEnableTimerScheduling) : o.literal(null),\n ];\n\n let expr: o.Expression;\n while ((expr = args[args.length - 1]) !== null && expr instanceof o.LiteralExpr &&\n expr.value === null) {\n args.pop();\n }\n\n return call(Identifiers.defer, args, sourceSpan);\n}\n\nconst deferTriggerToR3TriggerInstructionsMap = new Map([\n [ir.DeferTriggerKind.Idle, [Identifiers.deferOnIdle, Identifiers.deferPrefetchOnIdle]],\n [\n ir.DeferTriggerKind.Immediate,\n [Identifiers.deferOnImmediate, Identifiers.deferPrefetchOnImmediate]\n ],\n [ir.DeferTriggerKind.Timer, [Identifiers.deferOnTimer, Identifiers.deferPrefetchOnTimer]],\n [ir.DeferTriggerKind.Hover, [Identifiers.deferOnHover, Identifiers.deferPrefetchOnHover]],\n [\n ir.DeferTriggerKind.Interaction,\n [Identifiers.deferOnInteraction, Identifiers.deferPrefetchOnInteraction]\n ],\n [\n ir.DeferTriggerKind.Viewport, [Identifiers.deferOnViewport, Identifiers.deferPrefetchOnViewport]\n ],\n]);\n\nexport function deferOn(\n trigger: ir.DeferTriggerKind, args: number[], prefetch: boolean,\n sourceSpan: ParseSourceSpan|null): ir.CreateOp {\n const instructions = deferTriggerToR3TriggerInstructionsMap.get(trigger);\n if (instructions === undefined) {\n throw new Error(`Unable to determine instruction for trigger ${trigger}`);\n }\n const instructionToCall = prefetch ? instructions[1] : instructions[0];\n return call(instructionToCall, args.map(a => o.literal(a)), sourceSpan);\n}\n\nexport function projectionDef(def: o.Expression|null): ir.CreateOp {\n return call(Identifiers.projectionDef, def ? [def] : [], null);\n}\n\nexport function projection(\n slot: number, projectionSlotIndex: number, attributes: o.LiteralArrayExpr|null,\n sourceSpan: ParseSourceSpan): ir.CreateOp {\n const args: o.Expression[] = [o.literal(slot)];\n if (projectionSlotIndex !== 0 || attributes !== null) {\n args.push(o.literal(projectionSlotIndex));\n if (attributes !== null) {\n args.push(attributes);\n }\n }\n return call(Identifiers.projection, args, sourceSpan);\n}\n\nexport function i18nStart(\n slot: number, constIndex: number, subTemplateIndex: number,\n sourceSpan: ParseSourceSpan|null): ir.CreateOp {\n const args = [o.literal(slot), o.literal(constIndex)];\n if (subTemplateIndex !== null) {\n args.push(o.literal(subTemplateIndex));\n }\n return call(Identifiers.i18nStart, args, sourceSpan);\n}\n\nexport function repeaterCreate(\n slot: number, viewFnName: string, decls: number, vars: number, tag: string|null,\n constIndex: number|null, trackByFn: o.Expression, trackByUsesComponentInstance: boolean,\n emptyViewFnName: string|null, emptyDecls: number|null, emptyVars: number|null,\n emptyTag: string|null, emptyConstIndex: number|null,\n sourceSpan: ParseSourceSpan|null): ir.CreateOp {\n const args = [\n o.literal(slot),\n o.variable(viewFnName),\n o.literal(decls),\n o.literal(vars),\n o.literal(tag),\n o.literal(constIndex),\n trackByFn,\n ];\n if (trackByUsesComponentInstance || emptyViewFnName !== null) {\n args.push(o.literal(trackByUsesComponentInstance));\n if (emptyViewFnName !== null) {\n args.push(o.variable(emptyViewFnName), o.literal(emptyDecls), o.literal(emptyVars));\n if (emptyTag !== null || emptyConstIndex !== null) {\n args.push(o.literal(emptyTag));\n }\n if (emptyConstIndex !== null) {\n args.push(o.literal(emptyConstIndex));\n }\n }\n }\n return call(Identifiers.repeaterCreate, args, sourceSpan);\n}\n\nexport function repeater(collection: o.Expression, sourceSpan: ParseSourceSpan|null): ir.UpdateOp {\n return call(Identifiers.repeater, [collection], sourceSpan);\n}\n\nexport function deferWhen(\n prefetch: boolean, expr: o.Expression, sourceSpan: ParseSourceSpan|null): ir.UpdateOp {\n return call(prefetch ? Identifiers.deferPrefetchWhen : Identifiers.deferWhen, [expr], sourceSpan);\n}\n\nexport function i18n(\n slot: number, constIndex: number, subTemplateIndex: number,\n sourceSpan: ParseSourceSpan|null): ir.CreateOp {\n const args = [o.literal(slot), o.literal(constIndex)];\n if (subTemplateIndex) {\n args.push(o.literal(subTemplateIndex));\n }\n return call(Identifiers.i18n, args, sourceSpan);\n}\n\nexport function i18nEnd(endSourceSpan: ParseSourceSpan|null): ir.CreateOp {\n return call(Identifiers.i18nEnd, [], endSourceSpan);\n}\n\nexport function i18nAttributes(slot: number, i18nAttributesConfig: number): ir.CreateOp {\n const args = [o.literal(slot), o.literal(i18nAttributesConfig)];\n return call(Identifiers.i18nAttributes, args, null);\n}\n\nexport function property(\n name: string, expression: o.Expression, sanitizer: o.Expression|null,\n sourceSpan: ParseSourceSpan): ir.UpdateOp {\n const args = [o.literal(name), expression];\n if (sanitizer !== null) {\n args.push(sanitizer);\n }\n return call(Identifiers.property, args, sourceSpan);\n}\n\nexport function attribute(\n name: string, expression: o.Expression, sanitizer: o.Expression|null,\n namespace: string|null): ir.UpdateOp {\n const args = [o.literal(name), expression];\n if (sanitizer !== null || namespace !== null) {\n args.push(sanitizer ?? o.literal(null));\n }\n if (namespace !== null) {\n args.push(o.literal(namespace));\n }\n return call(Identifiers.attribute, args, null);\n}\n\nexport function styleProp(\n name: string, expression: o.Expression, unit: string|null,\n sourceSpan: ParseSourceSpan): ir.UpdateOp {\n const args = [o.literal(name), expression];\n if (unit !== null) {\n args.push(o.literal(unit));\n }\n return call(Identifiers.styleProp, args, sourceSpan);\n}\n\nexport function classProp(\n name: string, expression: o.Expression, sourceSpan: ParseSourceSpan): ir.UpdateOp {\n return call(Identifiers.classProp, [o.literal(name), expression], sourceSpan);\n}\n\nexport function styleMap(expression: o.Expression, sourceSpan: ParseSourceSpan): ir.UpdateOp {\n return call(Identifiers.styleMap, [expression], sourceSpan);\n}\n\nexport function classMap(expression: o.Expression, sourceSpan: ParseSourceSpan): ir.UpdateOp {\n return call(Identifiers.classMap, [expression], sourceSpan);\n}\n\nconst PIPE_BINDINGS: o.ExternalReference[] = [\n Identifiers.pipeBind1,\n Identifiers.pipeBind2,\n Identifiers.pipeBind3,\n Identifiers.pipeBind4,\n];\n\nexport function pipeBind(slot: number, varOffset: number, args: o.Expression[]): o.Expression {\n if (args.length < 1 || args.length > PIPE_BINDINGS.length) {\n throw new Error(`pipeBind() argument count out of bounds`);\n }\n\n const instruction = PIPE_BINDINGS[args.length - 1];\n return o.importExpr(instruction).callFn([\n o.literal(slot),\n o.literal(varOffset),\n ...args,\n ]);\n}\n\nexport function pipeBindV(slot: number, varOffset: number, args: o.Expression): o.Expression {\n return o.importExpr(Identifiers.pipeBindV).callFn([\n o.literal(slot),\n o.literal(varOffset),\n args,\n ]);\n}\n\nexport function textInterpolate(\n strings: string[], expressions: o.Expression[], sourceSpan: ParseSourceSpan): ir.UpdateOp {\n if (strings.length < 1 || expressions.length !== strings.length - 1) {\n throw new Error(\n `AssertionError: expected specific shape of args for strings/expressions in interpolation`);\n }\n const interpolationArgs: o.Expression[] = [];\n\n if (expressions.length === 1 && strings[0] === '' && strings[1] === '') {\n interpolationArgs.push(expressions[0]);\n } else {\n let idx: number;\n for (idx = 0; idx < expressions.length; idx++) {\n interpolationArgs.push(o.literal(strings[idx]), expressions[idx]);\n }\n // idx points at the last string.\n interpolationArgs.push(o.literal(strings[idx]));\n }\n\n return callVariadicInstruction(TEXT_INTERPOLATE_CONFIG, [], interpolationArgs, [], sourceSpan);\n}\n\nexport function i18nExp(expr: o.Expression, sourceSpan: ParseSourceSpan|null): ir.UpdateOp {\n return call(Identifiers.i18nExp, [expr], sourceSpan);\n}\n\nexport function i18nApply(slot: number, sourceSpan: ParseSourceSpan|null): ir.UpdateOp {\n return call(Identifiers.i18nApply, [o.literal(slot)], sourceSpan);\n}\n\nexport function propertyInterpolate(\n name: string, strings: string[], expressions: o.Expression[], sanitizer: o.Expression|null,\n sourceSpan: ParseSourceSpan): ir.UpdateOp {\n const interpolationArgs = collateInterpolationArgs(strings, expressions);\n const extraArgs = [];\n if (sanitizer !== null) {\n extraArgs.push(sanitizer);\n }\n\n return callVariadicInstruction(\n PROPERTY_INTERPOLATE_CONFIG, [o.literal(name)], interpolationArgs, extraArgs, sourceSpan);\n}\n\nexport function attributeInterpolate(\n name: string, strings: string[], expressions: o.Expression[], sanitizer: o.Expression|null,\n sourceSpan: ParseSourceSpan): ir.UpdateOp {\n const interpolationArgs = collateInterpolationArgs(strings, expressions);\n const extraArgs = [];\n if (sanitizer !== null) {\n extraArgs.push(sanitizer);\n }\n\n return callVariadicInstruction(\n ATTRIBUTE_INTERPOLATE_CONFIG, [o.literal(name)], interpolationArgs, extraArgs, sourceSpan);\n}\n\nexport function stylePropInterpolate(\n name: string, strings: string[], expressions: o.Expression[], unit: string|null,\n sourceSpan: ParseSourceSpan): ir.UpdateOp {\n const interpolationArgs = collateInterpolationArgs(strings, expressions);\n const extraArgs: o.Expression[] = [];\n if (unit !== null) {\n extraArgs.push(o.literal(unit));\n }\n\n return callVariadicInstruction(\n STYLE_PROP_INTERPOLATE_CONFIG, [o.literal(name)], interpolationArgs, extraArgs, sourceSpan);\n}\n\nexport function styleMapInterpolate(\n strings: string[], expressions: o.Expression[], sourceSpan: ParseSourceSpan): ir.UpdateOp {\n const interpolationArgs = collateInterpolationArgs(strings, expressions);\n\n return callVariadicInstruction(\n STYLE_MAP_INTERPOLATE_CONFIG, [], interpolationArgs, [], sourceSpan);\n}\n\nexport function classMapInterpolate(\n strings: string[], expressions: o.Expression[], sourceSpan: ParseSourceSpan): ir.UpdateOp {\n const interpolationArgs = collateInterpolationArgs(strings, expressions);\n\n return callVariadicInstruction(\n CLASS_MAP_INTERPOLATE_CONFIG, [], interpolationArgs, [], sourceSpan);\n}\n\nexport function hostProperty(\n name: string, expression: o.Expression, sanitizer: o.Expression|null,\n sourceSpan: ParseSourceSpan|null): ir.UpdateOp {\n const args = [o.literal(name), expression];\n if (sanitizer !== null) {\n args.push(sanitizer);\n }\n return call(Identifiers.hostProperty, args, sourceSpan);\n}\n\nexport function syntheticHostProperty(\n name: string, expression: o.Expression, sourceSpan: ParseSourceSpan|null): ir.UpdateOp {\n return call(Identifiers.syntheticHostProperty, [o.literal(name), expression], sourceSpan);\n}\n\nexport function pureFunction(\n varOffset: number, fn: o.Expression, args: o.Expression[]): o.Expression {\n return callVariadicInstructionExpr(\n PURE_FUNCTION_CONFIG,\n [\n o.literal(varOffset),\n fn,\n ],\n args,\n [],\n null,\n );\n}\n\n/**\n * Collates the string an expression arguments for an interpolation instruction.\n */\nfunction collateInterpolationArgs(strings: string[], expressions: o.Expression[]): o.Expression[] {\n if (strings.length < 1 || expressions.length !== strings.length - 1) {\n throw new Error(\n `AssertionError: expected specific shape of args for strings/expressions in interpolation`);\n }\n const interpolationArgs: o.Expression[] = [];\n\n if (expressions.length === 1 && strings[0] === '' && strings[1] === '') {\n interpolationArgs.push(expressions[0]);\n } else {\n let idx: number;\n for (idx = 0; idx < expressions.length; idx++) {\n interpolationArgs.push(o.literal(strings[idx]), expressions[idx]);\n }\n // idx points at the last string.\n interpolationArgs.push(o.literal(strings[idx]));\n }\n\n return interpolationArgs;\n}\n\nfunction call<OpT extends ir.CreateOp|ir.UpdateOp>(\n instruction: o.ExternalReference, args: o.Expression[], sourceSpan: ParseSourceSpan|null): OpT {\n const expr = o.importExpr(instruction).callFn(args, sourceSpan);\n return ir.createStatementOp(new o.ExpressionStatement(expr, sourceSpan)) as OpT;\n}\n\nexport function conditional(\n slot: number, condition: o.Expression, contextValue: o.Expression|null,\n sourceSpan: ParseSourceSpan|null): ir.UpdateOp {\n const args = [o.literal(slot), condition];\n if (contextValue !== null) {\n args.push(contextValue);\n }\n return call(Identifiers.conditional, args, sourceSpan);\n}\n\n/**\n * Describes a specific flavor of instruction used to represent variadic instructions, which\n * have some number of variants for specific argument counts.\n */\ninterface VariadicInstructionConfig {\n constant: o.ExternalReference[];\n variable: o.ExternalReference|null;\n mapping: (argCount: number) => number;\n}\n\n/**\n * `InterpolationConfig` for the `textInterpolate` instruction.\n */\nconst TEXT_INTERPOLATE_CONFIG: VariadicInstructionConfig = {\n constant: [\n Identifiers.textInterpolate,\n Identifiers.textInterpolate1,\n Identifiers.textInterpolate2,\n Identifiers.textInterpolate3,\n Identifiers.textInterpolate4,\n Identifiers.textInterpolate5,\n Identifiers.textInterpolate6,\n Identifiers.textInterpolate7,\n Identifiers.textInterpolate8,\n ],\n variable: Identifiers.textInterpolateV,\n mapping: n => {\n if (n % 2 === 0) {\n throw new Error(`Expected odd number of arguments`);\n }\n return (n - 1) / 2;\n },\n};\n\n\n/**\n * `InterpolationConfig` for the `propertyInterpolate` instruction.\n */\nconst PROPERTY_INTERPOLATE_CONFIG: VariadicInstructionConfig = {\n constant: [\n Identifiers.propertyInterpolate,\n Identifiers.propertyInterpolate1,\n Identifiers.propertyInterpolate2,\n Identifiers.propertyInterpolate3,\n Identifiers.propertyInterpolate4,\n Identifiers.propertyInterpolate5,\n Identifiers.propertyInterpolate6,\n Identifiers.propertyInterpolate7,\n Identifiers.propertyInterpolate8,\n ],\n variable: Identifiers.propertyInterpolateV,\n mapping: n => {\n if (n % 2 === 0) {\n throw new Error(`Expected odd number of arguments`);\n }\n return (n - 1) / 2;\n },\n};\n\n/**\n * `InterpolationConfig` for the `stylePropInterpolate` instruction.\n */\nconst STYLE_PROP_INTERPOLATE_CONFIG: VariadicInstructionConfig = {\n constant: [\n Identifiers.styleProp,\n Identifiers.stylePropInterpolate1,\n Identifiers.stylePropInterpolate2,\n Identifiers.stylePropInterpolate3,\n Identifiers.stylePropInterpolate4,\n Identifiers.stylePropInterpolate5,\n Identifiers.stylePropInterpolate6,\n Identifiers.stylePropInterpolate7,\n Identifiers.stylePropInterpolate8,\n ],\n variable: Identifiers.stylePropInterpolateV,\n mapping: n => {\n if (n % 2 === 0) {\n throw new Error(`Expected odd number of arguments`);\n }\n return (n - 1) / 2;\n },\n};\n\n/**\n * `InterpolationConfig` for the `attributeInterpolate` instruction.\n */\nconst ATTRIBUTE_INTERPOLATE_CONFIG: VariadicInstructionConfig = {\n constant: [\n Identifiers.attribute,\n Identifiers.attributeInterpolate1,\n Identifiers.attributeInterpolate2,\n Identifiers.attributeInterpolate3,\n Identifiers.attributeInterpolate4,\n Identifiers.attributeInterpolate5,\n Identifiers.attributeInterpolate6,\n Identifiers.attributeInterpolate7,\n Identifiers.attributeInterpolate8,\n ],\n variable: Identifiers.attributeInterpolateV,\n mapping: n => {\n if (n % 2 === 0) {\n throw new Error(`Expected odd number of arguments`);\n }\n return (n - 1) / 2;\n },\n};\n\n/**\n * `InterpolationConfig` for the `styleMapInterpolate` instruction.\n */\nconst STYLE_MAP_INTERPOLATE_CONFIG: VariadicInstructionConfig = {\n constant: [\n Identifiers.styleMap,\n Identifiers.styleMapInterpolate1,\n Identifiers.styleMapInterpolate2,\n Identifiers.styleMapInterpolate3,\n Identifiers.styleMapInterpolate4,\n Identifiers.styleMapInterpolate5,\n Identifiers.styleMapInterpolate6,\n Identifiers.styleMapInterpolate7,\n Identifiers.styleMapInterpolate8,\n ],\n variable: Identifiers.styleMapInterpolateV,\n mapping: n => {\n if (n % 2 === 0) {\n throw new Error(`Expected odd number of arguments`);\n }\n return (n - 1) / 2;\n },\n};\n\n/**\n * `InterpolationConfig` for the `classMapInterpolate` instruction.\n */\nconst CLASS_MAP_INTERPOLATE_CONFIG: VariadicInstructionConfig = {\n constant: [\n Identifiers.classMap,\n Identifiers.classMapInterpolate1,\n Identifiers.classMapInterpolate2,\n Identifiers.classMapInterpolate3,\n Identifiers.classMapInterpolate4,\n Identifiers.classMapInterpolate5,\n Identifiers.classMapInterpolate6,\n Identifiers.classMapInterpolate7,\n Identifiers.classMapInterpolate8,\n ],\n variable: Identifiers.classMapInterpolateV,\n mapping: n => {\n if (n % 2 === 0) {\n throw new Error(`Expected odd number of arguments`);\n }\n return (n - 1) / 2;\n },\n};\n\nconst PURE_FUNCTION_CONFIG: VariadicInstructionConfig = {\n constant: [\n Identifiers.pureFunction0,\n Identifiers.pureFunction1,\n Identifiers.pureFunction2,\n Identifiers.pureFunction3,\n Identifiers.pureFunction4,\n Identifiers.pureFunction5,\n Identifiers.pureFunction6,\n Identifiers.pureFunction7,\n Identifiers.pureFunction8,\n ],\n variable: Identifiers.pureFunctionV,\n mapping: n => n,\n};\n\nfunction callVariadicInstructionExpr(\n config: VariadicInstructionConfig, baseArgs: o.Expression[], interpolationArgs: o.Expression[],\n extraArgs: o.Expression[], sourceSpan: ParseSourceSpan|null): o.Expression {\n const n = config.mapping(interpolationArgs.length);\n if (n < config.constant.length) {\n // Constant calling pattern.\n return o.importExpr(config.constant[n])\n .callFn([...baseArgs, ...interpolationArgs, ...extraArgs], sourceSpan);\n } else if (config.variable !== null) {\n // Variable calling pattern.\n return o.importExpr(config.variable)\n .callFn([...baseArgs, o.literalArr(interpolationArgs), ...extraArgs], sourceSpan);\n } else {\n throw new Error(`AssertionError: unable to call variadic function`);\n }\n}\n\nfunction callVariadicInstruction(\n config: VariadicInstructionConfig, baseArgs: o.Expression[], interpolationArgs: o.Expression[],\n extraArgs: o.Expression[], sourceSpan: ParseSourceSpan|null): ir.UpdateOp {\n return ir.createStatementOp(\n callVariadicInstructionExpr(config, baseArgs, interpolationArgs, extraArgs, sourceSpan)\n .toStmt());\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as o from '../../../../output/output_ast';\nimport {Identifiers} from '../../../../render3/r3_identifiers';\nimport * as ir from '../../ir';\nimport {ViewCompilationUnit, type CompilationJob, type CompilationUnit} from '../compilation';\nimport * as ng from '../instruction';\n\n/**\n * Map of target resolvers for event listeners.\n */\nconst GLOBAL_TARGET_RESOLVERS = new Map<string, o.ExternalReference>([\n ['window', Identifiers.resolveWindow],\n ['document', Identifiers.resolveDocument],\n ['body', Identifiers.resolveBody],\n]);\n\n/**\n * Compiles semantic operations across all views and generates output `o.Statement`s with actual\n * runtime calls in their place.\n *\n * Reification replaces semantic operations with selected Ivy instructions and other generated code\n * structures. After reification, the create/update operation lists of all views should only contain\n * `ir.StatementOp`s (which wrap generated `o.Statement`s).\n */\nexport function reify(job: CompilationJob): void {\n for (const unit of job.units) {\n reifyCreateOperations(unit, unit.create);\n reifyUpdateOperations(unit, unit.update);\n }\n}\n\n/**\n * This function can be used a sanity check -- it walks every expression in the const pool, and\n * every expression reachable from an op, and makes sure that there are no IR expressions\n * left. This is nice to use for debugging mysterious failures where an IR expression cannot be\n * output from the output AST code.\n */\nfunction ensureNoIrForDebug(job: CompilationJob) {\n for (const stmt of job.pool.statements) {\n ir.transformExpressionsInStatement(stmt, expr => {\n if (ir.isIrExpression(expr)) {\n throw new Error(\n `AssertionError: IR expression found during reify: ${ir.ExpressionKind[expr.kind]}`);\n }\n return expr;\n }, ir.VisitorContextFlag.None);\n }\n for (const unit of job.units) {\n for (const op of unit.ops()) {\n ir.visitExpressionsInOp(op, expr => {\n if (ir.isIrExpression(expr)) {\n throw new Error(\n `AssertionError: IR expression found during reify: ${ir.ExpressionKind[expr.kind]}`);\n }\n });\n }\n }\n}\n\nfunction reifyCreateOperations(unit: CompilationUnit, ops: ir.OpList<ir.CreateOp>): void {\n for (const op of ops) {\n ir.transformExpressionsInOp(op, reifyIrExpression, ir.VisitorContextFlag.None);\n\n switch (op.kind) {\n case ir.OpKind.Text:\n ir.OpList.replace(op, ng.text(op.handle.slot!, op.initialValue, op.sourceSpan));\n break;\n case ir.OpKind.ElementStart:\n ir.OpList.replace(\n op,\n ng.elementStart(\n op.handle.slot!, op.tag!, op.attributes as number | null,\n op.localRefs as number | null, op.startSourceSpan));\n break;\n case ir.OpKind.Element:\n ir.OpList.replace(\n op,\n ng.element(\n op.handle.slot!, op.tag!, op.attributes as number | null,\n op.localRefs as number | null, op.wholeSourceSpan));\n break;\n case ir.OpKind.ElementEnd:\n ir.OpList.replace(op, ng.elementEnd(op.sourceSpan));\n break;\n case ir.OpKind.ContainerStart:\n ir.OpList.replace(\n op,\n ng.elementContainerStart(\n op.handle.slot!, op.attributes as number | null, op.localRefs as number | null,\n op.startSourceSpan));\n break;\n case ir.OpKind.Container:\n ir.OpList.replace(\n op,\n ng.elementContainer(\n op.handle.slot!, op.attributes as number | null, op.localRefs as number | null,\n op.wholeSourceSpan));\n break;\n case ir.OpKind.ContainerEnd:\n ir.OpList.replace(op, ng.elementContainerEnd());\n break;\n case ir.OpKind.I18nStart:\n ir.OpList.replace(\n op,\n ng.i18nStart(op.handle.slot!, op.messageIndex!, op.subTemplateIndex!, op.sourceSpan));\n break;\n case ir.OpKind.I18nEnd:\n ir.OpList.replace(op, ng.i18nEnd(op.sourceSpan));\n break;\n case ir.OpKind.I18n:\n ir.OpList.replace(\n op, ng.i18n(op.handle.slot!, op.messageIndex!, op.subTemplateIndex!, op.sourceSpan));\n break;\n case ir.OpKind.I18nAttributes:\n if (op.i18nAttributesConfig === null) {\n throw new Error(`AssertionError: i18nAttributesConfig was not set`);\n }\n ir.OpList.replace(op, ng.i18nAttributes(op.handle.slot!, op.i18nAttributesConfig));\n break;\n case ir.OpKind.Template:\n if (!(unit instanceof ViewCompilationUnit)) {\n throw new Error(`AssertionError: must be compiling a component`);\n }\n if (Array.isArray(op.localRefs)) {\n throw new Error(\n `AssertionError: local refs array should have been extracted into a constant`);\n }\n const childView = unit.job.views.get(op.xref)!;\n ir.OpList.replace(\n op,\n ng.template(\n op.handle.slot!, o.variable(childView.fnName!), childView.decls!, childView.vars!,\n op.tag, op.attributes, op.localRefs, op.startSourceSpan),\n );\n break;\n case ir.OpKind.DisableBindings:\n ir.OpList.replace(op, ng.disableBindings());\n break;\n case ir.OpKind.EnableBindings:\n ir.OpList.replace(op, ng.enableBindings());\n break;\n case ir.OpKind.Pipe:\n ir.OpList.replace(op, ng.pipe(op.handle.slot!, op.name));\n break;\n case ir.OpKind.Listener:\n const listenerFn =\n reifyListenerHandler(unit, op.handlerFnName!, op.handlerOps, op.consumesDollarEvent);\n const eventTargetResolver =\n op.eventTarget ? GLOBAL_TARGET_RESOLVERS.get(op.eventTarget) : null;\n if (eventTargetResolver === undefined) {\n throw new Error(`Unexpected global target '${op.eventTarget}' defined for '${\n op.name}' event. Supported list of global targets: window,document,body.`);\n }\n ir.OpList.replace(\n op,\n ng.listener(\n op.name, listenerFn, eventTargetResolver, op.hostListener && op.isAnimationListener,\n op.sourceSpan));\n break;\n case ir.OpKind.Variable:\n if (op.variable.name === null) {\n throw new Error(`AssertionError: unnamed variable ${op.xref}`);\n }\n ir.OpList.replace<ir.CreateOp>(\n op,\n ir.createStatementOp(new o.DeclareVarStmt(\n op.variable.name, op.initializer, undefined, o.StmtModifier.Final)));\n break;\n case ir.OpKind.Namespace:\n switch (op.active) {\n case ir.Namespace.HTML:\n ir.OpList.replace<ir.CreateOp>(op, ng.namespaceHTML());\n break;\n case ir.Namespace.SVG:\n ir.OpList.replace<ir.CreateOp>(op, ng.namespaceSVG());\n break;\n case ir.Namespace.Math:\n ir.OpList.replace<ir.CreateOp>(op, ng.namespaceMath());\n break;\n }\n break;\n case ir.OpKind.Defer:\n const timerScheduling =\n !!op.loadingMinimumTime || !!op.loadingAfterTime || !!op.placeholderMinimumTime;\n ir.OpList.replace(\n op,\n ng.defer(\n op.handle.slot!, op.mainSlot.slot!, op.resolverFn, op.loadingSlot?.slot ?? null,\n op.placeholderSlot?.slot! ?? null, op.errorSlot?.slot ?? null, op.loadingConfig,\n op.placeholderConfig, timerScheduling, op.sourceSpan));\n break;\n case ir.OpKind.DeferOn:\n let args: number[] = [];\n switch (op.trigger.kind) {\n case ir.DeferTriggerKind.Idle:\n case ir.DeferTriggerKind.Immediate:\n break;\n case ir.DeferTriggerKind.Timer:\n args = [op.trigger.delay];\n break;\n case ir.DeferTriggerKind.Interaction:\n case ir.DeferTriggerKind.Hover:\n case ir.DeferTriggerKind.Viewport:\n if (op.trigger.targetSlot?.slot == null || op.trigger.targetSlotViewSteps === null) {\n throw new Error(`Slot or view steps not set in trigger reification for trigger kind ${\n op.trigger.kind}`);\n }\n args = [op.trigger.targetSlot.slot];\n if (op.trigger.targetSlotViewSteps !== 0) {\n args.push(op.trigger.targetSlotViewSteps);\n }\n break;\n default:\n throw new Error(`AssertionError: Unsupported reification of defer trigger kind ${\n (op.trigger as any).kind}`);\n }\n ir.OpList.replace(op, ng.deferOn(op.trigger.kind, args, op.prefetch, op.sourceSpan));\n break;\n case ir.OpKind.ProjectionDef:\n ir.OpList.replace<ir.CreateOp>(op, ng.projectionDef(op.def));\n break;\n case ir.OpKind.Projection:\n if (op.handle.slot === null) {\n throw new Error('No slot was assigned for project instruction');\n }\n ir.OpList.replace<ir.CreateOp>(\n op,\n ng.projection(op.handle.slot!, op.projectionSlotIndex, op.attributes, op.sourceSpan));\n break;\n case ir.OpKind.RepeaterCreate:\n if (op.handle.slot === null) {\n throw new Error('No slot was assigned for repeater instruction');\n }\n if (!(unit instanceof ViewCompilationUnit)) {\n throw new Error(`AssertionError: must be compiling a component`);\n }\n const repeaterView = unit.job.views.get(op.xref)!;\n if (repeaterView.fnName === null) {\n throw new Error(`AssertionError: expected repeater primary view to have been named`);\n }\n\n let emptyViewFnName: string|null = null;\n let emptyDecls: number|null = null;\n let emptyVars: number|null = null;\n if (op.emptyView !== null) {\n const emptyView = unit.job.views.get(op.emptyView);\n if (emptyView === undefined) {\n throw new Error(\n 'AssertionError: repeater had empty view xref, but empty view was not found');\n }\n if (emptyView.fnName === null || emptyView.decls === null || emptyView.vars === null) {\n throw new Error(\n `AssertionError: expected repeater empty view to have been named and counted`);\n }\n emptyViewFnName = emptyView.fnName;\n emptyDecls = emptyView.decls;\n emptyVars = emptyView.vars;\n }\n\n ir.OpList.replace(\n op,\n ng.repeaterCreate(\n op.handle.slot, repeaterView.fnName, op.decls!, op.vars!, op.tag, op.attributes,\n op.trackByFn!, op.usesComponentInstance, emptyViewFnName, emptyDecls, emptyVars,\n op.emptyTag, op.emptyAttributes, op.wholeSourceSpan));\n break;\n case ir.OpKind.Statement:\n // Pass statement operations directly through.\n break;\n default:\n throw new Error(\n `AssertionError: Unsupported reification of create op ${ir.OpKind[op.kind]}`);\n }\n }\n}\n\nfunction reifyUpdateOperations(_unit: CompilationUnit, ops: ir.OpList<ir.UpdateOp>): void {\n for (const op of ops) {\n ir.transformExpressionsInOp(op, reifyIrExpression, ir.VisitorContextFlag.None);\n\n switch (op.kind) {\n case ir.OpKind.Advance:\n ir.OpList.replace(op, ng.advance(op.delta, op.sourceSpan));\n break;\n case ir.OpKind.Property:\n if (op.expression instanceof ir.Interpolation) {\n ir.OpList.replace(\n op,\n ng.propertyInterpolate(\n op.name, op.expression.strings, op.expression.expressions, op.sanitizer,\n op.sourceSpan));\n } else {\n ir.OpList.replace(op, ng.property(op.name, op.expression, op.sanitizer, op.sourceSpan));\n }\n break;\n case ir.OpKind.StyleProp:\n if (op.expression instanceof ir.Interpolation) {\n ir.OpList.replace(\n op,\n ng.stylePropInterpolate(\n op.name, op.expression.strings, op.expression.expressions, op.unit,\n op.sourceSpan));\n } else {\n ir.OpList.replace(op, ng.styleProp(op.name, op.expression, op.unit, op.sourceSpan));\n }\n break;\n case ir.OpKind.ClassProp:\n ir.OpList.replace(op, ng.classProp(op.name, op.expression, op.sourceSpan));\n break;\n case ir.OpKind.StyleMap:\n if (op.expression instanceof ir.Interpolation) {\n ir.OpList.replace(\n op,\n ng.styleMapInterpolate(\n op.expression.strings, op.expression.expressions, op.sourceSpan));\n } else {\n ir.OpList.replace(op, ng.styleMap(op.expression, op.sourceSpan));\n }\n break;\n case ir.OpKind.ClassMap:\n if (op.expression instanceof ir.Interpolation) {\n ir.OpList.replace(\n op,\n ng.classMapInterpolate(\n op.expression.strings, op.expression.expressions, op.sourceSpan));\n } else {\n ir.OpList.replace(op, ng.classMap(op.expression, op.sourceSpan));\n }\n break;\n case ir.OpKind.I18nExpression:\n ir.OpList.replace(op, ng.i18nExp(op.expression, op.sourceSpan));\n break;\n case ir.OpKind.I18nApply:\n ir.OpList.replace(op, ng.i18nApply(op.handle.slot!, op.sourceSpan));\n break;\n case ir.OpKind.InterpolateText:\n ir.OpList.replace(\n op,\n ng.textInterpolate(\n op.interpolation.strings, op.interpolation.expressions, op.sourceSpan));\n break;\n case ir.OpKind.Attribute:\n if (op.expression instanceof ir.Interpolation) {\n ir.OpList.replace(\n op,\n ng.attributeInterpolate(\n op.name, op.expression.strings, op.expression.expressions, op.sanitizer,\n op.sourceSpan));\n } else {\n ir.OpList.replace(op, ng.attribute(op.name, op.expression, op.sanitizer, op.namespace));\n }\n break;\n case ir.OpKind.HostProperty:\n if (op.expression instanceof ir.Interpolation) {\n throw new Error('not yet handled');\n } else {\n if (op.isAnimationTrigger) {\n ir.OpList.replace(op, ng.syntheticHostProperty(op.name, op.expression, op.sourceSpan));\n } else {\n ir.OpList.replace(\n op, ng.hostProperty(op.name, op.expression, op.sanitizer, op.sourceSpan));\n }\n }\n break;\n case ir.OpKind.Variable:\n if (op.variable.name === null) {\n throw new Error(`AssertionError: unnamed variable ${op.xref}`);\n }\n ir.OpList.replace<ir.UpdateOp>(\n op,\n ir.createStatementOp(new o.DeclareVarStmt(\n op.variable.name, op.initializer, undefined, o.StmtModifier.Final)));\n break;\n case ir.OpKind.Conditional:\n if (op.processed === null) {\n throw new Error(`Conditional test was not set.`);\n }\n if (op.targetSlot.slot === null) {\n throw new Error(`Conditional slot was not set.`);\n }\n ir.OpList.replace(\n op, ng.conditional(op.targetSlot.slot, op.processed, op.contextValue, op.sourceSpan));\n break;\n case ir.OpKind.Repeater:\n ir.OpList.replace(op, ng.repeater(op.collection, op.sourceSpan));\n break;\n case ir.OpKind.DeferWhen:\n ir.OpList.replace(op, ng.deferWhen(op.prefetch, op.expr, op.sourceSpan));\n break;\n case ir.OpKind.Statement:\n // Pass statement operations directly through.\n break;\n default:\n throw new Error(\n `AssertionError: Unsupported reification of update op ${ir.OpKind[op.kind]}`);\n }\n }\n}\n\nfunction reifyIrExpression(expr: o.Expression): o.Expression {\n if (!ir.isIrExpression(expr)) {\n return expr;\n }\n\n switch (expr.kind) {\n case ir.ExpressionKind.NextContext:\n return ng.nextContext(expr.steps);\n case ir.ExpressionKind.Reference:\n return ng.reference(expr.targetSlot.slot! + 1 + expr.offset);\n case ir.ExpressionKind.LexicalRead:\n throw new Error(`AssertionError: unresolved LexicalRead of ${expr.name}`);\n case ir.ExpressionKind.RestoreView:\n if (typeof expr.view === 'number') {\n throw new Error(`AssertionError: unresolved RestoreView`);\n }\n return ng.restoreView(expr.view);\n case ir.ExpressionKind.ResetView:\n return ng.resetView(expr.expr);\n case ir.ExpressionKind.GetCurrentView:\n return ng.getCurrentView();\n case ir.ExpressionKind.ReadVariable:\n if (expr.name === null) {\n throw new Error(`Read of unnamed variable ${expr.xref}`);\n }\n return o.variable(expr.name);\n case ir.ExpressionKind.ReadTemporaryExpr:\n if (expr.name === null) {\n throw new Error(`Read of unnamed temporary ${expr.xref}`);\n }\n return o.variable(expr.name);\n case ir.ExpressionKind.AssignTemporaryExpr:\n if (expr.name === null) {\n throw new Error(`Assign of unnamed temporary ${expr.xref}`);\n }\n return o.variable(expr.name).set(expr.expr);\n case ir.ExpressionKind.PureFunctionExpr:\n if (expr.fn === null) {\n throw new Error(`AssertionError: expected PureFunctions to have been extracted`);\n }\n return ng.pureFunction(expr.varOffset!, expr.fn, expr.args);\n case ir.ExpressionKind.PureFunctionParameterExpr:\n throw new Error(`AssertionError: expected PureFunctionParameterExpr to have been extracted`);\n case ir.ExpressionKind.PipeBinding:\n return ng.pipeBind(expr.targetSlot.slot!, expr.varOffset!, expr.args);\n case ir.ExpressionKind.PipeBindingVariadic:\n return ng.pipeBindV(expr.targetSlot.slot!, expr.varOffset!, expr.args);\n case ir.ExpressionKind.SlotLiteralExpr:\n return o.literal(expr.slot.slot!);\n default:\n throw new Error(`AssertionError: Unsupported reification of ir.Expression kind: ${\n ir.ExpressionKind[(expr as ir.Expression).kind]}`);\n }\n}\n\n/**\n * Listeners get turned into a function expression, which may or may not have the `$event`\n * parameter defined.\n */\nfunction reifyListenerHandler(\n unit: CompilationUnit, name: string, handlerOps: ir.OpList<ir.UpdateOp>,\n consumesDollarEvent: boolean): o.FunctionExpr {\n // First, reify all instruction calls within `handlerOps`.\n reifyUpdateOperations(unit, handlerOps);\n\n // Next, extract all the `o.Statement`s from the reified operations. We can expect that at this\n // point, all operations have been converted to statements.\n const handlerStmts: o.Statement[] = [];\n for (const op of handlerOps) {\n if (op.kind !== ir.OpKind.Statement) {\n throw new Error(\n `AssertionError: expected reified statements, but found op ${ir.OpKind[op.kind]}`);\n }\n handlerStmts.push(op.statement);\n }\n\n // If `$event` is referenced, we need to generate it as a parameter.\n const params: o.FnParam[] = [];\n if (consumesDollarEvent) {\n // We need the `$event` parameter.\n params.push(new o.FnParam('$event'));\n }\n\n return o.fn(params, handlerStmts, undefined, undefined, name);\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as ir from '../../ir';\nimport type {CompilationJob} from '../compilation';\n\n/**\n * Bidningd with no content can be safely deleted.\n */\nexport function removeEmptyBindings(job: CompilationJob): void {\n for (const unit of job.units) {\n for (const op of unit.update) {\n switch (op.kind) {\n case ir.OpKind.Attribute:\n case ir.OpKind.Binding:\n case ir.OpKind.ClassProp:\n case ir.OpKind.ClassMap:\n case ir.OpKind.Property:\n case ir.OpKind.StyleProp:\n case ir.OpKind.StyleMap:\n if (op.expression instanceof ir.EmptyExpr) {\n ir.OpList.remove<ir.UpdateOp>(op);\n }\n break;\n }\n }\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as ir from '../../ir';\nimport {CompilationJob} from '../compilation';\n\n/**\n * Remove the i18n context ops after they are no longer needed, and null out references to them to\n * be safe.\n */\nexport function removeI18nContexts(job: CompilationJob) {\n for (const unit of job.units) {\n for (const op of unit.create) {\n switch (op.kind) {\n case ir.OpKind.I18nContext:\n ir.OpList.remove<ir.CreateOp>(op);\n break;\n case ir.OpKind.I18nStart:\n op.context = null;\n break;\n }\n }\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as ir from '../../ir';\nimport {CompilationJob} from '../compilation';\n\n/**\n * i18nAttributes ops will be generated for each i18n attribute. However, not all i18n attribues\n * will contain dynamic content, and so some of these i18nAttributes ops may be unnecessary.\n */\nexport function removeUnusedI18nAttributesOps(job: CompilationJob) {\n for (const unit of job.units) {\n const ownersWithI18nExpressions = new Set<ir.XrefId>();\n\n for (const op of unit.update) {\n switch (op.kind) {\n case ir.OpKind.I18nExpression:\n ownersWithI18nExpressions.add(op.i18nOwner);\n }\n }\n\n for (const op of unit.create) {\n switch (op.kind) {\n case ir.OpKind.I18nAttributes:\n if (ownersWithI18nExpressions.has(op.xref)) {\n continue;\n }\n ir.OpList.remove<ir.CreateOp>(op);\n }\n }\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as o from '../../../../output/output_ast';\nimport * as ir from '../../ir';\nimport {CompilationJob, CompilationUnit, ComponentCompilationJob, ViewCompilationUnit} from '../compilation';\n\n/**\n * Resolves `ir.ContextExpr` expressions (which represent embedded view or component contexts) to\n * either the `ctx` parameter to component functions (for the current view context) or to variables\n * that store those contexts (for contexts accessed via the `nextContext()` instruction).\n */\nexport function resolveContexts(job: CompilationJob): void {\n for (const unit of job.units) {\n processLexicalScope(unit, unit.create);\n processLexicalScope(unit, unit.update);\n }\n}\n\nfunction processLexicalScope(view: CompilationUnit, ops: ir.OpList<ir.CreateOp|ir.UpdateOp>): void {\n // Track the expressions used to access all available contexts within the current view, by the\n // view `ir.XrefId`.\n const scope = new Map<ir.XrefId, o.Expression>();\n\n // The current view's context is accessible via the `ctx` parameter.\n scope.set(view.xref, o.variable('ctx'));\n\n for (const op of ops) {\n switch (op.kind) {\n case ir.OpKind.Variable:\n switch (op.variable.kind) {\n case ir.SemanticVariableKind.Context:\n scope.set(op.variable.view, new ir.ReadVariableExpr(op.xref));\n break;\n }\n break;\n case ir.OpKind.Listener:\n processLexicalScope(view, op.handlerOps);\n break;\n }\n }\n\n if (view === view.job.root) {\n // Prefer `ctx` of the root view to any variables which happen to contain the root context.\n scope.set(view.xref, o.variable('ctx'));\n }\n\n for (const op of ops) {\n ir.transformExpressionsInOp(op, expr => {\n if (expr instanceof ir.ContextExpr) {\n if (!scope.has(expr.view)) {\n throw new Error(\n `No context found for reference to view ${expr.view} from view ${view.xref}`);\n }\n return scope.get(expr.view)!;\n } else {\n return expr;\n }\n }, ir.VisitorContextFlag.None);\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as o from '../../../../output/output_ast';\nimport * as ir from '../../ir';\nimport type {CompilationJob, CompilationUnit} from '../compilation';\n\n/**\n * Any variable inside a listener with the name `$event` will be transformed into a output lexical\n * read immediately, and does not participate in any of the normal logic for handling variables.\n */\nexport function resolveDollarEvent(job: CompilationJob): void {\n for (const unit of job.units) {\n transformDollarEvent(unit, unit.create);\n transformDollarEvent(unit, unit.update);\n }\n}\n\nfunction transformDollarEvent(\n unit: CompilationUnit, ops: ir.OpList<ir.CreateOp>|ir.OpList<ir.UpdateOp>): void {\n for (const op of ops) {\n if (op.kind === ir.OpKind.Listener) {\n ir.transformExpressionsInOp(op, (expr) => {\n if (expr instanceof ir.LexicalReadExpr && expr.name === '$event') {\n op.consumesDollarEvent = true;\n return new o.ReadVarExpr(expr.name);\n }\n return expr;\n }, ir.VisitorContextFlag.InChildOperation);\n }\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as i18n from '../../../../i18n/i18n_ast';\nimport * as ir from '../../ir';\nimport {ComponentCompilationJob, ViewCompilationUnit} from '../compilation';\n\n/**\n * Resolve the element placeholders in i18n messages.\n */\nexport function resolveI18nElementPlaceholders(job: ComponentCompilationJob) {\n // Record all of the element and i18n context ops for use later.\n const i18nContexts = new Map<ir.XrefId, ir.I18nContextOp>();\n const elements = new Map<ir.XrefId, ir.ElementStartOp>();\n for (const unit of job.units) {\n for (const op of unit.create) {\n switch (op.kind) {\n case ir.OpKind.I18nContext:\n i18nContexts.set(op.xref, op);\n break;\n case ir.OpKind.ElementStart:\n elements.set(op.xref, op);\n break;\n }\n }\n }\n\n resolvePlaceholdersForView(job, job.root, i18nContexts, elements);\n}\n\n/**\n * Recursively resolves element and template tag placeholders in the given view.\n */\nfunction resolvePlaceholdersForView(\n job: ComponentCompilationJob, unit: ViewCompilationUnit,\n i18nContexts: Map<ir.XrefId, ir.I18nContextOp>, elements: Map<ir.XrefId, ir.ElementStartOp>,\n pendingStructuralDirective?: ir.TemplateOp) {\n // Track the current i18n op and corresponding i18n context op as we step through the creation\n // IR.\n let currentOps: {i18nBlock: ir.I18nStartOp, i18nContext: ir.I18nContextOp}|null = null;\n let pendingStructuralDirectiveCloses = new Map<ir.XrefId, ir.TemplateOp>();\n for (const op of unit.create) {\n switch (op.kind) {\n case ir.OpKind.I18nStart:\n if (!op.context) {\n throw Error('Could not find i18n context for i18n op');\n }\n currentOps = {i18nBlock: op, i18nContext: i18nContexts.get(op.context)!};\n break;\n case ir.OpKind.I18nEnd:\n currentOps = null;\n break;\n case ir.OpKind.ElementStart:\n // For elements with i18n placeholders, record its slot value in the params map under the\n // corresponding tag start placeholder.\n if (op.i18nPlaceholder !== undefined) {\n if (currentOps === null) {\n throw Error('i18n tag placeholder should only occur inside an i18n block');\n }\n recordElementStart(\n op, currentOps.i18nContext, currentOps.i18nBlock, pendingStructuralDirective);\n // If there is a separate close tag placeholder for this element, save the pending\n // structural directive so we can pass it to the closing tag as well.\n if (pendingStructuralDirective && op.i18nPlaceholder.closeName) {\n pendingStructuralDirectiveCloses.set(op.xref, pendingStructuralDirective);\n }\n // Clear out the pending structural directive now that its been accounted for.\n pendingStructuralDirective = undefined;\n }\n break;\n case ir.OpKind.ElementEnd:\n // For elements with i18n placeholders, record its slot value in the params map under the\n // corresponding tag close placeholder.\n const startOp = elements.get(op.xref);\n if (startOp && startOp.i18nPlaceholder !== undefined) {\n if (currentOps === null) {\n throw Error(\n 'AssertionError: i18n tag placeholder should only occur inside an i18n block');\n }\n recordElementClose(\n startOp, currentOps.i18nContext, currentOps.i18nBlock,\n pendingStructuralDirectiveCloses.get(op.xref));\n // Clear out the pending structural directive close that was accounted for.\n pendingStructuralDirectiveCloses.delete(op.xref);\n }\n break;\n case ir.OpKind.Projection:\n // For content projections with i18n placeholders, record its slot value in the params map\n // under the corresponding tag start and close placeholders.\n if (op.i18nPlaceholder !== undefined) {\n if (currentOps === null) {\n throw Error('i18n tag placeholder should only occur inside an i18n block');\n }\n recordElementStart(\n op, currentOps.i18nContext, currentOps.i18nBlock, pendingStructuralDirective);\n recordElementClose(\n op, currentOps.i18nContext, currentOps.i18nBlock, pendingStructuralDirective);\n // Clear out the pending structural directive now that its been accounted for.\n pendingStructuralDirective = undefined;\n }\n break;\n case ir.OpKind.Template:\n const view = job.views.get(op.xref)!;\n if (op.i18nPlaceholder === undefined) {\n // If there is no i18n placeholder, just recurse into the view in case it contains i18n\n // blocks.\n resolvePlaceholdersForView(job, view, i18nContexts, elements);\n } else {\n if (currentOps === null) {\n throw Error('i18n tag placeholder should only occur inside an i18n block');\n }\n if (op.templateKind === ir.TemplateKind.Structural) {\n // If this is a structural directive template, don't record anything yet. Instead pass\n // the current template as a pending structural directive to be recorded when we find\n // the element, content, or template it belongs to. This allows us to create combined\n // values that represent, e.g. the start of a template and element at the same time.\n resolvePlaceholdersForView(job, view, i18nContexts, elements, op);\n } else {\n // If this is some other kind of template, we can record its start, recurse into its\n // view, and then record its end.\n recordTemplateStart(\n job, view, op.handle.slot!, op.i18nPlaceholder, currentOps.i18nContext,\n currentOps.i18nBlock, pendingStructuralDirective);\n resolvePlaceholdersForView(job, view, i18nContexts, elements);\n recordTemplateClose(\n job, view, op.handle.slot!, op.i18nPlaceholder, currentOps!.i18nContext,\n currentOps!.i18nBlock, pendingStructuralDirective);\n pendingStructuralDirective = undefined;\n }\n }\n break;\n case ir.OpKind.RepeaterCreate:\n if (pendingStructuralDirective !== undefined) {\n throw Error('AssertionError: Unexpected structural directive associated with @for block');\n }\n // RepeaterCreate has 3 slots: the first is for the op itself, the second is for the @for\n // template and the (optional) third is for the @empty template.\n const forSlot = op.handle.slot! + 1;\n const forView = job.views.get(op.xref)!;\n // First record all of the placeholders for the @for template.\n if (op.i18nPlaceholder === undefined) {\n // If there is no i18n placeholder, just recurse into the view in case it contains i18n\n // blocks.\n resolvePlaceholdersForView(job, forView, i18nContexts, elements);\n } else {\n if (currentOps === null) {\n throw Error('i18n tag placeholder should only occur inside an i18n block');\n }\n recordTemplateStart(\n job, forView, forSlot, op.i18nPlaceholder, currentOps.i18nContext,\n currentOps.i18nBlock, pendingStructuralDirective);\n resolvePlaceholdersForView(job, forView, i18nContexts, elements);\n recordTemplateClose(\n job, forView, forSlot, op.i18nPlaceholder, currentOps!.i18nContext,\n currentOps!.i18nBlock, pendingStructuralDirective);\n pendingStructuralDirective = undefined;\n }\n // Then if there's an @empty template, add its placeholders as well.\n if (op.emptyView !== null) {\n // RepeaterCreate has 3 slots: the first is for the op itself, the second is for the @for\n // template and the (optional) third is for the @empty template.\n const emptySlot = op.handle.slot! + 2;\n const emptyView = job.views.get(op.emptyView!)!;\n if (op.emptyI18nPlaceholder === undefined) {\n // If there is no i18n placeholder, just recurse into the view in case it contains i18n\n // blocks.\n resolvePlaceholdersForView(job, emptyView, i18nContexts, elements);\n } else {\n if (currentOps === null) {\n throw Error('i18n tag placeholder should only occur inside an i18n block');\n }\n recordTemplateStart(\n job, emptyView, emptySlot, op.emptyI18nPlaceholder, currentOps.i18nContext,\n currentOps.i18nBlock, pendingStructuralDirective);\n resolvePlaceholdersForView(job, emptyView, i18nContexts, elements);\n recordTemplateClose(\n job, emptyView, emptySlot, op.emptyI18nPlaceholder, currentOps!.i18nContext,\n currentOps!.i18nBlock, pendingStructuralDirective);\n pendingStructuralDirective = undefined;\n }\n }\n break;\n }\n }\n}\n\n/**\n * Records an i18n param value for the start of an element.\n */\nfunction recordElementStart(\n op: ir.ElementStartOp|ir.ProjectionOp, i18nContext: ir.I18nContextOp, i18nBlock: ir.I18nStartOp,\n structuralDirective?: ir.TemplateOp) {\n const {startName, closeName} = op.i18nPlaceholder!;\n let flags = ir.I18nParamValueFlags.ElementTag | ir.I18nParamValueFlags.OpenTag;\n let value: ir.I18nParamValue['value'] = op.handle.slot!;\n // If the element is associated with a structural directive, start it as well.\n if (structuralDirective !== undefined) {\n flags |= ir.I18nParamValueFlags.TemplateTag;\n value = {element: value, template: structuralDirective.handle.slot!};\n }\n // For self-closing tags, there is no close tag placeholder. Instead, the start tag\n // placeholder accounts for the start and close of the element.\n if (!closeName) {\n flags |= ir.I18nParamValueFlags.CloseTag;\n }\n addParam(i18nContext.params, startName, value, i18nBlock.subTemplateIndex, flags);\n}\n\n/**\n * Records an i18n param value for the closing of an element.\n */\nfunction recordElementClose(\n op: ir.ElementStartOp|ir.ProjectionOp, i18nContext: ir.I18nContextOp, i18nBlock: ir.I18nStartOp,\n structuralDirective?: ir.TemplateOp) {\n const {closeName} = op.i18nPlaceholder!;\n // Self-closing tags don't have a closing tag placeholder, instead the element closing is\n // recorded via an additional flag on the element start value.\n if (closeName) {\n let flags = ir.I18nParamValueFlags.ElementTag | ir.I18nParamValueFlags.CloseTag;\n let value: ir.I18nParamValue['value'] = op.handle.slot!;\n // If the element is associated with a structural directive, close it as well.\n if (structuralDirective !== undefined) {\n flags |= ir.I18nParamValueFlags.TemplateTag;\n value = {element: value, template: structuralDirective.handle.slot!};\n }\n addParam(i18nContext.params, closeName, value, i18nBlock.subTemplateIndex, flags);\n }\n}\n\n/**\n * Records an i18n param value for the start of a template.\n */\nfunction recordTemplateStart(\n job: ComponentCompilationJob, view: ViewCompilationUnit, slot: number,\n i18nPlaceholder: i18n.TagPlaceholder|i18n.BlockPlaceholder, i18nContext: ir.I18nContextOp,\n i18nBlock: ir.I18nStartOp, structuralDirective?: ir.TemplateOp) {\n let {startName, closeName} = i18nPlaceholder;\n let flags = ir.I18nParamValueFlags.TemplateTag | ir.I18nParamValueFlags.OpenTag;\n // For self-closing tags, there is no close tag placeholder. Instead, the start tag\n // placeholder accounts for the start and close of the element.\n if (!closeName) {\n flags |= ir.I18nParamValueFlags.CloseTag;\n }\n // If the template is associated with a structural directive, record the structural directive's\n // start first. Since this template must be in the structural directive's view, we can just\n // directly use the current i18n block's sub-template index.\n if (structuralDirective !== undefined) {\n addParam(\n i18nContext.params, startName, structuralDirective.handle.slot!, i18nBlock.subTemplateIndex,\n flags);\n }\n // Record the start of the template. For the sub-template index, pass the index for the template's\n // view, rather than the current i18n block's index.\n addParam(\n i18nContext.params, startName, slot, getSubTemplateIndexForTemplateTag(job, i18nBlock, view),\n flags);\n}\n\n/**\n * Records an i18n param value for the closing of a template.\n */\nfunction recordTemplateClose(\n job: ComponentCompilationJob, view: ViewCompilationUnit, slot: number,\n i18nPlaceholder: i18n.TagPlaceholder|i18n.BlockPlaceholder, i18nContext: ir.I18nContextOp,\n i18nBlock: ir.I18nStartOp, structuralDirective?: ir.TemplateOp) {\n const {startName, closeName} = i18nPlaceholder;\n const flags = ir.I18nParamValueFlags.TemplateTag | ir.I18nParamValueFlags.CloseTag;\n // Self-closing tags don't have a closing tag placeholder, instead the template's closing is\n // recorded via an additional flag on the template start value.\n if (closeName) {\n // Record the closing of the template. For the sub-template index, pass the index for the\n // template's view, rather than the current i18n block's index.\n addParam(\n i18nContext.params, closeName, slot,\n getSubTemplateIndexForTemplateTag(job, i18nBlock, view), flags);\n // If the template is associated with a structural directive, record the structural directive's\n // closing after. Since this template must be in the structural directive's view, we can just\n // directly use the current i18n block's sub-template index.\n if (structuralDirective !== undefined) {\n addParam(\n i18nContext.params, closeName, structuralDirective.handle.slot!,\n i18nBlock.subTemplateIndex, flags);\n }\n }\n}\n\n/**\n * Get the subTemplateIndex for the given template op. For template ops, use the subTemplateIndex of\n * the child i18n block inside the template.\n */\nfunction getSubTemplateIndexForTemplateTag(\n job: ComponentCompilationJob, i18nOp: ir.I18nStartOp, view: ViewCompilationUnit): number|null {\n for (const childOp of view.create) {\n if (childOp.kind === ir.OpKind.I18nStart) {\n return childOp.subTemplateIndex;\n }\n }\n return i18nOp.subTemplateIndex;\n}\n\n/**\n * Add a param value to the given params map.\n */\nfunction addParam(\n params: Map<string, ir.I18nParamValue[]>, placeholder: string,\n value: string|number|{element: number, template: number}, subTemplateIndex: number|null,\n flags: ir.I18nParamValueFlags) {\n const values = params.get(placeholder) ?? [];\n values.push({value, subTemplateIndex, flags});\n params.set(placeholder, values);\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as ir from '../../ir';\nimport {ComponentCompilationJob} from '../compilation';\n\n/**\n * Resolve the i18n expression placeholders in i18n messages.\n */\nexport function resolveI18nExpressionPlaceholders(job: ComponentCompilationJob) {\n // Record all of the i18n context ops, and the sub-template index for each i18n op.\n const subTemplateIndicies = new Map<ir.XrefId, number|null>();\n const i18nContexts = new Map<ir.XrefId, ir.I18nContextOp>();\n const icuPlaceholders = new Map<ir.XrefId, ir.IcuPlaceholderOp>();\n for (const unit of job.units) {\n for (const op of unit.create) {\n switch (op.kind) {\n case ir.OpKind.I18nStart:\n subTemplateIndicies.set(op.xref, op.subTemplateIndex);\n break;\n case ir.OpKind.I18nContext:\n i18nContexts.set(op.xref, op);\n break;\n case ir.OpKind.IcuPlaceholder:\n icuPlaceholders.set(op.xref, op);\n break;\n }\n }\n }\n\n // Keep track of the next available expression index for each i18n message.\n const expressionIndices = new Map<ir.XrefId, number>();\n\n // Keep track of a reference index for each expression.\n // We use different references for normal i18n expressio and attribute i18n expressions. This is\n // because child i18n blocks in templates don't get their own context, since they're rolled into\n // the translated message of the parent, but they may target a different slot.\n const referenceIndex = (op: ir.I18nExpressionOp): ir.XrefId =>\n op.usage === ir.I18nExpressionFor.I18nText ? op.i18nOwner : op.context;\n\n for (const unit of job.units) {\n for (const op of unit.update) {\n if (op.kind === ir.OpKind.I18nExpression) {\n const index = expressionIndices.get(referenceIndex(op)) || 0;\n const subTemplateIndex = subTemplateIndicies.get(op.i18nOwner) ?? null;\n const value: ir.I18nParamValue = {\n value: index,\n subTemplateIndex: subTemplateIndex,\n flags: ir.I18nParamValueFlags.ExpressionIndex\n };\n updatePlaceholder(op, value, i18nContexts, icuPlaceholders);\n expressionIndices.set(referenceIndex(op), index + 1);\n }\n }\n }\n}\n\nfunction updatePlaceholder(\n op: ir.I18nExpressionOp, value: ir.I18nParamValue,\n i18nContexts: Map<ir.XrefId, ir.I18nContextOp>,\n icuPlaceholders: Map<ir.XrefId, ir.IcuPlaceholderOp>) {\n if (op.i18nPlaceholder !== null) {\n const i18nContext = i18nContexts.get(op.context)!;\n const params = op.resolutionTime === ir.I18nParamResolutionTime.Creation ?\n i18nContext.params :\n i18nContext.postprocessingParams;\n const values = params.get(op.i18nPlaceholder) || [];\n values.push(value);\n params.set(op.i18nPlaceholder, values);\n }\n if (op.icuPlaceholder !== null) {\n const icuPlaceholderOp = icuPlaceholders.get(op.icuPlaceholder);\n icuPlaceholderOp?.expressionPlaceholders.push(value);\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as o from '../../../../output/output_ast';\nimport * as ir from '../../ir';\nimport {CompilationJob, CompilationUnit, ViewCompilationUnit} from '../compilation';\n\n/**\n * Resolves lexical references in views (`ir.LexicalReadExpr`) to either a target variable or to\n * property reads on the top-level component context.\n *\n * Also matches `ir.RestoreViewExpr` expressions with the variables of their corresponding saved\n * views.\n */\nexport function resolveNames(job: CompilationJob): void {\n for (const unit of job.units) {\n processLexicalScope(unit, unit.create, null);\n processLexicalScope(unit, unit.update, null);\n }\n}\n\nfunction processLexicalScope(\n unit: CompilationUnit, ops: ir.OpList<ir.CreateOp>|ir.OpList<ir.UpdateOp>,\n savedView: SavedView|null): void {\n // Maps names defined in the lexical scope of this template to the `ir.XrefId`s of the variable\n // declarations which represent those values.\n //\n // Since variables are generated in each view for the entire lexical scope (including any\n // identifiers from parent templates) only local variables need be considered here.\n const scope = new Map<string, ir.XrefId>();\n\n // First, step through the operations list and:\n // 1) build up the `scope` mapping\n // 2) recurse into any listener functions\n for (const op of ops) {\n switch (op.kind) {\n case ir.OpKind.Variable:\n switch (op.variable.kind) {\n case ir.SemanticVariableKind.Identifier:\n case ir.SemanticVariableKind.Alias:\n // This variable represents some kind of identifier which can be used in the template.\n if (scope.has(op.variable.identifier)) {\n continue;\n }\n scope.set(op.variable.identifier, op.xref);\n break;\n case ir.SemanticVariableKind.SavedView:\n // This variable represents a snapshot of the current view context, and can be used to\n // restore that context within listener functions.\n savedView = {\n view: op.variable.view,\n variable: op.xref,\n };\n break;\n }\n break;\n case ir.OpKind.Listener:\n // Listener functions have separate variable declarations, so process them as a separate\n // lexical scope.\n processLexicalScope(unit, op.handlerOps, savedView);\n break;\n }\n }\n\n // Next, use the `scope` mapping to match `ir.LexicalReadExpr` with defined names in the lexical\n // scope. Also, look for `ir.RestoreViewExpr`s and match them with the snapshotted view context\n // variable.\n for (const op of ops) {\n if (op.kind == ir.OpKind.Listener) {\n // Listeners were already processed above with their own scopes.\n continue;\n }\n ir.transformExpressionsInOp(op, (expr, flags) => {\n if (expr instanceof ir.LexicalReadExpr) {\n // `expr` is a read of a name within the lexical scope of this view.\n // Either that name is defined within the current view, or it represents a property from the\n // main component context.\n if (scope.has(expr.name)) {\n // This was a defined variable in the current scope.\n return new ir.ReadVariableExpr(scope.get(expr.name)!);\n } else {\n // Reading from the component context.\n return new o.ReadPropExpr(new ir.ContextExpr(unit.job.root.xref), expr.name);\n }\n } else if (expr instanceof ir.RestoreViewExpr && typeof expr.view === 'number') {\n // `ir.RestoreViewExpr` happens in listener functions and restores a saved view from the\n // parent creation list. We expect to find that we captured the `savedView` previously, and\n // that it matches the expected view to be restored.\n if (savedView === null || savedView.view !== expr.view) {\n throw new Error(`AssertionError: no saved view ${expr.view} from view ${unit.xref}`);\n }\n expr.view = new ir.ReadVariableExpr(savedView.variable);\n return expr;\n } else {\n return expr;\n }\n }, ir.VisitorContextFlag.None);\n }\n\n for (const op of ops) {\n ir.visitExpressionsInOp(op, expr => {\n if (expr instanceof ir.LexicalReadExpr) {\n throw new Error(\n `AssertionError: no lexical reads should remain, but found read of ${expr.name}`);\n }\n });\n }\n}\n\n/**\n * Information about a `SavedView` variable.\n */\ninterface SavedView {\n /**\n * The view `ir.XrefId` which was saved into this variable.\n */\n view: ir.XrefId;\n\n /**\n * The `ir.XrefId` of the variable into which the view was saved.\n */\n variable: ir.XrefId;\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {SecurityContext} from '../../../../core';\nimport * as o from '../../../../output/output_ast';\nimport {Identifiers} from '../../../../render3/r3_identifiers';\nimport {isIframeSecuritySensitiveAttr} from '../../../../schema/dom_security_schema';\nimport * as ir from '../../ir';\nimport {CompilationJob, CompilationJobKind} from '../compilation';\nimport {createOpXrefMap} from '../util/elements';\n\n/**\n * Map of security contexts to their sanitizer function.\n */\nconst sanitizerFns = new Map<SecurityContext, o.ExternalReference>([\n [SecurityContext.HTML, Identifiers.sanitizeHtml],\n [SecurityContext.RESOURCE_URL, Identifiers.sanitizeResourceUrl],\n [SecurityContext.SCRIPT, Identifiers.sanitizeScript],\n [SecurityContext.STYLE, Identifiers.sanitizeStyle], [SecurityContext.URL, Identifiers.sanitizeUrl]\n]);\n\n/**\n * Map of security contexts to their trusted value function.\n */\nconst trustedValueFns = new Map<SecurityContext, o.ExternalReference>([\n [SecurityContext.HTML, Identifiers.trustConstantHtml],\n [SecurityContext.RESOURCE_URL, Identifiers.trustConstantResourceUrl],\n]);\n\n/**\n * Resolves sanitization functions for ops that need them.\n */\nexport function resolveSanitizers(job: CompilationJob): void {\n for (const unit of job.units) {\n const elements = createOpXrefMap(unit);\n\n // For normal element bindings we create trusted values for security sensitive constant\n // attributes. However, for host bindings we skip this step (this matches what\n // TemplateDefinitionBuilder does).\n // TODO: Is the TDB behavior correct here?\n if (job.kind !== CompilationJobKind.Host) {\n for (const op of unit.create) {\n if (op.kind === ir.OpKind.ExtractedAttribute) {\n const trustedValueFn =\n trustedValueFns.get(getOnlySecurityContext(op.securityContext)) ?? null;\n op.trustedValueFn = trustedValueFn !== null ? o.importExpr(trustedValueFn) : null;\n }\n }\n }\n\n for (const op of unit.update) {\n switch (op.kind) {\n case ir.OpKind.Property:\n case ir.OpKind.Attribute:\n case ir.OpKind.HostProperty:\n let sanitizerFn: o.ExternalReference|null = null;\n if (Array.isArray(op.securityContext) && op.securityContext.length === 2 &&\n op.securityContext.indexOf(SecurityContext.URL) > -1 &&\n op.securityContext.indexOf(SecurityContext.RESOURCE_URL) > -1) {\n // When the host element isn't known, some URL attributes (such as \"src\" and \"href\") may\n // be part of multiple different security contexts. In this case we use special\n // sanitization function and select the actual sanitizer at runtime based on a tag name\n // that is provided while invoking sanitization function.\n sanitizerFn = Identifiers.sanitizeUrlOrResourceUrl;\n } else {\n sanitizerFn = sanitizerFns.get(getOnlySecurityContext(op.securityContext)) ?? null;\n }\n op.sanitizer = sanitizerFn !== null ? o.importExpr(sanitizerFn) : null;\n\n // If there was no sanitization function found based on the security context of an\n // attribute/property, check whether this attribute/property is one of the\n // security-sensitive <iframe> attributes (and that the current element is actually an\n // <iframe>).\n if (op.sanitizer === null) {\n let isIframe = false;\n if (job.kind === CompilationJobKind.Host || op.kind === ir.OpKind.HostProperty) {\n // Note: for host bindings defined on a directive, we do not try to find all\n // possible places where it can be matched, so we can not determine whether\n // the host element is an <iframe>. In this case, we just assume it is and append a\n // validation function, which is invoked at runtime and would have access to the\n // underlying DOM element to check if it's an <iframe> and if so - run extra checks.\n isIframe = true;\n } else {\n // For a normal binding we can just check if the element its on is an iframe.\n const ownerOp = elements.get(op.target);\n if (ownerOp === undefined || !ir.isElementOrContainerOp(ownerOp)) {\n throw Error('Property should have an element-like owner');\n }\n isIframe = isIframeElement(ownerOp);\n }\n if (isIframe && isIframeSecuritySensitiveAttr(op.name)) {\n op.sanitizer = o.importExpr(Identifiers.validateIframeAttribute);\n }\n }\n break;\n }\n }\n }\n}\n\n/**\n * Checks whether the given op represents an iframe element.\n */\nfunction isIframeElement(op: ir.ElementOrContainerOps): boolean {\n return op.kind === ir.OpKind.ElementStart && op.tag?.toLowerCase() === 'iframe';\n}\n\n/**\n * Asserts that there is only a single security context and returns it.\n */\nfunction getOnlySecurityContext(securityContext: SecurityContext|\n SecurityContext[]): SecurityContext {\n if (Array.isArray(securityContext)) {\n if (securityContext.length > 1) {\n // TODO: What should we do here? TDB just took the first one, but this feels like something we\n // would want to know about and create a special case for like we did for Url/ResourceUrl. My\n // guess is that, outside of the Url/ResourceUrl case, this never actually happens. If there\n // do turn out to be other cases, throwing an error until we can address it feels safer.\n throw Error(`AssertionError: Ambiguous security context`);\n }\n return securityContext[0] || SecurityContext.NONE;\n }\n return securityContext;\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as o from '../../../../output/output_ast';\nimport * as ir from '../../ir';\nimport type {ComponentCompilationJob, ViewCompilationUnit} from '../compilation';\n\n/**\n * When inside of a listener, we may need access to one or more enclosing views. Therefore, each\n * view should save the current view, and each listener must have the ability to restore the\n * appropriate view. We eagerly generate all save view variables; they will be optimized away later.\n */\nexport function saveAndRestoreView(job: ComponentCompilationJob): void {\n for (const unit of job.units) {\n unit.create.prepend([\n ir.createVariableOp<ir.CreateOp>(\n unit.job.allocateXrefId(), {\n kind: ir.SemanticVariableKind.SavedView,\n name: null,\n view: unit.xref,\n },\n new ir.GetCurrentViewExpr(), ir.VariableFlags.None),\n ]);\n\n for (const op of unit.create) {\n if (op.kind !== ir.OpKind.Listener) {\n continue;\n }\n\n // Embedded views always need the save/restore view operation.\n let needsRestoreView = unit !== job.root;\n\n if (!needsRestoreView) {\n for (const handlerOp of op.handlerOps) {\n ir.visitExpressionsInOp(handlerOp, expr => {\n if (expr instanceof ir.ReferenceExpr) {\n // Listeners that reference() a local ref need the save/restore view operation.\n needsRestoreView = true;\n }\n });\n }\n }\n\n if (needsRestoreView) {\n addSaveRestoreViewOperationToListener(unit, op);\n }\n }\n }\n}\n\nfunction addSaveRestoreViewOperationToListener(unit: ViewCompilationUnit, op: ir.ListenerOp) {\n op.handlerOps.prepend([\n ir.createVariableOp<ir.UpdateOp>(\n unit.job.allocateXrefId(), {\n kind: ir.SemanticVariableKind.Context,\n name: null,\n view: unit.xref,\n },\n new ir.RestoreViewExpr(unit.xref), ir.VariableFlags.None),\n ]);\n\n // The \"restore view\" operation in listeners requires a call to `resetView` to reset the\n // context prior to returning from the listener operation. Find any `return` statements in\n // the listener body and wrap them in a call to reset the view.\n for (const handlerOp of op.handlerOps) {\n if (handlerOp.kind === ir.OpKind.Statement &&\n handlerOp.statement instanceof o.ReturnStatement) {\n handlerOp.statement.value = new ir.ResetViewExpr(handlerOp.statement.value);\n }\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as ir from '../../ir';\nimport type {ComponentCompilationJob} from '../compilation';\n\n/**\n * Assign data slots for all operations which implement `ConsumesSlotOpTrait`, and propagate the\n * assigned data slots of those operations to any expressions which reference them via\n * `UsesSlotIndexTrait`.\n *\n * This phase is also responsible for counting the number of slots used for each view (its `decls`)\n * and propagating that number into the `Template` operations which declare embedded views.\n */\nexport function allocateSlots(job: ComponentCompilationJob): void {\n // Map of all declarations in all views within the component which require an assigned slot index.\n // This map needs to be global (across all views within the component) since it's possible to\n // reference a slot from one view from an expression within another (e.g. local references work\n // this way).\n const slotMap = new Map<ir.XrefId, number>();\n\n // Process all views in the component and assign slot indexes.\n for (const unit of job.units) {\n // Slot indices start at 0 for each view (and are not unique between views).\n let slotCount = 0;\n\n for (const op of unit.create) {\n // Only consider declarations which consume data slots.\n if (!ir.hasConsumesSlotTrait(op)) {\n continue;\n }\n\n // Assign slots to this declaration starting at the current `slotCount`.\n op.handle.slot = slotCount;\n\n // And track its assigned slot in the `slotMap`.\n slotMap.set(op.xref, op.handle.slot);\n\n // Each declaration may use more than 1 slot, so increment `slotCount` to reserve the number\n // of slots required.\n slotCount += op.numSlotsUsed;\n }\n\n // Record the total number of slots used on the view itself. This will later be propagated into\n // `ir.TemplateOp`s which declare those views (except for the root view).\n unit.decls = slotCount;\n }\n\n // After slot assignment, `slotMap` now contains slot assignments for every declaration in the\n // whole template, across all views. Next, look for expressions which implement\n // `UsesSlotIndexExprTrait` and propagate the assigned slot indexes into them.\n // Additionally, this second scan allows us to find `ir.TemplateOp`s which declare views and\n // propagate the number of slots used for each view into the operation which declares it.\n for (const unit of job.units) {\n for (const op of unit.ops()) {\n if (op.kind === ir.OpKind.Template || op.kind === ir.OpKind.RepeaterCreate) {\n // Record the number of slots used by the view this `ir.TemplateOp` declares in the\n // operation itself, so it can be emitted later.\n const childView = job.views.get(op.xref)!;\n op.decls = childView.decls;\n\n // TODO: currently we handle the decls for the RepeaterCreate empty template in the reify\n // phase. We should handle that here instead.\n }\n }\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as ir from '../../ir';\nimport type {CompilationJob} from '../compilation';\n\n/**\n * Transforms special-case bindings with 'style' or 'class' in their names. Must run before the\n * main binding specialization pass.\n */\nexport function specializeStyleBindings(job: CompilationJob): void {\n for (const unit of job.units) {\n for (const op of unit.update) {\n if (op.kind !== ir.OpKind.Binding) {\n continue;\n }\n\n switch (op.bindingKind) {\n case ir.BindingKind.ClassName:\n if (op.expression instanceof ir.Interpolation) {\n throw new Error(`Unexpected interpolation in ClassName binding`);\n }\n ir.OpList.replace<ir.UpdateOp>(\n op, ir.createClassPropOp(op.target, op.name, op.expression, op.sourceSpan));\n break;\n case ir.BindingKind.StyleProperty:\n ir.OpList.replace<ir.UpdateOp>(\n op, ir.createStylePropOp(op.target, op.name, op.expression, op.unit, op.sourceSpan));\n break;\n case ir.BindingKind.Property:\n case ir.BindingKind.Template:\n if (op.name === 'style') {\n ir.OpList.replace<ir.UpdateOp>(\n op, ir.createStyleMapOp(op.target, op.expression, op.sourceSpan));\n } else if (op.name === 'class') {\n ir.OpList.replace<ir.UpdateOp>(\n op, ir.createClassMapOp(op.target, op.expression, op.sourceSpan));\n }\n break;\n }\n }\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as o from '../../../../output/output_ast';\nimport * as ir from '../../ir';\nimport type {CompilationJob, CompilationUnit} from '../compilation';\n\n/**\n * Find all assignments and usages of temporary variables, which are linked to each other with cross\n * references. Generate names for each cross-reference, and add a `DeclareVarStmt` to initialize\n * them at the beginning of the update block.\n *\n * TODO: Sometimes, it will be possible to reuse names across different subexpressions. For example,\n * in the double keyed read `a?.[f()]?.[f()]`, the two function calls have non-overlapping scopes.\n * Implement an algorithm for reuse.\n */\nexport function generateTemporaryVariables(job: CompilationJob): void {\n for (const unit of job.units) {\n unit.create.prepend(generateTemporaries(unit.create) as Array<ir.StatementOp<ir.CreateOp>>);\n unit.update.prepend(generateTemporaries(unit.update) as Array<ir.StatementOp<ir.UpdateOp>>);\n }\n}\n\nfunction generateTemporaries(ops: ir.OpList<ir.CreateOp|ir.UpdateOp>):\n Array<ir.StatementOp<ir.CreateOp|ir.UpdateOp>> {\n let opCount = 0;\n let generatedStatements: Array<ir.StatementOp<ir.UpdateOp>> = [];\n\n // For each op, search for any variables that are assigned or read. For each variable, generate a\n // name and produce a `DeclareVarStmt` to the beginning of the block.\n for (const op of ops) {\n // Identify the final time each temp var is read.\n const finalReads = new Map<ir.XrefId, ir.ReadTemporaryExpr>();\n ir.visitExpressionsInOp(op, (expr, flag) => {\n if (flag & ir.VisitorContextFlag.InChildOperation) {\n return;\n }\n if (expr instanceof ir.ReadTemporaryExpr) {\n finalReads.set(expr.xref, expr);\n }\n });\n\n // Name the temp vars, accounting for the fact that a name can be reused after it has been\n // read for the final time.\n let count = 0;\n const assigned = new Set<ir.XrefId>();\n const released = new Set<ir.XrefId>();\n const defs = new Map<ir.XrefId, string>();\n ir.visitExpressionsInOp(op, (expr, flag) => {\n if (flag & ir.VisitorContextFlag.InChildOperation) {\n return;\n }\n if (expr instanceof ir.AssignTemporaryExpr) {\n if (!assigned.has(expr.xref)) {\n assigned.add(expr.xref);\n // TODO: Exactly replicate the naming scheme used by `TemplateDefinitionBuilder`.\n // It seems to rely on an expression index instead of an op index.\n defs.set(expr.xref, `tmp_${opCount}_${count++}`);\n }\n assignName(defs, expr);\n } else if (expr instanceof ir.ReadTemporaryExpr) {\n if (finalReads.get(expr.xref) === expr) {\n released.add(expr.xref);\n count--;\n }\n assignName(defs, expr);\n }\n });\n\n // Add declarations for the temp vars.\n generatedStatements.push(\n ...Array.from(new Set(defs.values()))\n .map(name => ir.createStatementOp<ir.UpdateOp>(new o.DeclareVarStmt(name))));\n opCount++;\n\n if (op.kind === ir.OpKind.Listener) {\n op.handlerOps.prepend(generateTemporaries(op.handlerOps) as ir.UpdateOp[]);\n }\n }\n\n return generatedStatements;\n}\n\n/**\n * Assigns a name to the temporary variable in the given temporary variable expression.\n */\nfunction assignName(\n names: Map<ir.XrefId, string>, expr: ir.AssignTemporaryExpr|ir.ReadTemporaryExpr) {\n const name = names.get(expr.xref);\n if (name === undefined) {\n throw new Error(`Found xref with unassigned name: ${expr.xref}`);\n }\n expr.name = name;\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as o from '../../../../output/output_ast';\nimport * as ir from '../../ir';\n\nimport type {CompilationJob} from '../compilation';\n\n/**\n * Generate track functions that need to be extracted to the constant pool. This entails wrapping\n * them in an arrow (or traditional) function, replacing context reads with `this.`, and storing\n * them in the constant pool.\n *\n * Note that, if a track function was previously optimized, it will not need to be extracted, and\n * this phase is a no-op.\n */\nexport function generateTrackFns(job: CompilationJob): void {\n for (const unit of job.units) {\n for (const op of unit.create) {\n if (op.kind !== ir.OpKind.RepeaterCreate) {\n continue;\n }\n if (op.trackByFn !== null) {\n // The final track function was already set, probably because it was optimized.\n continue;\n }\n\n // Find all component context reads.\n let usesComponentContext = false;\n op.track = ir.transformExpressionsInExpression(op.track, expr => {\n if (expr instanceof ir.PipeBindingExpr || expr instanceof ir.PipeBindingVariadicExpr) {\n throw new Error(`Illegal State: Pipes are not allowed in this context`);\n }\n if (expr instanceof ir.TrackContextExpr) {\n usesComponentContext = true;\n return o.variable('this');\n }\n return expr;\n }, ir.VisitorContextFlag.None);\n\n let fn: o.FunctionExpr|o.ArrowFunctionExpr;\n\n const fnParams = [new o.FnParam('$index'), new o.FnParam('$item')];\n if (usesComponentContext) {\n fn = new o.FunctionExpr(fnParams, [new o.ReturnStatement(op.track)]);\n } else {\n fn = o.arrowFn(fnParams, op.track);\n }\n\n op.trackByFn = job.pool.getSharedFunctionReference(fn, '_forTrack');\n }\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as o from '../../../../output/output_ast';\nimport {Identifiers} from '../../../../render3/r3_identifiers';\nimport * as ir from '../../ir';\n\nimport type {CompilationJob} from '../compilation';\n\n/**\n * `track` functions in `for` repeaters can sometimes be \"optimized,\" i.e. transformed into inline\n * expressions, in lieu of an external function call. For example, tracking by `$index` can be be\n * optimized into an inline `trackByIndex` reference. This phase checks track expressions for\n * optimizable cases.\n */\nexport function optimizeTrackFns(job: CompilationJob): void {\n for (const unit of job.units) {\n for (const op of unit.create) {\n if (op.kind !== ir.OpKind.RepeaterCreate) {\n continue;\n }\n if (op.track instanceof o.ReadVarExpr && op.track.name === '$index') {\n // Top-level access of `$index` uses the built in `repeaterTrackByIndex`.\n op.trackByFn = o.importExpr(Identifiers.repeaterTrackByIndex);\n } else if (op.track instanceof o.ReadVarExpr && op.track.name === '$item') {\n // Top-level access of the item uses the built in `repeaterTrackByIdentity`.\n op.trackByFn = o.importExpr(Identifiers.repeaterTrackByIdentity);\n } else if (isTrackByFunctionCall(job.root.xref, op.track)) {\n // Top-level method calls in the form of `fn($index, item)` can be passed in directly.\n if (op.track.receiver.receiver.view === unit.xref) {\n // TODO: this may be wrong\n op.trackByFn = op.track.receiver;\n } else {\n // This is a plain method call, but not in the component's root view.\n // We need to get the component instance, and then call the method on it.\n op.trackByFn =\n o.importExpr(Identifiers.componentInstance).callFn([]).prop(op.track.receiver.name);\n // Because the context is not avaiable (without a special function), we don't want to\n // try to resolve it later. Let's get rid of it by overwriting the original track\n // expression (which won't be used anyway).\n op.track = op.trackByFn;\n }\n } else {\n // The track function could not be optimized.\n // Replace context reads with a special IR expression, since context reads in a track\n // function are emitted specially.\n op.track = ir.transformExpressionsInExpression(op.track, expr => {\n if (expr instanceof ir.ContextExpr) {\n op.usesComponentInstance = true;\n return new ir.TrackContextExpr(expr.view);\n }\n return expr;\n }, ir.VisitorContextFlag.None);\n }\n }\n }\n}\n\nfunction isTrackByFunctionCall(\n rootView: ir.XrefId, expr: o.Expression): expr is o.InvokeFunctionExpr&{\n receiver: o.ReadPropExpr &\n {\n receiver: ir.ContextExpr\n }\n} {\n if (!(expr instanceof o.InvokeFunctionExpr) || expr.args.length !== 2) {\n return false;\n }\n\n if (!(expr.receiver instanceof o.ReadPropExpr &&\n expr.receiver.receiver instanceof ir.ContextExpr) ||\n expr.receiver.receiver.view !== rootView) {\n return false;\n }\n\n const [arg0, arg1] = expr.args;\n if (!(arg0 instanceof o.ReadVarExpr) || arg0.name !== '$index') {\n return false;\n }\n if (!(arg1 instanceof o.ReadVarExpr) || arg1.name !== '$item') {\n return false;\n }\n return true;\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as o from '../../../../output/output_ast';\nimport * as ir from '../../ir';\n\nimport type {CompilationJob} from '../compilation';\n\n/**\n * Inside the `track` expression on a `for` repeater, the `$index` and `$item` variables are\n * ambiently available. In this phase, we find those variable usages, and replace them with the\n * appropriate output read.\n */\nexport function generateTrackVariables(job: CompilationJob): void {\n for (const unit of job.units) {\n for (const op of unit.create) {\n if (op.kind !== ir.OpKind.RepeaterCreate) {\n continue;\n }\n\n op.track = ir.transformExpressionsInExpression(op.track, expr => {\n if (expr instanceof ir.LexicalReadExpr) {\n if (expr.name === op.varNames.$index) {\n return o.variable('$index');\n } else if (expr.name === op.varNames.$implicit) {\n return o.variable('$item');\n }\n\n // TODO: handle prohibited context variables (emit as globals?)\n }\n return expr;\n }, ir.VisitorContextFlag.None);\n }\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as ir from '../../ir';\nimport {CompilationJob, ComponentCompilationJob} from '../compilation';\n\n/**\n * Counts the number of variable slots used within each view, and stores that on the view itself, as\n * well as propagates it to the `ir.TemplateOp` for embedded views.\n */\nexport function countVariables(job: CompilationJob): void {\n // First, count the vars used in each view, and update the view-level counter.\n for (const unit of job.units) {\n let varCount = 0;\n\n // Count variables on top-level ops first. Don't explore nested expressions just yet.\n for (const op of unit.ops()) {\n if (ir.hasConsumesVarsTrait(op)) {\n varCount += varsUsedByOp(op);\n }\n }\n\n // Count variables on expressions inside ops. We do this later because some of these expressions\n // might be conditional (e.g. `pipeBinding` inside of a ternary), and we don't want to interfere\n // with indices for top-level binding slots (e.g. `property`).\n for (const op of unit.ops()) {\n ir.visitExpressionsInOp(op, expr => {\n if (!ir.isIrExpression(expr)) {\n return;\n }\n\n // TemplateDefinitionBuilder assigns variable offsets for everything but pure functions\n // first, and then assigns offsets to pure functions lazily. We emulate that behavior by\n // assigning offsets in two passes instead of one, only in compatibility mode.\n if (job.compatibility === ir.CompatibilityMode.TemplateDefinitionBuilder &&\n expr instanceof ir.PureFunctionExpr) {\n return;\n }\n\n // Some expressions require knowledge of the number of variable slots consumed.\n if (ir.hasUsesVarOffsetTrait(expr)) {\n expr.varOffset = varCount;\n }\n\n if (ir.hasConsumesVarsTrait(expr)) {\n varCount += varsUsedByIrExpression(expr);\n }\n });\n }\n\n // Compatiblity mode pass for pure function offsets (as explained above).\n if (job.compatibility === ir.CompatibilityMode.TemplateDefinitionBuilder) {\n for (const op of unit.ops()) {\n ir.visitExpressionsInOp(op, expr => {\n if (!ir.isIrExpression(expr) || !(expr instanceof ir.PureFunctionExpr)) {\n return;\n }\n\n // Some expressions require knowledge of the number of variable slots consumed.\n if (ir.hasUsesVarOffsetTrait(expr)) {\n expr.varOffset = varCount;\n }\n\n if (ir.hasConsumesVarsTrait(expr)) {\n varCount += varsUsedByIrExpression(expr);\n }\n });\n }\n }\n\n unit.vars = varCount;\n }\n\n if (job instanceof ComponentCompilationJob) {\n // Add var counts for each view to the `ir.TemplateOp` which declares that view (if the view is\n // an embedded view).\n for (const unit of job.units) {\n for (const op of unit.create) {\n if (op.kind !== ir.OpKind.Template && op.kind !== ir.OpKind.RepeaterCreate) {\n continue;\n }\n\n const childView = job.views.get(op.xref)!;\n op.vars = childView.vars;\n\n // TODO: currently we handle the vars for the RepeaterCreate empty template in the reify\n // phase. We should handle that here instead.\n }\n }\n }\n}\n\n/**\n * Different operations that implement `ir.UsesVarsTrait` use different numbers of variables, so\n * count the variables used by any particular `op`.\n */\nfunction varsUsedByOp(op: (ir.CreateOp|ir.UpdateOp)&ir.ConsumesVarsTrait): number {\n let slots: number;\n switch (op.kind) {\n case ir.OpKind.Property:\n case ir.OpKind.HostProperty:\n case ir.OpKind.Attribute:\n // All of these bindings use 1 variable slot, plus 1 slot for every interpolated expression,\n // if any.\n slots = 1;\n if (op.expression instanceof ir.Interpolation && !isSingletonInterpolation(op.expression)) {\n slots += op.expression.expressions.length;\n }\n return slots;\n case ir.OpKind.StyleProp:\n case ir.OpKind.ClassProp:\n case ir.OpKind.StyleMap:\n case ir.OpKind.ClassMap:\n // Style & class bindings use 2 variable slots, plus 1 slot for every interpolated expression,\n // if any.\n slots = 2;\n if (op.expression instanceof ir.Interpolation) {\n slots += op.expression.expressions.length;\n }\n return slots;\n case ir.OpKind.InterpolateText:\n // `ir.InterpolateTextOp`s use a variable slot for each dynamic expression.\n return op.interpolation.expressions.length;\n case ir.OpKind.I18nExpression:\n case ir.OpKind.Conditional:\n case ir.OpKind.DeferWhen:\n return 1;\n case ir.OpKind.RepeaterCreate:\n // Repeaters may require an extra variable binding slot, if they have an empty view, for the\n // empty block tracking.\n // TODO: It's a bit odd to have a create mode instruction consume variable slots. Maybe we can\n // find a way to use the Repeater update op instead.\n return op.emptyView ? 1 : 0;\n default:\n throw new Error(`Unhandled op: ${ir.OpKind[op.kind]}`);\n }\n}\n\nexport function varsUsedByIrExpression(expr: ir.Expression&ir.ConsumesVarsTrait): number {\n switch (expr.kind) {\n case ir.ExpressionKind.PureFunctionExpr:\n return 1 + expr.args.length;\n case ir.ExpressionKind.PipeBinding:\n return 1 + expr.args.length;\n case ir.ExpressionKind.PipeBindingVariadic:\n return 1 + expr.numArgs;\n default:\n throw new Error(\n `AssertionError: unhandled ConsumesVarsTrait expression ${expr.constructor.name}`);\n }\n}\n\nfunction isSingletonInterpolation(expr: ir.Interpolation): boolean {\n if (expr.expressions.length !== 1 || expr.strings.length !== 2) {\n return false;\n }\n if (expr.strings[0] !== '' || expr.strings[1] !== '') {\n return false;\n }\n return true;\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as o from '../../../../output/output_ast';\nimport * as ir from '../../ir';\nimport {CompilationJob} from '../compilation';\n\n/**\n * Optimize variables declared and used in the IR.\n *\n * Variables are eagerly generated by pipeline stages for all possible values that could be\n * referenced. This stage processes the list of declared variables and all variable usages,\n * and optimizes where possible. It performs 3 main optimizations:\n *\n * * It transforms variable declarations to side effectful expressions when the\n * variable is not used, but its initializer has global effects which other\n * operations rely upon.\n * * It removes variable declarations if those variables are not referenced and\n * either they do not have global effects, or nothing relies on them.\n * * It inlines variable declarations when those variables are only used once\n * and the inlining is semantically safe.\n *\n * To guarantee correctness, analysis of \"fences\" in the instruction lists is used to determine\n * which optimizations are safe to perform.\n */\nexport function optimizeVariables(job: CompilationJob): void {\n for (const unit of job.units) {\n inlineAlwaysInlineVariables(unit.create);\n inlineAlwaysInlineVariables(unit.update);\n\n for (const op of unit.create) {\n if (op.kind === ir.OpKind.Listener) {\n inlineAlwaysInlineVariables(op.handlerOps);\n }\n }\n\n optimizeVariablesInOpList(unit.create, job.compatibility);\n optimizeVariablesInOpList(unit.update, job.compatibility);\n\n for (const op of unit.create) {\n if (op.kind === ir.OpKind.Listener) {\n optimizeVariablesInOpList(op.handlerOps, job.compatibility);\n }\n }\n }\n}\n\n/**\n * A [fence](https://en.wikipedia.org/wiki/Memory_barrier) flag for an expression which indicates\n * how that expression can be optimized in relation to other expressions or instructions.\n *\n * `Fence`s are a bitfield, so multiple flags may be set on a single expression.\n */\nenum Fence {\n /**\n * Empty flag (no fence exists).\n */\n None = 0b000,\n\n /**\n * A context read fence, meaning that the expression in question reads from the \"current view\"\n * context of the runtime.\n */\n ViewContextRead = 0b001,\n\n /**\n * A context write fence, meaning that the expression in question writes to the \"current view\"\n * context of the runtime.\n *\n * Note that all `ContextWrite` fences are implicitly `ContextRead` fences as operations which\n * change the view context do so based on the current one.\n */\n ViewContextWrite = 0b010,\n\n /**\n * Indicates that a call is required for its side-effects, even if nothing reads its result.\n *\n * This is also true of `ViewContextWrite` operations **if** they are followed by a\n * `ViewContextRead`.\n */\n SideEffectful = 0b100,\n}\n\n/**\n * Summary data collected for each `Op` in a list.\n *\n * Tracking this data per operation allows the optimizer to process operations at a higher level\n * than always scanning expressions.\n */\ninterface OpInfo {\n /**\n * A `Set` of variables referenced by expressions in this operation.\n */\n variablesUsed: Set<ir.XrefId>;\n\n /**\n * Flags indicating any `Fence`s present for this operation.\n */\n fences: Fence;\n}\n\nfunction inlineAlwaysInlineVariables(ops: ir.OpList<ir.CreateOp|ir.UpdateOp>): void {\n const vars = new Map<ir.XrefId, ir.VariableOp<ir.CreateOp|ir.UpdateOp>>();\n for (const op of ops) {\n if (op.kind === ir.OpKind.Variable && op.flags & ir.VariableFlags.AlwaysInline) {\n ir.visitExpressionsInOp(op, expr => {\n if (ir.isIrExpression(expr) && fencesForIrExpression(expr) !== Fence.None) {\n throw new Error(`AssertionError: A context-sensitive variable was marked AlwaysInline`);\n }\n });\n vars.set(op.xref, op);\n }\n\n ir.transformExpressionsInOp(op, expr => {\n if (expr instanceof ir.ReadVariableExpr && vars.has(expr.xref)) {\n const varOp = vars.get(expr.xref)!;\n // Inline by cloning, because we might inline into multiple places.\n return varOp.initializer.clone();\n }\n return expr;\n }, ir.VisitorContextFlag.None);\n }\n\n for (const op of vars.values()) {\n ir.OpList.remove(op as ir.CreateOp | ir.UpdateOp);\n }\n}\n\n/**\n * Process a list of operations and optimize variables within that list.\n */\nfunction optimizeVariablesInOpList(\n ops: ir.OpList<ir.CreateOp|ir.UpdateOp>, compatibility: ir.CompatibilityMode): void {\n const varDecls = new Map<ir.XrefId, ir.VariableOp<ir.CreateOp|ir.UpdateOp>>();\n const varUsages = new Map<ir.XrefId, number>();\n\n // Track variables that are used outside of the immediate operation list. For example, within\n // `ListenerOp` handler operations of listeners in the current operation list.\n const varRemoteUsages = new Set<ir.XrefId>();\n const opMap = new Map<ir.CreateOp|ir.UpdateOp, OpInfo>();\n\n // First, extract information about variables declared or used within the whole list.\n for (const op of ops) {\n if (op.kind === ir.OpKind.Variable) {\n if (varDecls.has(op.xref) || varUsages.has(op.xref)) {\n throw new Error(`Should not see two declarations of the same variable: ${op.xref}`);\n }\n varDecls.set(op.xref, op);\n varUsages.set(op.xref, 0);\n }\n\n opMap.set(op, collectOpInfo(op));\n countVariableUsages(op, varUsages, varRemoteUsages);\n }\n\n // The next step is to remove any variable declarations for variables that aren't used. The\n // variable initializer expressions may be side-effectful, so they may need to be retained as\n // expression statements.\n\n // Track whether we've seen an operation which reads from the view context yet. This is used to\n // determine whether a write to the view context in a variable initializer can be observed.\n let contextIsUsed = false;\n\n // Note that iteration through the list happens in reverse, which guarantees that we'll process\n // all reads of a variable prior to processing its declaration.\n for (const op of ops.reversed()) {\n const opInfo = opMap.get(op)!;\n\n if (op.kind === ir.OpKind.Variable && varUsages.get(op.xref)! === 0) {\n // This variable is unused and can be removed. We might need to keep the initializer around,\n // though, if something depends on it running.\n if ((contextIsUsed && opInfo.fences & Fence.ViewContextWrite) ||\n (opInfo.fences & Fence.SideEffectful)) {\n // This variable initializer has a side effect which must be retained. Either:\n // * it writes to the view context, and we know there is a future operation which depends\n // on that write, or\n // * it's an operation which is inherently side-effectful.\n // We can't remove the initializer, but we can remove the variable declaration itself and\n // replace it with a side-effectful statement.\n const stmtOp = ir.createStatementOp(op.initializer.toStmt()) as ir.UpdateOp;\n opMap.set(stmtOp, opInfo);\n ir.OpList.replace(op as ir.UpdateOp, stmtOp);\n } else {\n // It's safe to delete this entire variable declaration as nothing depends on it, even\n // side-effectfully. Note that doing this might make other variables unused. Since we're\n // iterating in reverse order, we should always be processing usages before declarations\n // and therefore by the time we get to a declaration, all removable usages will have been\n // removed.\n uncountVariableUsages(op, varUsages);\n ir.OpList.remove(op as ir.UpdateOp);\n }\n\n opMap.delete(op);\n varDecls.delete(op.xref);\n varUsages.delete(op.xref);\n continue;\n }\n\n // Does this operation depend on the view context?\n if (opInfo.fences & Fence.ViewContextRead) {\n contextIsUsed = true;\n }\n }\n\n // Next, inline any remaining variables with exactly one usage.\n const toInline: ir.XrefId[] = [];\n for (const [id, count] of varUsages) {\n const decl = varDecls.get(id)!;\n const varInfo = opMap.get(decl as ir.CreateOp | ir.UpdateOp)!;\n // We can inline variables that:\n // - are used exactly once, and\n // - are not used remotely\n // OR\n // - are marked for always inlining\n const isAlwaysInline = !!(decl.flags & ir.VariableFlags.AlwaysInline);\n if (count !== 1 || isAlwaysInline) {\n // We can't inline this variable as it's used more than once.\n continue;\n }\n\n if (varRemoteUsages.has(id)) {\n // This variable is used once, but across an operation boundary, so it can't be inlined.\n continue;\n }\n\n toInline.push(id);\n }\n\n let candidate: ir.XrefId|undefined;\n while (candidate = toInline.pop()) {\n // We will attempt to inline this variable. If inlining fails (due to fences for example),\n // no future operation will make inlining legal.\n const decl = varDecls.get(candidate)!;\n const varInfo = opMap.get(decl as ir.CreateOp | ir.UpdateOp)!;\n const isAlwaysInline = !!(decl.flags & ir.VariableFlags.AlwaysInline);\n\n if (isAlwaysInline) {\n throw new Error(\n `AssertionError: Found an 'AlwaysInline' variable after the always inlining pass.`);\n }\n\n // Scan operations following the variable declaration and look for the point where that variable\n // is used. There should only be one usage given the precondition above.\n for (let targetOp = decl.next!; targetOp.kind !== ir.OpKind.ListEnd;\n targetOp = targetOp.next!) {\n const opInfo = opMap.get(targetOp)!;\n\n // Is the variable used in this operation?\n if (opInfo.variablesUsed.has(candidate)) {\n if (compatibility === ir.CompatibilityMode.TemplateDefinitionBuilder &&\n !allowConservativeInlining(decl, targetOp)) {\n // We're in conservative mode, and this variable is not eligible for inlining into the\n // target operation in this mode.\n break;\n }\n\n // Yes, try to inline it. Inlining may not be successful if fences in this operation before\n // the variable's usage cannot be safely crossed.\n if (tryInlineVariableInitializer(candidate, decl.initializer, targetOp, varInfo.fences)) {\n // Inlining was successful! Update the tracking structures to reflect the inlined\n // variable.\n opInfo.variablesUsed.delete(candidate);\n\n // Add all variables used in the variable's initializer to its new usage site.\n for (const id of varInfo.variablesUsed) {\n opInfo.variablesUsed.add(id);\n }\n\n // Merge fences in the variable's initializer into its new usage site.\n opInfo.fences |= varInfo.fences;\n\n // Delete tracking info related to the declaration.\n varDecls.delete(candidate);\n varUsages.delete(candidate);\n opMap.delete(decl as ir.CreateOp | ir.UpdateOp);\n\n // And finally, delete the original declaration from the operation list.\n ir.OpList.remove(decl as ir.UpdateOp);\n }\n\n // Whether inlining succeeded or failed, we're done processing this variable.\n break;\n }\n\n // If the variable is not used in this operation, then we'd need to inline across it. Check if\n // that's safe to do.\n if (!safeToInlinePastFences(opInfo.fences, varInfo.fences)) {\n // We can't safely inline this variable beyond this operation, so don't proceed with\n // inlining this variable.\n break;\n }\n }\n }\n}\n\n/**\n * Given an `ir.Expression`, returns the `Fence` flags for that expression type.\n */\nfunction fencesForIrExpression(expr: ir.Expression): Fence {\n switch (expr.kind) {\n case ir.ExpressionKind.NextContext:\n return Fence.ViewContextRead | Fence.ViewContextWrite;\n case ir.ExpressionKind.RestoreView:\n return Fence.ViewContextRead | Fence.ViewContextWrite | Fence.SideEffectful;\n case ir.ExpressionKind.Reference:\n return Fence.ViewContextRead;\n default:\n return Fence.None;\n }\n}\n\n/**\n * Build the `OpInfo` structure for the given `op`. This performs two operations:\n *\n * * It tracks which variables are used in the operation's expressions.\n * * It rolls up fence flags for expressions within the operation.\n */\nfunction collectOpInfo(op: ir.CreateOp|ir.UpdateOp): OpInfo {\n let fences = Fence.None;\n const variablesUsed = new Set<ir.XrefId>();\n ir.visitExpressionsInOp(op, expr => {\n if (!ir.isIrExpression(expr)) {\n return;\n }\n\n switch (expr.kind) {\n case ir.ExpressionKind.ReadVariable:\n variablesUsed.add(expr.xref);\n break;\n default:\n fences |= fencesForIrExpression(expr);\n }\n });\n return {fences, variablesUsed};\n}\n\n/**\n * Count the number of usages of each variable, being careful to track whether those usages are\n * local or remote.\n */\nfunction countVariableUsages(\n op: ir.CreateOp|ir.UpdateOp, varUsages: Map<ir.XrefId, number>,\n varRemoteUsage: Set<ir.XrefId>): void {\n ir.visitExpressionsInOp(op, (expr, flags) => {\n if (!ir.isIrExpression(expr)) {\n return;\n }\n\n if (expr.kind !== ir.ExpressionKind.ReadVariable) {\n return;\n }\n\n const count = varUsages.get(expr.xref);\n if (count === undefined) {\n // This variable is declared outside the current scope of optimization.\n return;\n }\n varUsages.set(expr.xref, count + 1);\n\n if (flags & ir.VisitorContextFlag.InChildOperation) {\n varRemoteUsage.add(expr.xref);\n }\n });\n}\n\n/**\n * Remove usages of a variable in `op` from the `varUsages` tracking.\n */\nfunction uncountVariableUsages(\n op: ir.CreateOp|ir.UpdateOp, varUsages: Map<ir.XrefId, number>): void {\n ir.visitExpressionsInOp(op, expr => {\n if (!ir.isIrExpression(expr)) {\n return;\n }\n\n if (expr.kind !== ir.ExpressionKind.ReadVariable) {\n return;\n }\n\n const count = varUsages.get(expr.xref);\n if (count === undefined) {\n // This variable is declared outside the current scope of optimization.\n return;\n } else if (count === 0) {\n throw new Error(\n `Inaccurate variable count: ${expr.xref} - found another read but count is already 0`);\n }\n varUsages.set(expr.xref, count - 1);\n });\n}\n\n/**\n * Checks whether it's safe to inline a variable across a particular operation.\n *\n * @param fences the fences of the operation which the inlining will cross\n * @param declFences the fences of the variable being inlined.\n */\nfunction safeToInlinePastFences(fences: Fence, declFences: Fence): boolean {\n if (fences & Fence.ViewContextWrite) {\n // It's not safe to inline context reads across context writes.\n if (declFences & Fence.ViewContextRead) {\n return false;\n }\n } else if (fences & Fence.ViewContextRead) {\n // It's not safe to inline context writes across context reads.\n if (declFences & Fence.ViewContextWrite) {\n return false;\n }\n }\n return true;\n}\n\n/**\n * Attempt to inline the initializer of a variable into a target operation's expressions.\n *\n * This may or may not be safe to do. For example, the variable could be read following the\n * execution of an expression with fences that don't permit the variable to be inlined across them.\n */\nfunction tryInlineVariableInitializer(\n id: ir.XrefId, initializer: o.Expression, target: ir.CreateOp|ir.UpdateOp,\n declFences: Fence): boolean {\n // We use `ir.transformExpressionsInOp` to walk the expressions and inline the variable if\n // possible. Since this operation is callback-based, once inlining succeeds or fails we can't\n // \"stop\" the expression processing, and have to keep track of whether inlining has succeeded or\n // is no longer allowed.\n let inlined = false;\n let inliningAllowed = true;\n\n ir.transformExpressionsInOp(target, (expr, flags) => {\n if (!ir.isIrExpression(expr)) {\n return expr;\n }\n\n if (inlined || !inliningAllowed) {\n // Either the inlining has already succeeded, or we've passed a fence that disallows inlining\n // at this point, so don't try.\n return expr;\n } else if (\n (flags & ir.VisitorContextFlag.InChildOperation) && (declFences & Fence.ViewContextRead)) {\n // We cannot inline variables that are sensitive to the current context across operation\n // boundaries.\n return expr;\n }\n\n switch (expr.kind) {\n case ir.ExpressionKind.ReadVariable:\n if (expr.xref === id) {\n // This is the usage site of the variable. Since nothing has disallowed inlining, it's\n // safe to inline the initializer here.\n inlined = true;\n return initializer;\n }\n break;\n default:\n // For other types of `ir.Expression`s, whether inlining is allowed depends on their fences.\n const exprFences = fencesForIrExpression(expr);\n inliningAllowed = inliningAllowed && safeToInlinePastFences(exprFences, declFences);\n break;\n }\n return expr;\n }, ir.VisitorContextFlag.None);\n return inlined;\n}\n\n/**\n * Determines whether inlining of `decl` should be allowed in \"conservative\" mode.\n *\n * In conservative mode, inlining behavior is limited to those operations which the\n * `TemplateDefinitionBuilder` supported, with the goal of producing equivalent output.\n */\nfunction allowConservativeInlining(\n decl: ir.VariableOp<ir.CreateOp|ir.UpdateOp>, target: ir.Op<ir.CreateOp|ir.UpdateOp>): boolean {\n // TODO(alxhub): understand exactly how TemplateDefinitionBuilder approaches inlining, and record\n // that behavior here.\n switch (decl.variable.kind) {\n case ir.SemanticVariableKind.Identifier:\n if (decl.initializer instanceof o.ReadVarExpr && decl.initializer.name === 'ctx') {\n // Although TemplateDefinitionBuilder is cautious about inlining, we still want to do so\n // when the variable is the context, to imitate its behavior with aliases in control flow\n // blocks. This quirky behavior will become dead code once compatibility mode is no longer\n // supported.\n return true;\n }\n return false;\n case ir.SemanticVariableKind.Context:\n // Context can only be inlined into other variables.\n return target.kind === ir.OpKind.Variable;\n default:\n return true;\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as ir from '../../ir';\nimport {CompilationJob} from '../compilation';\n\n/**\n * Wraps ICUs that do not already belong to an i18n block in a new i18n block.\n */\nexport function wrapI18nIcus(job: CompilationJob): void {\n for (const unit of job.units) {\n let currentI18nOp: ir.I18nStartOp|null = null;\n let addedI18nId: ir.XrefId|null = null;\n for (const op of unit.create) {\n switch (op.kind) {\n case ir.OpKind.I18nStart:\n currentI18nOp = op;\n break;\n case ir.OpKind.I18nEnd:\n currentI18nOp = null;\n break;\n case ir.OpKind.IcuStart:\n if (currentI18nOp === null) {\n addedI18nId = job.allocateXrefId();\n // ICU i18n start/end ops should not recieve source spans.\n ir.OpList.insertBefore<ir.CreateOp>(\n ir.createI18nStartOp(addedI18nId, op.message, undefined, null), op);\n }\n break;\n case ir.OpKind.IcuEnd:\n if (addedI18nId !== null) {\n ir.OpList.insertAfter<ir.CreateOp>(ir.createI18nEndOp(addedI18nId, null), op);\n addedI18nId = null;\n }\n break;\n }\n }\n }\n}\n","/**\n *\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as o from '../../../../src/output/output_ast';\nimport {ConstantPool} from '../../../constant_pool';\nimport * as ir from '../ir';\n\nimport {CompilationJob, CompilationJobKind as Kind, type ComponentCompilationJob, type HostBindingCompilationJob, type ViewCompilationUnit} from './compilation';\n\nimport {deleteAnyCasts} from './phases/any_cast';\nimport {applyI18nExpressions} from './phases/apply_i18n_expressions';\nimport {assignI18nSlotDependencies} from './phases/assign_i18n_slot_dependencies';\nimport {extractAttributes} from './phases/attribute_extraction';\nimport {specializeBindings} from './phases/binding_specialization';\nimport {chain} from './phases/chaining';\nimport {collapseSingletonInterpolations} from './phases/collapse_singleton_interpolations';\nimport {generateConditionalExpressions} from './phases/conditionals';\nimport {collectElementConsts} from './phases/const_collection';\nimport {convertI18nBindings} from './phases/convert_i18n_bindings';\nimport {createDeferDepsFns} from './phases/create_defer_deps_fns';\nimport {createI18nContexts} from './phases/create_i18n_contexts';\nimport {deduplicateTextBindings} from './phases/deduplicate_text_bindings';\nimport {configureDeferInstructions} from './phases/defer_configs';\nimport {resolveDeferTargetNames} from './phases/defer_resolve_targets';\nimport {collapseEmptyInstructions} from './phases/empty_elements';\nimport {expandSafeReads} from './phases/expand_safe_reads';\nimport {extractI18nMessages} from './phases/extract_i18n_messages';\nimport {generateAdvance} from './phases/generate_advance';\nimport {generateProjectionDefs} from './phases/generate_projection_def';\nimport {generateVariables} from './phases/generate_variables';\nimport {collectConstExpressions} from './phases/has_const_expression_collection';\nimport {parseHostStyleProperties} from './phases/host_style_property_parsing';\nimport {collectI18nConsts} from './phases/i18n_const_collection';\nimport {convertI18nText} from './phases/i18n_text_extraction';\nimport {liftLocalRefs} from './phases/local_refs';\nimport {emitNamespaceChanges} from './phases/namespace';\nimport {nameFunctionsAndVariables} from './phases/naming';\nimport {mergeNextContextExpressions} from './phases/next_context_merging';\nimport {generateNgContainerOps} from './phases/ng_container';\nimport {disableBindings} from './phases/nonbindable';\nimport {generateNullishCoalesceExpressions} from './phases/nullish_coalescing';\nimport {orderOps} from './phases/ordering';\nimport {parseExtractedStyles} from './phases/parse_extracted_styles';\nimport {removeContentSelectors} from './phases/phase_remove_content_selectors';\nimport {createPipes} from './phases/pipe_creation';\nimport {createVariadicPipes} from './phases/pipe_variadic';\nimport {propagateI18nBlocks} from './phases/propagate_i18n_blocks';\nimport {extractPureFunctions} from './phases/pure_function_extraction';\nimport {generatePureLiteralStructures} from './phases/pure_literal_structures';\nimport {reify} from './phases/reify';\nimport {removeEmptyBindings} from './phases/remove_empty_bindings';\nimport {removeI18nContexts} from './phases/remove_i18n_contexts';\nimport {removeUnusedI18nAttributesOps} from './phases/remove_unused_i18n_attrs';\nimport {resolveContexts} from './phases/resolve_contexts';\nimport {resolveDollarEvent} from './phases/resolve_dollar_event';\nimport {resolveI18nElementPlaceholders} from './phases/resolve_i18n_element_placeholders';\nimport {resolveI18nExpressionPlaceholders} from './phases/resolve_i18n_expression_placeholders';\nimport {resolveNames} from './phases/resolve_names';\nimport {resolveSanitizers} from './phases/resolve_sanitizers';\nimport {saveAndRestoreView} from './phases/save_restore_view';\nimport {allocateSlots} from './phases/slot_allocation';\nimport {specializeStyleBindings} from './phases/style_binding_specialization';\nimport {generateTemporaryVariables} from './phases/temporary_variables';\nimport {generateTrackFns} from './phases/track_fn_generation';\nimport {optimizeTrackFns} from './phases/track_fn_optimization';\nimport {generateTrackVariables} from './phases/track_variables';\nimport {countVariables} from './phases/var_counting';\nimport {optimizeVariables} from './phases/variable_optimization';\nimport {wrapI18nIcus} from './phases/wrap_icus';\n\ntype Phase = {\n fn: (job: CompilationJob) => void; kind: Kind.Both | Kind.Host | Kind.Tmpl;\n}|{\n fn: (job: ComponentCompilationJob) => void;\n kind: Kind.Tmpl;\n}\n|{\n fn: (job: HostBindingCompilationJob) => void;\n kind: Kind.Host;\n};\n\nconst phases: Phase[] = [\n {kind: Kind.Tmpl, fn: removeContentSelectors},\n {kind: Kind.Host, fn: parseHostStyleProperties},\n {kind: Kind.Tmpl, fn: emitNamespaceChanges},\n {kind: Kind.Tmpl, fn: propagateI18nBlocks},\n {kind: Kind.Tmpl, fn: wrapI18nIcus},\n {kind: Kind.Both, fn: deduplicateTextBindings},\n {kind: Kind.Both, fn: specializeStyleBindings},\n {kind: Kind.Both, fn: specializeBindings},\n {kind: Kind.Both, fn: extractAttributes},\n {kind: Kind.Tmpl, fn: createI18nContexts},\n {kind: Kind.Both, fn: parseExtractedStyles},\n {kind: Kind.Tmpl, fn: removeEmptyBindings},\n {kind: Kind.Both, fn: collapseSingletonInterpolations},\n {kind: Kind.Both, fn: orderOps},\n {kind: Kind.Tmpl, fn: generateConditionalExpressions},\n {kind: Kind.Tmpl, fn: createPipes},\n {kind: Kind.Tmpl, fn: configureDeferInstructions},\n {kind: Kind.Tmpl, fn: convertI18nText},\n {kind: Kind.Tmpl, fn: convertI18nBindings},\n {kind: Kind.Tmpl, fn: removeUnusedI18nAttributesOps},\n {kind: Kind.Tmpl, fn: assignI18nSlotDependencies},\n {kind: Kind.Tmpl, fn: applyI18nExpressions},\n {kind: Kind.Tmpl, fn: createVariadicPipes},\n {kind: Kind.Both, fn: generatePureLiteralStructures},\n {kind: Kind.Tmpl, fn: generateProjectionDefs},\n {kind: Kind.Tmpl, fn: generateVariables},\n {kind: Kind.Tmpl, fn: saveAndRestoreView},\n {kind: Kind.Both, fn: deleteAnyCasts},\n {kind: Kind.Both, fn: resolveDollarEvent},\n {kind: Kind.Tmpl, fn: generateTrackVariables},\n {kind: Kind.Both, fn: resolveNames},\n {kind: Kind.Tmpl, fn: resolveDeferTargetNames},\n {kind: Kind.Tmpl, fn: optimizeTrackFns},\n {kind: Kind.Both, fn: resolveContexts},\n {kind: Kind.Both, fn: resolveSanitizers},\n {kind: Kind.Tmpl, fn: liftLocalRefs},\n {kind: Kind.Both, fn: generateNullishCoalesceExpressions},\n {kind: Kind.Both, fn: expandSafeReads},\n {kind: Kind.Both, fn: generateTemporaryVariables},\n {kind: Kind.Tmpl, fn: allocateSlots},\n {kind: Kind.Tmpl, fn: resolveI18nElementPlaceholders},\n {kind: Kind.Tmpl, fn: resolveI18nExpressionPlaceholders},\n {kind: Kind.Tmpl, fn: extractI18nMessages},\n {kind: Kind.Tmpl, fn: generateTrackFns},\n {kind: Kind.Tmpl, fn: collectI18nConsts},\n {kind: Kind.Tmpl, fn: collectConstExpressions},\n {kind: Kind.Both, fn: collectElementConsts},\n {kind: Kind.Tmpl, fn: removeI18nContexts},\n {kind: Kind.Both, fn: countVariables},\n {kind: Kind.Tmpl, fn: generateAdvance},\n {kind: Kind.Both, fn: optimizeVariables},\n {kind: Kind.Both, fn: nameFunctionsAndVariables},\n {kind: Kind.Tmpl, fn: createDeferDepsFns},\n {kind: Kind.Tmpl, fn: mergeNextContextExpressions},\n {kind: Kind.Tmpl, fn: generateNgContainerOps},\n {kind: Kind.Tmpl, fn: collapseEmptyInstructions},\n {kind: Kind.Tmpl, fn: disableBindings},\n {kind: Kind.Both, fn: extractPureFunctions},\n {kind: Kind.Both, fn: reify},\n {kind: Kind.Both, fn: chain},\n];\n\n/**\n * Run all transformation phases in the correct order against a compilation job. After this\n * processing, the compilation should be in a state where it can be emitted.\n */\nexport function transform(job: CompilationJob, kind: Kind): void {\n for (const phase of phases) {\n if (phase.kind === kind || phase.kind === Kind.Both) {\n // The type of `Phase` above ensures it is impossible to call a phase that doesn't support the\n // job kind.\n phase.fn(job as CompilationJob & ComponentCompilationJob & HostBindingCompilationJob);\n }\n }\n}\n\n/**\n * Compile all views in the given `ComponentCompilation` into the final template function, which may\n * reference constants defined in a `ConstantPool`.\n */\nexport function emitTemplateFn(tpl: ComponentCompilationJob, pool: ConstantPool): o.FunctionExpr {\n const rootFn = emitView(tpl.root);\n emitChildViews(tpl.root, pool);\n return rootFn;\n}\n\nfunction emitChildViews(parent: ViewCompilationUnit, pool: ConstantPool): void {\n for (const unit of parent.job.units) {\n if (unit.parent !== parent.xref) {\n continue;\n }\n\n // Child views are emitted depth-first.\n emitChildViews(unit, pool);\n\n const viewFn = emitView(unit);\n pool.statements.push(viewFn.toDeclStmt(viewFn.name!));\n }\n}\n\n/**\n * Emit a template function for an individual `ViewCompilation` (which may be either the root view\n * or an embedded view).\n */\nfunction emitView(view: ViewCompilationUnit): o.FunctionExpr {\n if (view.fnName === null) {\n throw new Error(`AssertionError: view ${view.xref} is unnamed`);\n }\n\n const createStatements: o.Statement[] = [];\n for (const op of view.create) {\n if (op.kind !== ir.OpKind.Statement) {\n throw new Error(`AssertionError: expected all create ops to have been compiled, but got ${\n ir.OpKind[op.kind]}`);\n }\n createStatements.push(op.statement);\n }\n const updateStatements: o.Statement[] = [];\n for (const op of view.update) {\n if (op.kind !== ir.OpKind.Statement) {\n throw new Error(`AssertionError: expected all update ops to have been compiled, but got ${\n ir.OpKind[op.kind]}`);\n }\n updateStatements.push(op.statement);\n }\n\n const createCond = maybeGenerateRfBlock(1, createStatements);\n const updateCond = maybeGenerateRfBlock(2, updateStatements);\n return o.fn(\n [\n new o.FnParam('rf'),\n new o.FnParam('ctx'),\n ],\n [\n ...createCond,\n ...updateCond,\n ],\n /* type */ undefined, /* sourceSpan */ undefined, view.fnName);\n}\n\nfunction maybeGenerateRfBlock(flag: number, statements: o.Statement[]): o.Statement[] {\n if (statements.length === 0) {\n return [];\n }\n\n return [\n o.ifStmt(\n new o.BinaryOperatorExpr(o.BinaryOperator.BitwiseAnd, o.variable('rf'), o.literal(flag)),\n statements),\n ];\n}\n\nexport function emitHostBindingFunction(job: HostBindingCompilationJob): o.FunctionExpr|null {\n if (job.root.fnName === null) {\n throw new Error(`AssertionError: host binding function is unnamed`);\n }\n\n const createStatements: o.Statement[] = [];\n for (const op of job.root.create) {\n if (op.kind !== ir.OpKind.Statement) {\n throw new Error(`AssertionError: expected all create ops to have been compiled, but got ${\n ir.OpKind[op.kind]}`);\n }\n createStatements.push(op.statement);\n }\n const updateStatements: o.Statement[] = [];\n for (const op of job.root.update) {\n if (op.kind !== ir.OpKind.Statement) {\n throw new Error(`AssertionError: expected all update ops to have been compiled, but got ${\n ir.OpKind[op.kind]}`);\n }\n updateStatements.push(op.statement);\n }\n\n if (createStatements.length === 0 && updateStatements.length === 0) {\n return null;\n }\n\n const createCond = maybeGenerateRfBlock(1, createStatements);\n const updateCond = maybeGenerateRfBlock(2, updateStatements);\n return o.fn(\n [\n new o.FnParam('rf'),\n new o.FnParam('ctx'),\n ],\n [\n ...createCond,\n ...updateCond,\n ],\n /* type */ undefined, /* sourceSpan */ undefined, job.root.fnName);\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {ConstantPool} from '../../../constant_pool';\nimport {SecurityContext} from '../../../core';\nimport * as e from '../../../expression_parser/ast';\nimport * as i18n from '../../../i18n/i18n_ast';\nimport {splitNsName} from '../../../ml_parser/tags';\nimport * as o from '../../../output/output_ast';\nimport {ParseSourceSpan} from '../../../parse_util';\nimport * as t from '../../../render3/r3_ast';\nimport {R3DeferBlockMetadata} from '../../../render3/view/api';\nimport {icuFromI18nMessage, isSingleI18nIcu} from '../../../render3/view/i18n/util';\nimport {DomElementSchemaRegistry} from '../../../schema/dom_element_schema_registry';\nimport {BindingParser} from '../../../template_parser/binding_parser';\nimport * as ir from '../ir';\n\nimport {CompilationUnit, ComponentCompilationJob, HostBindingCompilationJob, type CompilationJob, type ViewCompilationUnit} from './compilation';\nimport {BINARY_OPERATORS, namespaceForKey, prefixWithNamespace} from './conversion';\n\nconst compatibilityMode = ir.CompatibilityMode.TemplateDefinitionBuilder;\n\n// Schema containing DOM elements and their properties.\nconst domSchema = new DomElementSchemaRegistry();\n\n// Tag name of the `ng-template` element.\nconst NG_TEMPLATE_TAG_NAME = 'ng-template';\n\n/**\n * Process a template AST and convert it into a `ComponentCompilation` in the intermediate\n * representation.\n * TODO: Refactor more of the ingestion code into phases.\n */\nexport function ingestComponent(\n componentName: string, template: t.Node[], constantPool: ConstantPool,\n relativeContextFilePath: string, i18nUseExternalIds: boolean,\n deferBlocksMeta: Map<t.DeferredBlock, R3DeferBlockMetadata>,\n allDeferrableDepsFn: o.ReadVarExpr|null): ComponentCompilationJob {\n const job = new ComponentCompilationJob(\n componentName, constantPool, compatibilityMode, relativeContextFilePath, i18nUseExternalIds,\n deferBlocksMeta, allDeferrableDepsFn);\n ingestNodes(job.root, template);\n return job;\n}\n\nexport interface HostBindingInput {\n componentName: string;\n componentSelector: string;\n properties: e.ParsedProperty[]|null;\n attributes: {[key: string]: o.Expression};\n events: e.ParsedEvent[]|null;\n}\n\n/**\n * Process a host binding AST and convert it into a `HostBindingCompilationJob` in the intermediate\n * representation.\n */\nexport function ingestHostBinding(\n input: HostBindingInput, bindingParser: BindingParser,\n constantPool: ConstantPool): HostBindingCompilationJob {\n const job = new HostBindingCompilationJob(input.componentName, constantPool, compatibilityMode);\n for (const property of input.properties ?? []) {\n let bindingKind = ir.BindingKind.Property;\n // TODO: this should really be handled in the parser.\n if (property.name.startsWith('attr.')) {\n property.name = property.name.substring('attr.'.length);\n bindingKind = ir.BindingKind.Attribute;\n }\n if (property.isAnimation) {\n bindingKind = ir.BindingKind.Animation;\n }\n const securityContexts =\n bindingParser\n .calcPossibleSecurityContexts(\n input.componentSelector, property.name, bindingKind === ir.BindingKind.Attribute)\n .filter(context => context !== SecurityContext.NONE);\n ingestHostProperty(job, property, bindingKind, securityContexts);\n }\n for (const [name, expr] of Object.entries(input.attributes) ?? []) {\n const securityContexts =\n bindingParser.calcPossibleSecurityContexts(input.componentSelector, name, true)\n .filter(context => context !== SecurityContext.NONE);\n ingestHostAttribute(job, name, expr, securityContexts);\n }\n for (const event of input.events ?? []) {\n ingestHostEvent(job, event);\n }\n return job;\n}\n\n// TODO: We should refactor the parser to use the same types and structures for host bindings as\n// with ordinary components. This would allow us to share a lot more ingestion code.\nexport function ingestHostProperty(\n job: HostBindingCompilationJob, property: e.ParsedProperty, bindingKind: ir.BindingKind,\n securityContexts: SecurityContext[]): void {\n let expression: o.Expression|ir.Interpolation;\n const ast = property.expression.ast;\n if (ast instanceof e.Interpolation) {\n expression = new ir.Interpolation(\n ast.strings, ast.expressions.map(expr => convertAst(expr, job, property.sourceSpan)), []);\n } else {\n expression = convertAst(ast, job, property.sourceSpan);\n }\n job.root.update.push(ir.createBindingOp(\n job.root.xref, bindingKind, property.name, expression, null, securityContexts, false, false,\n null, /* TODO: How do Host bindings handle i18n attrs? */ null, property.sourceSpan));\n}\n\nexport function ingestHostAttribute(\n job: HostBindingCompilationJob, name: string, value: o.Expression,\n securityContexts: SecurityContext[]): void {\n const attrBinding = ir.createBindingOp(\n job.root.xref, ir.BindingKind.Attribute, name, value, null, securityContexts,\n /* Host attributes should always be extracted to const hostAttrs, even if they are not\n *strictly* text literals */\n true, false, null,\n /* TODO */ null,\n /** TODO: May be null? */ value.sourceSpan!);\n job.root.update.push(attrBinding);\n}\n\nexport function ingestHostEvent(job: HostBindingCompilationJob, event: e.ParsedEvent) {\n const [phase, target] = event.type !== e.ParsedEventType.Animation ? [null, event.targetOrPhase] :\n [event.targetOrPhase, null];\n const eventBinding = ir.createListenerOp(\n job.root.xref, new ir.SlotHandle(), event.name, null,\n makeListenerHandlerOps(job.root, event.handler, event.handlerSpan), phase, target, true,\n event.sourceSpan);\n job.root.create.push(eventBinding);\n}\n\n/**\n * Ingest the nodes of a template AST into the given `ViewCompilation`.\n */\nfunction ingestNodes(unit: ViewCompilationUnit, template: t.Node[]): void {\n for (const node of template) {\n if (node instanceof t.Element) {\n ingestElement(unit, node);\n } else if (node instanceof t.Template) {\n ingestTemplate(unit, node);\n } else if (node instanceof t.Content) {\n ingestContent(unit, node);\n } else if (node instanceof t.Text) {\n ingestText(unit, node, null);\n } else if (node instanceof t.BoundText) {\n ingestBoundText(unit, node, null);\n } else if (node instanceof t.IfBlock) {\n ingestIfBlock(unit, node);\n } else if (node instanceof t.SwitchBlock) {\n ingestSwitchBlock(unit, node);\n } else if (node instanceof t.DeferredBlock) {\n ingestDeferBlock(unit, node);\n } else if (node instanceof t.Icu) {\n ingestIcu(unit, node);\n } else if (node instanceof t.ForLoopBlock) {\n ingestForBlock(unit, node);\n } else {\n throw new Error(`Unsupported template node: ${node.constructor.name}`);\n }\n }\n}\n\n/**\n * Ingest an element AST from the template into the given `ViewCompilation`.\n */\nfunction ingestElement(unit: ViewCompilationUnit, element: t.Element): void {\n if (element.i18n !== undefined &&\n !(element.i18n instanceof i18n.Message || element.i18n instanceof i18n.TagPlaceholder)) {\n throw Error(`Unhandled i18n metadata type for element: ${element.i18n.constructor.name}`);\n }\n\n const id = unit.job.allocateXrefId();\n\n const [namespaceKey, elementName] = splitNsName(element.name);\n\n const startOp = ir.createElementStartOp(\n elementName, id, namespaceForKey(namespaceKey),\n element.i18n instanceof i18n.TagPlaceholder ? element.i18n : undefined,\n element.startSourceSpan, element.sourceSpan);\n unit.create.push(startOp);\n\n ingestElementBindings(unit, startOp, element);\n ingestReferences(startOp, element);\n\n // Start i18n, if needed, goes after the element create and bindings, but before the nodes\n let i18nBlockId: ir.XrefId|null = null;\n if (element.i18n instanceof i18n.Message) {\n i18nBlockId = unit.job.allocateXrefId();\n unit.create.push(\n ir.createI18nStartOp(i18nBlockId, element.i18n, undefined, element.startSourceSpan));\n }\n\n ingestNodes(unit, element.children);\n\n // The source span for the end op is typically the element closing tag. However, if no closing tag\n // exists, such as in `<input>`, we use the start source span instead. Usually the start and end\n // instructions will be collapsed into one `element` instruction, negating the purpose of this\n // fallback, but in cases when it is not collapsed (such as an input with a binding), we still\n // want to map the end instruction to the main element.\n const endOp = ir.createElementEndOp(id, element.endSourceSpan ?? element.startSourceSpan);\n unit.create.push(endOp);\n\n // If there is an i18n message associated with this element, insert i18n start and end ops.\n if (i18nBlockId !== null) {\n ir.OpList.insertBefore<ir.CreateOp>(\n ir.createI18nEndOp(i18nBlockId, element.endSourceSpan ?? element.startSourceSpan), endOp);\n }\n}\n\n/**\n * Ingest an `ng-template` node from the AST into the given `ViewCompilation`.\n */\nfunction ingestTemplate(unit: ViewCompilationUnit, tmpl: t.Template): void {\n if (tmpl.i18n !== undefined &&\n !(tmpl.i18n instanceof i18n.Message || tmpl.i18n instanceof i18n.TagPlaceholder)) {\n throw Error(`Unhandled i18n metadata type for template: ${tmpl.i18n.constructor.name}`);\n }\n\n const childView = unit.job.allocateView(unit.xref);\n\n let tagNameWithoutNamespace = tmpl.tagName;\n let namespacePrefix: string|null = '';\n if (tmpl.tagName) {\n [namespacePrefix, tagNameWithoutNamespace] = splitNsName(tmpl.tagName);\n }\n\n const i18nPlaceholder = tmpl.i18n instanceof i18n.TagPlaceholder ? tmpl.i18n : undefined;\n const namespace = namespaceForKey(namespacePrefix);\n const functionNameSuffix = tagNameWithoutNamespace === null ?\n '' :\n prefixWithNamespace(tagNameWithoutNamespace, namespace);\n const templateKind =\n isPlainTemplate(tmpl) ? ir.TemplateKind.NgTemplate : ir.TemplateKind.Structural;\n const templateOp = ir.createTemplateOp(\n childView.xref, templateKind, tagNameWithoutNamespace, functionNameSuffix, namespace,\n i18nPlaceholder, tmpl.startSourceSpan, tmpl.sourceSpan);\n unit.create.push(templateOp);\n\n ingestTemplateBindings(unit, templateOp, tmpl, templateKind);\n ingestReferences(templateOp, tmpl);\n ingestNodes(childView, tmpl.children);\n\n for (const {name, value} of tmpl.variables) {\n childView.contextVariables.set(name, value !== '' ? value : '$implicit');\n }\n\n // If this is a plain template and there is an i18n message associated with it, insert i18n start\n // and end ops. For structural directive templates, the i18n ops will be added when ingesting the\n // element/template the directive is placed on.\n if (templateKind === ir.TemplateKind.NgTemplate && tmpl.i18n instanceof i18n.Message) {\n const id = unit.job.allocateXrefId();\n ir.OpList.insertAfter(\n ir.createI18nStartOp(id, tmpl.i18n, undefined, tmpl.startSourceSpan),\n childView.create.head);\n ir.OpList.insertBefore(\n ir.createI18nEndOp(id, tmpl.endSourceSpan ?? tmpl.startSourceSpan), childView.create.tail);\n }\n}\n\n/**\n * Ingest a content node from the AST into the given `ViewCompilation`.\n */\nfunction ingestContent(unit: ViewCompilationUnit, content: t.Content): void {\n if (content.i18n !== undefined && !(content.i18n instanceof i18n.TagPlaceholder)) {\n throw Error(`Unhandled i18n metadata type for element: ${content.i18n.constructor.name}`);\n }\n const op = ir.createProjectionOp(\n unit.job.allocateXrefId(), content.selector, content.i18n, content.sourceSpan);\n for (const attr of content.attributes) {\n const securityContext = domSchema.securityContext(content.name, attr.name, true);\n unit.update.push(ir.createBindingOp(\n op.xref, ir.BindingKind.Attribute, attr.name, o.literal(attr.value), null, securityContext,\n true, false, null, asMessage(attr.i18n), attr.sourceSpan));\n }\n unit.create.push(op);\n}\n\n/**\n * Ingest a literal text node from the AST into the given `ViewCompilation`.\n */\nfunction ingestText(unit: ViewCompilationUnit, text: t.Text, icuPlaceholder: string|null): void {\n unit.create.push(\n ir.createTextOp(unit.job.allocateXrefId(), text.value, icuPlaceholder, text.sourceSpan));\n}\n\n/**\n * Ingest an interpolated text node from the AST into the given `ViewCompilation`.\n */\nfunction ingestBoundText(\n unit: ViewCompilationUnit, text: t.BoundText, icuPlaceholder: string|null): void {\n let value = text.value;\n if (value instanceof e.ASTWithSource) {\n value = value.ast;\n }\n if (!(value instanceof e.Interpolation)) {\n throw new Error(\n `AssertionError: expected Interpolation for BoundText node, got ${value.constructor.name}`);\n }\n if (text.i18n !== undefined && !(text.i18n instanceof i18n.Container)) {\n throw Error(\n `Unhandled i18n metadata type for text interpolation: ${text.i18n?.constructor.name}`);\n }\n\n const i18nPlaceholders = text.i18n instanceof i18n.Container ?\n text.i18n.children\n .filter((node): node is i18n.Placeholder => node instanceof i18n.Placeholder)\n .map(placeholder => placeholder.name) :\n [];\n if (i18nPlaceholders.length > 0 && i18nPlaceholders.length !== value.expressions.length) {\n throw Error(`Unexpected number of i18n placeholders (${\n value.expressions.length}) for BoundText with ${value.expressions.length} expressions`);\n }\n\n const textXref = unit.job.allocateXrefId();\n unit.create.push(ir.createTextOp(textXref, '', icuPlaceholder, text.sourceSpan));\n // TemplateDefinitionBuilder does not generate source maps for sub-expressions inside an\n // interpolation. We copy that behavior in compatibility mode.\n // TODO: is it actually correct to generate these extra maps in modern mode?\n const baseSourceSpan = unit.job.compatibility ? null : text.sourceSpan;\n unit.update.push(ir.createInterpolateTextOp(\n textXref,\n new ir.Interpolation(\n value.strings, value.expressions.map(expr => convertAst(expr, unit.job, baseSourceSpan)),\n i18nPlaceholders),\n text.sourceSpan));\n}\n\n/**\n * Ingest an `@if` block into the given `ViewCompilation`.\n */\nfunction ingestIfBlock(unit: ViewCompilationUnit, ifBlock: t.IfBlock): void {\n let firstXref: ir.XrefId|null = null;\n let firstSlotHandle: ir.SlotHandle|null = null;\n let conditions: Array<ir.ConditionalCaseExpr> = [];\n for (let i = 0; i < ifBlock.branches.length; i++) {\n const ifCase = ifBlock.branches[i];\n const cView = unit.job.allocateView(unit.xref);\n let tagName: string|null = null;\n\n // Only the first branch can be used for projection, because the conditional\n // uses the container of the first branch as the insertion point for all branches.\n if (i === 0) {\n tagName = ingestControlFlowInsertionPoint(unit, cView.xref, ifCase);\n }\n if (ifCase.expressionAlias !== null) {\n cView.contextVariables.set(ifCase.expressionAlias.name, ir.CTX_REF);\n }\n\n let ifCaseI18nMeta = undefined;\n if (ifCase.i18n !== undefined) {\n if (!(ifCase.i18n instanceof i18n.BlockPlaceholder)) {\n throw Error(`Unhandled i18n metadata type for if block: ${ifCase.i18n?.constructor.name}`);\n }\n ifCaseI18nMeta = ifCase.i18n;\n }\n\n const templateOp = ir.createTemplateOp(\n cView.xref, ir.TemplateKind.Block, tagName, 'Conditional', ir.Namespace.HTML,\n ifCaseI18nMeta, ifCase.startSourceSpan, ifCase.sourceSpan);\n unit.create.push(templateOp);\n\n if (firstXref === null) {\n firstXref = cView.xref;\n firstSlotHandle = templateOp.handle;\n }\n\n const caseExpr = ifCase.expression ? convertAst(ifCase.expression, unit.job, null) : null;\n const conditionalCaseExpr = new ir.ConditionalCaseExpr(\n caseExpr, templateOp.xref, templateOp.handle, ifCase.expressionAlias);\n conditions.push(conditionalCaseExpr);\n ingestNodes(cView, ifCase.children);\n }\n const conditional =\n ir.createConditionalOp(firstXref!, firstSlotHandle!, null, conditions, ifBlock.sourceSpan);\n unit.update.push(conditional);\n}\n\n/**\n * Ingest an `@switch` block into the given `ViewCompilation`.\n */\nfunction ingestSwitchBlock(unit: ViewCompilationUnit, switchBlock: t.SwitchBlock): void {\n // Don't ingest empty switches since they won't render anything.\n if (switchBlock.cases.length === 0) {\n return;\n }\n\n let firstXref: ir.XrefId|null = null;\n let firstSlotHandle: ir.SlotHandle|null = null;\n let conditions: Array<ir.ConditionalCaseExpr> = [];\n for (const switchCase of switchBlock.cases) {\n const cView = unit.job.allocateView(unit.xref);\n let switchCaseI18nMeta = undefined;\n if (switchCase.i18n !== undefined) {\n if (!(switchCase.i18n instanceof i18n.BlockPlaceholder)) {\n throw Error(\n `Unhandled i18n metadata type for switch block: ${switchCase.i18n?.constructor.name}`);\n }\n switchCaseI18nMeta = switchCase.i18n;\n }\n const templateOp = ir.createTemplateOp(\n cView.xref, ir.TemplateKind.Block, null, 'Case', ir.Namespace.HTML, switchCaseI18nMeta,\n switchCase.startSourceSpan, switchCase.sourceSpan);\n unit.create.push(templateOp);\n if (firstXref === null) {\n firstXref = cView.xref;\n firstSlotHandle = templateOp.handle;\n }\n const caseExpr = switchCase.expression ?\n convertAst(switchCase.expression, unit.job, switchBlock.startSourceSpan) :\n null;\n const conditionalCaseExpr =\n new ir.ConditionalCaseExpr(caseExpr, templateOp.xref, templateOp.handle);\n conditions.push(conditionalCaseExpr);\n ingestNodes(cView, switchCase.children);\n }\n const conditional = ir.createConditionalOp(\n firstXref!, firstSlotHandle!, convertAst(switchBlock.expression, unit.job, null), conditions,\n switchBlock.sourceSpan);\n unit.update.push(conditional);\n}\n\nfunction ingestDeferView(\n unit: ViewCompilationUnit, suffix: string, i18nMeta: i18n.I18nMeta|undefined,\n children?: t.Node[], sourceSpan?: ParseSourceSpan): ir.TemplateOp|null {\n if (i18nMeta !== undefined && !(i18nMeta instanceof i18n.BlockPlaceholder)) {\n throw Error('Unhandled i18n metadata type for defer block');\n }\n if (children === undefined) {\n return null;\n }\n const secondaryView = unit.job.allocateView(unit.xref);\n ingestNodes(secondaryView, children);\n const templateOp = ir.createTemplateOp(\n secondaryView.xref, ir.TemplateKind.Block, null, `Defer${suffix}`, ir.Namespace.HTML,\n i18nMeta, sourceSpan!, sourceSpan!);\n unit.create.push(templateOp);\n return templateOp;\n}\n\nfunction ingestDeferBlock(unit: ViewCompilationUnit, deferBlock: t.DeferredBlock): void {\n const blockMeta = unit.job.deferBlocksMeta.get(deferBlock);\n if (blockMeta === undefined) {\n throw new Error(`AssertionError: unable to find metadata for deferred block`);\n }\n\n // Generate the defer main view and all secondary views.\n const main =\n ingestDeferView(unit, '', deferBlock.i18n, deferBlock.children, deferBlock.sourceSpan)!;\n const loading = ingestDeferView(\n unit, 'Loading', deferBlock.loading?.i18n, deferBlock.loading?.children,\n deferBlock.loading?.sourceSpan);\n const placeholder = ingestDeferView(\n unit, 'Placeholder', deferBlock.placeholder?.i18n, deferBlock.placeholder?.children,\n deferBlock.placeholder?.sourceSpan);\n const error = ingestDeferView(\n unit, 'Error', deferBlock.error?.i18n, deferBlock.error?.children,\n deferBlock.error?.sourceSpan);\n\n // Create the main defer op, and ops for all secondary views.\n const deferXref = unit.job.allocateXrefId();\n const deferOp = ir.createDeferOp(\n deferXref, main.xref, main.handle, blockMeta, unit.job.allDeferrableDepsFn,\n deferBlock.sourceSpan);\n deferOp.placeholderView = placeholder?.xref ?? null;\n deferOp.placeholderSlot = placeholder?.handle ?? null;\n deferOp.loadingSlot = loading?.handle ?? null;\n deferOp.errorSlot = error?.handle ?? null;\n deferOp.placeholderMinimumTime = deferBlock.placeholder?.minimumTime ?? null;\n deferOp.loadingMinimumTime = deferBlock.loading?.minimumTime ?? null;\n deferOp.loadingAfterTime = deferBlock.loading?.afterTime ?? null;\n unit.create.push(deferOp);\n\n // Configure all defer `on` conditions.\n // TODO: refactor prefetch triggers to use a separate op type, with a shared superclass. This will\n // make it easier to refactor prefetch behavior in the future.\n let prefetch = false;\n let deferOnOps: ir.DeferOnOp[] = [];\n let deferWhenOps: ir.DeferWhenOp[] = [];\n for (const triggers of [deferBlock.triggers, deferBlock.prefetchTriggers]) {\n if (triggers.idle !== undefined) {\n const deferOnOp = ir.createDeferOnOp(\n deferXref, {kind: ir.DeferTriggerKind.Idle}, prefetch, triggers.idle.sourceSpan);\n deferOnOps.push(deferOnOp);\n }\n if (triggers.immediate !== undefined) {\n const deferOnOp = ir.createDeferOnOp(\n deferXref, {kind: ir.DeferTriggerKind.Immediate}, prefetch,\n triggers.immediate.sourceSpan);\n deferOnOps.push(deferOnOp);\n }\n if (triggers.timer !== undefined) {\n const deferOnOp = ir.createDeferOnOp(\n deferXref, {kind: ir.DeferTriggerKind.Timer, delay: triggers.timer.delay}, prefetch,\n triggers.timer.sourceSpan);\n deferOnOps.push(deferOnOp);\n }\n if (triggers.hover !== undefined) {\n const deferOnOp = ir.createDeferOnOp(\n deferXref, {\n kind: ir.DeferTriggerKind.Hover,\n targetName: triggers.hover.reference,\n targetXref: null,\n targetSlot: null,\n targetView: null,\n targetSlotViewSteps: null,\n },\n prefetch, triggers.hover.sourceSpan);\n deferOnOps.push(deferOnOp);\n }\n if (triggers.interaction !== undefined) {\n const deferOnOp = ir.createDeferOnOp(\n deferXref, {\n kind: ir.DeferTriggerKind.Interaction,\n targetName: triggers.interaction.reference,\n targetXref: null,\n targetSlot: null,\n targetView: null,\n targetSlotViewSteps: null,\n },\n prefetch, triggers.interaction.sourceSpan);\n deferOnOps.push(deferOnOp);\n }\n if (triggers.viewport !== undefined) {\n const deferOnOp = ir.createDeferOnOp(\n deferXref, {\n kind: ir.DeferTriggerKind.Viewport,\n targetName: triggers.viewport.reference,\n targetXref: null,\n targetSlot: null,\n targetView: null,\n targetSlotViewSteps: null,\n },\n prefetch, triggers.viewport.sourceSpan);\n deferOnOps.push(deferOnOp);\n }\n if (triggers.when !== undefined) {\n if (triggers.when.value instanceof e.Interpolation) {\n // TemplateDefinitionBuilder supports this case, but it's very strange to me. What would it\n // even mean?\n throw new Error(`Unexpected interpolation in defer block when trigger`);\n }\n const deferOnOp = ir.createDeferWhenOp(\n deferXref, convertAst(triggers.when.value, unit.job, triggers.when.sourceSpan), prefetch,\n triggers.when.sourceSpan);\n deferWhenOps.push(deferOnOp);\n }\n\n // If no (non-prefetching) defer triggers were provided, default to `idle`.\n if (deferOnOps.length === 0 && deferWhenOps.length === 0) {\n deferOnOps.push(\n ir.createDeferOnOp(deferXref, {kind: ir.DeferTriggerKind.Idle}, false, null!));\n }\n prefetch = true;\n }\n\n unit.create.push(deferOnOps);\n unit.update.push(deferWhenOps);\n}\n\nfunction ingestIcu(unit: ViewCompilationUnit, icu: t.Icu) {\n if (icu.i18n instanceof i18n.Message && isSingleI18nIcu(icu.i18n)) {\n const xref = unit.job.allocateXrefId();\n const icuNode = icu.i18n.nodes[0];\n unit.create.push(ir.createIcuStartOp(xref, icu.i18n, icuFromI18nMessage(icu.i18n).name, null!));\n for (const [placeholder, text] of Object.entries({...icu.vars, ...icu.placeholders})) {\n if (text instanceof t.BoundText) {\n ingestBoundText(unit, text, placeholder);\n } else {\n ingestText(unit, text, placeholder);\n }\n }\n unit.create.push(ir.createIcuEndOp(xref));\n } else {\n throw Error(`Unhandled i18n metadata type for ICU: ${icu.i18n?.constructor.name}`);\n }\n}\n\n/**\n * Ingest an `@for` block into the given `ViewCompilation`.\n */\nfunction ingestForBlock(unit: ViewCompilationUnit, forBlock: t.ForLoopBlock): void {\n const repeaterView = unit.job.allocateView(unit.xref);\n\n // Set all the context variables and aliases available in the repeater.\n repeaterView.contextVariables.set(forBlock.item.name, forBlock.item.value);\n repeaterView.contextVariables.set(\n forBlock.contextVariables.$index.name, forBlock.contextVariables.$index.value);\n repeaterView.contextVariables.set(\n forBlock.contextVariables.$count.name, forBlock.contextVariables.$count.value);\n\n // We copy TemplateDefinitionBuilder's scheme of creating names for `$count` and `$index` that are\n // suffixed with special information, to disambiguate which level of nested loop the below aliases\n // refer to.\n // TODO: We should refactor Template Pipeline's variable phases to gracefully handle shadowing,\n // and arbitrarily many levels of variables depending on each other.\n const indexName = `ɵ${forBlock.contextVariables.$index.name}_${repeaterView.xref}`;\n const countName = `ɵ${forBlock.contextVariables.$count.name}_${repeaterView.xref}`;\n repeaterView.contextVariables.set(indexName, forBlock.contextVariables.$index.value);\n repeaterView.contextVariables.set(countName, forBlock.contextVariables.$count.value);\n\n repeaterView.aliases.add({\n kind: ir.SemanticVariableKind.Alias,\n name: null,\n identifier: forBlock.contextVariables.$first.name,\n expression: new ir.LexicalReadExpr(indexName).identical(o.literal(0))\n });\n repeaterView.aliases.add({\n kind: ir.SemanticVariableKind.Alias,\n name: null,\n identifier: forBlock.contextVariables.$last.name,\n expression: new ir.LexicalReadExpr(indexName).identical(\n new ir.LexicalReadExpr(countName).minus(o.literal(1)))\n });\n repeaterView.aliases.add({\n kind: ir.SemanticVariableKind.Alias,\n name: null,\n identifier: forBlock.contextVariables.$even.name,\n expression: new ir.LexicalReadExpr(indexName).modulo(o.literal(2)).identical(o.literal(0))\n });\n repeaterView.aliases.add({\n kind: ir.SemanticVariableKind.Alias,\n name: null,\n identifier: forBlock.contextVariables.$odd.name,\n expression: new ir.LexicalReadExpr(indexName).modulo(o.literal(2)).notIdentical(o.literal(0))\n });\n\n const sourceSpan = convertSourceSpan(forBlock.trackBy.span, forBlock.sourceSpan);\n const track = convertAst(forBlock.trackBy, unit.job, sourceSpan);\n\n ingestNodes(repeaterView, forBlock.children);\n\n let emptyView: ViewCompilationUnit|null = null;\n let emptyTagName: string|null = null;\n if (forBlock.empty !== null) {\n emptyView = unit.job.allocateView(unit.xref);\n ingestNodes(emptyView, forBlock.empty.children);\n emptyTagName = ingestControlFlowInsertionPoint(unit, emptyView.xref, forBlock.empty);\n }\n\n const varNames: ir.RepeaterVarNames = {\n $index: forBlock.contextVariables.$index.name,\n $count: forBlock.contextVariables.$count.name,\n $first: forBlock.contextVariables.$first.name,\n $last: forBlock.contextVariables.$last.name,\n $even: forBlock.contextVariables.$even.name,\n $odd: forBlock.contextVariables.$odd.name,\n $implicit: forBlock.item.name,\n };\n\n if (forBlock.i18n !== undefined && !(forBlock.i18n instanceof i18n.BlockPlaceholder)) {\n throw Error('AssertionError: Unhandled i18n metadata type or @for');\n }\n if (forBlock.empty?.i18n !== undefined &&\n !(forBlock.empty.i18n instanceof i18n.BlockPlaceholder)) {\n throw Error('AssertionError: Unhandled i18n metadata type or @empty');\n }\n const i18nPlaceholder = forBlock.i18n;\n const emptyI18nPlaceholder = forBlock.empty?.i18n;\n\n const tagName = ingestControlFlowInsertionPoint(unit, repeaterView.xref, forBlock);\n const repeaterCreate = ir.createRepeaterCreateOp(\n repeaterView.xref, emptyView?.xref ?? null, tagName, track, varNames, emptyTagName,\n i18nPlaceholder, emptyI18nPlaceholder, forBlock.startSourceSpan, forBlock.sourceSpan);\n unit.create.push(repeaterCreate);\n\n const expression = convertAst(\n forBlock.expression, unit.job,\n convertSourceSpan(forBlock.expression.span, forBlock.sourceSpan));\n const repeater = ir.createRepeaterOp(\n repeaterCreate.xref, repeaterCreate.handle, expression, forBlock.sourceSpan);\n unit.update.push(repeater);\n}\n\n/**\n * Convert a template AST expression into an output AST expression.\n */\nfunction convertAst(\n ast: e.AST, job: CompilationJob, baseSourceSpan: ParseSourceSpan|null): o.Expression {\n if (ast instanceof e.ASTWithSource) {\n return convertAst(ast.ast, job, baseSourceSpan);\n } else if (ast instanceof e.PropertyRead) {\n const isThisReceiver = ast.receiver instanceof e.ThisReceiver;\n // Whether this is an implicit receiver, *excluding* explicit reads of `this`.\n const isImplicitReceiver =\n ast.receiver instanceof e.ImplicitReceiver && !(ast.receiver instanceof e.ThisReceiver);\n // Whether the name of the read is a node that should be never retain its explicit this\n // receiver.\n const isSpecialNode = ast.name === '$any' || ast.name === '$event';\n // TODO: The most sensible condition here would be simply `isImplicitReceiver`, to convert only\n // actual implicit `this` reads, and not explicit ones. However, TemplateDefinitionBuilder (and\n // the Typecheck block!) both have the same bug, in which they also consider explicit `this`\n // reads to be implicit. This causes problems when the explicit `this` read is inside a\n // template with a context that also provides the variable name being read:\n // ```\n // <ng-template let-a>{{this.a}}</ng-template>\n // ```\n // The whole point of the explicit `this` was to access the class property, but TDB and the\n // current TCB treat the read as implicit, and give you the context property instead!\n //\n // For now, we emulate this old behvaior by aggressively converting explicit reads to to\n // implicit reads, except for the special cases that TDB and the current TCB protect. However,\n // it would be an improvement to fix this.\n //\n // See also the corresponding comment for the TCB, in `type_check_block.ts`.\n if (isImplicitReceiver || (isThisReceiver && !isSpecialNode)) {\n return new ir.LexicalReadExpr(ast.name);\n } else {\n return new o.ReadPropExpr(\n convertAst(ast.receiver, job, baseSourceSpan), ast.name, null,\n convertSourceSpan(ast.span, baseSourceSpan));\n }\n } else if (ast instanceof e.PropertyWrite) {\n if (ast.receiver instanceof e.ImplicitReceiver) {\n return new o.WritePropExpr(\n // TODO: Is it correct to always use the root context in place of the implicit receiver?\n new ir.ContextExpr(job.root.xref), ast.name, convertAst(ast.value, job, baseSourceSpan),\n null, convertSourceSpan(ast.span, baseSourceSpan));\n }\n return new o.WritePropExpr(\n convertAst(ast.receiver, job, baseSourceSpan), ast.name,\n convertAst(ast.value, job, baseSourceSpan), undefined,\n convertSourceSpan(ast.span, baseSourceSpan));\n } else if (ast instanceof e.KeyedWrite) {\n return new o.WriteKeyExpr(\n convertAst(ast.receiver, job, baseSourceSpan), convertAst(ast.key, job, baseSourceSpan),\n convertAst(ast.value, job, baseSourceSpan), undefined,\n convertSourceSpan(ast.span, baseSourceSpan));\n } else if (ast instanceof e.Call) {\n if (ast.receiver instanceof e.ImplicitReceiver) {\n throw new Error(`Unexpected ImplicitReceiver`);\n } else {\n return new o.InvokeFunctionExpr(\n convertAst(ast.receiver, job, baseSourceSpan),\n ast.args.map(arg => convertAst(arg, job, baseSourceSpan)), undefined,\n convertSourceSpan(ast.span, baseSourceSpan));\n }\n } else if (ast instanceof e.LiteralPrimitive) {\n return o.literal(ast.value, undefined, convertSourceSpan(ast.span, baseSourceSpan));\n } else if (ast instanceof e.Unary) {\n switch (ast.operator) {\n case '+':\n return new o.UnaryOperatorExpr(\n o.UnaryOperator.Plus, convertAst(ast.expr, job, baseSourceSpan), undefined,\n convertSourceSpan(ast.span, baseSourceSpan));\n case '-':\n return new o.UnaryOperatorExpr(\n o.UnaryOperator.Minus, convertAst(ast.expr, job, baseSourceSpan), undefined,\n convertSourceSpan(ast.span, baseSourceSpan));\n default:\n throw new Error(`AssertionError: unknown unary operator ${ast.operator}`);\n }\n } else if (ast instanceof e.Binary) {\n const operator = BINARY_OPERATORS.get(ast.operation);\n if (operator === undefined) {\n throw new Error(`AssertionError: unknown binary operator ${ast.operation}`);\n }\n return new o.BinaryOperatorExpr(\n operator, convertAst(ast.left, job, baseSourceSpan),\n convertAst(ast.right, job, baseSourceSpan), undefined,\n convertSourceSpan(ast.span, baseSourceSpan));\n } else if (ast instanceof e.ThisReceiver) {\n // TODO: should context expressions have source maps?\n return new ir.ContextExpr(job.root.xref);\n } else if (ast instanceof e.KeyedRead) {\n return new o.ReadKeyExpr(\n convertAst(ast.receiver, job, baseSourceSpan), convertAst(ast.key, job, baseSourceSpan),\n undefined, convertSourceSpan(ast.span, baseSourceSpan));\n } else if (ast instanceof e.Chain) {\n throw new Error(`AssertionError: Chain in unknown context`);\n } else if (ast instanceof e.LiteralMap) {\n const entries = ast.keys.map((key, idx) => {\n const value = ast.values[idx];\n // TODO: should literals have source maps, or do we just map the whole surrounding\n // expression?\n return new o.LiteralMapEntry(key.key, convertAst(value, job, baseSourceSpan), key.quoted);\n });\n return new o.LiteralMapExpr(entries, undefined, convertSourceSpan(ast.span, baseSourceSpan));\n } else if (ast instanceof e.LiteralArray) {\n // TODO: should literals have source maps, or do we just map the whole surrounding expression?\n return new o.LiteralArrayExpr(\n ast.expressions.map(expr => convertAst(expr, job, baseSourceSpan)));\n } else if (ast instanceof e.Conditional) {\n return new o.ConditionalExpr(\n convertAst(ast.condition, job, baseSourceSpan),\n convertAst(ast.trueExp, job, baseSourceSpan), convertAst(ast.falseExp, job, baseSourceSpan),\n undefined, convertSourceSpan(ast.span, baseSourceSpan));\n } else if (ast instanceof e.NonNullAssert) {\n // A non-null assertion shouldn't impact generated instructions, so we can just drop it.\n return convertAst(ast.expression, job, baseSourceSpan);\n } else if (ast instanceof e.BindingPipe) {\n // TODO: pipes should probably have source maps; figure out details.\n return new ir.PipeBindingExpr(\n job.allocateXrefId(),\n new ir.SlotHandle(),\n ast.name,\n [\n convertAst(ast.exp, job, baseSourceSpan),\n ...ast.args.map(arg => convertAst(arg, job, baseSourceSpan)),\n ],\n );\n } else if (ast instanceof e.SafeKeyedRead) {\n return new ir.SafeKeyedReadExpr(\n convertAst(ast.receiver, job, baseSourceSpan), convertAst(ast.key, job, baseSourceSpan),\n convertSourceSpan(ast.span, baseSourceSpan));\n } else if (ast instanceof e.SafePropertyRead) {\n // TODO: source span\n return new ir.SafePropertyReadExpr(convertAst(ast.receiver, job, baseSourceSpan), ast.name);\n } else if (ast instanceof e.SafeCall) {\n // TODO: source span\n return new ir.SafeInvokeFunctionExpr(\n convertAst(ast.receiver, job, baseSourceSpan),\n ast.args.map(a => convertAst(a, job, baseSourceSpan)));\n } else if (ast instanceof e.EmptyExpr) {\n return new ir.EmptyExpr(convertSourceSpan(ast.span, baseSourceSpan));\n } else if (ast instanceof e.PrefixNot) {\n return o.not(\n convertAst(ast.expression, job, baseSourceSpan),\n convertSourceSpan(ast.span, baseSourceSpan));\n } else {\n throw new Error(`Unhandled expression type \"${ast.constructor.name}\" in file \"${\n baseSourceSpan?.start.file.url}\"`);\n }\n}\n\nfunction convertAstWithInterpolation(\n job: CompilationJob, value: e.AST|string, i18nMeta: i18n.I18nMeta|null|undefined,\n sourceSpan?: ParseSourceSpan): o.Expression|ir.Interpolation {\n let expression: o.Expression|ir.Interpolation;\n if (value instanceof e.Interpolation) {\n expression = new ir.Interpolation(\n value.strings, value.expressions.map(e => convertAst(e, job, sourceSpan ?? null)),\n Object.keys(asMessage(i18nMeta)?.placeholders ?? {}));\n } else if (value instanceof e.AST) {\n expression = convertAst(value, job, sourceSpan ?? null);\n } else {\n expression = o.literal(value);\n }\n return expression;\n}\n\n// TODO: Can we populate Template binding kinds in ingest?\nconst BINDING_KINDS = new Map<e.BindingType, ir.BindingKind>([\n [e.BindingType.Property, ir.BindingKind.Property],\n // TODO(crisbeto): we'll need a different BindingKind for two-way bindings.\n [e.BindingType.TwoWay, ir.BindingKind.Property],\n [e.BindingType.Attribute, ir.BindingKind.Attribute],\n [e.BindingType.Class, ir.BindingKind.ClassName],\n [e.BindingType.Style, ir.BindingKind.StyleProperty],\n [e.BindingType.Animation, ir.BindingKind.Animation],\n]);\n\n/**\n * Checks whether the given template is a plain ng-template (as opposed to another kind of template\n * such as a structural directive template or control flow template). This is checked based on the\n * tagName. We can expect that only plain ng-templates will come through with a tagName of\n * 'ng-template'.\n *\n * Here are some of the cases we expect:\n *\n * | Angular HTML | Template tagName |\n * | ---------------------------------- | ------------------ |\n * | `<ng-template>` | 'ng-template' |\n * | `<div *ngIf=\"true\">` | 'div' |\n * | `<svg><ng-template>` | 'svg:ng-template' |\n * | `@if (true) {` | 'Conditional' |\n * | `<ng-template *ngIf>` (plain) | 'ng-template' |\n * | `<ng-template *ngIf>` (structural) | null |\n */\nfunction isPlainTemplate(tmpl: t.Template) {\n return splitNsName(tmpl.tagName ?? '')[1] === NG_TEMPLATE_TAG_NAME;\n}\n\n/**\n * Ensures that the i18nMeta, if provided, is an i18n.Message.\n */\nfunction asMessage(i18nMeta: i18n.I18nMeta|null|undefined): i18n.Message|null {\n if (i18nMeta == null) {\n return null;\n }\n if (!(i18nMeta instanceof i18n.Message)) {\n throw Error(`Expected i18n meta to be a Message, but got: ${i18nMeta.constructor.name}`);\n }\n return i18nMeta;\n}\n\n/**\n * Process all of the bindings on an element in the template AST and convert them to their IR\n * representation.\n */\nfunction ingestElementBindings(\n unit: ViewCompilationUnit, op: ir.ElementOpBase, element: t.Element): void {\n let bindings = new Array<ir.BindingOp|ir.ExtractedAttributeOp|null>();\n\n let i18nAttributeBindingNames = new Set<string>();\n\n for (const attr of element.attributes) {\n // Attribute literal bindings, such as `attr.foo=\"bar\"`.\n const securityContext = domSchema.securityContext(element.name, attr.name, true);\n bindings.push(ir.createBindingOp(\n op.xref, ir.BindingKind.Attribute, attr.name,\n convertAstWithInterpolation(unit.job, attr.value, attr.i18n), null, securityContext, true,\n false, null, asMessage(attr.i18n), attr.sourceSpan));\n if (attr.i18n) {\n i18nAttributeBindingNames.add(attr.name);\n }\n }\n\n for (const input of element.inputs) {\n if (i18nAttributeBindingNames.has(input.name)) {\n console.error(`On component ${unit.job.componentName}, the binding ${\n input\n .name} is both an i18n attribute and a property. You may want to remove the property binding. This will become a compilation error in future versions of Angular.`);\n }\n // All dynamic bindings (both attribute and property bindings).\n bindings.push(ir.createBindingOp(\n op.xref, BINDING_KINDS.get(input.type)!, input.name,\n convertAstWithInterpolation(unit.job, astOf(input.value), input.i18n), input.unit,\n input.securityContext, false, false, null, asMessage(input.i18n) ?? null,\n input.sourceSpan));\n }\n\n unit.create.push(bindings.filter(\n (b): b is ir.ExtractedAttributeOp => b?.kind === ir.OpKind.ExtractedAttribute));\n unit.update.push(bindings.filter((b): b is ir.BindingOp => b?.kind === ir.OpKind.Binding));\n\n for (const output of element.outputs) {\n if (output.type === e.ParsedEventType.Animation && output.phase === null) {\n throw Error('Animation listener should have a phase');\n }\n\n unit.create.push(ir.createListenerOp(\n op.xref, op.handle, output.name, op.tag,\n makeListenerHandlerOps(unit, output.handler, output.handlerSpan), output.phase,\n output.target, false, output.sourceSpan));\n }\n\n // If any of the bindings on this element have an i18n message, then an i18n attrs configuration\n // op is also required.\n if (bindings.some(b => b?.i18nMessage) !== null) {\n unit.create.push(\n ir.createI18nAttributesOp(unit.job.allocateXrefId(), new ir.SlotHandle(), op.xref));\n }\n}\n\n/**\n * Process all of the bindings on a template in the template AST and convert them to their IR\n * representation.\n */\nfunction ingestTemplateBindings(\n unit: ViewCompilationUnit, op: ir.ElementOpBase, template: t.Template,\n templateKind: ir.TemplateKind|null): void {\n let bindings = new Array<ir.BindingOp|ir.ExtractedAttributeOp|null>();\n\n for (const attr of template.templateAttrs) {\n if (attr instanceof t.TextAttribute) {\n const securityContext = domSchema.securityContext(NG_TEMPLATE_TAG_NAME, attr.name, true);\n bindings.push(createTemplateBinding(\n unit, op.xref, e.BindingType.Attribute, attr.name, attr.value, null, securityContext,\n true, templateKind, asMessage(attr.i18n), attr.sourceSpan));\n } else {\n bindings.push(createTemplateBinding(\n unit, op.xref, attr.type, attr.name, astOf(attr.value), attr.unit, attr.securityContext,\n true, templateKind, asMessage(attr.i18n), attr.sourceSpan));\n }\n }\n\n for (const attr of template.attributes) {\n // Attribute literal bindings, such as `attr.foo=\"bar\"`.\n const securityContext = domSchema.securityContext(NG_TEMPLATE_TAG_NAME, attr.name, true);\n bindings.push(createTemplateBinding(\n unit, op.xref, e.BindingType.Attribute, attr.name, attr.value, null, securityContext, false,\n templateKind, asMessage(attr.i18n), attr.sourceSpan));\n }\n\n for (const input of template.inputs) {\n // Dynamic bindings (both attribute and property bindings).\n bindings.push(createTemplateBinding(\n unit, op.xref, input.type, input.name, astOf(input.value), input.unit,\n input.securityContext, false, templateKind, asMessage(input.i18n), input.sourceSpan));\n }\n\n unit.create.push(bindings.filter(\n (b): b is ir.ExtractedAttributeOp => b?.kind === ir.OpKind.ExtractedAttribute));\n unit.update.push(bindings.filter((b): b is ir.BindingOp => b?.kind === ir.OpKind.Binding));\n\n for (const output of template.outputs) {\n if (output.type === e.ParsedEventType.Animation && output.phase === null) {\n throw Error('Animation listener should have a phase');\n }\n\n if (templateKind === ir.TemplateKind.NgTemplate) {\n unit.create.push(ir.createListenerOp(\n op.xref, op.handle, output.name, op.tag,\n makeListenerHandlerOps(unit, output.handler, output.handlerSpan), output.phase,\n output.target, false, output.sourceSpan));\n }\n if (templateKind === ir.TemplateKind.Structural &&\n output.type !== e.ParsedEventType.Animation) {\n // Animation bindings are excluded from the structural template's const array.\n const securityContext = domSchema.securityContext(NG_TEMPLATE_TAG_NAME, output.name, false);\n unit.create.push(ir.createExtractedAttributeOp(\n op.xref, ir.BindingKind.Property, null, output.name, null, null, null, securityContext));\n }\n }\n\n // TODO: Perhaps we could do this in a phase? (It likely wouldn't change the slot indices.)\n if (bindings.some(b => b?.i18nMessage) !== null) {\n unit.create.push(\n ir.createI18nAttributesOp(unit.job.allocateXrefId(), new ir.SlotHandle(), op.xref));\n }\n}\n\n/**\n * Helper to ingest an individual binding on a template, either an explicit `ng-template`, or an\n * implicit template created via structural directive.\n *\n * Bindings on templates are *extremely* tricky. I have tried to isolate all of the confusing edge\n * cases into this function, and to comment it well to document the behavior.\n *\n * Some of this behavior is intuitively incorrect, and we should consider changing it in the future.\n *\n * @param view The compilation unit for the view containing the template.\n * @param xref The xref of the template op.\n * @param type The binding type, according to the parser. This is fairly reasonable, e.g. both\n * dynamic and static attributes have e.BindingType.Attribute.\n * @param name The binding's name.\n * @param value The bindings's value, which will either be an input AST expression, or a string\n * literal. Note that the input AST expression may or may not be const -- it will only be a\n * string literal if the parser considered it a text binding.\n * @param unit If the binding has a unit (e.g. `px` for style bindings), then this is the unit.\n * @param securityContext The security context of the binding.\n * @param isStructuralTemplateAttribute Whether this binding actually applies to the structural\n * ng-template. For example, an `ngFor` would actually apply to the structural template. (Most\n * bindings on structural elements target the inner element, not the template.)\n * @param templateKind Whether this is an explicit `ng-template` or an implicit template created by\n * a structural directive. This should never be a block template.\n * @param i18nMessage The i18n metadata for the binding, if any.\n * @param sourceSpan The source span of the binding.\n * @returns An IR binding op, or null if the binding should be skipped.\n */\nfunction createTemplateBinding(\n view: ViewCompilationUnit, xref: ir.XrefId, type: e.BindingType, name: string,\n value: e.AST|string, unit: string|null, securityContext: SecurityContext,\n isStructuralTemplateAttribute: boolean, templateKind: ir.TemplateKind|null,\n i18nMessage: i18n.Message|null, sourceSpan: ParseSourceSpan): ir.BindingOp|\n ir.ExtractedAttributeOp|null {\n const isTextBinding = typeof value === 'string';\n // If this is a structural template, then several kinds of bindings should not result in an\n // update instruction.\n if (templateKind === ir.TemplateKind.Structural) {\n if (!isStructuralTemplateAttribute &&\n (type === e.BindingType.Property || type === e.BindingType.TwoWay ||\n type === e.BindingType.Class || type === e.BindingType.Style)) {\n // Because this binding doesn't really target the ng-template, it must be a binding on an\n // inner node of a structural template. We can't skip it entirely, because we still need it on\n // the ng-template's consts (e.g. for the purposes of directive matching). However, we should\n // not generate an update instruction for it.\n return ir.createExtractedAttributeOp(\n xref, ir.BindingKind.Property, null, name, null, null, i18nMessage, securityContext);\n }\n\n if (!isTextBinding && (type === e.BindingType.Attribute || type === e.BindingType.Animation)) {\n // Again, this binding doesn't really target the ng-template; it actually targets the element\n // inside the structural template. In the case of non-text attribute or animation bindings,\n // the binding doesn't even show up on the ng-template const array, so we just skip it\n // entirely.\n return null;\n }\n }\n\n let bindingType = BINDING_KINDS.get(type)!;\n\n if (templateKind === ir.TemplateKind.NgTemplate) {\n // We know we are dealing with bindings directly on an explicit ng-template.\n // Static attribute bindings should be collected into the const array as k/v pairs. Property\n // bindings should result in a `property` instruction, and `AttributeMarker.Bindings` const\n // entries.\n //\n // The difficulty is with dynamic attribute, style, and class bindings. These don't really make\n // sense on an `ng-template` and should probably be parser errors. However,\n // TemplateDefinitionBuilder generates `property` instructions for them, and so we do that as\n // well.\n //\n // Note that we do have a slight behavior difference with TemplateDefinitionBuilder: although\n // TDB emits `property` instructions for dynamic attributes, styles, and classes, only styles\n // and classes also get const collected into the `AttributeMarker.Bindings` field. Dynamic\n // attribute bindings are missing from the consts entirely. We choose to emit them into the\n // consts field anyway, to avoid creating special cases for something so arcane and nonsensical.\n if (type === e.BindingType.Class || type === e.BindingType.Style ||\n (type === e.BindingType.Attribute && !isTextBinding)) {\n // TODO: These cases should be parse errors.\n bindingType = ir.BindingKind.Property;\n }\n }\n\n return ir.createBindingOp(\n xref, bindingType, name, convertAstWithInterpolation(view.job, value, i18nMessage), unit,\n securityContext, isTextBinding, isStructuralTemplateAttribute, templateKind, i18nMessage,\n sourceSpan);\n}\n\nfunction makeListenerHandlerOps(\n unit: CompilationUnit, handler: e.AST, handlerSpan: ParseSourceSpan): ir.UpdateOp[] {\n handler = astOf(handler);\n const handlerOps = new Array<ir.UpdateOp>();\n let handlerExprs: e.AST[] = handler instanceof e.Chain ? handler.expressions : [handler];\n if (handlerExprs.length === 0) {\n throw new Error('Expected listener to have non-empty expression list.');\n }\n const expressions = handlerExprs.map(expr => convertAst(expr, unit.job, handlerSpan));\n const returnExpr = expressions.pop()!;\n handlerOps.push(...expressions.map(\n e => ir.createStatementOp<ir.UpdateOp>(new o.ExpressionStatement(e, e.sourceSpan))));\n handlerOps.push(ir.createStatementOp(new o.ReturnStatement(returnExpr, returnExpr.sourceSpan)));\n return handlerOps;\n}\n\nfunction astOf(ast: e.AST|e.ASTWithSource): e.AST {\n return ast instanceof e.ASTWithSource ? ast.ast : ast;\n}\n\n/**\n * Process all of the local references on an element-like structure in the template AST and\n * convert them to their IR representation.\n */\nfunction ingestReferences(op: ir.ElementOpBase, element: t.Element|t.Template): void {\n assertIsArray<ir.LocalRef>(op.localRefs);\n for (const {name, value} of element.references) {\n op.localRefs.push({\n name,\n target: value,\n });\n }\n}\n\n/**\n * Assert that the given value is an array.\n */\nfunction assertIsArray<T>(value: any): asserts value is Array<T> {\n if (!Array.isArray(value)) {\n throw new Error(`AssertionError: expected an array`);\n }\n}\n\n/**\n * Creates an absolute `ParseSourceSpan` from the relative `ParseSpan`.\n *\n * `ParseSpan` objects are relative to the start of the expression.\n * This method converts these to full `ParseSourceSpan` objects that\n * show where the span is within the overall source file.\n *\n * @param span the relative span to convert.\n * @param baseSourceSpan a span corresponding to the base of the expression tree.\n * @returns a `ParseSourceSpan` for the given span or null if no `baseSourceSpan` was provided.\n */\nfunction convertSourceSpan(\n span: e.ParseSpan, baseSourceSpan: ParseSourceSpan|null): ParseSourceSpan|null {\n if (baseSourceSpan === null) {\n return null;\n }\n const start = baseSourceSpan.start.moveBy(span.start);\n const end = baseSourceSpan.start.moveBy(span.end);\n const fullStart = baseSourceSpan.fullStart.moveBy(span.start);\n return new ParseSourceSpan(start, end, fullStart);\n}\n\n/**\n * With the directive-based control flow users were able to conditionally project content using\n * the `*` syntax. E.g. `<div *ngIf=\"expr\" projectMe></div>` will be projected into\n * `<ng-content select=\"[projectMe]\"/>`, because the attributes and tag name from the `div` are\n * copied to the template via the template creation instruction. With `@if` and `@for` that is\n * not the case, because the conditional is placed *around* elements, rather than *on* them.\n * The result is that content projection won't work in the same way if a user converts from\n * `*ngIf` to `@if`.\n *\n * This function aims to cover the most common case by doing the same copying when a control flow\n * node has *one and only one* root element or template node.\n *\n * This approach comes with some caveats:\n * 1. As soon as any other node is added to the root, the copying behavior won't work anymore.\n * A diagnostic will be added to flag cases like this and to explain how to work around it.\n * 2. If `preserveWhitespaces` is enabled, it's very likely that indentation will break this\n * workaround, because it'll include an additional text node as the first child. We can work\n * around it here, but in a discussion it was decided not to, because the user explicitly opted\n * into preserving the whitespace and we would have to drop it from the generated code.\n * The diagnostic mentioned point #1 will flag such cases to users.\n *\n * @returns Tag name to be used for the control flow template.\n */\nfunction ingestControlFlowInsertionPoint(\n unit: ViewCompilationUnit, xref: ir.XrefId,\n node: t.IfBlockBranch|t.ForLoopBlock|t.ForLoopBlockEmpty): string|null {\n let root: t.Element|t.Template|null = null;\n\n for (const child of node.children) {\n // Skip over comment nodes.\n if (child instanceof t.Comment) {\n continue;\n }\n\n // We can only infer the tag name/attributes if there's a single root node.\n if (root !== null) {\n return null;\n }\n\n // Root nodes can only elements or templates with a tag name (e.g. `<div *foo></div>`).\n if (child instanceof t.Element || (child instanceof t.Template && child.tagName !== null)) {\n root = child;\n }\n }\n\n // If we've found a single root node, its tag name and *static* attributes can be copied\n // to the surrounding template to be used for content projection. Note that it's important\n // that we don't copy any bound attributes since they don't participate in content projection\n // and they can be used in directive matching (in the case of `Template.templateAttrs`).\n if (root !== null) {\n for (const attr of root.attributes) {\n const securityContext = domSchema.securityContext(NG_TEMPLATE_TAG_NAME, attr.name, true);\n unit.update.push(ir.createBindingOp(\n xref, ir.BindingKind.Attribute, attr.name, o.literal(attr.value), null, securityContext,\n true, false, null, asMessage(attr.i18n), attr.sourceSpan));\n }\n\n const tagName = root instanceof t.Element ? root.name : root.tagName;\n\n // Don't pass along `ng-template` tag name since it enables directive matching.\n return tagName === NG_TEMPLATE_TAG_NAME ? null : tagName;\n }\n\n return null;\n}\n","export const USE_TEMPLATE_PIPELINE = false;\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nimport {AttributeMarker} from '../../core';\nimport {AST, ASTWithSource, BindingPipe, BindingType, EmptyExpr, Interpolation} from '../../expression_parser/ast';\nimport * as o from '../../output/output_ast';\nimport {ParseSourceSpan} from '../../parse_util';\nimport * as t from '../r3_ast';\nimport {Identifiers as R3} from '../r3_identifiers';\n\nimport {hyphenate, parse as parseStyle} from './style_parser';\nimport {ValueConverter} from './template';\nimport {DefinitionMap, getInterpolationArgsLength} from './util';\n\nconst IMPORTANT_FLAG = '!important';\n\n/**\n * Minimum amount of binding slots required in the runtime for style/class bindings.\n *\n * Styling in Angular uses up two slots in the runtime LView/TData data structures to\n * record binding data, property information and metadata.\n *\n * When a binding is registered it will place the following information in the `LView`:\n *\n * slot 1) binding value\n * slot 2) cached value (all other values collected before it in string form)\n *\n * When a binding is registered it will place the following information in the `TData`:\n *\n * slot 1) prop name\n * slot 2) binding index that points to the previous style/class binding (and some extra config\n * values)\n *\n * Let's imagine we have a binding that looks like so:\n *\n * ```\n * <div [style.width]=\"x\" [style.height]=\"y\">\n * ```\n *\n * Our `LView` and `TData` data-structures look like so:\n *\n * ```typescript\n * LView = [\n * // ...\n * x, // value of x\n * \"width: x\",\n *\n * y, // value of y\n * \"width: x; height: y\",\n * // ...\n * ];\n *\n * TData = [\n * // ...\n * \"width\", // binding slot 20\n * 0,\n *\n * \"height\",\n * 20,\n * // ...\n * ];\n * ```\n *\n * */\nexport const MIN_STYLING_BINDING_SLOTS_REQUIRED = 2;\n\n/**\n * A styling expression summary that is to be processed by the compiler\n */\nexport interface StylingInstruction {\n reference: o.ExternalReference;\n /** Calls to individual styling instructions. Used when chaining calls to the same instruction. */\n calls: StylingInstructionCall[];\n}\n\nexport interface StylingInstructionCall {\n sourceSpan: ParseSourceSpan|null;\n supportsInterpolation: boolean;\n allocateBindingSlots: number;\n params: ((convertFn: (value: any) => o.Expression | o.Expression[]) => o.Expression[]);\n}\n\n/**\n * An internal record of the input data for a styling binding\n */\ninterface BoundStylingEntry {\n hasOverrideFlag: boolean;\n name: string|null;\n suffix: string|null;\n sourceSpan: ParseSourceSpan;\n value: AST;\n}\n\n/**\n * Produces creation/update instructions for all styling bindings (class and style)\n *\n * It also produces the creation instruction to register all initial styling values\n * (which are all the static class=\"...\" and style=\"...\" attribute values that exist\n * on an element within a template).\n *\n * The builder class below handles producing instructions for the following cases:\n *\n * - Static style/class attributes (style=\"...\" and class=\"...\")\n * - Dynamic style/class map bindings ([style]=\"map\" and [class]=\"map|string\")\n * - Dynamic style/class property bindings ([style.prop]=\"exp\" and [class.name]=\"exp\")\n *\n * Due to the complex relationship of all of these cases, the instructions generated\n * for these attributes/properties/bindings must be done so in the correct order. The\n * order which these must be generated is as follows:\n *\n * if (createMode) {\n * styling(...)\n * }\n * if (updateMode) {\n * styleMap(...)\n * classMap(...)\n * styleProp(...)\n * classProp(...)\n * }\n *\n * The creation/update methods within the builder class produce these instructions.\n */\nexport class StylingBuilder {\n /** Whether or not there are any static styling values present */\n private _hasInitialValues = false;\n /**\n * Whether or not there are any styling bindings present\n * (i.e. `[style]`, `[class]`, `[style.prop]` or `[class.name]`)\n */\n public hasBindings = false;\n public hasBindingsWithPipes = false;\n\n /** the input for [class] (if it exists) */\n private _classMapInput: BoundStylingEntry|null = null;\n /** the input for [style] (if it exists) */\n private _styleMapInput: BoundStylingEntry|null = null;\n /** an array of each [style.prop] input */\n private _singleStyleInputs: BoundStylingEntry[]|null = null;\n /** an array of each [class.name] input */\n private _singleClassInputs: BoundStylingEntry[]|null = null;\n private _lastStylingInput: BoundStylingEntry|null = null;\n private _firstStylingInput: BoundStylingEntry|null = null;\n\n // maps are used instead of hash maps because a Map will\n // retain the ordering of the keys\n\n /**\n * Represents the location of each style binding in the template\n * (e.g. `<div [style.width]=\"w\" [style.height]=\"h\">` implies\n * that `width=0` and `height=1`)\n */\n private _stylesIndex = new Map<string, number>();\n\n /**\n * Represents the location of each class binding in the template\n * (e.g. `<div [class.big]=\"b\" [class.hidden]=\"h\">` implies\n * that `big=0` and `hidden=1`)\n */\n private _classesIndex = new Map<string, number>();\n private _initialStyleValues: string[] = [];\n private _initialClassValues: string[] = [];\n\n constructor(private _directiveExpr: o.Expression|null) {}\n\n /**\n * Registers a given input to the styling builder to be later used when producing AOT code.\n *\n * The code below will only accept the input if it is somehow tied to styling (whether it be\n * style/class bindings or static style/class attributes).\n */\n registerBoundInput(input: t.BoundAttribute): boolean {\n // [attr.style] or [attr.class] are skipped in the code below,\n // they should not be treated as styling-based bindings since\n // they are intended to be written directly to the attr and\n // will therefore skip all style/class resolution that is present\n // with style=\"\", [style]=\"\" and [style.prop]=\"\", class=\"\",\n // [class.prop]=\"\". [class]=\"\" assignments\n let binding: BoundStylingEntry|null = null;\n let name = input.name;\n switch (input.type) {\n case BindingType.Property:\n binding = this.registerInputBasedOnName(name, input.value, input.sourceSpan);\n break;\n case BindingType.Style:\n binding = this.registerStyleInput(name, false, input.value, input.sourceSpan, input.unit);\n break;\n case BindingType.Class:\n binding = this.registerClassInput(name, false, input.value, input.sourceSpan);\n break;\n }\n return binding ? true : false;\n }\n\n registerInputBasedOnName(name: string, expression: AST, sourceSpan: ParseSourceSpan) {\n let binding: BoundStylingEntry|null = null;\n const prefix = name.substring(0, 6);\n const isStyle = name === 'style' || prefix === 'style.' || prefix === 'style!';\n const isClass = !isStyle && (name === 'class' || prefix === 'class.' || prefix === 'class!');\n if (isStyle || isClass) {\n const isMapBased = name.charAt(5) !== '.'; // style.prop or class.prop makes this a no\n const property = name.slice(isMapBased ? 5 : 6); // the dot explains why there's a +1\n if (isStyle) {\n binding = this.registerStyleInput(property, isMapBased, expression, sourceSpan);\n } else {\n binding = this.registerClassInput(property, isMapBased, expression, sourceSpan);\n }\n }\n return binding;\n }\n\n registerStyleInput(\n name: string, isMapBased: boolean, value: AST, sourceSpan: ParseSourceSpan,\n suffix?: string|null): BoundStylingEntry|null {\n if (isEmptyExpression(value)) {\n return null;\n }\n // CSS custom properties are case-sensitive so we shouldn't normalize them.\n // See: https://www.w3.org/TR/css-variables-1/#defining-variables\n if (!isCssCustomProperty(name)) {\n name = hyphenate(name);\n }\n const {property, hasOverrideFlag, suffix: bindingSuffix} = parseProperty(name);\n suffix = typeof suffix === 'string' && suffix.length !== 0 ? suffix : bindingSuffix;\n const entry:\n BoundStylingEntry = {name: property, suffix: suffix, value, sourceSpan, hasOverrideFlag};\n if (isMapBased) {\n this._styleMapInput = entry;\n } else {\n (this._singleStyleInputs = this._singleStyleInputs || []).push(entry);\n registerIntoMap(this._stylesIndex, property);\n }\n this._lastStylingInput = entry;\n this._firstStylingInput = this._firstStylingInput || entry;\n this._checkForPipes(value);\n this.hasBindings = true;\n return entry;\n }\n\n registerClassInput(name: string, isMapBased: boolean, value: AST, sourceSpan: ParseSourceSpan):\n BoundStylingEntry|null {\n if (isEmptyExpression(value)) {\n return null;\n }\n const {property, hasOverrideFlag} = parseProperty(name);\n const entry:\n BoundStylingEntry = {name: property, value, sourceSpan, hasOverrideFlag, suffix: null};\n if (isMapBased) {\n this._classMapInput = entry;\n } else {\n (this._singleClassInputs = this._singleClassInputs || []).push(entry);\n registerIntoMap(this._classesIndex, property);\n }\n this._lastStylingInput = entry;\n this._firstStylingInput = this._firstStylingInput || entry;\n this._checkForPipes(value);\n this.hasBindings = true;\n return entry;\n }\n\n private _checkForPipes(value: AST) {\n if ((value instanceof ASTWithSource) && (value.ast instanceof BindingPipe)) {\n this.hasBindingsWithPipes = true;\n }\n }\n\n /**\n * Registers the element's static style string value to the builder.\n *\n * @param value the style string (e.g. `width:100px; height:200px;`)\n */\n registerStyleAttr(value: string) {\n this._initialStyleValues = parseStyle(value);\n this._hasInitialValues = true;\n }\n\n /**\n * Registers the element's static class string value to the builder.\n *\n * @param value the className string (e.g. `disabled gold zoom`)\n */\n registerClassAttr(value: string) {\n this._initialClassValues = value.trim().split(/\\s+/g);\n this._hasInitialValues = true;\n }\n\n /**\n * Appends all styling-related expressions to the provided attrs array.\n *\n * @param attrs an existing array where each of the styling expressions\n * will be inserted into.\n */\n populateInitialStylingAttrs(attrs: o.Expression[]): void {\n // [CLASS_MARKER, 'foo', 'bar', 'baz' ...]\n if (this._initialClassValues.length) {\n attrs.push(o.literal(AttributeMarker.Classes));\n for (let i = 0; i < this._initialClassValues.length; i++) {\n attrs.push(o.literal(this._initialClassValues[i]));\n }\n }\n\n // [STYLE_MARKER, 'width', '200px', 'height', '100px', ...]\n if (this._initialStyleValues.length) {\n attrs.push(o.literal(AttributeMarker.Styles));\n for (let i = 0; i < this._initialStyleValues.length; i += 2) {\n attrs.push(\n o.literal(this._initialStyleValues[i]), o.literal(this._initialStyleValues[i + 1]));\n }\n }\n }\n\n /**\n * Builds an instruction with all the expressions and parameters for `elementHostAttrs`.\n *\n * The instruction generation code below is used for producing the AOT statement code which is\n * responsible for registering initial styles (within a directive hostBindings' creation block),\n * as well as any of the provided attribute values, to the directive host element.\n */\n assignHostAttrs(attrs: o.Expression[], definitionMap: DefinitionMap): void {\n if (this._directiveExpr && (attrs.length || this._hasInitialValues)) {\n this.populateInitialStylingAttrs(attrs);\n definitionMap.set('hostAttrs', o.literalArr(attrs));\n }\n }\n\n /**\n * Builds an instruction with all the expressions and parameters for `classMap`.\n *\n * The instruction data will contain all expressions for `classMap` to function\n * which includes the `[class]` expression params.\n */\n buildClassMapInstruction(valueConverter: ValueConverter): StylingInstruction|null {\n if (this._classMapInput) {\n return this._buildMapBasedInstruction(valueConverter, true, this._classMapInput);\n }\n return null;\n }\n\n /**\n * Builds an instruction with all the expressions and parameters for `styleMap`.\n *\n * The instruction data will contain all expressions for `styleMap` to function\n * which includes the `[style]` expression params.\n */\n buildStyleMapInstruction(valueConverter: ValueConverter): StylingInstruction|null {\n if (this._styleMapInput) {\n return this._buildMapBasedInstruction(valueConverter, false, this._styleMapInput);\n }\n return null;\n }\n\n private _buildMapBasedInstruction(\n valueConverter: ValueConverter, isClassBased: boolean,\n stylingInput: BoundStylingEntry): StylingInstruction {\n // each styling binding value is stored in the LView\n // map-based bindings allocate two slots: one for the\n // previous binding value and another for the previous\n // className or style attribute value.\n let totalBindingSlotsRequired = MIN_STYLING_BINDING_SLOTS_REQUIRED;\n\n // these values must be outside of the update block so that they can\n // be evaluated (the AST visit call) during creation time so that any\n // pipes can be picked up in time before the template is built\n const mapValue = stylingInput.value.visit(valueConverter);\n let reference: o.ExternalReference;\n if (mapValue instanceof Interpolation) {\n totalBindingSlotsRequired += mapValue.expressions.length;\n reference = isClassBased ? getClassMapInterpolationExpression(mapValue) :\n getStyleMapInterpolationExpression(mapValue);\n } else {\n reference = isClassBased ? R3.classMap : R3.styleMap;\n }\n\n return {\n reference,\n calls: [{\n supportsInterpolation: true,\n sourceSpan: stylingInput.sourceSpan,\n allocateBindingSlots: totalBindingSlotsRequired,\n params: (convertFn: (value: any) => o.Expression|o.Expression[]) => {\n const convertResult = convertFn(mapValue);\n const params = Array.isArray(convertResult) ? convertResult : [convertResult];\n return params;\n }\n }]\n };\n }\n\n private _buildSingleInputs(\n reference: o.ExternalReference, inputs: BoundStylingEntry[], valueConverter: ValueConverter,\n getInterpolationExpressionFn: ((value: Interpolation) => o.ExternalReference)|null,\n isClassBased: boolean): StylingInstruction[] {\n const instructions: StylingInstruction[] = [];\n\n inputs.forEach(input => {\n const previousInstruction: StylingInstruction|undefined =\n instructions[instructions.length - 1];\n const value = input.value.visit(valueConverter);\n let referenceForCall = reference;\n\n // each styling binding value is stored in the LView\n // but there are two values stored for each binding:\n // 1) the value itself\n // 2) an intermediate value (concatenation of style up to this point).\n // We need to store the intermediate value so that we don't allocate\n // the strings on each CD.\n let totalBindingSlotsRequired = MIN_STYLING_BINDING_SLOTS_REQUIRED;\n\n if (value instanceof Interpolation) {\n totalBindingSlotsRequired += value.expressions.length;\n\n if (getInterpolationExpressionFn) {\n referenceForCall = getInterpolationExpressionFn(value);\n }\n }\n\n const call = {\n sourceSpan: input.sourceSpan,\n allocateBindingSlots: totalBindingSlotsRequired,\n supportsInterpolation: !!getInterpolationExpressionFn,\n params: (convertFn: (value: any) => o.Expression | o.Expression[]) => {\n // params => stylingProp(propName, value, suffix)\n const params: o.Expression[] = [];\n params.push(o.literal(input.name));\n\n const convertResult = convertFn(value);\n if (Array.isArray(convertResult)) {\n params.push(...convertResult);\n } else {\n params.push(convertResult);\n }\n\n // [style.prop] bindings may use suffix values (e.g. px, em, etc...), therefore,\n // if that is detected then we need to pass that in as an optional param.\n if (!isClassBased && input.suffix !== null) {\n params.push(o.literal(input.suffix));\n }\n\n return params;\n }\n };\n\n // If we ended up generating a call to the same instruction as the previous styling property\n // we can chain the calls together safely to save some bytes, otherwise we have to generate\n // a separate instruction call. This is primarily a concern with interpolation instructions\n // where we may start off with one `reference`, but end up using another based on the\n // number of interpolations.\n if (previousInstruction && previousInstruction.reference === referenceForCall) {\n previousInstruction.calls.push(call);\n } else {\n instructions.push({reference: referenceForCall, calls: [call]});\n }\n });\n\n return instructions;\n }\n\n private _buildClassInputs(valueConverter: ValueConverter): StylingInstruction[] {\n if (this._singleClassInputs) {\n return this._buildSingleInputs(\n R3.classProp, this._singleClassInputs, valueConverter, null, true);\n }\n return [];\n }\n\n private _buildStyleInputs(valueConverter: ValueConverter): StylingInstruction[] {\n if (this._singleStyleInputs) {\n return this._buildSingleInputs(\n R3.styleProp, this._singleStyleInputs, valueConverter,\n getStylePropInterpolationExpression, false);\n }\n return [];\n }\n\n /**\n * Constructs all instructions which contain the expressions that will be placed\n * into the update block of a template function or a directive hostBindings function.\n */\n buildUpdateLevelInstructions(valueConverter: ValueConverter) {\n const instructions: StylingInstruction[] = [];\n if (this.hasBindings) {\n const styleMapInstruction = this.buildStyleMapInstruction(valueConverter);\n if (styleMapInstruction) {\n instructions.push(styleMapInstruction);\n }\n const classMapInstruction = this.buildClassMapInstruction(valueConverter);\n if (classMapInstruction) {\n instructions.push(classMapInstruction);\n }\n instructions.push(...this._buildStyleInputs(valueConverter));\n instructions.push(...this._buildClassInputs(valueConverter));\n }\n return instructions;\n }\n}\n\nfunction registerIntoMap(map: Map<string, number>, key: string) {\n if (!map.has(key)) {\n map.set(key, map.size);\n }\n}\n\nexport function parseProperty(name: string):\n {property: string, suffix: string|null, hasOverrideFlag: boolean} {\n let hasOverrideFlag = false;\n const overrideIndex = name.indexOf(IMPORTANT_FLAG);\n if (overrideIndex !== -1) {\n name = overrideIndex > 0 ? name.substring(0, overrideIndex) : '';\n hasOverrideFlag = true;\n }\n\n let suffix: string|null = null;\n let property = name;\n const unitIndex = name.lastIndexOf('.');\n if (unitIndex > 0) {\n suffix = name.slice(unitIndex + 1);\n property = name.substring(0, unitIndex);\n }\n\n return {property, suffix, hasOverrideFlag};\n}\n\n/**\n * Gets the instruction to generate for an interpolated class map.\n * @param interpolation An Interpolation AST\n */\nfunction getClassMapInterpolationExpression(interpolation: Interpolation): o.ExternalReference {\n switch (getInterpolationArgsLength(interpolation)) {\n case 1:\n return R3.classMap;\n case 3:\n return R3.classMapInterpolate1;\n case 5:\n return R3.classMapInterpolate2;\n case 7:\n return R3.classMapInterpolate3;\n case 9:\n return R3.classMapInterpolate4;\n case 11:\n return R3.classMapInterpolate5;\n case 13:\n return R3.classMapInterpolate6;\n case 15:\n return R3.classMapInterpolate7;\n case 17:\n return R3.classMapInterpolate8;\n default:\n return R3.classMapInterpolateV;\n }\n}\n\n/**\n * Gets the instruction to generate for an interpolated style map.\n * @param interpolation An Interpolation AST\n */\nfunction getStyleMapInterpolationExpression(interpolation: Interpolation): o.ExternalReference {\n switch (getInterpolationArgsLength(interpolation)) {\n case 1:\n return R3.styleMap;\n case 3:\n return R3.styleMapInterpolate1;\n case 5:\n return R3.styleMapInterpolate2;\n case 7:\n return R3.styleMapInterpolate3;\n case 9:\n return R3.styleMapInterpolate4;\n case 11:\n return R3.styleMapInterpolate5;\n case 13:\n return R3.styleMapInterpolate6;\n case 15:\n return R3.styleMapInterpolate7;\n case 17:\n return R3.styleMapInterpolate8;\n default:\n return R3.styleMapInterpolateV;\n }\n}\n\n/**\n * Gets the instruction to generate for an interpolated style prop.\n * @param interpolation An Interpolation AST\n */\nfunction getStylePropInterpolationExpression(interpolation: Interpolation) {\n switch (getInterpolationArgsLength(interpolation)) {\n case 1:\n return R3.styleProp;\n case 3:\n return R3.stylePropInterpolate1;\n case 5:\n return R3.stylePropInterpolate2;\n case 7:\n return R3.stylePropInterpolate3;\n case 9:\n return R3.stylePropInterpolate4;\n case 11:\n return R3.stylePropInterpolate5;\n case 13:\n return R3.stylePropInterpolate6;\n case 15:\n return R3.stylePropInterpolate7;\n case 17:\n return R3.stylePropInterpolate8;\n default:\n return R3.stylePropInterpolateV;\n }\n}\n\n/**\n * Checks whether property name is a custom CSS property.\n * See: https://www.w3.org/TR/css-variables-1\n */\nfunction isCssCustomProperty(name: string): boolean {\n return name.startsWith('--');\n}\n\nfunction isEmptyExpression(ast: AST): boolean {\n if (ast instanceof ASTWithSource) {\n ast = ast.ast;\n }\n return ast instanceof EmptyExpr;\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {getHtmlTagDefinition} from './html_tags';\nimport {TokenizeOptions} from './lexer';\nimport {Parser, ParseTreeResult} from './parser';\n\nexport class HtmlParser extends Parser {\n constructor() {\n super(getHtmlTagDefinition);\n }\n\n override parse(source: string, url: string, options?: TokenizeOptions): ParseTreeResult {\n return super.parse(source, url, options);\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as html from './ast';\nimport {NGSP_UNICODE} from './entities';\nimport {ParseTreeResult} from './parser';\nimport {TextToken, TokenType} from './tokens';\n\nexport const PRESERVE_WS_ATTR_NAME = 'ngPreserveWhitespaces';\n\nconst SKIP_WS_TRIM_TAGS = new Set(['pre', 'template', 'textarea', 'script', 'style']);\n\n// Equivalent to \\s with \\u00a0 (non-breaking space) excluded.\n// Based on https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp\nconst WS_CHARS = ' \\f\\n\\r\\t\\v\\u1680\\u180e\\u2000-\\u200a\\u2028\\u2029\\u202f\\u205f\\u3000\\ufeff';\nconst NO_WS_REGEXP = new RegExp(`[^${WS_CHARS}]`);\nconst WS_REPLACE_REGEXP = new RegExp(`[${WS_CHARS}]{2,}`, 'g');\n\nfunction hasPreserveWhitespacesAttr(attrs: html.Attribute[]): boolean {\n return attrs.some((attr: html.Attribute) => attr.name === PRESERVE_WS_ATTR_NAME);\n}\n\n/**\n * &ngsp; is a placeholder for non-removable space\n * &ngsp; is converted to the 0xE500 PUA (Private Use Areas) unicode character\n * and later on replaced by a space.\n */\nexport function replaceNgsp(value: string): string {\n // lexer is replacing the &ngsp; pseudo-entity with NGSP_UNICODE\n return value.replace(new RegExp(NGSP_UNICODE, 'g'), ' ');\n}\n\n/**\n * This visitor can walk HTML parse tree and remove / trim text nodes using the following rules:\n * - consider spaces, tabs and new lines as whitespace characters;\n * - drop text nodes consisting of whitespace characters only;\n * - for all other text nodes replace consecutive whitespace characters with one space;\n * - convert &ngsp; pseudo-entity to a single space;\n *\n * Removal and trimming of whitespaces have positive performance impact (less code to generate\n * while compiling templates, faster view creation). At the same time it can be \"destructive\"\n * in some cases (whitespaces can influence layout). Because of the potential of breaking layout\n * this visitor is not activated by default in Angular 5 and people need to explicitly opt-in for\n * whitespace removal. The default option for whitespace removal will be revisited in Angular 6\n * and might be changed to \"on\" by default.\n */\nexport class WhitespaceVisitor implements html.Visitor {\n visitElement(element: html.Element, context: any): any {\n if (SKIP_WS_TRIM_TAGS.has(element.name) || hasPreserveWhitespacesAttr(element.attrs)) {\n // don't descent into elements where we need to preserve whitespaces\n // but still visit all attributes to eliminate one used as a market to preserve WS\n return new html.Element(\n element.name, html.visitAll(this, element.attrs), element.children, element.sourceSpan,\n element.startSourceSpan, element.endSourceSpan, element.i18n);\n }\n\n return new html.Element(\n element.name, element.attrs, visitAllWithSiblings(this, element.children),\n element.sourceSpan, element.startSourceSpan, element.endSourceSpan, element.i18n);\n }\n\n visitAttribute(attribute: html.Attribute, context: any): any {\n return attribute.name !== PRESERVE_WS_ATTR_NAME ? attribute : null;\n }\n\n visitText(text: html.Text, context: SiblingVisitorContext|null): any {\n const isNotBlank = text.value.match(NO_WS_REGEXP);\n const hasExpansionSibling = context &&\n (context.prev instanceof html.Expansion || context.next instanceof html.Expansion);\n\n if (isNotBlank || hasExpansionSibling) {\n // Process the whitespace in the tokens of this Text node\n const tokens = text.tokens.map(\n token =>\n token.type === TokenType.TEXT ? createWhitespaceProcessedTextToken(token) : token);\n // Process the whitespace of the value of this Text node\n const value = processWhitespace(text.value);\n return new html.Text(value, text.sourceSpan, tokens, text.i18n);\n }\n\n return null;\n }\n\n visitComment(comment: html.Comment, context: any): any {\n return comment;\n }\n\n visitExpansion(expansion: html.Expansion, context: any): any {\n return expansion;\n }\n\n visitExpansionCase(expansionCase: html.ExpansionCase, context: any): any {\n return expansionCase;\n }\n\n visitBlock(block: html.Block, context: any): any {\n return new html.Block(\n block.name, block.parameters, visitAllWithSiblings(this, block.children), block.sourceSpan,\n block.nameSpan, block.startSourceSpan, block.endSourceSpan);\n }\n\n visitBlockParameter(parameter: html.BlockParameter, context: any) {\n return parameter;\n }\n}\n\nfunction createWhitespaceProcessedTextToken({type, parts, sourceSpan}: TextToken): TextToken {\n return {type, parts: [processWhitespace(parts[0])], sourceSpan};\n}\n\nfunction processWhitespace(text: string): string {\n return replaceNgsp(text).replace(WS_REPLACE_REGEXP, ' ');\n}\n\nexport function removeWhitespaces(htmlAstWithErrors: ParseTreeResult): ParseTreeResult {\n return new ParseTreeResult(\n html.visitAll(new WhitespaceVisitor(), htmlAstWithErrors.rootNodes),\n htmlAstWithErrors.errors);\n}\n\ninterface SiblingVisitorContext {\n prev: html.Node|undefined;\n next: html.Node|undefined;\n}\n\nfunction visitAllWithSiblings(visitor: WhitespaceVisitor, nodes: html.Node[]): any[] {\n const result: any[] = [];\n\n nodes.forEach((ast, i) => {\n const context: SiblingVisitorContext = {prev: nodes[i - 1], next: nodes[i + 1]};\n const astResult = ast.visit(visitor, context);\n if (astResult) {\n result.push(astResult);\n }\n });\n return result;\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {SecurityContext} from '../core';\nimport {AbsoluteSourceSpan, ASTWithSource, BindingPipe, BindingType, BoundElementProperty, EmptyExpr, ParsedEvent, ParsedEventType, ParsedProperty, ParsedPropertyType, ParsedVariable, ParserError, RecursiveAstVisitor, TemplateBinding, VariableBinding} from '../expression_parser/ast';\nimport {Parser} from '../expression_parser/parser';\nimport {InterpolationConfig} from '../ml_parser/defaults';\nimport {mergeNsAndName} from '../ml_parser/tags';\nimport {InterpolatedAttributeToken, InterpolatedTextToken} from '../ml_parser/tokens';\nimport {ParseError, ParseErrorLevel, ParseSourceSpan} from '../parse_util';\nimport {ElementSchemaRegistry} from '../schema/element_schema_registry';\nimport {CssSelector} from '../selector';\nimport {splitAtColon, splitAtPeriod} from '../util';\n\nconst PROPERTY_PARTS_SEPARATOR = '.';\nconst ATTRIBUTE_PREFIX = 'attr';\nconst CLASS_PREFIX = 'class';\nconst STYLE_PREFIX = 'style';\nconst TEMPLATE_ATTR_PREFIX = '*';\nconst ANIMATE_PROP_PREFIX = 'animate-';\n\nexport interface HostProperties {\n [key: string]: string;\n}\n\nexport interface HostListeners {\n [key: string]: string;\n}\n\n/**\n * Parses bindings in templates and in the directive host area.\n */\nexport class BindingParser {\n constructor(\n private _exprParser: Parser, private _interpolationConfig: InterpolationConfig,\n private _schemaRegistry: ElementSchemaRegistry, public errors: ParseError[]) {}\n\n get interpolationConfig(): InterpolationConfig {\n return this._interpolationConfig;\n }\n\n createBoundHostProperties(properties: HostProperties, sourceSpan: ParseSourceSpan):\n ParsedProperty[]|null {\n const boundProps: ParsedProperty[] = [];\n for (const propName of Object.keys(properties)) {\n const expression = properties[propName];\n if (typeof expression === 'string') {\n this.parsePropertyBinding(\n propName, expression, true, false, sourceSpan, sourceSpan.start.offset, undefined, [],\n // Use the `sourceSpan` for `keySpan`. This isn't really accurate, but neither is the\n // sourceSpan, as it represents the sourceSpan of the host itself rather than the\n // source of the host binding (which doesn't exist in the template). Regardless,\n // neither of these values are used in Ivy but are only here to satisfy the function\n // signature. This should likely be refactored in the future so that `sourceSpan`\n // isn't being used inaccurately.\n boundProps, sourceSpan);\n } else {\n this._reportError(\n `Value of the host property binding \"${\n propName}\" needs to be a string representing an expression but got \"${\n expression}\" (${typeof expression})`,\n sourceSpan);\n }\n }\n return boundProps;\n }\n\n createDirectiveHostEventAsts(hostListeners: HostListeners, sourceSpan: ParseSourceSpan):\n ParsedEvent[]|null {\n const targetEvents: ParsedEvent[] = [];\n for (const propName of Object.keys(hostListeners)) {\n const expression = hostListeners[propName];\n if (typeof expression === 'string') {\n // Use the `sourceSpan` for `keySpan` and `handlerSpan`. This isn't really accurate, but\n // neither is the `sourceSpan`, as it represents the `sourceSpan` of the host itself\n // rather than the source of the host binding (which doesn't exist in the template).\n // Regardless, neither of these values are used in Ivy but are only here to satisfy the\n // function signature. This should likely be refactored in the future so that `sourceSpan`\n // isn't being used inaccurately.\n this.parseEvent(\n propName, expression, /* isAssignmentEvent */ false, sourceSpan, sourceSpan, [],\n targetEvents, sourceSpan);\n } else {\n this._reportError(\n `Value of the host listener \"${\n propName}\" needs to be a string representing an expression but got \"${\n expression}\" (${typeof expression})`,\n sourceSpan);\n }\n }\n return targetEvents;\n }\n\n parseInterpolation(\n value: string, sourceSpan: ParseSourceSpan,\n interpolatedTokens: InterpolatedAttributeToken[]|InterpolatedTextToken[]|\n null): ASTWithSource {\n const sourceInfo = sourceSpan.start.toString();\n const absoluteOffset = sourceSpan.fullStart.offset;\n\n try {\n const ast = this._exprParser.parseInterpolation(\n value, sourceInfo, absoluteOffset, interpolatedTokens, this._interpolationConfig)!;\n if (ast) this._reportExpressionParserErrors(ast.errors, sourceSpan);\n return ast;\n } catch (e) {\n this._reportError(`${e}`, sourceSpan);\n return this._exprParser.wrapLiteralPrimitive('ERROR', sourceInfo, absoluteOffset);\n }\n }\n\n /**\n * Similar to `parseInterpolation`, but treats the provided string as a single expression\n * element that would normally appear within the interpolation prefix and suffix (`{{` and `}}`).\n * This is used for parsing the switch expression in ICUs.\n */\n parseInterpolationExpression(expression: string, sourceSpan: ParseSourceSpan): ASTWithSource {\n const sourceInfo = sourceSpan.start.toString();\n const absoluteOffset = sourceSpan.start.offset;\n\n try {\n const ast =\n this._exprParser.parseInterpolationExpression(expression, sourceInfo, absoluteOffset);\n if (ast) this._reportExpressionParserErrors(ast.errors, sourceSpan);\n return ast;\n } catch (e) {\n this._reportError(`${e}`, sourceSpan);\n return this._exprParser.wrapLiteralPrimitive('ERROR', sourceInfo, absoluteOffset);\n }\n }\n\n /**\n * Parses the bindings in a microsyntax expression, and converts them to\n * `ParsedProperty` or `ParsedVariable`.\n *\n * @param tplKey template binding name\n * @param tplValue template binding value\n * @param sourceSpan span of template binding relative to entire the template\n * @param absoluteValueOffset start of the tplValue relative to the entire template\n * @param targetMatchableAttrs potential attributes to match in the template\n * @param targetProps target property bindings in the template\n * @param targetVars target variables in the template\n */\n parseInlineTemplateBinding(\n tplKey: string, tplValue: string, sourceSpan: ParseSourceSpan, absoluteValueOffset: number,\n targetMatchableAttrs: string[][], targetProps: ParsedProperty[], targetVars: ParsedVariable[],\n isIvyAst: boolean) {\n const absoluteKeyOffset = sourceSpan.start.offset + TEMPLATE_ATTR_PREFIX.length;\n const bindings = this._parseTemplateBindings(\n tplKey, tplValue, sourceSpan, absoluteKeyOffset, absoluteValueOffset);\n\n for (const binding of bindings) {\n // sourceSpan is for the entire HTML attribute. bindingSpan is for a particular\n // binding within the microsyntax expression so it's more narrow than sourceSpan.\n const bindingSpan = moveParseSourceSpan(sourceSpan, binding.sourceSpan);\n const key = binding.key.source;\n const keySpan = moveParseSourceSpan(sourceSpan, binding.key.span);\n if (binding instanceof VariableBinding) {\n const value = binding.value ? binding.value.source : '$implicit';\n const valueSpan =\n binding.value ? moveParseSourceSpan(sourceSpan, binding.value.span) : undefined;\n targetVars.push(new ParsedVariable(key, value, bindingSpan, keySpan, valueSpan));\n } else if (binding.value) {\n const srcSpan = isIvyAst ? bindingSpan : sourceSpan;\n const valueSpan = moveParseSourceSpan(sourceSpan, binding.value.ast.sourceSpan);\n this._parsePropertyAst(\n key, binding.value, false, srcSpan, keySpan, valueSpan, targetMatchableAttrs,\n targetProps);\n } else {\n targetMatchableAttrs.push([key, '' /* value */]);\n // Since this is a literal attribute with no RHS, source span should be\n // just the key span.\n this.parseLiteralAttr(\n key, null /* value */, keySpan, absoluteValueOffset, undefined /* valueSpan */,\n targetMatchableAttrs, targetProps, keySpan);\n }\n }\n }\n\n /**\n * Parses the bindings in a microsyntax expression, e.g.\n * ```\n * <tag *tplKey=\"let value1 = prop; let value2 = localVar\">\n * ```\n *\n * @param tplKey template binding name\n * @param tplValue template binding value\n * @param sourceSpan span of template binding relative to entire the template\n * @param absoluteKeyOffset start of the `tplKey`\n * @param absoluteValueOffset start of the `tplValue`\n */\n private _parseTemplateBindings(\n tplKey: string, tplValue: string, sourceSpan: ParseSourceSpan, absoluteKeyOffset: number,\n absoluteValueOffset: number): TemplateBinding[] {\n const sourceInfo = sourceSpan.start.toString();\n\n try {\n const bindingsResult = this._exprParser.parseTemplateBindings(\n tplKey, tplValue, sourceInfo, absoluteKeyOffset, absoluteValueOffset);\n this._reportExpressionParserErrors(bindingsResult.errors, sourceSpan);\n bindingsResult.warnings.forEach((warning) => {\n this._reportError(warning, sourceSpan, ParseErrorLevel.WARNING);\n });\n return bindingsResult.templateBindings;\n } catch (e) {\n this._reportError(`${e}`, sourceSpan);\n return [];\n }\n }\n\n parseLiteralAttr(\n name: string, value: string|null, sourceSpan: ParseSourceSpan, absoluteOffset: number,\n valueSpan: ParseSourceSpan|undefined, targetMatchableAttrs: string[][],\n targetProps: ParsedProperty[], keySpan: ParseSourceSpan) {\n if (isAnimationLabel(name)) {\n name = name.substring(1);\n if (keySpan !== undefined) {\n keySpan = moveParseSourceSpan(\n keySpan, new AbsoluteSourceSpan(keySpan.start.offset + 1, keySpan.end.offset));\n }\n if (value) {\n this._reportError(\n `Assigning animation triggers via @prop=\"exp\" attributes with an expression is invalid.` +\n ` Use property bindings (e.g. [@prop]=\"exp\") or use an attribute without a value (e.g. @prop) instead.`,\n sourceSpan, ParseErrorLevel.ERROR);\n }\n this._parseAnimation(\n name, value, sourceSpan, absoluteOffset, keySpan, valueSpan, targetMatchableAttrs,\n targetProps);\n } else {\n targetProps.push(new ParsedProperty(\n name, this._exprParser.wrapLiteralPrimitive(value, '', absoluteOffset),\n ParsedPropertyType.LITERAL_ATTR, sourceSpan, keySpan, valueSpan));\n }\n }\n\n parsePropertyBinding(\n name: string, expression: string, isHost: boolean, isPartOfAssignmentBinding: boolean,\n sourceSpan: ParseSourceSpan, absoluteOffset: number, valueSpan: ParseSourceSpan|undefined,\n targetMatchableAttrs: string[][], targetProps: ParsedProperty[], keySpan: ParseSourceSpan) {\n if (name.length === 0) {\n this._reportError(`Property name is missing in binding`, sourceSpan);\n }\n\n let isAnimationProp = false;\n if (name.startsWith(ANIMATE_PROP_PREFIX)) {\n isAnimationProp = true;\n name = name.substring(ANIMATE_PROP_PREFIX.length);\n if (keySpan !== undefined) {\n keySpan = moveParseSourceSpan(\n keySpan,\n new AbsoluteSourceSpan(\n keySpan.start.offset + ANIMATE_PROP_PREFIX.length, keySpan.end.offset));\n }\n } else if (isAnimationLabel(name)) {\n isAnimationProp = true;\n name = name.substring(1);\n if (keySpan !== undefined) {\n keySpan = moveParseSourceSpan(\n keySpan, new AbsoluteSourceSpan(keySpan.start.offset + 1, keySpan.end.offset));\n }\n }\n\n if (isAnimationProp) {\n this._parseAnimation(\n name, expression, sourceSpan, absoluteOffset, keySpan, valueSpan, targetMatchableAttrs,\n targetProps);\n } else {\n this._parsePropertyAst(\n name, this.parseBinding(expression, isHost, valueSpan || sourceSpan, absoluteOffset),\n isPartOfAssignmentBinding, sourceSpan, keySpan, valueSpan, targetMatchableAttrs,\n targetProps);\n }\n }\n\n parsePropertyInterpolation(\n name: string, value: string, sourceSpan: ParseSourceSpan,\n valueSpan: ParseSourceSpan|undefined, targetMatchableAttrs: string[][],\n targetProps: ParsedProperty[], keySpan: ParseSourceSpan,\n interpolatedTokens: InterpolatedAttributeToken[]|InterpolatedTextToken[]|null): boolean {\n const expr = this.parseInterpolation(value, valueSpan || sourceSpan, interpolatedTokens);\n if (expr) {\n this._parsePropertyAst(\n name, expr, false, sourceSpan, keySpan, valueSpan, targetMatchableAttrs, targetProps);\n return true;\n }\n return false;\n }\n\n private _parsePropertyAst(\n name: string, ast: ASTWithSource, isPartOfAssignmentBinding: boolean,\n sourceSpan: ParseSourceSpan, keySpan: ParseSourceSpan, valueSpan: ParseSourceSpan|undefined,\n targetMatchableAttrs: string[][], targetProps: ParsedProperty[]) {\n targetMatchableAttrs.push([name, ast.source!]);\n targetProps.push(new ParsedProperty(\n name, ast,\n isPartOfAssignmentBinding ? ParsedPropertyType.TWO_WAY : ParsedPropertyType.DEFAULT,\n sourceSpan, keySpan, valueSpan));\n }\n\n private _parseAnimation(\n name: string, expression: string|null, sourceSpan: ParseSourceSpan, absoluteOffset: number,\n keySpan: ParseSourceSpan, valueSpan: ParseSourceSpan|undefined,\n targetMatchableAttrs: string[][], targetProps: ParsedProperty[]) {\n if (name.length === 0) {\n this._reportError('Animation trigger is missing', sourceSpan);\n }\n\n // This will occur when a @trigger is not paired with an expression.\n // For animations it is valid to not have an expression since */void\n // states will be applied by angular when the element is attached/detached\n const ast = this.parseBinding(\n expression || 'undefined', false, valueSpan || sourceSpan, absoluteOffset);\n targetMatchableAttrs.push([name, ast.source!]);\n targetProps.push(new ParsedProperty(\n name, ast, ParsedPropertyType.ANIMATION, sourceSpan, keySpan, valueSpan));\n }\n\n parseBinding(\n value: string, isHostBinding: boolean, sourceSpan: ParseSourceSpan,\n absoluteOffset: number): ASTWithSource {\n const sourceInfo = (sourceSpan && sourceSpan.start || '(unknown)').toString();\n\n try {\n const ast = isHostBinding ?\n this._exprParser.parseSimpleBinding(\n value, sourceInfo, absoluteOffset, this._interpolationConfig) :\n this._exprParser.parseBinding(\n value, sourceInfo, absoluteOffset, this._interpolationConfig);\n if (ast) this._reportExpressionParserErrors(ast.errors, sourceSpan);\n return ast;\n } catch (e) {\n this._reportError(`${e}`, sourceSpan);\n return this._exprParser.wrapLiteralPrimitive('ERROR', sourceInfo, absoluteOffset);\n }\n }\n\n createBoundElementProperty(\n elementSelector: string, boundProp: ParsedProperty, skipValidation: boolean = false,\n mapPropertyName: boolean = true): BoundElementProperty {\n if (boundProp.isAnimation) {\n return new BoundElementProperty(\n boundProp.name, BindingType.Animation, SecurityContext.NONE, boundProp.expression, null,\n boundProp.sourceSpan, boundProp.keySpan, boundProp.valueSpan);\n }\n\n let unit: string|null = null;\n let bindingType: BindingType = undefined!;\n let boundPropertyName: string|null = null;\n const parts = boundProp.name.split(PROPERTY_PARTS_SEPARATOR);\n let securityContexts: SecurityContext[] = undefined!;\n\n // Check for special cases (prefix style, attr, class)\n if (parts.length > 1) {\n if (parts[0] == ATTRIBUTE_PREFIX) {\n boundPropertyName = parts.slice(1).join(PROPERTY_PARTS_SEPARATOR);\n if (!skipValidation) {\n this._validatePropertyOrAttributeName(boundPropertyName, boundProp.sourceSpan, true);\n }\n securityContexts = calcPossibleSecurityContexts(\n this._schemaRegistry, elementSelector, boundPropertyName, true);\n\n const nsSeparatorIdx = boundPropertyName.indexOf(':');\n if (nsSeparatorIdx > -1) {\n const ns = boundPropertyName.substring(0, nsSeparatorIdx);\n const name = boundPropertyName.substring(nsSeparatorIdx + 1);\n boundPropertyName = mergeNsAndName(ns, name);\n }\n\n bindingType = BindingType.Attribute;\n } else if (parts[0] == CLASS_PREFIX) {\n boundPropertyName = parts[1];\n bindingType = BindingType.Class;\n securityContexts = [SecurityContext.NONE];\n } else if (parts[0] == STYLE_PREFIX) {\n unit = parts.length > 2 ? parts[2] : null;\n boundPropertyName = parts[1];\n bindingType = BindingType.Style;\n securityContexts = [SecurityContext.STYLE];\n }\n }\n\n // If not a special case, use the full property name\n if (boundPropertyName === null) {\n const mappedPropName = this._schemaRegistry.getMappedPropName(boundProp.name);\n boundPropertyName = mapPropertyName ? mappedPropName : boundProp.name;\n securityContexts = calcPossibleSecurityContexts(\n this._schemaRegistry, elementSelector, mappedPropName, false);\n bindingType =\n boundProp.type === ParsedPropertyType.TWO_WAY ? BindingType.TwoWay : BindingType.Property;\n if (!skipValidation) {\n this._validatePropertyOrAttributeName(mappedPropName, boundProp.sourceSpan, false);\n }\n }\n\n return new BoundElementProperty(\n boundPropertyName, bindingType, securityContexts[0], boundProp.expression, unit,\n boundProp.sourceSpan, boundProp.keySpan, boundProp.valueSpan);\n }\n\n // TODO: keySpan should be required but was made optional to avoid changing VE parser.\n parseEvent(\n name: string, expression: string, isAssignmentEvent: boolean, sourceSpan: ParseSourceSpan,\n handlerSpan: ParseSourceSpan, targetMatchableAttrs: string[][], targetEvents: ParsedEvent[],\n keySpan: ParseSourceSpan) {\n if (name.length === 0) {\n this._reportError(`Event name is missing in binding`, sourceSpan);\n }\n\n if (isAnimationLabel(name)) {\n name = name.slice(1);\n if (keySpan !== undefined) {\n keySpan = moveParseSourceSpan(\n keySpan, new AbsoluteSourceSpan(keySpan.start.offset + 1, keySpan.end.offset));\n }\n this._parseAnimationEvent(\n name, expression, isAssignmentEvent, sourceSpan, handlerSpan, targetEvents, keySpan);\n } else {\n this._parseRegularEvent(\n name, expression, isAssignmentEvent, sourceSpan, handlerSpan, targetMatchableAttrs,\n targetEvents, keySpan);\n }\n }\n\n calcPossibleSecurityContexts(selector: string, propName: string, isAttribute: boolean):\n SecurityContext[] {\n const prop = this._schemaRegistry.getMappedPropName(propName);\n return calcPossibleSecurityContexts(this._schemaRegistry, selector, prop, isAttribute);\n }\n\n private _parseAnimationEvent(\n name: string, expression: string, isAssignmentEvent: boolean, sourceSpan: ParseSourceSpan,\n handlerSpan: ParseSourceSpan, targetEvents: ParsedEvent[], keySpan: ParseSourceSpan) {\n const matches = splitAtPeriod(name, [name, '']);\n const eventName = matches[0];\n const phase = matches[1].toLowerCase();\n const ast = this._parseAction(expression, isAssignmentEvent, handlerSpan);\n targetEvents.push(new ParsedEvent(\n eventName, phase, ParsedEventType.Animation, ast, sourceSpan, handlerSpan, keySpan));\n\n if (eventName.length === 0) {\n this._reportError(`Animation event name is missing in binding`, sourceSpan);\n }\n if (phase) {\n if (phase !== 'start' && phase !== 'done') {\n this._reportError(\n `The provided animation output phase value \"${phase}\" for \"@${\n eventName}\" is not supported (use start or done)`,\n sourceSpan);\n }\n } else {\n this._reportError(\n `The animation trigger output event (@${\n eventName}) is missing its phase value name (start or done are currently supported)`,\n sourceSpan);\n }\n }\n\n private _parseRegularEvent(\n name: string, expression: string, isAssignmentEvent: boolean, sourceSpan: ParseSourceSpan,\n handlerSpan: ParseSourceSpan, targetMatchableAttrs: string[][], targetEvents: ParsedEvent[],\n keySpan: ParseSourceSpan) {\n // long format: 'target: eventName'\n const [target, eventName] = splitAtColon(name, [null!, name]);\n const ast = this._parseAction(expression, isAssignmentEvent, handlerSpan);\n targetMatchableAttrs.push([name!, ast.source!]);\n targetEvents.push(new ParsedEvent(\n eventName, target, isAssignmentEvent ? ParsedEventType.TwoWay : ParsedEventType.Regular,\n ast, sourceSpan, handlerSpan, keySpan));\n // Don't detect directives for event names for now,\n // so don't add the event name to the matchableAttrs\n }\n\n private _parseAction(value: string, isAssignmentEvent: boolean, sourceSpan: ParseSourceSpan):\n ASTWithSource {\n const sourceInfo = (sourceSpan && sourceSpan.start || '(unknown').toString();\n const absoluteOffset = (sourceSpan && sourceSpan.start) ? sourceSpan.start.offset : 0;\n\n try {\n const ast = this._exprParser.parseAction(\n value, isAssignmentEvent, sourceInfo, absoluteOffset, this._interpolationConfig);\n if (ast) {\n this._reportExpressionParserErrors(ast.errors, sourceSpan);\n }\n if (!ast || ast.ast instanceof EmptyExpr) {\n this._reportError(`Empty expressions are not allowed`, sourceSpan);\n return this._exprParser.wrapLiteralPrimitive('ERROR', sourceInfo, absoluteOffset);\n }\n return ast;\n } catch (e) {\n this._reportError(`${e}`, sourceSpan);\n return this._exprParser.wrapLiteralPrimitive('ERROR', sourceInfo, absoluteOffset);\n }\n }\n\n private _reportError(\n message: string, sourceSpan: ParseSourceSpan,\n level: ParseErrorLevel = ParseErrorLevel.ERROR) {\n this.errors.push(new ParseError(sourceSpan, message, level));\n }\n\n private _reportExpressionParserErrors(errors: ParserError[], sourceSpan: ParseSourceSpan) {\n for (const error of errors) {\n this._reportError(error.message, sourceSpan);\n }\n }\n\n /**\n * @param propName the name of the property / attribute\n * @param sourceSpan\n * @param isAttr true when binding to an attribute\n */\n private _validatePropertyOrAttributeName(\n propName: string, sourceSpan: ParseSourceSpan, isAttr: boolean): void {\n const report = isAttr ? this._schemaRegistry.validateAttribute(propName) :\n this._schemaRegistry.validateProperty(propName);\n if (report.error) {\n this._reportError(report.msg!, sourceSpan, ParseErrorLevel.ERROR);\n }\n }\n}\n\nexport class PipeCollector extends RecursiveAstVisitor {\n pipes = new Map<string, BindingPipe>();\n override visitPipe(ast: BindingPipe, context: any): any {\n this.pipes.set(ast.name, ast);\n ast.exp.visit(this);\n this.visitAll(ast.args, context);\n return null;\n }\n}\n\nfunction isAnimationLabel(name: string): boolean {\n return name[0] == '@';\n}\n\nexport function calcPossibleSecurityContexts(\n registry: ElementSchemaRegistry, selector: string, propName: string,\n isAttribute: boolean): SecurityContext[] {\n const ctxs: SecurityContext[] = [];\n CssSelector.parse(selector).forEach((selector) => {\n const elementNames = selector.element ? [selector.element] : registry.allKnownElementNames();\n const notElementNames =\n new Set(selector.notSelectors.filter(selector => selector.isElementSelector())\n .map((selector) => selector.element));\n const possibleElementNames =\n elementNames.filter(elementName => !notElementNames.has(elementName));\n\n ctxs.push(...possibleElementNames.map(\n elementName => registry.securityContext(elementName, propName, isAttribute)));\n });\n return ctxs.length === 0 ? [SecurityContext.NONE] : Array.from(new Set(ctxs)).sort();\n}\n\n/**\n * Compute a new ParseSourceSpan based off an original `sourceSpan` by using\n * absolute offsets from the specified `absoluteSpan`.\n *\n * @param sourceSpan original source span\n * @param absoluteSpan absolute source span to move to\n */\nfunction moveParseSourceSpan(\n sourceSpan: ParseSourceSpan, absoluteSpan: AbsoluteSourceSpan): ParseSourceSpan {\n // The difference of two absolute offsets provide the relative offset\n const startDiff = absoluteSpan.start - sourceSpan.start.offset;\n const endDiff = absoluteSpan.end - sourceSpan.end.offset;\n return new ParseSourceSpan(\n sourceSpan.start.moveBy(startDiff), sourceSpan.end.moveBy(endDiff),\n sourceSpan.fullStart.moveBy(startDiff), sourceSpan.details);\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n// Some of the code comes from WebComponents.JS\n// https://github.com/webcomponents/webcomponentsjs/blob/master/src/HTMLImports/path.js\n\nexport function isStyleUrlResolvable(url: string|null): url is string {\n if (url == null || url.length === 0 || url[0] == '/') return false;\n const schemeMatch = url.match(URL_WITH_SCHEMA_REGEXP);\n return schemeMatch === null || schemeMatch[1] == 'package' || schemeMatch[1] == 'asset';\n}\n\nconst URL_WITH_SCHEMA_REGEXP = /^([^:/?#]+):/;\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as html from '../ml_parser/ast';\nimport {isNgContent} from '../ml_parser/tags';\n\nconst NG_CONTENT_SELECT_ATTR = 'select';\nconst LINK_ELEMENT = 'link';\nconst LINK_STYLE_REL_ATTR = 'rel';\nconst LINK_STYLE_HREF_ATTR = 'href';\nconst LINK_STYLE_REL_VALUE = 'stylesheet';\nconst STYLE_ELEMENT = 'style';\nconst SCRIPT_ELEMENT = 'script';\nconst NG_NON_BINDABLE_ATTR = 'ngNonBindable';\nconst NG_PROJECT_AS = 'ngProjectAs';\n\nexport function preparseElement(ast: html.Element): PreparsedElement {\n let selectAttr: string|null = null;\n let hrefAttr: string|null = null;\n let relAttr: string|null = null;\n let nonBindable = false;\n let projectAs = '';\n ast.attrs.forEach(attr => {\n const lcAttrName = attr.name.toLowerCase();\n if (lcAttrName == NG_CONTENT_SELECT_ATTR) {\n selectAttr = attr.value;\n } else if (lcAttrName == LINK_STYLE_HREF_ATTR) {\n hrefAttr = attr.value;\n } else if (lcAttrName == LINK_STYLE_REL_ATTR) {\n relAttr = attr.value;\n } else if (attr.name == NG_NON_BINDABLE_ATTR) {\n nonBindable = true;\n } else if (attr.name == NG_PROJECT_AS) {\n if (attr.value.length > 0) {\n projectAs = attr.value;\n }\n }\n });\n selectAttr = normalizeNgContentSelect(selectAttr);\n const nodeName = ast.name.toLowerCase();\n let type = PreparsedElementType.OTHER;\n if (isNgContent(nodeName)) {\n type = PreparsedElementType.NG_CONTENT;\n } else if (nodeName == STYLE_ELEMENT) {\n type = PreparsedElementType.STYLE;\n } else if (nodeName == SCRIPT_ELEMENT) {\n type = PreparsedElementType.SCRIPT;\n } else if (nodeName == LINK_ELEMENT && relAttr == LINK_STYLE_REL_VALUE) {\n type = PreparsedElementType.STYLESHEET;\n }\n return new PreparsedElement(type, selectAttr, hrefAttr, nonBindable, projectAs);\n}\n\nexport enum PreparsedElementType {\n NG_CONTENT,\n STYLE,\n STYLESHEET,\n SCRIPT,\n OTHER\n}\n\nexport class PreparsedElement {\n constructor(\n public type: PreparsedElementType, public selectAttr: string, public hrefAttr: string|null,\n public nonBindable: boolean, public projectAs: string) {}\n}\n\n\nfunction normalizeNgContentSelect(selectAttr: string|null): string {\n if (selectAttr === null || selectAttr.length === 0) {\n return '*';\n }\n return selectAttr;\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {ASTWithSource} from '../expression_parser/ast';\nimport * as html from '../ml_parser/ast';\nimport {ParseError, ParseSourceSpan} from '../parse_util';\nimport {BindingParser} from '../template_parser/binding_parser';\n\nimport * as t from './r3_ast';\n\n/** Pattern for the expression in a for loop block. */\nconst FOR_LOOP_EXPRESSION_PATTERN = /^\\s*([0-9A-Za-z_$]*)\\s+of\\s+([\\S\\s]*)/;\n\n/** Pattern for the tracking expression in a for loop block. */\nconst FOR_LOOP_TRACK_PATTERN = /^track\\s+([\\S\\s]*)/;\n\n/** Pattern for the `as` expression in a conditional block. */\nconst CONDITIONAL_ALIAS_PATTERN = /^(as\\s)+(.*)/;\n\n/** Pattern used to identify an `else if` block. */\nconst ELSE_IF_PATTERN = /^else[^\\S\\r\\n]+if/;\n\n/** Pattern used to identify a `let` parameter. */\nconst FOR_LOOP_LET_PATTERN = /^let\\s+([\\S\\s]*)/;\n\n/**\n * Pattern to group a string into leading whitespace, non whitespace, and trailing whitespace.\n * Useful for getting the variable name span when a span can contain leading and trailing space.\n */\nconst CHARACTERS_IN_SURROUNDING_WHITESPACE_PATTERN = /(\\s*)(\\S+)(\\s*)/;\n\n/** Names of variables that are allowed to be used in the `let` expression of a `for` loop. */\nconst ALLOWED_FOR_LOOP_LET_VARIABLES =\n new Set<keyof t.ForLoopBlockContext>(['$index', '$first', '$last', '$even', '$odd', '$count']);\n\n/**\n * Predicate function that determines if a block with\n * a specific name cam be connected to a `for` block.\n */\nexport function isConnectedForLoopBlock(name: string): boolean {\n return name === 'empty';\n}\n\n/**\n * Predicate function that determines if a block with\n * a specific name cam be connected to an `if` block.\n */\nexport function isConnectedIfLoopBlock(name: string): boolean {\n return name === 'else' || ELSE_IF_PATTERN.test(name);\n}\n\n/** Creates an `if` loop block from an HTML AST node. */\nexport function createIfBlock(\n ast: html.Block, connectedBlocks: html.Block[], visitor: html.Visitor,\n bindingParser: BindingParser): {node: t.IfBlock|null, errors: ParseError[]} {\n const errors: ParseError[] = validateIfConnectedBlocks(connectedBlocks);\n const branches: t.IfBlockBranch[] = [];\n const mainBlockParams = parseConditionalBlockParameters(ast, errors, bindingParser);\n\n if (mainBlockParams !== null) {\n branches.push(new t.IfBlockBranch(\n mainBlockParams.expression, html.visitAll(visitor, ast.children, ast.children),\n mainBlockParams.expressionAlias, ast.sourceSpan, ast.startSourceSpan, ast.endSourceSpan,\n ast.nameSpan, ast.i18n));\n }\n\n for (const block of connectedBlocks) {\n if (ELSE_IF_PATTERN.test(block.name)) {\n const params = parseConditionalBlockParameters(block, errors, bindingParser);\n\n if (params !== null) {\n const children = html.visitAll(visitor, block.children, block.children);\n branches.push(new t.IfBlockBranch(\n params.expression, children, params.expressionAlias, block.sourceSpan,\n block.startSourceSpan, block.endSourceSpan, block.nameSpan, block.i18n));\n }\n } else if (block.name === 'else') {\n const children = html.visitAll(visitor, block.children, block.children);\n branches.push(new t.IfBlockBranch(\n null, children, null, block.sourceSpan, block.startSourceSpan, block.endSourceSpan,\n block.nameSpan, block.i18n));\n }\n }\n\n // The outer IfBlock should have a span that encapsulates all branches.\n const ifBlockStartSourceSpan =\n branches.length > 0 ? branches[0].startSourceSpan : ast.startSourceSpan;\n const ifBlockEndSourceSpan =\n branches.length > 0 ? branches[branches.length - 1].endSourceSpan : ast.endSourceSpan;\n\n let wholeSourceSpan = ast.sourceSpan;\n const lastBranch = branches[branches.length - 1];\n if (lastBranch !== undefined) {\n wholeSourceSpan = new ParseSourceSpan(ifBlockStartSourceSpan.start, lastBranch.sourceSpan.end);\n }\n\n return {\n node: new t.IfBlock(\n branches, wholeSourceSpan, ast.startSourceSpan, ifBlockEndSourceSpan, ast.nameSpan),\n errors,\n };\n}\n\n/** Creates a `for` loop block from an HTML AST node. */\nexport function createForLoop(\n ast: html.Block, connectedBlocks: html.Block[], visitor: html.Visitor,\n bindingParser: BindingParser): {node: t.ForLoopBlock|null, errors: ParseError[]} {\n const errors: ParseError[] = [];\n const params = parseForLoopParameters(ast, errors, bindingParser);\n let node: t.ForLoopBlock|null = null;\n let empty: t.ForLoopBlockEmpty|null = null;\n\n for (const block of connectedBlocks) {\n if (block.name === 'empty') {\n if (empty !== null) {\n errors.push(new ParseError(block.sourceSpan, '@for loop can only have one @empty block'));\n } else if (block.parameters.length > 0) {\n errors.push(new ParseError(block.sourceSpan, '@empty block cannot have parameters'));\n } else {\n empty = new t.ForLoopBlockEmpty(\n html.visitAll(visitor, block.children, block.children), block.sourceSpan,\n block.startSourceSpan, block.endSourceSpan, block.nameSpan, block.i18n);\n }\n } else {\n errors.push(new ParseError(block.sourceSpan, `Unrecognized @for loop block \"${block.name}\"`));\n }\n }\n\n\n if (params !== null) {\n if (params.trackBy === null) {\n // TODO: We should not fail here, and instead try to produce some AST for the language\n // service.\n errors.push(new ParseError(ast.sourceSpan, '@for loop must have a \"track\" expression'));\n } else {\n // The `for` block has a main span that includes the `empty` branch. For only the span of the\n // main `for` body, use `mainSourceSpan`.\n const endSpan = empty?.endSourceSpan ?? ast.endSourceSpan;\n const sourceSpan =\n new ParseSourceSpan(ast.sourceSpan.start, endSpan?.end ?? ast.sourceSpan.end);\n node = new t.ForLoopBlock(\n params.itemName, params.expression, params.trackBy.expression, params.trackBy.keywordSpan,\n params.context, html.visitAll(visitor, ast.children, ast.children), empty, sourceSpan,\n ast.sourceSpan, ast.startSourceSpan, endSpan, ast.nameSpan, ast.i18n);\n }\n }\n\n return {node, errors};\n}\n\n/** Creates a switch block from an HTML AST node. */\nexport function createSwitchBlock(\n ast: html.Block, visitor: html.Visitor,\n bindingParser: BindingParser): {node: t.SwitchBlock|null, errors: ParseError[]} {\n const errors = validateSwitchBlock(ast);\n const primaryExpression = ast.parameters.length > 0 ?\n parseBlockParameterToBinding(ast.parameters[0], bindingParser) :\n bindingParser.parseBinding('', false, ast.sourceSpan, 0);\n const cases: t.SwitchBlockCase[] = [];\n const unknownBlocks: t.UnknownBlock[] = [];\n let defaultCase: t.SwitchBlockCase|null = null;\n\n // Here we assume that all the blocks are valid given that we validated them above.\n for (const node of ast.children) {\n if (!(node instanceof html.Block)) {\n continue;\n }\n\n if ((node.name !== 'case' || node.parameters.length === 0) && node.name !== 'default') {\n unknownBlocks.push(new t.UnknownBlock(node.name, node.sourceSpan, node.nameSpan));\n continue;\n }\n\n const expression = node.name === 'case' ?\n parseBlockParameterToBinding(node.parameters[0], bindingParser) :\n null;\n const ast = new t.SwitchBlockCase(\n expression, html.visitAll(visitor, node.children, node.children), node.sourceSpan,\n node.startSourceSpan, node.endSourceSpan, node.nameSpan, node.i18n);\n\n if (expression === null) {\n defaultCase = ast;\n } else {\n cases.push(ast);\n }\n }\n\n // Ensure that the default case is last in the array.\n if (defaultCase !== null) {\n cases.push(defaultCase);\n }\n\n return {\n node: new t.SwitchBlock(\n primaryExpression, cases, unknownBlocks, ast.sourceSpan, ast.startSourceSpan,\n ast.endSourceSpan, ast.nameSpan),\n errors\n };\n}\n\n/** Parses the parameters of a `for` loop block. */\nfunction parseForLoopParameters(\n block: html.Block, errors: ParseError[], bindingParser: BindingParser) {\n if (block.parameters.length === 0) {\n errors.push(new ParseError(block.sourceSpan, '@for loop does not have an expression'));\n return null;\n }\n\n const [expressionParam, ...secondaryParams] = block.parameters;\n const match =\n stripOptionalParentheses(expressionParam, errors)?.match(FOR_LOOP_EXPRESSION_PATTERN);\n\n if (!match || match[2].trim().length === 0) {\n errors.push(new ParseError(\n expressionParam.sourceSpan,\n 'Cannot parse expression. @for loop expression must match the pattern \"<identifier> of <expression>\"'));\n return null;\n }\n\n const [, itemName, rawExpression] = match;\n // `expressionParam.expression` contains the variable declaration and the expression of the\n // for...of statement, i.e. 'user of users' The variable of a ForOfStatement is _only_ the \"const\n // user\" part and does not include \"of x\".\n const variableName = expressionParam.expression.split(' ')[0];\n const variableSpan = new ParseSourceSpan(\n expressionParam.sourceSpan.start,\n expressionParam.sourceSpan.start.moveBy(variableName.length));\n const result = {\n itemName: new t.Variable(itemName, '$implicit', variableSpan, variableSpan),\n trackBy: null as {expression: ASTWithSource, keywordSpan: ParseSourceSpan} | null,\n expression: parseBlockParameterToBinding(expressionParam, bindingParser, rawExpression),\n context: {} as t.ForLoopBlockContext,\n };\n\n for (const param of secondaryParams) {\n const letMatch = param.expression.match(FOR_LOOP_LET_PATTERN);\n\n if (letMatch !== null) {\n const variablesSpan = new ParseSourceSpan(\n param.sourceSpan.start.moveBy(letMatch[0].length - letMatch[1].length),\n param.sourceSpan.end);\n parseLetParameter(param.sourceSpan, letMatch[1], variablesSpan, result.context, errors);\n continue;\n }\n\n const trackMatch = param.expression.match(FOR_LOOP_TRACK_PATTERN);\n\n if (trackMatch !== null) {\n if (result.trackBy !== null) {\n errors.push(\n new ParseError(param.sourceSpan, '@for loop can only have one \"track\" expression'));\n } else {\n const expression = parseBlockParameterToBinding(param, bindingParser, trackMatch[1]);\n const keywordSpan = new ParseSourceSpan(\n param.sourceSpan.start, param.sourceSpan.start.moveBy('track'.length));\n result.trackBy = {expression, keywordSpan};\n }\n continue;\n }\n\n errors.push(\n new ParseError(param.sourceSpan, `Unrecognized @for loop paramater \"${param.expression}\"`));\n }\n\n // Fill out any variables that haven't been defined explicitly.\n for (const variableName of ALLOWED_FOR_LOOP_LET_VARIABLES) {\n if (!result.context.hasOwnProperty(variableName)) {\n // Give ambiently-available context variables empty spans at the end of the start of the `for`\n // block, since they are not explicitly defined.\n const emptySpanAfterForBlockStart =\n new ParseSourceSpan(block.startSourceSpan.end, block.startSourceSpan.end);\n result.context[variableName] = new t.Variable(\n variableName, variableName, emptySpanAfterForBlockStart, emptySpanAfterForBlockStart);\n }\n }\n\n return result;\n}\n\n/** Parses the `let` parameter of a `for` loop block. */\nfunction parseLetParameter(\n sourceSpan: ParseSourceSpan, expression: string, span: ParseSourceSpan,\n context: t.ForLoopBlockContext, errors: ParseError[]): void {\n const parts = expression.split(',');\n let startSpan = span.start;\n for (const part of parts) {\n const expressionParts = part.split('=');\n const name = expressionParts.length === 2 ? expressionParts[0].trim() : '';\n const variableName = (expressionParts.length === 2 ? expressionParts[1].trim() : '') as\n keyof t.ForLoopBlockContext;\n\n if (name.length === 0 || variableName.length === 0) {\n errors.push(new ParseError(\n sourceSpan,\n `Invalid @for loop \"let\" parameter. Parameter should match the pattern \"<name> = <variable name>\"`));\n } else if (!ALLOWED_FOR_LOOP_LET_VARIABLES.has(variableName)) {\n errors.push(new ParseError(\n sourceSpan,\n `Unknown \"let\" parameter variable \"${variableName}\". The allowed variables are: ${\n Array.from(ALLOWED_FOR_LOOP_LET_VARIABLES).join(', ')}`));\n } else if (context.hasOwnProperty(variableName)) {\n errors.push(\n new ParseError(sourceSpan, `Duplicate \"let\" parameter variable \"${variableName}\"`));\n } else {\n const [, keyLeadingWhitespace, keyName] =\n expressionParts[0].match(CHARACTERS_IN_SURROUNDING_WHITESPACE_PATTERN) ?? [];\n const keySpan = keyLeadingWhitespace !== undefined && expressionParts.length === 2 ?\n new ParseSourceSpan(\n /* strip leading spaces */\n startSpan.moveBy(keyLeadingWhitespace.length),\n /* advance to end of the variable name */\n startSpan.moveBy(keyLeadingWhitespace.length + keyName.length)) :\n span;\n\n let valueSpan: ParseSourceSpan|undefined = undefined;\n if (expressionParts.length === 2) {\n const [, valueLeadingWhitespace, implicit] =\n expressionParts[1].match(CHARACTERS_IN_SURROUNDING_WHITESPACE_PATTERN) ?? [];\n valueSpan = valueLeadingWhitespace !== undefined ?\n new ParseSourceSpan(\n startSpan.moveBy(expressionParts[0].length + 1 + valueLeadingWhitespace.length),\n startSpan.moveBy(\n expressionParts[0].length + 1 + valueLeadingWhitespace.length +\n implicit.length)) :\n undefined;\n }\n const sourceSpan = new ParseSourceSpan(keySpan.start, valueSpan?.end ?? keySpan.end);\n context[variableName] = new t.Variable(name, variableName, sourceSpan, keySpan, valueSpan);\n }\n startSpan = startSpan.moveBy(part.length + 1 /* add 1 to move past the comma */);\n }\n}\n\n/**\n * Checks that the shape of the blocks connected to an\n * `@if` block is correct. Returns an array of errors.\n */\nfunction validateIfConnectedBlocks(connectedBlocks: html.Block[]): ParseError[] {\n const errors: ParseError[] = [];\n let hasElse = false;\n\n for (let i = 0; i < connectedBlocks.length; i++) {\n const block = connectedBlocks[i];\n\n if (block.name === 'else') {\n if (hasElse) {\n errors.push(new ParseError(block.sourceSpan, 'Conditional can only have one @else block'));\n } else if (connectedBlocks.length > 1 && i < connectedBlocks.length - 1) {\n errors.push(\n new ParseError(block.sourceSpan, '@else block must be last inside the conditional'));\n } else if (block.parameters.length > 0) {\n errors.push(new ParseError(block.sourceSpan, '@else block cannot have parameters'));\n }\n hasElse = true;\n } else if (!ELSE_IF_PATTERN.test(block.name)) {\n errors.push(\n new ParseError(block.sourceSpan, `Unrecognized conditional block @${block.name}`));\n }\n }\n\n return errors;\n}\n\n/** Checks that the shape of a `switch` block is valid. Returns an array of errors. */\nfunction validateSwitchBlock(ast: html.Block): ParseError[] {\n const errors: ParseError[] = [];\n let hasDefault = false;\n\n if (ast.parameters.length !== 1) {\n errors.push(new ParseError(ast.sourceSpan, '@switch block must have exactly one parameter'));\n return errors;\n }\n\n for (const node of ast.children) {\n // Skip over comments and empty text nodes inside the switch block.\n // Empty text nodes can be used for formatting while comments don't affect the runtime.\n if (node instanceof html.Comment ||\n (node instanceof html.Text && node.value.trim().length === 0)) {\n continue;\n }\n\n if (!(node instanceof html.Block) || (node.name !== 'case' && node.name !== 'default')) {\n errors.push(new ParseError(\n node.sourceSpan, '@switch block can only contain @case and @default blocks'));\n continue;\n }\n\n if (node.name === 'default') {\n if (hasDefault) {\n errors.push(\n new ParseError(node.sourceSpan, '@switch block can only have one @default block'));\n } else if (node.parameters.length > 0) {\n errors.push(new ParseError(node.sourceSpan, '@default block cannot have parameters'));\n }\n hasDefault = true;\n } else if (node.name === 'case' && node.parameters.length !== 1) {\n errors.push(new ParseError(node.sourceSpan, '@case block must have exactly one parameter'));\n }\n }\n\n return errors;\n}\n\n/**\n * Parses a block parameter into a binding AST.\n * @param ast Block parameter that should be parsed.\n * @param bindingParser Parser that the expression should be parsed with.\n * @param part Specific part of the expression that should be parsed.\n */\nfunction parseBlockParameterToBinding(\n ast: html.BlockParameter, bindingParser: BindingParser, part?: string): ASTWithSource {\n let start: number;\n let end: number;\n\n if (typeof part === 'string') {\n // Note: `lastIndexOf` here should be enough to know the start index of the expression,\n // because we know that it'll be at the end of the param. Ideally we could use the `d`\n // flag when matching via regex and get the index from `match.indices`, but it's unclear\n // if we can use it yet since it's a relatively new feature. See:\n // https://github.com/tc39/proposal-regexp-match-indices\n start = Math.max(0, ast.expression.lastIndexOf(part));\n end = start + part.length;\n } else {\n start = 0;\n end = ast.expression.length;\n }\n\n return bindingParser.parseBinding(\n ast.expression.slice(start, end), false, ast.sourceSpan, ast.sourceSpan.start.offset + start);\n}\n\n/** Parses the parameter of a conditional block (`if` or `else if`). */\nfunction parseConditionalBlockParameters(\n block: html.Block, errors: ParseError[], bindingParser: BindingParser) {\n if (block.parameters.length === 0) {\n errors.push(new ParseError(block.sourceSpan, 'Conditional block does not have an expression'));\n return null;\n }\n\n const expression = parseBlockParameterToBinding(block.parameters[0], bindingParser);\n let expressionAlias: t.Variable|null = null;\n\n // Start from 1 since we processed the first parameter already.\n for (let i = 1; i < block.parameters.length; i++) {\n const param = block.parameters[i];\n const aliasMatch = param.expression.match(CONDITIONAL_ALIAS_PATTERN);\n\n // For now conditionals can only have an `as` parameter.\n // We may want to rework this later if we add more.\n if (aliasMatch === null) {\n errors.push(new ParseError(\n param.sourceSpan, `Unrecognized conditional paramater \"${param.expression}\"`));\n } else if (block.name !== 'if') {\n errors.push(new ParseError(\n param.sourceSpan, '\"as\" expression is only allowed on the primary @if block'));\n } else if (expressionAlias !== null) {\n errors.push(\n new ParseError(param.sourceSpan, 'Conditional can only have one \"as\" expression'));\n } else {\n const name = aliasMatch[2].trim();\n const variableStart = param.sourceSpan.start.moveBy(aliasMatch[1].length);\n const variableSpan = new ParseSourceSpan(variableStart, variableStart.moveBy(name.length));\n expressionAlias = new t.Variable(name, name, variableSpan, variableSpan);\n }\n }\n\n return {expression, expressionAlias};\n}\n\n/** Strips optional parentheses around from a control from expression parameter. */\nfunction stripOptionalParentheses(param: html.BlockParameter, errors: ParseError[]): string|null {\n const expression = param.expression;\n const spaceRegex = /^\\s$/;\n let openParens = 0;\n let start = 0;\n let end = expression.length - 1;\n\n for (let i = 0; i < expression.length; i++) {\n const char = expression[i];\n\n if (char === '(') {\n start = i + 1;\n openParens++;\n } else if (spaceRegex.test(char)) {\n continue;\n } else {\n break;\n }\n }\n\n if (openParens === 0) {\n return expression;\n }\n\n for (let i = expression.length - 1; i > -1; i--) {\n const char = expression[i];\n\n if (char === ')') {\n end = i;\n openParens--;\n if (openParens === 0) {\n break;\n }\n } else if (spaceRegex.test(char)) {\n continue;\n } else {\n break;\n }\n }\n\n if (openParens !== 0) {\n errors.push(new ParseError(param.sourceSpan, 'Unclosed parentheses in expression'));\n return null;\n }\n\n return expression.slice(start, end);\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as chars from '../chars';\nimport {Lexer, Token, TokenType} from '../expression_parser/lexer';\nimport * as html from '../ml_parser/ast';\nimport {ParseError, ParseSourceSpan} from '../parse_util';\nimport {BindingParser} from '../template_parser/binding_parser';\n\nimport * as t from './r3_ast';\n\n/** Pattern for a timing value in a trigger. */\nconst TIME_PATTERN = /^\\d+\\.?\\d*(ms|s)?$/;\n\n/** Pattern for a separator between keywords in a trigger expression. */\nconst SEPARATOR_PATTERN = /^\\s$/;\n\n/** Pairs of characters that form syntax that is comma-delimited. */\nconst COMMA_DELIMITED_SYNTAX = new Map([\n [chars.$LBRACE, chars.$RBRACE], // Object literals\n [chars.$LBRACKET, chars.$RBRACKET], // Array literals\n [chars.$LPAREN, chars.$RPAREN], // Function calls\n]);\n\n/** Possible types of `on` triggers. */\nenum OnTriggerType {\n IDLE = 'idle',\n TIMER = 'timer',\n INTERACTION = 'interaction',\n IMMEDIATE = 'immediate',\n HOVER = 'hover',\n VIEWPORT = 'viewport',\n}\n\n/** Parses a `when` deferred trigger. */\nexport function parseWhenTrigger(\n {expression, sourceSpan}: html.BlockParameter, bindingParser: BindingParser,\n triggers: t.DeferredBlockTriggers, errors: ParseError[]): void {\n const whenIndex = expression.indexOf('when');\n const whenSourceSpan = new ParseSourceSpan(\n sourceSpan.start.moveBy(whenIndex), sourceSpan.start.moveBy(whenIndex + 'when'.length));\n const prefetchSpan = getPrefetchSpan(expression, sourceSpan);\n\n // This is here just to be safe, we shouldn't enter this function\n // in the first place if a block doesn't have the \"when\" keyword.\n if (whenIndex === -1) {\n errors.push(new ParseError(sourceSpan, `Could not find \"when\" keyword in expression`));\n } else {\n const start = getTriggerParametersStart(expression, whenIndex + 1);\n const parsed = bindingParser.parseBinding(\n expression.slice(start), false, sourceSpan, sourceSpan.start.offset + start);\n trackTrigger(\n 'when', triggers, errors,\n new t.BoundDeferredTrigger(parsed, sourceSpan, prefetchSpan, whenSourceSpan));\n }\n}\n\n/** Parses an `on` trigger */\nexport function parseOnTrigger(\n {expression, sourceSpan}: html.BlockParameter, triggers: t.DeferredBlockTriggers,\n errors: ParseError[], placeholder: t.DeferredBlockPlaceholder|null): void {\n const onIndex = expression.indexOf('on');\n const onSourceSpan = new ParseSourceSpan(\n sourceSpan.start.moveBy(onIndex), sourceSpan.start.moveBy(onIndex + 'on'.length));\n const prefetchSpan = getPrefetchSpan(expression, sourceSpan);\n\n // This is here just to be safe, we shouldn't enter this function\n // in the first place if a block doesn't have the \"on\" keyword.\n if (onIndex === -1) {\n errors.push(new ParseError(sourceSpan, `Could not find \"on\" keyword in expression`));\n } else {\n const start = getTriggerParametersStart(expression, onIndex + 1);\n const parser = new OnTriggerParser(\n expression, start, sourceSpan, triggers, errors, placeholder, prefetchSpan, onSourceSpan);\n parser.parse();\n }\n}\n\nfunction getPrefetchSpan(expression: string, sourceSpan: ParseSourceSpan) {\n if (!expression.startsWith('prefetch')) {\n return null;\n }\n return new ParseSourceSpan(sourceSpan.start, sourceSpan.start.moveBy('prefetch'.length));\n}\n\n\nclass OnTriggerParser {\n private index = 0;\n private tokens: Token[];\n\n constructor(\n private expression: string, private start: number, private span: ParseSourceSpan,\n private triggers: t.DeferredBlockTriggers, private errors: ParseError[],\n private placeholder: t.DeferredBlockPlaceholder|null,\n private prefetchSpan: ParseSourceSpan|null, private onSourceSpan: ParseSourceSpan) {\n this.tokens = new Lexer().tokenize(expression.slice(start));\n }\n\n parse(): void {\n while (this.tokens.length > 0 && this.index < this.tokens.length) {\n const token = this.token();\n\n if (!token.isIdentifier()) {\n this.unexpectedToken(token);\n break;\n }\n\n // An identifier immediately followed by a comma or the end of\n // the expression cannot have parameters so we can exit early.\n if (this.isFollowedByOrLast(chars.$COMMA)) {\n this.consumeTrigger(token, []);\n this.advance();\n } else if (this.isFollowedByOrLast(chars.$LPAREN)) {\n this.advance(); // Advance to the opening paren.\n const prevErrors = this.errors.length;\n const parameters = this.consumeParameters();\n if (this.errors.length !== prevErrors) {\n break;\n }\n this.consumeTrigger(token, parameters);\n this.advance(); // Advance past the closing paren.\n } else if (this.index < this.tokens.length - 1) {\n this.unexpectedToken(this.tokens[this.index + 1]);\n }\n\n this.advance();\n }\n }\n\n private advance() {\n this.index++;\n }\n\n private isFollowedByOrLast(char: number): boolean {\n if (this.index === this.tokens.length - 1) {\n return true;\n }\n\n return this.tokens[this.index + 1].isCharacter(char);\n }\n\n private token(): Token {\n return this.tokens[Math.min(this.index, this.tokens.length - 1)];\n }\n\n private consumeTrigger(identifier: Token, parameters: string[]) {\n const triggerNameStartSpan =\n this.span.start.moveBy(this.start + identifier.index - this.tokens[0].index);\n const nameSpan = new ParseSourceSpan(\n triggerNameStartSpan, triggerNameStartSpan.moveBy(identifier.strValue.length));\n const endSpan = triggerNameStartSpan.moveBy(this.token().end - identifier.index);\n\n // Put the prefetch and on spans with the first trigger\n // This should maybe be refactored to have something like an outer OnGroup AST\n // Since triggers can be grouped with commas \"on hover(x), interaction(y)\"\n const isFirstTrigger = identifier.index === 0;\n const onSourceSpan = isFirstTrigger ? this.onSourceSpan : null;\n const prefetchSourceSpan = isFirstTrigger ? this.prefetchSpan : null;\n const sourceSpan =\n new ParseSourceSpan(isFirstTrigger ? this.span.start : triggerNameStartSpan, endSpan);\n\n try {\n switch (identifier.toString()) {\n case OnTriggerType.IDLE:\n this.trackTrigger(\n 'idle',\n createIdleTrigger(\n parameters, nameSpan, sourceSpan, prefetchSourceSpan, onSourceSpan));\n break;\n\n case OnTriggerType.TIMER:\n this.trackTrigger(\n 'timer',\n createTimerTrigger(\n parameters, nameSpan, sourceSpan, this.prefetchSpan, this.onSourceSpan));\n break;\n\n case OnTriggerType.INTERACTION:\n this.trackTrigger(\n 'interaction',\n createInteractionTrigger(\n parameters, nameSpan, sourceSpan, this.prefetchSpan, this.onSourceSpan,\n this.placeholder));\n break;\n\n case OnTriggerType.IMMEDIATE:\n this.trackTrigger(\n 'immediate',\n createImmediateTrigger(\n parameters, nameSpan, sourceSpan, this.prefetchSpan, this.onSourceSpan));\n break;\n\n case OnTriggerType.HOVER:\n this.trackTrigger(\n 'hover',\n createHoverTrigger(\n parameters, nameSpan, sourceSpan, this.prefetchSpan, this.onSourceSpan,\n this.placeholder));\n break;\n\n case OnTriggerType.VIEWPORT:\n this.trackTrigger(\n 'viewport',\n createViewportTrigger(\n parameters, nameSpan, sourceSpan, this.prefetchSpan, this.onSourceSpan,\n this.placeholder));\n break;\n\n default:\n throw new Error(`Unrecognized trigger type \"${identifier}\"`);\n }\n } catch (e) {\n this.error(identifier, (e as Error).message);\n }\n }\n\n private consumeParameters(): string[] {\n const parameters: string[] = [];\n\n if (!this.token().isCharacter(chars.$LPAREN)) {\n this.unexpectedToken(this.token());\n return parameters;\n }\n\n this.advance();\n\n const commaDelimStack: number[] = [];\n let current = '';\n\n while (this.index < this.tokens.length) {\n const token = this.token();\n\n // Stop parsing if we've hit the end character and we're outside of a comma-delimited syntax.\n // Note that we don't need to account for strings here since the lexer already parsed them\n // into string tokens.\n if (token.isCharacter(chars.$RPAREN) && commaDelimStack.length === 0) {\n if (current.length) {\n parameters.push(current);\n }\n break;\n }\n\n // In the `on` microsyntax \"top-level\" commas (e.g. ones outside of an parameters) separate\n // the different triggers (e.g. `on idle,timer(500)`). This is problematic, because the\n // function-like syntax also implies that multiple parameters can be passed into the\n // individual trigger (e.g. `on foo(a, b)`). To avoid tripping up the parser with commas that\n // are part of other sorts of syntax (object literals, arrays), we treat anything inside\n // a comma-delimited syntax block as plain text.\n if (token.type === TokenType.Character && COMMA_DELIMITED_SYNTAX.has(token.numValue)) {\n commaDelimStack.push(COMMA_DELIMITED_SYNTAX.get(token.numValue)!);\n }\n\n if (commaDelimStack.length > 0 &&\n token.isCharacter(commaDelimStack[commaDelimStack.length - 1])) {\n commaDelimStack.pop();\n }\n\n // If we hit a comma outside of a comma-delimited syntax, it means\n // that we're at the top level and we're starting a new parameter.\n if (commaDelimStack.length === 0 && token.isCharacter(chars.$COMMA) && current.length > 0) {\n parameters.push(current);\n current = '';\n this.advance();\n continue;\n }\n\n // Otherwise treat the token as a plain text character in the current parameter.\n current += this.tokenText();\n this.advance();\n }\n\n if (!this.token().isCharacter(chars.$RPAREN) || commaDelimStack.length > 0) {\n this.error(this.token(), 'Unexpected end of expression');\n }\n\n if (this.index < this.tokens.length - 1 &&\n !this.tokens[this.index + 1].isCharacter(chars.$COMMA)) {\n this.unexpectedToken(this.tokens[this.index + 1]);\n }\n\n return parameters;\n }\n\n private tokenText(): string {\n // Tokens have a toString already which we could use, but for string tokens it omits the quotes.\n // Eventually we could expose this information on the token directly.\n return this.expression.slice(this.start + this.token().index, this.start + this.token().end);\n }\n\n private trackTrigger(name: keyof t.DeferredBlockTriggers, trigger: t.DeferredTrigger): void {\n trackTrigger(name, this.triggers, this.errors, trigger);\n }\n\n private error(token: Token, message: string): void {\n const newStart = this.span.start.moveBy(this.start + token.index);\n const newEnd = newStart.moveBy(token.end - token.index);\n this.errors.push(new ParseError(new ParseSourceSpan(newStart, newEnd), message));\n }\n\n private unexpectedToken(token: Token) {\n this.error(token, `Unexpected token \"${token}\"`);\n }\n}\n\n/** Adds a trigger to a map of triggers. */\nfunction trackTrigger(\n name: keyof t.DeferredBlockTriggers, allTriggers: t.DeferredBlockTriggers, errors: ParseError[],\n trigger: t.DeferredTrigger) {\n if (allTriggers[name]) {\n errors.push(new ParseError(trigger.sourceSpan, `Duplicate \"${name}\" trigger is not allowed`));\n } else {\n allTriggers[name] = trigger as any;\n }\n}\n\nfunction createIdleTrigger(\n parameters: string[],\n nameSpan: ParseSourceSpan,\n sourceSpan: ParseSourceSpan,\n prefetchSpan: ParseSourceSpan|null,\n onSourceSpan: ParseSourceSpan|null,\n ): t.IdleDeferredTrigger {\n if (parameters.length > 0) {\n throw new Error(`\"${OnTriggerType.IDLE}\" trigger cannot have parameters`);\n }\n\n return new t.IdleDeferredTrigger(nameSpan, sourceSpan, prefetchSpan, onSourceSpan);\n}\n\nfunction createTimerTrigger(\n parameters: string[],\n nameSpan: ParseSourceSpan,\n sourceSpan: ParseSourceSpan,\n prefetchSpan: ParseSourceSpan|null,\n onSourceSpan: ParseSourceSpan|null,\n) {\n if (parameters.length !== 1) {\n throw new Error(`\"${OnTriggerType.TIMER}\" trigger must have exactly one parameter`);\n }\n\n const delay = parseDeferredTime(parameters[0]);\n\n if (delay === null) {\n throw new Error(`Could not parse time value of trigger \"${OnTriggerType.TIMER}\"`);\n }\n\n return new t.TimerDeferredTrigger(delay, nameSpan, sourceSpan, prefetchSpan, onSourceSpan);\n}\n\nfunction createImmediateTrigger(\n parameters: string[],\n nameSpan: ParseSourceSpan,\n sourceSpan: ParseSourceSpan,\n prefetchSpan: ParseSourceSpan|null,\n onSourceSpan: ParseSourceSpan|null,\n ): t.ImmediateDeferredTrigger {\n if (parameters.length > 0) {\n throw new Error(`\"${OnTriggerType.IMMEDIATE}\" trigger cannot have parameters`);\n }\n\n return new t.ImmediateDeferredTrigger(nameSpan, sourceSpan, prefetchSpan, onSourceSpan);\n}\n\nfunction createHoverTrigger(\n parameters: string[], nameSpan: ParseSourceSpan, sourceSpan: ParseSourceSpan,\n prefetchSpan: ParseSourceSpan|null, onSourceSpan: ParseSourceSpan|null,\n placeholder: t.DeferredBlockPlaceholder|null): t.HoverDeferredTrigger {\n validateReferenceBasedTrigger(OnTriggerType.HOVER, parameters, placeholder);\n return new t.HoverDeferredTrigger(\n parameters[0] ?? null, nameSpan, sourceSpan, prefetchSpan, onSourceSpan);\n}\n\nfunction createInteractionTrigger(\n parameters: string[], nameSpan: ParseSourceSpan, sourceSpan: ParseSourceSpan,\n prefetchSpan: ParseSourceSpan|null, onSourceSpan: ParseSourceSpan|null,\n placeholder: t.DeferredBlockPlaceholder|null): t.InteractionDeferredTrigger {\n validateReferenceBasedTrigger(OnTriggerType.INTERACTION, parameters, placeholder);\n return new t.InteractionDeferredTrigger(\n parameters[0] ?? null, nameSpan, sourceSpan, prefetchSpan, onSourceSpan);\n}\n\nfunction createViewportTrigger(\n parameters: string[], nameSpan: ParseSourceSpan, sourceSpan: ParseSourceSpan,\n prefetchSpan: ParseSourceSpan|null, onSourceSpan: ParseSourceSpan|null,\n placeholder: t.DeferredBlockPlaceholder|null): t.ViewportDeferredTrigger {\n validateReferenceBasedTrigger(OnTriggerType.VIEWPORT, parameters, placeholder);\n return new t.ViewportDeferredTrigger(\n parameters[0] ?? null, nameSpan, sourceSpan, prefetchSpan, onSourceSpan);\n}\n\nfunction validateReferenceBasedTrigger(\n type: OnTriggerType, parameters: string[], placeholder: t.DeferredBlockPlaceholder|null) {\n if (parameters.length > 1) {\n throw new Error(`\"${type}\" trigger can only have zero or one parameters`);\n }\n\n if (parameters.length === 0) {\n if (placeholder === null) {\n throw new Error(`\"${\n type}\" trigger with no parameters can only be placed on an @defer that has a @placeholder block`);\n }\n\n if (placeholder.children.length !== 1 || !(placeholder.children[0] instanceof t.Element)) {\n throw new Error(\n `\"${type}\" trigger with no parameters can only be placed on an @defer that has a ` +\n `@placeholder block with exactly one root element node`);\n }\n }\n}\n\n/** Gets the index within an expression at which the trigger parameters start. */\nexport function getTriggerParametersStart(value: string, startPosition = 0): number {\n let hasFoundSeparator = false;\n\n for (let i = startPosition; i < value.length; i++) {\n if (SEPARATOR_PATTERN.test(value[i])) {\n hasFoundSeparator = true;\n } else if (hasFoundSeparator) {\n return i;\n }\n }\n\n return -1;\n}\n\n/**\n * Parses a time expression from a deferred trigger to\n * milliseconds. Returns null if it cannot be parsed.\n */\nexport function parseDeferredTime(value: string): number|null {\n const match = value.match(TIME_PATTERN);\n\n if (!match) {\n return null;\n }\n\n const [time, units] = match;\n return parseFloat(time) * (units === 's' ? 1000 : 1);\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as html from '../ml_parser/ast';\nimport {ParseError, ParseSourceSpan} from '../parse_util';\nimport {BindingParser} from '../template_parser/binding_parser';\n\nimport * as t from './r3_ast';\nimport {getTriggerParametersStart, parseDeferredTime, parseOnTrigger, parseWhenTrigger} from './r3_deferred_triggers';\n\n/** Pattern to identify a `prefetch when` trigger. */\nconst PREFETCH_WHEN_PATTERN = /^prefetch\\s+when\\s/;\n\n/** Pattern to identify a `prefetch on` trigger. */\nconst PREFETCH_ON_PATTERN = /^prefetch\\s+on\\s/;\n\n/** Pattern to identify a `minimum` parameter in a block. */\nconst MINIMUM_PARAMETER_PATTERN = /^minimum\\s/;\n\n/** Pattern to identify a `after` parameter in a block. */\nconst AFTER_PARAMETER_PATTERN = /^after\\s/;\n\n/** Pattern to identify a `when` parameter in a block. */\nconst WHEN_PARAMETER_PATTERN = /^when\\s/;\n\n/** Pattern to identify a `on` parameter in a block. */\nconst ON_PARAMETER_PATTERN = /^on\\s/;\n\n/**\n * Predicate function that determines if a block with\n * a specific name cam be connected to a `defer` block.\n */\nexport function isConnectedDeferLoopBlock(name: string): boolean {\n return name === 'placeholder' || name === 'loading' || name === 'error';\n}\n\n/** Creates a deferred block from an HTML AST node. */\nexport function createDeferredBlock(\n ast: html.Block, connectedBlocks: html.Block[], visitor: html.Visitor,\n bindingParser: BindingParser): {node: t.DeferredBlock, errors: ParseError[]} {\n const errors: ParseError[] = [];\n const {placeholder, loading, error} = parseConnectedBlocks(connectedBlocks, errors, visitor);\n const {triggers, prefetchTriggers} =\n parsePrimaryTriggers(ast.parameters, bindingParser, errors, placeholder);\n\n // The `defer` block has a main span encompassing all of the connected branches as well.\n let lastEndSourceSpan = ast.endSourceSpan;\n let endOfLastSourceSpan = ast.sourceSpan.end;\n if (connectedBlocks.length > 0) {\n const lastConnectedBlock = connectedBlocks[connectedBlocks.length - 1];\n lastEndSourceSpan = lastConnectedBlock.endSourceSpan;\n endOfLastSourceSpan = lastConnectedBlock.sourceSpan.end;\n }\n\n const sourceSpanWithConnectedBlocks =\n new ParseSourceSpan(ast.sourceSpan.start, endOfLastSourceSpan);\n\n const node = new t.DeferredBlock(\n html.visitAll(visitor, ast.children, ast.children), triggers, prefetchTriggers, placeholder,\n loading, error, ast.nameSpan, sourceSpanWithConnectedBlocks, ast.sourceSpan,\n ast.startSourceSpan, lastEndSourceSpan, ast.i18n);\n\n return {node, errors};\n}\n\nfunction parseConnectedBlocks(\n connectedBlocks: html.Block[], errors: ParseError[], visitor: html.Visitor) {\n let placeholder: t.DeferredBlockPlaceholder|null = null;\n let loading: t.DeferredBlockLoading|null = null;\n let error: t.DeferredBlockError|null = null;\n\n for (const block of connectedBlocks) {\n try {\n if (!isConnectedDeferLoopBlock(block.name)) {\n errors.push(new ParseError(block.startSourceSpan, `Unrecognized block \"@${block.name}\"`));\n break;\n }\n\n switch (block.name) {\n case 'placeholder':\n if (placeholder !== null) {\n errors.push(new ParseError(\n block.startSourceSpan, `@defer block can only have one @placeholder block`));\n } else {\n placeholder = parsePlaceholderBlock(block, visitor);\n }\n break;\n\n case 'loading':\n if (loading !== null) {\n errors.push(new ParseError(\n block.startSourceSpan, `@defer block can only have one @loading block`));\n } else {\n loading = parseLoadingBlock(block, visitor);\n }\n break;\n\n case 'error':\n if (error !== null) {\n errors.push(new ParseError(\n block.startSourceSpan, `@defer block can only have one @error block`));\n } else {\n error = parseErrorBlock(block, visitor);\n }\n break;\n }\n } catch (e) {\n errors.push(new ParseError(block.startSourceSpan, (e as Error).message));\n }\n }\n\n return {placeholder, loading, error};\n}\n\nfunction parsePlaceholderBlock(ast: html.Block, visitor: html.Visitor): t.DeferredBlockPlaceholder {\n let minimumTime: number|null = null;\n\n for (const param of ast.parameters) {\n if (MINIMUM_PARAMETER_PATTERN.test(param.expression)) {\n if (minimumTime != null) {\n throw new Error(`@placeholder block can only have one \"minimum\" parameter`);\n }\n\n const parsedTime =\n parseDeferredTime(param.expression.slice(getTriggerParametersStart(param.expression)));\n\n if (parsedTime === null) {\n throw new Error(`Could not parse time value of parameter \"minimum\"`);\n }\n\n minimumTime = parsedTime;\n } else {\n throw new Error(`Unrecognized parameter in @placeholder block: \"${param.expression}\"`);\n }\n }\n\n return new t.DeferredBlockPlaceholder(\n html.visitAll(visitor, ast.children, ast.children), minimumTime, ast.nameSpan, ast.sourceSpan,\n ast.startSourceSpan, ast.endSourceSpan, ast.i18n);\n}\n\nfunction parseLoadingBlock(ast: html.Block, visitor: html.Visitor): t.DeferredBlockLoading {\n let afterTime: number|null = null;\n let minimumTime: number|null = null;\n\n for (const param of ast.parameters) {\n if (AFTER_PARAMETER_PATTERN.test(param.expression)) {\n if (afterTime != null) {\n throw new Error(`@loading block can only have one \"after\" parameter`);\n }\n\n const parsedTime =\n parseDeferredTime(param.expression.slice(getTriggerParametersStart(param.expression)));\n\n if (parsedTime === null) {\n throw new Error(`Could not parse time value of parameter \"after\"`);\n }\n\n afterTime = parsedTime;\n } else if (MINIMUM_PARAMETER_PATTERN.test(param.expression)) {\n if (minimumTime != null) {\n throw new Error(`@loading block can only have one \"minimum\" parameter`);\n }\n\n const parsedTime =\n parseDeferredTime(param.expression.slice(getTriggerParametersStart(param.expression)));\n\n if (parsedTime === null) {\n throw new Error(`Could not parse time value of parameter \"minimum\"`);\n }\n\n minimumTime = parsedTime;\n } else {\n throw new Error(`Unrecognized parameter in @loading block: \"${param.expression}\"`);\n }\n }\n\n return new t.DeferredBlockLoading(\n html.visitAll(visitor, ast.children, ast.children), afterTime, minimumTime, ast.nameSpan,\n ast.sourceSpan, ast.startSourceSpan, ast.endSourceSpan, ast.i18n);\n}\n\n\nfunction parseErrorBlock(ast: html.Block, visitor: html.Visitor): t.DeferredBlockError {\n if (ast.parameters.length > 0) {\n throw new Error(`@error block cannot have parameters`);\n }\n\n return new t.DeferredBlockError(\n html.visitAll(visitor, ast.children, ast.children), ast.nameSpan, ast.sourceSpan,\n ast.startSourceSpan, ast.endSourceSpan, ast.i18n);\n}\n\nfunction parsePrimaryTriggers(\n params: html.BlockParameter[], bindingParser: BindingParser, errors: ParseError[],\n placeholder: t.DeferredBlockPlaceholder|null) {\n const triggers: t.DeferredBlockTriggers = {};\n const prefetchTriggers: t.DeferredBlockTriggers = {};\n\n for (const param of params) {\n // The lexer ignores the leading spaces so we can assume\n // that the expression starts with a keyword.\n if (WHEN_PARAMETER_PATTERN.test(param.expression)) {\n parseWhenTrigger(param, bindingParser, triggers, errors);\n } else if (ON_PARAMETER_PATTERN.test(param.expression)) {\n parseOnTrigger(param, triggers, errors, placeholder);\n } else if (PREFETCH_WHEN_PATTERN.test(param.expression)) {\n parseWhenTrigger(param, bindingParser, prefetchTriggers, errors);\n } else if (PREFETCH_ON_PATTERN.test(param.expression)) {\n parseOnTrigger(param, prefetchTriggers, errors, placeholder);\n } else {\n errors.push(new ParseError(param.sourceSpan, 'Unrecognized trigger'));\n }\n }\n\n return {triggers, prefetchTriggers};\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {ParsedEvent, ParsedProperty, ParsedVariable} from '../expression_parser/ast';\nimport * as i18n from '../i18n/i18n_ast';\nimport * as html from '../ml_parser/ast';\nimport {replaceNgsp} from '../ml_parser/html_whitespaces';\nimport {isNgTemplate} from '../ml_parser/tags';\nimport {InterpolatedAttributeToken, InterpolatedTextToken} from '../ml_parser/tokens';\nimport {ParseError, ParseErrorLevel, ParseSourceSpan} from '../parse_util';\nimport {isStyleUrlResolvable} from '../style_url_resolver';\nimport {BindingParser} from '../template_parser/binding_parser';\nimport {PreparsedElementType, preparseElement} from '../template_parser/template_preparser';\n\nimport * as t from './r3_ast';\nimport {createForLoop, createIfBlock, createSwitchBlock, isConnectedForLoopBlock, isConnectedIfLoopBlock} from './r3_control_flow';\nimport {createDeferredBlock, isConnectedDeferLoopBlock} from './r3_deferred_blocks';\nimport {I18N_ICU_VAR_PREFIX, isI18nRootNode} from './view/i18n/util';\n\nconst BIND_NAME_REGEXP = /^(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*)$/;\n\n// Group 1 = \"bind-\"\nconst KW_BIND_IDX = 1;\n// Group 2 = \"let-\"\nconst KW_LET_IDX = 2;\n// Group 3 = \"ref-/#\"\nconst KW_REF_IDX = 3;\n// Group 4 = \"on-\"\nconst KW_ON_IDX = 4;\n// Group 5 = \"bindon-\"\nconst KW_BINDON_IDX = 5;\n// Group 6 = \"@\"\nconst KW_AT_IDX = 6;\n// Group 7 = the identifier after \"bind-\", \"let-\", \"ref-/#\", \"on-\", \"bindon-\" or \"@\"\nconst IDENT_KW_IDX = 7;\n\nconst BINDING_DELIMS = {\n BANANA_BOX: {start: '[(', end: ')]'},\n PROPERTY: {start: '[', end: ']'},\n EVENT: {start: '(', end: ')'},\n};\n\nconst TEMPLATE_ATTR_PREFIX = '*';\n\n// Result of the html AST to Ivy AST transformation\nexport interface Render3ParseResult {\n nodes: t.Node[];\n errors: ParseError[];\n styles: string[];\n styleUrls: string[];\n ngContentSelectors: string[];\n // Will be defined if `Render3ParseOptions['collectCommentNodes']` is true\n commentNodes?: t.Comment[];\n}\n\ninterface Render3ParseOptions {\n collectCommentNodes: boolean;\n}\n\nexport function htmlAstToRender3Ast(\n htmlNodes: html.Node[], bindingParser: BindingParser,\n options: Render3ParseOptions): Render3ParseResult {\n const transformer = new HtmlAstToIvyAst(bindingParser, options);\n const ivyNodes = html.visitAll(transformer, htmlNodes, htmlNodes);\n\n // Errors might originate in either the binding parser or the html to ivy transformer\n const allErrors = bindingParser.errors.concat(transformer.errors);\n\n const result: Render3ParseResult = {\n nodes: ivyNodes,\n errors: allErrors,\n styleUrls: transformer.styleUrls,\n styles: transformer.styles,\n ngContentSelectors: transformer.ngContentSelectors\n };\n if (options.collectCommentNodes) {\n result.commentNodes = transformer.commentNodes;\n }\n return result;\n}\n\nclass HtmlAstToIvyAst implements html.Visitor {\n errors: ParseError[] = [];\n styles: string[] = [];\n styleUrls: string[] = [];\n ngContentSelectors: string[] = [];\n // This array will be populated if `Render3ParseOptions['collectCommentNodes']` is true\n commentNodes: t.Comment[] = [];\n private inI18nBlock: boolean = false;\n\n /**\n * Keeps track of the nodes that have been processed already when previous nodes were visited.\n * These are typically blocks connected to other blocks or text nodes between connected blocks.\n */\n private processedNodes = new Set<html.Block|html.Text>();\n\n constructor(private bindingParser: BindingParser, private options: Render3ParseOptions) {}\n\n // HTML visitor\n visitElement(element: html.Element): t.Node|null {\n const isI18nRootElement = isI18nRootNode(element.i18n);\n if (isI18nRootElement) {\n if (this.inI18nBlock) {\n this.reportError(\n 'Cannot mark an element as translatable inside of a translatable section. Please remove the nested i18n marker.',\n element.sourceSpan);\n }\n this.inI18nBlock = true;\n }\n const preparsedElement = preparseElement(element);\n if (preparsedElement.type === PreparsedElementType.SCRIPT) {\n return null;\n } else if (preparsedElement.type === PreparsedElementType.STYLE) {\n const contents = textContents(element);\n if (contents !== null) {\n this.styles.push(contents);\n }\n return null;\n } else if (\n preparsedElement.type === PreparsedElementType.STYLESHEET &&\n isStyleUrlResolvable(preparsedElement.hrefAttr)) {\n this.styleUrls.push(preparsedElement.hrefAttr);\n return null;\n }\n\n // Whether the element is a `<ng-template>`\n const isTemplateElement = isNgTemplate(element.name);\n\n const parsedProperties: ParsedProperty[] = [];\n const boundEvents: t.BoundEvent[] = [];\n const variables: t.Variable[] = [];\n const references: t.Reference[] = [];\n const attributes: t.TextAttribute[] = [];\n const i18nAttrsMeta: {[key: string]: i18n.I18nMeta} = {};\n\n const templateParsedProperties: ParsedProperty[] = [];\n const templateVariables: t.Variable[] = [];\n\n // Whether the element has any *-attribute\n let elementHasInlineTemplate = false;\n\n for (const attribute of element.attrs) {\n let hasBinding = false;\n const normalizedName = normalizeAttributeName(attribute.name);\n\n // `*attr` defines template bindings\n let isTemplateBinding = false;\n\n if (attribute.i18n) {\n i18nAttrsMeta[attribute.name] = attribute.i18n;\n }\n\n if (normalizedName.startsWith(TEMPLATE_ATTR_PREFIX)) {\n // *-attributes\n if (elementHasInlineTemplate) {\n this.reportError(\n `Can't have multiple template bindings on one element. Use only one attribute prefixed with *`,\n attribute.sourceSpan);\n }\n isTemplateBinding = true;\n elementHasInlineTemplate = true;\n const templateValue = attribute.value;\n const templateKey = normalizedName.substring(TEMPLATE_ATTR_PREFIX.length);\n\n const parsedVariables: ParsedVariable[] = [];\n const absoluteValueOffset = attribute.valueSpan ?\n attribute.valueSpan.start.offset :\n // If there is no value span the attribute does not have a value, like `attr` in\n //`<div attr></div>`. In this case, point to one character beyond the last character of\n // the attribute name.\n attribute.sourceSpan.start.offset + attribute.name.length;\n\n this.bindingParser.parseInlineTemplateBinding(\n templateKey, templateValue, attribute.sourceSpan, absoluteValueOffset, [],\n templateParsedProperties, parsedVariables, true /* isIvyAst */);\n templateVariables.push(...parsedVariables.map(\n v => new t.Variable(v.name, v.value, v.sourceSpan, v.keySpan, v.valueSpan)));\n } else {\n // Check for variables, events, property bindings, interpolation\n hasBinding = this.parseAttribute(\n isTemplateElement, attribute, [], parsedProperties, boundEvents, variables, references);\n }\n\n if (!hasBinding && !isTemplateBinding) {\n // don't include the bindings as attributes as well in the AST\n attributes.push(this.visitAttribute(attribute));\n }\n }\n\n let children: t.Node[];\n\n if (preparsedElement.nonBindable) {\n // The `NonBindableVisitor` may need to return an array of nodes for blocks so we need\n // to flatten the array here. Avoid doing this for the `HtmlAstToIvyAst` since `flat` creates\n // a new array.\n children = html.visitAll(NON_BINDABLE_VISITOR, element.children).flat(Infinity);\n } else {\n children = html.visitAll(this, element.children, element.children);\n }\n\n let parsedElement: t.Content|t.Template|t.Element|undefined;\n if (preparsedElement.type === PreparsedElementType.NG_CONTENT) {\n // `<ng-content>`\n if (element.children &&\n !element.children.every(\n (node: html.Node) => isEmptyTextNode(node) || isCommentNode(node))) {\n this.reportError(`<ng-content> element cannot have content.`, element.sourceSpan);\n }\n const selector = preparsedElement.selectAttr;\n const attrs: t.TextAttribute[] = element.attrs.map(attr => this.visitAttribute(attr));\n parsedElement = new t.Content(selector, attrs, element.sourceSpan, element.i18n);\n\n this.ngContentSelectors.push(selector);\n } else if (isTemplateElement) {\n // `<ng-template>`\n const attrs = this.extractAttributes(element.name, parsedProperties, i18nAttrsMeta);\n\n parsedElement = new t.Template(\n element.name, attributes, attrs.bound, boundEvents, [/* no template attributes */],\n children, references, variables, element.sourceSpan, element.startSourceSpan,\n element.endSourceSpan, element.i18n);\n } else {\n const attrs = this.extractAttributes(element.name, parsedProperties, i18nAttrsMeta);\n parsedElement = new t.Element(\n element.name, attributes, attrs.bound, boundEvents, children, references,\n element.sourceSpan, element.startSourceSpan, element.endSourceSpan, element.i18n);\n }\n\n if (elementHasInlineTemplate) {\n // If this node is an inline-template (e.g. has *ngFor) then we need to create a template\n // node that contains this node.\n // Moreover, if the node is an element, then we need to hoist its attributes to the template\n // node for matching against content projection selectors.\n const attrs = this.extractAttributes('ng-template', templateParsedProperties, i18nAttrsMeta);\n const templateAttrs: (t.TextAttribute|t.BoundAttribute)[] = [];\n attrs.literal.forEach(attr => templateAttrs.push(attr));\n attrs.bound.forEach(attr => templateAttrs.push(attr));\n const hoistedAttrs = parsedElement instanceof t.Element ?\n {\n attributes: parsedElement.attributes,\n inputs: parsedElement.inputs,\n outputs: parsedElement.outputs,\n } :\n {attributes: [], inputs: [], outputs: []};\n\n // For <ng-template>s with structural directives on them, avoid passing i18n information to\n // the wrapping template to prevent unnecessary i18n instructions from being generated. The\n // necessary i18n meta information will be extracted from child elements.\n const i18n = isTemplateElement && isI18nRootElement ? undefined : element.i18n;\n const name = parsedElement instanceof t.Template ? null : parsedElement.name;\n\n parsedElement = new t.Template(\n name, hoistedAttrs.attributes, hoistedAttrs.inputs, hoistedAttrs.outputs, templateAttrs,\n [parsedElement], [/* no references */], templateVariables, element.sourceSpan,\n element.startSourceSpan, element.endSourceSpan, i18n);\n }\n if (isI18nRootElement) {\n this.inI18nBlock = false;\n }\n return parsedElement;\n }\n\n visitAttribute(attribute: html.Attribute): t.TextAttribute {\n return new t.TextAttribute(\n attribute.name, attribute.value, attribute.sourceSpan, attribute.keySpan,\n attribute.valueSpan, attribute.i18n);\n }\n\n visitText(text: html.Text): t.Node|null {\n return this.processedNodes.has(text) ?\n null :\n this._visitTextWithInterpolation(text.value, text.sourceSpan, text.tokens, text.i18n);\n }\n\n visitExpansion(expansion: html.Expansion): t.Icu|null {\n if (!expansion.i18n) {\n // do not generate Icu in case it was created\n // outside of i18n block in a template\n return null;\n }\n if (!isI18nRootNode(expansion.i18n)) {\n throw new Error(`Invalid type \"${expansion.i18n.constructor}\" for \"i18n\" property of ${\n expansion.sourceSpan.toString()}. Expected a \"Message\"`);\n }\n const message = expansion.i18n;\n const vars: {[name: string]: t.BoundText} = {};\n const placeholders: {[name: string]: t.Text|t.BoundText} = {};\n // extract VARs from ICUs - we process them separately while\n // assembling resulting message via goog.getMsg function, since\n // we need to pass them to top-level goog.getMsg call\n Object.keys(message.placeholders).forEach(key => {\n const value = message.placeholders[key];\n if (key.startsWith(I18N_ICU_VAR_PREFIX)) {\n // Currently when the `plural` or `select` keywords in an ICU contain trailing spaces (e.g.\n // `{count, select , ...}`), these spaces are also included into the key names in ICU vars\n // (e.g. \"VAR_SELECT \"). These trailing spaces are not desirable, since they will later be\n // converted into `_` symbols while normalizing placeholder names, which might lead to\n // mismatches at runtime (i.e. placeholder will not be replaced with the correct value).\n const formattedKey = key.trim();\n\n const ast = this.bindingParser.parseInterpolationExpression(value.text, value.sourceSpan);\n\n vars[formattedKey] = new t.BoundText(ast, value.sourceSpan);\n } else {\n placeholders[key] = this._visitTextWithInterpolation(value.text, value.sourceSpan, null);\n }\n });\n return new t.Icu(vars, placeholders, expansion.sourceSpan, message);\n }\n\n visitExpansionCase(expansionCase: html.ExpansionCase): null {\n return null;\n }\n\n visitComment(comment: html.Comment): null {\n if (this.options.collectCommentNodes) {\n this.commentNodes.push(new t.Comment(comment.value || '', comment.sourceSpan));\n }\n return null;\n }\n\n visitBlockParameter() {\n return null;\n }\n\n visitBlock(block: html.Block, context: html.Node[]) {\n const index = Array.isArray(context) ? context.indexOf(block) : -1;\n\n if (index === -1) {\n throw new Error(\n 'Visitor invoked incorrectly. Expecting visitBlock to be invoked siblings array as its context');\n }\n\n // Connected blocks may have been processed as a part of the previous block.\n if (this.processedNodes.has(block)) {\n return null;\n }\n\n let result: {node: t.Node|null, errors: ParseError[]}|null = null;\n\n switch (block.name) {\n case 'defer':\n result = createDeferredBlock(\n block, this.findConnectedBlocks(index, context, isConnectedDeferLoopBlock), this,\n this.bindingParser);\n break;\n\n case 'switch':\n result = createSwitchBlock(block, this, this.bindingParser);\n break;\n\n case 'for':\n result = createForLoop(\n block, this.findConnectedBlocks(index, context, isConnectedForLoopBlock), this,\n this.bindingParser);\n break;\n\n case 'if':\n result = createIfBlock(\n block, this.findConnectedBlocks(index, context, isConnectedIfLoopBlock), this,\n this.bindingParser);\n break;\n\n default:\n let errorMessage: string;\n\n if (isConnectedDeferLoopBlock(block.name)) {\n errorMessage = `@${block.name} block can only be used after an @defer block.`;\n this.processedNodes.add(block);\n } else if (isConnectedForLoopBlock(block.name)) {\n errorMessage = `@${block.name} block can only be used after an @for block.`;\n this.processedNodes.add(block);\n } else if (isConnectedIfLoopBlock(block.name)) {\n errorMessage = `@${block.name} block can only be used after an @if or @else if block.`;\n this.processedNodes.add(block);\n } else {\n errorMessage = `Unrecognized block @${block.name}.`;\n }\n\n result = {\n node: new t.UnknownBlock(block.name, block.sourceSpan, block.nameSpan),\n errors: [new ParseError(block.sourceSpan, errorMessage)],\n };\n break;\n }\n\n this.errors.push(...result.errors);\n return result.node;\n }\n\n private findConnectedBlocks(\n primaryBlockIndex: number, siblings: html.Node[],\n predicate: (blockName: string) => boolean): html.Block[] {\n const relatedBlocks: html.Block[] = [];\n\n for (let i = primaryBlockIndex + 1; i < siblings.length; i++) {\n const node = siblings[i];\n\n // Ignore empty text nodes between blocks.\n if (node instanceof html.Text && node.value.trim().length === 0) {\n // Add the text node to the processed nodes since we don't want\n // it to be generated between the connected nodes.\n this.processedNodes.add(node);\n continue;\n }\n\n // Stop searching as soon as we hit a non-block node or a block that is unrelated.\n if (!(node instanceof html.Block) || !predicate(node.name)) {\n break;\n }\n\n relatedBlocks.push(node);\n this.processedNodes.add(node);\n }\n\n return relatedBlocks;\n }\n\n // convert view engine `ParsedProperty` to a format suitable for IVY\n private extractAttributes(\n elementName: string, properties: ParsedProperty[],\n i18nPropsMeta: {[key: string]: i18n.I18nMeta}):\n {bound: t.BoundAttribute[], literal: t.TextAttribute[]} {\n const bound: t.BoundAttribute[] = [];\n const literal: t.TextAttribute[] = [];\n\n properties.forEach(prop => {\n const i18n = i18nPropsMeta[prop.name];\n if (prop.isLiteral) {\n literal.push(new t.TextAttribute(\n prop.name, prop.expression.source || '', prop.sourceSpan, prop.keySpan, prop.valueSpan,\n i18n));\n } else {\n // Note that validation is skipped and property mapping is disabled\n // due to the fact that we need to make sure a given prop is not an\n // input of a directive and directive matching happens at runtime.\n const bep = this.bindingParser.createBoundElementProperty(\n elementName, prop, /* skipValidation */ true, /* mapPropertyName */ false);\n bound.push(t.BoundAttribute.fromBoundElementProperty(bep, i18n));\n }\n });\n\n return {bound, literal};\n }\n\n private parseAttribute(\n isTemplateElement: boolean, attribute: html.Attribute, matchableAttributes: string[][],\n parsedProperties: ParsedProperty[], boundEvents: t.BoundEvent[], variables: t.Variable[],\n references: t.Reference[]) {\n const name = normalizeAttributeName(attribute.name);\n const value = attribute.value;\n const srcSpan = attribute.sourceSpan;\n const absoluteOffset =\n attribute.valueSpan ? attribute.valueSpan.start.offset : srcSpan.start.offset;\n\n function createKeySpan(srcSpan: ParseSourceSpan, prefix: string, identifier: string) {\n // We need to adjust the start location for the keySpan to account for the removed 'data-'\n // prefix from `normalizeAttributeName`.\n const normalizationAdjustment = attribute.name.length - name.length;\n const keySpanStart = srcSpan.start.moveBy(prefix.length + normalizationAdjustment);\n const keySpanEnd = keySpanStart.moveBy(identifier.length);\n return new ParseSourceSpan(keySpanStart, keySpanEnd, keySpanStart, identifier);\n }\n\n const bindParts = name.match(BIND_NAME_REGEXP);\n\n if (bindParts) {\n if (bindParts[KW_BIND_IDX] != null) {\n const identifier = bindParts[IDENT_KW_IDX];\n const keySpan = createKeySpan(srcSpan, bindParts[KW_BIND_IDX], identifier);\n this.bindingParser.parsePropertyBinding(\n identifier, value, false, false, srcSpan, absoluteOffset, attribute.valueSpan,\n matchableAttributes, parsedProperties, keySpan);\n\n } else if (bindParts[KW_LET_IDX]) {\n if (isTemplateElement) {\n const identifier = bindParts[IDENT_KW_IDX];\n const keySpan = createKeySpan(srcSpan, bindParts[KW_LET_IDX], identifier);\n this.parseVariable(identifier, value, srcSpan, keySpan, attribute.valueSpan, variables);\n } else {\n this.reportError(`\"let-\" is only supported on ng-template elements.`, srcSpan);\n }\n\n } else if (bindParts[KW_REF_IDX]) {\n const identifier = bindParts[IDENT_KW_IDX];\n const keySpan = createKeySpan(srcSpan, bindParts[KW_REF_IDX], identifier);\n this.parseReference(identifier, value, srcSpan, keySpan, attribute.valueSpan, references);\n } else if (bindParts[KW_ON_IDX]) {\n const events: ParsedEvent[] = [];\n const identifier = bindParts[IDENT_KW_IDX];\n const keySpan = createKeySpan(srcSpan, bindParts[KW_ON_IDX], identifier);\n this.bindingParser.parseEvent(\n identifier, value, /* isAssignmentEvent */ false, srcSpan,\n attribute.valueSpan || srcSpan, matchableAttributes, events, keySpan);\n addEvents(events, boundEvents);\n } else if (bindParts[KW_BINDON_IDX]) {\n const identifier = bindParts[IDENT_KW_IDX];\n const keySpan = createKeySpan(srcSpan, bindParts[KW_BINDON_IDX], identifier);\n this.bindingParser.parsePropertyBinding(\n identifier, value, false, true, srcSpan, absoluteOffset, attribute.valueSpan,\n matchableAttributes, parsedProperties, keySpan);\n this.parseAssignmentEvent(\n identifier, value, srcSpan, attribute.valueSpan, matchableAttributes, boundEvents,\n keySpan);\n } else if (bindParts[KW_AT_IDX]) {\n const keySpan = createKeySpan(srcSpan, '', name);\n this.bindingParser.parseLiteralAttr(\n name, value, srcSpan, absoluteOffset, attribute.valueSpan, matchableAttributes,\n parsedProperties, keySpan);\n }\n return true;\n }\n\n // We didn't see a kw-prefixed property binding, but we have not yet checked\n // for the []/()/[()] syntax.\n let delims: {start: string, end: string}|null = null;\n if (name.startsWith(BINDING_DELIMS.BANANA_BOX.start)) {\n delims = BINDING_DELIMS.BANANA_BOX;\n } else if (name.startsWith(BINDING_DELIMS.PROPERTY.start)) {\n delims = BINDING_DELIMS.PROPERTY;\n } else if (name.startsWith(BINDING_DELIMS.EVENT.start)) {\n delims = BINDING_DELIMS.EVENT;\n }\n if (delims !== null &&\n // NOTE: older versions of the parser would match a start/end delimited\n // binding iff the property name was terminated by the ending delimiter\n // and the identifier in the binding was non-empty.\n // TODO(ayazhafiz): update this to handle malformed bindings.\n name.endsWith(delims.end) && name.length > delims.start.length + delims.end.length) {\n const identifier = name.substring(delims.start.length, name.length - delims.end.length);\n const keySpan = createKeySpan(srcSpan, delims.start, identifier);\n if (delims.start === BINDING_DELIMS.BANANA_BOX.start) {\n this.bindingParser.parsePropertyBinding(\n identifier, value, false, true, srcSpan, absoluteOffset, attribute.valueSpan,\n matchableAttributes, parsedProperties, keySpan);\n this.parseAssignmentEvent(\n identifier, value, srcSpan, attribute.valueSpan, matchableAttributes, boundEvents,\n keySpan);\n } else if (delims.start === BINDING_DELIMS.PROPERTY.start) {\n this.bindingParser.parsePropertyBinding(\n identifier, value, false, false, srcSpan, absoluteOffset, attribute.valueSpan,\n matchableAttributes, parsedProperties, keySpan);\n } else {\n const events: ParsedEvent[] = [];\n this.bindingParser.parseEvent(\n identifier, value, /* isAssignmentEvent */ false, srcSpan,\n attribute.valueSpan || srcSpan, matchableAttributes, events, keySpan);\n addEvents(events, boundEvents);\n }\n\n return true;\n }\n\n // No explicit binding found.\n const keySpan = createKeySpan(srcSpan, '' /* prefix */, name);\n const hasBinding = this.bindingParser.parsePropertyInterpolation(\n name, value, srcSpan, attribute.valueSpan, matchableAttributes, parsedProperties, keySpan,\n attribute.valueTokens ?? null);\n return hasBinding;\n }\n\n private _visitTextWithInterpolation(\n value: string, sourceSpan: ParseSourceSpan,\n interpolatedTokens: InterpolatedAttributeToken[]|InterpolatedTextToken[]|null,\n i18n?: i18n.I18nMeta): t.Text|t.BoundText {\n const valueNoNgsp = replaceNgsp(value);\n const expr = this.bindingParser.parseInterpolation(valueNoNgsp, sourceSpan, interpolatedTokens);\n return expr ? new t.BoundText(expr, sourceSpan, i18n) : new t.Text(valueNoNgsp, sourceSpan);\n }\n\n private parseVariable(\n identifier: string, value: string, sourceSpan: ParseSourceSpan, keySpan: ParseSourceSpan,\n valueSpan: ParseSourceSpan|undefined, variables: t.Variable[]) {\n if (identifier.indexOf('-') > -1) {\n this.reportError(`\"-\" is not allowed in variable names`, sourceSpan);\n } else if (identifier.length === 0) {\n this.reportError(`Variable does not have a name`, sourceSpan);\n }\n\n variables.push(new t.Variable(identifier, value, sourceSpan, keySpan, valueSpan));\n }\n\n private parseReference(\n identifier: string, value: string, sourceSpan: ParseSourceSpan, keySpan: ParseSourceSpan,\n valueSpan: ParseSourceSpan|undefined, references: t.Reference[]) {\n if (identifier.indexOf('-') > -1) {\n this.reportError(`\"-\" is not allowed in reference names`, sourceSpan);\n } else if (identifier.length === 0) {\n this.reportError(`Reference does not have a name`, sourceSpan);\n } else if (references.some(reference => reference.name === identifier)) {\n this.reportError(`Reference \"#${identifier}\" is defined more than once`, sourceSpan);\n }\n\n references.push(new t.Reference(identifier, value, sourceSpan, keySpan, valueSpan));\n }\n\n private parseAssignmentEvent(\n name: string, expression: string, sourceSpan: ParseSourceSpan,\n valueSpan: ParseSourceSpan|undefined, targetMatchableAttrs: string[][],\n boundEvents: t.BoundEvent[], keySpan: ParseSourceSpan) {\n const events: ParsedEvent[] = [];\n this.bindingParser.parseEvent(\n `${name}Change`, `${expression} =$event`, /* isAssignmentEvent */ true, sourceSpan,\n valueSpan || sourceSpan, targetMatchableAttrs, events, keySpan);\n addEvents(events, boundEvents);\n }\n\n private reportError(\n message: string, sourceSpan: ParseSourceSpan,\n level: ParseErrorLevel = ParseErrorLevel.ERROR) {\n this.errors.push(new ParseError(sourceSpan, message, level));\n }\n}\n\nclass NonBindableVisitor implements html.Visitor {\n visitElement(ast: html.Element): t.Element|null {\n const preparsedElement = preparseElement(ast);\n if (preparsedElement.type === PreparsedElementType.SCRIPT ||\n preparsedElement.type === PreparsedElementType.STYLE ||\n preparsedElement.type === PreparsedElementType.STYLESHEET) {\n // Skipping <script> for security reasons\n // Skipping <style> and stylesheets as we already processed them\n // in the StyleCompiler\n return null;\n }\n\n const children: t.Node[] = html.visitAll(this, ast.children, null);\n return new t.Element(\n ast.name, html.visitAll(this, ast.attrs) as t.TextAttribute[],\n /* inputs */[], /* outputs */[], children, /* references */[], ast.sourceSpan,\n ast.startSourceSpan, ast.endSourceSpan);\n }\n\n visitComment(comment: html.Comment): any {\n return null;\n }\n\n visitAttribute(attribute: html.Attribute): t.TextAttribute {\n return new t.TextAttribute(\n attribute.name, attribute.value, attribute.sourceSpan, attribute.keySpan,\n attribute.valueSpan, attribute.i18n);\n }\n\n visitText(text: html.Text): t.Text {\n return new t.Text(text.value, text.sourceSpan);\n }\n\n visitExpansion(expansion: html.Expansion): any {\n return null;\n }\n\n visitExpansionCase(expansionCase: html.ExpansionCase): any {\n return null;\n }\n\n visitBlock(block: html.Block, context: any) {\n const nodes = [\n // In an ngNonBindable context we treat the opening/closing tags of block as plain text.\n // This is the as if the `tokenizeBlocks` option was disabled.\n new t.Text(block.startSourceSpan.toString(), block.startSourceSpan),\n ...html.visitAll(this, block.children)\n ];\n\n if (block.endSourceSpan !== null) {\n nodes.push(new t.Text(block.endSourceSpan.toString(), block.endSourceSpan));\n }\n\n return nodes;\n }\n\n visitBlockParameter(parameter: html.BlockParameter, context: any) {\n return null;\n }\n}\n\nconst NON_BINDABLE_VISITOR = new NonBindableVisitor();\n\nfunction normalizeAttributeName(attrName: string): string {\n return /^data-/i.test(attrName) ? attrName.substring(5) : attrName;\n}\n\nfunction addEvents(events: ParsedEvent[], boundEvents: t.BoundEvent[]) {\n boundEvents.push(...events.map(e => t.BoundEvent.fromParsedEvent(e)));\n}\n\nfunction isEmptyTextNode(node: html.Node): boolean {\n return node instanceof html.Text && node.value.trim().length == 0;\n}\n\nfunction isCommentNode(node: html.Node): boolean {\n return node instanceof html.Comment;\n}\n\nfunction textContents(node: html.Element): string|null {\n if (node.children.length !== 1 || !(node.children[0] instanceof html.Text)) {\n return null;\n } else {\n return (node.children[0] as html.Text).value;\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {AST} from '../../../expression_parser/ast';\nimport * as i18n from '../../../i18n/i18n_ast';\nimport * as o from '../../../output/output_ast';\n\nimport {assembleBoundTextPlaceholders, getSeqNumberGenerator, updatePlaceholderMap, wrapI18nPlaceholder} from './util';\n\nenum TagType {\n ELEMENT,\n TEMPLATE,\n}\n\n/**\n * Generates an object that is used as a shared state between parent and all child contexts.\n */\nfunction setupRegistry() {\n return {getUniqueId: getSeqNumberGenerator(), icus: new Map<string, any[]>()};\n}\n\n/**\n * I18nContext is a helper class which keeps track of all i18n-related aspects\n * (accumulates placeholders, bindings, etc) between i18nStart and i18nEnd instructions.\n *\n * When we enter a nested template, the top-level context is being passed down\n * to the nested component, which uses this context to generate a child instance\n * of I18nContext class (to handle nested template) and at the end, reconciles it back\n * with the parent context.\n *\n * @param index Instruction index of i18nStart, which initiates this context\n * @param ref Reference to a translation const that represents the content if thus context\n * @param level Nesting level defined for child contexts\n * @param templateIndex Instruction index of a template which this context belongs to\n * @param meta Meta information (id, meaning, description, etc) associated with this context\n */\nexport class I18nContext {\n public readonly id: number;\n public bindings = new Set<AST>();\n public placeholders = new Map<string, any[]>();\n public isEmitted: boolean = false;\n\n private _registry!: any;\n private _unresolvedCtxCount: number = 0;\n\n constructor(\n readonly index: number, readonly ref: o.ReadVarExpr, readonly level: number = 0,\n readonly templateIndex: number|null = null, readonly meta: i18n.I18nMeta,\n private registry?: any) {\n this._registry = registry || setupRegistry();\n this.id = this._registry.getUniqueId();\n }\n\n private appendTag(type: TagType, node: i18n.TagPlaceholder, index: number, closed?: boolean) {\n if (node.isVoid && closed) {\n return; // ignore \"close\" for void tags\n }\n const ph = node.isVoid || !closed ? node.startName : node.closeName;\n const content = {type, index, ctx: this.id, isVoid: node.isVoid, closed};\n updatePlaceholderMap(this.placeholders, ph, content);\n }\n\n private appendBlockPart(node: i18n.BlockPlaceholder, index: number, closed?: boolean) {\n const ph = closed ? node.closeName : node.startName;\n const content = {type: TagType.TEMPLATE, index, ctx: this.id, closed};\n updatePlaceholderMap(this.placeholders, ph, content);\n }\n\n get icus() {\n return this._registry.icus;\n }\n get isRoot() {\n return this.level === 0;\n }\n get isResolved() {\n return this._unresolvedCtxCount === 0;\n }\n\n getSerializedPlaceholders() {\n const result = new Map<string, any[]>();\n this.placeholders.forEach(\n (values, key) => result.set(key, values.map(serializePlaceholderValue)));\n return result;\n }\n\n // public API to accumulate i18n-related content\n appendBinding(binding: AST) {\n this.bindings.add(binding);\n }\n appendIcu(name: string, ref: o.Expression) {\n updatePlaceholderMap(this._registry.icus, name, ref);\n }\n appendBoundText(node: i18n.I18nMeta) {\n const phs = assembleBoundTextPlaceholders(node, this.bindings.size, this.id);\n phs.forEach((values, key) => updatePlaceholderMap(this.placeholders, key, ...values));\n }\n appendTemplate(node: i18n.I18nMeta, index: number) {\n // add open and close tags at the same time,\n // since we process nested templates separately\n this.appendTag(TagType.TEMPLATE, node as i18n.TagPlaceholder, index, false);\n this.appendTag(TagType.TEMPLATE, node as i18n.TagPlaceholder, index, true);\n this._unresolvedCtxCount++;\n }\n appendBlock(node: i18n.BlockPlaceholder, index: number) {\n // add open and close tags at the same time,\n // since we process nested templates separately\n this.appendBlockPart(node, index, false);\n this.appendBlockPart(node, index, true);\n this._unresolvedCtxCount++;\n }\n appendElement(node: i18n.I18nMeta, index: number, closed?: boolean) {\n this.appendTag(TagType.ELEMENT, node as i18n.TagPlaceholder, index, closed);\n }\n appendProjection(node: i18n.I18nMeta, index: number) {\n // Add open and close tags at the same time, since `<ng-content>` has no content,\n // so when we come across `<ng-content>` we can register both open and close tags.\n // Note: runtime i18n logic doesn't distinguish `<ng-content>` tag placeholders and\n // regular element tag placeholders, so we generate element placeholders for both types.\n this.appendTag(TagType.ELEMENT, node as i18n.TagPlaceholder, index, false);\n this.appendTag(TagType.ELEMENT, node as i18n.TagPlaceholder, index, true);\n }\n\n /**\n * Generates an instance of a child context based on the root one,\n * when we enter a nested template within I18n section.\n *\n * @param index Instruction index of corresponding i18nStart, which initiates this context\n * @param templateIndex Instruction index of a template which this context belongs to\n * @param meta Meta information (id, meaning, description, etc) associated with this context\n *\n * @returns I18nContext instance\n */\n forkChildContext(index: number, templateIndex: number, meta: i18n.I18nMeta) {\n return new I18nContext(index, this.ref, this.level + 1, templateIndex, meta, this._registry);\n }\n\n /**\n * Reconciles child context into parent one once the end of the i18n block is reached (i18nEnd).\n *\n * @param context Child I18nContext instance to be reconciled with parent context.\n */\n reconcileChildContext(context: I18nContext) {\n // set the right context id for open and close\n // template tags, so we can use it as sub-block ids\n ['start', 'close'].forEach((op: string) => {\n const key = (context.meta as any)[`${op}Name`];\n const phs = this.placeholders.get(key) || [];\n const tag = phs.find(findTemplateFn(this.id, context.templateIndex));\n if (tag) {\n tag.ctx = context.id;\n }\n });\n\n // reconcile placeholders\n const childPhs = context.placeholders;\n childPhs.forEach((values: any[], key: string) => {\n const phs = this.placeholders.get(key);\n if (!phs) {\n this.placeholders.set(key, values);\n return;\n }\n // try to find matching template...\n const tmplIdx = phs.findIndex(findTemplateFn(context.id, context.templateIndex));\n if (tmplIdx >= 0) {\n // ... if found - replace it with nested template content\n const isCloseTag = key.startsWith('CLOSE');\n const isTemplateTag = key.endsWith('NG-TEMPLATE');\n if (isTemplateTag) {\n // current template's content is placed before or after\n // parent template tag, depending on the open/close attribute\n phs.splice(tmplIdx + (isCloseTag ? 0 : 1), 0, ...values);\n } else {\n const idx = isCloseTag ? values.length - 1 : 0;\n values[idx].tmpl = phs[tmplIdx];\n phs.splice(tmplIdx, 1, ...values);\n }\n } else {\n // ... otherwise just append content to placeholder value\n phs.push(...values);\n }\n this.placeholders.set(key, phs);\n });\n this._unresolvedCtxCount--;\n }\n}\n\n//\n// Helper methods\n//\n\nfunction wrap(symbol: string, index: number, contextId: number, closed?: boolean): string {\n const state = closed ? '/' : '';\n return wrapI18nPlaceholder(`${state}${symbol}${index}`, contextId);\n}\n\nfunction wrapTag(symbol: string, {index, ctx, isVoid}: any, closed?: boolean): string {\n return isVoid ? wrap(symbol, index, ctx) + wrap(symbol, index, ctx, true) :\n wrap(symbol, index, ctx, closed);\n}\n\nfunction findTemplateFn(ctx: number, templateIndex: number|null) {\n return (token: any) => typeof token === 'object' && token.type === TagType.TEMPLATE &&\n token.index === templateIndex && token.ctx === ctx;\n}\n\nfunction serializePlaceholderValue(value: any): string {\n const element = (data: any, closed?: boolean) => wrapTag('#', data, closed);\n const template = (data: any, closed?: boolean) => wrapTag('*', data, closed);\n\n switch (value.type) {\n case TagType.ELEMENT:\n // close element tag\n if (value.closed) {\n return element(value, true) + (value.tmpl ? template(value.tmpl, true) : '');\n }\n // open element tag that also initiates a template\n if (value.tmpl) {\n return template(value.tmpl) + element(value) +\n (value.isVoid ? template(value.tmpl, true) : '');\n }\n return element(value);\n\n case TagType.TEMPLATE:\n return template(value, value.closed);\n\n default:\n return value;\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {BuiltinFunctionCall, convertActionBinding, convertPropertyBinding, convertPureComponentScopeFunction, convertUpdateArguments, LocalResolver} from '../../compiler_util/expression_converter';\nimport {ConstantPool} from '../../constant_pool';\nimport * as core from '../../core';\nimport {AST, AstMemoryEfficientTransformer, BindingPipe, BindingType, Call, ImplicitReceiver, Interpolation, LiteralArray, LiteralMap, LiteralPrimitive, ParsedEventType, PropertyRead} from '../../expression_parser/ast';\nimport {Lexer} from '../../expression_parser/lexer';\nimport {Parser} from '../../expression_parser/parser';\nimport * as i18n from '../../i18n/i18n_ast';\nimport * as html from '../../ml_parser/ast';\nimport {DEFAULT_INTERPOLATION_CONFIG, InterpolationConfig} from '../../ml_parser/defaults';\nimport {HtmlParser} from '../../ml_parser/html_parser';\nimport {WhitespaceVisitor} from '../../ml_parser/html_whitespaces';\nimport {LexerRange} from '../../ml_parser/lexer';\nimport {isNgContainer as checkIsNgContainer, splitNsName} from '../../ml_parser/tags';\nimport {mapLiteral} from '../../output/map_util';\nimport * as o from '../../output/output_ast';\nimport {ParseError, ParseSourceSpan, sanitizeIdentifier} from '../../parse_util';\nimport {DomElementSchemaRegistry} from '../../schema/dom_element_schema_registry';\nimport {isIframeSecuritySensitiveAttr} from '../../schema/dom_security_schema';\nimport {isTrustedTypesSink} from '../../schema/trusted_types_sinks';\nimport {CssSelector} from '../../selector';\nimport {BindingParser} from '../../template_parser/binding_parser';\nimport {error, partitionArray} from '../../util';\nimport * as t from '../r3_ast';\nimport {Identifiers as R3} from '../r3_identifiers';\nimport {htmlAstToRender3Ast} from '../r3_template_transform';\nimport {prepareSyntheticListenerFunctionName, prepareSyntheticListenerName, prepareSyntheticPropertyName} from '../util';\n\nimport {R3DeferBlockMetadata} from './api';\nimport {I18nContext} from './i18n/context';\nimport {createGoogleGetMsgStatements} from './i18n/get_msg_utils';\nimport {createLocalizeStatements} from './i18n/localize_utils';\nimport {I18nMetaVisitor} from './i18n/meta';\nimport {assembleBoundTextPlaceholders, assembleI18nBoundString, declareI18nVariable, formatI18nPlaceholderNamesInMap, getTranslationConstPrefix, hasI18nMeta, I18N_ICU_MAPPING_PREFIX, icuFromI18nMessage, isI18nRootNode, isSingleI18nIcu, placeholdersToParams, TRANSLATION_VAR_PREFIX, wrapI18nPlaceholder} from './i18n/util';\nimport {StylingBuilder, StylingInstruction} from './styling_builder';\nimport {asLiteral, CONTEXT_NAME, DIRECT_CONTEXT_REFERENCE, getInstructionStatements, getInterpolationArgsLength, IMPLICIT_REFERENCE, Instruction, InstructionParams, invalid, invokeInstruction, NON_BINDABLE_ATTR, REFERENCE_PREFIX, RENDER_FLAGS, RESTORED_VIEW_CONTEXT_NAME, trimTrailingNulls} from './util';\n\n\n\n// Selector attribute name of `<ng-content>`\nconst NG_CONTENT_SELECT_ATTR = 'select';\n\n// Attribute name of `ngProjectAs`.\nconst NG_PROJECT_AS_ATTR_NAME = 'ngProjectAs';\n\n// Global symbols available only inside event bindings.\nconst EVENT_BINDING_SCOPE_GLOBALS = new Set<string>(['$event']);\n\n// Tag name of the `ng-template` element.\nconst NG_TEMPLATE_TAG_NAME = 'ng-template';\n\n// List of supported global targets for event listeners\nconst GLOBAL_TARGET_RESOLVERS = new Map<string, o.ExternalReference>(\n [['window', R3.resolveWindow], ['document', R3.resolveDocument], ['body', R3.resolveBody]]);\n\nexport const LEADING_TRIVIA_CHARS = [' ', '\\n', '\\r', '\\t'];\n\n// if (rf & flags) { .. }\nexport function renderFlagCheckIfStmt(\n flags: core.RenderFlags, statements: o.Statement[]): o.IfStmt {\n return o.ifStmt(o.variable(RENDER_FLAGS).bitwiseAnd(o.literal(flags), null, false), statements);\n}\n\nexport function prepareEventListenerParameters(\n eventAst: t.BoundEvent, handlerName: string|null = null,\n scope: BindingScope|null = null): o.Expression[] {\n const {type, name, target, phase, handler} = eventAst;\n if (target && !GLOBAL_TARGET_RESOLVERS.has(target)) {\n throw new Error(`Unexpected global target '${target}' defined for '${name}' event.\n Supported list of global targets: ${Array.from(GLOBAL_TARGET_RESOLVERS.keys())}.`);\n }\n\n const eventArgumentName = '$event';\n const implicitReceiverAccesses = new Set<string>();\n const implicitReceiverExpr = (scope === null || scope.bindingLevel === 0) ?\n o.variable(CONTEXT_NAME) :\n scope.getOrCreateSharedContextVar(0);\n const bindingStatements = convertActionBinding(\n scope, implicitReceiverExpr, handler, 'b', eventAst.handlerSpan, implicitReceiverAccesses,\n EVENT_BINDING_SCOPE_GLOBALS);\n const statements = [];\n const variableDeclarations = scope?.variableDeclarations();\n const restoreViewStatement = scope?.restoreViewStatement();\n\n if (variableDeclarations) {\n // `variableDeclarations` needs to run first, because\n // `restoreViewStatement` depends on the result.\n statements.push(...variableDeclarations);\n }\n\n statements.push(...bindingStatements);\n\n if (restoreViewStatement) {\n statements.unshift(restoreViewStatement);\n\n // If there's a `restoreView` call, we need to reset the view at the end of the listener\n // in order to avoid a leak. If there's a `return` statement already, we wrap it in the\n // call, e.g. `return resetView(ctx.foo())`. Otherwise we add the call as the last statement.\n const lastStatement = statements[statements.length - 1];\n if (lastStatement instanceof o.ReturnStatement) {\n statements[statements.length - 1] = new o.ReturnStatement(\n invokeInstruction(lastStatement.value.sourceSpan, R3.resetView, [lastStatement.value]));\n } else {\n statements.push(new o.ExpressionStatement(invokeInstruction(null, R3.resetView, [])));\n }\n }\n\n const eventName: string =\n type === ParsedEventType.Animation ? prepareSyntheticListenerName(name, phase!) : name;\n const fnName = handlerName && sanitizeIdentifier(handlerName);\n const fnArgs: o.FnParam[] = [];\n\n if (implicitReceiverAccesses.has(eventArgumentName)) {\n fnArgs.push(new o.FnParam(eventArgumentName, o.DYNAMIC_TYPE));\n }\n\n const handlerFn = o.fn(fnArgs, statements, o.INFERRED_TYPE, null, fnName);\n const params: o.Expression[] = [o.literal(eventName), handlerFn];\n if (target) {\n params.push(\n o.literal(false), // `useCapture` flag, defaults to `false`\n o.importExpr(GLOBAL_TARGET_RESOLVERS.get(target)!));\n }\n return params;\n}\n\n// Collects information needed to generate `consts` field of the ComponentDef.\nexport interface ComponentDefConsts {\n /**\n * When a constant requires some pre-processing (e.g. i18n translation block that includes\n * goog.getMsg and $localize calls), the `prepareStatements` section contains corresponding\n * statements.\n */\n prepareStatements: o.Statement[];\n\n /**\n * Actual expressions that represent constants.\n */\n constExpressions: o.Expression[];\n\n /**\n * Cache to avoid generating duplicated i18n translation blocks.\n */\n i18nVarRefsCache: Map<i18n.I18nMeta, o.ReadVarExpr>;\n}\n\nfunction createComponentDefConsts(): ComponentDefConsts {\n return {\n prepareStatements: [],\n constExpressions: [],\n i18nVarRefsCache: new Map(),\n };\n}\n\nclass TemplateData {\n constructor(\n readonly name: string, readonly index: number, readonly scope: BindingScope,\n private visitor: TemplateDefinitionBuilder) {}\n\n getConstCount() {\n return this.visitor.getConstCount();\n }\n\n getVarCount() {\n return this.visitor.getVarCount();\n }\n}\n\nexport class TemplateDefinitionBuilder implements t.Visitor<void>, LocalResolver {\n private _dataIndex = 0;\n private _bindingContext = 0;\n private _prefixCode: o.Statement[] = [];\n /**\n * List of callbacks to generate creation mode instructions. We store them here as we process\n * the template so bindings in listeners are resolved only once all nodes have been visited.\n * This ensures all local refs and context variables are available for matching.\n */\n private _creationCodeFns: Instruction[] = [];\n /**\n * List of callbacks to generate update mode instructions. We store them here as we process\n * the template so bindings are resolved only once all nodes have been visited. This ensures\n * all local refs and context variables are available for matching.\n */\n private _updateCodeFns: Instruction[] = [];\n\n /** Index of the currently-selected node. */\n private _currentIndex: number = 0;\n\n /** Temporary variable declarations generated from visiting pipes, literals, etc. */\n private _tempVariables: o.Statement[] = [];\n\n /**\n * Temporary variable used to store state between control flow instructions.\n * Should be accessed via the `allocateControlFlowTempVariable` method.\n */\n private _controlFlowTempVariable: o.ReadVarExpr|null = null;\n\n /**\n * List of callbacks to build nested templates. Nested templates must not be visited until\n * after the parent template has finished visiting all of its nodes. This ensures that all\n * local ref bindings in nested templates are able to find local ref values if the refs\n * are defined after the template declaration.\n */\n private _nestedTemplateFns: (() => void)[] = [];\n /**\n * This scope contains local variables declared in the update mode block of the template.\n * (e.g. refs and context vars in bindings)\n */\n private _bindingScope: BindingScope;\n private _valueConverter: ValueConverter;\n\n // i18n context local to this template\n private i18n: I18nContext|null = null;\n\n // Number of slots to reserve for pureFunctions\n private _pureFunctionSlots = 0;\n\n // Number of binding slots\n private _bindingSlots = 0;\n\n private fileBasedI18nSuffix: string;\n\n // Projection slots found in the template. Projection slots can distribute projected\n // nodes based on a selector, or can just use the wildcard selector to match\n // all nodes which aren't matching any selector.\n private _ngContentReservedSlots: (string|'*')[] = [];\n\n // Number of non-default selectors found in all parent templates of this template. We need to\n // track it to properly adjust projection slot index in the `projection` instruction.\n private _ngContentSelectorsOffset = 0;\n\n // Expression that should be used as implicit receiver when converting template\n // expressions to output AST.\n private _implicitReceiverExpr: o.ReadVarExpr|null = null;\n\n constructor(\n private constantPool: ConstantPool, parentBindingScope: BindingScope, private level = 0,\n private contextName: string|null, private i18nContext: I18nContext|null,\n private templateIndex: number|null, private templateName: string|null,\n private _namespace: o.ExternalReference, relativeContextFilePath: string,\n private i18nUseExternalIds: boolean,\n private deferBlocks: Map<t.DeferredBlock, R3DeferBlockMetadata>,\n private elementLocations: Map<t.Element, {index: number, level: number}>,\n private allDeferrableDepsFn: o.ReadVarExpr|null,\n private _constants: ComponentDefConsts = createComponentDefConsts()) {\n this._bindingScope = parentBindingScope.nestedScope(level);\n\n // Turn the relative context file path into an identifier by replacing non-alphanumeric\n // characters with underscores.\n this.fileBasedI18nSuffix = relativeContextFilePath.replace(/[^A-Za-z0-9]/g, '_') + '_';\n\n this._valueConverter = new ValueConverter(\n constantPool, () => this.allocateDataSlot(),\n (numSlots: number) => this.allocatePureFunctionSlots(numSlots),\n (name, localName, slot, value: o.Expression) => {\n this._bindingScope.set(this.level, localName, value);\n this.creationInstruction(null, R3.pipe, [o.literal(slot), o.literal(name)]);\n });\n }\n\n buildTemplateFunction(\n nodes: t.Node[], variables: t.Variable[], ngContentSelectorsOffset: number = 0,\n i18n?: i18n.I18nMeta, variableAliases?: Record<string, string>): o.FunctionExpr {\n this._ngContentSelectorsOffset = ngContentSelectorsOffset;\n\n if (this._namespace !== R3.namespaceHTML) {\n this.creationInstruction(null, this._namespace);\n }\n\n // Create variable bindings\n variables.forEach(v => {\n const alias = variableAliases?.[v.name];\n this.registerContextVariables(v.name, v.value);\n if (alias) {\n this.registerContextVariables(alias, v.value);\n }\n });\n\n // Initiate i18n context in case:\n // - this template has parent i18n context\n // - or the template has i18n meta associated with it,\n // but it's not initiated by the Element (e.g. <ng-template i18n>)\n const initI18nContext = this.i18nContext ||\n (isI18nRootNode(i18n) && !isSingleI18nIcu(i18n) &&\n !(isSingleElementTemplate(nodes) && nodes[0].i18n === i18n));\n const selfClosingI18nInstruction = hasTextChildrenOnly(nodes);\n if (initI18nContext) {\n this.i18nStart(null, i18n!, selfClosingI18nInstruction);\n }\n\n // This is the initial pass through the nodes of this template. In this pass, we\n // queue all creation mode and update mode instructions for generation in the second\n // pass. It's necessary to separate the passes to ensure local refs are defined before\n // resolving bindings. We also count bindings in this pass as we walk bound expressions.\n t.visitAll(this, nodes);\n\n // Add total binding count to pure function count so pure function instructions are\n // generated with the correct slot offset when update instructions are processed.\n this._pureFunctionSlots += this._bindingSlots;\n\n // Pipes are walked in the first pass (to enqueue `pipe()` creation instructions and\n // `pipeBind` update instructions), so we have to update the slot offsets manually\n // to account for bindings.\n this._valueConverter.updatePipeSlotOffsets(this._bindingSlots);\n\n // Nested templates must be processed before creation instructions so template()\n // instructions can be generated with the correct internal const count.\n this._nestedTemplateFns.forEach(buildTemplateFn => buildTemplateFn());\n\n // Output the `projectionDef` instruction when some `<ng-content>` tags are present.\n // The `projectionDef` instruction is only emitted for the component template and\n // is skipped for nested templates (<ng-template> tags).\n if (this.level === 0 && this._ngContentReservedSlots.length) {\n const parameters: o.Expression[] = [];\n\n // By default the `projectionDef` instructions creates one slot for the wildcard\n // selector if no parameters are passed. Therefore we only want to allocate a new\n // array for the projection slots if the default projection slot is not sufficient.\n if (this._ngContentReservedSlots.length > 1 || this._ngContentReservedSlots[0] !== '*') {\n const r3ReservedSlots = this._ngContentReservedSlots.map(\n s => s !== '*' ? core.parseSelectorToR3Selector(s) : s);\n parameters.push(this.constantPool.getConstLiteral(asLiteral(r3ReservedSlots), true));\n }\n\n // Since we accumulate ngContent selectors while processing template elements,\n // we *prepend* `projectionDef` to creation instructions block, to put it before\n // any `projection` instructions\n this.creationInstruction(null, R3.projectionDef, parameters, /* prepend */ true);\n }\n\n if (initI18nContext) {\n this.i18nEnd(null, selfClosingI18nInstruction);\n }\n\n // Generate all the creation mode instructions (e.g. resolve bindings in listeners)\n const creationStatements = getInstructionStatements(this._creationCodeFns);\n\n // Generate all the update mode instructions (e.g. resolve property or text bindings)\n const updateStatements = getInstructionStatements(this._updateCodeFns);\n\n // Variable declaration must occur after binding resolution so we can generate context\n // instructions that build on each other.\n // e.g. const b = nextContext().$implicit(); const b = nextContext();\n const creationVariables = this._bindingScope.viewSnapshotStatements();\n const updateVariables = this._bindingScope.variableDeclarations().concat(this._tempVariables);\n\n const creationBlock = creationStatements.length > 0 ?\n [renderFlagCheckIfStmt(\n core.RenderFlags.Create, creationVariables.concat(creationStatements))] :\n [];\n\n const updateBlock = updateStatements.length > 0 ?\n [renderFlagCheckIfStmt(core.RenderFlags.Update, updateVariables.concat(updateStatements))] :\n [];\n\n return o.fn(\n // i.e. (rf: RenderFlags, ctx: any)\n [new o.FnParam(RENDER_FLAGS, o.NUMBER_TYPE), new o.FnParam(CONTEXT_NAME, null)],\n [\n // Temporary variable declarations for query refresh (i.e. let _t: any;)\n ...this._prefixCode,\n // Creating mode (i.e. if (rf & RenderFlags.Create) { ... })\n ...creationBlock,\n // Binding and refresh mode (i.e. if (rf & RenderFlags.Update) {...})\n ...updateBlock,\n ],\n o.INFERRED_TYPE, null, this.templateName);\n }\n\n // LocalResolver\n getLocal(name: string): o.Expression|null {\n return this._bindingScope.get(name);\n }\n\n // LocalResolver\n notifyImplicitReceiverUse(): void {\n this._bindingScope.notifyImplicitReceiverUse();\n }\n\n // LocalResolver\n maybeRestoreView(): void {\n this._bindingScope.maybeRestoreView();\n }\n\n private i18nTranslate(\n message: i18n.Message, params: {[name: string]: o.Expression} = {}, ref?: o.ReadVarExpr,\n transformFn?: (raw: o.ReadVarExpr) => o.Expression): o.ReadVarExpr {\n const _ref = ref || this.i18nGenerateMainBlockVar();\n // Closure Compiler requires const names to start with `MSG_` but disallows any other const to\n // start with `MSG_`. We define a variable starting with `MSG_` just for the `goog.getMsg` call\n const closureVar = this.i18nGenerateClosureVar(message.id);\n const statements = getTranslationDeclStmts(message, _ref, closureVar, params, transformFn);\n this._constants.prepareStatements.push(...statements);\n return _ref;\n }\n\n private registerContextVariables(name: string, value: string) {\n const scopedName = this._bindingScope.freshReferenceName();\n const retrievalLevel = this.level;\n const isDirect = value === DIRECT_CONTEXT_REFERENCE;\n const lhs = o.variable(name + scopedName);\n\n this._bindingScope.set(\n retrievalLevel, name,\n scope => {\n // If we're at the top level and we're referring to the context variable directly, we\n // can do so through the implicit receiver, instead of renaming it. Note that this does\n // not apply to listeners, because they need to restore the context.\n return isDirect && scope.bindingLevel === retrievalLevel && !scope.isListenerScope() ?\n o.variable(CONTEXT_NAME) :\n lhs;\n },\n DeclarationPriority.CONTEXT,\n (scope: BindingScope, relativeLevel: number) => {\n let rhs: o.Expression;\n\n if (scope.bindingLevel === retrievalLevel) {\n if (scope.isListenerScope() && scope.hasRestoreViewVariable()) {\n // e.g. restoredCtx.\n // We have to get the context from a view reference, if one is available, because\n // the context that was passed in during creation may not be correct anymore.\n // For more information see: https://github.com/angular/angular/pull/40360.\n rhs = o.variable(RESTORED_VIEW_CONTEXT_NAME);\n scope.notifyRestoredViewContextUse();\n } else if (isDirect) {\n // If we have a direct read of the context at the top level we don't need to\n // declare any variables and we can refer to it directly.\n return [];\n } else {\n // e.g. ctx\n rhs = o.variable(CONTEXT_NAME);\n }\n } else {\n const sharedCtxVar = scope.getSharedContextName(retrievalLevel);\n // e.g. ctx_r0 OR x(2);\n rhs = sharedCtxVar ? sharedCtxVar : generateNextContextExpr(relativeLevel);\n }\n\n return [\n // e.g. const $items$ = x(2) for direct context references and\n // const $item$ = x(2).$implicit for indirect ones.\n lhs.set(isDirect ? rhs : rhs.prop(value || IMPLICIT_REFERENCE)).toConstDecl()\n ];\n });\n }\n\n private i18nAppendBindings(expressions: AST[]) {\n if (expressions.length > 0) {\n expressions.forEach(expression => this.i18n!.appendBinding(expression));\n }\n }\n\n private i18nBindProps(props: {[key: string]: t.Text|t.BoundText}): {[key: string]: o.Expression} {\n const bound: {[key: string]: o.Expression} = {};\n Object.keys(props).forEach(key => {\n const prop = props[key];\n if (prop instanceof t.Text) {\n bound[key] = o.literal(prop.value);\n } else {\n const value = prop.value.visit(this._valueConverter);\n this.allocateBindingSlots(value);\n if (value instanceof Interpolation) {\n const {strings, expressions} = value;\n const {id, bindings} = this.i18n!;\n const label = assembleI18nBoundString(strings, bindings.size, id);\n this.i18nAppendBindings(expressions);\n bound[key] = o.literal(label);\n }\n }\n });\n return bound;\n }\n\n // Generates top level vars for i18n blocks (i.e. `i18n_N`).\n private i18nGenerateMainBlockVar(): o.ReadVarExpr {\n return o.variable(this.constantPool.uniqueName(TRANSLATION_VAR_PREFIX));\n }\n\n // Generates vars with Closure-specific names for i18n blocks (i.e. `MSG_XXX`).\n private i18nGenerateClosureVar(messageId: string): o.ReadVarExpr {\n let name: string;\n const suffix = this.fileBasedI18nSuffix.toUpperCase();\n if (this.i18nUseExternalIds) {\n const prefix = getTranslationConstPrefix(`EXTERNAL_`);\n const uniqueSuffix = this.constantPool.uniqueName(suffix);\n name = `${prefix}${sanitizeIdentifier(messageId)}$$${uniqueSuffix}`;\n } else {\n const prefix = getTranslationConstPrefix(suffix);\n name = this.constantPool.uniqueName(prefix);\n }\n return o.variable(name);\n }\n\n private i18nUpdateRef(context: I18nContext): void {\n const {icus, meta, isRoot, isResolved, isEmitted} = context;\n if (isRoot && isResolved && !isEmitted && !isSingleI18nIcu(meta)) {\n context.isEmitted = true;\n const placeholders = context.getSerializedPlaceholders();\n let icuMapping: {[name: string]: o.Expression} = {};\n let params: {[name: string]: o.Expression} =\n placeholders.size ? placeholdersToParams(placeholders) : {};\n if (icus.size) {\n icus.forEach((refs: o.Expression[], key: string) => {\n if (refs.length === 1) {\n // if we have one ICU defined for a given\n // placeholder - just output its reference\n params[key] = refs[0];\n } else {\n // ... otherwise we need to activate post-processing\n // to replace ICU placeholders with proper values\n const placeholder: string = wrapI18nPlaceholder(`${I18N_ICU_MAPPING_PREFIX}${key}`);\n params[key] = o.literal(placeholder);\n icuMapping[key] = o.literalArr(refs);\n }\n });\n }\n\n // translation requires post processing in 2 cases:\n // - if we have placeholders with multiple values (ex. `START_DIV`: [<5B>#1<>, <20>#2<>, ...])\n // - if we have multiple ICUs that refer to the same placeholder name\n const needsPostprocessing =\n Array.from(placeholders.values()).some((value: string[]) => value.length > 1) ||\n Object.keys(icuMapping).length;\n\n let transformFn;\n if (needsPostprocessing) {\n transformFn = (raw: o.ReadVarExpr) => {\n const args: o.Expression[] = [raw];\n if (Object.keys(icuMapping).length) {\n args.push(mapLiteral(icuMapping, true));\n }\n return invokeInstruction(null, R3.i18nPostprocess, args);\n };\n }\n this.i18nTranslate(meta as i18n.Message, params, context.ref, transformFn);\n }\n }\n\n private i18nStart(span: ParseSourceSpan|null = null, meta: i18n.I18nMeta, selfClosing?: boolean):\n void {\n const index = this.allocateDataSlot();\n this.i18n = this.i18nContext ?\n this.i18nContext.forkChildContext(index, this.templateIndex!, meta) :\n new I18nContext(index, this.i18nGenerateMainBlockVar(), 0, this.templateIndex, meta);\n\n // generate i18nStart instruction\n const {id, ref} = this.i18n;\n const params: o.Expression[] = [o.literal(index), this.addToConsts(ref)];\n if (id > 0) {\n // do not push 3rd argument (sub-block id)\n // into i18nStart call for top level i18n context\n params.push(o.literal(id));\n }\n this.creationInstruction(span, selfClosing ? R3.i18n : R3.i18nStart, params);\n }\n\n private i18nEnd(span: ParseSourceSpan|null = null, selfClosing?: boolean): void {\n if (!this.i18n) {\n throw new Error('i18nEnd is executed with no i18n context present');\n }\n\n if (this.i18nContext) {\n this.i18nContext.reconcileChildContext(this.i18n);\n this.i18nUpdateRef(this.i18nContext);\n } else {\n this.i18nUpdateRef(this.i18n);\n }\n\n // setup accumulated bindings\n const {index, bindings} = this.i18n;\n if (bindings.size) {\n for (const binding of bindings) {\n // for i18n block, advance to the most recent element index (by taking the current number of\n // elements and subtracting one) before invoking `i18nExp` instructions, to make sure the\n // necessary lifecycle hooks of components/directives are properly flushed.\n this.updateInstructionWithAdvance(\n this.getConstCount() - 1, span, R3.i18nExp, () => this.convertPropertyBinding(binding));\n }\n\n this.updateInstruction(span, R3.i18nApply, [o.literal(index)]);\n }\n if (!selfClosing) {\n this.creationInstruction(span, R3.i18nEnd);\n }\n this.i18n = null; // reset local i18n context\n }\n\n private i18nAttributesInstruction(\n nodeIndex: number, attrs: t.BoundAttribute[], sourceSpan: ParseSourceSpan): void {\n let hasBindings = false;\n const i18nAttrArgs: o.Expression[] = [];\n attrs.forEach(attr => {\n const message = attr.i18n! as i18n.Message;\n const converted = attr.value.visit(this._valueConverter);\n this.allocateBindingSlots(converted);\n if (converted instanceof Interpolation) {\n const placeholders = assembleBoundTextPlaceholders(message);\n const params = placeholdersToParams(placeholders);\n i18nAttrArgs.push(o.literal(attr.name), this.i18nTranslate(message, params));\n converted.expressions.forEach(expression => {\n hasBindings = true;\n this.updateInstructionWithAdvance(\n nodeIndex, sourceSpan, R3.i18nExp, () => this.convertPropertyBinding(expression));\n });\n }\n });\n if (i18nAttrArgs.length > 0) {\n const index: o.Expression = o.literal(this.allocateDataSlot());\n const constIndex = this.addToConsts(o.literalArr(i18nAttrArgs));\n this.creationInstruction(sourceSpan, R3.i18nAttributes, [index, constIndex]);\n if (hasBindings) {\n this.updateInstruction(sourceSpan, R3.i18nApply, [index]);\n }\n }\n }\n\n private getNamespaceInstruction(namespaceKey: string|null) {\n switch (namespaceKey) {\n case 'math':\n return R3.namespaceMathML;\n case 'svg':\n return R3.namespaceSVG;\n default:\n return R3.namespaceHTML;\n }\n }\n\n private addNamespaceInstruction(nsInstruction: o.ExternalReference, element: t.Element) {\n this._namespace = nsInstruction;\n this.creationInstruction(element.startSourceSpan, nsInstruction);\n }\n\n /**\n * Adds an update instruction for an interpolated property or attribute, such as\n * `prop=\"{{value}}\"` or `attr.title=\"{{value}}\"`\n */\n private interpolatedUpdateInstruction(\n instruction: o.ExternalReference, elementIndex: number, attrName: string,\n input: t.BoundAttribute, value: Interpolation, params: any[]) {\n this.updateInstructionWithAdvance(\n elementIndex, input.sourceSpan, instruction,\n () => [o.literal(attrName), ...this.getUpdateInstructionArguments(value), ...params]);\n }\n\n visitContent(ngContent: t.Content) {\n const slot = this.allocateDataSlot();\n const projectionSlotIdx = this._ngContentSelectorsOffset + this._ngContentReservedSlots.length;\n const parameters: o.Expression[] = [o.literal(slot)];\n\n this._ngContentReservedSlots.push(ngContent.selector);\n\n const nonContentSelectAttributes =\n ngContent.attributes.filter(attr => attr.name.toLowerCase() !== NG_CONTENT_SELECT_ATTR);\n const attributes =\n this.getAttributeExpressions(ngContent.name, nonContentSelectAttributes, [], []);\n\n if (attributes.length > 0) {\n parameters.push(o.literal(projectionSlotIdx), o.literalArr(attributes));\n } else if (projectionSlotIdx !== 0) {\n parameters.push(o.literal(projectionSlotIdx));\n }\n\n this.creationInstruction(ngContent.sourceSpan, R3.projection, parameters);\n if (this.i18n) {\n this.i18n.appendProjection(ngContent.i18n!, slot);\n }\n }\n\n visitElement(element: t.Element) {\n const elementIndex = this.allocateDataSlot();\n const stylingBuilder = new StylingBuilder(null);\n this.elementLocations.set(element, {index: elementIndex, level: this.level});\n\n let isNonBindableMode: boolean = false;\n const isI18nRootElement: boolean =\n isI18nRootNode(element.i18n) && !isSingleI18nIcu(element.i18n);\n\n const outputAttrs: t.TextAttribute[] = [];\n const [namespaceKey, elementName] = splitNsName(element.name);\n const isNgContainer = checkIsNgContainer(element.name);\n\n // Handle styling, i18n, ngNonBindable attributes\n for (const attr of element.attributes) {\n const {name, value} = attr;\n if (name === NON_BINDABLE_ATTR) {\n isNonBindableMode = true;\n } else if (name === 'style') {\n stylingBuilder.registerStyleAttr(value);\n } else if (name === 'class') {\n stylingBuilder.registerClassAttr(value);\n } else {\n outputAttrs.push(attr);\n }\n }\n\n // Regular element or ng-container creation mode\n const parameters: o.Expression[] = [o.literal(elementIndex)];\n if (!isNgContainer) {\n parameters.push(o.literal(elementName));\n }\n\n // Add the attributes\n const allOtherInputs: t.BoundAttribute[] = [];\n const boundI18nAttrs: t.BoundAttribute[] = [];\n\n element.inputs.forEach(input => {\n const stylingInputWasSet = stylingBuilder.registerBoundInput(input);\n if (!stylingInputWasSet) {\n if ((input.type === BindingType.Property || input.type === BindingType.TwoWay) &&\n input.i18n) {\n boundI18nAttrs.push(input);\n } else {\n allOtherInputs.push(input);\n }\n }\n });\n\n // add attributes for directive and projection matching purposes\n const attributes: o.Expression[] = this.getAttributeExpressions(\n element.name, outputAttrs, allOtherInputs, element.outputs, stylingBuilder, [],\n boundI18nAttrs);\n parameters.push(this.addAttrsToConsts(attributes));\n\n // local refs (ex.: <div #foo #bar=\"baz\">)\n const refs = this.prepareRefsArray(element.references);\n parameters.push(this.addToConsts(refs));\n\n const wasInNamespace = this._namespace;\n const currentNamespace = this.getNamespaceInstruction(namespaceKey);\n\n // If the namespace is changing now, include an instruction to change it\n // during element creation.\n if (currentNamespace !== wasInNamespace) {\n this.addNamespaceInstruction(currentNamespace, element);\n }\n\n if (this.i18n) {\n this.i18n.appendElement(element.i18n!, elementIndex);\n }\n\n // Note that we do not append text node instructions and ICUs inside i18n section,\n // so we exclude them while calculating whether current element has children\n const hasChildren = (!isI18nRootElement && this.i18n) ? !hasTextChildrenOnly(element.children) :\n element.children.length > 0;\n\n const createSelfClosingInstruction = !stylingBuilder.hasBindingsWithPipes &&\n element.outputs.length === 0 && boundI18nAttrs.length === 0 && !hasChildren;\n const createSelfClosingI18nInstruction =\n !createSelfClosingInstruction && hasTextChildrenOnly(element.children);\n\n if (createSelfClosingInstruction) {\n this.creationInstruction(\n element.sourceSpan, isNgContainer ? R3.elementContainer : R3.element,\n trimTrailingNulls(parameters));\n } else {\n this.creationInstruction(\n element.startSourceSpan, isNgContainer ? R3.elementContainerStart : R3.elementStart,\n trimTrailingNulls(parameters));\n\n if (isNonBindableMode) {\n this.creationInstruction(element.startSourceSpan, R3.disableBindings);\n }\n\n if (boundI18nAttrs.length > 0) {\n this.i18nAttributesInstruction(\n elementIndex, boundI18nAttrs, element.startSourceSpan ?? element.sourceSpan);\n }\n\n // Generate Listeners (outputs)\n if (element.outputs.length > 0) {\n for (const outputAst of element.outputs) {\n this.creationInstruction(\n outputAst.sourceSpan, R3.listener,\n this.prepareListenerParameter(element.name, outputAst, elementIndex));\n }\n }\n\n // Note: it's important to keep i18n/i18nStart instructions after i18nAttributes and\n // listeners, to make sure i18nAttributes instruction targets current element at runtime.\n if (isI18nRootElement) {\n this.i18nStart(element.startSourceSpan, element.i18n!, createSelfClosingI18nInstruction);\n }\n }\n\n // the code here will collect all update-level styling instructions and add them to the\n // update block of the template function AOT code. Instructions like `styleProp`,\n // `styleMap`, `classMap`, `classProp`\n // are all generated and assigned in the code below.\n const stylingInstructions = stylingBuilder.buildUpdateLevelInstructions(this._valueConverter);\n const limit = stylingInstructions.length - 1;\n for (let i = 0; i <= limit; i++) {\n const instruction = stylingInstructions[i];\n this._bindingSlots += this.processStylingUpdateInstruction(elementIndex, instruction);\n }\n\n // the reason why `undefined` is used is because the renderer understands this as a\n // special value to symbolize that there is no RHS to this binding\n // TODO (matsko): revisit this once FW-959 is approached\n const emptyValueBindInstruction = o.literal(undefined);\n const propertyBindings: Omit<Instruction, 'reference'>[] = [];\n const attributeBindings: Omit<Instruction, 'reference'>[] = [];\n\n // Generate element input bindings\n allOtherInputs.forEach(input => {\n const inputType = input.type;\n if (inputType === BindingType.Animation) {\n const value = input.value.visit(this._valueConverter);\n // animation bindings can be presented in the following formats:\n // 1. [@binding]=\"fooExp\"\n // 2. [@binding]=\"{value:fooExp, params:{...}}\"\n // 3. [@binding]\n // 4. @binding\n // All formats will be valid for when a synthetic binding is created.\n // The reasoning for this is because the renderer should get each\n // synthetic binding value in the order of the array that they are\n // defined in...\n const hasValue = value instanceof LiteralPrimitive ? !!value.value : true;\n this.allocateBindingSlots(value);\n\n propertyBindings.push({\n span: input.sourceSpan,\n paramsOrFn: getBindingFunctionParams(\n () => hasValue ? this.convertPropertyBinding(value) : emptyValueBindInstruction,\n prepareSyntheticPropertyName(input.name))\n });\n } else {\n // we must skip attributes with associated i18n context, since these attributes are handled\n // separately and corresponding `i18nExp` and `i18nApply` instructions will be generated\n if (input.i18n) return;\n\n const value = input.value.visit(this._valueConverter);\n if (value !== undefined) {\n const params: any[] = [];\n const [attrNamespace, attrName] = splitNsName(input.name);\n const isAttributeBinding = inputType === BindingType.Attribute;\n let sanitizationRef = resolveSanitizationFn(input.securityContext, isAttributeBinding);\n if (!sanitizationRef) {\n // If there was no sanitization function found based on the security context\n // of an attribute/property - check whether this attribute/property is\n // one of the security-sensitive <iframe> attributes (and that the current\n // element is actually an <iframe>).\n if (isIframeElement(element.name) && isIframeSecuritySensitiveAttr(input.name)) {\n sanitizationRef = o.importExpr(R3.validateIframeAttribute);\n }\n }\n if (sanitizationRef) {\n params.push(sanitizationRef);\n }\n if (attrNamespace) {\n const namespaceLiteral = o.literal(attrNamespace);\n\n if (sanitizationRef) {\n params.push(namespaceLiteral);\n } else {\n // If there wasn't a sanitization ref, we need to add\n // an extra param so that we can pass in the namespace.\n params.push(o.literal(null), namespaceLiteral);\n }\n }\n this.allocateBindingSlots(value);\n\n if (inputType === BindingType.Property || inputType === BindingType.TwoWay) {\n if (value instanceof Interpolation) {\n // prop=\"{{value}}\" and friends\n this.interpolatedUpdateInstruction(\n getPropertyInterpolationExpression(value), elementIndex, attrName, input, value,\n params);\n } else {\n // [prop]=\"value\"\n // Collect all the properties so that we can chain into a single function at the end.\n propertyBindings.push({\n span: input.sourceSpan,\n paramsOrFn: getBindingFunctionParams(\n () => this.convertPropertyBinding(value), attrName, params)\n });\n }\n } else if (inputType === BindingType.Attribute) {\n if (value instanceof Interpolation && getInterpolationArgsLength(value) > 1) {\n // attr.name=\"text{{value}}\" and friends\n this.interpolatedUpdateInstruction(\n getAttributeInterpolationExpression(value), elementIndex, attrName, input, value,\n params);\n } else {\n const boundValue = value instanceof Interpolation ? value.expressions[0] : value;\n // [attr.name]=\"value\" or attr.name=\"{{value}}\"\n // Collect the attribute bindings so that they can be chained at the end.\n attributeBindings.push({\n span: input.sourceSpan,\n paramsOrFn: getBindingFunctionParams(\n () => this.convertPropertyBinding(boundValue), attrName, params)\n });\n }\n } else {\n // class prop\n this.updateInstructionWithAdvance(elementIndex, input.sourceSpan, R3.classProp, () => {\n return [\n o.literal(elementIndex), o.literal(attrName), this.convertPropertyBinding(value),\n ...params\n ];\n });\n }\n }\n }\n });\n\n for (const propertyBinding of propertyBindings) {\n this.updateInstructionWithAdvance(\n elementIndex, propertyBinding.span, R3.property, propertyBinding.paramsOrFn);\n }\n\n for (const attributeBinding of attributeBindings) {\n this.updateInstructionWithAdvance(\n elementIndex, attributeBinding.span, R3.attribute, attributeBinding.paramsOrFn);\n }\n\n // Traverse element child nodes\n t.visitAll(this, element.children);\n\n if (!isI18nRootElement && this.i18n) {\n this.i18n.appendElement(element.i18n!, elementIndex, true);\n }\n\n if (!createSelfClosingInstruction) {\n // Finish element construction mode.\n const span = element.endSourceSpan ?? element.sourceSpan;\n if (isI18nRootElement) {\n this.i18nEnd(span, createSelfClosingI18nInstruction);\n }\n if (isNonBindableMode) {\n this.creationInstruction(span, R3.enableBindings);\n }\n this.creationInstruction(span, isNgContainer ? R3.elementContainerEnd : R3.elementEnd);\n }\n }\n\n private prepareEmbeddedTemplateFn(\n children: t.Node[], contextNameSuffix: string, variables: t.Variable[] = [],\n i18nMeta?: i18n.I18nMeta, variableAliases?: Record<string, string>) {\n const index = this.allocateDataSlot();\n\n if (this.i18n && i18nMeta) {\n if (i18nMeta instanceof i18n.BlockPlaceholder) {\n this.i18n.appendBlock(i18nMeta, index);\n } else {\n this.i18n.appendTemplate(i18nMeta, index);\n }\n }\n\n const contextName = `${this.contextName}${contextNameSuffix}_${index}`;\n // Note: For the unique name, we don't include an unique suffix, unless really needed.\n // This keeps the generated output more clean as most of the time, we don't expect conflicts.\n const name =\n this.constantPool.uniqueName(`${contextName}_Template`, /** alwaysIncludeSuffix */ false);\n\n // Create the template function\n const visitor = new TemplateDefinitionBuilder(\n this.constantPool, this._bindingScope, this.level + 1, contextName, this.i18n, index, name,\n this._namespace, this.fileBasedI18nSuffix, this.i18nUseExternalIds, this.deferBlocks,\n this.elementLocations, this.allDeferrableDepsFn, this._constants);\n\n // Nested templates must not be visited until after their parent templates have completed\n // processing, so they are queued here until after the initial pass. Otherwise, we wouldn't\n // be able to support bindings in nested templates to local refs that occur after the\n // template definition. e.g. <div *ngIf=\"showing\">{{ foo }}</div> <div #foo></div>\n this._nestedTemplateFns.push(() => {\n const templateFunctionExpr = visitor.buildTemplateFunction(\n children, variables, this._ngContentReservedSlots.length + this._ngContentSelectorsOffset,\n i18nMeta, variableAliases);\n this.constantPool.statements.push(templateFunctionExpr.toDeclStmt(name));\n if (visitor._ngContentReservedSlots.length) {\n this._ngContentReservedSlots.push(...visitor._ngContentReservedSlots);\n }\n });\n\n return new TemplateData(name, index, visitor._bindingScope, visitor);\n }\n\n private createEmbeddedTemplateFn(\n tagName: string|null, children: t.Node[], contextNameSuffix: string,\n sourceSpan: ParseSourceSpan, variables: t.Variable[] = [], attrsExprs?: o.Expression[],\n references?: t.Reference[], i18n?: i18n.I18nMeta): number {\n const data = this.prepareEmbeddedTemplateFn(children, contextNameSuffix, variables, i18n);\n const parameters: o.Expression[] = [\n o.literal(data.index),\n o.variable(data.name),\n o.literal(tagName),\n this.addAttrsToConsts(attrsExprs || null),\n ];\n\n // local refs (ex.: <ng-template #foo>)\n if (references && references.length > 0) {\n const refs = this.prepareRefsArray(references);\n parameters.push(this.addToConsts(refs));\n parameters.push(o.importExpr(R3.templateRefExtractor));\n }\n\n // e.g. template(1, MyComp_Template_1)\n this.creationInstruction(sourceSpan, R3.templateCreate, () => {\n parameters.splice(2, 0, o.literal(data.getConstCount()), o.literal(data.getVarCount()));\n return trimTrailingNulls(parameters);\n });\n\n return data.index;\n }\n\n visitTemplate(template: t.Template) {\n // We don't care about the tag's namespace here, because we infer\n // it based on the parent nodes inside the template instruction.\n const tagNameWithoutNamespace =\n template.tagName ? splitNsName(template.tagName)[1] : template.tagName;\n const contextNameSuffix = template.tagName ? '_' + sanitizeIdentifier(template.tagName) : '';\n\n // prepare attributes parameter (including attributes used for directive matching)\n const attrsExprs: o.Expression[] = this.getAttributeExpressions(\n NG_TEMPLATE_TAG_NAME, template.attributes, template.inputs, template.outputs,\n undefined /* styles */, template.templateAttrs);\n\n const templateIndex = this.createEmbeddedTemplateFn(\n tagNameWithoutNamespace, template.children, contextNameSuffix, template.sourceSpan,\n template.variables, attrsExprs, template.references, template.i18n);\n\n // handle property bindings e.g. ɵɵproperty('ngForOf', ctx.items), et al;\n this.templatePropertyBindings(templateIndex, template.templateAttrs);\n\n // Only add normal input/output binding instructions on explicit <ng-template> elements.\n if (tagNameWithoutNamespace === NG_TEMPLATE_TAG_NAME) {\n const [i18nInputs, inputs] =\n partitionArray<t.BoundAttribute, t.BoundAttribute>(template.inputs, hasI18nMeta);\n\n // Add i18n attributes that may act as inputs to directives. If such attributes are present,\n // generate `i18nAttributes` instruction. Note: we generate it only for explicit <ng-template>\n // elements, in case of inline templates, corresponding instructions will be generated in the\n // nested template function.\n if (i18nInputs.length > 0) {\n this.i18nAttributesInstruction(\n templateIndex, i18nInputs, template.startSourceSpan ?? template.sourceSpan);\n }\n\n // Add the input bindings\n if (inputs.length > 0) {\n this.templatePropertyBindings(templateIndex, inputs);\n }\n\n // Generate listeners for directive output\n for (const outputAst of template.outputs) {\n this.creationInstruction(\n outputAst.sourceSpan, R3.listener,\n this.prepareListenerParameter('ng_template', outputAst, templateIndex));\n }\n }\n }\n\n // These should be handled in the template or element directly.\n readonly visitReference = invalid;\n readonly visitVariable = invalid;\n readonly visitTextAttribute = invalid;\n readonly visitBoundAttribute = invalid;\n readonly visitBoundEvent = invalid;\n readonly visitDeferredTrigger = invalid;\n readonly visitDeferredBlockError = invalid;\n readonly visitDeferredBlockLoading = invalid;\n readonly visitDeferredBlockPlaceholder = invalid;\n readonly visitIfBlockBranch = invalid;\n readonly visitSwitchBlockCase = invalid;\n readonly visitForLoopBlockEmpty = invalid;\n readonly visitUnknownBlock = invalid;\n\n visitBoundText(text: t.BoundText) {\n if (this.i18n) {\n const value = text.value.visit(this._valueConverter);\n this.allocateBindingSlots(value);\n if (value instanceof Interpolation) {\n this.i18n.appendBoundText(text.i18n!);\n this.i18nAppendBindings(value.expressions);\n }\n return;\n }\n\n const nodeIndex = this.allocateDataSlot();\n\n this.creationInstruction(text.sourceSpan, R3.text, [o.literal(nodeIndex)]);\n\n const value = text.value.visit(this._valueConverter);\n this.allocateBindingSlots(value);\n\n if (value instanceof Interpolation) {\n this.updateInstructionWithAdvance(\n nodeIndex, text.sourceSpan, getTextInterpolationExpression(value),\n () => this.getUpdateInstructionArguments(value));\n } else {\n error('Text nodes should be interpolated and never bound directly.');\n }\n }\n\n visitText(text: t.Text) {\n // when a text element is located within a translatable\n // block, we exclude this text element from instructions set,\n // since it will be captured in i18n content and processed at runtime\n if (!this.i18n) {\n this.creationInstruction(\n text.sourceSpan, R3.text, [o.literal(this.allocateDataSlot()), o.literal(text.value)]);\n }\n }\n\n visitIcu(icu: t.Icu) {\n let initWasInvoked = false;\n\n // if an ICU was created outside of i18n block, we still treat\n // it as a translatable entity and invoke i18nStart and i18nEnd\n // to generate i18n context and the necessary instructions\n if (!this.i18n) {\n initWasInvoked = true;\n this.i18nStart(null, icu.i18n!, true);\n }\n\n const i18n = this.i18n!;\n const vars = this.i18nBindProps(icu.vars);\n const placeholders = this.i18nBindProps(icu.placeholders);\n\n // output ICU directly and keep ICU reference in context\n const message = icu.i18n! as i18n.Message;\n\n // we always need post-processing function for ICUs, to make sure that:\n // - all placeholders in a form of {PLACEHOLDER} are replaced with actual values (note:\n // `goog.getMsg` does not process ICUs and uses the `{PLACEHOLDER}` format for placeholders\n // inside ICUs)\n // - all ICU vars (such as `VAR_SELECT` or `VAR_PLURAL`) are replaced with correct values\n const transformFn = (raw: o.ReadVarExpr) => {\n // Sort the map entries in the compiled output. This makes it easy to acheive identical output\n // in the template pipeline compiler.\n const params = Object.fromEntries(Object.entries({...vars, ...placeholders}).sort());\n const formatted = formatI18nPlaceholderNamesInMap(params, /* useCamelCase */ false);\n return invokeInstruction(null, R3.i18nPostprocess, [raw, mapLiteral(formatted, true)]);\n };\n\n // in case the whole i18n message is a single ICU - we do not need to\n // create a separate top-level translation, we can use the root ref instead\n // and make this ICU a top-level translation\n // note: ICU placeholders are replaced with actual values in `i18nPostprocess` function\n // separately, so we do not pass placeholders into `i18nTranslate` function.\n if (isSingleI18nIcu(i18n.meta)) {\n this.i18nTranslate(message, /* placeholders */ {}, i18n.ref, transformFn);\n } else {\n // output ICU directly and keep ICU reference in context\n const ref =\n this.i18nTranslate(message, /* placeholders */ {}, /* ref */ undefined, transformFn);\n i18n.appendIcu(icuFromI18nMessage(message).name, ref);\n }\n\n if (initWasInvoked) {\n this.i18nEnd(null, true);\n }\n return null;\n }\n\n visitIfBlock(block: t.IfBlock): void {\n // Allocate one slot for the result of the expression.\n this.allocateBindingSlots(null);\n\n // We have to process the block in two steps: once here and again in the update instruction\n // callback in order to generate the correct expressions when pipes or pure functions are\n // used inside the branch expressions.\n const branchData = block.branches.map((branch, branchIndex) => {\n const {expression, expressionAlias, children, sourceSpan} = branch;\n\n // If the branch has an alias, it'll be assigned directly to the container's context.\n // We define a variable referring directly to the context so that any nested usages can be\n // rewritten to refer to it.\n const variables = expressionAlias !== null ?\n [new t.Variable(\n expressionAlias.name, DIRECT_CONTEXT_REFERENCE, expressionAlias.sourceSpan,\n expressionAlias.keySpan)] :\n undefined;\n\n let tagName: string|null = null;\n let attrsExprs: o.Expression[]|undefined;\n\n // Only the first branch can be used for projection, because the conditional\n // uses the container of the first branch as the insertion point for all branches.\n if (branchIndex === 0) {\n const inferredData = this.inferProjectionDataFromInsertionPoint(branch);\n tagName = inferredData.tagName;\n attrsExprs = inferredData.attrsExprs;\n }\n\n // Note: the template needs to be created *before* we process the expression,\n // otherwise pipes injecting some symbols won't work (see #52102).\n const templateIndex = this.createEmbeddedTemplateFn(\n tagName, children, '_Conditional', sourceSpan, variables, attrsExprs, undefined,\n branch.i18n);\n const processedExpression =\n expression === null ? null : expression.visit(this._valueConverter);\n return {index: templateIndex, expression: processedExpression, alias: expressionAlias};\n });\n\n // Use the index of the first block as the index for the entire container.\n const containerIndex = branchData[0].index;\n const paramsCallback = () => {\n let contextVariable: o.ReadVarExpr|null = null;\n const generateBranch = (branchIndex: number): o.Expression => {\n // If we've gone beyond the last branch, return the special -1 value which means that no\n // view will be rendered. Note that we don't need to reset the context here, because -1\n // won't render a view so the passed-in context won't be captured.\n if (branchIndex > branchData.length - 1) {\n return o.literal(-1);\n }\n\n const {index, expression, alias} = branchData[branchIndex];\n\n // If the branch has no expression, it means that it's the final `else`.\n // Return its index and stop the recursion. Assumes that there's only one\n // `else` condition and that it's the last branch.\n if (expression === null) {\n return o.literal(index);\n }\n\n let comparisonTarget: o.Expression;\n\n if (alias) {\n // If the branch is aliased, we need to assign the expression value to the temporary\n // variable and then pass it into `conditional`. E.g. for the expression:\n // `@if (foo(); as alias) {...}` we have to generate:\n // ```\n // let temp;\n // conditional(0, (temp = ctx.foo()) ? 0 : -1, temp);\n // ```\n contextVariable = this.allocateControlFlowTempVariable();\n comparisonTarget = contextVariable.set(this.convertPropertyBinding(expression));\n } else {\n comparisonTarget = this.convertPropertyBinding(expression);\n }\n\n return comparisonTarget.conditional(o.literal(index), generateBranch(branchIndex + 1));\n };\n\n const params = [o.literal(containerIndex), generateBranch(0)];\n\n if (contextVariable !== null) {\n params.push(contextVariable);\n }\n\n return params;\n };\n\n this.updateInstructionWithAdvance(\n containerIndex, block.branches[0].sourceSpan, R3.conditional, paramsCallback);\n }\n\n visitSwitchBlock(block: t.SwitchBlock): void {\n if (block.cases.length === 0) {\n return;\n }\n\n // We have to process the block in two steps: once here and again in the update instruction\n // callback in order to generate the correct expressions when pipes or pure functions are used.\n const caseData = block.cases.map(currentCase => {\n const index = this.createEmbeddedTemplateFn(\n null, currentCase.children, '_Case', currentCase.sourceSpan, undefined, undefined,\n undefined, currentCase.i18n);\n const expression = currentCase.expression === null ?\n null :\n currentCase.expression.visit(this._valueConverter);\n return {index, expression};\n });\n\n // Use the index of the first block as the index for the entire container.\n const containerIndex = caseData[0].index;\n\n // Note: the expression needs to be processed *after* the template,\n // otherwise pipes injecting some symbols won't work (see #52102).\n const blockExpression = block.expression.visit(this._valueConverter);\n this.allocateBindingSlots(null); // Allocate a slot for the primary block expression.\n\n this.updateInstructionWithAdvance(containerIndex, block.sourceSpan, R3.conditional, () => {\n const generateCases = (caseIndex: number): o.Expression => {\n // If we've gone beyond the last branch, return the special -1\n // value which means that no view will be rendered.\n if (caseIndex > caseData.length - 1) {\n return o.literal(-1);\n }\n\n const {index, expression} = caseData[caseIndex];\n\n // If the case has no expression, it means that it's the `default` case.\n // Return its index and stop the recursion. Assumes that there's only one\n // `default` condition and that it's defined last.\n if (expression === null) {\n return o.literal(index);\n }\n\n // If this is the very first comparison, we need to assign the value of the primary\n // expression as a part of the comparison so the remaining cases can reuse it. In practice\n // this looks as follows:\n // ```\n // let temp;\n // conditional(1, (temp = ctx.foo) === 1 ? 1 : temp === 2 ? 2 : temp === 3 ? 3 : 4);\n // ```\n const comparisonTarget = caseIndex === 0 ?\n this.allocateControlFlowTempVariable().set(\n this.convertPropertyBinding(blockExpression)) :\n this.allocateControlFlowTempVariable();\n\n return comparisonTarget.identical(this.convertPropertyBinding(expression))\n .conditional(o.literal(index), generateCases(caseIndex + 1));\n };\n\n return [o.literal(containerIndex), generateCases(0)];\n });\n }\n\n visitDeferredBlock(deferred: t.DeferredBlock): void {\n const {loading, placeholder, error, triggers, prefetchTriggers} = deferred;\n const metadata = this.deferBlocks.get(deferred);\n\n if (!metadata) {\n throw new Error('Could not resolve `defer` block metadata. Block may need to be analyzed.');\n }\n\n const primaryTemplateIndex = this.createEmbeddedTemplateFn(\n null, deferred.children, '_Defer', deferred.sourceSpan, undefined, undefined, undefined,\n deferred.i18n);\n const loadingIndex = loading ? this.createEmbeddedTemplateFn(\n null, loading.children, '_DeferLoading', loading.sourceSpan,\n undefined, undefined, undefined, loading.i18n) :\n null;\n const loadingConsts = loading ?\n trimTrailingNulls([o.literal(loading.minimumTime), o.literal(loading.afterTime)]) :\n null;\n\n const placeholderIndex = placeholder ?\n this.createEmbeddedTemplateFn(\n null, placeholder.children, '_DeferPlaceholder', placeholder.sourceSpan, undefined,\n undefined, undefined, placeholder.i18n) :\n null;\n const placeholderConsts = placeholder && placeholder.minimumTime !== null ?\n // TODO(crisbeto): potentially pass the time directly instead of storing it in the `consts`\n // since the placeholder block can only have one parameter?\n o.literalArr([o.literal(placeholder.minimumTime)]) :\n null;\n\n const errorIndex = error ? this.createEmbeddedTemplateFn(\n null, error.children, '_DeferError', error.sourceSpan, undefined,\n undefined, undefined, error.i18n) :\n null;\n\n // Note: we generate this last so the index matches the instruction order.\n const deferredIndex = this.allocateDataSlot();\n const depsFnName = `${this.contextName}_Defer_${deferredIndex}_DepsFn`;\n\n // e.g. `defer(1, 0, MyComp_Defer_1_DepsFn, ...)`\n this.creationInstruction(\n deferred.sourceSpan, R3.defer, trimTrailingNulls([\n o.literal(deferredIndex),\n o.literal(primaryTemplateIndex),\n this.allDeferrableDepsFn ?? this.createDeferredDepsFunction(depsFnName, metadata),\n o.literal(loadingIndex),\n o.literal(placeholderIndex),\n o.literal(errorIndex),\n loadingConsts?.length ? this.addToConsts(o.literalArr(loadingConsts)) : o.TYPED_NULL_EXPR,\n placeholderConsts ? this.addToConsts(placeholderConsts) : o.TYPED_NULL_EXPR,\n (loadingConsts?.length || placeholderConsts) ?\n o.importExpr(R3.deferEnableTimerScheduling) :\n o.TYPED_NULL_EXPR,\n ]));\n\n // Allocate an extra data slot right after a defer block slot to store\n // instance-specific state of that defer block at runtime.\n this.allocateDataSlot();\n\n // Note: the triggers need to be processed *after* the various templates,\n // otherwise pipes injecting some symbols won't work (see #52102).\n this.createDeferTriggerInstructions(deferredIndex, triggers, metadata, false);\n this.createDeferTriggerInstructions(deferredIndex, prefetchTriggers, metadata, true);\n }\n\n private createDeferredDepsFunction(name: string, metadata: R3DeferBlockMetadata) {\n if (metadata.deps.length === 0) {\n return o.TYPED_NULL_EXPR;\n }\n\n // This defer block has deps for which we need to generate dynamic imports.\n const dependencyExp: o.Expression[] = [];\n\n for (const deferredDep of metadata.deps) {\n if (deferredDep.isDeferrable) {\n // Callback function, e.g. `m () => m.MyCmp;`.\n const innerFn = o.arrowFn(\n [new o.FnParam('m', o.DYNAMIC_TYPE)],\n // Default imports are always accessed through the `default` property.\n o.variable('m').prop(deferredDep.isDefaultImport ? 'default' : deferredDep.symbolName));\n\n // Dynamic import, e.g. `import('./a').then(...)`.\n const importExpr =\n (new o.DynamicImportExpr(deferredDep.importPath!)).prop('then').callFn([innerFn]);\n dependencyExp.push(importExpr);\n } else {\n // Non-deferrable symbol, just use a reference to the type.\n dependencyExp.push(deferredDep.type);\n }\n }\n\n const depsFnExpr = o.arrowFn([], o.literalArr(dependencyExp));\n\n this.constantPool.statements.push(depsFnExpr.toDeclStmt(name, o.StmtModifier.Final));\n\n return o.variable(name);\n }\n\n private createDeferTriggerInstructions(\n deferredIndex: number, triggers: t.DeferredBlockTriggers, metadata: R3DeferBlockMetadata,\n prefetch: boolean) {\n const {when, idle, immediate, timer, hover, interaction, viewport} = triggers;\n\n // `deferWhen(ctx.someValue)`\n if (when) {\n const value = when.value.visit(this._valueConverter);\n this.allocateBindingSlots(value);\n this.updateInstructionWithAdvance(\n deferredIndex, when.sourceSpan, prefetch ? R3.deferPrefetchWhen : R3.deferWhen,\n () => this.convertPropertyBinding(value));\n }\n\n // Note that we generate an implicit `on idle` if the `deferred` block has no triggers.\n // `deferOnIdle()`\n if (idle || (!prefetch && Object.keys(triggers).length === 0)) {\n this.creationInstruction(\n idle?.sourceSpan || null, prefetch ? R3.deferPrefetchOnIdle : R3.deferOnIdle);\n }\n\n // `deferOnImmediate()`\n if (immediate) {\n this.creationInstruction(\n immediate.sourceSpan, prefetch ? R3.deferPrefetchOnImmediate : R3.deferOnImmediate);\n }\n\n // `deferOnTimer(1337)`\n if (timer) {\n this.creationInstruction(\n timer.sourceSpan, prefetch ? R3.deferPrefetchOnTimer : R3.deferOnTimer,\n [o.literal(timer.delay)]);\n }\n\n // `deferOnHover(index, walkUpTimes)`\n if (hover) {\n this.domNodeBasedTrigger(\n 'hover', hover, metadata, prefetch ? R3.deferPrefetchOnHover : R3.deferOnHover);\n }\n\n // `deferOnInteraction(index, walkUpTimes)`\n if (interaction) {\n this.domNodeBasedTrigger(\n 'interaction', interaction, metadata,\n prefetch ? R3.deferPrefetchOnInteraction : R3.deferOnInteraction);\n }\n\n // `deferOnViewport(index, walkUpTimes)`\n if (viewport) {\n this.domNodeBasedTrigger(\n 'viewport', viewport, metadata,\n prefetch ? R3.deferPrefetchOnViewport : R3.deferOnViewport);\n }\n }\n\n private domNodeBasedTrigger(\n name: string,\n trigger: t.InteractionDeferredTrigger|t.HoverDeferredTrigger|t.ViewportDeferredTrigger,\n metadata: R3DeferBlockMetadata, instructionRef: o.ExternalReference) {\n const triggerEl = metadata.triggerElements.get(trigger);\n\n // Don't generate anything if a trigger cannot be resolved.\n // We'll have template diagnostics to surface these to users.\n if (!triggerEl) {\n return;\n }\n\n this.creationInstruction(trigger.sourceSpan, instructionRef, () => {\n const location = this.elementLocations.get(triggerEl);\n\n if (!location) {\n throw new Error(\n `Could not determine location of reference passed into ` +\n `'${name}' trigger. Template may not have been fully analyzed.`);\n }\n\n // A negative depth means that the trigger is inside the placeholder.\n // Cap it at -1 since we only care whether or not it's negative.\n const depth = Math.max(this.level - location.level, -1);\n const params = [o.literal(location.index)];\n\n // The most common case should be a trigger within the view so we can omit a depth of\n // zero. For triggers in parent views and in the placeholder we need to pass it in.\n if (depth !== 0) {\n params.push(o.literal(depth));\n }\n\n return params;\n });\n }\n\n /**\n * Infers the data used for content projection (tag name and attributes) from the content of a\n * node.\n * @param node Node for which to infer the projection data.\n */\n private inferProjectionDataFromInsertionPoint(node: t.IfBlockBranch|t.ForLoopBlock|\n t.ForLoopBlockEmpty) {\n let root: t.Element|t.Template|null = null;\n let tagName: string|null = null;\n let attrsExprs: o.Expression[]|undefined;\n\n for (const child of node.children) {\n // Skip over comment nodes.\n if (child instanceof t.Comment) {\n continue;\n }\n\n // We can only infer the tag name/attributes if there's a single root node.\n if (root !== null) {\n root = null;\n break;\n }\n\n // Root nodes can only elements or templates with a tag name (e.g. `<div *foo></div>`).\n if (child instanceof t.Element || (child instanceof t.Template && child.tagName !== null)) {\n root = child;\n }\n }\n\n // If we've found a single root node, its tag name and *static* attributes can be copied\n // to the surrounding template to be used for content projection. Note that it's important\n // that we don't copy any bound attributes since they don't participate in content projection\n // and they can be used in directive matching (in the case of `Template.templateAttrs`).\n if (root !== null) {\n const name = root instanceof t.Element ? root.name : root.tagName;\n // Don't pass along `ng-template` tag name since it enables directive matching.\n tagName = name === NG_TEMPLATE_TAG_NAME ? null : name;\n attrsExprs =\n this.getAttributeExpressions(NG_TEMPLATE_TAG_NAME, root.attributes, root.inputs, []);\n }\n\n return {tagName, attrsExprs};\n }\n\n private allocateDataSlot() {\n return this._dataIndex++;\n }\n\n visitForLoopBlock(block: t.ForLoopBlock): void {\n // Allocate one slot for the repeater metadata. The slots for the primary and empty block\n // are implicitly inferred by the runtime to index + 1 and index + 2.\n const blockIndex = this.allocateDataSlot();\n const {tagName, attrsExprs} = this.inferProjectionDataFromInsertionPoint(block);\n const primaryData = this.prepareEmbeddedTemplateFn(\n block.children, '_For',\n [block.item, block.contextVariables.$index, block.contextVariables.$count], block.i18n, {\n // We need to provide level-specific versions of `$index` and `$count`, because\n // they're used when deriving the remaining variables (`$odd`, `$even` etc.) while at the\n // same time being available implicitly. Without these aliases, we wouldn't be able to\n // access the `$index` of a parent loop from inside of a nested loop.\n [block.contextVariables.$index.name]:\n this.getLevelSpecificVariableName('$index', this.level + 1),\n [block.contextVariables.$count.name]:\n this.getLevelSpecificVariableName('$count', this.level + 1),\n });\n const {expression: trackByExpression, usesComponentInstance: trackByUsesComponentInstance} =\n this.createTrackByFunction(block);\n let emptyData: TemplateData|null = null;\n let emptyTagName: string|null = null;\n let emptyAttrsExprs: o.Expression[]|undefined;\n\n if (block.empty !== null) {\n const emptyInferred = this.inferProjectionDataFromInsertionPoint(block.empty);\n emptyTagName = emptyInferred.tagName;\n emptyAttrsExprs = emptyInferred.attrsExprs;\n emptyData = this.prepareEmbeddedTemplateFn(\n block.empty.children, '_ForEmpty', undefined, block.empty.i18n);\n // Allocate an extra slot for the empty block tracking.\n this.allocateBindingSlots(null);\n }\n\n this.registerComputedLoopVariables(block, primaryData.scope);\n\n // `repeaterCreate(0, ...)`\n this.creationInstruction(block.sourceSpan, R3.repeaterCreate, () => {\n const params = [\n o.literal(blockIndex),\n o.variable(primaryData.name),\n o.literal(primaryData.getConstCount()),\n o.literal(primaryData.getVarCount()),\n o.literal(tagName),\n this.addAttrsToConsts(attrsExprs || null),\n trackByExpression,\n ];\n\n if (emptyData !== null) {\n params.push(\n o.literal(trackByUsesComponentInstance), o.variable(emptyData.name),\n o.literal(emptyData.getConstCount()), o.literal(emptyData.getVarCount()),\n o.literal(emptyTagName), this.addAttrsToConsts(emptyAttrsExprs || null));\n } else if (trackByUsesComponentInstance) {\n // If the tracking function doesn't use the component instance, we can omit the flag.\n params.push(o.literal(trackByUsesComponentInstance));\n }\n\n return trimTrailingNulls(params);\n });\n\n // Note: the expression needs to be processed *after* the template,\n // otherwise pipes injecting some symbols won't work (see #52102).\n // Note: we don't allocate binding slots for this expression,\n // because its value isn't stored in the LView.\n const value = block.expression.visit(this._valueConverter);\n\n // `advance(x); repeater(iterable)`\n this.updateInstructionWithAdvance(\n blockIndex, block.sourceSpan, R3.repeater, () => [this.convertPropertyBinding(value)]);\n }\n\n private registerComputedLoopVariables(block: t.ForLoopBlock, bindingScope: BindingScope): void {\n const level = bindingScope.bindingLevel;\n\n bindingScope.set(level, block.contextVariables.$odd.name, (scope, retrievalLevel) => {\n return this.getLevelSpecificForLoopVariable(block, scope, retrievalLevel, '$index')\n .modulo(o.literal(2))\n .notIdentical(o.literal(0));\n });\n\n bindingScope.set(level, block.contextVariables.$even.name, (scope, retrievalLevel) => {\n return this.getLevelSpecificForLoopVariable(block, scope, retrievalLevel, '$index')\n .modulo(o.literal(2))\n .identical(o.literal(0));\n });\n\n bindingScope.set(level, block.contextVariables.$first.name, (scope, retrievalLevel) => {\n return this.getLevelSpecificForLoopVariable(block, scope, retrievalLevel, '$index')\n .identical(o.literal(0));\n });\n\n bindingScope.set(level, block.contextVariables.$last.name, (scope, retrievalLevel) => {\n const index = this.getLevelSpecificForLoopVariable(block, scope, retrievalLevel, '$index');\n const count = this.getLevelSpecificForLoopVariable(block, scope, retrievalLevel, '$count');\n return index.identical(count.minus(o.literal(1)));\n });\n }\n\n private getLevelSpecificVariableName(name: string, level: number): string {\n // We use the `ɵ` here to ensure that there are no name conflicts with user-defined variables.\n return `ɵ${name}_${level}`;\n }\n\n /**\n * Gets the name of a for loop variable at a specific binding level. This allows us to look\n * up implicitly shadowed variables like `$index` and `$count` at a specific level.\n */\n private getLevelSpecificForLoopVariable(\n block: t.ForLoopBlock, scope: BindingScope, retrievalLevel: number,\n name: keyof t.ForLoopBlockContext): o.Expression {\n const scopeName = scope.bindingLevel === retrievalLevel ?\n block.contextVariables[name].name :\n this.getLevelSpecificVariableName(name, retrievalLevel);\n return scope.get(scopeName)!;\n }\n\n private optimizeTrackByFunction(block: t.ForLoopBlock) {\n const indexLocalName = block.contextVariables.$index.name;\n const itemName = block.item.name;\n const ast = block.trackBy.ast;\n\n // Top-level access of `$index` uses the built in `repeaterTrackByIndex`.\n if (ast instanceof PropertyRead && ast.receiver instanceof ImplicitReceiver &&\n ast.name === indexLocalName) {\n return {expression: o.importExpr(R3.repeaterTrackByIndex), usesComponentInstance: false};\n }\n\n // Top-level access of the item uses the built in `repeaterTrackByIdentity`.\n if (ast instanceof PropertyRead && ast.receiver instanceof ImplicitReceiver &&\n ast.name === itemName) {\n return {expression: o.importExpr(R3.repeaterTrackByIdentity), usesComponentInstance: false};\n }\n\n // Top-level calls in the form of `fn($index, item)` can be passed in directly.\n if (ast instanceof Call && ast.receiver instanceof PropertyRead &&\n ast.receiver.receiver instanceof ImplicitReceiver && ast.args.length === 2) {\n const firstIsIndex = ast.args[0] instanceof PropertyRead &&\n ast.args[0].receiver instanceof ImplicitReceiver && ast.args[0].name === indexLocalName;\n const secondIsItem = ast.args[1] instanceof PropertyRead &&\n ast.args[1].receiver instanceof ImplicitReceiver && ast.args[1].name === itemName;\n\n if (firstIsIndex && secondIsItem) {\n // If we're in the top-level component, we can access directly through `ctx`,\n // otherwise we have to get a hold of the component through `componentInstance()`.\n const receiver = this.level === 0 ? o.variable(CONTEXT_NAME) :\n new o.ExternalExpr(R3.componentInstance).callFn([]);\n return {expression: receiver.prop(ast.receiver.name), usesComponentInstance: false};\n }\n }\n\n return null;\n }\n\n private createTrackByFunction(block: t.ForLoopBlock): {\n expression: o.Expression,\n usesComponentInstance: boolean,\n } {\n const optimizedFn = this.optimizeTrackByFunction(block);\n\n // If the tracking function can be optimized, we don't need any further processing.\n if (optimizedFn !== null) {\n return optimizedFn;\n }\n\n const contextVars = block.contextVariables;\n const scope = new TrackByBindingScope(this._bindingScope, {\n // Alias `$index` and the item name to `$index` and `$item` respectively.\n // This allows us to reuse pure functions that may have different item names,\n // but are otherwise identical.\n [contextVars.$index.name]: '$index',\n [block.item.name]: '$item',\n\n // Accessing these variables in a tracking function will result in a template diagnostic.\n // We define them as globals so that their accesses are preserved verbatim instead of being\n // rewritten to the actual accesses.\n [contextVars.$count.name]: contextVars.$count.name,\n [contextVars.$first.name]: contextVars.$first.name,\n [contextVars.$last.name]: contextVars.$last.name,\n [contextVars.$even.name]: contextVars.$even.name,\n [contextVars.$odd.name]: contextVars.$odd.name,\n });\n const params = [new o.FnParam('$index'), new o.FnParam('$item')];\n const stmts = convertPureComponentScopeFunction(\n block.trackBy.ast, scope, o.variable(CONTEXT_NAME), 'track');\n const usesComponentInstance = scope.getComponentAccessCount() > 0;\n let fn: o.ArrowFunctionExpr|o.FunctionExpr;\n\n if (!usesComponentInstance && stmts.length === 1 && stmts[0] instanceof o.ExpressionStatement) {\n fn = o.arrowFn(params, stmts[0].expr);\n } else {\n // The last statement is returned implicitly.\n if (stmts.length > 0) {\n const lastStatement = stmts[stmts.length - 1];\n if (lastStatement instanceof o.ExpressionStatement) {\n stmts[stmts.length - 1] = new o.ReturnStatement(lastStatement.expr);\n }\n }\n // This has to be a function expression, because `.bind` doesn't work on arrow functions.\n fn = o.fn(params, stmts);\n }\n\n return {\n expression: this.constantPool.getSharedFunctionReference(fn, '_forTrack'),\n usesComponentInstance,\n };\n }\n\n getConstCount() {\n return this._dataIndex;\n }\n\n getVarCount() {\n return this._pureFunctionSlots;\n }\n\n getConsts(): ComponentDefConsts {\n return this._constants;\n }\n\n getNgContentSelectors(): o.Expression|null {\n return this._ngContentReservedSlots.length ?\n this.constantPool.getConstLiteral(asLiteral(this._ngContentReservedSlots), true) :\n null;\n }\n\n private bindingContext() {\n return `${this._bindingContext++}`;\n }\n\n private templatePropertyBindings(\n templateIndex: number, attrs: (t.BoundAttribute|t.TextAttribute)[]) {\n const propertyBindings: Omit<Instruction, 'reference'>[] = [];\n\n for (const input of attrs) {\n if (!(input instanceof t.BoundAttribute)) {\n continue;\n }\n\n const value = input.value.visit(this._valueConverter);\n if (value === undefined) {\n continue;\n }\n\n this.allocateBindingSlots(value);\n if (value instanceof Interpolation) {\n // Params typically contain attribute namespace and value sanitizer, which is applicable\n // for regular HTML elements, but not applicable for <ng-template> (since props act as\n // inputs to directives), so keep params array empty.\n const params: any[] = [];\n\n // prop=\"{{value}}\" case\n this.interpolatedUpdateInstruction(\n getPropertyInterpolationExpression(value), templateIndex, input.name, input, value,\n params);\n } else {\n // [prop]=\"value\" case\n propertyBindings.push({\n span: input.sourceSpan,\n paramsOrFn: getBindingFunctionParams(() => this.convertPropertyBinding(value), input.name)\n });\n }\n }\n\n for (const propertyBinding of propertyBindings) {\n this.updateInstructionWithAdvance(\n templateIndex, propertyBinding.span, R3.property, propertyBinding.paramsOrFn);\n }\n }\n\n // Bindings must only be resolved after all local refs have been visited, so all\n // instructions are queued in callbacks that execute once the initial pass has completed.\n // Otherwise, we wouldn't be able to support local refs that are defined after their\n // bindings. e.g. {{ foo }} <div #foo></div>\n private instructionFn(\n fns: Instruction[], span: ParseSourceSpan|null, reference: o.ExternalReference,\n paramsOrFn: InstructionParams, prepend: boolean = false): void {\n fns[prepend ? 'unshift' : 'push']({span, reference, paramsOrFn});\n }\n\n private processStylingUpdateInstruction(\n elementIndex: number, instruction: StylingInstruction|null) {\n let allocateBindingSlots = 0;\n if (instruction) {\n for (const call of instruction.calls) {\n allocateBindingSlots += call.allocateBindingSlots;\n this.updateInstructionWithAdvance(\n elementIndex, call.sourceSpan, instruction.reference,\n () => call.params(\n value => (call.supportsInterpolation && value instanceof Interpolation) ?\n this.getUpdateInstructionArguments(value) :\n this.convertPropertyBinding(value)) as o.Expression[]);\n }\n }\n return allocateBindingSlots;\n }\n\n private creationInstruction(\n span: ParseSourceSpan|null, reference: o.ExternalReference, paramsOrFn?: InstructionParams,\n prepend?: boolean) {\n this.instructionFn(this._creationCodeFns, span, reference, paramsOrFn || [], prepend);\n }\n\n private updateInstructionWithAdvance(\n nodeIndex: number, span: ParseSourceSpan|null, reference: o.ExternalReference,\n paramsOrFn?: InstructionParams) {\n this.addAdvanceInstructionIfNecessary(nodeIndex, span);\n this.updateInstruction(span, reference, paramsOrFn);\n }\n\n private updateInstruction(\n span: ParseSourceSpan|null, reference: o.ExternalReference, paramsOrFn?: InstructionParams) {\n this.instructionFn(this._updateCodeFns, span, reference, paramsOrFn || []);\n }\n\n private addAdvanceInstructionIfNecessary(nodeIndex: number, span: ParseSourceSpan|null) {\n if (nodeIndex !== this._currentIndex) {\n const delta = nodeIndex - this._currentIndex;\n\n if (delta < 1) {\n throw new Error('advance instruction can only go forwards');\n }\n\n this.instructionFn(\n this._updateCodeFns, span, R3.advance, delta > 1 ? [o.literal(delta)] : []);\n this._currentIndex = nodeIndex;\n }\n }\n\n private allocatePureFunctionSlots(numSlots: number): number {\n const originalSlots = this._pureFunctionSlots;\n this._pureFunctionSlots += numSlots;\n return originalSlots;\n }\n\n private allocateBindingSlots(value: AST|null) {\n this._bindingSlots += value instanceof Interpolation ? value.expressions.length : 1;\n }\n\n /**\n * Gets an expression that refers to the implicit receiver. The implicit\n * receiver is always the root level context.\n */\n private getImplicitReceiverExpr(): o.ReadVarExpr {\n if (this._implicitReceiverExpr) {\n return this._implicitReceiverExpr;\n }\n\n return this._implicitReceiverExpr = this.level === 0 ?\n o.variable(CONTEXT_NAME) :\n this._bindingScope.getOrCreateSharedContextVar(0);\n }\n\n private convertPropertyBinding(value: AST): o.Expression {\n const convertedPropertyBinding =\n convertPropertyBinding(this, this.getImplicitReceiverExpr(), value, this.bindingContext());\n const valExpr = convertedPropertyBinding.currValExpr;\n this._tempVariables.push(...convertedPropertyBinding.stmts);\n return valExpr;\n }\n\n /**\n * Gets a list of argument expressions to pass to an update instruction expression. Also updates\n * the temp variables state with temp variables that were identified as needing to be created\n * while visiting the arguments.\n * @param value The original expression we will be resolving an arguments list from.\n */\n private getUpdateInstructionArguments(value: Interpolation): o.Expression[] {\n const {args, stmts} =\n convertUpdateArguments(this, this.getImplicitReceiverExpr(), value, this.bindingContext());\n\n this._tempVariables.push(...stmts);\n return args;\n }\n\n /**\n * Creates and returns a variable that can be used to\n * store the state between control flow instructions.\n */\n private allocateControlFlowTempVariable(): o.ReadVarExpr {\n // Note: the assumption here is that we'll only need one temporary variable for all control\n // flow instructions. It's expected that any instructions will overwrite it before passing it\n // into the parameters.\n if (this._controlFlowTempVariable === null) {\n const name = `${this.contextName}_contFlowTmp`;\n this._tempVariables.push(new o.DeclareVarStmt(name));\n this._controlFlowTempVariable = o.variable(name);\n }\n\n return this._controlFlowTempVariable;\n }\n\n /**\n * Prepares all attribute expression values for the `TAttributes` array.\n *\n * The purpose of this function is to properly construct an attributes array that\n * is passed into the `elementStart` (or just `element`) functions. Because there\n * are many different types of attributes, the array needs to be constructed in a\n * special way so that `elementStart` can properly evaluate them.\n *\n * The format looks like this:\n *\n * ```\n * attrs = [prop, value, prop2, value2,\n * PROJECT_AS, selector,\n * CLASSES, class1, class2,\n * STYLES, style1, value1, style2, value2,\n * BINDINGS, name1, name2, name3,\n * TEMPLATE, name4, name5, name6,\n * I18N, name7, name8, ...]\n * ```\n *\n * Note that this function will fully ignore all synthetic (@foo) attribute values\n * because those values are intended to always be generated as property instructions.\n */\n private getAttributeExpressions(\n elementName: string, renderAttributes: t.TextAttribute[], inputs: t.BoundAttribute[],\n outputs: t.BoundEvent[], styles?: StylingBuilder,\n templateAttrs: (t.BoundAttribute|t.TextAttribute)[] = [],\n boundI18nAttrs: t.BoundAttribute[] = []): o.Expression[] {\n const alreadySeen = new Set<string>();\n const attrExprs: o.Expression[] = [];\n let ngProjectAsAttr: t.TextAttribute|undefined;\n\n for (const attr of renderAttributes) {\n if (attr.name === NG_PROJECT_AS_ATTR_NAME) {\n ngProjectAsAttr = attr;\n }\n\n // Note that static i18n attributes aren't in the i18n array,\n // because they're treated in the same way as regular attributes.\n if (attr.i18n) {\n // When i18n attributes are present on elements with structural directives\n // (e.g. `<div *ngIf title=\"Hello\" i18n-title>`), we want to avoid generating\n // duplicate i18n translation blocks for `ɵɵtemplate` and `ɵɵelement` instruction\n // attributes. So we do a cache lookup to see if suitable i18n translation block\n // already exists.\n const {i18nVarRefsCache} = this._constants;\n let i18nVarRef: o.ReadVarExpr;\n if (i18nVarRefsCache.has(attr.i18n)) {\n i18nVarRef = i18nVarRefsCache.get(attr.i18n)!;\n } else {\n i18nVarRef = this.i18nTranslate(attr.i18n as i18n.Message);\n i18nVarRefsCache.set(attr.i18n, i18nVarRef);\n }\n attrExprs.push(o.literal(attr.name), i18nVarRef);\n } else {\n attrExprs.push(\n ...getAttributeNameLiterals(attr.name), trustedConstAttribute(elementName, attr));\n }\n }\n\n // Keep ngProjectAs next to the other name, value pairs so we can verify that we match\n // ngProjectAs marker in the attribute name slot.\n if (ngProjectAsAttr) {\n attrExprs.push(...getNgProjectAsLiteral(ngProjectAsAttr));\n }\n\n function addAttrExpr(key: string|number, value?: o.Expression): void {\n if (typeof key === 'string') {\n if (!alreadySeen.has(key)) {\n attrExprs.push(...getAttributeNameLiterals(key));\n value !== undefined && attrExprs.push(value);\n alreadySeen.add(key);\n }\n } else {\n attrExprs.push(o.literal(key));\n }\n }\n\n // it's important that this occurs before BINDINGS and TEMPLATE because once `elementStart`\n // comes across the BINDINGS or TEMPLATE markers then it will continue reading each value as\n // as single property value cell by cell.\n if (styles) {\n styles.populateInitialStylingAttrs(attrExprs);\n }\n\n if (inputs.length || outputs.length) {\n const attrsLengthBeforeInputs = attrExprs.length;\n\n for (let i = 0; i < inputs.length; i++) {\n const input = inputs[i];\n // We don't want the animation and attribute bindings in the\n // attributes array since they aren't used for directive matching.\n if (input.type !== BindingType.Animation && input.type !== BindingType.Attribute) {\n addAttrExpr(input.name);\n }\n }\n\n for (let i = 0; i < outputs.length; i++) {\n const output = outputs[i];\n if (output.type !== ParsedEventType.Animation) {\n addAttrExpr(output.name);\n }\n }\n\n // this is a cheap way of adding the marker only after all the input/output\n // values have been filtered (by not including the animation ones) and added\n // to the expressions. The marker is important because it tells the runtime\n // code that this is where attributes without values start...\n if (attrExprs.length !== attrsLengthBeforeInputs) {\n attrExprs.splice(attrsLengthBeforeInputs, 0, o.literal(core.AttributeMarker.Bindings));\n }\n }\n\n if (templateAttrs.length) {\n attrExprs.push(o.literal(core.AttributeMarker.Template));\n templateAttrs.forEach(attr => addAttrExpr(attr.name));\n }\n\n if (boundI18nAttrs.length) {\n attrExprs.push(o.literal(core.AttributeMarker.I18n));\n boundI18nAttrs.forEach(attr => addAttrExpr(attr.name));\n }\n\n return attrExprs;\n }\n\n private addToConsts(expression: o.Expression): o.LiteralExpr {\n if (o.isNull(expression)) {\n return o.TYPED_NULL_EXPR;\n }\n\n const consts = this._constants.constExpressions;\n\n // Try to reuse a literal that's already in the array, if possible.\n for (let i = 0; i < consts.length; i++) {\n if (consts[i].isEquivalent(expression)) {\n return o.literal(i);\n }\n }\n\n return o.literal(consts.push(expression) - 1);\n }\n\n private addAttrsToConsts(attrs: o.Expression[]|null): o.LiteralExpr {\n return attrs !== null && attrs.length > 0 ? this.addToConsts(o.literalArr(attrs)) :\n o.TYPED_NULL_EXPR;\n }\n\n private prepareRefsArray(references: t.Reference[]): o.Expression {\n if (!references || references.length === 0) {\n return o.TYPED_NULL_EXPR;\n }\n\n const refsParam = references.flatMap(reference => {\n const slot = this.allocateDataSlot();\n // Generate the update temporary.\n const variableName = this._bindingScope.freshReferenceName();\n const retrievalLevel = this.level;\n const lhs = o.variable(variableName);\n this._bindingScope.set(\n retrievalLevel, reference.name, lhs,\n DeclarationPriority.DEFAULT, (scope: BindingScope, relativeLevel: number) => {\n // e.g. nextContext(2);\n const nextContextStmt =\n relativeLevel > 0 ? [generateNextContextExpr(relativeLevel).toStmt()] : [];\n\n // e.g. const $foo$ = reference(1);\n const refExpr = lhs.set(o.importExpr(R3.reference).callFn([o.literal(slot)]));\n return nextContextStmt.concat(refExpr.toConstDecl());\n }, true);\n\n return [reference.name, reference.value];\n });\n\n return asLiteral(refsParam);\n }\n\n private prepareListenerParameter(tagName: string, outputAst: t.BoundEvent, index: number):\n () => o.Expression[] {\n return () => {\n const eventName: string = outputAst.name;\n const bindingFnName = outputAst.type === ParsedEventType.Animation ?\n // synthetic @listener.foo values are treated the exact same as are standard listeners\n prepareSyntheticListenerFunctionName(eventName, outputAst.phase!) :\n sanitizeIdentifier(eventName);\n const handlerName = `${this.templateName}_${tagName}_${bindingFnName}_${index}_listener`;\n const scope = this._bindingScope.nestedScope(\n this._bindingScope.bindingLevel, EVENT_BINDING_SCOPE_GLOBALS);\n return prepareEventListenerParameters(outputAst, handlerName, scope);\n };\n }\n}\n\nexport class ValueConverter extends AstMemoryEfficientTransformer {\n private _pipeBindExprs: Call[] = [];\n\n constructor(\n private constantPool: ConstantPool, private allocateSlot: () => number,\n private allocatePureFunctionSlots: (numSlots: number) => number,\n private definePipe:\n (name: string, localName: string, slot: number, value: o.Expression) => void) {\n super();\n }\n\n // AstMemoryEfficientTransformer\n override visitPipe(pipe: BindingPipe, context: any): AST {\n // Allocate a slot to create the pipe\n const slot = this.allocateSlot();\n const slotPseudoLocal = `PIPE:${slot}`;\n // Allocate one slot for the result plus one slot per pipe argument\n const pureFunctionSlot = this.allocatePureFunctionSlots(2 + pipe.args.length);\n const target = new PropertyRead(\n pipe.span, pipe.sourceSpan, pipe.nameSpan, new ImplicitReceiver(pipe.span, pipe.sourceSpan),\n slotPseudoLocal);\n const {identifier, isVarLength} = pipeBindingCallInfo(pipe.args);\n this.definePipe(pipe.name, slotPseudoLocal, slot, o.importExpr(identifier));\n const args: AST[] = [pipe.exp, ...pipe.args];\n const convertedArgs: AST[] = isVarLength ?\n this.visitAll([new LiteralArray(pipe.span, pipe.sourceSpan, args)]) :\n this.visitAll(args);\n\n const pipeBindExpr = new Call(\n pipe.span, pipe.sourceSpan, target,\n [\n new LiteralPrimitive(pipe.span, pipe.sourceSpan, slot),\n new LiteralPrimitive(pipe.span, pipe.sourceSpan, pureFunctionSlot),\n ...convertedArgs,\n ],\n null!);\n this._pipeBindExprs.push(pipeBindExpr);\n return pipeBindExpr;\n }\n\n updatePipeSlotOffsets(bindingSlots: number) {\n this._pipeBindExprs.forEach((pipe: Call) => {\n // update the slot offset arg (index 1) to account for binding slots\n const slotOffset = pipe.args[1] as LiteralPrimitive;\n (slotOffset.value as number) += bindingSlots;\n });\n }\n\n override visitLiteralArray(array: LiteralArray, context: any): AST {\n return new BuiltinFunctionCall(\n array.span, array.sourceSpan, this.visitAll(array.expressions), values => {\n // If the literal has calculated (non-literal) elements transform it into\n // calls to literal factories that compose the literal and will cache intermediate\n // values.\n const literal = o.literalArr(values);\n return getLiteralFactory(this.constantPool, literal, this.allocatePureFunctionSlots);\n });\n }\n\n override visitLiteralMap(map: LiteralMap, context: any): AST {\n return new BuiltinFunctionCall(map.span, map.sourceSpan, this.visitAll(map.values), values => {\n // If the literal has calculated (non-literal) elements transform it into\n // calls to literal factories that compose the literal and will cache intermediate\n // values.\n const literal = o.literalMap(values.map(\n (value, index) => ({key: map.keys[index].key, value, quoted: map.keys[index].quoted})));\n return getLiteralFactory(this.constantPool, literal, this.allocatePureFunctionSlots);\n });\n }\n}\n\n// Pipes always have at least one parameter, the value they operate on\nconst pipeBindingIdentifiers = [R3.pipeBind1, R3.pipeBind2, R3.pipeBind3, R3.pipeBind4];\n\nfunction pipeBindingCallInfo(args: o.Expression[]) {\n const identifier = pipeBindingIdentifiers[args.length];\n return {\n identifier: identifier || R3.pipeBindV,\n isVarLength: !identifier,\n };\n}\n\nconst pureFunctionIdentifiers = [\n R3.pureFunction0, R3.pureFunction1, R3.pureFunction2, R3.pureFunction3, R3.pureFunction4,\n R3.pureFunction5, R3.pureFunction6, R3.pureFunction7, R3.pureFunction8\n];\n\nfunction pureFunctionCallInfo(args: o.Expression[]) {\n const identifier = pureFunctionIdentifiers[args.length];\n return {\n identifier: identifier || R3.pureFunctionV,\n isVarLength: !identifier,\n };\n}\n\n// e.g. x(2);\nfunction generateNextContextExpr(relativeLevelDiff: number): o.Expression {\n return o.importExpr(R3.nextContext)\n .callFn(relativeLevelDiff > 1 ? [o.literal(relativeLevelDiff)] : []);\n}\n\nfunction getLiteralFactory(\n constantPool: ConstantPool, literal: o.LiteralArrayExpr|o.LiteralMapExpr,\n allocateSlots: (numSlots: number) => number): o.Expression {\n const {literalFactory, literalFactoryArguments} = constantPool.getLiteralFactory(literal);\n // Allocate 1 slot for the result plus 1 per argument\n const startSlot = allocateSlots(1 + literalFactoryArguments.length);\n const {identifier, isVarLength} = pureFunctionCallInfo(literalFactoryArguments);\n\n // Literal factories are pure functions that only need to be re-invoked when the parameters\n // change.\n const args = [o.literal(startSlot), literalFactory];\n\n if (isVarLength) {\n args.push(o.literalArr(literalFactoryArguments));\n } else {\n args.push(...literalFactoryArguments);\n }\n\n return o.importExpr(identifier).callFn(args);\n}\n\n/**\n * Gets an array of literals that can be added to an expression\n * to represent the name and namespace of an attribute. E.g.\n * `:xlink:href` turns into `[AttributeMarker.NamespaceURI, 'xlink', 'href']`.\n *\n * @param name Name of the attribute, including the namespace.\n */\nfunction getAttributeNameLiterals(name: string): o.LiteralExpr[] {\n const [attributeNamespace, attributeName] = splitNsName(name);\n const nameLiteral = o.literal(attributeName);\n\n if (attributeNamespace) {\n return [\n o.literal(core.AttributeMarker.NamespaceURI), o.literal(attributeNamespace), nameLiteral\n ];\n }\n\n return [nameLiteral];\n}\n\n/**\n * Function which is executed whenever a variable is referenced for the first time in a given\n * scope.\n *\n * It is expected that the function creates the `const localName = expression`; statement.\n */\ntype DeclareLocalVarCallback = (scope: BindingScope, relativeLevel: number) => o.Statement[];\n\n/**\n * Function that is executed whenever a variable is referenced. It allows for the variable to be\n * renamed depending on its location.\n */\ntype LocalVarRefCallback = (scope: BindingScope, retrievalLevel: number) => o.Expression;\n\n/** The prefix used to get a shared context in BindingScope's map. */\nconst SHARED_CONTEXT_KEY = '$$shared_ctx$$';\n\n/**\n * This is used when one refers to variable such as: 'let abc = nextContext(2).$implicit`.\n * - key to the map is the string literal `\"abc\"`.\n * - value `retrievalLevel` is the level from which this value can be retrieved, which is 2 levels\n * up in example.\n * - value `lhs` is the left hand side which is an AST representing `abc`.\n * - value `declareLocalCallback` is a callback that is invoked when declaring the local.\n * - value `declare` is true if this value needs to be declared.\n * - value `localRef` is true if we are storing a local reference\n * - value `priority` dictates the sorting priority of this var declaration compared\n * to other var declarations on the same retrieval level. For example, if there is a\n * context variable and a local ref accessing the same parent view, the context var\n * declaration should always come before the local ref declaration.\n */\ntype BindingData = {\n retrievalLevel: number; lhs: o.Expression | LocalVarRefCallback;\n declareLocalCallback?: DeclareLocalVarCallback; declare: boolean; priority: number;\n};\n\n/**\n * The sorting priority of a local variable declaration. Higher numbers\n * mean the declaration will appear first in the generated code.\n */\nconst enum DeclarationPriority {\n DEFAULT = 0,\n CONTEXT = 1,\n SHARED_CONTEXT = 2\n}\n\nexport class BindingScope implements LocalResolver {\n /** Keeps a map from local variables to their BindingData. */\n private map = new Map<string, BindingData>();\n private referenceNameIndex = 0;\n private restoreViewVariable: o.ReadVarExpr|null = null;\n private usesRestoredViewContext = false;\n static createRootScope(): BindingScope {\n return new BindingScope();\n }\n\n protected constructor(\n public bindingLevel: number = 0, readonly parent: BindingScope|null = null,\n public globals?: Set<string>) {\n if (globals !== undefined) {\n for (const name of globals) {\n this.set(0, name, o.variable(name));\n }\n }\n }\n\n get(name: string): o.Expression|null {\n let current: BindingScope|null = this;\n while (current) {\n let value = current.map.get(name);\n if (value != null) {\n if (current !== this) {\n // make a local copy and reset the `declare` state\n value = {\n retrievalLevel: value.retrievalLevel,\n lhs: value.lhs,\n declareLocalCallback: value.declareLocalCallback,\n declare: false,\n priority: value.priority\n };\n\n // Cache the value locally.\n this.map.set(name, value);\n // Possibly generate a shared context var\n this.maybeGenerateSharedContextVar(value);\n this.maybeRestoreView();\n }\n\n if (value.declareLocalCallback && !value.declare) {\n value.declare = true;\n }\n return typeof value.lhs === 'function' ? value.lhs(this, value.retrievalLevel) : value.lhs;\n }\n current = current.parent;\n }\n\n // If we get to this point, we are looking for a property on the top level component\n // - If level === 0, we are on the top and don't need to re-declare `ctx`.\n // - If level > 0, we are in an embedded view. We need to retrieve the name of the\n // local var we used to store the component context, e.g. const $comp$ = x();\n return this.bindingLevel === 0 ? null : this.getComponentProperty(name);\n }\n\n /** Checks whether a variable exists locally on the current scope. */\n hasLocal(name: string): boolean {\n return this.map.has(name);\n }\n\n /**\n * Create a local variable for later reference.\n *\n * @param retrievalLevel The level from which this value can be retrieved\n * @param name Name of the variable.\n * @param lhs AST representing the left hand side of the `let lhs = rhs;`.\n * @param priority The sorting priority of this var\n * @param declareLocalCallback The callback to invoke when declaring this local var\n * @param localRef Whether or not this is a local ref\n */\n set(retrievalLevel: number, name: string, lhs: o.Expression|LocalVarRefCallback,\n priority: number = DeclarationPriority.DEFAULT,\n declareLocalCallback?: DeclareLocalVarCallback, localRef?: true): BindingScope {\n if (this.map.has(name)) {\n if (localRef) {\n // Do not throw an error if it's a local ref and do not update existing value,\n // so the first defined ref is always returned.\n return this;\n }\n error(`The name ${name} is already defined in scope to be ${this.map.get(name)}`);\n }\n this.map.set(name, {\n retrievalLevel: retrievalLevel,\n lhs: lhs,\n declare: false,\n declareLocalCallback: declareLocalCallback,\n priority: priority,\n });\n return this;\n }\n\n // Implemented as part of LocalResolver.\n getLocal(name: string): (o.Expression|null) {\n return this.get(name);\n }\n\n // Implemented as part of LocalResolver.\n notifyImplicitReceiverUse(): void {\n if (this.bindingLevel !== 0) {\n // Since the implicit receiver is accessed in an embedded view, we need to\n // ensure that we declare a shared context variable for the current template\n // in the update variables.\n this.map.get(SHARED_CONTEXT_KEY + 0)!.declare = true;\n }\n }\n\n nestedScope(level: number, globals?: Set<string>): BindingScope {\n const newScope = new BindingScope(level, this, globals);\n if (level > 0) newScope.generateSharedContextVar(0);\n return newScope;\n }\n\n /**\n * Gets or creates a shared context variable and returns its expression. Note that\n * this does not mean that the shared variable will be declared. Variables in the\n * binding scope will be only declared if they are used.\n */\n getOrCreateSharedContextVar(retrievalLevel: number): o.ReadVarExpr {\n const bindingKey = SHARED_CONTEXT_KEY + retrievalLevel;\n if (!this.map.has(bindingKey)) {\n this.generateSharedContextVar(retrievalLevel);\n }\n // Shared context variables are always generated as \"ReadVarExpr\".\n return this.map.get(bindingKey)!.lhs as o.ReadVarExpr;\n }\n\n getSharedContextName(retrievalLevel: number): o.ReadVarExpr|null {\n const sharedCtxObj = this.map.get(SHARED_CONTEXT_KEY + retrievalLevel);\n // Shared context variables are always generated as \"ReadVarExpr\".\n return sharedCtxObj && sharedCtxObj.declare ? sharedCtxObj.lhs as o.ReadVarExpr : null;\n }\n\n maybeGenerateSharedContextVar(value: BindingData) {\n if (value.priority === DeclarationPriority.CONTEXT &&\n value.retrievalLevel < this.bindingLevel) {\n const sharedCtxObj = this.map.get(SHARED_CONTEXT_KEY + value.retrievalLevel);\n if (sharedCtxObj) {\n sharedCtxObj.declare = true;\n } else {\n this.generateSharedContextVar(value.retrievalLevel);\n }\n }\n }\n\n generateSharedContextVar(retrievalLevel: number) {\n const lhs = o.variable(CONTEXT_NAME + this.freshReferenceName());\n this.map.set(SHARED_CONTEXT_KEY + retrievalLevel, {\n retrievalLevel: retrievalLevel,\n lhs: lhs,\n declareLocalCallback: (scope: BindingScope, relativeLevel: number) => {\n // const ctx_r0 = nextContext(2);\n return [lhs.set(generateNextContextExpr(relativeLevel)).toConstDecl()];\n },\n declare: false,\n priority: DeclarationPriority.SHARED_CONTEXT,\n });\n }\n\n getComponentProperty(name: string): o.Expression {\n const componentValue = this.map.get(SHARED_CONTEXT_KEY + 0)!;\n componentValue.declare = true;\n this.maybeRestoreView();\n const lhs = typeof componentValue.lhs === 'function' ?\n componentValue.lhs(this, componentValue.retrievalLevel) :\n componentValue.lhs;\n return name === DIRECT_CONTEXT_REFERENCE ? lhs : lhs.prop(name);\n }\n\n maybeRestoreView() {\n // View restoration is required for listener instructions inside embedded views, because\n // they only run in creation mode and they can have references to the context object.\n // If the context object changes in update mode, the reference will be incorrect, because\n // it was established during creation.\n if (this.isListenerScope()) {\n if (!this.parent!.restoreViewVariable) {\n // parent saves variable to generate a shared `const $s$ = getCurrentView();` instruction\n this.parent!.restoreViewVariable = o.variable(this.parent!.freshReferenceName());\n }\n this.restoreViewVariable = this.parent!.restoreViewVariable;\n }\n }\n\n restoreViewStatement(): o.Statement|null {\n if (this.restoreViewVariable) {\n const restoreCall = invokeInstruction(null, R3.restoreView, [this.restoreViewVariable]);\n // Either `const restoredCtx = restoreView($state$);` or `restoreView($state$);`\n // depending on whether it is being used.\n return this.usesRestoredViewContext ?\n o.variable(RESTORED_VIEW_CONTEXT_NAME).set(restoreCall).toConstDecl() :\n restoreCall.toStmt();\n }\n return null;\n }\n\n viewSnapshotStatements(): o.Statement[] {\n // const $state$ = getCurrentView();\n return this.restoreViewVariable ?\n [\n this.restoreViewVariable.set(invokeInstruction(null, R3.getCurrentView, [])).toConstDecl()\n ] :\n [];\n }\n\n isListenerScope() {\n return this.parent && this.parent.bindingLevel === this.bindingLevel;\n }\n\n variableDeclarations(): o.Statement[] {\n let currentContextLevel = 0;\n return Array.from(this.map.values())\n .filter(value => value.declare)\n .sort((a, b) => b.retrievalLevel - a.retrievalLevel || b.priority - a.priority)\n .reduce((stmts: o.Statement[], value: BindingData) => {\n const levelDiff = this.bindingLevel - value.retrievalLevel;\n const currStmts =\n value.declareLocalCallback!(this, levelDiff - currentContextLevel);\n currentContextLevel = levelDiff;\n return stmts.concat(currStmts);\n }, []) as o.Statement[];\n }\n\n\n freshReferenceName(): string {\n let current: BindingScope = this;\n // Find the top scope as it maintains the global reference count\n while (current.parent) current = current.parent;\n const ref = `${REFERENCE_PREFIX}${current.referenceNameIndex++}`;\n return ref;\n }\n\n hasRestoreViewVariable(): boolean {\n return !!this.restoreViewVariable;\n }\n\n notifyRestoredViewContextUse(): void {\n this.usesRestoredViewContext = true;\n }\n}\n\n/** Binding scope of a `track` function inside a `for` loop block. */\nclass TrackByBindingScope extends BindingScope {\n private componentAccessCount = 0;\n\n constructor(parentScope: BindingScope, private globalOverrides: Record<string, string>) {\n super(parentScope.bindingLevel + 1, parentScope);\n }\n\n override get(name: string): o.Expression|null {\n // Intercept any overridden globals.\n if (this.globalOverrides.hasOwnProperty(name)) {\n return o.variable(this.globalOverrides[name]);\n }\n\n let current: BindingScope|null = this.parent;\n\n // Prevent accesses of template variables outside the `for` loop.\n while (current) {\n if (current.hasLocal(name)) {\n return null;\n }\n current = current.parent;\n }\n\n // When the component scope is accessed, we redirect it through `this`.\n this.componentAccessCount++;\n return o.variable('this').prop(name);\n }\n\n /** Gets the number of times the host component has been accessed through the scope. */\n getComponentAccessCount(): number {\n return this.componentAccessCount;\n }\n}\n\n/**\n * Creates an array of expressions out of an `ngProjectAs` attributes\n * which can be added to the instruction parameters.\n */\nfunction getNgProjectAsLiteral(attribute: t.TextAttribute): o.Expression[] {\n // Parse the attribute value into a CssSelectorList. Note that we only take the\n // first selector, because we don't support multiple selectors in ngProjectAs.\n const parsedR3Selector = core.parseSelectorToR3Selector(attribute.value)[0];\n return [o.literal(core.AttributeMarker.ProjectAs), asLiteral(parsedR3Selector)];\n}\n\n/**\n * Gets the instruction to generate for an interpolated property\n * @param interpolation An Interpolation AST\n */\nfunction getPropertyInterpolationExpression(interpolation: Interpolation) {\n switch (getInterpolationArgsLength(interpolation)) {\n case 1:\n return R3.propertyInterpolate;\n case 3:\n return R3.propertyInterpolate1;\n case 5:\n return R3.propertyInterpolate2;\n case 7:\n return R3.propertyInterpolate3;\n case 9:\n return R3.propertyInterpolate4;\n case 11:\n return R3.propertyInterpolate5;\n case 13:\n return R3.propertyInterpolate6;\n case 15:\n return R3.propertyInterpolate7;\n case 17:\n return R3.propertyInterpolate8;\n default:\n return R3.propertyInterpolateV;\n }\n}\n\n/**\n * Gets the instruction to generate for an interpolated attribute\n * @param interpolation An Interpolation AST\n */\nfunction getAttributeInterpolationExpression(interpolation: Interpolation) {\n switch (getInterpolationArgsLength(interpolation)) {\n case 3:\n return R3.attributeInterpolate1;\n case 5:\n return R3.attributeInterpolate2;\n case 7:\n return R3.attributeInterpolate3;\n case 9:\n return R3.attributeInterpolate4;\n case 11:\n return R3.attributeInterpolate5;\n case 13:\n return R3.attributeInterpolate6;\n case 15:\n return R3.attributeInterpolate7;\n case 17:\n return R3.attributeInterpolate8;\n default:\n return R3.attributeInterpolateV;\n }\n}\n\n/**\n * Gets the instruction to generate for interpolated text.\n * @param interpolation An Interpolation AST\n */\nfunction getTextInterpolationExpression(interpolation: Interpolation): o.ExternalReference {\n switch (getInterpolationArgsLength(interpolation)) {\n case 1:\n return R3.textInterpolate;\n case 3:\n return R3.textInterpolate1;\n case 5:\n return R3.textInterpolate2;\n case 7:\n return R3.textInterpolate3;\n case 9:\n return R3.textInterpolate4;\n case 11:\n return R3.textInterpolate5;\n case 13:\n return R3.textInterpolate6;\n case 15:\n return R3.textInterpolate7;\n case 17:\n return R3.textInterpolate8;\n default:\n return R3.textInterpolateV;\n }\n}\n\n/**\n * Options that can be used to modify how a template is parsed by `parseTemplate()`.\n */\nexport interface ParseTemplateOptions {\n /**\n * Include whitespace nodes in the parsed output.\n */\n preserveWhitespaces?: boolean;\n /**\n * Preserve original line endings instead of normalizing '\\r\\n' endings to '\\n'.\n */\n preserveLineEndings?: boolean;\n /**\n * How to parse interpolation markers.\n */\n interpolationConfig?: InterpolationConfig;\n /**\n * The start and end point of the text to parse within the `source` string.\n * The entire `source` string is parsed if this is not provided.\n * */\n range?: LexerRange;\n /**\n * If this text is stored in a JavaScript string, then we have to deal with escape sequences.\n *\n * **Example 1:**\n *\n * ```\n * \"abc\\\"def\\nghi\"\n * ```\n *\n * - The `\\\"` must be converted to `\"`.\n * - The `\\n` must be converted to a new line character in a token,\n * but it should not increment the current line for source mapping.\n *\n * **Example 2:**\n *\n * ```\n * \"abc\\\n * def\"\n * ```\n *\n * The line continuation (`\\` followed by a newline) should be removed from a token\n * but the new line should increment the current line for source mapping.\n */\n escapedString?: boolean;\n /**\n * An array of characters that should be considered as leading trivia.\n * Leading trivia are characters that are not important to the developer, and so should not be\n * included in source-map segments. A common example is whitespace.\n */\n leadingTriviaChars?: string[];\n\n /**\n * Render `$localize` message ids with additional legacy message ids.\n *\n * This option defaults to `true` but in the future the default will be flipped.\n *\n * For now set this option to false if you have migrated the translation files to use the new\n * `$localize` message id format and you are not using compile time translation merging.\n */\n enableI18nLegacyMessageIdFormat?: boolean;\n\n /**\n * If this text is stored in an external template (e.g. via `templateUrl`) then we need to decide\n * whether or not to normalize the line-endings (from `\\r\\n` to `\\n`) when processing ICU\n * expressions.\n *\n * If `true` then we will normalize ICU expression line endings.\n * The default is `false`, but this will be switched in a future major release.\n */\n i18nNormalizeLineEndingsInICUs?: boolean;\n\n /**\n * Whether to always attempt to convert the parsed HTML AST to an R3 AST, despite HTML or i18n\n * Meta parse errors.\n *\n *\n * This option is useful in the context of the language service, where we want to get as much\n * information as possible, despite any errors in the HTML. As an example, a user may be adding\n * a new tag and expecting autocomplete on that tag. In this scenario, the HTML is in an errored\n * state, as there is an incomplete open tag. However, we're still able to convert the HTML AST\n * nodes to R3 AST nodes in order to provide information for the language service.\n *\n * Note that even when `true` the HTML parse and i18n errors are still appended to the errors\n * output, but this is done after converting the HTML AST to R3 AST.\n */\n alwaysAttemptHtmlToR3AstConversion?: boolean;\n\n /**\n * Include HTML Comment nodes in a top-level comments array on the returned R3 AST.\n *\n * This option is required by tooling that needs to know the location of comment nodes within the\n * AST. A concrete example is @angular-eslint which requires this in order to enable\n * \"eslint-disable\" comments within HTML templates, which then allows users to turn off specific\n * rules on a case by case basis, instead of for their whole project within a configuration file.\n */\n collectCommentNodes?: boolean;\n\n /** Whether the @ block syntax is enabled. */\n enableBlockSyntax?: boolean;\n}\n\n/**\n * Parse a template into render3 `Node`s and additional metadata, with no other dependencies.\n *\n * @param template text of the template to parse\n * @param templateUrl URL to use for source mapping of the parsed template\n * @param options options to modify how the template is parsed\n */\nexport function parseTemplate(\n template: string, templateUrl: string, options: ParseTemplateOptions = {}): ParsedTemplate {\n const {interpolationConfig, preserveWhitespaces, enableI18nLegacyMessageIdFormat} = options;\n const bindingParser = makeBindingParser(interpolationConfig);\n const htmlParser = new HtmlParser();\n const parseResult = htmlParser.parse(template, templateUrl, {\n leadingTriviaChars: LEADING_TRIVIA_CHARS,\n ...options,\n tokenizeExpansionForms: true,\n tokenizeBlocks: options.enableBlockSyntax ?? true,\n });\n\n if (!options.alwaysAttemptHtmlToR3AstConversion && parseResult.errors &&\n parseResult.errors.length > 0) {\n const parsedTemplate: ParsedTemplate = {\n interpolationConfig,\n preserveWhitespaces,\n errors: parseResult.errors,\n nodes: [],\n styleUrls: [],\n styles: [],\n ngContentSelectors: []\n };\n if (options.collectCommentNodes) {\n parsedTemplate.commentNodes = [];\n }\n return parsedTemplate;\n }\n\n let rootNodes: html.Node[] = parseResult.rootNodes;\n\n // process i18n meta information (scan attributes, generate ids)\n // before we run whitespace removal process, because existing i18n\n // extraction process (ng extract-i18n) relies on a raw content to generate\n // message ids\n const i18nMetaVisitor = new I18nMetaVisitor(\n interpolationConfig, /* keepI18nAttrs */ !preserveWhitespaces,\n enableI18nLegacyMessageIdFormat);\n const i18nMetaResult = i18nMetaVisitor.visitAllWithErrors(rootNodes);\n\n if (!options.alwaysAttemptHtmlToR3AstConversion && i18nMetaResult.errors &&\n i18nMetaResult.errors.length > 0) {\n const parsedTemplate: ParsedTemplate = {\n interpolationConfig,\n preserveWhitespaces,\n errors: i18nMetaResult.errors,\n nodes: [],\n styleUrls: [],\n styles: [],\n ngContentSelectors: []\n };\n if (options.collectCommentNodes) {\n parsedTemplate.commentNodes = [];\n }\n return parsedTemplate;\n }\n\n rootNodes = i18nMetaResult.rootNodes;\n\n if (!preserveWhitespaces) {\n rootNodes = html.visitAll(new WhitespaceVisitor(), rootNodes);\n\n // run i18n meta visitor again in case whitespaces are removed (because that might affect\n // generated i18n message content) and first pass indicated that i18n content is present in a\n // template. During this pass i18n IDs generated at the first pass will be preserved, so we can\n // mimic existing extraction process (ng extract-i18n)\n if (i18nMetaVisitor.hasI18nMeta) {\n rootNodes = html.visitAll(\n new I18nMetaVisitor(interpolationConfig, /* keepI18nAttrs */ false), rootNodes);\n }\n }\n\n const {nodes, errors, styleUrls, styles, ngContentSelectors, commentNodes} = htmlAstToRender3Ast(\n rootNodes, bindingParser, {collectCommentNodes: !!options.collectCommentNodes});\n errors.push(...parseResult.errors, ...i18nMetaResult.errors);\n\n const parsedTemplate: ParsedTemplate = {\n interpolationConfig,\n preserveWhitespaces,\n errors: errors.length > 0 ? errors : null,\n nodes,\n styleUrls,\n styles,\n ngContentSelectors\n };\n\n if (options.collectCommentNodes) {\n parsedTemplate.commentNodes = commentNodes;\n }\n return parsedTemplate;\n}\n\nconst elementRegistry = new DomElementSchemaRegistry();\n\n/**\n * Construct a `BindingParser` with a default configuration.\n */\nexport function makeBindingParser(\n interpolationConfig: InterpolationConfig = DEFAULT_INTERPOLATION_CONFIG): BindingParser {\n return new BindingParser(new Parser(new Lexer()), interpolationConfig, elementRegistry, []);\n}\n\nexport function resolveSanitizationFn(context: core.SecurityContext, isAttribute?: boolean) {\n switch (context) {\n case core.SecurityContext.HTML:\n return o.importExpr(R3.sanitizeHtml);\n case core.SecurityContext.SCRIPT:\n return o.importExpr(R3.sanitizeScript);\n case core.SecurityContext.STYLE:\n // the compiler does not fill in an instruction for [style.prop?] binding\n // values because the style algorithm knows internally what props are subject\n // to sanitization (only [attr.style] values are explicitly sanitized)\n return isAttribute ? o.importExpr(R3.sanitizeStyle) : null;\n case core.SecurityContext.URL:\n return o.importExpr(R3.sanitizeUrl);\n case core.SecurityContext.RESOURCE_URL:\n return o.importExpr(R3.sanitizeResourceUrl);\n default:\n return null;\n }\n}\n\nfunction trustedConstAttribute(tagName: string, attr: t.TextAttribute): o.Expression {\n const value = asLiteral(attr.value);\n if (isTrustedTypesSink(tagName, attr.name)) {\n switch (elementRegistry.securityContext(tagName, attr.name, /* isAttribute */ true)) {\n case core.SecurityContext.HTML:\n return o.taggedTemplate(\n o.importExpr(R3.trustConstantHtml),\n new o.TemplateLiteral([new o.TemplateLiteralElement(attr.value)], []), undefined,\n attr.valueSpan);\n // NB: no SecurityContext.SCRIPT here, as the corresponding tags are stripped by the compiler.\n case core.SecurityContext.RESOURCE_URL:\n return o.taggedTemplate(\n o.importExpr(R3.trustConstantResourceUrl),\n new o.TemplateLiteral([new o.TemplateLiteralElement(attr.value)], []), undefined,\n attr.valueSpan);\n default:\n return value;\n }\n } else {\n return value;\n }\n}\n\nfunction isSingleElementTemplate(children: t.Node[]): children is[t.Element] {\n return children.length === 1 && children[0] instanceof t.Element;\n}\n\nfunction isTextNode(node: t.Node): boolean {\n return node instanceof t.Text || node instanceof t.BoundText || node instanceof t.Icu;\n}\n\nfunction isIframeElement(tagName: string): boolean {\n return tagName.toLowerCase() === 'iframe';\n}\n\nfunction hasTextChildrenOnly(children: t.Node[]): boolean {\n return children.every(isTextNode);\n}\n\nfunction getBindingFunctionParams(\n deferredParams: () => (o.Expression | o.Expression[]), name?: string,\n eagerParams?: o.Expression[]) {\n return () => {\n const value = deferredParams();\n const fnParams = Array.isArray(value) ? value : [value];\n if (eagerParams) {\n fnParams.push(...eagerParams);\n }\n if (name) {\n // We want the property name to always be the first function parameter.\n fnParams.unshift(o.literal(name));\n }\n return fnParams;\n };\n}\n\n/** Name of the global variable that is used to determine if we use Closure translations or not */\nconst NG_I18N_CLOSURE_MODE = 'ngI18nClosureMode';\n\n/**\n * Generate statements that define a given translation message.\n *\n * ```\n * var I18N_1;\n * if (typeof ngI18nClosureMode !== undefined && ngI18nClosureMode) {\n * var MSG_EXTERNAL_XXX = goog.getMsg(\n * \"Some message with {$interpolation}!\",\n * { \"interpolation\": \"\\uFFFD0\\uFFFD\" }\n * );\n * I18N_1 = MSG_EXTERNAL_XXX;\n * }\n * else {\n * I18N_1 = $localize`Some message with ${'\\uFFFD0\\uFFFD'}!`;\n * }\n * ```\n *\n * @param message The original i18n AST message node\n * @param variable The variable that will be assigned the translation, e.g. `I18N_1`.\n * @param closureVar The variable for Closure `goog.getMsg` calls, e.g. `MSG_EXTERNAL_XXX`.\n * @param params Object mapping placeholder names to their values (e.g.\n * `{ \"interpolation\": \"\\uFFFD0\\uFFFD\" }`).\n * @param transformFn Optional transformation function that will be applied to the translation (e.g.\n * post-processing).\n * @returns An array of statements that defined a given translation.\n */\nexport function getTranslationDeclStmts(\n message: i18n.Message, variable: o.ReadVarExpr, closureVar: o.ReadVarExpr,\n params: {[name: string]: o.Expression} = {},\n transformFn?: (raw: o.ReadVarExpr) => o.Expression): o.Statement[] {\n // Sort the map entries in the compiled output. This makes it easy to acheive identical output in\n // the template pipeline compiler.\n params = Object.fromEntries(Object.entries(params).sort());\n\n const statements: o.Statement[] = [\n declareI18nVariable(variable),\n o.ifStmt(\n createClosureModeGuard(),\n createGoogleGetMsgStatements(variable, message, closureVar, params),\n createLocalizeStatements(\n variable, message, formatI18nPlaceholderNamesInMap(params, /* useCamelCase */ false))),\n ];\n\n if (transformFn) {\n statements.push(new o.ExpressionStatement(variable.set(transformFn(variable))));\n }\n\n return statements;\n}\n\n/**\n * Create the expression that will be used to guard the closure mode block\n * It is equivalent to:\n *\n * ```\n * typeof ngI18nClosureMode !== undefined && ngI18nClosureMode\n * ```\n */\nfunction createClosureModeGuard(): o.BinaryOperatorExpr {\n return o.typeofExpr(o.variable(NG_I18N_CLOSURE_MODE))\n .notIdentical(o.literal('undefined', o.STRING_TYPE))\n .and(o.variable(NG_I18N_CLOSURE_MODE));\n}\n\n/**\n * Information about the template which was extracted during parsing.\n *\n * This contains the actual parsed template as well as any metadata collected during its parsing,\n * some of which might be useful for re-parsing the template with different options.\n */\nexport interface ParsedTemplate {\n /**\n * Include whitespace nodes in the parsed output.\n */\n preserveWhitespaces?: boolean;\n\n /**\n * How to parse interpolation markers.\n */\n interpolationConfig?: InterpolationConfig;\n /**\n * Any errors from parsing the template the first time.\n *\n * `null` if there are no errors. Otherwise, the array of errors is guaranteed to be non-empty.\n */\n errors: ParseError[]|null;\n\n /**\n * The template AST, parsed from the template.\n */\n nodes: t.Node[];\n\n /**\n * Any styleUrls extracted from the metadata.\n */\n styleUrls: string[];\n\n /**\n * Any inline styles extracted from the metadata.\n */\n styles: string[];\n\n /**\n * Any ng-content selectors extracted from the template.\n */\n ngContentSelectors: string[];\n\n /**\n * Any R3 Comment Nodes extracted from the template when the `collectCommentNodes` parse template\n * option is enabled.\n */\n commentNodes?: t.Comment[];\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n\nimport {convertPropertyBinding} from '../../compiler_util/expression_converter';\nimport {ConstantPool} from '../../constant_pool';\nimport * as core from '../../core';\nimport {AST, ParsedEvent, ParsedEventType, ParsedProperty} from '../../expression_parser/ast';\nimport * as o from '../../output/output_ast';\nimport {ParseError, ParseSourceSpan, sanitizeIdentifier} from '../../parse_util';\nimport {isIframeSecuritySensitiveAttr} from '../../schema/dom_security_schema';\nimport {CssSelector} from '../../selector';\nimport {ShadowCss} from '../../shadow_css';\nimport {CompilationJobKind} from '../../template/pipeline/src/compilation';\nimport {emitHostBindingFunction, emitTemplateFn, transform} from '../../template/pipeline/src/emit';\nimport {ingestComponent, ingestHostBinding} from '../../template/pipeline/src/ingest';\nimport {USE_TEMPLATE_PIPELINE} from '../../template/pipeline/switch';\nimport {BindingParser} from '../../template_parser/binding_parser';\nimport {error} from '../../util';\nimport {BoundEvent} from '../r3_ast';\nimport {Identifiers as R3} from '../r3_identifiers';\nimport {prepareSyntheticListenerFunctionName, prepareSyntheticPropertyName, R3CompiledExpression, typeWithParameters} from '../util';\n\nimport {DeclarationListEmitMode, DeferBlockDepsEmitMode, R3ComponentMetadata, R3DirectiveMetadata, R3HostMetadata, R3QueryMetadata, R3TemplateDependency} from './api';\nimport {MIN_STYLING_BINDING_SLOTS_REQUIRED, StylingBuilder, StylingInstructionCall} from './styling_builder';\nimport {BindingScope, makeBindingParser, prepareEventListenerParameters, renderFlagCheckIfStmt, resolveSanitizationFn, TemplateDefinitionBuilder, ValueConverter} from './template';\nimport {asLiteral, conditionallyCreateDirectiveBindingLiteral, CONTEXT_NAME, DefinitionMap, getInstructionStatements, getQueryPredicate, Instruction, RENDER_FLAGS, TEMPORARY_NAME, temporaryAllocator} from './util';\n\n\n// This regex matches any binding names that contain the \"attr.\" prefix, e.g. \"attr.required\"\n// If there is a match, the first matching group will contain the attribute name to bind.\nconst ATTR_REGEX = /attr\\.([^\\]]+)/;\n\n\nconst COMPONENT_VARIABLE = '%COMP%';\nconst HOST_ATTR = `_nghost-${COMPONENT_VARIABLE}`;\nconst CONTENT_ATTR = `_ngcontent-${COMPONENT_VARIABLE}`;\n\nfunction baseDirectiveFields(\n meta: R3DirectiveMetadata, constantPool: ConstantPool,\n bindingParser: BindingParser): DefinitionMap {\n const definitionMap = new DefinitionMap();\n const selectors = core.parseSelectorToR3Selector(meta.selector);\n\n // e.g. `type: MyDirective`\n definitionMap.set('type', meta.type.value);\n\n // e.g. `selectors: [['', 'someDir', '']]`\n if (selectors.length > 0) {\n definitionMap.set('selectors', asLiteral(selectors));\n }\n\n if (meta.queries.length > 0) {\n // e.g. `contentQueries: (rf, ctx, dirIndex) => { ... }\n definitionMap.set(\n 'contentQueries', createContentQueriesFunction(meta.queries, constantPool, meta.name));\n }\n\n if (meta.viewQueries.length) {\n definitionMap.set(\n 'viewQuery', createViewQueriesFunction(meta.viewQueries, constantPool, meta.name));\n }\n\n // e.g. `hostBindings: (rf, ctx) => { ... }\n definitionMap.set(\n 'hostBindings',\n createHostBindingsFunction(\n meta.host, meta.typeSourceSpan, bindingParser, constantPool, meta.selector || '',\n meta.name, definitionMap));\n\n // e.g 'inputs: {a: 'a'}`\n definitionMap.set('inputs', conditionallyCreateDirectiveBindingLiteral(meta.inputs, true));\n\n // e.g 'outputs: {a: 'a'}`\n definitionMap.set('outputs', conditionallyCreateDirectiveBindingLiteral(meta.outputs));\n\n if (meta.exportAs !== null) {\n definitionMap.set('exportAs', o.literalArr(meta.exportAs.map(e => o.literal(e))));\n }\n\n if (meta.isStandalone) {\n definitionMap.set('standalone', o.literal(true));\n }\n if (meta.isSignal) {\n definitionMap.set('signals', o.literal(true));\n }\n\n return definitionMap;\n}\n\n/**\n * Add features to the definition map.\n */\nfunction addFeatures(\n definitionMap: DefinitionMap,\n meta: R3DirectiveMetadata|R3ComponentMetadata<R3TemplateDependency>) {\n // e.g. `features: [NgOnChangesFeature]`\n const features: o.Expression[] = [];\n\n const providers = meta.providers;\n const viewProviders = (meta as R3ComponentMetadata<R3TemplateDependency>).viewProviders;\n const inputKeys = Object.keys(meta.inputs);\n\n if (providers || viewProviders) {\n const args = [providers || new o.LiteralArrayExpr([])];\n if (viewProviders) {\n args.push(viewProviders);\n }\n features.push(o.importExpr(R3.ProvidersFeature).callFn(args));\n }\n for (const key of inputKeys) {\n if (meta.inputs[key].transformFunction !== null) {\n features.push(o.importExpr(R3.InputTransformsFeatureFeature));\n break;\n }\n }\n // Note: host directives feature needs to be inserted before the\n // inheritance feature to ensure the correct execution order.\n if (meta.hostDirectives?.length) {\n features.push(o.importExpr(R3.HostDirectivesFeature).callFn([createHostDirectivesFeatureArg(\n meta.hostDirectives)]));\n }\n if (meta.usesInheritance) {\n features.push(o.importExpr(R3.InheritDefinitionFeature));\n }\n if (meta.fullInheritance) {\n features.push(o.importExpr(R3.CopyDefinitionFeature));\n }\n if (meta.lifecycle.usesOnChanges) {\n features.push(o.importExpr(R3.NgOnChangesFeature));\n }\n // TODO: better way of differentiating component vs directive metadata.\n if (meta.hasOwnProperty('template') && meta.isStandalone) {\n features.push(o.importExpr(R3.StandaloneFeature));\n }\n if (features.length) {\n definitionMap.set('features', o.literalArr(features));\n }\n}\n\n/**\n * Compile a directive for the render3 runtime as defined by the `R3DirectiveMetadata`.\n */\nexport function compileDirectiveFromMetadata(\n meta: R3DirectiveMetadata, constantPool: ConstantPool,\n bindingParser: BindingParser): R3CompiledExpression {\n const definitionMap = baseDirectiveFields(meta, constantPool, bindingParser);\n addFeatures(definitionMap, meta);\n const expression =\n o.importExpr(R3.defineDirective).callFn([definitionMap.toLiteralMap()], undefined, true);\n const type = createDirectiveType(meta);\n\n return {expression, type, statements: []};\n}\n\n/**\n * Creates an AST for a function that contains dynamic imports representing\n * deferrable dependencies.\n */\nfunction createDeferredDepsFunction(\n constantPool: ConstantPool, name: string,\n deps: Map<string, {importPath: string, isDefaultImport: boolean}>) {\n // This defer block has deps for which we need to generate dynamic imports.\n const dependencyExp: o.Expression[] = [];\n\n for (const [symbolName, {importPath, isDefaultImport}] of deps) {\n // Callback function, e.g. `m () => m.MyCmp;`.\n const innerFn = o.arrowFn(\n [new o.FnParam('m', o.DYNAMIC_TYPE)],\n o.variable('m').prop(isDefaultImport ? 'default' : symbolName));\n\n // Dynamic import, e.g. `import('./a').then(...)`.\n const importExpr = (new o.DynamicImportExpr(importPath)).prop('then').callFn([innerFn]);\n dependencyExp.push(importExpr);\n }\n\n const depsFnExpr = o.arrowFn([], o.literalArr(dependencyExp));\n\n constantPool.statements.push(depsFnExpr.toDeclStmt(name, o.StmtModifier.Final));\n\n return o.variable(name);\n}\n\n/**\n * Compile a component for the render3 runtime as defined by the `R3ComponentMetadata`.\n */\nexport function compileComponentFromMetadata(\n meta: R3ComponentMetadata<R3TemplateDependency>, constantPool: ConstantPool,\n bindingParser: BindingParser): R3CompiledExpression {\n const definitionMap = baseDirectiveFields(meta, constantPool, bindingParser);\n addFeatures(definitionMap, meta);\n\n const selector = meta.selector && CssSelector.parse(meta.selector);\n const firstSelector = selector && selector[0];\n\n // e.g. `attr: [\"class\", \".my.app\"]`\n // This is optional an only included if the first selector of a component specifies attributes.\n if (firstSelector) {\n const selectorAttributes = firstSelector.getAttrs();\n if (selectorAttributes.length) {\n definitionMap.set(\n 'attrs',\n constantPool.getConstLiteral(\n o.literalArr(selectorAttributes.map(\n value => value != null ? o.literal(value) : o.literal(undefined))),\n /* forceShared */ true));\n }\n }\n\n // e.g. `template: function MyComponent_Template(_ctx, _cm) {...}`\n const templateTypeName = meta.name;\n const templateName = templateTypeName ? `${templateTypeName}_Template` : null;\n\n\n let allDeferrableDepsFn: o.ReadVarExpr|null = null;\n if (meta.deferBlocks.size > 0 && meta.deferrableTypes.size > 0 &&\n meta.deferBlockDepsEmitMode === DeferBlockDepsEmitMode.PerComponent) {\n const fnName = `${templateTypeName}_DeferFn`;\n allDeferrableDepsFn = createDeferredDepsFunction(constantPool, fnName, meta.deferrableTypes);\n }\n\n // Template compilation is currently conditional as we're in the process of rewriting it.\n if (!USE_TEMPLATE_PIPELINE) {\n // This is the main path currently used in compilation, which compiles the template with the\n // legacy `TemplateDefinitionBuilder`.\n\n const template = meta.template;\n const templateBuilder = new TemplateDefinitionBuilder(\n constantPool, BindingScope.createRootScope(), 0, templateTypeName, null, null, templateName,\n R3.namespaceHTML, meta.relativeContextFilePath, meta.i18nUseExternalIds, meta.deferBlocks,\n new Map(), allDeferrableDepsFn);\n\n const templateFunctionExpression = templateBuilder.buildTemplateFunction(template.nodes, []);\n\n // We need to provide this so that dynamically generated components know what\n // projected content blocks to pass through to the component when it is\n // instantiated.\n const ngContentSelectors = templateBuilder.getNgContentSelectors();\n if (ngContentSelectors) {\n definitionMap.set('ngContentSelectors', ngContentSelectors);\n }\n\n // e.g. `decls: 2`\n // definitionMap.set('decls', o.literal(tpl.root.decls!));\n definitionMap.set('decls', o.literal(templateBuilder.getConstCount()));\n\n // e.g. `vars: 2`\n // definitionMap.set('vars', o.literal(tpl.root.vars!));\n definitionMap.set('vars', o.literal(templateBuilder.getVarCount()));\n\n // Generate `consts` section of ComponentDef:\n // - either as an array:\n // `consts: [['one', 'two'], ['three', 'four']]`\n // - or as a factory function in case additional statements are present (to support i18n):\n // `consts: () => { var i18n_0; if (ngI18nClosureMode) {...} else {...} return [i18n_0];\n // }`\n const {constExpressions, prepareStatements} = templateBuilder.getConsts();\n if (constExpressions.length > 0) {\n let constsExpr: o.LiteralArrayExpr|o.ArrowFunctionExpr = o.literalArr(constExpressions);\n // Prepare statements are present - turn `consts` into a function.\n if (prepareStatements.length > 0) {\n constsExpr = o.arrowFn([], [...prepareStatements, new o.ReturnStatement(constsExpr)]);\n }\n definitionMap.set('consts', constsExpr);\n }\n\n definitionMap.set('template', templateFunctionExpression);\n } else {\n // This path compiles the template using the prototype template pipeline. First the template is\n // ingested into IR:\n const tpl = ingestComponent(\n meta.name, meta.template.nodes, constantPool, meta.relativeContextFilePath,\n meta.i18nUseExternalIds, meta.deferBlocks, allDeferrableDepsFn);\n\n // Then the IR is transformed to prepare it for cod egeneration.\n transform(tpl, CompilationJobKind.Tmpl);\n\n // Finally we emit the template function:\n const templateFn = emitTemplateFn(tpl, constantPool);\n\n if (tpl.contentSelectors !== null) {\n definitionMap.set('ngContentSelectors', tpl.contentSelectors);\n }\n\n definitionMap.set('decls', o.literal(tpl.root.decls as number));\n definitionMap.set('vars', o.literal(tpl.root.vars as number));\n if (tpl.consts.length > 0) {\n if (tpl.constsInitializers.length > 0) {\n definitionMap.set('consts', o.arrowFn([], [\n ...tpl.constsInitializers, new o.ReturnStatement(o.literalArr(tpl.consts))\n ]));\n } else {\n definitionMap.set('consts', o.literalArr(tpl.consts));\n }\n }\n definitionMap.set('template', templateFn);\n }\n\n if (meta.declarationListEmitMode !== DeclarationListEmitMode.RuntimeResolved &&\n meta.declarations.length > 0) {\n definitionMap.set(\n 'dependencies',\n compileDeclarationList(\n o.literalArr(meta.declarations.map(decl => decl.type)), meta.declarationListEmitMode));\n } else if (meta.declarationListEmitMode === DeclarationListEmitMode.RuntimeResolved) {\n const args = [meta.type.value];\n if (meta.rawImports) {\n args.push(meta.rawImports);\n }\n definitionMap.set('dependencies', o.importExpr(R3.getComponentDepsFactory).callFn(args));\n }\n\n if (meta.encapsulation === null) {\n meta.encapsulation = core.ViewEncapsulation.Emulated;\n }\n\n // e.g. `styles: [str1, str2]`\n if (meta.styles && meta.styles.length) {\n const styleValues = meta.encapsulation == core.ViewEncapsulation.Emulated ?\n compileStyles(meta.styles, CONTENT_ATTR, HOST_ATTR) :\n meta.styles;\n const styleNodes = styleValues.reduce((result, style) => {\n if (style.trim().length > 0) {\n result.push(constantPool.getConstLiteral(o.literal(style)));\n }\n return result;\n }, [] as o.Expression[]);\n\n if (styleNodes.length > 0) {\n definitionMap.set('styles', o.literalArr(styleNodes));\n }\n } else if (meta.encapsulation === core.ViewEncapsulation.Emulated) {\n // If there is no style, don't generate css selectors on elements\n meta.encapsulation = core.ViewEncapsulation.None;\n }\n\n // Only set view encapsulation if it's not the default value\n if (meta.encapsulation !== core.ViewEncapsulation.Emulated) {\n definitionMap.set('encapsulation', o.literal(meta.encapsulation));\n }\n\n // e.g. `animation: [trigger('123', [])]`\n if (meta.animations !== null) {\n definitionMap.set(\n 'data', o.literalMap([{key: 'animation', value: meta.animations, quoted: false}]));\n }\n\n // Setting change detection flag\n if (meta.changeDetection !== null) {\n if (typeof meta.changeDetection === 'number' &&\n meta.changeDetection !== core.ChangeDetectionStrategy.Default) {\n // changeDetection is resolved during analysis. Only set it if not the default.\n definitionMap.set('changeDetection', o.literal(meta.changeDetection));\n } else if (typeof meta.changeDetection === 'object') {\n // changeDetection is not resolved during analysis (e.g., we are in local compilation mode).\n // So place it as is.\n definitionMap.set('changeDetection', meta.changeDetection);\n }\n }\n\n const expression =\n o.importExpr(R3.defineComponent).callFn([definitionMap.toLiteralMap()], undefined, true);\n const type = createComponentType(meta);\n\n return {expression, type, statements: []};\n}\n\n/**\n * Creates the type specification from the component meta. This type is inserted into .d.ts files\n * to be consumed by upstream compilations.\n */\nexport function createComponentType(meta: R3ComponentMetadata<R3TemplateDependency>): o.Type {\n const typeParams = createBaseDirectiveTypeParams(meta);\n typeParams.push(stringArrayAsType(meta.template.ngContentSelectors));\n typeParams.push(o.expressionType(o.literal(meta.isStandalone)));\n typeParams.push(createHostDirectivesType(meta));\n // TODO(signals): Always include this metadata starting with v17. Right\n // now Angular v16.0.x does not support this field and library distributions\n // would then be incompatible with v16.0.x framework users.\n if (meta.isSignal) {\n typeParams.push(o.expressionType(o.literal(meta.isSignal)));\n }\n return o.expressionType(o.importExpr(R3.ComponentDeclaration, typeParams));\n}\n\n/**\n * Compiles the array literal of declarations into an expression according to the provided emit\n * mode.\n */\nfunction compileDeclarationList(\n list: o.LiteralArrayExpr, mode: DeclarationListEmitMode): o.Expression {\n switch (mode) {\n case DeclarationListEmitMode.Direct:\n // directives: [MyDir],\n return list;\n case DeclarationListEmitMode.Closure:\n // directives: function () { return [MyDir]; }\n return o.arrowFn([], list);\n case DeclarationListEmitMode.ClosureResolved:\n // directives: function () { return [MyDir].map(ng.resolveForwardRef); }\n const resolvedList = list.prop('map').callFn([o.importExpr(R3.resolveForwardRef)]);\n return o.arrowFn([], resolvedList);\n case DeclarationListEmitMode.RuntimeResolved:\n throw new Error(`Unsupported with an array of pre-resolved dependencies`);\n }\n}\n\nfunction prepareQueryParams(query: R3QueryMetadata, constantPool: ConstantPool): o.Expression[] {\n const parameters = [getQueryPredicate(query, constantPool), o.literal(toQueryFlags(query))];\n if (query.read) {\n parameters.push(query.read);\n }\n return parameters;\n}\n\n/**\n * A set of flags to be used with Queries.\n *\n * NOTE: Ensure changes here are in sync with `packages/core/src/render3/interfaces/query.ts`\n */\nexport const enum QueryFlags {\n /**\n * No flags\n */\n none = 0b0000,\n\n /**\n * Whether or not the query should descend into children.\n */\n descendants = 0b0001,\n\n /**\n * The query can be computed statically and hence can be assigned eagerly.\n *\n * NOTE: Backwards compatibility with ViewEngine.\n */\n isStatic = 0b0010,\n\n /**\n * If the `QueryList` should fire change event only if actual change to query was computed (vs old\n * behavior where the change was fired whenever the query was recomputed, even if the recomputed\n * query resulted in the same list.)\n */\n emitDistinctChangesOnly = 0b0100,\n}\n\n/**\n * Translates query flags into `TQueryFlags` type in packages/core/src/render3/interfaces/query.ts\n * @param query\n */\nfunction toQueryFlags(query: R3QueryMetadata): number {\n return (query.descendants ? QueryFlags.descendants : QueryFlags.none) |\n (query.static ? QueryFlags.isStatic : QueryFlags.none) |\n (query.emitDistinctChangesOnly ? QueryFlags.emitDistinctChangesOnly : QueryFlags.none);\n}\n\nfunction convertAttributesToExpressions(attributes: {[name: string]: o.Expression}):\n o.Expression[] {\n const values: o.Expression[] = [];\n for (let key of Object.getOwnPropertyNames(attributes)) {\n const value = attributes[key];\n values.push(o.literal(key), value);\n }\n return values;\n}\n\n// Define and update any content queries\nfunction createContentQueriesFunction(\n queries: R3QueryMetadata[], constantPool: ConstantPool, name?: string): o.Expression {\n const createStatements: o.Statement[] = [];\n const updateStatements: o.Statement[] = [];\n const tempAllocator = temporaryAllocator(updateStatements, TEMPORARY_NAME);\n\n for (const query of queries) {\n // creation, e.g. r3.contentQuery(dirIndex, somePredicate, true, null);\n createStatements.push(\n o.importExpr(R3.contentQuery)\n .callFn([o.variable('dirIndex'), ...prepareQueryParams(query, constantPool) as any])\n .toStmt());\n\n // update, e.g. (r3.queryRefresh(tmp = r3.loadQuery()) && (ctx.someDir = tmp));\n const temporary = tempAllocator();\n const getQueryList = o.importExpr(R3.loadQuery).callFn([]);\n const refresh = o.importExpr(R3.queryRefresh).callFn([temporary.set(getQueryList)]);\n const updateDirective = o.variable(CONTEXT_NAME)\n .prop(query.propertyName)\n .set(query.first ? temporary.prop('first') : temporary);\n updateStatements.push(refresh.and(updateDirective).toStmt());\n }\n\n const contentQueriesFnName = name ? `${name}_ContentQueries` : null;\n return o.fn(\n [\n new o.FnParam(RENDER_FLAGS, o.NUMBER_TYPE), new o.FnParam(CONTEXT_NAME, null),\n new o.FnParam('dirIndex', null)\n ],\n [\n renderFlagCheckIfStmt(core.RenderFlags.Create, createStatements),\n renderFlagCheckIfStmt(core.RenderFlags.Update, updateStatements)\n ],\n o.INFERRED_TYPE, null, contentQueriesFnName);\n}\n\nfunction stringAsType(str: string): o.Type {\n return o.expressionType(o.literal(str));\n}\n\nfunction stringMapAsLiteralExpression(map: {[key: string]: string|string[]}): o.LiteralMapExpr {\n const mapValues = Object.keys(map).map(key => {\n const value = Array.isArray(map[key]) ? map[key][0] : map[key];\n return {\n key,\n value: o.literal(value),\n quoted: true,\n };\n });\n\n return o.literalMap(mapValues);\n}\n\nfunction stringArrayAsType(arr: ReadonlyArray<string|null>): o.Type {\n return arr.length > 0 ? o.expressionType(o.literalArr(arr.map(value => o.literal(value)))) :\n o.NONE_TYPE;\n}\n\nfunction createBaseDirectiveTypeParams(meta: R3DirectiveMetadata): o.Type[] {\n // On the type side, remove newlines from the selector as it will need to fit into a TypeScript\n // string literal, which must be on one line.\n const selectorForType = meta.selector !== null ? meta.selector.replace(/\\n/g, '') : null;\n\n return [\n typeWithParameters(meta.type.type, meta.typeArgumentCount),\n selectorForType !== null ? stringAsType(selectorForType) : o.NONE_TYPE,\n meta.exportAs !== null ? stringArrayAsType(meta.exportAs) : o.NONE_TYPE,\n o.expressionType(getInputsTypeExpression(meta)),\n o.expressionType(stringMapAsLiteralExpression(meta.outputs)),\n stringArrayAsType(meta.queries.map(q => q.propertyName)),\n ];\n}\n\nfunction getInputsTypeExpression(meta: R3DirectiveMetadata): o.Expression {\n return o.literalMap(Object.keys(meta.inputs).map(key => {\n const value = meta.inputs[key];\n const values = [\n {key: 'alias', value: o.literal(value.bindingPropertyName), quoted: true},\n {key: 'required', value: o.literal(value.required), quoted: true},\n ];\n\n // TODO(legacy-partial-output-inputs): Consider always emitting this information,\n // or leaving it as is.\n if (value.isSignal) {\n values.push({key: 'isSignal', value: o.literal(value.isSignal), quoted: true});\n }\n\n return {key, value: o.literalMap(values), quoted: true};\n }));\n}\n\n/**\n * Creates the type specification from the directive meta. This type is inserted into .d.ts files\n * to be consumed by upstream compilations.\n */\nexport function createDirectiveType(meta: R3DirectiveMetadata): o.Type {\n const typeParams = createBaseDirectiveTypeParams(meta);\n // Directives have no NgContentSelectors slot, but instead express a `never` type\n // so that future fields align.\n typeParams.push(o.NONE_TYPE);\n typeParams.push(o.expressionType(o.literal(meta.isStandalone)));\n typeParams.push(createHostDirectivesType(meta));\n // TODO(signals): Always include this metadata starting with v17. Right\n // now Angular v16.0.x does not support this field and library distributions\n // would then be incompatible with v16.0.x framework users.\n if (meta.isSignal) {\n typeParams.push(o.expressionType(o.literal(meta.isSignal)));\n }\n return o.expressionType(o.importExpr(R3.DirectiveDeclaration, typeParams));\n}\n\n// Define and update any view queries\nfunction createViewQueriesFunction(\n viewQueries: R3QueryMetadata[], constantPool: ConstantPool, name?: string): o.Expression {\n const createStatements: o.Statement[] = [];\n const updateStatements: o.Statement[] = [];\n const tempAllocator = temporaryAllocator(updateStatements, TEMPORARY_NAME);\n\n viewQueries.forEach((query: R3QueryMetadata) => {\n // creation, e.g. r3.viewQuery(somePredicate, true);\n const queryDefinition =\n o.importExpr(R3.viewQuery).callFn(prepareQueryParams(query, constantPool));\n createStatements.push(queryDefinition.toStmt());\n\n // update, e.g. (r3.queryRefresh(tmp = r3.loadQuery()) && (ctx.someDir = tmp));\n const temporary = tempAllocator();\n const getQueryList = o.importExpr(R3.loadQuery).callFn([]);\n const refresh = o.importExpr(R3.queryRefresh).callFn([temporary.set(getQueryList)]);\n const updateDirective = o.variable(CONTEXT_NAME)\n .prop(query.propertyName)\n .set(query.first ? temporary.prop('first') : temporary);\n updateStatements.push(refresh.and(updateDirective).toStmt());\n });\n\n const viewQueryFnName = name ? `${name}_Query` : null;\n return o.fn(\n [new o.FnParam(RENDER_FLAGS, o.NUMBER_TYPE), new o.FnParam(CONTEXT_NAME, null)],\n [\n renderFlagCheckIfStmt(core.RenderFlags.Create, createStatements),\n renderFlagCheckIfStmt(core.RenderFlags.Update, updateStatements)\n ],\n o.INFERRED_TYPE, null, viewQueryFnName);\n}\n\n// Return a host binding function or null if one is not necessary.\nfunction createHostBindingsFunction(\n hostBindingsMetadata: R3HostMetadata, typeSourceSpan: ParseSourceSpan,\n bindingParser: BindingParser, constantPool: ConstantPool, selector: string, name: string,\n definitionMap: DefinitionMap): o.Expression|null {\n const bindings =\n bindingParser.createBoundHostProperties(hostBindingsMetadata.properties, typeSourceSpan);\n\n // Calculate host event bindings\n const eventBindings =\n bindingParser.createDirectiveHostEventAsts(hostBindingsMetadata.listeners, typeSourceSpan);\n\n if (USE_TEMPLATE_PIPELINE) {\n // The parser for host bindings treats class and style attributes specially -- they are\n // extracted into these separate fields. This is not the case for templates, so the compiler can\n // actually already handle these special attributes internally. Therefore, we just drop them\n // into the attributes map.\n if (hostBindingsMetadata.specialAttributes.styleAttr) {\n hostBindingsMetadata.attributes['style'] =\n o.literal(hostBindingsMetadata.specialAttributes.styleAttr);\n }\n if (hostBindingsMetadata.specialAttributes.classAttr) {\n hostBindingsMetadata.attributes['class'] =\n o.literal(hostBindingsMetadata.specialAttributes.classAttr);\n }\n\n const hostJob = ingestHostBinding(\n {\n componentName: name,\n componentSelector: selector,\n properties: bindings,\n events: eventBindings,\n attributes: hostBindingsMetadata.attributes,\n },\n bindingParser, constantPool);\n transform(hostJob, CompilationJobKind.Host);\n\n definitionMap.set('hostAttrs', hostJob.root.attributes);\n\n const varCount = hostJob.root.vars;\n if (varCount !== null && varCount > 0) {\n definitionMap.set('hostVars', o.literal(varCount));\n }\n\n return emitHostBindingFunction(hostJob);\n }\n\n let bindingId = 0;\n const getNextBindingId = () => `${bindingId++}`;\n\n const bindingContext = o.variable(CONTEXT_NAME);\n const styleBuilder = new StylingBuilder(bindingContext);\n\n const {styleAttr, classAttr} = hostBindingsMetadata.specialAttributes;\n if (styleAttr !== undefined) {\n styleBuilder.registerStyleAttr(styleAttr);\n }\n if (classAttr !== undefined) {\n styleBuilder.registerClassAttr(classAttr);\n }\n\n const createInstructions: Instruction[] = [];\n const updateInstructions: Instruction[] = [];\n const updateVariables: o.Statement[] = [];\n\n const hostBindingSourceSpan = typeSourceSpan;\n if (eventBindings && eventBindings.length) {\n createInstructions.push(...createHostListeners(eventBindings, name));\n }\n\n // Calculate the host property bindings\n const allOtherBindings: ParsedProperty[] = [];\n\n // We need to calculate the total amount of binding slots required by\n // all the instructions together before any value conversions happen.\n // Value conversions may require additional slots for interpolation and\n // bindings with pipes. These calculates happen after this block.\n let totalHostVarsCount = 0;\n bindings && bindings.forEach((binding: ParsedProperty) => {\n const stylingInputWasSet = styleBuilder.registerInputBasedOnName(\n binding.name, binding.expression, hostBindingSourceSpan);\n if (stylingInputWasSet) {\n totalHostVarsCount += MIN_STYLING_BINDING_SLOTS_REQUIRED;\n } else {\n allOtherBindings.push(binding);\n totalHostVarsCount++;\n }\n });\n\n let valueConverter: ValueConverter;\n const getValueConverter = () => {\n if (!valueConverter) {\n const hostVarsCountFn = (numSlots: number): number => {\n const originalVarsCount = totalHostVarsCount;\n totalHostVarsCount += numSlots;\n return originalVarsCount;\n };\n valueConverter = new ValueConverter(\n constantPool,\n () => error('Unexpected node'), // new nodes are illegal here\n hostVarsCountFn,\n () => error('Unexpected pipe')); // pipes are illegal here\n }\n return valueConverter;\n };\n\n const propertyBindings: o.Expression[][] = [];\n const attributeBindings: o.Expression[][] = [];\n const syntheticHostBindings: o.Expression[][] = [];\n\n for (const binding of allOtherBindings) {\n // resolve literal arrays and literal objects\n const value = binding.expression.visit(getValueConverter());\n const bindingExpr = bindingFn(bindingContext, value, getNextBindingId);\n\n const {bindingName, instruction, isAttribute} = getBindingNameAndInstruction(binding);\n\n const securityContexts =\n bindingParser.calcPossibleSecurityContexts(selector, bindingName, isAttribute)\n .filter(context => context !== core.SecurityContext.NONE);\n\n let sanitizerFn: o.ExternalExpr|null = null;\n if (securityContexts.length) {\n if (securityContexts.length === 2 &&\n securityContexts.indexOf(core.SecurityContext.URL) > -1 &&\n securityContexts.indexOf(core.SecurityContext.RESOURCE_URL) > -1) {\n // Special case for some URL attributes (such as \"src\" and \"href\") that may be a part\n // of different security contexts. In this case we use special sanitization function and\n // select the actual sanitizer at runtime based on a tag name that is provided while\n // invoking sanitization function.\n sanitizerFn = o.importExpr(R3.sanitizeUrlOrResourceUrl);\n } else {\n sanitizerFn = resolveSanitizationFn(securityContexts[0], isAttribute);\n }\n }\n const instructionParams = [o.literal(bindingName), bindingExpr.currValExpr];\n if (sanitizerFn) {\n instructionParams.push(sanitizerFn);\n } else {\n // If there was no sanitization function found based on the security context\n // of an attribute/property binding - check whether this attribute/property is\n // one of the security-sensitive <iframe> attributes.\n // Note: for host bindings defined on a directive, we do not try to find all\n // possible places where it can be matched, so we can not determine whether\n // the host element is an <iframe>. In this case, if an attribute/binding\n // name is in the `IFRAME_SECURITY_SENSITIVE_ATTRS` set - append a validation\n // function, which would be invoked at runtime and would have access to the\n // underlying DOM element, check if it's an <iframe> and if so - runs extra checks.\n if (isIframeSecuritySensitiveAttr(bindingName)) {\n instructionParams.push(o.importExpr(R3.validateIframeAttribute));\n }\n }\n\n updateVariables.push(...bindingExpr.stmts);\n\n if (instruction === R3.hostProperty) {\n propertyBindings.push(instructionParams);\n } else if (instruction === R3.attribute) {\n attributeBindings.push(instructionParams);\n } else if (instruction === R3.syntheticHostProperty) {\n syntheticHostBindings.push(instructionParams);\n } else {\n updateInstructions.push({reference: instruction, paramsOrFn: instructionParams, span: null});\n }\n }\n\n for (const bindingParams of propertyBindings) {\n updateInstructions.push({reference: R3.hostProperty, paramsOrFn: bindingParams, span: null});\n }\n\n for (const bindingParams of attributeBindings) {\n updateInstructions.push({reference: R3.attribute, paramsOrFn: bindingParams, span: null});\n }\n\n for (const bindingParams of syntheticHostBindings) {\n updateInstructions.push(\n {reference: R3.syntheticHostProperty, paramsOrFn: bindingParams, span: null});\n }\n\n // since we're dealing with directives/components and both have hostBinding\n // functions, we need to generate a special hostAttrs instruction that deals\n // with both the assignment of styling as well as static attributes to the host\n // element. The instruction below will instruct all initial styling (styling\n // that is inside of a host binding within a directive/component) to be attached\n // to the host element alongside any of the provided host attributes that were\n // collected earlier.\n const hostAttrs = convertAttributesToExpressions(hostBindingsMetadata.attributes);\n styleBuilder.assignHostAttrs(hostAttrs, definitionMap);\n\n if (styleBuilder.hasBindings) {\n // finally each binding that was registered in the statement above will need to be added to\n // the update block of a component/directive templateFn/hostBindingsFn so that the bindings\n // are evaluated and updated for the element.\n styleBuilder.buildUpdateLevelInstructions(getValueConverter()).forEach(instruction => {\n for (const call of instruction.calls) {\n // we subtract a value of `1` here because the binding slot was already allocated\n // at the top of this method when all the input bindings were counted.\n totalHostVarsCount +=\n Math.max(call.allocateBindingSlots - MIN_STYLING_BINDING_SLOTS_REQUIRED, 0);\n\n const {params, stmts} =\n convertStylingCall(call, bindingContext, bindingFn, getNextBindingId);\n updateVariables.push(...stmts);\n updateInstructions.push({\n reference: instruction.reference,\n paramsOrFn: params,\n span: null,\n });\n }\n });\n }\n\n if (totalHostVarsCount) {\n definitionMap.set('hostVars', o.literal(totalHostVarsCount));\n }\n\n if (createInstructions.length > 0 || updateInstructions.length > 0) {\n const hostBindingsFnName = name ? `${name}_HostBindings` : null;\n const statements: o.Statement[] = [];\n if (createInstructions.length > 0) {\n statements.push(renderFlagCheckIfStmt(\n core.RenderFlags.Create, getInstructionStatements(createInstructions)));\n }\n if (updateInstructions.length > 0) {\n statements.push(renderFlagCheckIfStmt(\n core.RenderFlags.Update,\n updateVariables.concat(getInstructionStatements(updateInstructions))));\n }\n return o.fn(\n [new o.FnParam(RENDER_FLAGS, o.NUMBER_TYPE), new o.FnParam(CONTEXT_NAME, null)], statements,\n o.INFERRED_TYPE, null, hostBindingsFnName);\n }\n\n return null;\n}\n\nfunction bindingFn(implicit: any, value: AST, getNextBindingIdFn: () => string) {\n return convertPropertyBinding(null, implicit, value, getNextBindingIdFn());\n}\n\nfunction convertStylingCall(\n call: StylingInstructionCall, bindingContext: any, bindingFn: Function,\n getNextBindingIdFn: () => string) {\n const stmts: o.Statement[] = [];\n const params = call.params(value => {\n const result = bindingFn(bindingContext, value, getNextBindingIdFn);\n if (Array.isArray(result.stmts) && result.stmts.length > 0) {\n stmts.push(...result.stmts);\n }\n return result.currValExpr;\n });\n return {params, stmts};\n}\n\nfunction getBindingNameAndInstruction(binding: ParsedProperty):\n {bindingName: string, instruction: o.ExternalReference, isAttribute: boolean} {\n let bindingName = binding.name;\n let instruction!: o.ExternalReference;\n\n // Check to see if this is an attr binding or a property binding\n const attrMatches = bindingName.match(ATTR_REGEX);\n if (attrMatches) {\n bindingName = attrMatches[1];\n instruction = R3.attribute;\n } else {\n if (binding.isAnimation) {\n bindingName = prepareSyntheticPropertyName(bindingName);\n // host bindings that have a synthetic property (e.g. @foo) should always be rendered\n // in the context of the component and not the parent. Therefore there is a special\n // compatibility instruction available for this purpose.\n instruction = R3.syntheticHostProperty;\n } else {\n instruction = R3.hostProperty;\n }\n }\n\n return {bindingName, instruction, isAttribute: !!attrMatches};\n}\n\nfunction createHostListeners(eventBindings: ParsedEvent[], name?: string): Instruction[] {\n const listenerParams: o.Expression[][] = [];\n const syntheticListenerParams: o.Expression[][] = [];\n const instructions: Instruction[] = [];\n\n for (const binding of eventBindings) {\n let bindingName = binding.name && sanitizeIdentifier(binding.name);\n const bindingFnName = binding.type === ParsedEventType.Animation ?\n prepareSyntheticListenerFunctionName(bindingName, binding.targetOrPhase) :\n bindingName;\n const handlerName = name && bindingName ? `${name}_${bindingFnName}_HostBindingHandler` : null;\n const params = prepareEventListenerParameters(BoundEvent.fromParsedEvent(binding), handlerName);\n\n if (binding.type == ParsedEventType.Animation) {\n syntheticListenerParams.push(params);\n } else {\n listenerParams.push(params);\n }\n }\n\n for (const params of syntheticListenerParams) {\n instructions.push({reference: R3.syntheticHostListener, paramsOrFn: params, span: null});\n }\n\n for (const params of listenerParams) {\n instructions.push({reference: R3.listener, paramsOrFn: params, span: null});\n }\n\n return instructions;\n}\n\n\nconst HOST_REG_EXP = /^(?:\\[([^\\]]+)\\])|(?:\\(([^\\)]+)\\))$/;\n// Represents the groups in the above regex.\nconst enum HostBindingGroup {\n // group 1: \"prop\" from \"[prop]\", or \"attr.role\" from \"[attr.role]\", or @anim from [@anim]\n Binding = 1,\n\n // group 2: \"event\" from \"(event)\"\n Event = 2,\n}\n\n// Defines Host Bindings structure that contains attributes, listeners, and properties,\n// parsed from the `host` object defined for a Type.\nexport interface ParsedHostBindings {\n attributes: {[key: string]: o.Expression};\n listeners: {[key: string]: string};\n properties: {[key: string]: string};\n specialAttributes: {styleAttr?: string; classAttr?: string;};\n}\n\nexport function parseHostBindings(host: {[key: string]: string|o.Expression}): ParsedHostBindings {\n const attributes: {[key: string]: o.Expression} = {};\n const listeners: {[key: string]: string} = {};\n const properties: {[key: string]: string} = {};\n const specialAttributes: {styleAttr?: string; classAttr?: string;} = {};\n\n for (const key of Object.keys(host)) {\n const value = host[key];\n const matches = key.match(HOST_REG_EXP);\n\n if (matches === null) {\n switch (key) {\n case 'class':\n if (typeof value !== 'string') {\n // TODO(alxhub): make this a diagnostic.\n throw new Error(`Class binding must be string`);\n }\n specialAttributes.classAttr = value;\n break;\n case 'style':\n if (typeof value !== 'string') {\n // TODO(alxhub): make this a diagnostic.\n throw new Error(`Style binding must be string`);\n }\n specialAttributes.styleAttr = value;\n break;\n default:\n if (typeof value === 'string') {\n attributes[key] = o.literal(value);\n } else {\n attributes[key] = value;\n }\n }\n } else if (matches[HostBindingGroup.Binding] != null) {\n if (typeof value !== 'string') {\n // TODO(alxhub): make this a diagnostic.\n throw new Error(`Property binding must be string`);\n }\n // synthetic properties (the ones that have a `@` as a prefix)\n // are still treated the same as regular properties. Therefore\n // there is no point in storing them in a separate map.\n properties[matches[HostBindingGroup.Binding]] = value;\n } else if (matches[HostBindingGroup.Event] != null) {\n if (typeof value !== 'string') {\n // TODO(alxhub): make this a diagnostic.\n throw new Error(`Event binding must be string`);\n }\n listeners[matches[HostBindingGroup.Event]] = value;\n }\n }\n\n return {attributes, listeners, properties, specialAttributes};\n}\n\n/**\n * Verifies host bindings and returns the list of errors (if any). Empty array indicates that a\n * given set of host bindings has no errors.\n *\n * @param bindings set of host bindings to verify.\n * @param sourceSpan source span where host bindings were defined.\n * @returns array of errors associated with a given set of host bindings.\n */\nexport function verifyHostBindings(\n bindings: ParsedHostBindings, sourceSpan: ParseSourceSpan): ParseError[] {\n // TODO: abstract out host bindings verification logic and use it instead of\n // creating events and properties ASTs to detect errors (FW-996)\n const bindingParser = makeBindingParser();\n bindingParser.createDirectiveHostEventAsts(bindings.listeners, sourceSpan);\n bindingParser.createBoundHostProperties(bindings.properties, sourceSpan);\n return bindingParser.errors;\n}\n\nfunction compileStyles(styles: string[], selector: string, hostSelector: string): string[] {\n const shadowCss = new ShadowCss();\n return styles.map(style => {\n return shadowCss!.shimCssText(style, selector, hostSelector);\n });\n}\n\n/**\n * Encapsulates a CSS stylesheet with emulated view encapsulation.\n * This allows a stylesheet to be used with an Angular component that\n * is using the `ViewEncapsulation.Emulated` mode.\n *\n * @param style The content of a CSS stylesheet.\n * @returns The encapsulated content for the style.\n */\nexport function encapsulateStyle(style: string): string {\n const shadowCss = new ShadowCss();\n return shadowCss.shimCssText(style, CONTENT_ATTR, HOST_ATTR);\n}\n\nfunction createHostDirectivesType(meta: R3DirectiveMetadata): o.Type {\n if (!meta.hostDirectives?.length) {\n return o.NONE_TYPE;\n }\n\n return o.expressionType(o.literalArr(meta.hostDirectives.map(hostMeta => o.literalMap([\n {key: 'directive', value: o.typeofExpr(hostMeta.directive.type), quoted: false},\n {key: 'inputs', value: stringMapAsLiteralExpression(hostMeta.inputs || {}), quoted: false},\n {key: 'outputs', value: stringMapAsLiteralExpression(hostMeta.outputs || {}), quoted: false},\n ]))));\n}\n\nfunction createHostDirectivesFeatureArg(\n hostDirectives: NonNullable<R3DirectiveMetadata['hostDirectives']>): o.Expression {\n const expressions: o.Expression[] = [];\n let hasForwardRef = false;\n\n for (const current of hostDirectives) {\n // Use a shorthand if there are no inputs or outputs.\n if (!current.inputs && !current.outputs) {\n expressions.push(current.directive.type);\n } else {\n const keys = [{key: 'directive', value: current.directive.type, quoted: false}];\n\n if (current.inputs) {\n const inputsLiteral = createHostDirectivesMappingArray(current.inputs);\n if (inputsLiteral) {\n keys.push({key: 'inputs', value: inputsLiteral, quoted: false});\n }\n }\n\n if (current.outputs) {\n const outputsLiteral = createHostDirectivesMappingArray(current.outputs);\n if (outputsLiteral) {\n keys.push({key: 'outputs', value: outputsLiteral, quoted: false});\n }\n }\n\n expressions.push(o.literalMap(keys));\n }\n\n if (current.isForwardReference) {\n hasForwardRef = true;\n }\n }\n\n // If there's a forward reference, we generate a `function() { return [HostDir] }`,\n // otherwise we can save some bytes by using a plain array, e.g. `[HostDir]`.\n return hasForwardRef ?\n new o.FunctionExpr([], [new o.ReturnStatement(o.literalArr(expressions))]) :\n o.literalArr(expressions);\n}\n\n/**\n * Converts an input/output mapping object literal into an array where the even keys are the\n * public name of the binding and the odd ones are the name it was aliased to. E.g.\n * `{inputOne: 'aliasOne', inputTwo: 'aliasTwo'}` will become\n * `['inputOne', 'aliasOne', 'inputTwo', 'aliasTwo']`.\n *\n * This conversion is necessary, because hosts bind to the public name of the host directive and\n * keeping the mapping in an object literal will break for apps using property renaming.\n */\nexport function createHostDirectivesMappingArray(mapping: Record<string, string>):\n o.LiteralArrayExpr|null {\n const elements: o.LiteralExpr[] = [];\n\n for (const publicName in mapping) {\n if (mapping.hasOwnProperty(publicName)) {\n elements.push(o.literal(publicName), o.literal(mapping[publicName]));\n }\n }\n\n return elements.length > 0 ? o.literalArr(elements) : null;\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {AST, BindingPipe, ImplicitReceiver, PropertyRead, PropertyWrite, RecursiveAstVisitor, SafePropertyRead} from '../../expression_parser/ast';\nimport {SelectorMatcher} from '../../selector';\nimport {BoundAttribute, BoundEvent, BoundText, Comment, Content, DeferredBlock, DeferredBlockError, DeferredBlockLoading, DeferredBlockPlaceholder, DeferredTrigger, Element, ForLoopBlock, ForLoopBlockEmpty, HoverDeferredTrigger, Icu, IfBlock, IfBlockBranch, InteractionDeferredTrigger, Node, Reference, SwitchBlock, SwitchBlockCase, Template, Text, TextAttribute, UnknownBlock, Variable, ViewportDeferredTrigger, Visitor} from '../r3_ast';\n\nimport {BoundTarget, DirectiveMeta, ReferenceTarget, ScopedNode, Target, TargetBinder} from './t2_api';\nimport {createCssSelectorFromNode} from './util';\n\n/**\n * Processes `Target`s with a given set of directives and performs a binding operation, which\n * returns an object similar to TypeScript's `ts.TypeChecker` that contains knowledge about the\n * target.\n */\nexport class R3TargetBinder<DirectiveT extends DirectiveMeta> implements TargetBinder<DirectiveT> {\n constructor(private directiveMatcher: SelectorMatcher<DirectiveT[]>) {}\n\n /**\n * Perform a binding operation on the given `Target` and return a `BoundTarget` which contains\n * metadata about the types referenced in the template.\n */\n bind(target: Target): BoundTarget<DirectiveT> {\n if (!target.template) {\n // TODO(alxhub): handle targets which contain things like HostBindings, etc.\n throw new Error('Binding without a template not yet supported');\n }\n\n // First, parse the template into a `Scope` structure. This operation captures the syntactic\n // scopes in the template and makes them available for later use.\n const scope = Scope.apply(target.template);\n\n // Use the `Scope` to extract the entities present at every level of the template.\n const scopedNodeEntities = extractScopedNodeEntities(scope);\n\n // Next, perform directive matching on the template using the `DirectiveBinder`. This returns:\n // - directives: Map of nodes (elements & ng-templates) to the directives on them.\n // - bindings: Map of inputs, outputs, and attributes to the directive/element that claims\n // them. TODO(alxhub): handle multiple directives claiming an input/output/etc.\n // - references: Map of #references to their targets.\n const {directives, eagerDirectives, bindings, references} =\n DirectiveBinder.apply(target.template, this.directiveMatcher);\n // Finally, run the TemplateBinder to bind references, variables, and other entities within the\n // template. This extracts all the metadata that doesn't depend on directive matching.\n const {expressions, symbols, nestingLevel, usedPipes, eagerPipes, deferBlocks} =\n TemplateBinder.applyWithScope(target.template, scope);\n return new R3BoundTarget(\n target, directives, eagerDirectives, bindings, references, expressions, symbols,\n nestingLevel, scopedNodeEntities, usedPipes, eagerPipes, deferBlocks, scope);\n }\n}\n\n/**\n * Represents a binding scope within a template.\n *\n * Any variables, references, or other named entities declared within the template will\n * be captured and available by name in `namedEntities`. Additionally, child templates will\n * be analyzed and have their child `Scope`s available in `childScopes`.\n */\nclass Scope implements Visitor {\n /**\n * Named members of the `Scope`, such as `Reference`s or `Variable`s.\n */\n readonly namedEntities = new Map<string, Reference|Variable>();\n\n /**\n * Set of elements that belong to this scope.\n */\n readonly elementsInScope = new Set<Element>();\n\n /**\n * Child `Scope`s for immediately nested `ScopedNode`s.\n */\n readonly childScopes = new Map<ScopedNode, Scope>();\n\n /** Whether this scope is deferred or if any of its ancestors are deferred. */\n readonly isDeferred: boolean;\n\n private constructor(readonly parentScope: Scope|null, readonly rootNode: ScopedNode|null) {\n this.isDeferred =\n parentScope !== null && parentScope.isDeferred ? true : rootNode instanceof DeferredBlock;\n }\n\n static newRootScope(): Scope {\n return new Scope(null, null);\n }\n\n /**\n * Process a template (either as a `Template` sub-template with variables, or a plain array of\n * template `Node`s) and construct its `Scope`.\n */\n static apply(template: Node[]): Scope {\n const scope = Scope.newRootScope();\n scope.ingest(template);\n return scope;\n }\n\n /**\n * Internal method to process the scoped node and populate the `Scope`.\n */\n private ingest(nodeOrNodes: ScopedNode|Node[]): void {\n if (nodeOrNodes instanceof Template) {\n // Variables on an <ng-template> are defined in the inner scope.\n nodeOrNodes.variables.forEach(node => this.visitVariable(node));\n\n // Process the nodes of the template.\n nodeOrNodes.children.forEach(node => node.visit(this));\n } else if (nodeOrNodes instanceof IfBlockBranch) {\n if (nodeOrNodes.expressionAlias !== null) {\n this.visitVariable(nodeOrNodes.expressionAlias);\n }\n nodeOrNodes.children.forEach(node => node.visit(this));\n } else if (nodeOrNodes instanceof ForLoopBlock) {\n this.visitVariable(nodeOrNodes.item);\n Object.values(nodeOrNodes.contextVariables).forEach(v => this.visitVariable(v));\n nodeOrNodes.children.forEach(node => node.visit(this));\n } else if (\n nodeOrNodes instanceof SwitchBlockCase || nodeOrNodes instanceof ForLoopBlockEmpty ||\n nodeOrNodes instanceof DeferredBlock || nodeOrNodes instanceof DeferredBlockError ||\n nodeOrNodes instanceof DeferredBlockPlaceholder ||\n nodeOrNodes instanceof DeferredBlockLoading) {\n nodeOrNodes.children.forEach(node => node.visit(this));\n } else {\n // No overarching `Template` instance, so process the nodes directly.\n nodeOrNodes.forEach(node => node.visit(this));\n }\n }\n\n visitElement(element: Element) {\n // `Element`s in the template may have `Reference`s which are captured in the scope.\n element.references.forEach(node => this.visitReference(node));\n\n // Recurse into the `Element`'s children.\n element.children.forEach(node => node.visit(this));\n\n this.elementsInScope.add(element);\n }\n\n visitTemplate(template: Template) {\n // References on a <ng-template> are defined in the outer scope, so capture them before\n // processing the template's child scope.\n template.references.forEach(node => this.visitReference(node));\n\n // Next, create an inner scope and process the template within it.\n this.ingestScopedNode(template);\n }\n\n visitVariable(variable: Variable) {\n // Declare the variable if it's not already.\n this.maybeDeclare(variable);\n }\n\n visitReference(reference: Reference) {\n // Declare the variable if it's not already.\n this.maybeDeclare(reference);\n }\n\n visitDeferredBlock(deferred: DeferredBlock) {\n this.ingestScopedNode(deferred);\n deferred.placeholder?.visit(this);\n deferred.loading?.visit(this);\n deferred.error?.visit(this);\n }\n\n visitDeferredBlockPlaceholder(block: DeferredBlockPlaceholder) {\n this.ingestScopedNode(block);\n }\n\n visitDeferredBlockError(block: DeferredBlockError) {\n this.ingestScopedNode(block);\n }\n\n visitDeferredBlockLoading(block: DeferredBlockLoading) {\n this.ingestScopedNode(block);\n }\n\n visitSwitchBlock(block: SwitchBlock) {\n block.cases.forEach(node => node.visit(this));\n }\n\n visitSwitchBlockCase(block: SwitchBlockCase) {\n this.ingestScopedNode(block);\n }\n\n visitForLoopBlock(block: ForLoopBlock) {\n this.ingestScopedNode(block);\n block.empty?.visit(this);\n }\n\n visitForLoopBlockEmpty(block: ForLoopBlockEmpty) {\n this.ingestScopedNode(block);\n }\n\n visitIfBlock(block: IfBlock) {\n block.branches.forEach(node => node.visit(this));\n }\n\n visitIfBlockBranch(block: IfBlockBranch) {\n this.ingestScopedNode(block);\n }\n\n // Unused visitors.\n visitContent(content: Content) {}\n visitBoundAttribute(attr: BoundAttribute) {}\n visitBoundEvent(event: BoundEvent) {}\n visitBoundText(text: BoundText) {}\n visitText(text: Text) {}\n visitTextAttribute(attr: TextAttribute) {}\n visitIcu(icu: Icu) {}\n visitDeferredTrigger(trigger: DeferredTrigger) {}\n visitUnknownBlock(block: UnknownBlock) {}\n\n private maybeDeclare(thing: Reference|Variable) {\n // Declare something with a name, as long as that name isn't taken.\n if (!this.namedEntities.has(thing.name)) {\n this.namedEntities.set(thing.name, thing);\n }\n }\n\n /**\n * Look up a variable within this `Scope`.\n *\n * This can recurse into a parent `Scope` if it's available.\n */\n lookup(name: string): Reference|Variable|null {\n if (this.namedEntities.has(name)) {\n // Found in the local scope.\n return this.namedEntities.get(name)!;\n } else if (this.parentScope !== null) {\n // Not in the local scope, but there's a parent scope so check there.\n return this.parentScope.lookup(name);\n } else {\n // At the top level and it wasn't found.\n return null;\n }\n }\n\n /**\n * Get the child scope for a `ScopedNode`.\n *\n * This should always be defined.\n */\n getChildScope(node: ScopedNode): Scope {\n const res = this.childScopes.get(node);\n if (res === undefined) {\n throw new Error(`Assertion error: child scope for ${node} not found`);\n }\n return res;\n }\n\n private ingestScopedNode(node: ScopedNode) {\n const scope = new Scope(this, node);\n scope.ingest(node);\n this.childScopes.set(node, scope);\n }\n}\n\n/**\n * Processes a template and matches directives on nodes (elements and templates).\n *\n * Usually used via the static `apply()` method.\n */\nclass DirectiveBinder<DirectiveT extends DirectiveMeta> implements Visitor {\n // Indicates whether we are visiting elements within a `defer` block\n private isInDeferBlock = false;\n\n private constructor(\n private matcher: SelectorMatcher<DirectiveT[]>,\n private directives: Map<Element|Template, DirectiveT[]>,\n private eagerDirectives: DirectiveT[],\n private bindings: Map<BoundAttribute|BoundEvent|TextAttribute, DirectiveT|Element|Template>,\n private references:\n Map<Reference, {directive: DirectiveT, node: Element|Template}|Element|Template>) {}\n\n /**\n * Process a template (list of `Node`s) and perform directive matching against each node.\n *\n * @param template the list of template `Node`s to match (recursively).\n * @param selectorMatcher a `SelectorMatcher` containing the directives that are in scope for\n * this template.\n * @returns three maps which contain information about directives in the template: the\n * `directives` map which lists directives matched on each node, the `bindings` map which\n * indicates which directives claimed which bindings (inputs, outputs, etc), and the `references`\n * map which resolves #references (`Reference`s) within the template to the named directive or\n * template node.\n */\n static apply<DirectiveT extends DirectiveMeta>(\n template: Node[], selectorMatcher: SelectorMatcher<DirectiveT[]>): {\n directives: Map<Element|Template, DirectiveT[]>,\n eagerDirectives: DirectiveT[],\n bindings: Map<BoundAttribute|BoundEvent|TextAttribute, DirectiveT|Element|Template>,\n references: Map<Reference, {directive: DirectiveT, node: Element|Template}|Element|Template>,\n } {\n const directives = new Map<Element|Template, DirectiveT[]>();\n const bindings =\n new Map<BoundAttribute|BoundEvent|TextAttribute, DirectiveT|Element|Template>();\n const references =\n new Map<Reference, {directive: DirectiveT, node: Element | Template}|Element|Template>();\n const eagerDirectives: DirectiveT[] = [];\n const matcher =\n new DirectiveBinder(selectorMatcher, directives, eagerDirectives, bindings, references);\n matcher.ingest(template);\n return {directives, eagerDirectives, bindings, references};\n }\n\n private ingest(template: Node[]): void {\n template.forEach(node => node.visit(this));\n }\n\n visitElement(element: Element): void {\n this.visitElementOrTemplate(element);\n }\n\n visitTemplate(template: Template): void {\n this.visitElementOrTemplate(template);\n }\n\n visitElementOrTemplate(node: Element|Template): void {\n // First, determine the HTML shape of the node for the purpose of directive matching.\n // Do this by building up a `CssSelector` for the node.\n const cssSelector = createCssSelectorFromNode(node);\n\n // Next, use the `SelectorMatcher` to get the list of directives on the node.\n const directives: DirectiveT[] = [];\n this.matcher.match(cssSelector, (_selector, results) => directives.push(...results));\n if (directives.length > 0) {\n this.directives.set(node, directives);\n if (!this.isInDeferBlock) {\n this.eagerDirectives.push(...directives);\n }\n }\n\n // Resolve any references that are created on this node.\n node.references.forEach(ref => {\n let dirTarget: DirectiveT|null = null;\n\n // If the reference expression is empty, then it matches the \"primary\" directive on the node\n // (if there is one). Otherwise it matches the host node itself (either an element or\n // <ng-template> node).\n if (ref.value.trim() === '') {\n // This could be a reference to a component if there is one.\n dirTarget = directives.find(dir => dir.isComponent) || null;\n } else {\n // This should be a reference to a directive exported via exportAs.\n dirTarget =\n directives.find(\n dir => dir.exportAs !== null && dir.exportAs.some(value => value === ref.value)) ||\n null;\n // Check if a matching directive was found.\n if (dirTarget === null) {\n // No matching directive was found - this reference points to an unknown target. Leave it\n // unmapped.\n return;\n }\n }\n\n if (dirTarget !== null) {\n // This reference points to a directive.\n this.references.set(ref, {directive: dirTarget, node});\n } else {\n // This reference points to the node itself.\n this.references.set(ref, node);\n }\n });\n\n // Associate attributes/bindings on the node with directives or with the node itself.\n type BoundNode = BoundAttribute|BoundEvent|TextAttribute;\n const setAttributeBinding =\n (attribute: BoundNode, ioType: keyof Pick<DirectiveMeta, 'inputs'|'outputs'>) => {\n const dir = directives.find(dir => dir[ioType].hasBindingPropertyName(attribute.name));\n const binding = dir !== undefined ? dir : node;\n this.bindings.set(attribute, binding);\n };\n\n // Node inputs (bound attributes) and text attributes can be bound to an\n // input on a directive.\n node.inputs.forEach(input => setAttributeBinding(input, 'inputs'));\n node.attributes.forEach(attr => setAttributeBinding(attr, 'inputs'));\n if (node instanceof Template) {\n node.templateAttrs.forEach(attr => setAttributeBinding(attr, 'inputs'));\n }\n // Node outputs (bound events) can be bound to an output on a directive.\n node.outputs.forEach(output => setAttributeBinding(output, 'outputs'));\n\n // Recurse into the node's children.\n node.children.forEach(child => child.visit(this));\n }\n\n visitDeferredBlock(deferred: DeferredBlock): void {\n const wasInDeferBlock = this.isInDeferBlock;\n this.isInDeferBlock = true;\n deferred.children.forEach(child => child.visit(this));\n this.isInDeferBlock = wasInDeferBlock;\n\n deferred.placeholder?.visit(this);\n deferred.loading?.visit(this);\n deferred.error?.visit(this);\n }\n\n visitDeferredBlockPlaceholder(block: DeferredBlockPlaceholder): void {\n block.children.forEach(child => child.visit(this));\n }\n\n visitDeferredBlockError(block: DeferredBlockError): void {\n block.children.forEach(child => child.visit(this));\n }\n\n visitDeferredBlockLoading(block: DeferredBlockLoading): void {\n block.children.forEach(child => child.visit(this));\n }\n\n visitSwitchBlock(block: SwitchBlock) {\n block.cases.forEach(node => node.visit(this));\n }\n\n visitSwitchBlockCase(block: SwitchBlockCase) {\n block.children.forEach(node => node.visit(this));\n }\n\n visitForLoopBlock(block: ForLoopBlock) {\n block.item.visit(this);\n Object.values(block.contextVariables).forEach(v => v.visit(this));\n block.children.forEach(node => node.visit(this));\n block.empty?.visit(this);\n }\n\n visitForLoopBlockEmpty(block: ForLoopBlockEmpty) {\n block.children.forEach(node => node.visit(this));\n }\n\n visitIfBlock(block: IfBlock) {\n block.branches.forEach(node => node.visit(this));\n }\n\n visitIfBlockBranch(block: IfBlockBranch) {\n block.expressionAlias?.visit(this);\n block.children.forEach(node => node.visit(this));\n }\n\n // Unused visitors.\n visitContent(content: Content): void {}\n visitVariable(variable: Variable): void {}\n visitReference(reference: Reference): void {}\n visitTextAttribute(attribute: TextAttribute): void {}\n visitBoundAttribute(attribute: BoundAttribute): void {}\n visitBoundEvent(attribute: BoundEvent): void {}\n visitBoundAttributeOrEvent(node: BoundAttribute|BoundEvent) {}\n visitText(text: Text): void {}\n visitBoundText(text: BoundText): void {}\n visitIcu(icu: Icu): void {}\n visitDeferredTrigger(trigger: DeferredTrigger): void {}\n visitUnknownBlock(block: UnknownBlock) {}\n}\n\n/**\n * Processes a template and extract metadata about expressions and symbols within.\n *\n * This is a companion to the `DirectiveBinder` that doesn't require knowledge of directives matched\n * within the template in order to operate.\n *\n * Expressions are visited by the superclass `RecursiveAstVisitor`, with custom logic provided\n * by overridden methods from that visitor.\n */\nclass TemplateBinder extends RecursiveAstVisitor implements Visitor {\n private visitNode: (node: Node) => void;\n\n private constructor(\n private bindings: Map<AST, Reference|Variable>,\n private symbols: Map<Reference|Variable, ScopedNode>, private usedPipes: Set<string>,\n private eagerPipes: Set<string>, private deferBlocks: Set<DeferredBlock>,\n private nestingLevel: Map<ScopedNode, number>, private scope: Scope,\n private rootNode: ScopedNode|null, private level: number) {\n super();\n\n // Save a bit of processing time by constructing this closure in advance.\n this.visitNode = (node: Node) => node.visit(this);\n }\n\n // This method is defined to reconcile the type of TemplateBinder since both\n // RecursiveAstVisitor and Visitor define the visit() method in their\n // interfaces.\n override visit(node: AST|Node, context?: any) {\n if (node instanceof AST) {\n node.visit(this, context);\n } else {\n node.visit(this);\n }\n }\n\n /**\n * Process a template and extract metadata about expressions and symbols within.\n *\n * @param nodes the nodes of the template to process\n * @param scope the `Scope` of the template being processed.\n * @returns three maps which contain metadata about the template: `expressions` which interprets\n * special `AST` nodes in expressions as pointing to references or variables declared within the\n * template, `symbols` which maps those variables and references to the nested `Template` which\n * declares them, if any, and `nestingLevel` which associates each `Template` with a integer\n * nesting level (how many levels deep within the template structure the `Template` is), starting\n * at 1.\n */\n static applyWithScope(nodes: Node[], scope: Scope): {\n expressions: Map<AST, Reference|Variable>,\n symbols: Map<Variable|Reference, Template>,\n nestingLevel: Map<ScopedNode, number>,\n usedPipes: Set<string>,\n eagerPipes: Set<string>,\n deferBlocks: Set<DeferredBlock>,\n } {\n const expressions = new Map<AST, Reference|Variable>();\n const symbols = new Map<Variable|Reference, Template>();\n const nestingLevel = new Map<ScopedNode, number>();\n const usedPipes = new Set<string>();\n const eagerPipes = new Set<string>();\n const template = nodes instanceof Template ? nodes : null;\n const deferBlocks = new Set<DeferredBlock>();\n // The top-level template has nesting level 0.\n const binder = new TemplateBinder(\n expressions, symbols, usedPipes, eagerPipes, deferBlocks, nestingLevel, scope, template, 0);\n binder.ingest(nodes);\n return {expressions, symbols, nestingLevel, usedPipes, eagerPipes, deferBlocks};\n }\n\n private ingest(nodeOrNodes: ScopedNode|Node[]): void {\n if (nodeOrNodes instanceof Template) {\n // For <ng-template>s, process only variables and child nodes. Inputs, outputs, templateAttrs,\n // and references were all processed in the scope of the containing template.\n nodeOrNodes.variables.forEach(this.visitNode);\n nodeOrNodes.children.forEach(this.visitNode);\n\n // Set the nesting level.\n this.nestingLevel.set(nodeOrNodes, this.level);\n } else if (nodeOrNodes instanceof IfBlockBranch) {\n if (nodeOrNodes.expressionAlias !== null) {\n this.visitNode(nodeOrNodes.expressionAlias);\n }\n nodeOrNodes.children.forEach(this.visitNode);\n this.nestingLevel.set(nodeOrNodes, this.level);\n } else if (nodeOrNodes instanceof ForLoopBlock) {\n this.visitNode(nodeOrNodes.item);\n Object.values(nodeOrNodes.contextVariables).forEach(v => this.visitNode(v));\n nodeOrNodes.trackBy.visit(this);\n nodeOrNodes.children.forEach(this.visitNode);\n this.nestingLevel.set(nodeOrNodes, this.level);\n } else if (\n nodeOrNodes instanceof SwitchBlockCase || nodeOrNodes instanceof ForLoopBlockEmpty ||\n nodeOrNodes instanceof DeferredBlock || nodeOrNodes instanceof DeferredBlockError ||\n nodeOrNodes instanceof DeferredBlockPlaceholder ||\n nodeOrNodes instanceof DeferredBlockLoading) {\n nodeOrNodes.children.forEach(node => node.visit(this));\n this.nestingLevel.set(nodeOrNodes, this.level);\n } else {\n // Visit each node from the top-level template.\n nodeOrNodes.forEach(this.visitNode);\n }\n }\n\n visitElement(element: Element) {\n // Visit the inputs, outputs, and children of the element.\n element.inputs.forEach(this.visitNode);\n element.outputs.forEach(this.visitNode);\n element.children.forEach(this.visitNode);\n element.references.forEach(this.visitNode);\n }\n\n visitTemplate(template: Template) {\n // First, visit inputs, outputs and template attributes of the template node.\n template.inputs.forEach(this.visitNode);\n template.outputs.forEach(this.visitNode);\n template.templateAttrs.forEach(this.visitNode);\n template.references.forEach(this.visitNode);\n\n // Next, recurse into the template.\n this.ingestScopedNode(template);\n }\n\n visitVariable(variable: Variable) {\n // Register the `Variable` as a symbol in the current `Template`.\n if (this.rootNode !== null) {\n this.symbols.set(variable, this.rootNode);\n }\n }\n\n visitReference(reference: Reference) {\n // Register the `Reference` as a symbol in the current `Template`.\n if (this.rootNode !== null) {\n this.symbols.set(reference, this.rootNode);\n }\n }\n\n // Unused template visitors\n\n visitText(text: Text) {}\n visitContent(content: Content) {}\n visitTextAttribute(attribute: TextAttribute) {}\n visitUnknownBlock(block: UnknownBlock) {}\n visitDeferredTrigger(): void {}\n visitIcu(icu: Icu): void {\n Object.keys(icu.vars).forEach(key => icu.vars[key].visit(this));\n Object.keys(icu.placeholders).forEach(key => icu.placeholders[key].visit(this));\n }\n\n // The remaining visitors are concerned with processing AST expressions within template bindings\n\n visitBoundAttribute(attribute: BoundAttribute) {\n attribute.value.visit(this);\n }\n\n visitBoundEvent(event: BoundEvent) {\n event.handler.visit(this);\n }\n\n visitDeferredBlock(deferred: DeferredBlock) {\n this.deferBlocks.add(deferred);\n this.ingestScopedNode(deferred);\n\n deferred.triggers.when?.value.visit(this);\n deferred.prefetchTriggers.when?.value.visit(this);\n deferred.placeholder && this.visitNode(deferred.placeholder);\n deferred.loading && this.visitNode(deferred.loading);\n deferred.error && this.visitNode(deferred.error);\n }\n\n visitDeferredBlockPlaceholder(block: DeferredBlockPlaceholder) {\n this.ingestScopedNode(block);\n }\n\n visitDeferredBlockError(block: DeferredBlockError) {\n this.ingestScopedNode(block);\n }\n\n visitDeferredBlockLoading(block: DeferredBlockLoading) {\n this.ingestScopedNode(block);\n }\n\n visitSwitchBlock(block: SwitchBlock) {\n block.expression.visit(this);\n block.cases.forEach(this.visitNode);\n }\n\n visitSwitchBlockCase(block: SwitchBlockCase) {\n block.expression?.visit(this);\n this.ingestScopedNode(block);\n }\n\n visitForLoopBlock(block: ForLoopBlock) {\n block.expression.visit(this);\n this.ingestScopedNode(block);\n block.empty?.visit(this);\n }\n\n visitForLoopBlockEmpty(block: ForLoopBlockEmpty) {\n this.ingestScopedNode(block);\n }\n\n visitIfBlock(block: IfBlock) {\n block.branches.forEach(node => node.visit(this));\n }\n\n visitIfBlockBranch(block: IfBlockBranch) {\n block.expression?.visit(this);\n this.ingestScopedNode(block);\n }\n\n visitBoundText(text: BoundText) {\n text.value.visit(this);\n }\n override visitPipe(ast: BindingPipe, context: any): any {\n this.usedPipes.add(ast.name);\n if (!this.scope.isDeferred) {\n this.eagerPipes.add(ast.name);\n }\n return super.visitPipe(ast, context);\n }\n\n // These five types of AST expressions can refer to expression roots, which could be variables\n // or references in the current scope.\n\n override visitPropertyRead(ast: PropertyRead, context: any): any {\n this.maybeMap(ast, ast.name);\n return super.visitPropertyRead(ast, context);\n }\n\n override visitSafePropertyRead(ast: SafePropertyRead, context: any): any {\n this.maybeMap(ast, ast.name);\n return super.visitSafePropertyRead(ast, context);\n }\n\n override visitPropertyWrite(ast: PropertyWrite, context: any): any {\n this.maybeMap(ast, ast.name);\n return super.visitPropertyWrite(ast, context);\n }\n\n private ingestScopedNode(node: ScopedNode) {\n const childScope = this.scope.getChildScope(node);\n const binder = new TemplateBinder(\n this.bindings, this.symbols, this.usedPipes, this.eagerPipes, this.deferBlocks,\n this.nestingLevel, childScope, node, this.level + 1);\n binder.ingest(node);\n }\n\n private maybeMap(ast: PropertyRead|SafePropertyRead|PropertyWrite, name: string): void {\n // If the receiver of the expression isn't the `ImplicitReceiver`, this isn't the root of an\n // `AST` expression that maps to a `Variable` or `Reference`.\n if (!(ast.receiver instanceof ImplicitReceiver)) {\n return;\n }\n\n // Check whether the name exists in the current scope. If so, map it. Otherwise, the name is\n // probably a property on the top-level component context.\n let target = this.scope.lookup(name);\n if (target !== null) {\n this.bindings.set(ast, target);\n }\n }\n}\n\n/**\n * Metadata container for a `Target` that allows queries for specific bits of metadata.\n *\n * See `BoundTarget` for documentation on the individual methods.\n */\nexport class R3BoundTarget<DirectiveT extends DirectiveMeta> implements BoundTarget<DirectiveT> {\n constructor(\n readonly target: Target, private directives: Map<Element|Template, DirectiveT[]>,\n private eagerDirectives: DirectiveT[],\n private bindings: Map<BoundAttribute|BoundEvent|TextAttribute, DirectiveT|Element|Template>,\n private references:\n Map<BoundAttribute|BoundEvent|Reference|TextAttribute,\n {directive: DirectiveT, node: Element|Template}|Element|Template>,\n private exprTargets: Map<AST, Reference|Variable>,\n private symbols: Map<Reference|Variable, Template>,\n private nestingLevel: Map<ScopedNode, number>,\n private scopedNodeEntities: Map<ScopedNode|null, ReadonlySet<Reference|Variable>>,\n private usedPipes: Set<string>, private eagerPipes: Set<string>,\n private deferredBlocks: Set<DeferredBlock>, private rootScope: Scope) {}\n\n getEntitiesInScope(node: ScopedNode|null): ReadonlySet<Reference|Variable> {\n return this.scopedNodeEntities.get(node) ?? new Set();\n }\n\n getDirectivesOfNode(node: Element|Template): DirectiveT[]|null {\n return this.directives.get(node) || null;\n }\n\n getReferenceTarget(ref: Reference): ReferenceTarget<DirectiveT>|null {\n return this.references.get(ref) || null;\n }\n\n getConsumerOfBinding(binding: BoundAttribute|BoundEvent|TextAttribute): DirectiveT|Element\n |Template|null {\n return this.bindings.get(binding) || null;\n }\n\n getExpressionTarget(expr: AST): Reference|Variable|null {\n return this.exprTargets.get(expr) || null;\n }\n\n getDefinitionNodeOfSymbol(symbol: Reference|Variable): ScopedNode|null {\n return this.symbols.get(symbol) || null;\n }\n\n getNestingLevel(node: ScopedNode): number {\n return this.nestingLevel.get(node) || 0;\n }\n\n getUsedDirectives(): DirectiveT[] {\n const set = new Set<DirectiveT>();\n this.directives.forEach(dirs => dirs.forEach(dir => set.add(dir)));\n return Array.from(set.values());\n }\n\n getEagerlyUsedDirectives(): DirectiveT[] {\n const set = new Set<DirectiveT>(this.eagerDirectives);\n return Array.from(set.values());\n }\n\n getUsedPipes(): string[] {\n return Array.from(this.usedPipes);\n }\n\n getEagerlyUsedPipes(): string[] {\n return Array.from(this.eagerPipes);\n }\n\n getDeferBlocks(): DeferredBlock[] {\n return Array.from(this.deferredBlocks);\n }\n\n getDeferredTriggerTarget(block: DeferredBlock, trigger: DeferredTrigger): Element|null {\n // Only triggers that refer to DOM nodes can be resolved.\n if (!(trigger instanceof InteractionDeferredTrigger) &&\n !(trigger instanceof ViewportDeferredTrigger) &&\n !(trigger instanceof HoverDeferredTrigger)) {\n return null;\n }\n\n const name = trigger.reference;\n\n if (name === null) {\n let trigger: Element|null = null;\n\n if (block.placeholder !== null) {\n for (const child of block.placeholder.children) {\n // Skip over comment nodes. Currently by default the template parser doesn't capture\n // comments, but we have a safeguard here just in case since it can be enabled.\n if (child instanceof Comment) {\n continue;\n }\n\n // We can only infer the trigger if there's one root element node. Any other\n // nodes at the root make it so that we can't infer the trigger anymore.\n if (trigger !== null) {\n return null;\n }\n\n if (child instanceof Element) {\n trigger = child;\n }\n }\n }\n\n return trigger;\n }\n\n const outsideRef = this.findEntityInScope(block, name);\n\n // First try to resolve the target in the scope of the main deferred block. Note that we\n // skip triggers defined inside the main block itself, because they might not exist yet.\n if (outsideRef instanceof Reference && this.getDefinitionNodeOfSymbol(outsideRef) !== block) {\n const target = this.getReferenceTarget(outsideRef);\n\n if (target !== null) {\n return this.referenceTargetToElement(target);\n }\n }\n\n // If the trigger couldn't be found in the main block, check the\n // placeholder block which is shown before the main block has loaded.\n if (block.placeholder !== null) {\n const refInPlaceholder = this.findEntityInScope(block.placeholder, name);\n const targetInPlaceholder =\n refInPlaceholder instanceof Reference ? this.getReferenceTarget(refInPlaceholder) : null;\n\n if (targetInPlaceholder !== null) {\n return this.referenceTargetToElement(targetInPlaceholder);\n }\n }\n\n return null;\n }\n\n isDeferred(element: Element): boolean {\n for (const deferBlock of this.deferredBlocks) {\n const scope = this.rootScope.childScopes.get(deferBlock);\n if (scope && scope.elementsInScope.has(element)) {\n return true;\n }\n }\n return false;\n }\n\n /**\n * Finds an entity with a specific name in a scope.\n * @param rootNode Root node of the scope.\n * @param name Name of the entity.\n */\n private findEntityInScope(rootNode: ScopedNode, name: string): Reference|Variable|null {\n const entities = this.getEntitiesInScope(rootNode);\n\n for (const entitity of entities) {\n if (entitity.name === name) {\n return entitity;\n }\n }\n\n return null;\n }\n\n /** Coerces a `ReferenceTarget` to an `Element`, if possible. */\n private referenceTargetToElement(target: ReferenceTarget<DirectiveT>): Element|null {\n if (target instanceof Element) {\n return target;\n }\n\n if (target instanceof Template) {\n return null;\n }\n\n return this.referenceTargetToElement(target.node);\n }\n}\n\nfunction extractScopedNodeEntities(rootScope: Scope):\n Map<ScopedNode|null, Set<Reference|Variable>> {\n const entityMap = new Map<ScopedNode|null, Map<string, Reference|Variable>>();\n\n function extractScopeEntities(scope: Scope): Map<string, Reference|Variable> {\n if (entityMap.has(scope.rootNode)) {\n return entityMap.get(scope.rootNode)!;\n }\n\n const currentEntities = scope.namedEntities;\n\n let entities: Map<string, Reference|Variable>;\n if (scope.parentScope !== null) {\n entities = new Map([...extractScopeEntities(scope.parentScope), ...currentEntities]);\n } else {\n entities = new Map(currentEntities);\n }\n\n entityMap.set(scope.rootNode, entities);\n return entities;\n }\n\n const scopesToProcess: Scope[] = [rootScope];\n while (scopesToProcess.length > 0) {\n const scope = scopesToProcess.pop()!;\n for (const childScope of scope.childScopes.values()) {\n scopesToProcess.push(childScope);\n }\n extractScopeEntities(scope);\n }\n\n const templateEntities = new Map<ScopedNode|null, Set<Reference|Variable>>();\n for (const [template, entities] of entityMap) {\n templateEntities.set(template, new Set(entities.values()));\n }\n return templateEntities;\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * An interface for retrieving documents by URL that the compiler uses to\n * load templates.\n *\n * This is an abstract class, rather than an interface, so that it can be used\n * as injection token.\n */\nexport abstract class ResourceLoader {\n abstract get(url: string): Promise<string>|string;\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {CompilerFacade, CoreEnvironment, ExportedCompilerFacade, LegacyInputPartialMapping, OpaqueValue, R3ComponentMetadataFacade, R3DeclareComponentFacade, R3DeclareDependencyMetadataFacade, R3DeclareDirectiveDependencyFacade, R3DeclareDirectiveFacade, R3DeclareFactoryFacade, R3DeclareInjectableFacade, R3DeclareInjectorFacade, R3DeclareNgModuleFacade, R3DeclarePipeDependencyFacade, R3DeclarePipeFacade, R3DeclareQueryMetadataFacade, R3DependencyMetadataFacade, R3DirectiveMetadataFacade, R3FactoryDefMetadataFacade, R3InjectableMetadataFacade, R3InjectorMetadataFacade, R3NgModuleMetadataFacade, R3PipeMetadataFacade, R3QueryMetadataFacade, R3TemplateDependencyFacade} from './compiler_facade_interface';\nimport {ConstantPool} from './constant_pool';\nimport {ChangeDetectionStrategy, HostBinding, HostListener, Input, Output, ViewEncapsulation} from './core';\nimport {compileInjectable} from './injectable_compiler_2';\nimport {DEFAULT_INTERPOLATION_CONFIG, InterpolationConfig} from './ml_parser/defaults';\nimport {DeclareVarStmt, Expression, literal, LiteralExpr, Statement, StmtModifier, WrappedNodeExpr} from './output/output_ast';\nimport {JitEvaluator} from './output/output_jit';\nimport {ParseError, ParseSourceSpan, r3JitTypeSourceSpan} from './parse_util';\nimport {DeferredBlock, DeferredBlockTriggers, DeferredTrigger, Element} from './render3/r3_ast';\nimport {compileFactoryFunction, FactoryTarget, R3DependencyMetadata} from './render3/r3_factory';\nimport {compileInjector, R3InjectorMetadata} from './render3/r3_injector_compiler';\nimport {R3JitReflector} from './render3/r3_jit';\nimport {compileNgModule, compileNgModuleDeclarationExpression, R3NgModuleMetadata, R3NgModuleMetadataKind, R3SelectorScopeMode} from './render3/r3_module_compiler';\nimport {compilePipeFromMetadata, R3PipeMetadata} from './render3/r3_pipe_compiler';\nimport {createMayBeForwardRefExpression, ForwardRefHandling, getSafePropertyAccessString, MaybeForwardRefExpression, wrapReference} from './render3/util';\nimport {DeclarationListEmitMode, DeferBlockDepsEmitMode, R3ComponentMetadata, R3DeferBlockMetadata, R3DirectiveDependencyMetadata, R3DirectiveMetadata, R3HostDirectiveMetadata, R3HostMetadata, R3InputMetadata, R3PipeDependencyMetadata, R3QueryMetadata, R3TemplateDependency, R3TemplateDependencyKind, R3TemplateDependencyMetadata} from './render3/view/api';\nimport {compileComponentFromMetadata, compileDirectiveFromMetadata, ParsedHostBindings, parseHostBindings, verifyHostBindings} from './render3/view/compiler';\nimport type {BoundTarget} from './render3/view/t2_api';\nimport {R3TargetBinder} from './render3/view/t2_binder';\nimport {makeBindingParser, parseTemplate} from './render3/view/template';\nimport {ResourceLoader} from './resource_loader';\nimport {DomElementSchemaRegistry} from './schema/dom_element_schema_registry';\nimport {SelectorMatcher} from './selector';\n\nexport class CompilerFacadeImpl implements CompilerFacade {\n FactoryTarget = FactoryTarget;\n ResourceLoader = ResourceLoader;\n private elementSchemaRegistry = new DomElementSchemaRegistry();\n\n constructor(private jitEvaluator = new JitEvaluator()) {}\n\n compilePipe(angularCoreEnv: CoreEnvironment, sourceMapUrl: string, facade: R3PipeMetadataFacade):\n any {\n const metadata: R3PipeMetadata = {\n name: facade.name,\n type: wrapReference(facade.type),\n typeArgumentCount: 0,\n deps: null,\n pipeName: facade.pipeName,\n pure: facade.pure,\n isStandalone: facade.isStandalone,\n };\n const res = compilePipeFromMetadata(metadata);\n return this.jitExpression(res.expression, angularCoreEnv, sourceMapUrl, []);\n }\n\n compilePipeDeclaration(\n angularCoreEnv: CoreEnvironment, sourceMapUrl: string,\n declaration: R3DeclarePipeFacade): any {\n const meta = convertDeclarePipeFacadeToMetadata(declaration);\n const res = compilePipeFromMetadata(meta);\n return this.jitExpression(res.expression, angularCoreEnv, sourceMapUrl, []);\n }\n\n compileInjectable(\n angularCoreEnv: CoreEnvironment, sourceMapUrl: string,\n facade: R3InjectableMetadataFacade): any {\n const {expression, statements} = compileInjectable(\n {\n name: facade.name,\n type: wrapReference(facade.type),\n typeArgumentCount: facade.typeArgumentCount,\n providedIn: computeProvidedIn(facade.providedIn),\n useClass: convertToProviderExpression(facade, 'useClass'),\n useFactory: wrapExpression(facade, 'useFactory'),\n useValue: convertToProviderExpression(facade, 'useValue'),\n useExisting: convertToProviderExpression(facade, 'useExisting'),\n deps: facade.deps?.map(convertR3DependencyMetadata),\n },\n /* resolveForwardRefs */ true);\n\n return this.jitExpression(expression, angularCoreEnv, sourceMapUrl, statements);\n }\n\n compileInjectableDeclaration(\n angularCoreEnv: CoreEnvironment, sourceMapUrl: string,\n facade: R3DeclareInjectableFacade): any {\n const {expression, statements} = compileInjectable(\n {\n name: facade.type.name,\n type: wrapReference(facade.type),\n typeArgumentCount: 0,\n providedIn: computeProvidedIn(facade.providedIn),\n useClass: convertToProviderExpression(facade, 'useClass'),\n useFactory: wrapExpression(facade, 'useFactory'),\n useValue: convertToProviderExpression(facade, 'useValue'),\n useExisting: convertToProviderExpression(facade, 'useExisting'),\n deps: facade.deps?.map(convertR3DeclareDependencyMetadata),\n },\n /* resolveForwardRefs */ true);\n\n return this.jitExpression(expression, angularCoreEnv, sourceMapUrl, statements);\n }\n\n compileInjector(\n angularCoreEnv: CoreEnvironment, sourceMapUrl: string,\n facade: R3InjectorMetadataFacade): any {\n const meta: R3InjectorMetadata = {\n name: facade.name,\n type: wrapReference(facade.type),\n providers: facade.providers && facade.providers.length > 0 ?\n new WrappedNodeExpr(facade.providers) :\n null,\n imports: facade.imports.map(i => new WrappedNodeExpr(i)),\n };\n const res = compileInjector(meta);\n return this.jitExpression(res.expression, angularCoreEnv, sourceMapUrl, []);\n }\n\n compileInjectorDeclaration(\n angularCoreEnv: CoreEnvironment, sourceMapUrl: string,\n declaration: R3DeclareInjectorFacade): any {\n const meta = convertDeclareInjectorFacadeToMetadata(declaration);\n const res = compileInjector(meta);\n return this.jitExpression(res.expression, angularCoreEnv, sourceMapUrl, []);\n }\n\n compileNgModule(\n angularCoreEnv: CoreEnvironment, sourceMapUrl: string,\n facade: R3NgModuleMetadataFacade): any {\n const meta: R3NgModuleMetadata = {\n kind: R3NgModuleMetadataKind.Global,\n type: wrapReference(facade.type),\n bootstrap: facade.bootstrap.map(wrapReference),\n declarations: facade.declarations.map(wrapReference),\n publicDeclarationTypes: null, // only needed for types in AOT\n imports: facade.imports.map(wrapReference),\n includeImportTypes: true,\n exports: facade.exports.map(wrapReference),\n selectorScopeMode: R3SelectorScopeMode.Inline,\n containsForwardDecls: false,\n schemas: facade.schemas ? facade.schemas.map(wrapReference) : null,\n id: facade.id ? new WrappedNodeExpr(facade.id) : null,\n };\n const res = compileNgModule(meta);\n return this.jitExpression(res.expression, angularCoreEnv, sourceMapUrl, []);\n }\n\n compileNgModuleDeclaration(\n angularCoreEnv: CoreEnvironment, sourceMapUrl: string,\n declaration: R3DeclareNgModuleFacade): any {\n const expression = compileNgModuleDeclarationExpression(declaration);\n return this.jitExpression(expression, angularCoreEnv, sourceMapUrl, []);\n }\n\n compileDirective(\n angularCoreEnv: CoreEnvironment, sourceMapUrl: string,\n facade: R3DirectiveMetadataFacade): any {\n const meta: R3DirectiveMetadata = convertDirectiveFacadeToMetadata(facade);\n return this.compileDirectiveFromMeta(angularCoreEnv, sourceMapUrl, meta);\n }\n\n compileDirectiveDeclaration(\n angularCoreEnv: CoreEnvironment, sourceMapUrl: string,\n declaration: R3DeclareDirectiveFacade): any {\n const typeSourceSpan =\n this.createParseSourceSpan('Directive', declaration.type.name, sourceMapUrl);\n const meta = convertDeclareDirectiveFacadeToMetadata(declaration, typeSourceSpan);\n return this.compileDirectiveFromMeta(angularCoreEnv, sourceMapUrl, meta);\n }\n\n private compileDirectiveFromMeta(\n angularCoreEnv: CoreEnvironment, sourceMapUrl: string, meta: R3DirectiveMetadata): any {\n const constantPool = new ConstantPool();\n const bindingParser = makeBindingParser();\n const res = compileDirectiveFromMetadata(meta, constantPool, bindingParser);\n return this.jitExpression(\n res.expression, angularCoreEnv, sourceMapUrl, constantPool.statements);\n }\n\n compileComponent(\n angularCoreEnv: CoreEnvironment, sourceMapUrl: string,\n facade: R3ComponentMetadataFacade): any {\n // Parse the template and check for errors.\n const {template, interpolation, deferBlocks} = parseJitTemplate(\n facade.template, facade.name, sourceMapUrl, facade.preserveWhitespaces,\n facade.interpolation);\n\n // Compile the component metadata, including template, into an expression.\n const meta: R3ComponentMetadata<R3TemplateDependency> = {\n ...facade,\n ...convertDirectiveFacadeToMetadata(facade),\n selector: facade.selector || this.elementSchemaRegistry.getDefaultComponentElementName(),\n template,\n declarations: facade.declarations.map(convertDeclarationFacadeToMetadata),\n declarationListEmitMode: DeclarationListEmitMode.Direct,\n deferBlocks,\n deferrableTypes: new Map(),\n deferrableDeclToImportDecl: new Map(),\n deferBlockDepsEmitMode: DeferBlockDepsEmitMode.PerBlock,\n\n styles: [...facade.styles, ...template.styles],\n encapsulation: facade.encapsulation,\n interpolation,\n changeDetection: facade.changeDetection ?? null,\n animations: facade.animations != null ? new WrappedNodeExpr(facade.animations) : null,\n viewProviders: facade.viewProviders != null ? new WrappedNodeExpr(facade.viewProviders) :\n null,\n relativeContextFilePath: '',\n i18nUseExternalIds: true,\n };\n const jitExpressionSourceMap = `ng:///${facade.name}.js`;\n return this.compileComponentFromMeta(angularCoreEnv, jitExpressionSourceMap, meta);\n }\n\n compileComponentDeclaration(\n angularCoreEnv: CoreEnvironment, sourceMapUrl: string,\n declaration: R3DeclareComponentFacade): any {\n const typeSourceSpan =\n this.createParseSourceSpan('Component', declaration.type.name, sourceMapUrl);\n const meta = convertDeclareComponentFacadeToMetadata(declaration, typeSourceSpan, sourceMapUrl);\n return this.compileComponentFromMeta(angularCoreEnv, sourceMapUrl, meta);\n }\n\n private compileComponentFromMeta(\n angularCoreEnv: CoreEnvironment, sourceMapUrl: string,\n meta: R3ComponentMetadata<R3TemplateDependency>): any {\n const constantPool = new ConstantPool();\n const bindingParser = makeBindingParser(meta.interpolation);\n const res = compileComponentFromMetadata(meta, constantPool, bindingParser);\n return this.jitExpression(\n res.expression, angularCoreEnv, sourceMapUrl, constantPool.statements);\n }\n\n compileFactory(\n angularCoreEnv: CoreEnvironment, sourceMapUrl: string, meta: R3FactoryDefMetadataFacade) {\n const factoryRes = compileFactoryFunction({\n name: meta.name,\n type: wrapReference(meta.type),\n typeArgumentCount: meta.typeArgumentCount,\n deps: convertR3DependencyMetadataArray(meta.deps),\n target: meta.target,\n });\n return this.jitExpression(\n factoryRes.expression, angularCoreEnv, sourceMapUrl, factoryRes.statements);\n }\n\n compileFactoryDeclaration(\n angularCoreEnv: CoreEnvironment, sourceMapUrl: string, meta: R3DeclareFactoryFacade) {\n const factoryRes = compileFactoryFunction({\n name: meta.type.name,\n type: wrapReference(meta.type),\n typeArgumentCount: 0,\n deps: Array.isArray(meta.deps) ? meta.deps.map(convertR3DeclareDependencyMetadata) :\n meta.deps,\n target: meta.target,\n });\n return this.jitExpression(\n factoryRes.expression, angularCoreEnv, sourceMapUrl, factoryRes.statements);\n }\n\n\n createParseSourceSpan(kind: string, typeName: string, sourceUrl: string): ParseSourceSpan {\n return r3JitTypeSourceSpan(kind, typeName, sourceUrl);\n }\n\n /**\n * JIT compiles an expression and returns the result of executing that expression.\n *\n * @param def the definition which will be compiled and executed to get the value to patch\n * @param context an object map of @angular/core symbol names to symbols which will be available\n * in the context of the compiled expression\n * @param sourceUrl a URL to use for the source map of the compiled expression\n * @param preStatements a collection of statements that should be evaluated before the expression.\n */\n private jitExpression(\n def: Expression, context: {[key: string]: any}, sourceUrl: string,\n preStatements: Statement[]): any {\n // The ConstantPool may contain Statements which declare variables used in the final expression.\n // Therefore, its statements need to precede the actual JIT operation. The final statement is a\n // declaration of $def which is set to the expression being compiled.\n const statements: Statement[] = [\n ...preStatements,\n new DeclareVarStmt('$def', def, undefined, StmtModifier.Exported),\n ];\n\n const res = this.jitEvaluator.evaluateStatements(\n sourceUrl, statements, new R3JitReflector(context), /* enableSourceMaps */ true);\n return res['$def'];\n }\n}\n\nfunction convertToR3QueryMetadata(facade: R3QueryMetadataFacade): R3QueryMetadata {\n return {\n ...facade,\n predicate: convertQueryPredicate(facade.predicate),\n read: facade.read ? new WrappedNodeExpr(facade.read) : null,\n static: facade.static,\n emitDistinctChangesOnly: facade.emitDistinctChangesOnly,\n };\n}\n\nfunction convertQueryDeclarationToMetadata(declaration: R3DeclareQueryMetadataFacade):\n R3QueryMetadata {\n return {\n propertyName: declaration.propertyName,\n first: declaration.first ?? false,\n predicate: convertQueryPredicate(declaration.predicate),\n descendants: declaration.descendants ?? false,\n read: declaration.read ? new WrappedNodeExpr(declaration.read) : null,\n static: declaration.static ?? false,\n emitDistinctChangesOnly: declaration.emitDistinctChangesOnly ?? true,\n };\n}\n\nfunction convertQueryPredicate(predicate: OpaqueValue|string[]): MaybeForwardRefExpression|\n string[] {\n return Array.isArray(predicate) ?\n // The predicate is an array of strings so pass it through.\n predicate :\n // The predicate is a type - assume that we will need to unwrap any `forwardRef()` calls.\n createMayBeForwardRefExpression(new WrappedNodeExpr(predicate), ForwardRefHandling.Wrapped);\n}\n\nfunction convertDirectiveFacadeToMetadata(facade: R3DirectiveMetadataFacade): R3DirectiveMetadata {\n const inputsFromMetadata = parseInputsArray(facade.inputs || []);\n const outputsFromMetadata = parseMappingStringArray(facade.outputs || []);\n const propMetadata = facade.propMetadata;\n const inputsFromType: Record<string, R3InputMetadata> = {};\n const outputsFromType: Record<string, string> = {};\n for (const field in propMetadata) {\n if (propMetadata.hasOwnProperty(field)) {\n propMetadata[field].forEach(ann => {\n if (isInput(ann)) {\n inputsFromType[field] = {\n bindingPropertyName: ann.alias || field,\n classPropertyName: field,\n required: ann.required || false,\n // For JIT, decorators are used to declare signal inputs. That is because of\n // a technical limitation where it's not possible to statically reflect class\n // members of a directive/component at runtime before instantiating the class.\n isSignal: !!ann.isSignal,\n transformFunction: ann.transform != null ? new WrappedNodeExpr(ann.transform) : null,\n };\n } else if (isOutput(ann)) {\n outputsFromType[field] = ann.alias || field;\n }\n });\n }\n }\n\n return {\n ...facade,\n typeArgumentCount: 0,\n typeSourceSpan: facade.typeSourceSpan,\n type: wrapReference(facade.type),\n deps: null,\n host: extractHostBindings(facade.propMetadata, facade.typeSourceSpan, facade.host),\n inputs: {...inputsFromMetadata, ...inputsFromType},\n outputs: {...outputsFromMetadata, ...outputsFromType},\n queries: facade.queries.map(convertToR3QueryMetadata),\n providers: facade.providers != null ? new WrappedNodeExpr(facade.providers) : null,\n viewQueries: facade.viewQueries.map(convertToR3QueryMetadata),\n fullInheritance: false,\n hostDirectives: convertHostDirectivesToMetadata(facade),\n };\n}\n\nfunction convertDeclareDirectiveFacadeToMetadata(\n declaration: R3DeclareDirectiveFacade, typeSourceSpan: ParseSourceSpan): R3DirectiveMetadata {\n return {\n name: declaration.type.name,\n type: wrapReference(declaration.type),\n typeSourceSpan,\n selector: declaration.selector ?? null,\n inputs: declaration.inputs ? inputsPartialMetadataToInputMetadata(declaration.inputs) : {},\n outputs: declaration.outputs ?? {},\n host: convertHostDeclarationToMetadata(declaration.host),\n queries: (declaration.queries ?? []).map(convertQueryDeclarationToMetadata),\n viewQueries: (declaration.viewQueries ?? []).map(convertQueryDeclarationToMetadata),\n providers: declaration.providers !== undefined ? new WrappedNodeExpr(declaration.providers) :\n null,\n exportAs: declaration.exportAs ?? null,\n usesInheritance: declaration.usesInheritance ?? false,\n lifecycle: {usesOnChanges: declaration.usesOnChanges ?? false},\n deps: null,\n typeArgumentCount: 0,\n fullInheritance: false,\n isStandalone: declaration.isStandalone ?? false,\n isSignal: declaration.isSignal ?? false,\n hostDirectives: convertHostDirectivesToMetadata(declaration),\n };\n}\n\nfunction convertHostDeclarationToMetadata(host: R3DeclareDirectiveFacade['host'] = {}):\n R3HostMetadata {\n return {\n attributes: convertOpaqueValuesToExpressions(host.attributes ?? {}),\n listeners: host.listeners ?? {},\n properties: host.properties ?? {},\n specialAttributes: {\n classAttr: host.classAttribute,\n styleAttr: host.styleAttribute,\n },\n };\n}\n\nfunction convertHostDirectivesToMetadata(\n metadata: R3DeclareDirectiveFacade|R3DirectiveMetadataFacade): R3HostDirectiveMetadata[]|null {\n if (metadata.hostDirectives?.length) {\n return metadata.hostDirectives.map(hostDirective => {\n return typeof hostDirective === 'function' ?\n {\n directive: wrapReference(hostDirective),\n inputs: null,\n outputs: null,\n isForwardReference: false\n } :\n {\n directive: wrapReference(hostDirective.directive),\n isForwardReference: false,\n inputs: hostDirective.inputs ? parseMappingStringArray(hostDirective.inputs) : null,\n outputs: hostDirective.outputs ? parseMappingStringArray(hostDirective.outputs) : null,\n };\n });\n }\n\n return null;\n}\n\nfunction convertOpaqueValuesToExpressions(obj: {[key: string]: OpaqueValue}):\n {[key: string]: WrappedNodeExpr<unknown>} {\n const result: {[key: string]: WrappedNodeExpr<unknown>} = {};\n for (const key of Object.keys(obj)) {\n result[key] = new WrappedNodeExpr(obj[key]);\n }\n return result;\n}\n\nfunction convertDeclareComponentFacadeToMetadata(\n decl: R3DeclareComponentFacade, typeSourceSpan: ParseSourceSpan,\n sourceMapUrl: string): R3ComponentMetadata<R3TemplateDependencyMetadata> {\n const {template, interpolation, deferBlocks} = parseJitTemplate(\n decl.template, decl.type.name, sourceMapUrl, decl.preserveWhitespaces ?? false,\n decl.interpolation);\n\n const declarations: R3TemplateDependencyMetadata[] = [];\n if (decl.dependencies) {\n for (const innerDep of decl.dependencies) {\n switch (innerDep.kind) {\n case 'directive':\n case 'component':\n declarations.push(convertDirectiveDeclarationToMetadata(innerDep));\n break;\n case 'pipe':\n declarations.push(convertPipeDeclarationToMetadata(innerDep));\n break;\n }\n }\n } else if (decl.components || decl.directives || decl.pipes) {\n // Existing declarations on NPM may not be using the new `dependencies` merged field, and may\n // have separate fields for dependencies instead. Unify them for JIT compilation.\n decl.components &&\n declarations.push(...decl.components.map(\n dir => convertDirectiveDeclarationToMetadata(dir, /* isComponent */ true)));\n decl.directives &&\n declarations.push(\n ...decl.directives.map(dir => convertDirectiveDeclarationToMetadata(dir)));\n decl.pipes && declarations.push(...convertPipeMapToMetadata(decl.pipes));\n }\n\n return {\n ...convertDeclareDirectiveFacadeToMetadata(decl, typeSourceSpan),\n template,\n styles: decl.styles ?? [],\n declarations,\n viewProviders: decl.viewProviders !== undefined ? new WrappedNodeExpr(decl.viewProviders) :\n null,\n animations: decl.animations !== undefined ? new WrappedNodeExpr(decl.animations) : null,\n deferBlocks,\n deferrableTypes: new Map(),\n deferrableDeclToImportDecl: new Map(),\n deferBlockDepsEmitMode: DeferBlockDepsEmitMode.PerBlock,\n\n changeDetection: decl.changeDetection ?? ChangeDetectionStrategy.Default,\n encapsulation: decl.encapsulation ?? ViewEncapsulation.Emulated,\n interpolation,\n declarationListEmitMode: DeclarationListEmitMode.ClosureResolved,\n relativeContextFilePath: '',\n i18nUseExternalIds: true,\n };\n}\n\nfunction convertDeclarationFacadeToMetadata(declaration: R3TemplateDependencyFacade):\n R3TemplateDependency {\n return {\n ...declaration,\n type: new WrappedNodeExpr(declaration.type),\n };\n}\n\nfunction convertDirectiveDeclarationToMetadata(\n declaration: R3DeclareDirectiveDependencyFacade,\n isComponent: true|null = null): R3DirectiveDependencyMetadata {\n return {\n kind: R3TemplateDependencyKind.Directive,\n isComponent: isComponent || declaration.kind === 'component',\n selector: declaration.selector,\n type: new WrappedNodeExpr(declaration.type),\n inputs: declaration.inputs ?? [],\n outputs: declaration.outputs ?? [],\n exportAs: declaration.exportAs ?? null,\n };\n}\n\nfunction convertPipeMapToMetadata(pipes: R3DeclareComponentFacade['pipes']):\n R3PipeDependencyMetadata[] {\n if (!pipes) {\n return [];\n }\n\n return Object.keys(pipes).map(name => {\n return {\n kind: R3TemplateDependencyKind.Pipe,\n name,\n type: new WrappedNodeExpr(pipes[name]),\n };\n });\n}\n\nfunction convertPipeDeclarationToMetadata(pipe: R3DeclarePipeDependencyFacade):\n R3PipeDependencyMetadata {\n return {\n kind: R3TemplateDependencyKind.Pipe,\n name: pipe.name,\n type: new WrappedNodeExpr(pipe.type),\n };\n}\n\nfunction parseJitTemplate(\n template: string, typeName: string, sourceMapUrl: string, preserveWhitespaces: boolean,\n interpolation: [string, string]|undefined) {\n const interpolationConfig =\n interpolation ? InterpolationConfig.fromArray(interpolation) : DEFAULT_INTERPOLATION_CONFIG;\n // Parse the template and check for errors.\n const parsed = parseTemplate(template, sourceMapUrl, {preserveWhitespaces, interpolationConfig});\n if (parsed.errors !== null) {\n const errors = parsed.errors.map(err => err.toString()).join(', ');\n throw new Error(`Errors during JIT compilation of template for ${typeName}: ${errors}`);\n }\n const binder = new R3TargetBinder(new SelectorMatcher());\n const boundTarget = binder.bind({template: parsed.nodes});\n\n return {\n template: parsed,\n interpolation: interpolationConfig,\n deferBlocks: createR3DeferredMetadata(boundTarget)\n };\n}\n\n/**\n * Convert the expression, if present to an `R3ProviderExpression`.\n *\n * In JIT mode we do not want the compiler to wrap the expression in a `forwardRef()` call because,\n * if it is referencing a type that has not yet been defined, it will have already been wrapped in\n * a `forwardRef()` - either by the application developer or during partial-compilation. Thus we can\n * use `ForwardRefHandling.None`.\n */\nfunction convertToProviderExpression(obj: any, property: string): MaybeForwardRefExpression|\n undefined {\n if (obj.hasOwnProperty(property)) {\n return createMayBeForwardRefExpression(\n new WrappedNodeExpr(obj[property]), ForwardRefHandling.None);\n } else {\n return undefined;\n }\n}\n\nfunction wrapExpression(obj: any, property: string): WrappedNodeExpr<any>|undefined {\n if (obj.hasOwnProperty(property)) {\n return new WrappedNodeExpr(obj[property]);\n } else {\n return undefined;\n }\n}\n\nfunction computeProvidedIn(providedIn: Function|string|null|undefined): MaybeForwardRefExpression {\n const expression = typeof providedIn === 'function' ? new WrappedNodeExpr(providedIn) :\n new LiteralExpr(providedIn ?? null);\n // See `convertToProviderExpression()` for why this uses `ForwardRefHandling.None`.\n return createMayBeForwardRefExpression(expression, ForwardRefHandling.None);\n}\n\nfunction convertR3DependencyMetadataArray(facades: R3DependencyMetadataFacade[]|null|\n undefined): R3DependencyMetadata[]|null {\n return facades == null ? null : facades.map(convertR3DependencyMetadata);\n}\n\nfunction convertR3DependencyMetadata(facade: R3DependencyMetadataFacade): R3DependencyMetadata {\n const isAttributeDep = facade.attribute != null; // both `null` and `undefined`\n const rawToken = facade.token === null ? null : new WrappedNodeExpr(facade.token);\n // In JIT mode, if the dep is an `@Attribute()` then we use the attribute name given in\n // `attribute` rather than the `token`.\n const token = isAttributeDep ? new WrappedNodeExpr(facade.attribute) : rawToken;\n return createR3DependencyMetadata(\n token, isAttributeDep, facade.host, facade.optional, facade.self, facade.skipSelf);\n}\n\nfunction convertR3DeclareDependencyMetadata(facade: R3DeclareDependencyMetadataFacade):\n R3DependencyMetadata {\n const isAttributeDep = facade.attribute ?? false;\n const token = facade.token === null ? null : new WrappedNodeExpr(facade.token);\n return createR3DependencyMetadata(\n token, isAttributeDep, facade.host ?? false, facade.optional ?? false, facade.self ?? false,\n facade.skipSelf ?? false);\n}\n\nfunction createR3DependencyMetadata(\n token: WrappedNodeExpr<unknown>|null, isAttributeDep: boolean, host: boolean, optional: boolean,\n self: boolean, skipSelf: boolean): R3DependencyMetadata {\n // If the dep is an `@Attribute()` the `attributeNameType` ought to be the `unknown` type.\n // But types are not available at runtime so we just use a literal `\"<unknown>\"` string as a dummy\n // marker.\n const attributeNameType = isAttributeDep ? literal('unknown') : null;\n return {token, attributeNameType, host, optional, self, skipSelf};\n}\n\nfunction createR3DeferredMetadata(boundTarget: BoundTarget<any>):\n Map<DeferredBlock, R3DeferBlockMetadata> {\n const deferredBlocks = boundTarget.getDeferBlocks();\n const meta = new Map<DeferredBlock, R3DeferBlockMetadata>();\n\n for (const block of deferredBlocks) {\n const triggerElements = new Map<DeferredTrigger, Element>();\n\n resolveDeferTriggers(block, block.triggers, boundTarget, triggerElements);\n resolveDeferTriggers(block, block.prefetchTriggers, boundTarget, triggerElements);\n\n // TODO: leaving `deps` empty in JIT mode for now, to be implemented as one of the next steps.\n meta.set(block, {deps: [], triggerElements});\n }\n\n return meta;\n}\n\nfunction resolveDeferTriggers(\n block: DeferredBlock, triggers: DeferredBlockTriggers, boundTarget: BoundTarget<any>,\n triggerElements: Map<DeferredTrigger, Element|null>): void {\n Object.keys(triggers).forEach(key => {\n const trigger = triggers[key as keyof DeferredBlockTriggers]!;\n triggerElements.set(trigger, boundTarget.getDeferredTriggerTarget(block, trigger));\n });\n}\n\nfunction extractHostBindings(\n propMetadata: {[key: string]: any[]}, sourceSpan: ParseSourceSpan,\n host?: {[key: string]: string}): ParsedHostBindings {\n // First parse the declarations from the metadata.\n const bindings = parseHostBindings(host || {});\n\n // After that check host bindings for errors\n const errors = verifyHostBindings(bindings, sourceSpan);\n if (errors.length) {\n throw new Error(errors.map((error: ParseError) => error.msg).join('\\n'));\n }\n\n // Next, loop over the properties of the object, looking for @HostBinding and @HostListener.\n for (const field in propMetadata) {\n if (propMetadata.hasOwnProperty(field)) {\n propMetadata[field].forEach(ann => {\n if (isHostBinding(ann)) {\n // Since this is a decorator, we know that the value is a class member. Always access it\n // through `this` so that further down the line it can't be confused for a literal value\n // (e.g. if there's a property called `true`).\n bindings.properties[ann.hostPropertyName || field] =\n getSafePropertyAccessString('this', field);\n } else if (isHostListener(ann)) {\n bindings.listeners[ann.eventName || field] = `${field}(${(ann.args || []).join(',')})`;\n }\n });\n }\n }\n\n return bindings;\n}\n\nfunction isHostBinding(value: any): value is HostBinding {\n return value.ngMetadataName === 'HostBinding';\n}\n\nfunction isHostListener(value: any): value is HostListener {\n return value.ngMetadataName === 'HostListener';\n}\n\n\nfunction isInput(value: any): value is Input {\n return value.ngMetadataName === 'Input';\n}\n\nfunction isOutput(value: any): value is Output {\n return value.ngMetadataName === 'Output';\n}\n\nfunction inputsPartialMetadataToInputMetadata(\n inputs: NonNullable<R3DeclareDirectiveFacade['inputs']>) {\n return Object.keys(inputs).reduce<Record<string, R3InputMetadata>>(\n (result, minifiedClassName) => {\n const value = inputs[minifiedClassName];\n\n // Handle legacy partial input output.\n if (typeof value === 'string' || Array.isArray(value)) {\n result[minifiedClassName] = parseLegacyInputPartialOutput(value);\n } else {\n result[minifiedClassName] = {\n bindingPropertyName: value.publicName,\n classPropertyName: minifiedClassName,\n transformFunction: value.transformFunction !== null ?\n new WrappedNodeExpr(value.transformFunction) :\n null,\n required: value.isRequired,\n isSignal: value.isSignal,\n };\n }\n\n return result;\n },\n {});\n}\n\n/**\n * Parses the legacy input partial output. For more details see `partial/directive.ts`.\n * TODO(legacy-partial-output-inputs): Remove in v18.\n */\nfunction parseLegacyInputPartialOutput(value: LegacyInputPartialMapping): R3InputMetadata {\n if (typeof value === 'string') {\n return {\n bindingPropertyName: value,\n classPropertyName: value,\n transformFunction: null,\n required: false,\n // legacy partial output does not capture signal inputs.\n isSignal: false,\n };\n }\n\n return {\n bindingPropertyName: value[0],\n classPropertyName: value[1],\n transformFunction: value[2] ? new WrappedNodeExpr(value[2]) : null,\n required: false,\n // legacy partial output does not capture signal inputs.\n isSignal: false,\n };\n}\n\nfunction parseInputsArray(\n values: (string|{name: string, alias?: string, required?: boolean, transform?: Function})[]) {\n return values.reduce<Record<string, R3InputMetadata>>((results, value) => {\n if (typeof value === 'string') {\n const [bindingPropertyName, classPropertyName] = parseMappingString(value);\n results[classPropertyName] = {\n bindingPropertyName,\n classPropertyName,\n required: false,\n // Signal inputs not supported for the inputs array.\n isSignal: false,\n transformFunction: null,\n };\n } else {\n results[value.name] = {\n bindingPropertyName: value.alias || value.name,\n classPropertyName: value.name,\n required: value.required || false,\n // Signal inputs not supported for the inputs array.\n isSignal: false,\n transformFunction: value.transform != null ? new WrappedNodeExpr(value.transform) : null,\n };\n }\n return results;\n }, {});\n}\n\nfunction parseMappingStringArray(values: string[]): Record<string, string> {\n return values.reduce<Record<string, string>>((results, value) => {\n const [alias, fieldName] = parseMappingString(value);\n results[fieldName] = alias;\n return results;\n }, {});\n}\n\nfunction parseMappingString(value: string): [alias: string, fieldName: string] {\n // Either the value is 'field' or 'field: property'. In the first case, `property` will\n // be undefined, in which case the field name should also be used as the property name.\n const [fieldName, bindingPropertyName] = value.split(':', 2).map(str => str.trim());\n return [bindingPropertyName ?? fieldName, fieldName];\n}\n\nfunction convertDeclarePipeFacadeToMetadata(declaration: R3DeclarePipeFacade): R3PipeMetadata {\n return {\n name: declaration.type.name,\n type: wrapReference(declaration.type),\n typeArgumentCount: 0,\n pipeName: declaration.name,\n deps: null,\n pure: declaration.pure ?? true,\n isStandalone: declaration.isStandalone ?? false,\n };\n}\n\nfunction convertDeclareInjectorFacadeToMetadata(declaration: R3DeclareInjectorFacade):\n R3InjectorMetadata {\n return {\n name: declaration.type.name,\n type: wrapReference(declaration.type),\n providers: declaration.providers !== undefined && declaration.providers.length > 0 ?\n new WrappedNodeExpr(declaration.providers) :\n null,\n imports: declaration.imports !== undefined ?\n declaration.imports.map(i => new WrappedNodeExpr(i)) :\n [],\n };\n}\n\nexport function publishFacade(global: any) {\n const ng: ExportedCompilerFacade = global.ng || (global.ng = {});\n ng.ɵcompilerFacade = new CompilerFacadeImpl();\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of the compiler package.\n */\n\nimport {Version} from './util';\n\nexport const VERSION = new Version('17.1.3');\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {MissingTranslationStrategy, ViewEncapsulation} from './core';\nimport {noUndefined} from './util';\n\nexport class CompilerConfig {\n public defaultEncapsulation: ViewEncapsulation|null;\n public preserveWhitespaces: boolean;\n public strictInjectionParameters: boolean;\n\n constructor({\n defaultEncapsulation = ViewEncapsulation.Emulated,\n preserveWhitespaces,\n strictInjectionParameters\n }: {\n defaultEncapsulation?: ViewEncapsulation,\n preserveWhitespaces?: boolean,\n strictInjectionParameters?: boolean,\n } = {}) {\n this.defaultEncapsulation = defaultEncapsulation;\n this.preserveWhitespaces = preserveWhitespacesDefault(noUndefined(preserveWhitespaces));\n this.strictInjectionParameters = strictInjectionParameters === true;\n }\n}\n\nexport function preserveWhitespacesDefault(\n preserveWhitespacesOption: boolean|null, defaultSetting = false): boolean {\n return preserveWhitespacesOption === null ? defaultSetting : preserveWhitespacesOption;\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as html from '../ml_parser/ast';\nimport {DEFAULT_CONTAINER_BLOCKS, InterpolationConfig} from '../ml_parser/defaults';\nimport {ParseTreeResult} from '../ml_parser/parser';\n\nimport * as i18n from './i18n_ast';\nimport {createI18nMessageFactory, I18nMessageFactory} from './i18n_parser';\nimport {I18nError} from './parse_util';\nimport {TranslationBundle} from './translation_bundle';\n\nconst _I18N_ATTR = 'i18n';\nconst _I18N_ATTR_PREFIX = 'i18n-';\nconst _I18N_COMMENT_PREFIX_REGEXP = /^i18n:?/;\nconst MEANING_SEPARATOR = '|';\nconst ID_SEPARATOR = '@@';\nlet i18nCommentsWarned = false;\n\n/**\n * Extract translatable messages from an html AST\n */\nexport function extractMessages(\n nodes: html.Node[], interpolationConfig: InterpolationConfig, implicitTags: string[],\n implicitAttrs: {[k: string]: string[]}): ExtractionResult {\n const visitor = new _Visitor(implicitTags, implicitAttrs);\n return visitor.extract(nodes, interpolationConfig);\n}\n\nexport function mergeTranslations(\n nodes: html.Node[], translations: TranslationBundle, interpolationConfig: InterpolationConfig,\n implicitTags: string[], implicitAttrs: {[k: string]: string[]}): ParseTreeResult {\n const visitor = new _Visitor(implicitTags, implicitAttrs);\n return visitor.merge(nodes, translations, interpolationConfig);\n}\n\nexport class ExtractionResult {\n constructor(public messages: i18n.Message[], public errors: I18nError[]) {}\n}\n\nenum _VisitorMode {\n Extract,\n Merge\n}\n\n/**\n * This Visitor is used:\n * 1. to extract all the translatable strings from an html AST (see `extract()`),\n * 2. to replace the translatable strings with the actual translations (see `merge()`)\n *\n * @internal\n */\nclass _Visitor implements html.Visitor {\n // Using non-null assertions because all variables are (re)set in init()\n\n private _depth!: number;\n\n // <el i18n>...</el>\n private _inI18nNode!: boolean;\n private _inImplicitNode!: boolean;\n\n // <!--i18n-->...<!--/i18n-->\n private _inI18nBlock!: boolean;\n private _blockMeaningAndDesc!: string;\n private _blockChildren!: html.Node[];\n private _blockStartDepth!: number;\n\n // {<icu message>}\n private _inIcu!: boolean;\n\n // set to void 0 when not in a section\n private _msgCountAtSectionStart: number|undefined;\n private _errors!: I18nError[];\n private _mode!: _VisitorMode;\n\n // _VisitorMode.Extract only\n private _messages!: i18n.Message[];\n\n // _VisitorMode.Merge only\n private _translations!: TranslationBundle;\n private _createI18nMessage!: I18nMessageFactory;\n\n\n constructor(private _implicitTags: string[], private _implicitAttrs: {[k: string]: string[]}) {}\n\n /**\n * Extracts the messages from the tree\n */\n extract(nodes: html.Node[], interpolationConfig: InterpolationConfig): ExtractionResult {\n this._init(_VisitorMode.Extract, interpolationConfig);\n\n nodes.forEach(node => node.visit(this, null));\n\n if (this._inI18nBlock) {\n this._reportError(nodes[nodes.length - 1], 'Unclosed block');\n }\n\n return new ExtractionResult(this._messages, this._errors);\n }\n\n /**\n * Returns a tree where all translatable nodes are translated\n */\n merge(\n nodes: html.Node[], translations: TranslationBundle,\n interpolationConfig: InterpolationConfig): ParseTreeResult {\n this._init(_VisitorMode.Merge, interpolationConfig);\n this._translations = translations;\n\n // Construct a single fake root element\n const wrapper = new html.Element('wrapper', [], nodes, undefined!, undefined!, undefined);\n\n const translatedNode = wrapper.visit(this, null);\n\n if (this._inI18nBlock) {\n this._reportError(nodes[nodes.length - 1], 'Unclosed block');\n }\n\n return new ParseTreeResult(translatedNode.children, this._errors);\n }\n\n visitExpansionCase(icuCase: html.ExpansionCase, context: any): any {\n // Parse cases for translatable html attributes\n const expression = html.visitAll(this, icuCase.expression, context);\n\n if (this._mode === _VisitorMode.Merge) {\n return new html.ExpansionCase(\n icuCase.value, expression, icuCase.sourceSpan, icuCase.valueSourceSpan,\n icuCase.expSourceSpan);\n }\n }\n\n visitExpansion(icu: html.Expansion, context: any): html.Expansion {\n this._mayBeAddBlockChildren(icu);\n\n const wasInIcu = this._inIcu;\n\n if (!this._inIcu) {\n // nested ICU messages should not be extracted but top-level translated as a whole\n if (this._isInTranslatableSection) {\n this._addMessage([icu]);\n }\n this._inIcu = true;\n }\n\n const cases = html.visitAll(this, icu.cases, context);\n\n if (this._mode === _VisitorMode.Merge) {\n icu = new html.Expansion(\n icu.switchValue, icu.type, cases, icu.sourceSpan, icu.switchValueSourceSpan);\n }\n\n this._inIcu = wasInIcu;\n\n return icu;\n }\n\n visitComment(comment: html.Comment, context: any): any {\n const isOpening = _isOpeningComment(comment);\n\n if (isOpening && this._isInTranslatableSection) {\n this._reportError(comment, 'Could not start a block inside a translatable section');\n return;\n }\n\n const isClosing = _isClosingComment(comment);\n\n if (isClosing && !this._inI18nBlock) {\n this._reportError(comment, 'Trying to close an unopened block');\n return;\n }\n\n if (!this._inI18nNode && !this._inIcu) {\n if (!this._inI18nBlock) {\n if (isOpening) {\n // deprecated from v5 you should use <ng-container i18n> instead of i18n comments\n if (!i18nCommentsWarned && <any>console && <any>console.warn) {\n i18nCommentsWarned = true;\n const details = comment.sourceSpan.details ? `, ${comment.sourceSpan.details}` : '';\n // TODO(ocombe): use a log service once there is a public one available\n console.warn(`I18n comments are deprecated, use an <ng-container> element instead (${\n comment.sourceSpan.start}${details})`);\n }\n this._inI18nBlock = true;\n this._blockStartDepth = this._depth;\n this._blockChildren = [];\n this._blockMeaningAndDesc =\n comment.value!.replace(_I18N_COMMENT_PREFIX_REGEXP, '').trim();\n this._openTranslatableSection(comment);\n }\n } else {\n if (isClosing) {\n if (this._depth == this._blockStartDepth) {\n this._closeTranslatableSection(comment, this._blockChildren);\n this._inI18nBlock = false;\n const message = this._addMessage(this._blockChildren, this._blockMeaningAndDesc)!;\n // merge attributes in sections\n const nodes = this._translateMessage(comment, message);\n return html.visitAll(this, nodes);\n } else {\n this._reportError(comment, 'I18N blocks should not cross element boundaries');\n return;\n }\n }\n }\n }\n }\n\n visitText(text: html.Text, context: any): html.Text {\n if (this._isInTranslatableSection) {\n this._mayBeAddBlockChildren(text);\n }\n return text;\n }\n\n visitElement(el: html.Element, context: any): html.Element|null {\n this._mayBeAddBlockChildren(el);\n this._depth++;\n const wasInI18nNode = this._inI18nNode;\n const wasInImplicitNode = this._inImplicitNode;\n let childNodes: html.Node[] = [];\n let translatedChildNodes: html.Node[] = undefined!;\n\n // Extract:\n // - top level nodes with the (implicit) \"i18n\" attribute if not already in a section\n // - ICU messages\n const i18nAttr = _getI18nAttr(el);\n const i18nMeta = i18nAttr ? i18nAttr.value : '';\n const isImplicit = this._implicitTags.some(tag => el.name === tag) && !this._inIcu &&\n !this._isInTranslatableSection;\n const isTopLevelImplicit = !wasInImplicitNode && isImplicit;\n this._inImplicitNode = wasInImplicitNode || isImplicit;\n\n if (!this._isInTranslatableSection && !this._inIcu) {\n if (i18nAttr || isTopLevelImplicit) {\n this._inI18nNode = true;\n const message = this._addMessage(el.children, i18nMeta)!;\n translatedChildNodes = this._translateMessage(el, message);\n }\n\n if (this._mode == _VisitorMode.Extract) {\n const isTranslatable = i18nAttr || isTopLevelImplicit;\n if (isTranslatable) this._openTranslatableSection(el);\n html.visitAll(this, el.children);\n if (isTranslatable) this._closeTranslatableSection(el, el.children);\n }\n } else {\n if (i18nAttr || isTopLevelImplicit) {\n this._reportError(\n el, 'Could not mark an element as translatable inside a translatable section');\n }\n\n if (this._mode == _VisitorMode.Extract) {\n // Descend into child nodes for extraction\n html.visitAll(this, el.children);\n }\n }\n\n if (this._mode === _VisitorMode.Merge) {\n const visitNodes = translatedChildNodes || el.children;\n visitNodes.forEach(child => {\n const visited = child.visit(this, context);\n if (visited && !this._isInTranslatableSection) {\n // Do not add the children from translatable sections (= i18n blocks here)\n // They will be added later in this loop when the block closes (i.e. on `<!-- /i18n -->`)\n childNodes = childNodes.concat(visited);\n }\n });\n }\n\n this._visitAttributesOf(el);\n\n this._depth--;\n this._inI18nNode = wasInI18nNode;\n this._inImplicitNode = wasInImplicitNode;\n\n if (this._mode === _VisitorMode.Merge) {\n const translatedAttrs = this._translateAttributes(el);\n return new html.Element(\n el.name, translatedAttrs, childNodes, el.sourceSpan, el.startSourceSpan,\n el.endSourceSpan);\n }\n return null;\n }\n\n visitAttribute(attribute: html.Attribute, context: any): any {\n throw new Error('unreachable code');\n }\n\n visitBlock(block: html.Block, context: any) {\n html.visitAll(this, block.children, context);\n }\n\n visitBlockParameter(parameter: html.BlockParameter, context: any) {}\n\n private _init(mode: _VisitorMode, interpolationConfig: InterpolationConfig): void {\n this._mode = mode;\n this._inI18nBlock = false;\n this._inI18nNode = false;\n this._depth = 0;\n this._inIcu = false;\n this._msgCountAtSectionStart = undefined;\n this._errors = [];\n this._messages = [];\n this._inImplicitNode = false;\n this._createI18nMessage =\n createI18nMessageFactory(interpolationConfig, DEFAULT_CONTAINER_BLOCKS);\n }\n\n // looks for translatable attributes\n private _visitAttributesOf(el: html.Element): void {\n const explicitAttrNameToValue: {[k: string]: string} = {};\n const implicitAttrNames: string[] = this._implicitAttrs[el.name] || [];\n\n el.attrs.filter(attr => attr.name.startsWith(_I18N_ATTR_PREFIX))\n .forEach(\n attr => explicitAttrNameToValue[attr.name.slice(_I18N_ATTR_PREFIX.length)] =\n attr.value);\n\n el.attrs.forEach(attr => {\n if (attr.name in explicitAttrNameToValue) {\n this._addMessage([attr], explicitAttrNameToValue[attr.name]);\n } else if (implicitAttrNames.some(name => attr.name === name)) {\n this._addMessage([attr]);\n }\n });\n }\n\n // add a translatable message\n private _addMessage(ast: html.Node[], msgMeta?: string): i18n.Message|null {\n if (ast.length == 0 ||\n ast.length == 1 && ast[0] instanceof html.Attribute && !(<html.Attribute>ast[0]).value) {\n // Do not create empty messages\n return null;\n }\n\n const {meaning, description, id} = _parseMessageMeta(msgMeta);\n const message = this._createI18nMessage(ast, meaning, description, id);\n this._messages.push(message);\n return message;\n }\n\n // Translates the given message given the `TranslationBundle`\n // This is used for translating elements / blocks - see `_translateAttributes` for attributes\n // no-op when called in extraction mode (returns [])\n private _translateMessage(el: html.Node, message: i18n.Message): html.Node[] {\n if (message && this._mode === _VisitorMode.Merge) {\n const nodes = this._translations.get(message);\n\n if (nodes) {\n return nodes;\n }\n\n this._reportError(\n el, `Translation unavailable for message id=\"${this._translations.digest(message)}\"`);\n }\n\n return [];\n }\n\n // translate the attributes of an element and remove i18n specific attributes\n private _translateAttributes(el: html.Element): html.Attribute[] {\n const attributes = el.attrs;\n const i18nParsedMessageMeta:\n {[name: string]: {meaning: string, description: string, id: string}} = {};\n\n attributes.forEach(attr => {\n if (attr.name.startsWith(_I18N_ATTR_PREFIX)) {\n i18nParsedMessageMeta[attr.name.slice(_I18N_ATTR_PREFIX.length)] =\n _parseMessageMeta(attr.value);\n }\n });\n\n const translatedAttributes: html.Attribute[] = [];\n\n attributes.forEach((attr) => {\n if (attr.name === _I18N_ATTR || attr.name.startsWith(_I18N_ATTR_PREFIX)) {\n // strip i18n specific attributes\n return;\n }\n\n if (attr.value && attr.value != '' && i18nParsedMessageMeta.hasOwnProperty(attr.name)) {\n const {meaning, description, id} = i18nParsedMessageMeta[attr.name];\n const message: i18n.Message = this._createI18nMessage([attr], meaning, description, id);\n const nodes = this._translations.get(message);\n if (nodes) {\n if (nodes.length == 0) {\n translatedAttributes.push(new html.Attribute(\n attr.name, '', attr.sourceSpan, undefined /* keySpan */, undefined /* valueSpan */,\n undefined /* valueTokens */, undefined /* i18n */));\n } else if (nodes[0] instanceof html.Text) {\n const value = (nodes[0] as html.Text).value;\n translatedAttributes.push(new html.Attribute(\n attr.name, value, attr.sourceSpan, undefined /* keySpan */,\n undefined /* valueSpan */, undefined /* valueTokens */, undefined /* i18n */));\n } else {\n this._reportError(\n el,\n `Unexpected translation for attribute \"${attr.name}\" (id=\"${\n id || this._translations.digest(message)}\")`);\n }\n } else {\n this._reportError(\n el,\n `Translation unavailable for attribute \"${attr.name}\" (id=\"${\n id || this._translations.digest(message)}\")`);\n }\n } else {\n translatedAttributes.push(attr);\n }\n });\n\n return translatedAttributes;\n }\n\n\n /**\n * Add the node as a child of the block when:\n * - we are in a block,\n * - we are not inside a ICU message (those are handled separately),\n * - the node is a \"direct child\" of the block\n */\n private _mayBeAddBlockChildren(node: html.Node): void {\n if (this._inI18nBlock && !this._inIcu && this._depth == this._blockStartDepth) {\n this._blockChildren.push(node);\n }\n }\n\n /**\n * Marks the start of a section, see `_closeTranslatableSection`\n */\n private _openTranslatableSection(node: html.Node): void {\n if (this._isInTranslatableSection) {\n this._reportError(node, 'Unexpected section start');\n } else {\n this._msgCountAtSectionStart = this._messages.length;\n }\n }\n\n /**\n * A translatable section could be:\n * - the content of translatable element,\n * - nodes between `<!-- i18n -->` and `<!-- /i18n -->` comments\n */\n private get _isInTranslatableSection(): boolean {\n return this._msgCountAtSectionStart !== void 0;\n }\n\n /**\n * Terminates a section.\n *\n * If a section has only one significant children (comments not significant) then we should not\n * keep the message from this children:\n *\n * `<p i18n=\"meaning|description\">{ICU message}</p>` would produce two messages:\n * - one for the <p> content with meaning and description,\n * - another one for the ICU message.\n *\n * In this case the last message is discarded as it contains less information (the AST is\n * otherwise identical).\n *\n * Note that we should still keep messages extracted from attributes inside the section (ie in the\n * ICU message here)\n */\n private _closeTranslatableSection(node: html.Node, directChildren: html.Node[]): void {\n if (!this._isInTranslatableSection) {\n this._reportError(node, 'Unexpected section end');\n return;\n }\n\n const startIndex = this._msgCountAtSectionStart;\n const significantChildren: number = directChildren.reduce(\n (count: number, node: html.Node): number => count + (node instanceof html.Comment ? 0 : 1),\n 0);\n\n if (significantChildren == 1) {\n for (let i = this._messages.length - 1; i >= startIndex!; i--) {\n const ast = this._messages[i].nodes;\n if (!(ast.length == 1 && ast[0] instanceof i18n.Text)) {\n this._messages.splice(i, 1);\n break;\n }\n }\n }\n\n this._msgCountAtSectionStart = undefined;\n }\n\n private _reportError(node: html.Node, msg: string): void {\n this._errors.push(new I18nError(node.sourceSpan, msg));\n }\n}\n\nfunction _isOpeningComment(n: html.Node): boolean {\n return !!(n instanceof html.Comment && n.value && n.value.startsWith('i18n'));\n}\n\nfunction _isClosingComment(n: html.Node): boolean {\n return !!(n instanceof html.Comment && n.value && n.value === '/i18n');\n}\n\nfunction _getI18nAttr(p: html.Element): html.Attribute|null {\n return p.attrs.find(attr => attr.name === _I18N_ATTR) || null;\n}\n\nfunction _parseMessageMeta(i18n?: string): {meaning: string, description: string, id: string} {\n if (!i18n) return {meaning: '', description: '', id: ''};\n\n const idIndex = i18n.indexOf(ID_SEPARATOR);\n const descIndex = i18n.indexOf(MEANING_SEPARATOR);\n const [meaningAndDesc, id] =\n (idIndex > -1) ? [i18n.slice(0, idIndex), i18n.slice(idIndex + 2)] : [i18n, ''];\n const [meaning, description] = (descIndex > -1) ?\n [meaningAndDesc.slice(0, descIndex), meaningAndDesc.slice(descIndex + 1)] :\n ['', meaningAndDesc];\n\n return {meaning, description, id: id.trim()};\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {TagContentType, TagDefinition} from './tags';\n\nexport class XmlTagDefinition implements TagDefinition {\n closedByParent: boolean = false;\n implicitNamespacePrefix: string|null = null;\n isVoid: boolean = false;\n ignoreFirstLf: boolean = false;\n canSelfClose: boolean = true;\n preventNamespaceInheritance: boolean = false;\n\n requireExtraParent(currentParent: string): boolean {\n return false;\n }\n\n isClosedByChild(name: string): boolean {\n return false;\n }\n\n getContentType(): TagContentType {\n return TagContentType.PARSABLE_DATA;\n }\n}\n\nconst _TAG_DEFINITION = new XmlTagDefinition();\n\nexport function getXmlTagDefinition(tagName: string): XmlTagDefinition {\n return _TAG_DEFINITION;\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {TokenizeOptions} from './lexer';\nimport {Parser, ParseTreeResult} from './parser';\nimport {getXmlTagDefinition} from './xml_tags';\n\nexport class XmlParser extends Parser {\n constructor() {\n super(getXmlTagDefinition);\n }\n\n override parse(source: string, url: string, options: TokenizeOptions = {}): ParseTreeResult {\n // Blocks aren't supported in an XML context.\n return super.parse(source, url, {...options, tokenizeBlocks: false});\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as ml from '../../ml_parser/ast';\nimport {XmlParser} from '../../ml_parser/xml_parser';\nimport {digest} from '../digest';\nimport * as i18n from '../i18n_ast';\nimport {I18nError} from '../parse_util';\n\nimport {Serializer} from './serializer';\nimport * as xml from './xml_helper';\n\nconst _VERSION = '1.2';\nconst _XMLNS = 'urn:oasis:names:tc:xliff:document:1.2';\n// TODO(vicb): make this a param (s/_/-/)\nconst _DEFAULT_SOURCE_LANG = 'en';\nconst _PLACEHOLDER_TAG = 'x';\nconst _MARKER_TAG = 'mrk';\n\nconst _FILE_TAG = 'file';\nconst _SOURCE_TAG = 'source';\nconst _SEGMENT_SOURCE_TAG = 'seg-source';\nconst _ALT_TRANS_TAG = 'alt-trans';\nconst _TARGET_TAG = 'target';\nconst _UNIT_TAG = 'trans-unit';\nconst _CONTEXT_GROUP_TAG = 'context-group';\nconst _CONTEXT_TAG = 'context';\n\n// https://docs.oasis-open.org/xliff/v1.2/os/xliff-core.html\n// https://docs.oasis-open.org/xliff/v1.2/xliff-profile-html/xliff-profile-html-1.2.html\nexport class Xliff extends Serializer {\n override write(messages: i18n.Message[], locale: string|null): string {\n const visitor = new _WriteVisitor();\n const transUnits: xml.Node[] = [];\n\n messages.forEach(message => {\n let contextTags: xml.Node[] = [];\n message.sources.forEach((source: i18n.MessageSpan) => {\n let contextGroupTag = new xml.Tag(_CONTEXT_GROUP_TAG, {purpose: 'location'});\n contextGroupTag.children.push(\n new xml.CR(10),\n new xml.Tag(\n _CONTEXT_TAG, {'context-type': 'sourcefile'}, [new xml.Text(source.filePath)]),\n new xml.CR(10),\n new xml.Tag(_CONTEXT_TAG, {'context-type': 'linenumber'}, [new xml.Text(\n `${source.startLine}`)]),\n new xml.CR(8));\n contextTags.push(new xml.CR(8), contextGroupTag);\n });\n\n const transUnit = new xml.Tag(_UNIT_TAG, {id: message.id, datatype: 'html'});\n transUnit.children.push(\n new xml.CR(8), new xml.Tag(_SOURCE_TAG, {}, visitor.serialize(message.nodes)),\n ...contextTags);\n\n if (message.description) {\n transUnit.children.push(\n new xml.CR(8),\n new xml.Tag(\n 'note', {priority: '1', from: 'description'}, [new xml.Text(message.description)]));\n }\n\n if (message.meaning) {\n transUnit.children.push(\n new xml.CR(8),\n new xml.Tag('note', {priority: '1', from: 'meaning'}, [new xml.Text(message.meaning)]));\n }\n\n transUnit.children.push(new xml.CR(6));\n\n transUnits.push(new xml.CR(6), transUnit);\n });\n\n const body = new xml.Tag('body', {}, [...transUnits, new xml.CR(4)]);\n const file = new xml.Tag(\n 'file', {\n 'source-language': locale || _DEFAULT_SOURCE_LANG,\n datatype: 'plaintext',\n original: 'ng2.template',\n },\n [new xml.CR(4), body, new xml.CR(2)]);\n const xliff = new xml.Tag(\n 'xliff', {version: _VERSION, xmlns: _XMLNS}, [new xml.CR(2), file, new xml.CR()]);\n\n return xml.serialize([\n new xml.Declaration({version: '1.0', encoding: 'UTF-8'}), new xml.CR(), xliff, new xml.CR()\n ]);\n }\n\n override load(content: string, url: string):\n {locale: string, i18nNodesByMsgId: {[msgId: string]: i18n.Node[]}} {\n // xliff to xml nodes\n const xliffParser = new XliffParser();\n const {locale, msgIdToHtml, errors} = xliffParser.parse(content, url);\n\n // xml nodes to i18n nodes\n const i18nNodesByMsgId: {[msgId: string]: i18n.Node[]} = {};\n const converter = new XmlToI18n();\n\n Object.keys(msgIdToHtml).forEach(msgId => {\n const {i18nNodes, errors: e} = converter.convert(msgIdToHtml[msgId], url);\n errors.push(...e);\n i18nNodesByMsgId[msgId] = i18nNodes;\n });\n\n if (errors.length) {\n throw new Error(`xliff parse errors:\\n${errors.join('\\n')}`);\n }\n\n return {locale: locale!, i18nNodesByMsgId};\n }\n\n override digest(message: i18n.Message): string {\n return digest(message);\n }\n}\n\nclass _WriteVisitor implements i18n.Visitor {\n visitText(text: i18n.Text, context?: any): xml.Node[] {\n return [new xml.Text(text.value)];\n }\n\n visitContainer(container: i18n.Container, context?: any): xml.Node[] {\n const nodes: xml.Node[] = [];\n container.children.forEach((node: i18n.Node) => nodes.push(...node.visit(this)));\n return nodes;\n }\n\n visitIcu(icu: i18n.Icu, context?: any): xml.Node[] {\n const nodes = [new xml.Text(`{${icu.expressionPlaceholder}, ${icu.type}, `)];\n\n Object.keys(icu.cases).forEach((c: string) => {\n nodes.push(new xml.Text(`${c} {`), ...icu.cases[c].visit(this), new xml.Text(`} `));\n });\n\n nodes.push(new xml.Text(`}`));\n\n return nodes;\n }\n\n visitTagPlaceholder(ph: i18n.TagPlaceholder, context?: any): xml.Node[] {\n const ctype = getCtypeForTag(ph.tag);\n\n if (ph.isVoid) {\n // void tags have no children nor closing tags\n return [new xml.Tag(\n _PLACEHOLDER_TAG, {id: ph.startName, ctype, 'equiv-text': `<${ph.tag}/>`})];\n }\n\n const startTagPh =\n new xml.Tag(_PLACEHOLDER_TAG, {id: ph.startName, ctype, 'equiv-text': `<${ph.tag}>`});\n const closeTagPh =\n new xml.Tag(_PLACEHOLDER_TAG, {id: ph.closeName, ctype, 'equiv-text': `</${ph.tag}>`});\n\n return [startTagPh, ...this.serialize(ph.children), closeTagPh];\n }\n\n visitPlaceholder(ph: i18n.Placeholder, context?: any): xml.Node[] {\n return [new xml.Tag(_PLACEHOLDER_TAG, {id: ph.name, 'equiv-text': `{{${ph.value}}}`})];\n }\n\n visitBlockPlaceholder(ph: i18n.BlockPlaceholder, context?: any): xml.Node[] {\n const ctype = `x-${ph.name.toLowerCase().replace(/[^a-z0-9]/g, '-')}`;\n const startTagPh =\n new xml.Tag(_PLACEHOLDER_TAG, {id: ph.startName, ctype, 'equiv-text': `@${ph.name}`});\n const closeTagPh = new xml.Tag(_PLACEHOLDER_TAG, {id: ph.closeName, ctype, 'equiv-text': `}`});\n\n return [startTagPh, ...this.serialize(ph.children), closeTagPh];\n }\n\n visitIcuPlaceholder(ph: i18n.IcuPlaceholder, context?: any): xml.Node[] {\n const equivText = `{${ph.value.expression}, ${ph.value.type}, ${\n Object.keys(ph.value.cases).map((value: string) => value + ' {...}').join(' ')}}`;\n return [new xml.Tag(_PLACEHOLDER_TAG, {id: ph.name, 'equiv-text': equivText})];\n }\n\n serialize(nodes: i18n.Node[]): xml.Node[] {\n return [].concat(...nodes.map(node => node.visit(this)));\n }\n}\n\n// TODO(vicb): add error management (structure)\n// Extract messages as xml nodes from the xliff file\nclass XliffParser implements ml.Visitor {\n // using non-null assertions because they're re(set) by parse()\n private _unitMlString!: string|null;\n private _errors!: I18nError[];\n private _msgIdToHtml!: {[msgId: string]: string};\n private _locale: string|null = null;\n\n parse(xliff: string, url: string) {\n this._unitMlString = null;\n this._msgIdToHtml = {};\n\n const xml = new XmlParser().parse(xliff, url);\n\n this._errors = xml.errors;\n ml.visitAll(this, xml.rootNodes, null);\n\n return {\n msgIdToHtml: this._msgIdToHtml,\n errors: this._errors,\n locale: this._locale,\n };\n }\n\n visitElement(element: ml.Element, context: any): any {\n switch (element.name) {\n case _UNIT_TAG:\n this._unitMlString = null!;\n const idAttr = element.attrs.find((attr) => attr.name === 'id');\n if (!idAttr) {\n this._addError(element, `<${_UNIT_TAG}> misses the \"id\" attribute`);\n } else {\n const id = idAttr.value;\n if (this._msgIdToHtml.hasOwnProperty(id)) {\n this._addError(element, `Duplicated translations for msg ${id}`);\n } else {\n ml.visitAll(this, element.children, null);\n if (typeof this._unitMlString === 'string') {\n this._msgIdToHtml[id] = this._unitMlString;\n } else {\n this._addError(element, `Message ${id} misses a translation`);\n }\n }\n }\n break;\n\n // ignore those tags\n case _SOURCE_TAG:\n case _SEGMENT_SOURCE_TAG:\n case _ALT_TRANS_TAG:\n break;\n\n case _TARGET_TAG:\n const innerTextStart = element.startSourceSpan.end.offset;\n const innerTextEnd = element.endSourceSpan!.start.offset;\n const content = element.startSourceSpan.start.file.content;\n const innerText = content.slice(innerTextStart, innerTextEnd);\n this._unitMlString = innerText;\n break;\n\n case _FILE_TAG:\n const localeAttr = element.attrs.find((attr) => attr.name === 'target-language');\n if (localeAttr) {\n this._locale = localeAttr.value;\n }\n ml.visitAll(this, element.children, null);\n break;\n\n default:\n // TODO(vicb): assert file structure, xliff version\n // For now only recurse on unhandled nodes\n ml.visitAll(this, element.children, null);\n }\n }\n\n visitAttribute(attribute: ml.Attribute, context: any): any {}\n\n visitText(text: ml.Text, context: any): any {}\n\n visitComment(comment: ml.Comment, context: any): any {}\n\n visitExpansion(expansion: ml.Expansion, context: any): any {}\n\n visitExpansionCase(expansionCase: ml.ExpansionCase, context: any): any {}\n\n visitBlock(block: ml.Block, context: any) {}\n\n visitBlockParameter(parameter: ml.BlockParameter, context: any) {}\n\n private _addError(node: ml.Node, message: string): void {\n this._errors.push(new I18nError(node.sourceSpan, message));\n }\n}\n\n// Convert ml nodes (xliff syntax) to i18n nodes\nclass XmlToI18n implements ml.Visitor {\n // using non-null assertion because it's re(set) by convert()\n private _errors!: I18nError[];\n\n convert(message: string, url: string) {\n const xmlIcu = new XmlParser().parse(message, url, {tokenizeExpansionForms: true});\n this._errors = xmlIcu.errors;\n\n const i18nNodes = this._errors.length > 0 || xmlIcu.rootNodes.length == 0 ?\n [] :\n [].concat(...ml.visitAll(this, xmlIcu.rootNodes));\n\n return {\n i18nNodes: i18nNodes,\n errors: this._errors,\n };\n }\n\n visitText(text: ml.Text, context: any) {\n return new i18n.Text(text.value, text.sourceSpan);\n }\n\n visitElement(el: ml.Element, context: any): i18n.Placeholder|ml.Node[]|null {\n if (el.name === _PLACEHOLDER_TAG) {\n const nameAttr = el.attrs.find((attr) => attr.name === 'id');\n if (nameAttr) {\n return new i18n.Placeholder('', nameAttr.value, el.sourceSpan);\n }\n\n this._addError(el, `<${_PLACEHOLDER_TAG}> misses the \"id\" attribute`);\n return null;\n }\n\n if (el.name === _MARKER_TAG) {\n return [].concat(...ml.visitAll(this, el.children));\n }\n\n this._addError(el, `Unexpected tag`);\n return null;\n }\n\n visitExpansion(icu: ml.Expansion, context: any) {\n const caseMap: {[value: string]: i18n.Node} = {};\n\n ml.visitAll(this, icu.cases).forEach((c: any) => {\n caseMap[c.value] = new i18n.Container(c.nodes, icu.sourceSpan);\n });\n\n return new i18n.Icu(icu.switchValue, icu.type, caseMap, icu.sourceSpan);\n }\n\n visitExpansionCase(icuCase: ml.ExpansionCase, context: any): any {\n return {\n value: icuCase.value,\n nodes: ml.visitAll(this, icuCase.expression),\n };\n }\n\n visitComment(comment: ml.Comment, context: any) {}\n\n visitAttribute(attribute: ml.Attribute, context: any) {}\n\n visitBlock(block: ml.Block, context: any) {}\n\n visitBlockParameter(parameter: ml.BlockParameter, context: any) {}\n\n private _addError(node: ml.Node, message: string): void {\n this._errors.push(new I18nError(node.sourceSpan, message));\n }\n}\n\nfunction getCtypeForTag(tag: string): string {\n switch (tag.toLowerCase()) {\n case 'br':\n return 'lb';\n case 'img':\n return 'image';\n default:\n return `x-${tag}`;\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as ml from '../../ml_parser/ast';\nimport {XmlParser} from '../../ml_parser/xml_parser';\nimport {decimalDigest} from '../digest';\nimport * as i18n from '../i18n_ast';\nimport {I18nError} from '../parse_util';\n\nimport {Serializer} from './serializer';\nimport * as xml from './xml_helper';\n\nconst _VERSION = '2.0';\nconst _XMLNS = 'urn:oasis:names:tc:xliff:document:2.0';\n// TODO(vicb): make this a param (s/_/-/)\nconst _DEFAULT_SOURCE_LANG = 'en';\nconst _PLACEHOLDER_TAG = 'ph';\nconst _PLACEHOLDER_SPANNING_TAG = 'pc';\nconst _MARKER_TAG = 'mrk';\n\nconst _XLIFF_TAG = 'xliff';\nconst _SOURCE_TAG = 'source';\nconst _TARGET_TAG = 'target';\nconst _UNIT_TAG = 'unit';\n\n// https://docs.oasis-open.org/xliff/xliff-core/v2.0/os/xliff-core-v2.0-os.html\nexport class Xliff2 extends Serializer {\n override write(messages: i18n.Message[], locale: string|null): string {\n const visitor = new _WriteVisitor();\n const units: xml.Node[] = [];\n\n messages.forEach(message => {\n const unit = new xml.Tag(_UNIT_TAG, {id: message.id});\n const notes = new xml.Tag('notes');\n\n if (message.description || message.meaning) {\n if (message.description) {\n notes.children.push(\n new xml.CR(8),\n new xml.Tag('note', {category: 'description'}, [new xml.Text(message.description)]));\n }\n\n if (message.meaning) {\n notes.children.push(\n new xml.CR(8),\n new xml.Tag('note', {category: 'meaning'}, [new xml.Text(message.meaning)]));\n }\n }\n\n message.sources.forEach((source: i18n.MessageSpan) => {\n notes.children.push(new xml.CR(8), new xml.Tag('note', {category: 'location'}, [\n new xml.Text(`${source.filePath}:${source.startLine}${\n source.endLine !== source.startLine ? ',' + source.endLine : ''}`)\n ]));\n });\n\n notes.children.push(new xml.CR(6));\n unit.children.push(new xml.CR(6), notes);\n\n const segment = new xml.Tag('segment');\n\n segment.children.push(\n new xml.CR(8), new xml.Tag(_SOURCE_TAG, {}, visitor.serialize(message.nodes)),\n new xml.CR(6));\n\n unit.children.push(new xml.CR(6), segment, new xml.CR(4));\n\n units.push(new xml.CR(4), unit);\n });\n\n const file =\n new xml.Tag('file', {'original': 'ng.template', id: 'ngi18n'}, [...units, new xml.CR(2)]);\n\n const xliff = new xml.Tag(\n _XLIFF_TAG, {version: _VERSION, xmlns: _XMLNS, srcLang: locale || _DEFAULT_SOURCE_LANG},\n [new xml.CR(2), file, new xml.CR()]);\n\n return xml.serialize([\n new xml.Declaration({version: '1.0', encoding: 'UTF-8'}), new xml.CR(), xliff, new xml.CR()\n ]);\n }\n\n override load(content: string, url: string):\n {locale: string, i18nNodesByMsgId: {[msgId: string]: i18n.Node[]}} {\n // xliff to xml nodes\n const xliff2Parser = new Xliff2Parser();\n const {locale, msgIdToHtml, errors} = xliff2Parser.parse(content, url);\n\n // xml nodes to i18n nodes\n const i18nNodesByMsgId: {[msgId: string]: i18n.Node[]} = {};\n const converter = new XmlToI18n();\n\n Object.keys(msgIdToHtml).forEach(msgId => {\n const {i18nNodes, errors: e} = converter.convert(msgIdToHtml[msgId], url);\n errors.push(...e);\n i18nNodesByMsgId[msgId] = i18nNodes;\n });\n\n if (errors.length) {\n throw new Error(`xliff2 parse errors:\\n${errors.join('\\n')}`);\n }\n\n return {locale: locale!, i18nNodesByMsgId};\n }\n\n override digest(message: i18n.Message): string {\n return decimalDigest(message);\n }\n}\n\nclass _WriteVisitor implements i18n.Visitor {\n private _nextPlaceholderId = 0;\n\n visitText(text: i18n.Text, context?: any): xml.Node[] {\n return [new xml.Text(text.value)];\n }\n\n visitContainer(container: i18n.Container, context?: any): xml.Node[] {\n const nodes: xml.Node[] = [];\n container.children.forEach((node: i18n.Node) => nodes.push(...node.visit(this)));\n return nodes;\n }\n\n visitIcu(icu: i18n.Icu, context?: any): xml.Node[] {\n const nodes = [new xml.Text(`{${icu.expressionPlaceholder}, ${icu.type}, `)];\n\n Object.keys(icu.cases).forEach((c: string) => {\n nodes.push(new xml.Text(`${c} {`), ...icu.cases[c].visit(this), new xml.Text(`} `));\n });\n\n nodes.push(new xml.Text(`}`));\n\n return nodes;\n }\n\n visitTagPlaceholder(ph: i18n.TagPlaceholder, context?: any): xml.Node[] {\n const type = getTypeForTag(ph.tag);\n\n if (ph.isVoid) {\n const tagPh = new xml.Tag(_PLACEHOLDER_TAG, {\n id: (this._nextPlaceholderId++).toString(),\n equiv: ph.startName,\n type: type,\n disp: `<${ph.tag}/>`,\n });\n return [tagPh];\n }\n\n const tagPc = new xml.Tag(_PLACEHOLDER_SPANNING_TAG, {\n id: (this._nextPlaceholderId++).toString(),\n equivStart: ph.startName,\n equivEnd: ph.closeName,\n type: type,\n dispStart: `<${ph.tag}>`,\n dispEnd: `</${ph.tag}>`,\n });\n const nodes: xml.Node[] = [].concat(...ph.children.map(node => node.visit(this)));\n if (nodes.length) {\n nodes.forEach((node: xml.Node) => tagPc.children.push(node));\n } else {\n tagPc.children.push(new xml.Text(''));\n }\n\n return [tagPc];\n }\n\n visitPlaceholder(ph: i18n.Placeholder, context?: any): xml.Node[] {\n const idStr = (this._nextPlaceholderId++).toString();\n return [new xml.Tag(_PLACEHOLDER_TAG, {\n id: idStr,\n equiv: ph.name,\n disp: `{{${ph.value}}}`,\n })];\n }\n\n visitBlockPlaceholder(ph: i18n.BlockPlaceholder, context?: any): xml.Node[] {\n const tagPc = new xml.Tag(_PLACEHOLDER_SPANNING_TAG, {\n id: (this._nextPlaceholderId++).toString(),\n equivStart: ph.startName,\n equivEnd: ph.closeName,\n type: 'other',\n dispStart: `@${ph.name}`,\n dispEnd: `}`,\n });\n const nodes: xml.Node[] = [].concat(...ph.children.map(node => node.visit(this)));\n if (nodes.length) {\n nodes.forEach((node: xml.Node) => tagPc.children.push(node));\n } else {\n tagPc.children.push(new xml.Text(''));\n }\n\n return [tagPc];\n }\n\n visitIcuPlaceholder(ph: i18n.IcuPlaceholder, context?: any): xml.Node[] {\n const cases = Object.keys(ph.value.cases).map((value: string) => value + ' {...}').join(' ');\n const idStr = (this._nextPlaceholderId++).toString();\n return [new xml.Tag(\n _PLACEHOLDER_TAG,\n {id: idStr, equiv: ph.name, disp: `{${ph.value.expression}, ${ph.value.type}, ${cases}}`})];\n }\n\n serialize(nodes: i18n.Node[]): xml.Node[] {\n this._nextPlaceholderId = 0;\n return [].concat(...nodes.map(node => node.visit(this)));\n }\n}\n\n// Extract messages as xml nodes from the xliff file\nclass Xliff2Parser implements ml.Visitor {\n // using non-null assertions because they're all (re)set by parse()\n private _unitMlString!: string|null;\n private _errors!: I18nError[];\n private _msgIdToHtml!: {[msgId: string]: string};\n private _locale: string|null = null;\n\n parse(xliff: string, url: string) {\n this._unitMlString = null;\n this._msgIdToHtml = {};\n\n const xml = new XmlParser().parse(xliff, url);\n\n this._errors = xml.errors;\n ml.visitAll(this, xml.rootNodes, null);\n\n return {\n msgIdToHtml: this._msgIdToHtml,\n errors: this._errors,\n locale: this._locale,\n };\n }\n\n visitElement(element: ml.Element, context: any): any {\n switch (element.name) {\n case _UNIT_TAG:\n this._unitMlString = null;\n const idAttr = element.attrs.find((attr) => attr.name === 'id');\n if (!idAttr) {\n this._addError(element, `<${_UNIT_TAG}> misses the \"id\" attribute`);\n } else {\n const id = idAttr.value;\n if (this._msgIdToHtml.hasOwnProperty(id)) {\n this._addError(element, `Duplicated translations for msg ${id}`);\n } else {\n ml.visitAll(this, element.children, null);\n if (typeof this._unitMlString === 'string') {\n this._msgIdToHtml[id] = this._unitMlString;\n } else {\n this._addError(element, `Message ${id} misses a translation`);\n }\n }\n }\n break;\n\n case _SOURCE_TAG:\n // ignore source message\n break;\n\n case _TARGET_TAG:\n const innerTextStart = element.startSourceSpan.end.offset;\n const innerTextEnd = element.endSourceSpan!.start.offset;\n const content = element.startSourceSpan.start.file.content;\n const innerText = content.slice(innerTextStart, innerTextEnd);\n this._unitMlString = innerText;\n break;\n\n case _XLIFF_TAG:\n const localeAttr = element.attrs.find((attr) => attr.name === 'trgLang');\n if (localeAttr) {\n this._locale = localeAttr.value;\n }\n\n const versionAttr = element.attrs.find((attr) => attr.name === 'version');\n if (versionAttr) {\n const version = versionAttr.value;\n if (version !== '2.0') {\n this._addError(\n element,\n `The XLIFF file version ${version} is not compatible with XLIFF 2.0 serializer`);\n } else {\n ml.visitAll(this, element.children, null);\n }\n }\n break;\n default:\n ml.visitAll(this, element.children, null);\n }\n }\n\n visitAttribute(attribute: ml.Attribute, context: any): any {}\n\n visitText(text: ml.Text, context: any): any {}\n\n visitComment(comment: ml.Comment, context: any): any {}\n\n visitExpansion(expansion: ml.Expansion, context: any): any {}\n\n visitExpansionCase(expansionCase: ml.ExpansionCase, context: any): any {}\n\n visitBlock(block: ml.Block, context: any) {}\n\n visitBlockParameter(parameter: ml.BlockParameter, context: any) {}\n\n private _addError(node: ml.Node, message: string): void {\n this._errors.push(new I18nError(node.sourceSpan, message));\n }\n}\n\n// Convert ml nodes (xliff syntax) to i18n nodes\nclass XmlToI18n implements ml.Visitor {\n // using non-null assertion because re(set) by convert()\n private _errors!: I18nError[];\n\n convert(message: string, url: string) {\n const xmlIcu = new XmlParser().parse(message, url, {tokenizeExpansionForms: true});\n this._errors = xmlIcu.errors;\n\n const i18nNodes = this._errors.length > 0 || xmlIcu.rootNodes.length == 0 ?\n [] :\n [].concat(...ml.visitAll(this, xmlIcu.rootNodes));\n\n return {\n i18nNodes,\n errors: this._errors,\n };\n }\n\n visitText(text: ml.Text, context: any) {\n return new i18n.Text(text.value, text.sourceSpan);\n }\n\n visitElement(el: ml.Element, context: any): i18n.Node[]|null {\n switch (el.name) {\n case _PLACEHOLDER_TAG:\n const nameAttr = el.attrs.find((attr) => attr.name === 'equiv');\n if (nameAttr) {\n return [new i18n.Placeholder('', nameAttr.value, el.sourceSpan)];\n }\n\n this._addError(el, `<${_PLACEHOLDER_TAG}> misses the \"equiv\" attribute`);\n break;\n case _PLACEHOLDER_SPANNING_TAG:\n const startAttr = el.attrs.find((attr) => attr.name === 'equivStart');\n const endAttr = el.attrs.find((attr) => attr.name === 'equivEnd');\n\n if (!startAttr) {\n this._addError(el, `<${_PLACEHOLDER_TAG}> misses the \"equivStart\" attribute`);\n } else if (!endAttr) {\n this._addError(el, `<${_PLACEHOLDER_TAG}> misses the \"equivEnd\" attribute`);\n } else {\n const startId = startAttr.value;\n const endId = endAttr.value;\n\n const nodes: i18n.Node[] = [];\n\n return nodes.concat(\n new i18n.Placeholder('', startId, el.sourceSpan),\n ...el.children.map(node => node.visit(this, null)),\n new i18n.Placeholder('', endId, el.sourceSpan));\n }\n break;\n case _MARKER_TAG:\n return [].concat(...ml.visitAll(this, el.children));\n default:\n this._addError(el, `Unexpected tag`);\n }\n\n return null;\n }\n\n visitExpansion(icu: ml.Expansion, context: any) {\n const caseMap: {[value: string]: i18n.Node} = {};\n\n ml.visitAll(this, icu.cases).forEach((c: any) => {\n caseMap[c.value] = new i18n.Container(c.nodes, icu.sourceSpan);\n });\n\n return new i18n.Icu(icu.switchValue, icu.type, caseMap, icu.sourceSpan);\n }\n\n visitExpansionCase(icuCase: ml.ExpansionCase, context: any): any {\n return {\n value: icuCase.value,\n nodes: [].concat(...ml.visitAll(this, icuCase.expression)),\n };\n }\n\n visitComment(comment: ml.Comment, context: any) {}\n\n visitAttribute(attribute: ml.Attribute, context: any) {}\n\n visitBlock(block: ml.Block, context: any) {}\n\n visitBlockParameter(parameter: ml.BlockParameter, context: any) {}\n\n private _addError(node: ml.Node, message: string): void {\n this._errors.push(new I18nError(node.sourceSpan, message));\n }\n}\n\nfunction getTypeForTag(tag: string): string {\n switch (tag.toLowerCase()) {\n case 'br':\n case 'b':\n case 'i':\n case 'u':\n return 'fmt';\n case 'img':\n return 'image';\n case 'a':\n return 'link';\n default:\n return 'other';\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport * as ml from '../../ml_parser/ast';\nimport {XmlParser} from '../../ml_parser/xml_parser';\nimport * as i18n from '../i18n_ast';\nimport {I18nError} from '../parse_util';\n\nimport {PlaceholderMapper, Serializer, SimplePlaceholderMapper} from './serializer';\nimport {digest, toPublicName} from './xmb';\n\nconst _TRANSLATIONS_TAG = 'translationbundle';\nconst _TRANSLATION_TAG = 'translation';\nconst _PLACEHOLDER_TAG = 'ph';\n\nexport class Xtb extends Serializer {\n override write(messages: i18n.Message[], locale: string|null): string {\n throw new Error('Unsupported');\n }\n\n override load(content: string, url: string):\n {locale: string, i18nNodesByMsgId: {[msgId: string]: i18n.Node[]}} {\n // xtb to xml nodes\n const xtbParser = new XtbParser();\n const {locale, msgIdToHtml, errors} = xtbParser.parse(content, url);\n\n // xml nodes to i18n nodes\n const i18nNodesByMsgId: {[msgId: string]: i18n.Node[]} = {};\n const converter = new XmlToI18n();\n\n // Because we should be able to load xtb files that rely on features not supported by angular,\n // we need to delay the conversion of html to i18n nodes so that non angular messages are not\n // converted\n Object.keys(msgIdToHtml).forEach(msgId => {\n const valueFn = function() {\n const {i18nNodes, errors} = converter.convert(msgIdToHtml[msgId], url);\n if (errors.length) {\n throw new Error(`xtb parse errors:\\n${errors.join('\\n')}`);\n }\n return i18nNodes;\n };\n createLazyProperty(i18nNodesByMsgId, msgId, valueFn);\n });\n\n if (errors.length) {\n throw new Error(`xtb parse errors:\\n${errors.join('\\n')}`);\n }\n\n return {locale: locale!, i18nNodesByMsgId};\n }\n\n override digest(message: i18n.Message): string {\n return digest(message);\n }\n\n override createNameMapper(message: i18n.Message): PlaceholderMapper {\n return new SimplePlaceholderMapper(message, toPublicName);\n }\n}\n\nfunction createLazyProperty(messages: any, id: string, valueFn: () => any) {\n Object.defineProperty(messages, id, {\n configurable: true,\n enumerable: true,\n get: function() {\n const value = valueFn();\n Object.defineProperty(messages, id, {enumerable: true, value});\n return value;\n },\n set: _ => {\n throw new Error('Could not overwrite an XTB translation');\n },\n });\n}\n\n// Extract messages as xml nodes from the xtb file\nclass XtbParser implements ml.Visitor {\n // using non-null assertions because they're (re)set by parse()\n private _bundleDepth!: number;\n private _errors!: I18nError[];\n private _msgIdToHtml!: {[msgId: string]: string};\n private _locale: string|null = null;\n\n parse(xtb: string, url: string) {\n this._bundleDepth = 0;\n this._msgIdToHtml = {};\n\n // We can not parse the ICU messages at this point as some messages might not originate\n // from Angular that could not be lex'd.\n const xml = new XmlParser().parse(xtb, url);\n\n this._errors = xml.errors;\n ml.visitAll(this, xml.rootNodes);\n\n return {\n msgIdToHtml: this._msgIdToHtml,\n errors: this._errors,\n locale: this._locale,\n };\n }\n\n visitElement(element: ml.Element, context: any): any {\n switch (element.name) {\n case _TRANSLATIONS_TAG:\n this._bundleDepth++;\n if (this._bundleDepth > 1) {\n this._addError(element, `<${_TRANSLATIONS_TAG}> elements can not be nested`);\n }\n const langAttr = element.attrs.find((attr) => attr.name === 'lang');\n if (langAttr) {\n this._locale = langAttr.value;\n }\n ml.visitAll(this, element.children, null);\n this._bundleDepth--;\n break;\n\n case _TRANSLATION_TAG:\n const idAttr = element.attrs.find((attr) => attr.name === 'id');\n if (!idAttr) {\n this._addError(element, `<${_TRANSLATION_TAG}> misses the \"id\" attribute`);\n } else {\n const id = idAttr.value;\n if (this._msgIdToHtml.hasOwnProperty(id)) {\n this._addError(element, `Duplicated translations for msg ${id}`);\n } else {\n const innerTextStart = element.startSourceSpan.end.offset;\n const innerTextEnd = element.endSourceSpan!.start.offset;\n const content = element.startSourceSpan.start.file.content;\n const innerText = content.slice(innerTextStart!, innerTextEnd!);\n this._msgIdToHtml[id] = innerText;\n }\n }\n break;\n\n default:\n this._addError(element, 'Unexpected tag');\n }\n }\n\n visitAttribute(attribute: ml.Attribute, context: any): any {}\n\n visitText(text: ml.Text, context: any): any {}\n\n visitComment(comment: ml.Comment, context: any): any {}\n\n visitExpansion(expansion: ml.Expansion, context: any): any {}\n\n visitExpansionCase(expansionCase: ml.ExpansionCase, context: any): any {}\n\n visitBlock(block: ml.Block, context: any) {}\n\n visitBlockParameter(block: ml.BlockParameter, context: any) {}\n\n private _addError(node: ml.Node, message: string): void {\n this._errors.push(new I18nError(node.sourceSpan, message));\n }\n}\n\n// Convert ml nodes (xtb syntax) to i18n nodes\nclass XmlToI18n implements ml.Visitor {\n // using non-null assertion because it's (re)set by convert()\n private _errors!: I18nError[];\n\n convert(message: string, url: string) {\n const xmlIcu = new XmlParser().parse(message, url, {tokenizeExpansionForms: true});\n this._errors = xmlIcu.errors;\n\n const i18nNodes = this._errors.length > 0 || xmlIcu.rootNodes.length == 0 ?\n [] :\n ml.visitAll(this, xmlIcu.rootNodes);\n\n return {\n i18nNodes,\n errors: this._errors,\n };\n }\n\n visitText(text: ml.Text, context: any) {\n return new i18n.Text(text.value, text.sourceSpan);\n }\n\n visitExpansion(icu: ml.Expansion, context: any) {\n const caseMap: {[value: string]: i18n.Node} = {};\n\n ml.visitAll(this, icu.cases).forEach(c => {\n caseMap[c.value] = new i18n.Container(c.nodes, icu.sourceSpan);\n });\n\n return new i18n.Icu(icu.switchValue, icu.type, caseMap, icu.sourceSpan);\n }\n\n visitExpansionCase(icuCase: ml.ExpansionCase, context: any): any {\n return {\n value: icuCase.value,\n nodes: ml.visitAll(this, icuCase.expression),\n };\n }\n\n visitElement(el: ml.Element, context: any): i18n.Placeholder|null {\n if (el.name === _PLACEHOLDER_TAG) {\n const nameAttr = el.attrs.find((attr) => attr.name === 'name');\n if (nameAttr) {\n return new i18n.Placeholder('', nameAttr.value, el.sourceSpan);\n }\n\n this._addError(el, `<${_PLACEHOLDER_TAG}> misses the \"name\" attribute`);\n } else {\n this._addError(el, `Unexpected tag`);\n }\n return null;\n }\n\n visitComment(comment: ml.Comment, context: any) {}\n\n visitAttribute(attribute: ml.Attribute, context: any) {}\n\n visitBlock(block: ml.Block, context: any) {}\n\n visitBlockParameter(block: ml.BlockParameter, context: any) {}\n\n private _addError(node: ml.Node, message: string): void {\n this._errors.push(new I18nError(node.sourceSpan, message));\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {MissingTranslationStrategy} from '../core';\nimport * as html from '../ml_parser/ast';\nimport {HtmlParser} from '../ml_parser/html_parser';\nimport {Console} from '../util';\n\nimport * as i18n from './i18n_ast';\nimport {I18nError} from './parse_util';\nimport {PlaceholderMapper, Serializer} from './serializers/serializer';\nimport {escapeXml} from './serializers/xml_helper';\n\n\n/**\n * A container for translated messages\n */\nexport class TranslationBundle {\n private _i18nToHtml: I18nToHtmlVisitor;\n\n constructor(\n private _i18nNodesByMsgId: {[msgId: string]: i18n.Node[]} = {}, locale: string|null,\n public digest: (m: i18n.Message) => string,\n public mapperFactory?: (m: i18n.Message) => PlaceholderMapper,\n missingTranslationStrategy: MissingTranslationStrategy = MissingTranslationStrategy.Warning,\n console?: Console) {\n this._i18nToHtml = new I18nToHtmlVisitor(\n _i18nNodesByMsgId, locale, digest, mapperFactory!, missingTranslationStrategy, console);\n }\n\n // Creates a `TranslationBundle` by parsing the given `content` with the `serializer`.\n static load(\n content: string, url: string, serializer: Serializer,\n missingTranslationStrategy: MissingTranslationStrategy,\n console?: Console): TranslationBundle {\n const {locale, i18nNodesByMsgId} = serializer.load(content, url);\n const digestFn = (m: i18n.Message) => serializer.digest(m);\n const mapperFactory = (m: i18n.Message) => serializer.createNameMapper(m)!;\n return new TranslationBundle(\n i18nNodesByMsgId, locale, digestFn, mapperFactory, missingTranslationStrategy, console);\n }\n\n // Returns the translation as HTML nodes from the given source message.\n get(srcMsg: i18n.Message): html.Node[] {\n const html = this._i18nToHtml.convert(srcMsg);\n\n if (html.errors.length) {\n throw new Error(html.errors.join('\\n'));\n }\n\n return html.nodes;\n }\n\n has(srcMsg: i18n.Message): boolean {\n return this.digest(srcMsg) in this._i18nNodesByMsgId;\n }\n}\n\nclass I18nToHtmlVisitor implements i18n.Visitor {\n // using non-null assertions because they're (re)set by convert()\n private _srcMsg!: i18n.Message;\n private _errors: I18nError[] = [];\n private _contextStack: {msg: i18n.Message, mapper: (name: string) => string}[] = [];\n private _mapper!: (name: string) => string;\n\n constructor(\n private _i18nNodesByMsgId: {[msgId: string]: i18n.Node[]} = {}, private _locale: string|null,\n private _digest: (m: i18n.Message) => string,\n private _mapperFactory: (m: i18n.Message) => PlaceholderMapper,\n private _missingTranslationStrategy: MissingTranslationStrategy, private _console?: Console) {\n }\n\n convert(srcMsg: i18n.Message): {nodes: html.Node[], errors: I18nError[]} {\n this._contextStack.length = 0;\n this._errors.length = 0;\n\n // i18n to text\n const text = this._convertToText(srcMsg);\n\n // text to html\n const url = srcMsg.nodes[0].sourceSpan.start.file.url;\n const html = new HtmlParser().parse(text, url, {tokenizeExpansionForms: true});\n\n return {\n nodes: html.rootNodes,\n errors: [...this._errors, ...html.errors],\n };\n }\n\n visitText(text: i18n.Text, context?: any): string {\n // `convert()` uses an `HtmlParser` to return `html.Node`s\n // we should then make sure that any special characters are escaped\n return escapeXml(text.value);\n }\n\n visitContainer(container: i18n.Container, context?: any): any {\n return container.children.map(n => n.visit(this)).join('');\n }\n\n visitIcu(icu: i18n.Icu, context?: any): any {\n const cases = Object.keys(icu.cases).map(k => `${k} {${icu.cases[k].visit(this)}}`);\n\n // TODO(vicb): Once all format switch to using expression placeholders\n // we should throw when the placeholder is not in the source message\n const exp = this._srcMsg.placeholders.hasOwnProperty(icu.expression) ?\n this._srcMsg.placeholders[icu.expression].text :\n icu.expression;\n\n return `{${exp}, ${icu.type}, ${cases.join(' ')}}`;\n }\n\n visitPlaceholder(ph: i18n.Placeholder, context?: any): string {\n const phName = this._mapper(ph.name);\n if (this._srcMsg.placeholders.hasOwnProperty(phName)) {\n return this._srcMsg.placeholders[phName].text;\n }\n\n if (this._srcMsg.placeholderToMessage.hasOwnProperty(phName)) {\n return this._convertToText(this._srcMsg.placeholderToMessage[phName]);\n }\n\n this._addError(ph, `Unknown placeholder \"${ph.name}\"`);\n return '';\n }\n\n // Loaded message contains only placeholders (vs tag and icu placeholders).\n // However when a translation can not be found, we need to serialize the source message\n // which can contain tag placeholders\n visitTagPlaceholder(ph: i18n.TagPlaceholder, context?: any): string {\n const tag = `${ph.tag}`;\n const attrs = Object.keys(ph.attrs).map(name => `${name}=\"${ph.attrs[name]}\"`).join(' ');\n if (ph.isVoid) {\n return `<${tag} ${attrs}/>`;\n }\n const children = ph.children.map((c: i18n.Node) => c.visit(this)).join('');\n return `<${tag} ${attrs}>${children}</${tag}>`;\n }\n\n // Loaded message contains only placeholders (vs tag and icu placeholders).\n // However when a translation can not be found, we need to serialize the source message\n // which can contain tag placeholders\n visitIcuPlaceholder(ph: i18n.IcuPlaceholder, context?: any): string {\n // An ICU placeholder references the source message to be serialized\n return this._convertToText(this._srcMsg.placeholderToMessage[ph.name]);\n }\n\n visitBlockPlaceholder(ph: i18n.BlockPlaceholder, context?: any): string {\n const params = ph.parameters.length === 0 ? '' : ` (${ph.parameters.join('; ')})`;\n const children = ph.children.map((c: i18n.Node) => c.visit(this)).join('');\n return `@${ph.name}${params} {${children}}`;\n }\n\n /**\n * Convert a source message to a translated text string:\n * - text nodes are replaced with their translation,\n * - placeholders are replaced with their content,\n * - ICU nodes are converted to ICU expressions.\n */\n private _convertToText(srcMsg: i18n.Message): string {\n const id = this._digest(srcMsg);\n const mapper = this._mapperFactory ? this._mapperFactory(srcMsg) : null;\n let nodes: i18n.Node[];\n\n this._contextStack.push({msg: this._srcMsg, mapper: this._mapper});\n this._srcMsg = srcMsg;\n\n if (this._i18nNodesByMsgId.hasOwnProperty(id)) {\n // When there is a translation use its nodes as the source\n // And create a mapper to convert serialized placeholder names to internal names\n nodes = this._i18nNodesByMsgId[id];\n this._mapper = (name: string) => mapper ? mapper.toInternalName(name)! : name;\n } else {\n // When no translation has been found\n // - report an error / a warning / nothing,\n // - use the nodes from the original message\n // - placeholders are already internal and need no mapper\n if (this._missingTranslationStrategy === MissingTranslationStrategy.Error) {\n const ctx = this._locale ? ` for locale \"${this._locale}\"` : '';\n this._addError(srcMsg.nodes[0], `Missing translation for message \"${id}\"${ctx}`);\n } else if (\n this._console &&\n this._missingTranslationStrategy === MissingTranslationStrategy.Warning) {\n const ctx = this._locale ? ` for locale \"${this._locale}\"` : '';\n this._console.warn(`Missing translation for message \"${id}\"${ctx}`);\n }\n nodes = srcMsg.nodes;\n this._mapper = (name: string) => name;\n }\n const text = nodes.map(node => node.visit(this)).join('');\n const context = this._contextStack.pop()!;\n this._srcMsg = context.msg;\n this._mapper = context.mapper;\n return text;\n }\n\n private _addError(el: i18n.Node, msg: string) {\n this._errors.push(new I18nError(el.sourceSpan, msg));\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {MissingTranslationStrategy} from '../core';\nimport {DEFAULT_INTERPOLATION_CONFIG} from '../ml_parser/defaults';\nimport {HtmlParser} from '../ml_parser/html_parser';\nimport {TokenizeOptions} from '../ml_parser/lexer';\nimport {ParseTreeResult} from '../ml_parser/parser';\nimport {Console} from '../util';\n\nimport {digest} from './digest';\nimport {mergeTranslations} from './extractor_merger';\nimport {Serializer} from './serializers/serializer';\nimport {Xliff} from './serializers/xliff';\nimport {Xliff2} from './serializers/xliff2';\nimport {Xmb} from './serializers/xmb';\nimport {Xtb} from './serializers/xtb';\nimport {TranslationBundle} from './translation_bundle';\n\nexport class I18NHtmlParser implements HtmlParser {\n // @override\n getTagDefinition: any;\n\n private _translationBundle: TranslationBundle;\n\n constructor(\n private _htmlParser: HtmlParser, translations?: string, translationsFormat?: string,\n missingTranslation: MissingTranslationStrategy = MissingTranslationStrategy.Warning,\n console?: Console) {\n if (translations) {\n const serializer = createSerializer(translationsFormat);\n this._translationBundle =\n TranslationBundle.load(translations, 'i18n', serializer, missingTranslation, console);\n } else {\n this._translationBundle =\n new TranslationBundle({}, null, digest, undefined, missingTranslation, console);\n }\n }\n\n parse(source: string, url: string, options: TokenizeOptions = {}): ParseTreeResult {\n const interpolationConfig = options.interpolationConfig || DEFAULT_INTERPOLATION_CONFIG;\n const parseResult = this._htmlParser.parse(source, url, {interpolationConfig, ...options});\n\n if (parseResult.errors.length) {\n return new ParseTreeResult(parseResult.rootNodes, parseResult.errors);\n }\n\n return mergeTranslations(\n parseResult.rootNodes, this._translationBundle, interpolationConfig, [], {});\n }\n}\n\nfunction createSerializer(format?: string): Serializer {\n format = (format || 'xlf').toLowerCase();\n\n switch (format) {\n case 'xmb':\n return new Xmb();\n case 'xtb':\n return new Xtb();\n case 'xliff2':\n case 'xlf2':\n return new Xliff2();\n case 'xliff':\n case 'xlf':\n default:\n return new Xliff();\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {InterpolationConfig} from '../ml_parser/defaults';\nimport {HtmlParser} from '../ml_parser/html_parser';\nimport {ParseError} from '../parse_util';\n\nimport {extractMessages} from './extractor_merger';\nimport * as i18n from './i18n_ast';\nimport {PlaceholderMapper, Serializer} from './serializers/serializer';\n\n\n/**\n * A container for message extracted from the templates.\n */\nexport class MessageBundle {\n private _messages: i18n.Message[] = [];\n\n constructor(\n private _htmlParser: HtmlParser, private _implicitTags: string[],\n private _implicitAttrs: {[k: string]: string[]}, private _locale: string|null = null) {}\n\n updateFromTemplate(html: string, url: string, interpolationConfig: InterpolationConfig):\n ParseError[] {\n const htmlParserResult =\n this._htmlParser.parse(html, url, {tokenizeExpansionForms: true, interpolationConfig});\n\n if (htmlParserResult.errors.length) {\n return htmlParserResult.errors;\n }\n\n const i18nParserResult = extractMessages(\n htmlParserResult.rootNodes, interpolationConfig, this._implicitTags, this._implicitAttrs);\n\n if (i18nParserResult.errors.length) {\n return i18nParserResult.errors;\n }\n\n this._messages.push(...i18nParserResult.messages);\n return [];\n }\n\n // Return the message in the internal format\n // The public (serialized) format might be different, see the `write` method.\n getMessages(): i18n.Message[] {\n return this._messages;\n }\n\n write(serializer: Serializer, filterSources?: (path: string) => string): string {\n const messages: {[id: string]: i18n.Message} = {};\n const mapperVisitor = new MapPlaceholderNames();\n\n // Deduplicate messages based on their ID\n this._messages.forEach(message => {\n const id = serializer.digest(message);\n if (!messages.hasOwnProperty(id)) {\n messages[id] = message;\n } else {\n messages[id].sources.push(...message.sources);\n }\n });\n\n // Transform placeholder names using the serializer mapping\n const msgList = Object.keys(messages).map(id => {\n const mapper = serializer.createNameMapper(messages[id]);\n const src = messages[id];\n const nodes = mapper ? mapperVisitor.convert(src.nodes, mapper) : src.nodes;\n let transformedMessage = new i18n.Message(nodes, {}, {}, src.meaning, src.description, id);\n transformedMessage.sources = src.sources;\n if (filterSources) {\n transformedMessage.sources.forEach(\n (source: i18n.MessageSpan) => source.filePath = filterSources(source.filePath));\n }\n return transformedMessage;\n });\n\n return serializer.write(msgList, this._locale);\n }\n}\n\n// Transform an i18n AST by renaming the placeholder nodes with the given mapper\nclass MapPlaceholderNames extends i18n.CloneVisitor {\n convert(nodes: i18n.Node[], mapper: PlaceholderMapper): i18n.Node[] {\n return mapper ? nodes.map(n => n.visit(this, mapper)) : nodes;\n }\n\n override visitTagPlaceholder(ph: i18n.TagPlaceholder, mapper: PlaceholderMapper):\n i18n.TagPlaceholder {\n const startName = mapper.toPublicName(ph.startName)!;\n const closeName = ph.closeName ? mapper.toPublicName(ph.closeName)! : ph.closeName;\n const children = ph.children.map(n => n.visit(this, mapper));\n return new i18n.TagPlaceholder(\n ph.tag, ph.attrs, startName, closeName, children, ph.isVoid, ph.sourceSpan,\n ph.startSourceSpan, ph.endSourceSpan);\n }\n\n override visitBlockPlaceholder(ph: i18n.BlockPlaceholder, mapper: PlaceholderMapper):\n i18n.BlockPlaceholder {\n const startName = mapper.toPublicName(ph.startName)!;\n const closeName = ph.closeName ? mapper.toPublicName(ph.closeName)! : ph.closeName;\n const children = ph.children.map(n => n.visit(this, mapper));\n return new i18n.BlockPlaceholder(\n ph.name, ph.parameters, startName, closeName, children, ph.sourceSpan, ph.startSourceSpan,\n ph.endSourceSpan);\n }\n\n override visitPlaceholder(ph: i18n.Placeholder, mapper: PlaceholderMapper): i18n.Placeholder {\n return new i18n.Placeholder(ph.value, mapper.toPublicName(ph.name)!, ph.sourceSpan);\n }\n\n override visitIcuPlaceholder(ph: i18n.IcuPlaceholder, mapper: PlaceholderMapper):\n i18n.IcuPlaceholder {\n return new i18n.IcuPlaceholder(ph.value, mapper.toPublicName(ph.name)!, ph.sourceSpan);\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nimport {ChangeDetectionStrategy, ViewEncapsulation} from '../../core';\nimport * as o from '../../output/output_ast';\n\nexport interface R3PartialDeclaration {\n /**\n * The minimum version of the compiler that can process this partial declaration.\n */\n minVersion: string;\n\n /**\n * Version number of the Angular compiler that was used to compile this declaration. The linker\n * will be able to detect which version a library is using and interpret its metadata accordingly.\n */\n version: string;\n\n /**\n * A reference to the `@angular/core` ES module, which allows access\n * to all Angular exports, including Ivy instructions.\n */\n ngImport: o.Expression;\n\n /**\n * Reference to the decorated class, which is subject to this partial declaration.\n */\n type: o.Expression;\n}\n\n// TODO(legacy-partial-output-inputs): Remove in v18.\n// https://github.com/angular/angular/blob/d4b423690210872b5c32a322a6090beda30b05a3/packages/core/src/compiler/compiler_facade_interface.ts#L197-L199\nexport type LegacyInputPartialMapping = string|\n [bindingPropertyName: string, classPropertyName: string, transformFunction?: o.Expression];\n\n/**\n * Describes the shape of the object that the `ɵɵngDeclareDirective()` function accepts.\n */\nexport interface R3DeclareDirectiveMetadata extends R3PartialDeclaration {\n /**\n * Unparsed selector of the directive.\n */\n selector?: string;\n\n /**\n * A mapping of inputs from class property names to binding property names, or to a tuple of\n * binding property name and class property name if the names are different.\n */\n inputs?: {\n [fieldName: string]: {\n classPropertyName: string,\n publicName: string,\n isSignal: boolean,\n isRequired: boolean,\n transformFunction: o.Expression|null,\n }|LegacyInputPartialMapping;\n };\n\n /**\n * A mapping of outputs from class property names to binding property names.\n */\n outputs?: {[classPropertyName: string]: string};\n\n /**\n * Information about host bindings present on the component.\n */\n host?: {\n /**\n * A mapping of attribute names to their value expression.\n */\n attributes?: {[key: string]: o.Expression};\n\n /**\n * A mapping of event names to their unparsed event handler expression.\n */\n listeners: {[key: string]: string};\n\n /**\n * A mapping of bound properties to their unparsed binding expression.\n */\n properties?: {[key: string]: string};\n\n /**\n * The value of the class attribute, if present. This is stored outside of `attributes` as its\n * string value must be known statically.\n */\n classAttribute?: string;\n\n /**\n * The value of the style attribute, if present. This is stored outside of `attributes` as its\n * string value must be known statically.\n */\n styleAttribute?: string;\n };\n\n /**\n * Information about the content queries made by the directive.\n */\n queries?: R3DeclareQueryMetadata[];\n\n /**\n * Information about the view queries made by the directive.\n */\n viewQueries?: R3DeclareQueryMetadata[];\n\n /**\n * The list of providers provided by the directive.\n */\n providers?: o.Expression;\n\n /**\n * The names by which the directive is exported.\n */\n exportAs?: string[];\n\n /**\n * Whether the directive has an inheritance clause. Defaults to false.\n */\n usesInheritance?: boolean;\n\n /**\n * Whether the directive implements the `ngOnChanges` hook. Defaults to false.\n */\n usesOnChanges?: boolean;\n\n /**\n * Whether the directive is standalone. Defaults to false.\n */\n isStandalone?: boolean;\n\n /**\n * Whether the directive is a signal-based directive. Defaults to false.\n */\n isSignal?: boolean;\n\n /**\n * Additional directives applied to the directive host.\n */\n hostDirectives?: R3DeclareHostDirectiveMetadata[];\n}\n\n/**\n * Describes the shape of the object that the `ɵɵngDeclareComponent()` function accepts.\n */\nexport interface R3DeclareComponentMetadata extends R3DeclareDirectiveMetadata {\n /**\n * The component's unparsed template string as opaque expression. The template is represented\n * using either a string literal or template literal without substitutions, but its value is\n * not read directly. Instead, the template parser is given the full source file's text and\n * the range of this expression to parse directly from source.\n */\n template: o.Expression;\n\n /**\n * Whether the template was inline (using `template`) or external (using `templateUrl`).\n * Defaults to false.\n */\n isInline?: boolean;\n\n /**\n * CSS from inline styles and included styleUrls.\n */\n styles?: string[];\n\n /**\n * List of components which matched in the template, including sufficient\n * metadata for each directive to attribute bindings and references within\n * the template to each directive specifically, if the runtime instructions\n * support this.\n */\n components?: R3DeclareDirectiveDependencyMetadata[];\n\n /**\n * List of directives which matched in the template, including sufficient\n * metadata for each directive to attribute bindings and references within\n * the template to each directive specifically, if the runtime instructions\n * support this.\n */\n directives?: R3DeclareDirectiveDependencyMetadata[];\n\n /**\n * List of dependencies which matched in the template, including sufficient\n * metadata for each directive/pipe to attribute bindings and references within\n * the template to each directive specifically, if the runtime instructions\n * support this.\n */\n dependencies?: R3DeclareTemplateDependencyMetadata[];\n\n /**\n * A map of pipe names to an expression referencing the pipe type (possibly a forward reference\n * wrapped in a `forwardRef` invocation) which are used in the template.\n */\n pipes?: {[pipeName: string]: o.Expression|(() => o.Expression)};\n\n /**\n * The list of view providers defined in the component.\n */\n viewProviders?: o.Expression;\n\n /**\n * A collection of animation triggers that will be used in the component template.\n */\n animations?: o.Expression;\n\n /**\n * Strategy used for detecting changes in the component.\n * Defaults to `ChangeDetectionStrategy.Default`.\n */\n changeDetection?: ChangeDetectionStrategy;\n\n /**\n * An encapsulation policy for the component's styling.\n * Defaults to `ViewEncapsulation.Emulated`.\n */\n encapsulation?: ViewEncapsulation;\n\n /**\n * Overrides the default interpolation start and end delimiters. Defaults to {{ and }}.\n */\n interpolation?: [string, string];\n\n /**\n * Whether whitespace in the template should be preserved. Defaults to false.\n */\n preserveWhitespaces?: boolean;\n}\n\nexport type R3DeclareTemplateDependencyMetadata = R3DeclareDirectiveDependencyMetadata|\n R3DeclarePipeDependencyMetadata|R3DeclareNgModuleDependencyMetadata;\n\nexport interface R3DeclareDirectiveDependencyMetadata {\n kind: 'directive'|'component';\n\n /**\n * Selector of the directive.\n */\n selector: string;\n\n /**\n * Reference to the directive class (possibly a forward reference wrapped in a `forwardRef`\n * invocation).\n */\n type: o.Expression|(() => o.Expression);\n\n /**\n * Property names of the directive's inputs.\n */\n inputs?: string[];\n\n /**\n * Event names of the directive's outputs.\n */\n outputs?: string[];\n\n /**\n * Names by which this directive exports itself for references.\n */\n exportAs?: string[];\n}\n\nexport interface R3DeclarePipeDependencyMetadata {\n kind: 'pipe';\n\n name: string;\n\n /**\n * Reference to the pipe class (possibly a forward reference wrapped in a `forwardRef`\n * invocation).\n */\n type: o.Expression|(() => o.Expression);\n}\n\nexport interface R3DeclareNgModuleDependencyMetadata {\n kind: 'ngmodule';\n\n type: o.Expression|(() => o.Expression);\n}\n\nexport interface R3DeclareQueryMetadata {\n /**\n * Name of the property on the class to update with query results.\n */\n propertyName: string;\n\n /**\n * Whether to read only the first matching result, or an array of results. Defaults to false.\n */\n first?: boolean;\n\n /**\n * Either an expression representing a type (possibly wrapped in a `forwardRef()`) or\n * `InjectionToken` for the query predicate, or a set of string selectors.\n */\n predicate: o.Expression|string[];\n\n /**\n * Whether to include only direct children or all descendants. Defaults to false.\n */\n descendants?: boolean;\n\n /**\n * True to only fire changes if there are underlying changes to the query.\n */\n emitDistinctChangesOnly?: boolean;\n\n /**\n * An expression representing a type to read from each matched node, or null if the default value\n * for a given node is to be returned.\n */\n read?: o.Expression;\n\n /**\n * Whether or not this query should collect only static results. Defaults to false.\n *\n * If static is true, the query's results will be set on the component after nodes are created,\n * but before change detection runs. This means that any results that relied upon change detection\n * to run (e.g. results inside *ngIf or *ngFor views) will not be collected. Query results are\n * available in the ngOnInit hook.\n *\n * If static is false, the query's results will be set on the component after change detection\n * runs. This means that the query results can contain nodes inside *ngIf or *ngFor views, but\n * the results will not be available in the ngOnInit hook (only in the ngAfterContentInit for\n * content hooks and ngAfterViewInit for view hooks).\n */\n static?: boolean;\n}\n\n/**\n * Describes the shape of the objects that the `ɵɵngDeclareNgModule()` accepts.\n */\nexport interface R3DeclareNgModuleMetadata extends R3PartialDeclaration {\n /**\n * An array of expressions representing the bootstrap components specified by the module.\n */\n bootstrap?: o.Expression[];\n\n /**\n * An array of expressions representing the directives and pipes declared by the module.\n */\n declarations?: o.Expression[];\n\n /**\n * An array of expressions representing the imports of the module.\n */\n imports?: o.Expression[];\n\n /**\n * An array of expressions representing the exports of the module.\n */\n exports?: o.Expression[];\n\n /**\n * The set of schemas that declare elements to be allowed in the NgModule.\n */\n schemas?: o.Expression[];\n\n /** Unique ID or expression representing the unique ID of an NgModule. */\n id?: o.Expression;\n}\n\n/**\n * Describes the shape of the objects that the `ɵɵngDeclareInjector()` accepts.\n */\nexport interface R3DeclareInjectorMetadata extends R3PartialDeclaration {\n /**\n * The list of providers provided by the injector.\n */\n providers?: o.Expression;\n /**\n * The list of imports into the injector.\n */\n imports?: o.Expression[];\n}\n\n/**\n * Describes the shape of the object that the `ɵɵngDeclarePipe()` function accepts.\n *\n * This interface serves primarily as documentation, as conformance to this interface is not\n * enforced during linking.\n */\nexport interface R3DeclarePipeMetadata extends R3PartialDeclaration {\n /**\n * The name to use in templates to refer to this pipe.\n */\n name: string;\n\n /**\n * Whether this pipe is \"pure\".\n *\n * A pure pipe's `transform()` method is only invoked when its input arguments change.\n *\n * Default: true.\n */\n pure?: boolean;\n\n /**\n * Whether the pipe is standalone.\n *\n * Default: false.\n */\n isStandalone?: boolean;\n}\n\n\n/**\n * Describes the shape of the object that the `ɵɵngDeclareFactory()` function accepts.\n *\n * This interface serves primarily as documentation, as conformance to this interface is not\n * enforced during linking.\n */\nexport interface R3DeclareFactoryMetadata extends R3PartialDeclaration {\n /**\n * A collection of dependencies that this factory relies upon.\n *\n * If this is `null`, then the type's constructor is nonexistent and will be inherited from an\n * ancestor of the type.\n *\n * If this is `'invalid'`, then one or more of the parameters wasn't resolvable and any attempt to\n * use these deps will result in a runtime error.\n */\n deps: R3DeclareDependencyMetadata[]|'invalid'|null;\n\n /**\n * Type of the target being created by the factory.\n */\n target: FactoryTarget;\n}\n\nexport enum FactoryTarget {\n Directive = 0,\n Component = 1,\n Injectable = 2,\n Pipe = 3,\n NgModule = 4,\n}\n\n/**\n * Describes the shape of the object that the `ɵɵngDeclareInjectable()` function accepts.\n *\n * This interface serves primarily as documentation, as conformance to this interface is not\n * enforced during linking.\n */\nexport interface R3DeclareInjectableMetadata extends R3PartialDeclaration {\n /**\n * If provided, specifies that the declared injectable belongs to a particular injector:\n * - `InjectorType` such as `NgModule`,\n * - `'root'` the root injector\n * - `'any'` all injectors.\n * If not provided, then it does not belong to any injector. Must be explicitly listed in the\n * providers of an injector.\n */\n providedIn?: o.Expression;\n\n /**\n * If provided, an expression that evaluates to a class to use when creating an instance of this\n * injectable.\n */\n useClass?: o.Expression;\n\n /**\n * If provided, an expression that evaluates to a function to use when creating an instance of\n * this injectable.\n */\n useFactory?: o.Expression;\n\n /**\n * If provided, an expression that evaluates to a token of another injectable that this injectable\n * aliases.\n */\n useExisting?: o.Expression;\n\n /**\n * If provided, an expression that evaluates to the value of the instance of this injectable.\n */\n useValue?: o.Expression;\n\n /**\n * An array of dependencies to support instantiating this injectable via `useClass` or\n * `useFactory`.\n */\n deps?: R3DeclareDependencyMetadata[];\n}\n\n/**\n * Metadata indicating how a dependency should be injected into a factory.\n */\nexport interface R3DeclareDependencyMetadata {\n /**\n * An expression representing the token or value to be injected, or `null` if the dependency is\n * not valid.\n *\n * If this dependency is due to the `@Attribute()` decorator, then this is an expression\n * evaluating to the name of the attribute.\n */\n token: o.Expression|null;\n\n /**\n * Whether the dependency is injecting an attribute value.\n * Default: false.\n */\n attribute?: boolean;\n\n /**\n * Whether the dependency has an @Host qualifier.\n * Default: false,\n */\n host?: boolean;\n\n /**\n * Whether the dependency has an @Optional qualifier.\n * Default: false,\n */\n optional?: boolean;\n\n /**\n * Whether the dependency has an @Self qualifier.\n * Default: false,\n */\n self?: boolean;\n\n /**\n * Whether the dependency has an @SkipSelf qualifier.\n * Default: false,\n */\n skipSelf?: boolean;\n}\n\n/**\n * Describes the shape of the object that the `ɵɵngDeclareClassMetadata()` function accepts.\n *\n * This interface serves primarily as documentation, as conformance to this interface is not\n * enforced during linking.\n */\nexport interface R3DeclareClassMetadata extends R3PartialDeclaration {\n /**\n * The Angular decorators of the class.\n */\n decorators: o.Expression;\n\n /**\n * Optionally specifies the constructor parameters, their types and the Angular decorators of each\n * parameter. This property is omitted if the class does not have a constructor.\n */\n ctorParameters?: o.Expression;\n\n /**\n * Optionally specifies the Angular decorators applied to the class properties. This property is\n * omitted if no properties have any decorators.\n */\n propDecorators?: o.Expression;\n}\n\n/**\n * Describes the shape of the object literal that can be\n * passed in as a part of the `hostDirectives` array.\n */\nexport interface R3DeclareHostDirectiveMetadata {\n directive: o.Expression;\n inputs?: string[];\n outputs?: string[];\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nimport * as o from '../output/output_ast';\n\nimport {Identifiers as R3} from './r3_identifiers';\nimport {devOnlyGuardedExpression} from './util';\n\nexport type CompileClassMetadataFn = (metadata: R3ClassMetadata) => o.Expression;\n\n/**\n * Metadata of a class which captures the original Angular decorators of a class. The original\n * decorators are preserved in the generated code to allow TestBed APIs to recompile the class\n * using the original decorator with a set of overrides applied.\n */\nexport interface R3ClassMetadata {\n /**\n * The class type for which the metadata is captured.\n */\n type: o.Expression;\n\n /**\n * An expression representing the Angular decorators that were applied on the class.\n */\n decorators: o.Expression;\n\n /**\n * An expression representing the Angular decorators applied to constructor parameters, or `null`\n * if there is no constructor.\n */\n ctorParameters: o.Expression|null;\n\n /**\n * An expression representing the Angular decorators that were applied on the properties of the\n * class, or `null` if no properties have decorators.\n */\n propDecorators: o.Expression|null;\n}\n\nexport function compileClassMetadata(metadata: R3ClassMetadata): o.Expression {\n // Generate an ngDevMode guarded call to setClassMetadata with the class identifier and its\n // metadata.\n const fnCall = o.importExpr(R3.setClassMetadata).callFn([\n metadata.type,\n metadata.decorators,\n metadata.ctorParameters ?? o.literal(null),\n metadata.propDecorators ?? o.literal(null),\n ]);\n const iife = o.arrowFn([], [devOnlyGuardedExpression(fnCall).toStmt()]);\n return iife.callFn([]);\n}\n\n/**\n * Wraps the `setClassMetadata` function with extra logic that dynamically\n * loads dependencies from `@defer` blocks.\n *\n * Generates a call like this:\n * ```\n * setClassMetadataAsync(type, () => [\n * import('./cmp-a').then(m => m.CmpA);\n * import('./cmp-b').then(m => m.CmpB);\n * ], (CmpA, CmpB) => {\n * setClassMetadata(type, decorators, ctorParameters, propParameters);\n * });\n * ```\n *\n * Similar to the `setClassMetadata` call, it's wrapped into the `ngDevMode`\n * check to tree-shake away this code in production mode.\n */\nexport function compileComponentClassMetadata(\n metadata: R3ClassMetadata,\n deferrableTypes: Map<string, {importPath: string, isDefaultImport: boolean}>|\n null): o.Expression {\n if (deferrableTypes === null || deferrableTypes.size === 0) {\n // If there are no deferrable symbols - just generate a regular `setClassMetadata` call.\n return compileClassMetadata(metadata);\n }\n\n const dynamicImports: o.Expression[] = [];\n const importedSymbols: o.FnParam[] = [];\n for (const [symbolName, {importPath, isDefaultImport}] of deferrableTypes) {\n // e.g. `(m) => m.CmpA`\n const innerFn =\n // Default imports are always accessed through the `default` property.\n o.arrowFn(\n [new o.FnParam('m', o.DYNAMIC_TYPE)],\n o.variable('m').prop(isDefaultImport ? 'default' : symbolName));\n\n // e.g. `import('./cmp-a').then(...)`\n const importExpr = (new o.DynamicImportExpr(importPath)).prop('then').callFn([innerFn]);\n\n dynamicImports.push(importExpr);\n importedSymbols.push(new o.FnParam(symbolName, o.DYNAMIC_TYPE));\n }\n\n // e.g. `() => [ ... ];`\n const dependencyLoadingFn = o.arrowFn([], o.literalArr(dynamicImports));\n\n // e.g. `setClassMetadata(...)`\n const setClassMetadataCall = o.importExpr(R3.setClassMetadata).callFn([\n metadata.type,\n metadata.decorators,\n metadata.ctorParameters ?? o.literal(null),\n metadata.propDecorators ?? o.literal(null),\n ]);\n\n // e.g. `(CmpA) => setClassMetadata(...)`\n const setClassMetaWrapper = o.arrowFn(importedSymbols, [setClassMetadataCall.toStmt()]);\n\n // Final `setClassMetadataAsync()` call with all arguments\n const setClassMetaAsync = o.importExpr(R3.setClassMetadataAsync).callFn([\n metadata.type, dependencyLoadingFn, setClassMetaWrapper\n ]);\n\n // Generate an ngDevMode guarded call to `setClassMetadataAsync` with\n // the class identifier and its metadata, so that this call can be tree-shaken.\n const iife = o.arrowFn([], [devOnlyGuardedExpression(setClassMetaAsync).toStmt()]);\n return iife.callFn([]);\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {mapLiteral} from '../output/map_util';\nimport * as o from '../output/output_ast';\n\nimport {Identifiers as R3} from './r3_identifiers';\nimport {devOnlyGuardedExpression} from './util';\n\n/**\n * Info needed for runtime errors related to a class, such as the location in which the class is\n * defined.\n */\nexport interface R3ClassDebugInfo {\n /** The class identifier */\n type: o.Expression;\n\n /**\n * A string literal containing the original class name as appears in its definition.\n */\n className: o.Expression;\n\n /**\n * A string literal containing the relative path of the file in which the class is defined.\n *\n * The path is relative to the project root. The compiler does the best effort to find the project\n * root (e.g., using the rootDir of tsconfig), but if it fails this field is set to null,\n * indicating that the file path was failed to be computed. In this case, the downstream consumers\n * of the debug info will usually ignore the `lineNumber` field as well and just show the\n * `className`. For security reasons we never show the absolute file path and prefer to just\n * return null here.\n */\n filePath: o.Expression|null;\n\n /**\n * A number literal number containing the line number in which this class is defined.\n */\n lineNumber: o.Expression;\n\n /**\n * Whether to check if this component is being rendered without its NgModule being loaded into the\n * browser. Such checks is carried out only in dev mode.\n */\n forbidOrphanRendering: boolean;\n}\n\n/**\n * Generate an ngDevMode guarded call to setClassDebugInfo with the debug info about the class\n * (e.g., the file name in which the class is defined)\n */\nexport function compileClassDebugInfo(debugInfo: R3ClassDebugInfo): o.Expression {\n const debugInfoObject: {\n className: o.Expression;\n filePath?: o.Expression;\n lineNumber?: o.Expression;\n forbidOrphanRendering?: o.Expression;\n } = {\n className: debugInfo.className,\n };\n\n // Include file path and line number only if the file relative path is calculated successfully.\n if (debugInfo.filePath) {\n debugInfoObject.filePath = debugInfo.filePath;\n debugInfoObject.lineNumber = debugInfo.lineNumber;\n }\n\n // Include forbidOrphanRendering only if it's set to true (to reduce generated code)\n if (debugInfo.forbidOrphanRendering) {\n debugInfoObject.forbidOrphanRendering = o.literal(true);\n }\n\n const fnCall = o.importExpr(R3.setClassDebugInfo).callFn([\n debugInfo.type,\n mapLiteral(debugInfoObject),\n ]);\n const iife = o.arrowFn([], [devOnlyGuardedExpression(fnCall).toStmt()]);\n return iife.callFn([]);\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nimport * as o from '../../output/output_ast';\nimport {R3ClassMetadata} from '../r3_class_metadata_compiler';\nimport {Identifiers as R3} from '../r3_identifiers';\nimport {DefinitionMap} from '../view/util';\n\nimport {R3DeclareClassMetadata} from './api';\n\n/**\n * Every time we make a breaking change to the declaration interface or partial-linker behavior, we\n * must update this constant to prevent old partial-linkers from incorrectly processing the\n * declaration.\n *\n * Do not include any prerelease in these versions as they are ignored.\n */\nconst MINIMUM_PARTIAL_LINKER_VERSION = '12.0.0';\n\nexport function compileDeclareClassMetadata(metadata: R3ClassMetadata): o.Expression {\n const definitionMap = new DefinitionMap<R3DeclareClassMetadata>();\n definitionMap.set('minVersion', o.literal(MINIMUM_PARTIAL_LINKER_VERSION));\n definitionMap.set('version', o.literal('17.1.3'));\n definitionMap.set('ngImport', o.importExpr(R3.core));\n definitionMap.set('type', metadata.type);\n definitionMap.set('decorators', metadata.decorators);\n definitionMap.set('ctorParameters', metadata.ctorParameters);\n definitionMap.set('propDecorators', metadata.propDecorators);\n\n return o.importExpr(R3.declareClassMetadata).callFn([definitionMap.toLiteralMap()]);\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nimport * as o from '../../output/output_ast';\nimport {R3DependencyMetadata} from '../r3_factory';\nimport {DefinitionMap} from '../view/util';\n\nimport {R3DeclareDependencyMetadata} from './api';\n\n/**\n * Creates an array literal expression from the given array, mapping all values to an expression\n * using the provided mapping function. If the array is empty or null, then null is returned.\n *\n * @param values The array to transfer into literal array expression.\n * @param mapper The logic to use for creating an expression for the array's values.\n * @returns An array literal expression representing `values`, or null if `values` is empty or\n * is itself null.\n */\nexport function toOptionalLiteralArray<T>(\n values: T[]|null, mapper: (value: T) => o.Expression): o.LiteralArrayExpr|null {\n if (values === null || values.length === 0) {\n return null;\n }\n return o.literalArr(values.map(value => mapper(value)));\n}\n\n/**\n * Creates an object literal expression from the given object, mapping all values to an expression\n * using the provided mapping function. If the object has no keys, then null is returned.\n *\n * @param object The object to transfer into an object literal expression.\n * @param mapper The logic to use for creating an expression for the object's values.\n * @returns An object literal expression representing `object`, or null if `object` does not have\n * any keys.\n */\nexport function toOptionalLiteralMap<T>(\n object: {[key: string]: T}, mapper: (value: T) => o.Expression): o.LiteralMapExpr|null {\n const entries = Object.keys(object).map(key => {\n const value = object[key];\n return {key, value: mapper(value), quoted: true};\n });\n\n if (entries.length > 0) {\n return o.literalMap(entries);\n } else {\n return null;\n }\n}\n\nexport function compileDependencies(deps: R3DependencyMetadata[]|'invalid'|null): o.LiteralExpr|\n o.LiteralArrayExpr {\n if (deps === 'invalid') {\n // The `deps` can be set to the string \"invalid\" by the `unwrapConstructorDependencies()`\n // function, which tries to convert `ConstructorDeps` into `R3DependencyMetadata[]`.\n return o.literal('invalid');\n } else if (deps === null) {\n return o.literal(null);\n } else {\n return o.literalArr(deps.map(compileDependency));\n }\n}\n\nexport function compileDependency(dep: R3DependencyMetadata): o.LiteralMapExpr {\n const depMeta = new DefinitionMap<R3DeclareDependencyMetadata>();\n depMeta.set('token', dep.token);\n if (dep.attributeNameType !== null) {\n depMeta.set('attribute', o.literal(true));\n }\n if (dep.host) {\n depMeta.set('host', o.literal(true));\n }\n if (dep.optional) {\n depMeta.set('optional', o.literal(true));\n }\n if (dep.self) {\n depMeta.set('self', o.literal(true));\n }\n if (dep.skipSelf) {\n depMeta.set('skipSelf', o.literal(true));\n }\n return depMeta.toLiteralMap();\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nimport * as o from '../../output/output_ast';\nimport {Identifiers as R3} from '../r3_identifiers';\nimport {convertFromMaybeForwardRefExpression, generateForwardRef, R3CompiledExpression} from '../util';\nimport {R3DirectiveMetadata, R3HostMetadata, R3QueryMetadata} from '../view/api';\nimport {createDirectiveType, createHostDirectivesMappingArray} from '../view/compiler';\nimport {asLiteral, conditionallyCreateDirectiveBindingLiteral, DefinitionMap, UNSAFE_OBJECT_KEY_NAME_REGEXP} from '../view/util';\n\nimport {R3DeclareDirectiveMetadata, R3DeclareQueryMetadata} from './api';\nimport {toOptionalLiteralMap} from './util';\n\n/**\n * Compile a directive declaration defined by the `R3DirectiveMetadata`.\n */\nexport function compileDeclareDirectiveFromMetadata(meta: R3DirectiveMetadata):\n R3CompiledExpression {\n const definitionMap = createDirectiveDefinitionMap(meta);\n\n const expression = o.importExpr(R3.declareDirective).callFn([definitionMap.toLiteralMap()]);\n const type = createDirectiveType(meta);\n\n return {expression, type, statements: []};\n}\n\n/**\n * Gathers the declaration fields for a directive into a `DefinitionMap`. This allows for reusing\n * this logic for components, as they extend the directive metadata.\n */\nexport function createDirectiveDefinitionMap(meta: R3DirectiveMetadata):\n DefinitionMap<R3DeclareDirectiveMetadata> {\n const definitionMap = new DefinitionMap<R3DeclareDirectiveMetadata>();\n const minVersion = getMinimumVersionForPartialOutput(meta);\n\n definitionMap.set('minVersion', o.literal(minVersion));\n definitionMap.set('version', o.literal('17.1.3'));\n\n // e.g. `type: MyDirective`\n definitionMap.set('type', meta.type.value);\n\n if (meta.isStandalone) {\n definitionMap.set('isStandalone', o.literal(meta.isStandalone));\n }\n if (meta.isSignal) {\n definitionMap.set('isSignal', o.literal(meta.isSignal));\n }\n\n // e.g. `selector: 'some-dir'`\n if (meta.selector !== null) {\n definitionMap.set('selector', o.literal(meta.selector));\n }\n\n definitionMap.set(\n 'inputs',\n needsNewInputPartialOutput(meta) ? createInputsPartialMetadata(meta.inputs) :\n legacyInputsPartialMetadata(meta.inputs));\n definitionMap.set('outputs', conditionallyCreateDirectiveBindingLiteral(meta.outputs));\n\n definitionMap.set('host', compileHostMetadata(meta.host));\n\n definitionMap.set('providers', meta.providers);\n\n if (meta.queries.length > 0) {\n definitionMap.set('queries', o.literalArr(meta.queries.map(compileQuery)));\n }\n\n if (meta.viewQueries.length > 0) {\n definitionMap.set('viewQueries', o.literalArr(meta.viewQueries.map(compileQuery)));\n }\n\n if (meta.exportAs !== null) {\n definitionMap.set('exportAs', asLiteral(meta.exportAs));\n }\n\n if (meta.usesInheritance) {\n definitionMap.set('usesInheritance', o.literal(true));\n }\n\n if (meta.lifecycle.usesOnChanges) {\n definitionMap.set('usesOnChanges', o.literal(true));\n }\n\n if (meta.hostDirectives?.length) {\n definitionMap.set('hostDirectives', createHostDirectives(meta.hostDirectives));\n }\n\n definitionMap.set('ngImport', o.importExpr(R3.core));\n\n return definitionMap;\n}\n\n/**\n * Determines the minimum linker version for the partial output\n * generated for this directive.\n *\n * Every time we make a breaking change to the declaration interface or partial-linker\n * behavior, we must update the minimum versions to prevent old partial-linkers from\n * incorrectly processing the declaration.\n *\n * NOTE: Do not include any prerelease in these versions as they are ignored.\n */\nfunction getMinimumVersionForPartialOutput(meta: R3DirectiveMetadata): string {\n // We are starting with the oldest minimum version that can work for common\n // directive partial compilation output. As we discover usages of new features\n // that require a newer partial output emit, we bump the `minVersion`. Our goal\n // is to keep libraries as much compatible with older linker versions as possible.\n let minVersion = '14.0.0';\n\n // Note: in order to allow consuming Angular libraries that have been compiled with 16.1+ in\n // Angular 16.0, we only force a minimum version of 16.1 if input transform feature as introduced\n // in 16.1 is actually used.\n const hasDecoratorTransformFunctions =\n Object.values(meta.inputs).some(input => input.transformFunction !== null);\n if (hasDecoratorTransformFunctions) {\n minVersion = '16.1.0';\n }\n\n // If there are input flags and we need the new emit, use the actual minimum version,\n // where this was introduced. i.e. in 17.1.0\n // TODO(legacy-partial-output-inputs): Remove in v18.\n if (needsNewInputPartialOutput(meta)) {\n minVersion = '17.1.0';\n }\n\n return minVersion;\n}\n\n/**\n * Gets whether the given directive needs the new input partial output structure\n * that can hold additional metadata like `isRequired`, `isSignal` etc.\n */\nfunction needsNewInputPartialOutput(meta: R3DirectiveMetadata): boolean {\n return Object.values(meta.inputs).some(input => input.isSignal);\n}\n\n/**\n * Compiles the metadata of a single query into its partial declaration form as declared\n * by `R3DeclareQueryMetadata`.\n */\nfunction compileQuery(query: R3QueryMetadata): o.LiteralMapExpr {\n const meta = new DefinitionMap<R3DeclareQueryMetadata>();\n meta.set('propertyName', o.literal(query.propertyName));\n if (query.first) {\n meta.set('first', o.literal(true));\n }\n meta.set(\n 'predicate',\n Array.isArray(query.predicate) ? asLiteral(query.predicate) :\n convertFromMaybeForwardRefExpression(query.predicate));\n if (!query.emitDistinctChangesOnly) {\n // `emitDistinctChangesOnly` is special because we expect it to be `true`.\n // Therefore we explicitly emit the field, and explicitly place it only when it's `false`.\n meta.set('emitDistinctChangesOnly', o.literal(false));\n } else {\n // The linker will assume that an absent `emitDistinctChangesOnly` flag is by default `true`.\n }\n if (query.descendants) {\n meta.set('descendants', o.literal(true));\n }\n meta.set('read', query.read);\n if (query.static) {\n meta.set('static', o.literal(true));\n }\n return meta.toLiteralMap();\n}\n\n/**\n * Compiles the host metadata into its partial declaration form as declared\n * in `R3DeclareDirectiveMetadata['host']`\n */\nfunction compileHostMetadata(meta: R3HostMetadata): o.LiteralMapExpr|null {\n const hostMetadata = new DefinitionMap<NonNullable<R3DeclareDirectiveMetadata['host']>>();\n hostMetadata.set('attributes', toOptionalLiteralMap(meta.attributes, expression => expression));\n hostMetadata.set('listeners', toOptionalLiteralMap(meta.listeners, o.literal));\n hostMetadata.set('properties', toOptionalLiteralMap(meta.properties, o.literal));\n\n if (meta.specialAttributes.styleAttr) {\n hostMetadata.set('styleAttribute', o.literal(meta.specialAttributes.styleAttr));\n }\n if (meta.specialAttributes.classAttr) {\n hostMetadata.set('classAttribute', o.literal(meta.specialAttributes.classAttr));\n }\n\n if (hostMetadata.values.length > 0) {\n return hostMetadata.toLiteralMap();\n } else {\n return null;\n }\n}\n\nfunction createHostDirectives(hostDirectives: NonNullable<R3DirectiveMetadata['hostDirectives']>):\n o.LiteralArrayExpr {\n const expressions = hostDirectives.map(current => {\n const keys = [{\n key: 'directive',\n value: current.isForwardReference ? generateForwardRef(current.directive.type) :\n current.directive.type,\n quoted: false\n }];\n const inputsLiteral = current.inputs ? createHostDirectivesMappingArray(current.inputs) : null;\n const outputsLiteral =\n current.outputs ? createHostDirectivesMappingArray(current.outputs) : null;\n\n if (inputsLiteral) {\n keys.push({key: 'inputs', value: inputsLiteral, quoted: false});\n }\n\n if (outputsLiteral) {\n keys.push({key: 'outputs', value: outputsLiteral, quoted: false});\n }\n\n return o.literalMap(keys);\n });\n\n // If there's a forward reference, we generate a `function() { return [{directive: HostDir}] }`,\n // otherwise we can save some bytes by using a plain array, e.g. `[{directive: HostDir}]`.\n return o.literalArr(expressions);\n}\n\n/**\n * Generates partial output metadata for inputs of a directive.\n *\n * The generated structure is expected to match `R3DeclareDirectiveFacade['inputs']`.\n */\nfunction createInputsPartialMetadata(inputs: R3DirectiveMetadata['inputs']): o.Expression|null {\n const keys = Object.getOwnPropertyNames(inputs);\n if (keys.length === 0) {\n return null;\n }\n\n return o.literalMap(keys.map(declaredName => {\n const value = inputs[declaredName];\n\n return {\n key: declaredName,\n // put quotes around keys that contain potentially unsafe characters\n quoted: UNSAFE_OBJECT_KEY_NAME_REGEXP.test(declaredName),\n value: o.literalMap([\n {key: 'classPropertyName', quoted: false, value: asLiteral(value.classPropertyName)},\n {key: 'publicName', quoted: false, value: asLiteral(value.bindingPropertyName)},\n {key: 'isSignal', quoted: false, value: asLiteral(value.isSignal)},\n {key: 'isRequired', quoted: false, value: asLiteral(value.required)},\n {key: 'transformFunction', quoted: false, value: value.transformFunction ?? o.NULL_EXPR},\n ])\n };\n }));\n}\n\n/**\n * Pre v18 legacy partial output for inputs.\n *\n * Previously, inputs did not capture metadata like `isSignal` in the partial compilation output.\n * To enable capturing such metadata, we restructured how input metadata is communicated in the\n * partial output. This would make libraries incompatible with older Angular FW versions where the\n * linker would not know how to handle this new \"format\". For this reason, if we know this metadata\n * does not need to be captured- we fall back to the old format. This is what this function\n * generates.\n *\n * See:\n * https://github.com/angular/angular/blob/d4b423690210872b5c32a322a6090beda30b05a3/packages/core/src/compiler/compiler_facade_interface.ts#L197-L199\n */\nfunction legacyInputsPartialMetadata(inputs: R3DirectiveMetadata['inputs']): o.Expression|null {\n // TODO(legacy-partial-output-inputs): Remove function in v18.\n\n const keys = Object.getOwnPropertyNames(inputs);\n if (keys.length === 0) {\n return null;\n }\n\n return o.literalMap(keys.map(declaredName => {\n const value = inputs[declaredName];\n const publicName = value.bindingPropertyName;\n const differentDeclaringName = publicName !== declaredName;\n let result: o.Expression;\n\n if (differentDeclaringName || value.transformFunction !== null) {\n const values = [asLiteral(publicName), asLiteral(declaredName)];\n if (value.transformFunction !== null) {\n values.push(value.transformFunction);\n }\n result = o.literalArr(values);\n } else {\n result = asLiteral(publicName);\n }\n\n return {\n key: declaredName,\n // put quotes around keys that contain potentially unsafe characters\n quoted: UNSAFE_OBJECT_KEY_NAME_REGEXP.test(declaredName),\n value: result,\n };\n }));\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nimport * as core from '../../core';\nimport {DEFAULT_INTERPOLATION_CONFIG} from '../../ml_parser/defaults';\nimport * as o from '../../output/output_ast';\nimport {ParseLocation, ParseSourceFile, ParseSourceSpan} from '../../parse_util';\nimport {RecursiveVisitor, visitAll} from '../r3_ast';\nimport {Identifiers as R3} from '../r3_identifiers';\nimport {generateForwardRef, R3CompiledExpression} from '../util';\nimport {DeclarationListEmitMode, R3ComponentMetadata, R3TemplateDependencyKind, R3TemplateDependencyMetadata} from '../view/api';\nimport {createComponentType} from '../view/compiler';\nimport {ParsedTemplate} from '../view/template';\nimport {DefinitionMap} from '../view/util';\n\nimport {R3DeclareComponentMetadata, R3DeclareDirectiveDependencyMetadata, R3DeclareNgModuleDependencyMetadata, R3DeclarePipeDependencyMetadata} from './api';\nimport {createDirectiveDefinitionMap} from './directive';\nimport {toOptionalLiteralArray} from './util';\n\nexport interface DeclareComponentTemplateInfo {\n /**\n * The string contents of the template.\n *\n * This is the \"logical\" template string, after expansion of any escaped characters (for inline\n * templates). This may differ from the actual template bytes as they appear in the .ts file.\n */\n content: string;\n\n /**\n * A full path to the file which contains the template.\n *\n * This can be either the original .ts file if the template is inline, or the .html file if an\n * external file was used.\n */\n sourceUrl: string;\n\n /**\n * Whether the template was inline (using `template`) or external (using `templateUrl`).\n */\n isInline: boolean;\n\n /**\n * If the template was defined inline by a direct string literal, then this is that literal\n * expression. Otherwise `null`, if the template was not defined inline or was not a literal.\n */\n inlineTemplateLiteralExpression: o.Expression|null;\n}\n\n/**\n * Compile a component declaration defined by the `R3ComponentMetadata`.\n */\nexport function compileDeclareComponentFromMetadata(\n meta: R3ComponentMetadata<R3TemplateDependencyMetadata>, template: ParsedTemplate,\n additionalTemplateInfo: DeclareComponentTemplateInfo): R3CompiledExpression {\n const definitionMap = createComponentDefinitionMap(meta, template, additionalTemplateInfo);\n\n const expression = o.importExpr(R3.declareComponent).callFn([definitionMap.toLiteralMap()]);\n const type = createComponentType(meta);\n\n return {expression, type, statements: []};\n}\n\n/**\n * Gathers the declaration fields for a component into a `DefinitionMap`.\n */\nexport function createComponentDefinitionMap(\n meta: R3ComponentMetadata<R3TemplateDependencyMetadata>, template: ParsedTemplate,\n templateInfo: DeclareComponentTemplateInfo): DefinitionMap<R3DeclareComponentMetadata> {\n const definitionMap: DefinitionMap<R3DeclareComponentMetadata> =\n createDirectiveDefinitionMap(meta);\n const blockVisitor = new BlockPresenceVisitor();\n visitAll(blockVisitor, template.nodes);\n\n definitionMap.set('template', getTemplateExpression(template, templateInfo));\n\n if (templateInfo.isInline) {\n definitionMap.set('isInline', o.literal(true));\n }\n\n // Set the minVersion to 17.0.0 if the component is using at least one block in its template.\n // We don't do this for templates without blocks, in order to preserve backwards compatibility.\n if (blockVisitor.hasBlocks) {\n definitionMap.set('minVersion', o.literal('17.0.0'));\n }\n\n definitionMap.set('styles', toOptionalLiteralArray(meta.styles, o.literal));\n definitionMap.set('dependencies', compileUsedDependenciesMetadata(meta));\n definitionMap.set('viewProviders', meta.viewProviders);\n definitionMap.set('animations', meta.animations);\n\n if (meta.changeDetection !== null) {\n if (typeof meta.changeDetection === 'object') {\n throw new Error('Impossible state! Change detection flag is not resolved!');\n }\n\n definitionMap.set(\n 'changeDetection',\n o.importExpr(R3.ChangeDetectionStrategy)\n .prop(core.ChangeDetectionStrategy[meta.changeDetection]));\n }\n if (meta.encapsulation !== core.ViewEncapsulation.Emulated) {\n definitionMap.set(\n 'encapsulation',\n o.importExpr(R3.ViewEncapsulation).prop(core.ViewEncapsulation[meta.encapsulation]));\n }\n if (meta.interpolation !== DEFAULT_INTERPOLATION_CONFIG) {\n definitionMap.set(\n 'interpolation',\n o.literalArr([o.literal(meta.interpolation.start), o.literal(meta.interpolation.end)]));\n }\n\n if (template.preserveWhitespaces === true) {\n definitionMap.set('preserveWhitespaces', o.literal(true));\n }\n\n return definitionMap;\n}\n\nfunction getTemplateExpression(\n template: ParsedTemplate, templateInfo: DeclareComponentTemplateInfo): o.Expression {\n // If the template has been defined using a direct literal, we use that expression directly\n // without any modifications. This is ensures proper source mapping from the partially\n // compiled code to the source file declaring the template. Note that this does not capture\n // template literals referenced indirectly through an identifier.\n if (templateInfo.inlineTemplateLiteralExpression !== null) {\n return templateInfo.inlineTemplateLiteralExpression;\n }\n\n // If the template is defined inline but not through a literal, the template has been resolved\n // through static interpretation. We create a literal but cannot provide any source span. Note\n // that we cannot use the expression defining the template because the linker expects the template\n // to be defined as a literal in the declaration.\n if (templateInfo.isInline) {\n return o.literal(templateInfo.content, null, null);\n }\n\n // The template is external so we must synthesize an expression node with\n // the appropriate source-span.\n const contents = templateInfo.content;\n const file = new ParseSourceFile(contents, templateInfo.sourceUrl);\n const start = new ParseLocation(file, 0, 0, 0);\n const end = computeEndLocation(file, contents);\n const span = new ParseSourceSpan(start, end);\n return o.literal(contents, null, span);\n}\n\nfunction computeEndLocation(file: ParseSourceFile, contents: string): ParseLocation {\n const length = contents.length;\n let lineStart = 0;\n let lastLineStart = 0;\n let line = 0;\n do {\n lineStart = contents.indexOf('\\n', lastLineStart);\n if (lineStart !== -1) {\n lastLineStart = lineStart + 1;\n line++;\n }\n } while (lineStart !== -1);\n\n return new ParseLocation(file, length, line, length - lastLineStart);\n}\n\nfunction compileUsedDependenciesMetadata(meta: R3ComponentMetadata<R3TemplateDependencyMetadata>):\n o.LiteralArrayExpr|null {\n const wrapType = meta.declarationListEmitMode !== DeclarationListEmitMode.Direct ?\n generateForwardRef :\n (expr: o.Expression) => expr;\n\n if (meta.declarationListEmitMode === DeclarationListEmitMode.RuntimeResolved) {\n throw new Error(`Unsupported emit mode`);\n }\n\n return toOptionalLiteralArray(meta.declarations, decl => {\n switch (decl.kind) {\n case R3TemplateDependencyKind.Directive:\n const dirMeta = new DefinitionMap<R3DeclareDirectiveDependencyMetadata>();\n dirMeta.set('kind', o.literal(decl.isComponent ? 'component' : 'directive'));\n dirMeta.set('type', wrapType(decl.type));\n dirMeta.set('selector', o.literal(decl.selector));\n dirMeta.set('inputs', toOptionalLiteralArray(decl.inputs, o.literal));\n dirMeta.set('outputs', toOptionalLiteralArray(decl.outputs, o.literal));\n dirMeta.set('exportAs', toOptionalLiteralArray(decl.exportAs, o.literal));\n return dirMeta.toLiteralMap();\n case R3TemplateDependencyKind.Pipe:\n const pipeMeta = new DefinitionMap<R3DeclarePipeDependencyMetadata>();\n pipeMeta.set('kind', o.literal('pipe'));\n pipeMeta.set('type', wrapType(decl.type));\n pipeMeta.set('name', o.literal(decl.name));\n return pipeMeta.toLiteralMap();\n case R3TemplateDependencyKind.NgModule:\n const ngModuleMeta = new DefinitionMap<R3DeclareNgModuleDependencyMetadata>();\n ngModuleMeta.set('kind', o.literal('ngmodule'));\n ngModuleMeta.set('type', wrapType(decl.type));\n return ngModuleMeta.toLiteralMap();\n }\n });\n}\n\nclass BlockPresenceVisitor extends RecursiveVisitor {\n hasBlocks = false;\n\n override visitDeferredBlock(): void {\n this.hasBlocks = true;\n }\n\n override visitDeferredBlockPlaceholder(): void {\n this.hasBlocks = true;\n }\n\n override visitDeferredBlockLoading(): void {\n this.hasBlocks = true;\n }\n\n override visitDeferredBlockError(): void {\n this.hasBlocks = true;\n }\n\n override visitIfBlock(): void {\n this.hasBlocks = true;\n }\n\n override visitIfBlockBranch(): void {\n this.hasBlocks = true;\n }\n\n override visitForLoopBlock(): void {\n this.hasBlocks = true;\n }\n\n override visitForLoopBlockEmpty(): void {\n this.hasBlocks = true;\n }\n\n override visitSwitchBlock(): void {\n this.hasBlocks = true;\n }\n\n override visitSwitchBlockCase(): void {\n this.hasBlocks = true;\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nimport * as o from '../../output/output_ast';\nimport {createFactoryType, FactoryTarget, R3FactoryMetadata} from '../r3_factory';\nimport {Identifiers as R3} from '../r3_identifiers';\nimport {R3CompiledExpression} from '../util';\nimport {DefinitionMap} from '../view/util';\n\nimport {R3DeclareFactoryMetadata} from './api';\nimport {compileDependencies} from './util';\n\n/**\n * Every time we make a breaking change to the declaration interface or partial-linker behavior, we\n * must update this constant to prevent old partial-linkers from incorrectly processing the\n * declaration.\n *\n * Do not include any prerelease in these versions as they are ignored.\n */\nconst MINIMUM_PARTIAL_LINKER_VERSION = '12.0.0';\n\nexport function compileDeclareFactoryFunction(meta: R3FactoryMetadata): R3CompiledExpression {\n const definitionMap = new DefinitionMap<R3DeclareFactoryMetadata>();\n definitionMap.set('minVersion', o.literal(MINIMUM_PARTIAL_LINKER_VERSION));\n definitionMap.set('version', o.literal('17.1.3'));\n definitionMap.set('ngImport', o.importExpr(R3.core));\n definitionMap.set('type', meta.type.value);\n definitionMap.set('deps', compileDependencies(meta.deps));\n definitionMap.set('target', o.importExpr(R3.FactoryTarget).prop(FactoryTarget[meta.target]));\n\n return {\n expression: o.importExpr(R3.declareFactory).callFn([definitionMap.toLiteralMap()]),\n statements: [],\n type: createFactoryType(meta),\n };\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nimport {createInjectableType, R3InjectableMetadata} from '../../injectable_compiler_2';\nimport * as o from '../../output/output_ast';\nimport {Identifiers as R3} from '../r3_identifiers';\nimport {convertFromMaybeForwardRefExpression, R3CompiledExpression} from '../util';\nimport {DefinitionMap} from '../view/util';\n\nimport {R3DeclareInjectableMetadata} from './api';\nimport {compileDependency} from './util';\n\n/**\n * Every time we make a breaking change to the declaration interface or partial-linker behavior, we\n * must update this constant to prevent old partial-linkers from incorrectly processing the\n * declaration.\n *\n * Do not include any prerelease in these versions as they are ignored.\n */\nconst MINIMUM_PARTIAL_LINKER_VERSION = '12.0.0';\n\n/**\n * Compile a Injectable declaration defined by the `R3InjectableMetadata`.\n */\nexport function compileDeclareInjectableFromMetadata(meta: R3InjectableMetadata):\n R3CompiledExpression {\n const definitionMap = createInjectableDefinitionMap(meta);\n\n const expression = o.importExpr(R3.declareInjectable).callFn([definitionMap.toLiteralMap()]);\n const type = createInjectableType(meta);\n\n return {expression, type, statements: []};\n}\n\n/**\n * Gathers the declaration fields for a Injectable into a `DefinitionMap`.\n */\nexport function createInjectableDefinitionMap(meta: R3InjectableMetadata):\n DefinitionMap<R3DeclareInjectableMetadata> {\n const definitionMap = new DefinitionMap<R3DeclareInjectableMetadata>();\n\n definitionMap.set('minVersion', o.literal(MINIMUM_PARTIAL_LINKER_VERSION));\n definitionMap.set('version', o.literal('17.1.3'));\n definitionMap.set('ngImport', o.importExpr(R3.core));\n definitionMap.set('type', meta.type.value);\n\n // Only generate providedIn property if it has a non-null value\n if (meta.providedIn !== undefined) {\n const providedIn = convertFromMaybeForwardRefExpression(meta.providedIn);\n if ((providedIn as o.LiteralExpr).value !== null) {\n definitionMap.set('providedIn', providedIn);\n }\n }\n\n if (meta.useClass !== undefined) {\n definitionMap.set('useClass', convertFromMaybeForwardRefExpression(meta.useClass));\n }\n if (meta.useExisting !== undefined) {\n definitionMap.set('useExisting', convertFromMaybeForwardRefExpression(meta.useExisting));\n }\n if (meta.useValue !== undefined) {\n definitionMap.set('useValue', convertFromMaybeForwardRefExpression(meta.useValue));\n }\n // Factories do not contain `ForwardRef`s since any types are already wrapped in a function call\n // so the types will not be eagerly evaluated. Therefore we do not need to process this expression\n // with `convertFromProviderExpression()`.\n if (meta.useFactory !== undefined) {\n definitionMap.set('useFactory', meta.useFactory);\n }\n\n if (meta.deps !== undefined) {\n definitionMap.set('deps', o.literalArr(meta.deps.map(compileDependency)));\n }\n\n return definitionMap;\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nimport * as o from '../../output/output_ast';\nimport {Identifiers as R3} from '../r3_identifiers';\nimport {createInjectorType, R3InjectorMetadata} from '../r3_injector_compiler';\nimport {R3CompiledExpression} from '../util';\nimport {DefinitionMap} from '../view/util';\n\nimport {R3DeclareInjectorMetadata} from './api';\n\n/**\n * Every time we make a breaking change to the declaration interface or partial-linker behavior, we\n * must update this constant to prevent old partial-linkers from incorrectly processing the\n * declaration.\n *\n * Do not include any prerelease in these versions as they are ignored.\n */\nconst MINIMUM_PARTIAL_LINKER_VERSION = '12.0.0';\n\nexport function compileDeclareInjectorFromMetadata(meta: R3InjectorMetadata): R3CompiledExpression {\n const definitionMap = createInjectorDefinitionMap(meta);\n\n const expression = o.importExpr(R3.declareInjector).callFn([definitionMap.toLiteralMap()]);\n const type = createInjectorType(meta);\n\n return {expression, type, statements: []};\n}\n\n/**\n * Gathers the declaration fields for an Injector into a `DefinitionMap`.\n */\nfunction createInjectorDefinitionMap(meta: R3InjectorMetadata):\n DefinitionMap<R3DeclareInjectorMetadata> {\n const definitionMap = new DefinitionMap<R3DeclareInjectorMetadata>();\n\n definitionMap.set('minVersion', o.literal(MINIMUM_PARTIAL_LINKER_VERSION));\n definitionMap.set('version', o.literal('17.1.3'));\n definitionMap.set('ngImport', o.importExpr(R3.core));\n\n definitionMap.set('type', meta.type.value);\n definitionMap.set('providers', meta.providers);\n if (meta.imports.length > 0) {\n definitionMap.set('imports', o.literalArr(meta.imports));\n }\n\n return definitionMap;\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nimport * as o from '../../output/output_ast';\nimport {Identifiers as R3} from '../r3_identifiers';\nimport {createNgModuleType, R3NgModuleMetadata, R3NgModuleMetadataKind} from '../r3_module_compiler';\nimport {R3CompiledExpression, refsToArray} from '../util';\nimport {DefinitionMap} from '../view/util';\n\nimport {R3DeclareNgModuleMetadata} from './api';\n\n/**\n * Every time we make a breaking change to the declaration interface or partial-linker behavior, we\n * must update this constant to prevent old partial-linkers from incorrectly processing the\n * declaration.\n *\n * Do not include any prerelease in these versions as they are ignored.\n */\nconst MINIMUM_PARTIAL_LINKER_VERSION = '14.0.0';\n\nexport function compileDeclareNgModuleFromMetadata(meta: R3NgModuleMetadata): R3CompiledExpression {\n const definitionMap = createNgModuleDefinitionMap(meta);\n\n const expression = o.importExpr(R3.declareNgModule).callFn([definitionMap.toLiteralMap()]);\n const type = createNgModuleType(meta);\n\n return {expression, type, statements: []};\n}\n\n/**\n * Gathers the declaration fields for an NgModule into a `DefinitionMap`.\n */\nfunction createNgModuleDefinitionMap(meta: R3NgModuleMetadata):\n DefinitionMap<R3DeclareNgModuleMetadata> {\n const definitionMap = new DefinitionMap<R3DeclareNgModuleMetadata>();\n\n if (meta.kind === R3NgModuleMetadataKind.Local) {\n throw new Error(\n 'Invalid path! Local compilation mode should not get into the partial compilation path');\n }\n\n definitionMap.set('minVersion', o.literal(MINIMUM_PARTIAL_LINKER_VERSION));\n definitionMap.set('version', o.literal('17.1.3'));\n definitionMap.set('ngImport', o.importExpr(R3.core));\n definitionMap.set('type', meta.type.value);\n\n // We only generate the keys in the metadata if the arrays contain values.\n\n // We must wrap the arrays inside a function if any of the values are a forward reference to a\n // not-yet-declared class. This is to support JIT execution of the `ɵɵngDeclareNgModule()` call.\n // In the linker these wrappers are stripped and then reapplied for the `ɵɵdefineNgModule()` call.\n\n if (meta.bootstrap.length > 0) {\n definitionMap.set('bootstrap', refsToArray(meta.bootstrap, meta.containsForwardDecls));\n }\n\n if (meta.declarations.length > 0) {\n definitionMap.set('declarations', refsToArray(meta.declarations, meta.containsForwardDecls));\n }\n\n if (meta.imports.length > 0) {\n definitionMap.set('imports', refsToArray(meta.imports, meta.containsForwardDecls));\n }\n\n if (meta.exports.length > 0) {\n definitionMap.set('exports', refsToArray(meta.exports, meta.containsForwardDecls));\n }\n\n if (meta.schemas !== null && meta.schemas.length > 0) {\n definitionMap.set('schemas', o.literalArr(meta.schemas.map(ref => ref.value)));\n }\n\n if (meta.id !== null) {\n definitionMap.set('id', meta.id);\n }\n\n return definitionMap;\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nimport * as o from '../../output/output_ast';\nimport {Identifiers as R3} from '../r3_identifiers';\nimport {createPipeType, R3PipeMetadata} from '../r3_pipe_compiler';\nimport {R3CompiledExpression} from '../util';\nimport {DefinitionMap} from '../view/util';\n\nimport {R3DeclarePipeMetadata} from './api';\n\n/**\n * Every time we make a breaking change to the declaration interface or partial-linker behavior, we\n * must update this constant to prevent old partial-linkers from incorrectly processing the\n * declaration.\n *\n * Do not include any prerelease in these versions as they are ignored.\n */\nconst MINIMUM_PARTIAL_LINKER_VERSION = '14.0.0';\n\n/**\n * Compile a Pipe declaration defined by the `R3PipeMetadata`.\n */\nexport function compileDeclarePipeFromMetadata(meta: R3PipeMetadata): R3CompiledExpression {\n const definitionMap = createPipeDefinitionMap(meta);\n\n const expression = o.importExpr(R3.declarePipe).callFn([definitionMap.toLiteralMap()]);\n const type = createPipeType(meta);\n\n return {expression, type, statements: []};\n}\n\n/**\n * Gathers the declaration fields for a Pipe into a `DefinitionMap`.\n */\nexport function createPipeDefinitionMap(meta: R3PipeMetadata):\n DefinitionMap<R3DeclarePipeMetadata> {\n const definitionMap = new DefinitionMap<R3DeclarePipeMetadata>();\n\n definitionMap.set('minVersion', o.literal(MINIMUM_PARTIAL_LINKER_VERSION));\n definitionMap.set('version', o.literal('17.1.3'));\n definitionMap.set('ngImport', o.importExpr(R3.core));\n\n // e.g. `type: MyPipe`\n definitionMap.set('type', meta.type.value);\n\n if (meta.isStandalone) {\n definitionMap.set('isStandalone', o.literal(meta.isStandalone));\n }\n\n // e.g. `name: \"myPipe\"`\n definitionMap.set('name', o.literal(meta.pipeName));\n\n if (meta.pure === false) {\n // e.g. `pure: false`\n definitionMap.set('pure', o.literal(meta.pure));\n }\n\n return definitionMap;\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n//////////////////////////////////////\n// THIS FILE HAS GLOBAL SIDE EFFECT //\n// (see bottom of file) //\n//////////////////////////////////////\n\n/**\n * @module\n * @description\n * Entry point for all APIs of the compiler package.\n *\n * <div class=\"callout is-critical\">\n * <header>Unstable APIs</header>\n * <p>\n * All compiler apis are currently considered experimental and private!\n * </p>\n * <p>\n * We expect the APIs in this package to keep on changing. Do not rely on them.\n * </p>\n * </div>\n */\n\nimport * as core from './core';\nimport {publishFacade} from './jit_compiler_facade';\nimport {global} from './util';\n\nexport {CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA, SchemaMetadata} from './core';\nexport {core};\n\nexport * from './version';\nexport {CompilerConfig, preserveWhitespacesDefault} from './config';\nexport * from './resource_loader';\nexport {ConstantPool} from './constant_pool';\nexport {DEFAULT_INTERPOLATION_CONFIG, InterpolationConfig} from './ml_parser/defaults';\nexport * from './schema/element_schema_registry';\nexport * from './i18n/index';\nexport * from './expression_parser/ast';\nexport * from './expression_parser/lexer';\nexport * from './expression_parser/parser';\nexport * from './ml_parser/ast';\nexport * from './ml_parser/html_parser';\nexport * from './ml_parser/html_tags';\nexport * from './ml_parser/tags';\nexport {ParseTreeResult, TreeError} from './ml_parser/parser';\nexport {LexerRange} from './ml_parser/lexer';\nexport * from './ml_parser/xml_parser';\nexport {TokenType as LexerTokenType} from './ml_parser/tokens';\nexport {ArrayType, DYNAMIC_TYPE, BinaryOperator, BinaryOperatorExpr, BuiltinType, BuiltinTypeName, CommaExpr, ConditionalExpr, DeclareFunctionStmt, DeclareVarStmt, Expression, ExpressionStatement, ExpressionType, ExpressionVisitor, ExternalExpr, ExternalReference, literalMap, FunctionExpr, IfStmt, InstantiateExpr, InvokeFunctionExpr, ArrowFunctionExpr, LiteralArrayExpr, LiteralExpr, LiteralMapExpr, MapType, NotExpr, NONE_TYPE, ReadKeyExpr, ReadPropExpr, ReadVarExpr, ReturnStatement, StatementVisitor, TaggedTemplateExpr, TemplateLiteral, TemplateLiteralElement, Type, TypeModifier, TypeVisitor, WrappedNodeExpr, literal, WriteKeyExpr, WritePropExpr, WriteVarExpr, StmtModifier, Statement, STRING_TYPE, TypeofExpr, jsDocComment, leadingComment, LeadingComment, JSDocComment, UnaryOperator, UnaryOperatorExpr, LocalizedString, TransplantedType, DynamicImportExpr} from './output/output_ast';\nexport {EmitterVisitorContext} from './output/abstract_emitter';\nexport {JitEvaluator} from './output/output_jit';\nexport * from './parse_util';\nexport * from './schema/dom_element_schema_registry';\nexport * from './selector';\nexport {Version} from './util';\nexport {SourceMap} from './output/source_map';\nexport * from './injectable_compiler_2';\nexport * from './render3/partial/api';\nexport * from './render3/view/api';\nexport {BoundAttribute as TmplAstBoundAttribute, BoundEvent as TmplAstBoundEvent, BoundText as TmplAstBoundText, Content as TmplAstContent, Element as TmplAstElement, Icu as TmplAstIcu, Node as TmplAstNode, RecursiveVisitor as TmplAstRecursiveVisitor, Reference as TmplAstReference, Template as TmplAstTemplate, Text as TmplAstText, TextAttribute as TmplAstTextAttribute, Variable as TmplAstVariable, DeferredBlock as TmplAstDeferredBlock, DeferredBlockPlaceholder as TmplAstDeferredBlockPlaceholder, DeferredBlockLoading as TmplAstDeferredBlockLoading, DeferredBlockError as TmplAstDeferredBlockError, DeferredTrigger as TmplAstDeferredTrigger, BoundDeferredTrigger as TmplAstBoundDeferredTrigger, IdleDeferredTrigger as TmplAstIdleDeferredTrigger, ImmediateDeferredTrigger as TmplAstImmediateDeferredTrigger, HoverDeferredTrigger as TmplAstHoverDeferredTrigger, TimerDeferredTrigger as TmplAstTimerDeferredTrigger, InteractionDeferredTrigger as TmplAstInteractionDeferredTrigger, ViewportDeferredTrigger as TmplAstViewportDeferredTrigger, SwitchBlock as TmplAstSwitchBlock, SwitchBlockCase as TmplAstSwitchBlockCase, ForLoopBlock as TmplAstForLoopBlock, ForLoopBlockEmpty as TmplAstForLoopBlockEmpty, IfBlock as TmplAstIfBlock, IfBlockBranch as TmplAstIfBlockBranch, DeferredBlockTriggers as TmplAstDeferredBlockTriggers, UnknownBlock as TmplAstUnknownBlock} from './render3/r3_ast';\nexport * from './render3/view/t2_api';\nexport * from './render3/view/t2_binder';\nexport {createCssSelectorFromNode} from './render3/view/util';\nexport {Identifiers as R3Identifiers} from './render3/r3_identifiers';\nexport {R3ClassMetadata, CompileClassMetadataFn, compileClassMetadata, compileComponentClassMetadata} from './render3/r3_class_metadata_compiler';\nexport {compileClassDebugInfo, R3ClassDebugInfo} from './render3/r3_class_debug_info_compiler';\nexport {compileFactoryFunction, R3DependencyMetadata, R3FactoryMetadata, FactoryTarget} from './render3/r3_factory';\nexport {compileNgModule, R3NgModuleMetadata, R3SelectorScopeMode, R3NgModuleMetadataKind, R3NgModuleMetadataGlobal} from './render3/r3_module_compiler';\nexport {compileInjector, R3InjectorMetadata} from './render3/r3_injector_compiler';\nexport {compilePipeFromMetadata, R3PipeMetadata} from './render3/r3_pipe_compiler';\nexport {makeBindingParser, ParsedTemplate, parseTemplate, ParseTemplateOptions} from './render3/view/template';\nexport {ForwardRefHandling, MaybeForwardRefExpression, R3CompiledExpression, R3Reference, createMayBeForwardRefExpression, devOnlyGuardedExpression, getSafePropertyAccessString} from './render3/util';\nexport {compileComponentFromMetadata, compileDirectiveFromMetadata, parseHostBindings, ParsedHostBindings, verifyHostBindings, encapsulateStyle} from './render3/view/compiler';\nexport {compileDeclareClassMetadata} from './render3/partial/class_metadata';\nexport {compileDeclareComponentFromMetadata, DeclareComponentTemplateInfo} from './render3/partial/component';\nexport {compileDeclareDirectiveFromMetadata} from './render3/partial/directive';\nexport {compileDeclareFactoryFunction} from './render3/partial/factory';\nexport {compileDeclareInjectableFromMetadata} from './render3/partial/injectable';\nexport {compileDeclareInjectorFromMetadata} from './render3/partial/injector';\nexport {compileDeclareNgModuleFromMetadata} from './render3/partial/ng_module';\nexport {compileDeclarePipeFromMetadata} from './render3/partial/pipe';\nexport {publishFacade} from './jit_compiler_facade';\nexport {emitDistinctChangesOnlyDefaultValue, ChangeDetectionStrategy, ViewEncapsulation} from './core';\nimport * as outputAst from './output/output_ast';\nexport {outputAst};\n// This file only reexports content of the `src` folder. Keep it that way.\n\n// This function call has a global side effects and publishes the compiler into global namespace for\n// the late binding of the Compiler to the @angular/core for jit compilation.\npublishFacade(global);\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of this package.\n */\nexport * from './src/compiler';\n\n// This file only reexports content of the `src` folder. Keep it that way.\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n// This file is not used to build this module. It is only used during editing\n// by the TypeScript language service and during build for verification. `ngc`\n// replaces this file with production index.ts when it rewrites private symbol\n// names.\n\nexport * from './public_api';\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n// This file is not used to build this module. It is only used during editing\n// by the TypeScript language service and during build for verification. `ngc`\n// replaces this file with production index.ts when it rewrites private symbol\n// names.\n\nexport * from './compiler';\n"],"names":["Type","digest","serializerVisitor","MEANING_SEPARATOR","ID_SEPARATOR","RecursiveAstVisitor","o.variable","o.Expression","o.LiteralExpr","o.FunctionExpr","o.ReturnStatement","o.INFERRED_TYPE","o.StmtModifier","o.LiteralArrayExpr","o.literalArr","o.literalMap","o.ArrowFunctionExpr","o.DeclareVarStmt","o.DeclareFunctionStmt","o.FnParam","o.DYNAMIC_TYPE","o.arrowFn","o.LiteralMapExpr","o.ExternalExpr","o.ReadVarExpr","o.TypeofExpr","VERSION","o.JSDocComment","o.UnaryOperator","o.BinaryOperator","o.expressionType","o.BinaryOperatorExpr","o.literal","o.WrappedNodeExpr","o.importExpr","FactoryTarget","o.InstantiateExpr","o.NULL_EXPR","R3","o.ifStmt","o.InvokeFunctionExpr","o.fn","o.NONE_TYPE","Comment","Text","Element","visitAll","Icu","RecursiveVisitor","i18n.RecurseVisitor","_Visitor","_PLACEHOLDER_TAG","_SOURCE_TAG","xml.Tag","xml.Text","xml.CR","xml.serialize","xml.Declaration","xml.Doctype","TRANSLATION_VAR_PREFIX","I18N_ICU_MAPPING_PREFIX","i18n.Message","i18n.Icu","i18n.Container","i18n.Placeholder","o.isNull","t.Element","t.Template","o.ExpressionType","chars.$LF","global","o.LiteralMapEntry","o.typeofExpr","EmptyExpr","Interpolation","o.ExpressionStatement","cdAst.AstTransformer","o.UnaryOperatorExpr","cdAst.ThisReceiver","o.not","o.ReadPropExpr","cdAst.PropertyRead","cdAst.ImplicitReceiver","cdAst.SafeCall","cdAst.Call","cdAst.SafeKeyedRead","cdAst.KeyedRead","cdAst.EmptyExpr","o.ReadKeyExpr","o.WritePropExpr","o.WriteKeyExpr","o.ConditionalExpr","o.WriteVarExpr","o.LocalizedString","o.NotExpr","o.TaggedTemplateExpr","o.IfStmt","literalOrArrayLiteral","ir.OpList","ir.OpKind","ir.transformExpressionsInOp","ir.VisitorContextFlag","ir.LexicalReadExpr","ir.createI18nApplyOp","ir.hasConsumesSlotTrait","ir.I18nExpressionFor","ir.hasDependsOnSlotContextTrait","ir.BindingKind","ir.createExtractedAttributeOp","lookupElement","ir.CompatibilityMode","ir.EmptyExpr","ir.Interpolation","ir.isElementOrContainerOp","ir.createAttributeOp","ir.createHostPropertyOp","ir.createPropertyOp","ir.SlotLiteralExpr","ir.AssignTemporaryExpr","ir.ReadTemporaryExpr","ir.Namespace","getAttributeNameLiterals","ir.isStringLiteral","o.taggedTemplate","o.TemplateLiteral","o.TemplateLiteralElement","core.parseSelectorToR3Selector","ir.createI18nExpressionOp","ir.I18nParamResolutionTime","o.DynamicImportExpr","ir.createI18nContextOp","ir.I18nContextKind","ir.ConstCollectedExpr","Scope","ir.DeferTriggerKind","ir.SafeInvokeFunctionExpr","ir.PipeBindingExpr","ir.transformExpressionsInExpression","ir.SafeTernaryExpr","ir.SafePropertyReadExpr","ir.SafeKeyedReadExpr","ESCAPE","ir.createI18nMessageOp","ir.I18nParamValueFlags","ir.createAdvanceOp","ir.createProjectionDefOp","ir.SemanticVariableKind","ir.createVariableOp","ir.NextContextExpr","ir.VariableFlags","ir.ContextExpr","ir.CTX_REF","ir.ReferenceExpr","isCssCustomProperty","hyphenate","parseProperty","chars.$EOF","chars.$SPACE","chars.isDigit","chars.$PERIOD","chars.$LPAREN","chars.$RPAREN","chars.$LBRACE","chars.$RBRACE","chars.$LBRACKET","chars.$RBRACKET","chars.$COMMA","chars.$COLON","chars.$SEMICOLON","chars.$SQ","chars.$DQ","chars.$HASH","chars.$PLUS","chars.$MINUS","chars.$STAR","chars.$SLASH","chars.$PERCENT","chars.$CARET","chars.$QUESTION","chars.$LT","chars.$GT","chars.$EQ","chars.$BANG","chars.$AMPERSAND","chars.$BAR","chars.$NBSP","chars.isWhitespace","chars.$_","chars.$BACKSLASH","chars.$u","chars.$a","chars.$z","chars.$A","chars.$Z","chars.$$","chars.isAsciiLetter","chars.$e","chars.$E","chars.$n","chars.$f","chars.$FF","chars.$r","chars.$CR","chars.$t","chars.$TAB","chars.$v","chars.$VTAB","Parser","chars.isQuote","ExpressionParser","ExpressionLexer","html.Expansion","html.visitAll","i18n.TagPlaceholder","i18n.Text","i18n.IcuPlaceholder","i18n.BlockPlaceholder","chars.$AT","chars.$x","chars.$X","chars.$0","chars.$9","chars.isAsciiHexDigit","chars.isNewLine","chars.$b","chars.$BSPACE","chars.isOctalDigit","html.Block","html.Comment","html.ExpansionCase","html.Text","html.Element","html.Attribute","html.BlockParameter","html.NodeWithI18n","o.jsDocComment","variable","localizedString","o.localizedString","o.LiteralPiece","o.PlaceholderPiece","NG_I18N_CLOSURE_MODE","getTranslationDeclStmts","createClosureModeGuard","o.STRING_TYPE","ir.createIcuPlaceholderOp","ir.createNamespaceOp","ir.visitExpressionsInOp","ir.ReadVariableExpr","ir.isIrExpression","ir.ExpressionKind","disableBindings","ir.createDisableBindingsOp","ir.createEnableBindingsOp","ir.TemplateKind","parseStyle","ir.createPipeOp","ir.PipeBindingVariadicExpr","ir.createI18nStartOp","ir.createI18nEndOp","ir.PureFunctionExpr","ir.PureFunctionParameterExpr","ir.createStatementOp","GLOBAL_TARGET_RESOLVERS","ir.transformExpressionsInStatement","ng.text","ng.elementStart","ng.element","ng.elementEnd","ng.elementContainerStart","ng.elementContainer","ng.elementContainerEnd","ng.i18nStart","ng.i18nEnd","ng.i18n","ng.i18nAttributes","ng.template","ng.disableBindings","ng.enableBindings","ng.pipe","ng.listener","ng.namespaceHTML","ng.namespaceSVG","ng.namespaceMath","ng.defer","ng.deferOn","ng.projectionDef","ng.projection","ng.repeaterCreate","ng.advance","ng.propertyInterpolate","ng.property","ng.stylePropInterpolate","ng.styleProp","ng.classProp","ng.styleMapInterpolate","ng.styleMap","ng.classMapInterpolate","ng.classMap","ng.i18nExp","ng.i18nApply","ng.textInterpolate","ng.attributeInterpolate","ng.attribute","ng.syntheticHostProperty","ng.hostProperty","ng.conditional","ng.repeater","ng.deferWhen","ng.nextContext","ng.reference","ng.restoreView","ng.resetView","ng.getCurrentView","ng.pureFunction","ng.pipeBind","ng.pipeBindV","processLexicalScope","ir.RestoreViewExpr","isIframeElement","ir.GetCurrentViewExpr","ir.ResetViewExpr","ir.createClassPropOp","ir.createStylePropOp","ir.createStyleMapOp","ir.createClassMapOp","ir.TrackContextExpr","ir.hasConsumesVarsTrait","ir.hasUsesVarOffsetTrait","Kind","NG_TEMPLATE_TAG_NAME","e.Interpolation","ir.createBindingOp","ir.createListenerOp","ir.SlotHandle","t.Content","t.Text","t.BoundText","t.IfBlock","t.SwitchBlock","t.DeferredBlock","t.Icu","t.ForLoopBlock","ir.createElementStartOp","ir.createElementEndOp","ir.createTemplateOp","ir.createProjectionOp","ir.createTextOp","e.ASTWithSource","ir.createInterpolateTextOp","ir.ConditionalCaseExpr","ir.createConditionalOp","ir.createDeferOp","ir.createDeferOnOp","ir.createDeferWhenOp","ir.createIcuStartOp","ir.createIcuEndOp","ir.createRepeaterCreateOp","ir.createRepeaterOp","e.PropertyRead","e.ThisReceiver","e.ImplicitReceiver","e.PropertyWrite","e.KeyedWrite","e.Call","e.LiteralPrimitive","e.Unary","e.Binary","e.KeyedRead","e.Chain","e.LiteralMap","e.LiteralArray","e.Conditional","e.NonNullAssert","e.BindingPipe","e.SafeKeyedRead","e.SafePropertyRead","e.SafeCall","e.EmptyExpr","e.PrefixNot","e.AST","ir.createI18nAttributesOp","t.TextAttribute","t.Comment","TEMPLATE_ATTR_PREFIX","NG_CONTENT_SELECT_ATTR","t.IfBlockBranch","t.ForLoopBlockEmpty","t.UnknownBlock","t.SwitchBlockCase","t.Variable","t.BoundDeferredTrigger","t.IdleDeferredTrigger","t.TimerDeferredTrigger","t.ImmediateDeferredTrigger","t.HoverDeferredTrigger","t.InteractionDeferredTrigger","t.ViewportDeferredTrigger","t.DeferredBlockPlaceholder","t.DeferredBlockLoading","t.DeferredBlockError","t.BoundAttribute","t.Reference","t.BoundEvent","t.visitAll","o.NUMBER_TYPE","isNgContainer","checkIsNgContainer","o.TYPED_NULL_EXPR","fn","literal","core.SecurityContext","core.ViewEncapsulation","core.ChangeDetectionStrategy","_VERSION","_XMLNS","_DEFAULT_SOURCE_LANG","_MARKER_TAG","_TARGET_TAG","_UNIT_TAG","_WriteVisitor","XmlToI18n","ml.visitAll","i18n.CloneVisitor","MINIMUM_PARTIAL_LINKER_VERSION"],"mappings":";;;;;;AAQA,MAAM,gBAAgB,GAAG,IAAI,MAAM,CAC/B,cAAc;AACV,IAAA,uBAAuB;;;AAGvB,IAAA,4DAA4D;;;AAG5D,IAAA,QAAQ;AACR,IAAA,aAAa;AACjB,GAAG,CAAC,CAAC;AAgBT;;;;AAIG;MACU,WAAW,CAAA;AAAxB,IAAA,WAAA,GAAA;QACE,IAAO,CAAA,OAAA,GAAgB,IAAI,CAAC;QAC5B,IAAU,CAAA,UAAA,GAAa,EAAE,CAAC;AAC1B;;;;;;;;;;AAUG;QACH,IAAK,CAAA,KAAA,GAAa,EAAE,CAAC;QACrB,IAAY,CAAA,YAAA,GAAkB,EAAE,CAAC;KAqJlC;IAnJC,OAAO,KAAK,CAAC,QAAgB,EAAA;QAC3B,MAAM,OAAO,GAAkB,EAAE,CAAC;AAClC,QAAA,MAAM,UAAU,GAAG,CAAC,GAAkB,EAAE,MAAmB,KAAI;AAC7D,YAAA,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