diff --git a/demo/rebilly.json b/demo/rebilly.json new file mode 100644 index 00000000..fd4a792f --- /dev/null +++ b/demo/rebilly.json @@ -0,0 +1,5958 @@ +{ + "swagger": "2.0", + "info": { + "version": "2.1", + "title": "Rebilly REST API", + "contact": { + "name": "Rebilly API Support", + "url": "https://www.rebilly.com/contact/", + "email": "integrations@rebilly.com" + }, + "license": { + "name": "Rebilly", + "url": "https://www.rebilly.com/api/license/" + }, + "termsOfService": "https://www.rebilly.com/terms/" + }, + "host": "api.rebilly.com", + "basePath": "/v2.1", + "schemes": [ + "https" + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ], + "tags": [ + { + "name": "Introduction", + "description": "The Rebilly API is built on HTTP. Our API is RESTful. It has predictable\nresource URLs. It returns HTTP response codes to indicate errors. It also\naccepts and returns JSON int he HTTP body. You can use your favorite\nHTTP/REST library for your programming language to use Rebilly's API, or \nyou can use one of our SDKs (currently available in PHP and C#).\n" + }, + { + "name": "Authentication", + "description": "When you sign up for an account, you are given your first API key. \nYou can generate additional API keys, and delete API keys (as you may \nneed to rotate your keys in the future). You authenticate to the \nRebilly API by providing your secret key in the request header. \nRebilly authenticates each request by searching for the presence \nof an HTTP header: REB-APIKEY. JWT authentication may be coming soon. \nRebilly also has a client-side authentication scheme that uses an\napiUser and HMAC-SHA1 signature (only for the Tokens resource), so\nthat you may safely create tokens from the client-side without compromising\nyour secret keys. Never share your secret keys. Keep them guarded and secure.\nThe client-side authentication scheme uses one HTTP header named REB-AUTH.\n" + }, + { + "name": "Customer", + "description": "Customers are your customers, sometimes known as accounts, clients,\nmembers, patrons, or players in other systems.\n" + }, + { + "name": "Contact", + "description": "Contacts belong to Customers. A Customer can have many contacts.\nSome contacts are associated to Invoices, Payment Cards, Subscriptions\nand Transactions.\n" + }, + { + "name": "Blacklist", + "description": "Your blacklists contains values of customerIds, email addresses,\nipAddresses, bank identification numbers, countries or payment cards that\nyou do NOT want to do business with. They are a good tool for managing\nrisk. A blacklist entry that expires after a period of time we call a\ngreylist.\n" + }, + { + "name": "Layout", + "description": "Layouts are used to hold collections of plans. A layout can be used to\npower a pricing page. You can make multiple layouts, and use rules to\ntarget them to different audiences.\n" + }, + { + "name": "Organization", + "description": "Organizations include the name and address of the entities related to your\naccount. An account may be multi-national, and support multiple\norganizations. Note: Organizations are share between \"Live\" and \"Sandbox\"\n" + }, + { + "name": "Payment", + "description": "Collect money from your customers with payments.\n" + }, + { + "name": "Product", + "description": "Your product includes digital goods, services, and physical goods. \n" + }, + { + "name": "Taxes", + "description": "You can map a product to a tax category. The tax category is used by \ntax providers to calculate taxes for invoices.\n" + }, + { + "name": "Website", + "description": "Website is your website accepting payments\n" + } + ], + "securityDefinitions": { + "ApiKey": { + "description": "When you sign up for an account, you are given your first API key.\nTo do so please follow this link: https://www.rebilly.com/site/signup/\nAlso you can generate additional API keys, and delete API keys (as you may\nneed to rotate your keys in the future).\n", + "name": "REB-APIKEY", + "type": "apiKey", + "in": "header" + } + }, + "security": [ + { + "ApiKey": [] + } + ], + "responses": { + "AccessForbidden": { + "description": "Access forbidden, invalid API-KEY was used", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "NotFound": { + "description": "Resource was not found", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "Conflict": { + "description": "Conflict", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "InvalidDataError": { + "description": "Invalid data was sent", + "schema": { + "$ref": "#/definitions/Error" + } + } + }, + "parameters": { + "resourceId": { + "name": "id", + "in": "path", + "description": "The resource identifier string", + "type": "string", + "required": true + }, + "collectionLimit": { + "name": "limit", + "in": "query", + "description": "The collection items limit", + "type": "integer", + "minimum": 0, + "maximum": 1000 + }, + "collectionOffset": { + "name": "offset", + "in": "query", + "description": "The collection items offset", + "type": "integer", + "minimum": 0 + } + }, + "paths": { + "/authentication-options": { + "get": { + "tags": [ + "Customer Authentication" + ], + "summary": "Read current authentication options", + "description": "Read current authentication options\n", + "responses": { + "200": { + "description": "Current authentication options was retrieved successfully", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/AuthenticationOptions" + } + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + } + } + }, + "put": { + "tags": [ + "Customer Authentication" + ], + "summary": "Change authentication options", + "description": "Change options\n", + "parameters": [ + { + "name": "body", + "in": "body", + "description": "Authentication Options resource", + "required": true, + "schema": { + "$ref": "#/definitions/AuthenticationOptions" + } + } + ], + "responses": { + "200": { + "description": "Authentication Options were updated", + "schema": { + "$ref": "#/definitions/AuthenticationOptions" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "422": { + "description": "Invalid data was sent", + "schema": { + "$ref": "#/definitions/InvalidError" + } + } + } + } + }, + "/authentication-tokens/{token}": { + "parameters": [ + { + "name": "token", + "in": "path", + "description": "The token identifier string", + "type": "string", + "required": true + } + ], + "get": { + "tags": [ + "Customer Authentication" + ], + "summary": "Verify", + "description": "Verify an authentication token\n", + "responses": { + "200": { + "description": "Authentication Token was verified", + "schema": { + "$ref": "#/definitions/AuthenticationToken" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "404": { + "$ref": "#/responses/NotFound" + } + } + }, + "delete": { + "tags": [ + "Customer Authentication" + ], + "summary": "Logout a user", + "description": "Logout a user\n", + "responses": { + "204": { + "description": "User was logged out" + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "404": { + "$ref": "#/responses/NotFound" + } + } + } + }, + "/authentication-tokens": { + "get": { + "tags": [ + "Customer Authentication" + ], + "summary": "Retrieve a list of auth tokens", + "description": "Retrieve a list of auth tokens\n", + "parameters": [ + { + "$ref": "#/parameters/collectionLimit" + }, + { + "$ref": "#/parameters/collectionOffset" + } + ], + "responses": { + "200": { + "description": "A list of auth tokens was retrieved successfully", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/AuthenticationToken" + } + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + } + } + }, + "post": { + "tags": [ + "Customer Authentication" + ], + "summary": "Login", + "description": "Login a user (customer)\n", + "parameters": [ + { + "name": "body", + "in": "body", + "description": "AuthenticationToken resource", + "required": true, + "schema": { + "$ref": "#/definitions/AuthenticationToken" + } + } + ], + "responses": { + "201": { + "description": "Login successful", + "schema": { + "$ref": "#/definitions/AuthenticationToken" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "422": { + "description": "Invalid data was sent", + "schema": { + "$ref": "#/definitions/InvalidError" + } + } + } + } + }, + "/blacklists/{id}": { + "parameters": [ + { + "$ref": "#/parameters/resourceId" + } + ], + "get": { + "tags": [ + "Blacklist" + ], + "summary": "Retrieve a blacklist", + "description": "Retrieve a blacklist with specified identifier string\n", + "responses": { + "200": { + "description": "Blacklist was retrieved successfully", + "schema": { + "$ref": "#/definitions/Blacklist" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "404": { + "$ref": "#/responses/NotFound" + } + } + }, + "put": { + "tags": [ + "Blacklist" + ], + "summary": "Create a blacklist with predefined ID", + "description": "Create a blacklist with predefined identifier string\n", + "parameters": [ + { + "name": "body", + "in": "body", + "description": "Blacklist resource", + "required": true, + "schema": { + "$ref": "#/definitions/Blacklist" + } + } + ], + "responses": { + "201": { + "description": "Blacklist was created", + "schema": { + "$ref": "#/definitions/Blacklist" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "409": { + "description": "Blacklist exist and cannot be updated", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "422": { + "$ref": "#/responses/InvalidDataError" + } + } + }, + "delete": { + "tags": [ + "Blacklist" + ], + "summary": "Delete a blacklist", + "description": "Delete a blacklist with predefined identifier string\n", + "responses": { + "204": { + "description": "Blacklist was deleted" + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "404": { + "$ref": "#/responses/NotFound" + } + } + } + }, + "/blacklists": { + "get": { + "tags": [ + "Blacklists" + ], + "summary": "Retrieve a list of blacklists", + "description": "Retrieve a list of blacklists\n", + "parameters": [ + { + "$ref": "#/parameters/collectionLimit" + }, + { + "$ref": "#/parameters/collectionOffset" + } + ], + "responses": { + "200": { + "description": "A list of Blacklists was retrieved successfully", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/Blacklist" + } + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + } + } + }, + "post": { + "tags": [ + "Blacklists" + ], + "summary": "Create a blacklist", + "description": "Create a blacklist\n", + "parameters": [ + { + "name": "body", + "in": "body", + "description": "Blacklist resource", + "required": true, + "schema": { + "$ref": "#/definitions/Blacklist" + } + } + ], + "responses": { + "201": { + "description": "Blacklist was created", + "schema": { + "$ref": "#/definitions/Blacklist" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "422": { + "$ref": "#/responses/InvalidDataError" + } + } + } + }, + "/contacts/{id}": { + "parameters": [ + { + "$ref": "#/parameters/resourceId" + } + ], + "get": { + "tags": [ + "Contact" + ], + "summary": "Retrieve a contact", + "description": "Retrieve a contact with specified identifier string\n", + "responses": { + "200": { + "description": "Contact was retrieved successfully", + "schema": { + "$ref": "#/definitions/Contact" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "404": { + "$ref": "#/responses/NotFound" + } + } + }, + "put": { + "tags": [ + "Contact" + ], + "summary": "Create or update a contact with predefined ID", + "description": "Create or update a contact with predefined identifier string\n", + "parameters": [ + { + "name": "body", + "in": "body", + "description": "Contact resource", + "required": true, + "schema": { + "$ref": "#/definitions/Contact" + } + } + ], + "responses": { + "201": { + "description": "Contact was created", + "schema": { + "$ref": "#/definitions/Contact" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "404": { + "$ref": "#/responses/NotFound" + }, + "409": { + "description": "Contact exists and cannot be updated" + }, + "422": { + "$ref": "#/responses/InvalidDataError" + } + } + } + }, + "/contacts": { + "get": { + "tags": [ + "Contact" + ], + "summary": "Retrieve a list of contacts", + "description": "Retrieve a list of contacts\n", + "parameters": [ + { + "$ref": "#/parameters/collectionLimit" + }, + { + "$ref": "#/parameters/collectionOffset" + } + ], + "responses": { + "200": { + "description": "A list of Contacts was retrieved successfully", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/Contact" + } + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + } + } + }, + "post": { + "tags": [ + "Contact" + ], + "summary": "Create a contact", + "description": "Create a contact\n", + "parameters": [ + { + "name": "body", + "in": "body", + "description": "Contact resource", + "required": true, + "schema": { + "$ref": "#/definitions/Contact" + } + } + ], + "responses": { + "201": { + "description": "Contact was created", + "schema": { + "$ref": "#/definitions/Contact" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "422": { + "$ref": "#/responses/InvalidDataError" + } + } + } + }, + "/credentials/{id}": { + "parameters": [ + { + "$ref": "#/parameters/resourceId" + } + ], + "get": { + "tags": [ + "Customer Authentication" + ], + "summary": "Retrieve a credential", + "description": "Retrieve a credential with specified identifier string\n", + "responses": { + "200": { + "description": "Credential was retrieved successfully", + "schema": { + "$ref": "#/definitions/Credential" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "404": { + "$ref": "#/responses/NotFound" + } + } + }, + "put": { + "tags": [ + "Customer Authentication" + ], + "summary": "Create or update a credential with predefined ID", + "description": "Create or update a credential with predefined identifier string\n", + "parameters": [ + { + "name": "body", + "in": "body", + "description": "Credential resource", + "required": true, + "schema": { + "$ref": "#/definitions/Credential" + } + } + ], + "responses": { + "200": { + "description": "Credential was updated", + "schema": { + "$ref": "#/definitions/Credential" + } + }, + "201": { + "description": "Credential was created", + "schema": { + "$ref": "#/definitions/Credential" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "404": { + "$ref": "#/responses/NotFound" + }, + "422": { + "description": "Invalid data was sent", + "schema": { + "$ref": "#/definitions/InvalidError" + } + } + } + }, + "delete": { + "tags": [ + "Customer Authentication" + ], + "summary": "Delete a credential", + "description": "Delete a credential with predefined identifier string\n", + "responses": { + "204": { + "description": "Credential was deleted" + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "404": { + "$ref": "#/responses/NotFound" + } + } + } + }, + "/credentials": { + "get": { + "tags": [ + "Customer Authentication" + ], + "summary": "Retrieve a list of credentials", + "description": "Retrieve a list of credentials\n", + "parameters": [ + { + "$ref": "#/parameters/collectionLimit" + }, + { + "$ref": "#/parameters/collectionOffset" + } + ], + "responses": { + "200": { + "description": "A list of Credentials was retrieved successfully", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/Credential" + } + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + } + } + }, + "post": { + "tags": [ + "Customer Authentication" + ], + "summary": "Create a credential", + "description": "Create a credential\n", + "parameters": [ + { + "name": "body", + "in": "body", + "description": "Credential resource", + "required": true, + "schema": { + "$ref": "#/definitions/Credential" + } + } + ], + "responses": { + "201": { + "description": "Credential was created", + "schema": { + "$ref": "#/definitions/Credential" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "422": { + "description": "Invalid data was sent", + "schema": { + "$ref": "#/definitions/InvalidError" + } + } + } + } + }, + "/custom-fields/{resource}/{name}": { + "parameters": [ + { + "name": "resource", + "in": "path", + "description": "The resource type string", + "type": "string", + "required": true, + "enum": [ + "customers", + "payment-cards", + "subscriptions", + "payments", + "websites", + "contacts" + ] + }, + { + "name": "name", + "in": "path", + "description": "The custom field's identifier string", + "type": "string", + "required": true + } + ], + "get": { + "tags": [ + "Custom Fields" + ], + "summary": "Retrieve a Custom Field", + "description": "Retrieve a schema of the given Custom Field for the given resource type\n", + "responses": { + "200": { + "description": "A schema of the Custom Field was retrieved successfully", + "schema": { + "$ref": "#/definitions/CustomField" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "404": { + "$ref": "#/responses/NotFound" + } + } + }, + "put": { + "tags": [ + "Custom Fields" + ], + "summary": "Create or alter a Custom Field", + "description": "Create or alter a schema of the given Custom Field for the given resource type.\n", + "parameters": [ + { + "name": "body", + "in": "body", + "description": "Custom Fields schema of the given resource type", + "required": true, + "schema": { + "$ref": "#/definitions/CustomField" + } + } + ], + "responses": { + "200": { + "description": "The Custom Field was updated", + "schema": { + "$ref": "#/definitions/CustomField" + } + }, + "201": { + "description": "The Custom Fields was created", + "schema": { + "$ref": "#/definitions/CustomField" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "409": { + "description": "The schema is in use: remove all the associated data in order to remove or alter the schema", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "422": { + "description": "Invalid data was sent", + "schema": { + "$ref": "#/definitions/InvalidError" + } + } + } + }, + "delete": { + "tags": [ + "Custom Fields" + ], + "summary": "Delete a custom field", + "description": "Delete a custom field by its name\n", + "responses": { + "204": { + "description": "Custom field has been deleted" + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "404": { + "$ref": "#/responses/NotFound" + }, + "409": { + "description": "The field is in use: remove all the associated data first", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + } + }, + "/custom-fields/{resource}": { + "parameters": [ + { + "name": "resource", + "in": "path", + "description": "The resource type string", + "type": "string", + "required": true, + "enum": [ + "customers", + "payment-cards", + "subscriptions", + "payments", + "websites", + "contacts" + ] + } + ], + "get": { + "tags": [ + "Custom Fields" + ], + "summary": "Retrieve Custom Fields", + "description": "Retrieve a schema of Custom Fields for the given resource type\n", + "responses": { + "200": { + "description": "A schema of Custom Fields was retrieved successfully", + "schema": { + "description": "The list of custom fields", + "type": "array", + "items": { + "$ref": "#/definitions/CustomField" + } + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + } + } + } + }, + "/customers/{id}": { + "parameters": [ + { + "$ref": "#/parameters/resourceId" + } + ], + "get": { + "tags": [ + "Customer" + ], + "summary": "Retrieve a customer", + "description": "Retrieve a customer with specified identifier string\n", + "responses": { + "200": { + "description": "Customer was retrieved successfully", + "schema": { + "$ref": "#/definitions/Customer" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "404": { + "$ref": "#/responses/NotFound" + } + } + }, + "put": { + "tags": [ + "Customer" + ], + "summary": "Create a customer with predefined ID", + "description": "Create a customer with predefined identifier string\n", + "parameters": [ + { + "name": "body", + "in": "body", + "description": "Customer resource", + "required": true, + "schema": { + "$ref": "#/definitions/Customer" + } + } + ], + "responses": { + "200": { + "description": "Customer was updated", + "schema": { + "$ref": "#/definitions/Customer" + } + }, + "201": { + "description": "Customer was created", + "schema": { + "$ref": "#/definitions/Customer" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "422": { + "$ref": "#/responses/InvalidDataError" + } + } + } + }, + "/customers": { + "get": { + "tags": [ + "Customer" + ], + "summary": "Retrieve a list of customers", + "description": "Retrieve a list of customers\n", + "parameters": [ + { + "$ref": "#/parameters/collectionLimit" + }, + { + "$ref": "#/parameters/collectionOffset" + } + ], + "responses": { + "200": { + "description": "A list of Customers was retrieved successfully", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/Customer" + } + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + } + } + }, + "post": { + "tags": [ + "Customer" + ], + "summary": "Create a customer", + "description": "Create a customer\n", + "parameters": [ + { + "name": "body", + "in": "body", + "description": "Customer resource", + "required": true, + "schema": { + "$ref": "#/definitions/Customer" + } + } + ], + "responses": { + "201": { + "description": "Customer was created", + "schema": { + "$ref": "#/definitions/Customer" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "422": { + "$ref": "#/responses/InvalidDataError" + } + } + } + }, + "/email-credentials/{id}": { + "parameters": [ + { + "$ref": "#/parameters/resourceId" + } + ], + "get": { + "tags": [ + "EmailCredential" + ], + "summary": "Retrieve email credential", + "description": "Retrieve email credential with specified identifier string\n", + "responses": { + "200": { + "description": "Email credential was retrieved successfully", + "schema": { + "$ref": "#/definitions/EmailCredential" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "404": { + "$ref": "#/responses/NotFound" + } + } + }, + "put": { + "tags": [ + "EmailCredential" + ], + "summary": "Create or update email credential with predefined ID", + "description": "Create or update email credential with predefined identifier string\n", + "parameters": [ + { + "name": "body", + "in": "body", + "description": "EmailCredential resource", + "required": true, + "schema": { + "$ref": "#/definitions/EmailCredential" + } + } + ], + "responses": { + "200": { + "description": "Email credential was updated", + "schema": { + "$ref": "#/definitions/EmailCredential" + } + }, + "201": { + "description": "Email credential was created", + "schema": { + "$ref": "#/definitions/EmailCredential" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "404": { + "$ref": "#/responses/NotFound" + }, + "422": { + "description": "Invalid data was sent", + "schema": { + "$ref": "#/definitions/InvalidError" + } + } + } + }, + "delete": { + "tags": [ + "EmailCredential" + ], + "summary": "Delete an email credential", + "description": "Delete an email credential with predefined identifier string\n", + "responses": { + "204": { + "description": "Email credential was deleted" + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "404": { + "$ref": "#/responses/NotFound" + } + } + } + }, + "/email-credentials": { + "get": { + "tags": [ + "EmailCredential" + ], + "summary": "Retrieve a list of email credentials", + "description": "Retrieve a list of email credentials\n", + "parameters": [ + { + "$ref": "#/parameters/collectionLimit" + }, + { + "$ref": "#/parameters/collectionOffset" + } + ], + "responses": { + "200": { + "description": "A list of email credentials was retrieved successfully", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/EmailCredential" + } + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + } + } + }, + "post": { + "tags": [ + "EmailCredential" + ], + "summary": "Create email credential", + "description": "Create email credential", + "parameters": [ + { + "name": "body", + "in": "body", + "description": "EmailCredential resource", + "required": true, + "schema": { + "$ref": "#/definitions/EmailCredential" + } + } + ], + "responses": { + "201": { + "description": "Email credential was created", + "schema": { + "$ref": "#/definitions/EmailCredential" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "422": { + "description": "Invalid data was sent", + "schema": { + "$ref": "#/definitions/InvalidError" + } + } + } + } + }, + "/gateway-accounts/{id}": { + "parameters": [ + { + "$ref": "#/parameters/resourceId" + } + ], + "get": { + "tags": [ + "Gateway Account" + ], + "summary": "Retrieve a Gateway Account", + "description": "Retrieve a Gateway Account with specified identifier string\n", + "responses": { + "200": { + "description": "Gateway Account was retrieved successfully", + "schema": { + "$ref": "#/definitions/GatewayAccount" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "404": { + "$ref": "#/responses/NotFound" + } + } + }, + "put": { + "tags": [ + "Gateway Account" + ], + "summary": "Create or update a Gateway Account with predefined ID", + "description": "Create or update a GatewayAccount with predefined identifier string\n", + "parameters": [ + { + "name": "body", + "in": "body", + "description": "Gateway Account resource", + "required": true, + "schema": { + "$ref": "#/definitions/GatewayAccount" + } + } + ], + "responses": { + "200": { + "description": "Gateway Account was updated", + "schema": { + "$ref": "#/definitions/GatewayAccount" + } + }, + "201": { + "description": "Gateway Account was created", + "schema": { + "$ref": "#/definitions/GatewayAccount" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "404": { + "$ref": "#/responses/NotFound" + }, + "422": { + "description": "Invalid data was sent", + "schema": { + "$ref": "#/definitions/InvalidError" + } + } + } + }, + "delete": { + "tags": [ + "Gateway Account" + ], + "summary": "Delete a Gateway Account", + "description": "Delete a Gateway Account with predefined identifier string\n", + "responses": { + "204": { + "description": "Gateway Account was deleted" + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "404": { + "$ref": "#/responses/NotFound" + } + } + } + }, + "/gateway-accounts": { + "get": { + "tags": [ + "Gateway Account" + ], + "summary": "Retrieve a list of gateway accounts", + "description": "Retrieve a list of gateway accounts\n", + "parameters": [ + { + "$ref": "#/parameters/collectionLimit" + }, + { + "$ref": "#/parameters/collectionOffset" + } + ], + "responses": { + "200": { + "description": "A list of Gateway Accounts was retrieved successfully", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/GatewayAccount" + } + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + } + } + }, + "post": { + "tags": [ + "Gateway Account" + ], + "summary": "Create a Gateway Account", + "description": "Create a Gateway Account\n", + "parameters": [ + { + "name": "body", + "in": "body", + "description": "Gateway Account resource", + "required": true, + "schema": { + "$ref": "#/definitions/GatewayAccount" + } + } + ], + "responses": { + "201": { + "description": "Gateway Account was created", + "schema": { + "$ref": "#/definitions/GatewayAccount" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "422": { + "description": "Invalid data was sent", + "schema": { + "$ref": "#/definitions/InvalidError" + } + } + } + } + }, + "/invoices/{id}/abandon": { + "parameters": [ + { + "$ref": "#/parameters/resourceId" + } + ], + "post": { + "tags": [ + "Invoice" + ], + "summary": "Abandon an invoice", + "description": "Abandon an invoice with specified identifier string\n", + "responses": { + "201": { + "description": "Invoice was abandoned successfully", + "schema": { + "$ref": "#/definitions/Invoice" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "404": { + "$ref": "#/responses/NotFound" + } + } + } + }, + "/invoices/{id}/issue": { + "parameters": [ + { + "$ref": "#/parameters/resourceId" + } + ], + "post": { + "tags": [ + "Invoice" + ], + "summary": "Issue an invoice", + "description": "Issue an invoice with specified identifier string\n", + "parameters": [ + { + "name": "body", + "in": "body", + "description": "InvoiceItem resource", + "required": true, + "schema": { + "$ref": "#/definitions/InvoiceIssue" + } + } + ], + "responses": { + "201": { + "description": "Invoice was abandoned successfully", + "schema": { + "$ref": "#/definitions/Invoice" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "404": { + "$ref": "#/responses/NotFound" + } + } + } + }, + "/invoices/{id}/items": { + "parameters": [ + { + "$ref": "#/parameters/resourceId" + } + ], + "get": { + "tags": [ + "Invoice" + ], + "summary": "Retrieve invoice items", + "description": "Retrieve an invoice items with specified invoice identifier string\n", + "parameters": [ + { + "$ref": "#/parameters/collectionLimit" + }, + { + "$ref": "#/parameters/collectionOffset" + } + ], + "responses": { + "200": { + "description": "Invoice items were retrieved successfully", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/InvoiceItem" + } + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "404": { + "$ref": "#/responses/NotFound" + } + } + }, + "post": { + "tags": [ + "Invoice" + ], + "summary": "Create an invoice item", + "description": "Create an invoice item\n", + "parameters": [ + { + "name": "body", + "in": "body", + "description": "InvoiceItem resource", + "required": true, + "schema": { + "$ref": "#/definitions/InvoiceItem" + } + } + ], + "responses": { + "201": { + "description": "InvoiceItem was created", + "schema": { + "$ref": "#/definitions/InvoiceItem" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "422": { + "description": "Invalid data was sent", + "schema": { + "$ref": "#/definitions/InvalidError" + } + } + } + } + }, + "/invoices/{id}/void": { + "parameters": [ + { + "$ref": "#/parameters/resourceId" + } + ], + "post": { + "tags": [ + "Invoice" + ], + "summary": "Void an invoice", + "description": "Void an invoice with specified identifier string\n", + "responses": { + "201": { + "description": "Invoice was voided successfully", + "schema": { + "$ref": "#/definitions/Invoice" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "404": { + "$ref": "#/responses/NotFound" + } + } + } + }, + "/invoices/{id}": { + "parameters": [ + { + "$ref": "#/parameters/resourceId" + } + ], + "get": { + "tags": [ + "Invoice" + ], + "summary": "Retrieve an invoice", + "description": "Retrieve an invoice with specified identifier string\n", + "responses": { + "200": { + "description": "Invoice was retrieved successfully", + "schema": { + "$ref": "#/definitions/Invoice" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "404": { + "$ref": "#/responses/NotFound" + } + } + }, + "put": { + "tags": [ + "Invoice" + ], + "summary": "Create or update an invoice with predefined ID", + "description": "Create or update an invoice with predefined identifier string\n", + "parameters": [ + { + "name": "body", + "in": "body", + "description": "Invoice resource", + "required": true, + "schema": { + "$ref": "#/definitions/Invoice" + } + } + ], + "responses": { + "200": { + "description": "Invoice was updated", + "schema": { + "$ref": "#/definitions/Invoice" + } + }, + "201": { + "description": "Invoice was created", + "schema": { + "$ref": "#/definitions/Invoice" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "404": { + "$ref": "#/responses/NotFound" + }, + "422": { + "description": "Invalid data was sent", + "schema": { + "$ref": "#/definitions/InvalidError" + } + } + } + } + }, + "/invoices": { + "get": { + "tags": [ + "Invoice" + ], + "summary": "Retrieve a list of invoices", + "description": "Retrieve a list of invoices\n", + "parameters": [ + { + "$ref": "#/parameters/collectionLimit" + }, + { + "$ref": "#/parameters/collectionOffset" + } + ], + "responses": { + "200": { + "description": "A list of invoices was retrieved successfully", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/Invoice" + } + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + } + } + }, + "post": { + "tags": [ + "Invoice" + ], + "summary": "Create an invoice", + "description": "Create an invoice\n", + "parameters": [ + { + "name": "body", + "in": "body", + "description": "Invoice resource", + "required": true, + "schema": { + "$ref": "#/definitions/Invoice" + } + } + ], + "responses": { + "201": { + "description": "Invoice was created", + "schema": { + "$ref": "#/definitions/Invoice" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "422": { + "description": "Invalid data was sent", + "schema": { + "$ref": "#/definitions/InvalidError" + } + } + } + } + }, + "/layouts/{id}": { + "parameters": [ + { + "$ref": "#/parameters/resourceId" + } + ], + "get": { + "tags": [ + "Layout" + ], + "summary": "Retrieve a layout", + "description": "Retrieve a layout with specified identifier string\n", + "responses": { + "200": { + "description": "Layout was retrieved successfully", + "schema": { + "$ref": "#/definitions/Layout" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "404": { + "$ref": "#/responses/NotFound" + } + } + }, + "put": { + "tags": [ + "Layout" + ], + "summary": "Create or update a layout with predefined ID", + "description": "Create or update a layout with predefined identifier string\n", + "parameters": [ + { + "name": "body", + "in": "body", + "description": "Layout resource", + "required": true, + "schema": { + "$ref": "#/definitions/Layout" + } + } + ], + "responses": { + "200": { + "description": "Layout was updated", + "schema": { + "$ref": "#/definitions/Layout" + } + }, + "201": { + "description": "Layout was created", + "schema": { + "$ref": "#/definitions/Layout" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "404": { + "$ref": "#/responses/NotFound" + }, + "422": { + "$ref": "#/responses/InvalidDataError" + } + } + } + }, + "/layouts": { + "get": { + "tags": [ + "Layout" + ], + "summary": "Retrieve a layout list", + "description": "Retrieve a layout list\n", + "parameters": [ + { + "$ref": "#/parameters/collectionLimit" + }, + { + "$ref": "#/parameters/collectionOffset" + } + ], + "responses": { + "200": { + "description": "Layout list was retrieved successfully", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/Layout" + } + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + } + } + }, + "post": { + "tags": [ + "Layout" + ], + "summary": "Create a layout", + "description": "Create a layout\n", + "parameters": [ + { + "name": "body", + "in": "body", + "description": "Layout resource", + "required": true, + "schema": { + "$ref": "#/definitions/Layout" + } + } + ], + "responses": { + "201": { + "description": "Layout was created", + "schema": { + "$ref": "#/definitions/Layout" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "422": { + "$ref": "#/responses/InvalidDataError" + } + } + } + }, + "/lead-sources/{id}": { + "parameters": [ + { + "$ref": "#/parameters/resourceId" + } + ], + "get": { + "tags": [ + "Lead Source" + ], + "summary": "Retrieve a LeadSource", + "description": "Retrieve a LeadSource with specified identifier string\n", + "responses": { + "200": { + "description": "LeadSource was retrieved successfully", + "schema": { + "$ref": "#/definitions/LeadSource" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "404": { + "$ref": "#/responses/NotFound" + } + } + }, + "put": { + "tags": [ + "Lead Source" + ], + "summary": "Create a LeadSource with predefined ID", + "description": "Create a LeadSource with predefined identifier string\n", + "parameters": [ + { + "name": "body", + "in": "body", + "description": "LeadSource resource", + "required": true, + "schema": { + "$ref": "#/definitions/LeadSource" + } + } + ], + "responses": { + "200": { + "description": "LeadSource was updated", + "schema": { + "$ref": "#/definitions/LeadSource" + } + }, + "201": { + "description": "LeadSource was created", + "schema": { + "$ref": "#/definitions/LeadSource" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "404": { + "$ref": "#/responses/NotFound" + }, + "422": { + "description": "Invalid data was sent", + "schema": { + "$ref": "#/definitions/InvalidError" + } + } + } + } + }, + "/lead-sources": { + "get": { + "tags": [ + "Lead Source" + ], + "summary": "Retrieve a list of LeadSources", + "description": "Retrieve a list of LeadSources\n", + "parameters": [ + { + "$ref": "#/parameters/collectionLimit" + }, + { + "$ref": "#/parameters/collectionOffset" + } + ], + "responses": { + "200": { + "description": "A list of LeadSources was retrieved successfully", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/LeadSource" + } + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + } + } + }, + "post": { + "tags": [ + "Lead Source" + ], + "summary": "Create a LeadSource", + "description": "Create a LeadSource\n", + "parameters": [ + { + "name": "body", + "in": "body", + "description": "LeadSource resource", + "required": true, + "schema": { + "$ref": "#/definitions/LeadSource" + } + } + ], + "responses": { + "201": { + "description": "LeadSource was created", + "schema": { + "$ref": "#/definitions/LeadSource" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "422": { + "description": "Invalid data was sent", + "schema": { + "$ref": "#/definitions/InvalidError" + } + } + } + } + }, + "/login": { + "post": { + "tags": [ + "Session", + "Login" + ], + "summary": "Create a session with email and password", + "description": "Create a session with email and password\n", + "parameters": [ + { + "name": "body", + "in": "body", + "description": "Login resource", + "required": true, + "schema": { + "$ref": "#/definitions/Login" + } + } + ], + "responses": { + "201": { + "description": "Session was created", + "schema": { + "$ref": "#/definitions/Session" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "422": { + "description": "Invalid data was sent", + "schema": { + "$ref": "#/definitions/InvalidError" + } + } + } + } + }, + "/notes/{id}": { + "parameters": [ + { + "$ref": "#/parameters/resourceId" + } + ], + "get": { + "tags": [ + "Note" + ], + "summary": "Retrieve a note", + "description": "Retrieve a note with specified identifier string\n", + "responses": { + "200": { + "description": "Note was retrieved successfully", + "schema": { + "$ref": "#/definitions/Note" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "404": { + "$ref": "#/responses/NotFound" + } + } + }, + "put": { + "tags": [ + "Note" + ], + "summary": "Create or update a note with predefined ID", + "description": "Create or update a note with predefined identifier string\n", + "parameters": [ + { + "name": "body", + "in": "body", + "description": "Note resource", + "required": true, + "schema": { + "$ref": "#/definitions/Note" + } + } + ], + "responses": { + "200": { + "description": "Note was updated", + "schema": { + "$ref": "#/definitions/Note" + } + }, + "201": { + "description": "Note was created", + "schema": { + "$ref": "#/definitions/Note" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "404": { + "$ref": "#/responses/NotFound" + }, + "422": { + "description": "Invalid data was sent", + "schema": { + "$ref": "#/definitions/InvalidError" + } + } + } + } + }, + "/notes": { + "get": { + "tags": [ + "Note" + ], + "summary": "Retrieve a list of notes", + "description": "Retrieve a list of notes\n", + "parameters": [ + { + "$ref": "#/parameters/collectionLimit" + }, + { + "$ref": "#/parameters/collectionOffset" + } + ], + "responses": { + "200": { + "description": "A list of Notes was retrieved successfully", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/Note" + } + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + } + } + }, + "post": { + "tags": [ + "Note" + ], + "summary": "Create a note", + "description": "Create a note\n", + "parameters": [ + { + "name": "body", + "in": "body", + "description": "Note resource", + "required": true, + "schema": { + "$ref": "#/definitions/Note" + } + } + ], + "responses": { + "201": { + "description": "Note was created", + "schema": { + "$ref": "#/definitions/Note" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "422": { + "description": "Invalid data was sent", + "schema": { + "$ref": "#/definitions/InvalidError" + } + } + } + } + }, + "/organizations/{id}": { + "parameters": [ + { + "$ref": "#/parameters/resourceId" + } + ], + "get": { + "tags": [ + "Organization" + ], + "summary": "Retrieve a organization", + "description": "Retrieve a organization with specified identifier string\n", + "responses": { + "200": { + "description": "Organization was retrieved successfully", + "schema": { + "$ref": "#/definitions/Organization" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "404": { + "$ref": "#/responses/NotFound" + } + } + }, + "put": { + "tags": [ + "Organization" + ], + "summary": "Create or update a organization with predefined ID", + "description": "Create or update a organization with predefined identifier string\n", + "parameters": [ + { + "name": "body", + "in": "body", + "description": "Organization resource", + "required": true, + "schema": { + "$ref": "#/definitions/Organization" + } + } + ], + "responses": { + "200": { + "description": "Organization was updated", + "schema": { + "$ref": "#/definitions/Organization" + } + }, + "201": { + "description": "Organization was created", + "schema": { + "$ref": "#/definitions/Organization" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "422": { + "$ref": "#/responses/InvalidDataError" + } + } + }, + "delete": { + "tags": [ + "Organization" + ], + "summary": "Delete a organization", + "description": "Delete a organization with predefined identifier string\n", + "responses": { + "204": { + "description": "Organization was deleted" + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "404": { + "$ref": "#/responses/NotFound" + }, + "409": { + "description": "Organization has related resources and cannot be deleted", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + } + }, + "/organizations": { + "get": { + "tags": [ + "Organization" + ], + "summary": "Retrieve a list of organizations", + "description": "Retrieve a list of organizations\n", + "parameters": [ + { + "$ref": "#/parameters/collectionLimit" + }, + { + "$ref": "#/parameters/collectionOffset" + } + ], + "responses": { + "200": { + "description": "A list of organizations was retrieved successfully", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/Organization" + } + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + } + } + }, + "post": { + "tags": [ + "Organization" + ], + "summary": "Create a organization", + "description": "Create a organization\n", + "parameters": [ + { + "name": "body", + "in": "body", + "description": "Organization resource", + "required": true, + "schema": { + "$ref": "#/definitions/Organization" + } + } + ], + "responses": { + "201": { + "description": "Organization was created", + "schema": { + "$ref": "#/definitions/Organization" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "422": { + "$ref": "#/responses/InvalidDataError" + } + } + } + }, + "/password-tokens/{id}": { + "parameters": [ + { + "$ref": "#/parameters/resourceId" + } + ], + "get": { + "tags": [ + "Customer Authentication" + ], + "summary": "Retrieve a Reset Password Token", + "description": "Retrieve a Reset Password Token with specified identifier string\n", + "responses": { + "200": { + "description": "ResetPasswordToken was retrieved successfully", + "schema": { + "$ref": "#/definitions/ResetPasswordToken" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "404": { + "$ref": "#/responses/NotFound" + } + } + }, + "delete": { + "tags": [ + "Customer Authentication" + ], + "summary": "Delete a Reset Password Token", + "description": "Delete a Reset Password Token with predefined identifier string\n", + "responses": { + "204": { + "description": "ResetPasswordToken was deleted" + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "404": { + "$ref": "#/responses/NotFound" + }, + "409": { + "description": "ResetPasswordToken has related resources and cannot be deleted" + } + } + } + }, + "/password-tokens": { + "get": { + "tags": [ + "Customer Authentication" + ], + "summary": "Retrieve a list of tokens", + "description": "Retrieve a list of tokens\n", + "parameters": [ + { + "$ref": "#/parameters/collectionLimit" + }, + { + "$ref": "#/parameters/collectionOffset" + } + ], + "responses": { + "200": { + "description": "A list of Reset Password Tokens was retrieved successfully", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/ResetPasswordToken" + } + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + } + } + }, + "post": { + "tags": [ + "Customer Authentication" + ], + "summary": "Create a Reset Password Token", + "description": "Create a Reset Password Token\n", + "parameters": [ + { + "name": "body", + "in": "body", + "description": "ResetPasswordToken resource", + "required": true, + "schema": { + "$ref": "#/definitions/ResetPasswordToken" + } + } + ], + "responses": { + "201": { + "description": "Reset Password Token was created", + "schema": { + "$ref": "#/definitions/ResetPasswordToken" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "422": { + "description": "Invalid data was sent", + "schema": { + "$ref": "#/definitions/InvalidError" + } + } + } + } + }, + "/payment-cards/{id}/authorization": { + "parameters": [ + { + "$ref": "#/parameters/resourceId" + } + ], + "post": { + "tags": [ + "PaymentCard", + "Public" + ], + "summary": "Authorize a Payment Card", + "description": "Authorize a Payment Card\n", + "parameters": [ + { + "name": "body", + "in": "body", + "description": "PaymentCard resource", + "required": true, + "schema": { + "type": "object", + "required": [ + "websiteId", + "currency" + ], + "properties": { + "websiteId": { + "description": "The Website ID", + "type": "string" + }, + "currency": { + "description": "Currency (three letter code)", + "type": "string" + }, + "gatewayAccountId": { + "description": "The Gateway account ID", + "type": "string" + }, + "amount": { + "description": "Amount", + "type": "number", + "format": "double" + } + } + } + } + ], + "responses": { + "201": { + "description": "Authorization successful", + "schema": { + "$ref": "#/definitions/PaymentCard" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "422": { + "description": "Invalid data was sent", + "schema": { + "$ref": "#/definitions/InvalidError" + } + } + } + } + }, + "/payment-cards/{id}/deactivation": { + "parameters": [ + { + "$ref": "#/parameters/resourceId" + } + ], + "post": { + "tags": [ + "Payment Card" + ], + "summary": "Deactivate a Payment Card", + "description": "Deactivate a Payment Card\n", + "responses": { + "201": { + "description": "Authorization successful", + "schema": { + "$ref": "#/definitions/PaymentCard" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "422": { + "description": "Invalid data was sent", + "schema": { + "$ref": "#/definitions/InvalidError" + } + } + } + } + }, + "/payment-cards/{id}": { + "parameters": [ + { + "$ref": "#/parameters/resourceId" + } + ], + "get": { + "tags": [ + "Payment Card" + ], + "summary": "Retrieve a Payment Card", + "description": "Retrieve a Payment Card with specified identifier string\n", + "responses": { + "200": { + "description": "PaymentCard was retrieved successfully", + "schema": { + "$ref": "#/definitions/PaymentCard" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "404": { + "$ref": "#/responses/NotFound" + } + } + } + }, + "/payment-cards": { + "get": { + "tags": [ + "Payment Card" + ], + "summary": "Retrieve a list of Payment Cards", + "description": "Retrieve a list of Payments Cards\n", + "parameters": [ + { + "$ref": "#/parameters/collectionLimit" + }, + { + "$ref": "#/parameters/collectionOffset" + } + ], + "responses": { + "200": { + "description": "A list of Payment Card was retrieved successfully", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/PaymentCard" + } + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + } + } + }, + "post": { + "tags": [ + "Payment Card" + ], + "summary": "Create a Payment Card", + "description": "Create a Payment Card\n", + "parameters": [ + { + "name": "body", + "in": "body", + "description": "PaymentCard resource", + "required": true, + "schema": { + "$ref": "#/definitions/PaymentCard" + } + } + ], + "responses": { + "201": { + "description": "Payment Card was created", + "schema": { + "$ref": "#/definitions/PaymentCard" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "422": { + "description": "Invalid data was sent", + "schema": { + "$ref": "#/definitions/InvalidError" + } + } + } + } + }, + "/payments/{id}": { + "parameters": [ + { + "$ref": "#/parameters/resourceId" + } + ], + "get": { + "tags": [ + "Payment" + ], + "summary": "Retrieve a payment", + "description": "Retrieve a payment with specified identifier string\n", + "responses": { + "200": { + "description": "Payment was retrieved successfully", + "schema": { + "$ref": "#/definitions/PaymentResponse" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "404": { + "$ref": "#/responses/NotFound" + } + } + }, + "put": { + "tags": [ + "Payment" + ], + "summary": "Create a payment with predefined ID", + "description": "Make a payment with predefined identifier string\n", + "parameters": [ + { + "name": "body", + "in": "body", + "description": "Payment resource", + "required": true, + "schema": { + "$ref": "#/definitions/Payment" + } + } + ], + "responses": { + "201": { + "description": "Payment was processed", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/PaymentResponse" + } + } + }, + "202": { + "description": "Payment was accepted", + "schema": { + "$ref": "#/definitions/PaymentResponse" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "422": { + "description": "Invalid data was sent", + "schema": { + "$ref": "#/definitions/InvalidError" + } + } + } + } + }, + "/payments": { + "get": { + "tags": [ + "Payment" + ], + "summary": "Retrieve a payment list", + "description": "Retrieve a payment list\n", + "parameters": [ + { + "$ref": "#/parameters/collectionLimit" + }, + { + "$ref": "#/parameters/collectionOffset" + } + ], + "responses": { + "200": { + "description": "Payment list was retrieved successfully", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/PaymentResponse" + } + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "404": { + "$ref": "#/responses/NotFound" + } + } + }, + "post": { + "tags": [ + "Payment" + ], + "summary": "Create a payment", + "description": "Create a payment\n", + "parameters": [ + { + "name": "body", + "in": "body", + "description": "Payment resource", + "required": true, + "schema": { + "$ref": "#/definitions/Payment" + } + } + ], + "responses": { + "201": { + "description": "Payment was processed", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/PaymentResponse" + } + } + }, + "202": { + "description": "Payment was accepted", + "schema": { + "$ref": "#/definitions/PaymentResponse" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "409": { + "$ref": "#/responses/Conflict" + }, + "422": { + "description": "Invalid data was sent", + "schema": { + "$ref": "#/definitions/InvalidError" + } + } + } + } + }, + "/plans/{id}": { + "parameters": [ + { + "$ref": "#/parameters/resourceId" + } + ], + "get": { + "tags": [ + "Plan" + ], + "summary": "Retrieve a plan", + "description": "Retrieve a plan with specified identifier string\n", + "responses": { + "200": { + "description": "Plan was retrieved successfully", + "schema": { + "$ref": "#/definitions/Plan" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "404": { + "$ref": "#/responses/NotFound" + } + } + }, + "put": { + "tags": [ + "Plan" + ], + "summary": "Create or update a Plan with predefined ID", + "description": "Create or update a Plan with predefined identifier string\n", + "parameters": [ + { + "name": "body", + "in": "body", + "description": "Plan resource", + "required": true, + "schema": { + "$ref": "#/definitions/Plan" + } + } + ], + "responses": { + "200": { + "description": "Plan was updated", + "schema": { + "$ref": "#/definitions/Plan" + } + }, + "201": { + "description": "Plan was created", + "schema": { + "$ref": "#/definitions/Plan" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "404": { + "$ref": "#/responses/NotFound" + }, + "422": { + "description": "Invalid data was sent", + "schema": { + "$ref": "#/definitions/InvalidError" + } + } + } + }, + "delete": { + "tags": [ + "Plan" + ], + "summary": "Delete a Plan", + "description": "Delete a Plan with predefined identifier string\n", + "responses": { + "204": { + "description": "Plan was deleted" + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "404": { + "$ref": "#/responses/NotFound" + } + } + } + }, + "/plans": { + "get": { + "tags": [ + "Plan" + ], + "summary": "Retrieve a list of plans", + "description": "Retrieve a list of plans\n", + "parameters": [ + { + "$ref": "#/parameters/collectionLimit" + }, + { + "$ref": "#/parameters/collectionOffset" + } + ], + "responses": { + "200": { + "description": "A list of Plans was retrieved successfully", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/Plan" + } + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + } + } + }, + "post": { + "tags": [ + "Plan" + ], + "summary": "Create a plan", + "description": "Create a plan\n", + "parameters": [ + { + "name": "body", + "in": "body", + "description": "Plan resource", + "required": true, + "schema": { + "$ref": "#/definitions/Plan" + } + } + ], + "responses": { + "201": { + "description": "Plan was created", + "schema": { + "$ref": "#/definitions/Plan" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "422": { + "description": "Invalid data was sent", + "schema": { + "$ref": "#/definitions/InvalidError" + } + } + } + } + }, + "/products/{id}": { + "parameters": [ + { + "$ref": "#/parameters/resourceId" + } + ], + "get": { + "tags": [ + "Product" + ], + "summary": "Retrieve a product", + "description": "Retrieve a product with specified identifier string\n", + "responses": { + "200": { + "description": "Product was retrieved successfully", + "schema": { + "$ref": "#/definitions/Product" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "404": { + "$ref": "#/responses/NotFound" + } + } + }, + "put": { + "tags": [ + "Product" + ], + "summary": "Create a product with predefined ID", + "description": "Create a product with predefined identifier string\n", + "parameters": [ + { + "name": "body", + "in": "body", + "description": "Product resource", + "required": true, + "schema": { + "$ref": "#/definitions/Product" + } + } + ], + "responses": { + "200": { + "description": "Product was updated", + "schema": { + "$ref": "#/definitions/Product" + } + }, + "201": { + "description": "Product was created", + "schema": { + "$ref": "#/definitions/Product" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "422": { + "$ref": "#/responses/InvalidDataError" + } + } + } + }, + "/products": { + "get": { + "tags": [ + "Product" + ], + "summary": "Retrieve a list of products", + "description": "Retrieve a list of products\n", + "parameters": [ + { + "$ref": "#/parameters/collectionLimit" + }, + { + "$ref": "#/parameters/collectionOffset" + } + ], + "responses": { + "200": { + "description": "A list of products was retrieved successfully", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/Product" + } + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + } + } + }, + "post": { + "tags": [ + "Product" + ], + "summary": "Create a Product", + "description": "Create a Product\n", + "parameters": [ + { + "name": "body", + "in": "body", + "description": "Product resource", + "required": true, + "schema": { + "$ref": "#/definitions/Product" + } + } + ], + "responses": { + "201": { + "description": "Product was created", + "schema": { + "$ref": "#/definitions/Product" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "422": { + "$ref": "#/responses/InvalidDataError" + } + } + } + }, + "/queue/payments/{id}/cancel": { + "parameters": [ + { + "$ref": "#/parameters/resourceId" + } + ], + "post": { + "tags": [ + "Payment" + ], + "summary": "Cancel a scheduled payment", + "description": "Cancel a scheduled payment with specified identifier string\n", + "responses": { + "201": { + "description": "Successful cancel the payment", + "schema": { + "$ref": "#/definitions/PaymentResponse" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "404": { + "$ref": "#/responses/NotFound" + } + } + } + }, + "/queue/payments/{id}": { + "parameters": [ + { + "$ref": "#/parameters/resourceId" + } + ], + "get": { + "tags": [ + "Payment" + ], + "summary": "Retrieve a scheduled payment", + "description": "Retrieve a payment with specified identifier string\n", + "responses": { + "200": { + "description": "Successful retrieve the payment that still waiting to be processed", + "schema": { + "$ref": "#/definitions/PaymentResponse" + } + }, + "303": { + "description": "Payment was successfully processed and moved out from queue", + "schema": { + "$ref": "#/definitions/PaymentResponse" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "404": { + "$ref": "#/responses/NotFound" + } + } + } + }, + "/queue/payments": { + "get": { + "tags": [ + "Payment" + ], + "parameters": [ + { + "$ref": "#/parameters/collectionLimit" + }, + { + "$ref": "#/parameters/collectionOffset" + } + ], + "summary": "Retrieve a scheduled payment list", + "description": "Retrieve a scheduled payment list\n", + "responses": { + "200": { + "description": "Successful retrieve the payments list that still waiting to be processed", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/PaymentResponse" + } + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + } + } + } + }, + "/sessions/{id}": { + "parameters": [ + { + "$ref": "#/parameters/resourceId" + } + ], + "get": { + "tags": [ + "Session" + ], + "summary": "Retrieve a Session", + "description": "Retrieve a Session with specified identifier string\n", + "responses": { + "200": { + "description": "Session was retrieved successfully", + "schema": { + "$ref": "#/definitions/Session" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "404": { + "$ref": "#/responses/NotFound" + } + } + }, + "put": { + "tags": [ + "Session" + ], + "summary": "Create or update a Session with predefined ID", + "description": "Create or update a Session with predefined identifier string\n", + "parameters": [ + { + "name": "body", + "in": "body", + "description": "Session resource", + "required": true, + "schema": { + "$ref": "#/definitions/Session" + } + } + ], + "responses": { + "200": { + "description": "Session was updated", + "schema": { + "$ref": "#/definitions/Session" + } + }, + "201": { + "description": "Session was created", + "schema": { + "$ref": "#/definitions/Session" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "404": { + "$ref": "#/responses/NotFound" + }, + "422": { + "description": "Invalid data was sent", + "schema": { + "$ref": "#/definitions/InvalidError" + } + } + } + }, + "delete": { + "tags": [ + "Session" + ], + "summary": "Delete a Session", + "description": "Delete a Session with predefined identifier string\n", + "responses": { + "204": { + "description": "Session was deleted" + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "404": { + "$ref": "#/responses/NotFound" + }, + "409": { + "description": "Session has related resources and cannot be deleted" + } + } + } + }, + "/sessions": { + "get": { + "tags": [ + "Session" + ], + "summary": "Retrieve a list of sessions", + "description": "Retrieve a list of sessions\n", + "parameters": [ + { + "$ref": "#/parameters/collectionLimit" + }, + { + "$ref": "#/parameters/collectionOffset" + } + ], + "responses": { + "200": { + "description": "A list of Sessions was retrieved successfully", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/Session" + } + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + } + } + }, + "post": { + "tags": [ + "Session" + ], + "summary": "Create a session", + "description": "Create a session\n", + "parameters": [ + { + "name": "body", + "in": "body", + "description": "Sessions resource", + "required": true, + "schema": { + "$ref": "#/definitions/Session" + } + } + ], + "responses": { + "201": { + "description": "Session was created", + "schema": { + "$ref": "#/definitions/Session" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "422": { + "description": "Invalid data was sent", + "schema": { + "$ref": "#/definitions/InvalidError" + } + } + } + } + }, + "/status": { + "get": { + "tags": [ + "Status" + ], + "summary": "Retrieve API current status", + "description": "Retrieve API current status\n", + "responses": { + "200": { + "description": "Status was received", + "schema": { + "$ref": "#/definitions/Status" + } + } + } + } + }, + "/subscriptions/{id}/cancel": { + "parameters": [ + { + "$ref": "#/parameters/resourceId" + } + ], + "post": { + "tags": [ + "Subscription" + ], + "summary": "Cancel a subscription", + "description": "Cancel a subscription\n", + "parameters": [ + { + "name": "body", + "in": "body", + "description": "Only policy", + "required": true, + "schema": { + "$ref": "#/definitions/SubscriptionCancel" + } + } + ], + "responses": { + "201": { + "description": "Subscription was switched", + "schema": { + "$ref": "#/definitions/Subscription" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "422": { + "description": "Invalid data was sent", + "schema": { + "$ref": "#/definitions/InvalidError" + } + } + } + } + }, + "/subscriptions/{id}/switch": { + "parameters": [ + { + "$ref": "#/parameters/resourceId" + } + ], + "post": { + "tags": [ + "Subscription" + ], + "summary": "Switch a subscription", + "description": "Switch a subscription\n", + "parameters": [ + { + "name": "body", + "in": "body", + "description": "SubscriptionSwitch resource", + "required": true, + "schema": { + "$ref": "#/definitions/SubscriptionSwitch" + } + } + ], + "responses": { + "201": { + "description": "Subscription was switched", + "schema": { + "$ref": "#/definitions/Subscription" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "422": { + "description": "Invalid data was sent", + "schema": { + "$ref": "#/definitions/InvalidError" + } + } + } + } + }, + "/subscriptions/{id}": { + "parameters": [ + { + "$ref": "#/parameters/resourceId" + } + ], + "get": { + "tags": [ + "Subscription" + ], + "summary": "Retrieve a subscription", + "description": "Retrieve a subscription with specified identifier string\n", + "responses": { + "200": { + "description": "Subscription was retrieved successfully", + "schema": { + "$ref": "#/definitions/Subscription" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "404": { + "$ref": "#/responses/NotFound" + } + } + }, + "put": { + "tags": [ + "Subscription" + ], + "summary": "Create or update a subscription with predefined ID", + "description": "Create or update a subscription with predefined identifier string\n", + "parameters": [ + { + "name": "body", + "in": "body", + "description": "Subscription resource", + "required": true, + "schema": { + "$ref": "#/definitions/Subscription" + } + } + ], + "responses": { + "200": { + "description": "Subscription was updated", + "schema": { + "$ref": "#/definitions/Subscription" + } + }, + "201": { + "description": "Subscription was created", + "schema": { + "$ref": "#/definitions/Subscription" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "404": { + "$ref": "#/responses/NotFound" + }, + "422": { + "description": "Invalid data was sent", + "schema": { + "$ref": "#/definitions/InvalidError" + } + } + } + } + }, + "/subscriptions": { + "get": { + "tags": [ + "Subscription" + ], + "summary": "Retrieve a list of subscriptions", + "description": "Retrieve a list of subscriptions\n", + "parameters": [ + { + "$ref": "#/parameters/collectionLimit" + }, + { + "$ref": "#/parameters/collectionOffset" + } + ], + "responses": { + "200": { + "description": "A list of subscriptions was retrieved successfully", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/Subscription" + } + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + } + } + }, + "post": { + "tags": [ + "Subscription" + ], + "summary": "Create a subscription", + "description": "Create a subscription\n", + "parameters": [ + { + "name": "body", + "in": "body", + "description": "Subscription resource", + "required": true, + "schema": { + "$ref": "#/definitions/Subscription" + } + } + ], + "responses": { + "201": { + "description": "Subscription was created", + "schema": { + "$ref": "#/definitions/Subscription" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "422": { + "description": "Invalid data was sent", + "schema": { + "$ref": "#/definitions/InvalidError" + } + } + } + } + }, + "/tax-categories": { + "get": { + "tags": [ + "Taxes" + ], + "summary": "Retrieve a list of tax categories", + "description": "Retrieve a list of tax categories\n", + "responses": { + "200": { + "description": "A list of tax categories was retrieved successfully", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/TaxCategory" + } + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + } + } + } + }, + "/tokens/{token}/expiration": { + "parameters": [ + { + "name": "token", + "in": "path", + "description": "The token identifier string", + "type": "string", + "required": true + } + ], + "post": { + "tags": [ + "Payment Card Token" + ], + "summary": "Expire a token", + "description": "Expire a token\n", + "parameters": [ + { + "name": "body", + "in": "body", + "description": "PaymentCardToken resource", + "required": true, + "schema": { + "$ref": "#/definitions/PaymentCardToken" + } + } + ], + "responses": { + "201": { + "description": "Token expiration successful", + "schema": { + "$ref": "#/definitions/PaymentCardToken" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "422": { + "description": "Invalid data was sent", + "schema": { + "$ref": "#/definitions/InvalidError" + } + } + } + } + }, + "/tokens/{token}": { + "parameters": [ + { + "name": "token", + "in": "path", + "description": "The token identifier string", + "type": "string", + "required": true + } + ], + "get": { + "tags": [ + "Payment Card Token" + ], + "summary": "Retrieve a token", + "description": "Retrieve a token with specified identifier string\n", + "responses": { + "200": { + "description": "Token was retrieved successfully", + "schema": { + "$ref": "#/definitions/PaymentCardToken" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "404": { + "$ref": "#/responses/NotFound" + } + } + } + }, + "/tokens": { + "get": { + "tags": [ + "Payment Card Token" + ], + "summary": "Retrieve a list of tokens", + "description": "Retrieve a list of tokens\n", + "parameters": [ + { + "$ref": "#/parameters/collectionLimit" + }, + { + "$ref": "#/parameters/collectionOffset" + } + ], + "responses": { + "200": { + "description": "A list of tokens was retrieved successfully", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/PaymentCardToken" + } + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + } + } + }, + "post": { + "tags": [ + "Payment Card Token" + ], + "summary": "Create a token", + "description": "Create a token\n", + "parameters": [ + { + "name": "body", + "in": "body", + "description": "PaymentCardToken resource", + "required": true, + "schema": { + "$ref": "#/definitions/PaymentCardToken" + } + } + ], + "responses": { + "201": { + "description": "Token was created", + "schema": { + "$ref": "#/definitions/PaymentCardToken" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "422": { + "description": "Invalid data was sent", + "schema": { + "$ref": "#/definitions/InvalidError" + } + } + } + } + }, + "/transactions/{id}/refund": { + "parameters": [ + { + "$ref": "#/parameters/resourceId" + } + ], + "post": { + "tags": [ + "Transaction" + ], + "summary": "Refund a Transaction", + "description": "Refund a Transaction with specified identifier string\n", + "parameters": [ + { + "name": "body", + "in": "body", + "description": "Transaction resource", + "required": true, + "schema": { + "$ref": "#/definitions/TransactionRefund" + } + } + ], + "responses": { + "201": { + "description": "Transaction was refunded successfully", + "schema": { + "$ref": "#/definitions/Transaction" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "404": { + "$ref": "#/responses/NotFound" + } + } + } + }, + "/transactions/{id}": { + "parameters": [ + { + "$ref": "#/parameters/resourceId" + } + ], + "get": { + "tags": [ + "Transaction" + ], + "summary": "Retrieve a Transaction", + "description": "Retrieve a Transaction with specified identifier string\n", + "responses": { + "200": { + "description": "Transaction was retrieved successfully", + "schema": { + "$ref": "#/definitions/Transaction" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "404": { + "$ref": "#/responses/NotFound" + } + } + } + }, + "/transactions": { + "get": { + "tags": [ + "Transaction" + ], + "summary": "Retrieve a list of transactions", + "description": "Retrieve a list of transactions\n", + "parameters": [ + { + "$ref": "#/parameters/collectionLimit" + }, + { + "$ref": "#/parameters/collectionOffset" + } + ], + "responses": { + "200": { + "description": "A list of transactions was retrieved successfully", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/Transaction" + } + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + } + } + } + }, + "/websites/{id}": { + "parameters": [ + { + "$ref": "#/parameters/resourceId" + } + ], + "get": { + "tags": [ + "Website" + ], + "summary": "Retrieve a website", + "description": "Retrieve a website with specified identifier string\n", + "responses": { + "200": { + "description": "Website was retrieved successfully", + "schema": { + "$ref": "#/definitions/Website" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "404": { + "$ref": "#/responses/NotFound" + } + } + }, + "put": { + "tags": [ + "Website" + ], + "summary": "Create or update a website with predefined ID", + "description": "Create or update a website with predefined identifier string\n", + "parameters": [ + { + "name": "body", + "in": "body", + "description": "Website resource", + "required": true, + "schema": { + "$ref": "#/definitions/Website" + } + } + ], + "responses": { + "200": { + "description": "Website was updated", + "schema": { + "$ref": "#/definitions/Website" + } + }, + "201": { + "description": "Website was created", + "schema": { + "$ref": "#/definitions/Website" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "404": { + "$ref": "#/responses/NotFound" + }, + "422": { + "description": "Invalid data was sent", + "schema": { + "$ref": "#/definitions/InvalidError" + } + } + } + }, + "delete": { + "tags": [ + "Website" + ], + "summary": "Delete a website", + "description": "Delete a website with predefined identifier string\n", + "responses": { + "204": { + "description": "Website was deleted" + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "404": { + "$ref": "#/responses/NotFound" + }, + "409": { + "description": "Website has related resources and cannot be deleted" + } + } + } + }, + "/websites": { + "get": { + "tags": [ + "Website" + ], + "summary": "Retrieve a list of websites", + "description": "Retrieve a list of websites\n", + "parameters": [ + { + "$ref": "#/parameters/collectionLimit" + }, + { + "$ref": "#/parameters/collectionOffset" + } + ], + "responses": { + "200": { + "description": "A list of Websites was retrieved successfully", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/Website" + } + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + } + } + }, + "post": { + "tags": [ + "Website" + ], + "summary": "Create a website", + "description": "Create a website\n", + "parameters": [ + { + "name": "body", + "in": "body", + "description": "Website resource", + "required": true, + "schema": { + "$ref": "#/definitions/Website" + } + } + ], + "responses": { + "201": { + "description": "Website was created", + "schema": { + "$ref": "#/definitions/Website" + } + }, + "401": { + "$ref": "#/responses/AccessForbidden" + }, + "422": { + "description": "Invalid data was sent", + "schema": { + "$ref": "#/definitions/InvalidError" + } + } + } + } + } + }, + "definitions": { + "AuthenticationOptions": { + "type": "object", + "properties": { + "passwordPattern": { + "description": "Allowed password pattern", + "type": "string" + }, + "credentialTtl": { + "description": "The default lifetime of the credential in seconds", + "type": "integer" + }, + "authTokenTtl": { + "description": "The default lifetime of the auth-token in seconds", + "type": "integer" + }, + "resetTokenTtl": { + "description": "The default lifetime of the reset-token in seconds", + "type": "integer" + } + } + }, + "AuthenticationToken": { + "type": "object", + "required": [ + "username", + "password" + ], + "properties": { + "token": { + "description": "The token identifier string", + "type": "string", + "readOnly": true + }, + "username": { + "description": "The token's username", + "type": "string" + }, + "password": { + "description": "The token's password (write-only)", + "type": "string", + "format": "password" + }, + "credentialId": { + "description": "The credential's ID", + "type": "string", + "readOnly": true + }, + "customerId": { + "description": "The token's customer ID", + "type": "string", + "readOnly": true + }, + "expiredTime": { + "description": "Token's expired time", + "type": "string", + "format": "date-time" + }, + "_links": { + "description": "The links related to token", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/Link" + } + } + } + }, + "Blacklist": { + "type": "object", + "required": [ + "type", + "value" + ], + "properties": { + "id": { + "description": "The blacklist identifier string", + "type": "string", + "readOnly": true + }, + "type": { + "description": "The blacklist type", + "type": "string", + "enum": [ + "paymentCardId", + "customerId", + "email", + "ipAddress", + "country" + ] + }, + "value": { + "description": "The blacklist value", + "type": "string" + }, + "ttl": { + "description": "The blacklist time to live", + "type": "integer", + "minimum": 30 + }, + "expireTime": { + "description": "The blacklist expire time", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "createdTime": { + "description": "The blacklist created time", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedTime": { + "description": "The blacklist updated time", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "_links": { + "description": "The links related to blacklist", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/Link" + } + } + } + }, + "Contact": { + "type": "object", + "properties": { + "id": { + "description": "The contact identifier string", + "type": "string", + "readOnly": true + }, + "customerId": { + "description": "The contact ID", + "type": "string" + }, + "firstName": { + "description": "The contact first name", + "type": "string" + }, + "lastName": { + "description": "The contact last name", + "type": "string" + }, + "organization": { + "description": "The contact organization", + "type": "string" + }, + "address": { + "description": "The contact street address", + "type": "string", + "maxLength": 60 + }, + "address2": { + "description": "The contact street address (second line)", + "type": "string", + "maxLength": 60 + }, + "city": { + "description": "The contact city", + "type": "string", + "maxLength": 45 + }, + "region": { + "description": "The contact region (state)", + "type": "string", + "maxLength": 45 + }, + "country": { + "description": "The contact country ISO Alpha-2 code", + "type": "string", + "pattern": "^[A-Z]{2}$" + }, + "postalCode": { + "description": "The contact postal code", + "type": "string", + "maxLength": 10 + }, + "phoneNumber": { + "description": "The contact phone number", + "type": "string" + }, + "createdTime": { + "description": "The contact created time", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedTime": { + "description": "The contact updated time", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "_links": { + "description": "The links related to contact", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/Link" + } + }, + "customFields": { + "$ref": "#/definitions/ResourceCustomFields" + } + } + }, + "Credential": { + "type": "object", + "required": [ + "username", + "password", + "customerId" + ], + "properties": { + "id": { + "description": "The credential identifier string", + "type": "string", + "readOnly": true + }, + "username": { + "description": "Credential's username", + "type": "string" + }, + "password": { + "description": "The credential's password", + "type": "string", + "format": "password" + }, + "customerId": { + "description": "The credential's customer ID", + "type": "string" + }, + "expiredTime": { + "description": "The credential's expired time", + "type": "string", + "format": "date-time" + }, + "_links": { + "description": "The links related to credential", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/Link" + } + } + } + }, + "Customer": { + "type": "object", + "properties": { + "id": { + "description": "The customer identifier string", + "type": "string", + "readOnly": true + }, + "email": { + "description": "The customer email", + "type": "string", + "format": "email", + "maxLength": 100 + }, + "firstName": { + "description": "The customer first name", + "type": "string" + }, + "lastName": { + "description": "The customer last name", + "type": "string" + }, + "ipAddress": { + "description": "The customer IP", + "type": "string", + "format": "ipv4" + }, + "defaultCard": { + "description": "The customer default card ID", + "type": "string" + }, + "createdTime": { + "description": "The customer created time", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedTime": { + "description": "The customer updated time", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "_links": { + "description": "The links related to customer", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/Link" + } + }, + "customFields": { + "$ref": "#/definitions/ResourceCustomFields" + } + } + }, + "CustomField": { + "description": "A separate Custom Field schema", + "type": "object", + "required": [ + "name", + "type" + ], + "properties": { + "name": { + "description": "The name of the custom field", + "type": "string" + }, + "type": { + "description": "Type value | Description\n------------- | -------------\narray | An array of strings up to 255 characters, maximum size is 1000 elements\nboolean | true or false\ndate | String of format \"full-date\" (YYYY-MM-DD) from RFC-3339 (full-date)\ndatetime | String of format \"date-time\" (YYYY-MM-DDTHH:MM:SSZ) from RFC-3339 (date-time)\ninteger | Cardinal value of -2^31..2^31-1\nnumber | Float value. It can take cardinal values also which are interpreted as float\nstring | Regular string up to 255 characters\nmonetary | A map of 3-letters currency code and amount, e.g. {\"currency\": \"EUR\", \"amount\": 25.30}\n", + "type": "string", + "enum": [ + "array", + "boolean", + "datetime", + "integer", + "number", + "string", + "monetary" + ] + }, + "description": { + "description": "The custom field description", + "type": "string" + }, + "additionalSchema": { + "description": "Additional parameters which can be added according to type:\nParameter Name | Types | Description\n-------------- | ------------- | -------------\nallowedValues | string, array | List of allowed values\n" + } + } + }, + "DeclineInstructions": { + "type": "object", + "description": "Dunning instructions object for payment declines", + "properties": { + "dunningId": { + "description": "The dunning identifier string", + "type": "string" + }, + "dunningIndex": { + "readOnly": true, + "description": "The position in the sequence of dunning", + "type": "integer" + } + } + }, + "EmailCredential": { + "type": "object", + "required": [ + "senderName", + "senderEmail", + "host", + "port", + "username", + "password" + ], + "properties": { + "id": { + "description": "Credential's identifier string", + "type": "string", + "readOnly": true + }, + "senderName": { + "description": "Credential's sender name", + "type": "string" + }, + "senderEmail": { + "description": "Credential's sender email address", + "type": "string", + "format": "email" + }, + "host": { + "description": "Credential's host", + "type": "string" + }, + "port": { + "description": "Credential's port", + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "username": { + "description": "Credential's username", + "type": "string" + }, + "password": { + "description": "Credential's password", + "type": "string", + "format": "password" + }, + "authenticationMethod": { + "description": "Credential's authentication method", + "type": "string", + "enum": [ + "none", + "plain", + "login", + "cram-md5" + ] + }, + "encryprionMethod": { + "description": "Credential's encryption method", + "type": "string", + "enum": [ + "none", + "tls", + "ssl" + ] + }, + "createdTime": { + "description": "Credential's created time", + "type": "string", + "format": "date-time" + }, + "updatedTime": { + "description": "Credential's updated time", + "type": "string", + "format": "date-time" + }, + "_links": { + "description": "The links related to credential", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/Link" + } + } + } + }, + "Error": { + "type": "object", + "properties": { + "status": { + "type": "integer", + "minimum": 100, + "maximum": 600 + }, + "error": { + "type": "string" + } + } + }, + "GatewayAccount": { + "type": "object", + "required": [ + "gatewayName", + "merchantCategoryCode", + "websites", + "acquirerName", + "acceptedCurrencies", + "organizationId" + ], + "properties": { + "id": { + "description": "The gateway identifier string", + "type": "string", + "readOnly": true + }, + "gatewayName": { + "description": "The gateway name", + "type": "string" + }, + "gatewayConfig": { + "type": "object", + "description": "Gateway config. Fields depends on gatewayName" + }, + "merchantCategoryCode": { + "description": "The gateway's merchant category code", + "type": "integer", + "minimum": 742, + "maximum": 9950 + }, + "dccMarkup": { + "description": "Dynamic currency conversion markup in basis points (disabled if null)", + "type": "integer", + "minimum": 1, + "maximum": 10000 + }, + "descriptor": { + "description": "The gateway's desciptor", + "type": "string" + }, + "city": { + "description": "The gateway's city field", + "type": "string" + }, + "organizationId": { + "description": "Organization ID", + "type": "string" + }, + "websites": { + "description": "Websites IDs", + "type": "array", + "items": { + "type": "string", + "description": "Website ID" + } + }, + "acquirerName": { + "description": "Acquirer name", + "type": "string" + }, + "monthlyLimit": { + "description": "Monthly Limit", + "type": "integer", + "format": "double", + "minimum": 0 + }, + "threeDSecure": { + "description": "True, if Gateway Account allows 3DSecure", + "type": "boolean" + }, + "threeDSecureType": { + "description": "Type of 3DSecure", + "type": "string", + "enum": [ + null, + "integrated", + "external" + ] + }, + "dynamicDescriptor": { + "description": "True, if Gateway Account allows dynamic descriptor", + "type": "boolean" + }, + "acceptedCurrencies": { + "description": "Accepted currencies (array of the currency three letter code)", + "type": "array", + "items": { + "type": "string" + } + }, + "paymentMethods": { + "description": "Accepted payments methods", + "type": "array", + "items": { + "type": "string", + "enum": [ + "Visa", + "Mastercard", + "American_Express", + "Discover", + "Maestro", + "Solo", + "Electron", + "JCB", + "Voyager", + "Diners_Club", + "Switch", + "Laser" + ] + } + }, + "downtimeStart": { + "description": "Gateway downtime start", + "type": "string", + "format": "date-time" + }, + "downtimeEnd": { + "description": "Gateway downtime end", + "type": "string", + "format": "date-time" + }, + "createdTime": { + "description": "Gateway Account created time", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedTime": { + "description": "Gateway Account updated time", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "_links": { + "description": "The links related to gateway account", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/Link" + } + } + } + }, + "InvalidError": { + "allOf": [ + { + "$ref": "#/definitions/Error" + }, + { + "type": "object", + "properties": { + "details": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + ] + }, + "Invoice": { + "type": "object", + "required": [ + "customerId", + "websiteId", + "currency" + ], + "properties": { + "id": { + "description": "The invoice identifier string", + "type": "string", + "readOnly": true + }, + "customerId": { + "description": "The customer's ID", + "type": "string" + }, + "websiteId": { + "description": "The website's ID", + "type": "string" + }, + "currency": { + "description": "The currency three letter code", + "type": "string" + }, + "billingContactId": { + "description": "Invoice's billing contact ID", + "type": "string", + "format": "email" + }, + "deliveryContactId": { + "description": "Invoice's delivery contact ID", + "type": "string" + }, + "items": { + "type": "array", + "description": "Invoice items array", + "readOnly": true, + "items": { + "type": "string" + } + }, + "abandonedTime": { + "description": "Invoice abandoned time", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "voidedTime": { + "description": "Invoice voided time", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "closedTime": { + "description": "Invoice closed time", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "dueTime": { + "description": "Invoice due time", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "issuedTime": { + "description": "Invoice issued time", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "createdTime": { + "description": "Invoice created time", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "_links": { + "description": "The links related to invoice", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/Link" + } + } + } + }, + "InvoiceIssue": { + "type": "object", + "properties": { + "issueTime": { + "type": "string", + "format": "date-time" + } + } + }, + "InvoiceItem": { + "type": "object", + "required": [ + "type", + "unitPrice" + ], + "properties": { + "id": { + "description": "The website identifier string", + "type": "string", + "readOnly": true + }, + "type": { + "description": "Invoice item's type", + "type": "string", + "enum": [ + "debit", + "credit" + ] + }, + "unitPrice": { + "description": "Invoice item's price", + "type": "number", + "format": "double" + }, + "quantity": { + "description": "Invoice item's quantity", + "type": "integer" + }, + "description": { + "description": "Invoice item's description", + "type": "string" + }, + "periodStartTime": { + "description": "Start time", + "type": "string", + "format": "date-time" + }, + "periodEndTime": { + "description": "End time", + "type": "string", + "format": "date-time" + }, + "_links": { + "description": "The links related to invoice item", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/Link" + } + } + } + }, + "Layout": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "id": { + "description": "The layout identifier string", + "type": "string", + "readOnly": true + }, + "name": { + "description": "The name of the layout string", + "type": "string" + }, + "items": { + "description": "The array of layout items (planId and starred)", + "type": "array", + "items": { + "$ref": "#/definitions/LayoutItem" + } + }, + "createdBy": { + "description": "The process that created this layout", + "type": "string", + "readOnly": true + }, + "updatedBy": { + "description": "The process that updated this layout", + "type": "string", + "readOnly": true + }, + "createdTime": { + "description": "Layout created time", + "type": "string", + "readOnly": true + }, + "updatedTime": { + "description": "Layout updated time", + "type": "string", + "readOnly": true + }, + "customFields": { + "description": "Any custom object that must be stored with layout", + "type": "object" + }, + "_links": { + "description": "The links related to this layout", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/Link" + } + } + } + }, + "LayoutItem": { + "type": "object", + "properties": { + "planId": { + "description": "The plan identifier string", + "type": "string" + }, + "starred": { + "description": "Boolean if the plan should be starred (special callout presentation)", + "type": "boolean" + }, + "order": { + "description": "Item's order in Layout", + "type": "integer", + "readOnly": true + } + } + }, + "LeadSource": { + "type": "object", + "required": [ + "customerId" + ], + "properties": { + "id": { + "description": "The lead source identifier string", + "type": "string", + "readOnly": true + }, + "customerId": { + "description": "Customer ID", + "type": "string" + }, + "medium": { + "description": "Lead Source's medium (eg search, display)", + "type": "string" + }, + "source": { + "description": "Lead Source's source (eg google, yahoo)", + "type": "string" + }, + "campaign": { + "description": "Lead Source's campaign (eg go-big-123)", + "type": "string" + }, + "term": { + "description": "Lead Source's term (eg salt shakers)", + "type": "string" + }, + "content": { + "description": "Lead Source's content (eg smiley faces)", + "type": "string" + }, + "affiliate": { + "description": "Lead Source's affiliate (eg 123, Bob Smith)", + "type": "string" + }, + "subAffiliate": { + "description": "Lead Source's sub-affiliate also called a sub-id or click id in some circles (eg 123456)", + "type": "string" + }, + "salesAgent": { + "description": "Lead Source's sales agent (eg James Bond)", + "type": "string" + }, + "clickId": { + "description": "Lead Source's click id (may come from an ad server)", + "type": "string" + }, + "path": { + "description": "Lead Source's path uri (eg www.example.com/some/landing/path)", + "type": "string" + }, + "ipAddress": { + "description": "Customer's IP Address", + "type": "string" + }, + "currency": { + "description": "Currency (three letter ISO 4217 alpha code) (eg USD, EUR)", + "type": "string" + }, + "amount": { + "description": "The amount that the lead cost", + "type": "number", + "format": "double" + }, + "createdTime": { + "description": "LeadSource created time", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedTime": { + "description": "LeadSource updated time", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "_links": { + "description": "The links related to LeadSource", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/Link" + } + } + } + }, + "Link": { + "type": "object", + "properties": { + "rel": { + "description": "The link type", + "type": "string", + "enum": [ + "self" + ] + }, + "href": { + "description": "The link URL", + "type": "string" + } + } + }, + "Login": { + "type": "object", + "required": [ + "email", + "password" + ], + "properties": { + "email": { + "description": "Email", + "type": "string" + }, + "password": { + "description": "Password", + "type": "string", + "format": "password" + }, + "expiredTime": { + "description": "Session expired time. Defaults to one hour", + "type": "string", + "format": "date-time" + } + } + }, + "Note": { + "type": "object", + "required": [ + "content", + "relatedType", + "relatedId" + ], + "properties": { + "id": { + "description": "The note identifier string", + "type": "string", + "readOnly": true + }, + "createdBy": { + "description": "The note's creator", + "type": "string", + "readOnly": true + }, + "content": { + "description": "The note's name", + "type": "string" + }, + "archived": { + "description": "Is the note archived (excluded from List method)", + "type": "boolean" + }, + "relatedType": { + "description": "The note's related resource type (customer, paymentCard, paymentGateway, subscription, transaction)", + "type": "string" + }, + "relatedId": { + "description": "The note's related resource ID", + "type": "string" + }, + "createdTime": { + "description": "Note created time", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedTime": { + "description": "Note updated time", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "archivedTime": { + "description": "Note archived time", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "_links": { + "description": "The links related to note", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/Link" + } + } + } + }, + "Organization": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "id": { + "description": "The organization identifier string", + "type": "string", + "readOnly": true + }, + "createdTime": { + "description": "The organization created time", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedTime": { + "description": "The organization updated time", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "name": { + "description": "The organization name", + "type": "string", + "maxLength": 60 + }, + "address": { + "description": "The organization street address", + "type": "string", + "maxLength": 60 + }, + "address2": { + "description": "The organization street address", + "type": "string", + "maxLength": 60 + }, + "city": { + "description": "The organization city", + "type": "string", + "maxLength": 45 + }, + "region": { + "description": "The organization region (state)", + "type": "string", + "maxLength": 45 + }, + "country": { + "description": "The organization country ISO Alpha-2 code", + "type": "string", + "pattern": "^[A-Z]{2}$" + }, + "postalCode": { + "description": "The organization postal code", + "type": "string", + "maxLength": 10 + }, + "_links": { + "description": "The links related to organization", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/Link" + } + } + } + }, + "Payment": { + "type": "object", + "required": [ + "websiteId", + "customerId", + "currency", + "amount", + "method", + "paymentInstrument" + ], + "properties": { + "websiteId": { + "description": "The website identifier string", + "type": "string" + }, + "customerId": { + "description": "The customer identifier string", + "type": "string" + }, + "currency": { + "description": "The payment currency ISO Alpha code", + "type": "string" + }, + "amount": { + "description": "The payment amount", + "type": "integer", + "format": "double" + }, + "scheduledTime": { + "description": "The time the payment is scheduled for collection", + "type": "string", + "format": "date-time" + }, + "invoiceIds": { + "description": "The array of invoice identifiers", + "type": "array", + "items": { + "type": "string" + } + }, + "method": { + "description": "The payment method", + "type": "string", + "enum": [ + "payment_card", + "paypal", + "cash" + ] + }, + "description": { + "description": "The payment description", + "type": "string", + "maxLength": 255 + }, + "paymentInstrument": { + "$ref": "#/definitions/PaymentInstrument" + }, + "customFields": { + "$ref": "#/definitions/ResourceCustomFields" + }, + "declineInstructions": { + "$ref": "#/definitions/DeclineInstructions" + } + } + }, + "PaymentCard": { + "type": "object", + "properties": { + "id": { + "description": "The card identifier string", + "type": "string", + "readOnly": true + }, + "customerId": { + "description": "The Customer's ID. Required if card is creating not from Token", + "type": "string" + }, + "pan": { + "description": "The card PAN (Primary Account Number). Required if card is creating not from Token", + "type": "string" + }, + "expYear": { + "description": "Card's expiry year. Required if card is creating not from Token", + "type": "integer" + }, + "expMonth": { + "description": "Card's expiry month. Required if card is creating not from Token", + "type": "integer" + }, + "cvv": { + "description": "Card's cvv (card verification value). Required if card is creating not from Token", + "type": "string" + }, + "billingContactId": { + "description": "The Billing Contact ID. Required if card is creating not from Token", + "type": "string" + }, + "token": { + "description": "PaymentCardToken. Use without any other fields", + "type": "string" + }, + "status": { + "description": "Payment Card status", + "type": "string", + "readOnly": true, + "enum": [ + "active", + "expired", + "inactive", + "deactivated", + "pending" + ] + }, + "createdTime": { + "description": "Card created time", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedTime": { + "description": "Card updated time", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "_links": { + "description": "The links related to card", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/Link" + } + }, + "customFields": { + "$ref": "#/definitions/ResourceCustomFields" + } + } + }, + "PaymentCardToken": { + "type": "object", + "required": [ + "pan", + "expMonth", + "expYear", + "firstName", + "lastName" + ], + "properties": { + "id": { + "description": "The token identifier string", + "type": "string", + "readOnly": true + }, + "pan": { + "description": "The card PAN (Primary Account Number)", + "type": "string" + }, + "expMonth": { + "description": "Card's expiry month", + "type": "integer" + }, + "expYear": { + "description": "Card's expiry year", + "type": "integer" + }, + "firstName": { + "description": "First name on payment card", + "type": "string" + }, + "lastName": { + "description": "Last name on payment card", + "type": "string" + }, + "cvv": { + "description": "The CVV/CVC of the payment card", + "type": "string" + }, + "address": { + "description": "Customer's billing address 1", + "type": "string" + }, + "address2": { + "description": "Customer's billing address 2", + "type": "string" + }, + "city": { + "description": "Billing address city", + "type": "string" + }, + "region": { + "description": "Billing region", + "type": "string" + }, + "country": { + "description": "Billing country - Two letter code", + "type": "string" + }, + "phoneNumber": { + "description": "Phone number", + "type": "string" + }, + "postalCode": { + "description": "Billing postal code", + "type": "string" + }, + "fingerprint": { + "description": "Device fingerprint hash", + "type": "string" + }, + "_links": { + "description": "The links related to token", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/Link" + } + } + } + }, + "PaymentInstrument": { + "type": "object", + "description": "Payment instrument object", + "properties": { + "paymentCardId": { + "description": "The payment card identifier string, required when paying by payment card", + "type": "string" + }, + "gatewayAccountId": { + "description": "The payment gateway identifier string", + "type": "string" + } + } + }, + "PaymentResponse": { + "allOf": [ + { + "$ref": "#/definitions/Payment" + }, + { + "type": "object", + "properties": { + "id": { + "description": "The payment identifier string", + "type": "string" + }, + "createdBy": { + "description": "The process that created this payment", + "type": "string" + }, + "updatedBy": { + "description": "The process that updated this payment", + "type": "string" + }, + "state": { + "description": "Payment state", + "type": "string" + }, + "createdTime": { + "description": "Payment created time", + "type": "string" + }, + "updatedTime": { + "description": "Payment updated time", + "type": "string" + }, + "_links": { + "description": "The links related to payment", + "type": "array", + "items": { + "$ref": "#/definitions/Link" + } + } + } + } + ] + }, + "Plan": { + "type": "object", + "required": [ + "name", + "currency" + ], + "properties": { + "id": { + "description": "The website identifier string", + "type": "string", + "readOnly": true + }, + "name": { + "description": "The plan name", + "type": "string" + }, + "currency": { + "description": "Currency (three letter ISO 4217 code)", + "type": "string" + }, + "currencySign": { + "description": "Currency sign", + "type": "string" + }, + "isActive": { + "description": "If the plan is not active, customers cannot subscribe to the plan (default to true)", + "type": "boolean" + }, + "description": { + "description": "The plan description", + "type": "string" + }, + "richDescription": { + "description": "The plan rich description - supports HTML", + "type": "string" + }, + "recurringAmount": { + "description": "The amount that recurs according to the schedule", + "type": "number", + "format": "double" + }, + "recurringPeriodUnit": { + "description": "The unit of time", + "type": "string", + "enum": [ + "day", + "week", + "month", + "year" + ] + }, + "recurringPeriodLength": { + "description": "The length of time (used with the recurringPeriodUnit)", + "type": "integer" + }, + "trialAmount": { + "description": "The amount of a trial - 0 is a valid value (for free)", + "type": "number", + "format": "double" + }, + "trialPeriodUnit": { + "description": "The unit of time", + "type": "string", + "enum": [ + "day", + "week", + "month", + "year" + ] + }, + "trialPeriodLength": { + "description": "The length of time (used with the trialPeriodUnit)", + "type": "integer" + }, + "setupAmount": { + "description": "The amount of a trial - 0 is a valid value (for free)", + "type": "number", + "format": "double" + }, + "expireTime": { + "description": "Time when the plan is not longer valid", + "type": "string", + "format": "date-time" + }, + "contractTermUnit": { + "description": "The unit of time", + "type": "string", + "enum": [ + "day", + "week", + "month", + "year" + ] + }, + "contractTermLength": { + "description": "The length that corresponds with the contractTermUnit", + "type": "integer" + }, + "recurringPeriodLimit": { + "description": "The number of times a subscription will rebill until the contract is over", + "type": "integer" + }, + "minQuantity": { + "description": "Minimum quantity per order, defaults to 1", + "type": "integer" + }, + "maxQuantity": { + "description": "Maximum quantity per order (NULL if no maximum)", + "type": "integer" + }, + "createdTime": { + "description": "Plan created time", + "type": "string", + "format": "date-time" + }, + "updatedTime": { + "description": "Plan updated time", + "type": "string", + "format": "date-time" + }, + "_links": { + "description": "The links related to plan", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/Link" + } + } + } + }, + "Product": { + "type": "object", + "description": "Your product includes digital goods, services, and physical goods. \nProducts appear on invoice line items. If you set a tax category identifier,\ntaxes will be calculated upon invoice generation.\n", + "example": "{\n \"id\": \"stringid\",\n \"name\": \"Widget\",\n \"description\": \"Fantastic widget\",\n \"taxCategoryId\": null,\n \"customFields\": [],\n \"createdTime\": \"2015-08-27 13:45:12\",\n \"updatedTime\": \"2015-08-27 13:45:12\",\n \"_links\": [\n {\n \"self\": \"https://api.rebilly.com/v2.1/products/stringid\"\n }\n ]\n}\n", + "properties": { + "id": { + "description": "The product identifier string", + "type": "string", + "readOnly": true, + "maxLength": 50 + }, + "name": { + "description": "The product name", + "type": "string", + "maxLength": 255 + }, + "description": { + "description": "The product description", + "type": "string", + "maxLength": 512 + }, + "taxCategoryId": { + "description": "The product's tax category identifier string", + "type": "string", + "enum": [ + "99999", + "20010", + "40030", + "51020", + "51010", + "31000", + "30070" + ] + }, + "customFields": { + "description": "Any custom object that may be stored with product (see custom fields)", + "type": "string" + }, + "createdTime": { + "description": "The product created time", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedTime": { + "description": "The product updated time", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "_links": { + "description": "The links related to product", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/Link" + } + } + } + }, + "ResetPasswordToken": { + "type": "object", + "required": [ + "username", + "password" + ], + "properties": { + "token": { + "description": "The token's identifier string", + "type": "string", + "readOnly": true + }, + "username": { + "description": "The token's username", + "type": "string" + }, + "password": { + "description": "Token's password (only for POST)", + "type": "string", + "format": "password" + }, + "credential": { + "description": "Token's credential ID", + "type": "string" + }, + "expiredTime": { + "description": "Password expired time", + "type": "string", + "format": "date-time" + }, + "_links": { + "description": "The links related to token", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/Link" + } + } + } + }, + "ResourceCustomFields": { + "description": "\"Custom Fields list as a map `{\"custom field name\": \"custom field value\", ...}\"`.\nThe format must follow the saved format (see Custom Fields section for the formats).\n", + "type": "object" + }, + "Session": { + "type": "object", + "required": [ + "permissions" + ], + "properties": { + "id": { + "description": "The session identifier string", + "type": "string", + "readOnly": true + }, + "token": { + "description": "The session's token used for authentication", + "type": "string" + }, + "permissions": { + "type": "object", + "description": "The session's permissions. It's an array with following format: [ { resourceName: '' methods: ['GET', 'POST', 'PUT', 'HEAD', 'DELETE'], id: [] }, { resourceName: '' methods: ['GET', 'POST', 'PUT', 'HEAD', 'DELETE'], id: [] } ]\nIt can contain wildcard (*) for any field: [ { resourceName: '*' id: '*', methods: '*' } ] " + }, + "createdTime": { + "description": "Session created time", + "type": "string", + "format": "date-time" + }, + "updatedTime": { + "description": "Session updated time", + "type": "string", + "format": "date-time" + }, + "expiredTime": { + "description": "Session expired time. Defaults to one hour", + "type": "string", + "format": "date-time" + }, + "_links": { + "description": "The links related to session", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/Link" + } + } + } + }, + "Status": { + "type": "object", + "properties": { + "status": { + "description": "The API status. If everything is ok - value is 'ok'", + "type": "string", + "readOnly": true, + "enum": [ + "ok" + ] + }, + "time": { + "description": "Current time", + "type": "string", + "format": "date-time", + "readOnly": true + } + } + }, + "Subscription": { + "type": "object", + "required": [ + "customerId", + "planId", + "websiteId" + ], + "properties": { + "id": { + "description": "The Subscription identifier string", + "type": "string", + "readOnly": true + }, + "customerId": { + "description": "Unique id for each customer", + "type": "string" + }, + "planId": { + "description": "Unique id for each plan", + "type": "string" + }, + "websiteId": { + "description": "Unique id for each website", + "type": "string" + }, + "initialInvoiceId": { + "description": "Unique id for the initial invoice", + "type": "string" + }, + "deliveryContactId": { + "description": "Unique id for each delivery contact", + "type": "string" + }, + "billingContactId": { + "description": "Unique id for each billing contact", + "type": "string" + }, + "status": { + "description": "Subscription status", + "type": "string", + "readOnly": true + }, + "quantity": { + "description": "Quantity for each subscription. Default value to 1", + "type": "integer" + }, + "startTime": { + "description": "Subscription start time", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "activationTime": { + "description": "Subscription activation time", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "endTime": { + "description": "Subscription end time", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "renewalTime": { + "description": "Subscription renewal time", + "type": "string", + "format": "date-time" + }, + "cancelledTime": { + "description": "Subscription cancelled time", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "createdTime": { + "description": "Subscription created time", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedTime": { + "description": "Subscription updated time", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "_links": { + "description": "The links related to subscription", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/Link" + } + }, + "customFields": { + "$ref": "#/definitions/ResourceCustomFields" + } + } + }, + "SubscriptionCancel": { + "type": "object", + "required": [ + "policy" + ], + "properties": { + "policy": { + "description": "Cancel policy", + "type": "string", + "enum": [ + "AT_NEXT_RENEWAL", + "NOW_WITH_PRORATA_REFUND", + "NOW_WITH_PRORATA_CREDIT", + "NOW_WITHOUT_REFUND", + "NOW_WITH_FULL_REFUND" + ] + } + } + }, + "SubscriptionSwitch": { + "type": "object", + "required": [ + "planId", + "policy" + ], + "properties": { + "planId": { + "description": "The plan identifier string", + "type": "string" + }, + "policy": { + "description": "Switch policy", + "type": "string", + "enum": [ + "AT_NEXT_RENEWAL", + "NOW_WITH_PRORATA_REFUND", + "NOW_WITH_PRORATA_CREDIT", + "NOW_WITHOUT_REFUND" + ] + }, + "websiteId": { + "description": "The website's ID", + "type": "string" + }, + "quantity": { + "description": "Quantity for each subscription. Default value to 1", + "type": "integer" + } + } + }, + "TaxCategory": { + "type": "object", + "properties": { + "id": { + "description": "The tax category identifier string", + "type": "string", + "readOnly": true, + "maxLength": 50, + "enum": [ + "99999", + "20010", + "40030", + "51020", + "51010", + "31000", + "30070" + ] + }, + "description": { + "description": "The tax category description", + "type": "string", + "maxLength": 512 + }, + "taxProvider": { + "description": "The tax category maps to a provider", + "type": "string", + "enum": [ + "TaxJar" + ] + }, + "_links": { + "description": "The links related to tax category", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/Link" + } + } + } + }, + "Transaction": { + "type": "object", + "properties": { + "id": { + "description": "The transaction identifier string", + "type": "string", + "readOnly": true + }, + "type": { + "description": "Transaction type", + "type": "string", + "readOnly": true, + "enum": [ + "authorize", + "capture", + "credit", + "refund", + "sale", + "void" + ] + }, + "result": { + "description": "Transaction result", + "type": "string", + "readOnly": true, + "enum": [ + "approved", + "conn_error", + "declined", + "never_sent", + "pending", + "pending_processor", + "timeout", + "unknown" + ] + }, + "amount": { + "description": "The transactions's amount", + "type": "number", + "format": "double", + "readOnly": true + }, + "currency": { + "description": "The transactions's currency", + "type": "string", + "readOnly": true + }, + "parentTransactionId": { + "description": "The transactions's parent ID", + "type": "string", + "readOnly": true + }, + "rebillNumber": { + "description": "The transactions's rebill number", + "type": "integer", + "readOnly": true + }, + "gatewayAccountId": { + "description": "The transactions's Gateway Account ID", + "type": "string", + "readOnly": true + }, + "gatewayResponse": { + "description": "The transactions's processor response", + "type": "string", + "readOnly": true + }, + "websiteId": { + "description": "Website's ID", + "type": "string", + "readOnly": true + }, + "customerId": { + "description": "Customer's ID", + "type": "string", + "readOnly": true + }, + "paymentCardId": { + "description": "Payment Card's ID", + "type": "string", + "readOnly": true + }, + "createdTime": { + "description": "Transaction created time", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedTime": { + "description": "Transaction updated time", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "_links": { + "description": "The links related to transaction", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/Link" + } + } + } + }, + "TransactionRefund": { + "type": "object", + "required": [ + "amount" + ], + "properties": { + "amount": { + "description": "Refund amount", + "type": "number", + "format": "double" + } + } + }, + "Website": { + "type": "object", + "required": [ + "name", + "url", + "servicePhone", + "serviceEmail" + ], + "properties": { + "id": { + "description": "The website identifier string", + "type": "string", + "readOnly": true + }, + "name": { + "description": "The website's name", + "type": "string" + }, + "url": { + "description": "The website's domain address", + "type": "string" + }, + "servicePhone": { + "description": "The website's customer service phone number", + "type": "string" + }, + "serviceEmail": { + "description": "The website's customer service email address", + "type": "string", + "format": "email" + }, + "checkoutPageUri": { + "description": "Your own custom URI for this Checkout Page", + "type": "string" + }, + "webHookUrl": { + "description": "Webhook Url (only for POST/PUT)", + "type": "string" + }, + "webHookUsername": { + "description": "Webhook HTTP Authentication Username (only for POST/PUT)", + "type": "string" + }, + "webHookPassword": { + "description": "Webhook HTTP Authentication Password (only for POST/PUT)", + "type": "string" + }, + "createdTime": { + "description": "Website created time", + "type": "string", + "format": "date-time" + }, + "updatedTime": { + "description": "Website updated time", + "type": "string", + "format": "date-time" + }, + "_links": { + "description": "The links related to website", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/Link" + } + }, + "customFields": { + "$ref": "#/definitions/ResourceCustomFields" + } + } + } + } +} diff --git a/dist/redoc.js b/dist/redoc.js index dfc295de..556d75b1 100644 --- a/dist/redoc.js +++ b/dist/redoc.js @@ -1,2141 +1,2153 @@ -(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o -1; - -var resolvedPromise; - -// TODO(vicb): remove '!isFirefox' when the bug gets fixed: -// https://bugzilla.mozilla.org/show_bug.cgi?id=1162013 -if (hasNativePromise && !isFirefox) { - // When available use a native Promise to schedule microtasks. - // When not available, es6-promise fallback will be used - resolvedPromise = Promise.resolve(); -} - -var es6Promise = require('es6-promise').Promise; - -if (resolvedPromise) { - es6Promise._setScheduler(function(fn) { - resolvedPromise.then(fn); - }); -} - -// es6-promise asap should schedule microtasks via zone.scheduleMicrotask so that any -// user defined hooks are triggered -es6Promise._setAsap(function(fn, arg) { - global.zone.scheduleMicrotask(function() { - fn(arg); - }); -}); - -// The default implementation of scheduleMicrotask use the original es6-promise implementation -// to schedule a microtask -function scheduleMicrotask(fn) { - es6Promise._asap(this.bind(fn)); -} - -function addMicrotaskSupport(zoneClass) { - zoneClass.prototype.scheduleMicrotask = scheduleMicrotask; - return zoneClass; -} - -module.exports = { - addMicrotaskSupport: addMicrotaskSupport -}; - - - - -}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{"es6-promise":17}],5:[function(require,module,exports){ -(function (global){ -'use strict'; - -var fnPatch = require('./functions'); -var promisePatch = require('./promise'); -var mutationObserverPatch = require('./mutation-observer'); -var definePropertyPatch = require('./define-property'); -var registerElementPatch = require('./register-element'); -var webSocketPatch = require('./websocket'); -var eventTargetPatch = require('./event-target'); -var propertyDescriptorPatch = require('./property-descriptor'); -var geolocationPatch = require('./geolocation'); -var fileReaderPatch = require('./file-reader'); - -function apply() { - fnPatch.patchSetClearFunction(global, [ - 'timeout', - 'interval', - 'immediate' - ]); - - fnPatch.patchRequestAnimationFrame(global, [ - 'requestAnimationFrame', - 'mozRequestAnimationFrame', - 'webkitRequestAnimationFrame' - ]); - - fnPatch.patchFunction(global, [ - 'alert', - 'prompt' - ]); - - eventTargetPatch.apply(); - - propertyDescriptorPatch.apply(); - - promisePatch.apply(); - - mutationObserverPatch.patchClass('MutationObserver'); - mutationObserverPatch.patchClass('WebKitMutationObserver'); - - definePropertyPatch.apply(); - - registerElementPatch.apply(); - - geolocationPatch.apply(); - - fileReaderPatch.apply(); -} - -module.exports = { - apply: apply -}; - -}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{"./define-property":6,"./event-target":7,"./file-reader":8,"./functions":9,"./geolocation":10,"./mutation-observer":11,"./promise":12,"./property-descriptor":13,"./register-element":14,"./websocket":15}],6:[function(require,module,exports){ -'use strict'; - -var keys = require('../keys'); - -// might need similar for object.freeze -// i regret nothing - -var _defineProperty = Object.defineProperty; -var _getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; -var _create = Object.create; -var unconfigurablesKey = keys.create('unconfigurables'); - -function apply() { - Object.defineProperty = function (obj, prop, desc) { - if (isUnconfigurable(obj, prop)) { - throw new TypeError('Cannot assign to read only property \'' + prop + '\' of ' + obj); - } - if (prop !== 'prototype') { - desc = rewriteDescriptor(obj, prop, desc); - } - return _defineProperty(obj, prop, desc); - }; - - Object.defineProperties = function (obj, props) { - Object.keys(props).forEach(function (prop) { - Object.defineProperty(obj, prop, props[prop]); - }); - return obj; - }; - - Object.create = function (obj, proto) { - if (typeof proto === 'object') { - Object.keys(proto).forEach(function (prop) { - proto[prop] = rewriteDescriptor(obj, prop, proto[prop]); - }); - } - return _create(obj, proto); - }; - - Object.getOwnPropertyDescriptor = function (obj, prop) { - var desc = _getOwnPropertyDescriptor(obj, prop); - if (isUnconfigurable(obj, prop)) { - desc.configurable = false; - } - return desc; - }; -}; - -function _redefineProperty(obj, prop, desc) { - desc = rewriteDescriptor(obj, prop, desc); - return _defineProperty(obj, prop, desc); -}; - -function isUnconfigurable (obj, prop) { - return obj && obj[unconfigurablesKey] && obj[unconfigurablesKey][prop]; -} - -function rewriteDescriptor (obj, prop, desc) { - desc.configurable = true; - if (!desc.configurable) { - if (!obj[unconfigurablesKey]) { - _defineProperty(obj, unconfigurablesKey, { writable: true, value: {} }); - } - obj[unconfigurablesKey][prop] = true; - } - return desc; -} - -module.exports = { - apply: apply, - _redefineProperty: _redefineProperty -}; - - - -},{"../keys":3}],7:[function(require,module,exports){ -(function (global){ -'use strict'; - -var utils = require('../utils'); - -function apply() { - // patched properties depend on addEventListener, so this needs to come first - if (global.EventTarget) { - utils.patchEventTargetMethods(global.EventTarget.prototype); - - // Note: EventTarget is not available in all browsers, - // if it's not available, we instead patch the APIs in the IDL that inherit from EventTarget - } else { - var apis = [ - 'ApplicationCache', - 'EventSource', - 'FileReader', - 'InputMethodContext', - 'MediaController', - 'MessagePort', - 'Node', - 'Performance', - 'SVGElementInstance', - 'SharedWorker', - 'TextTrack', - 'TextTrackCue', - 'TextTrackList', - 'WebKitNamedFlow', - 'Worker', - 'WorkerGlobalScope', - 'XMLHttpRequest', - 'XMLHttpRequestEventTarget', - 'XMLHttpRequestUpload' - ]; - - apis.forEach(function(api) { - var proto = global[api] && global[api].prototype; - - // Some browsers e.g. Android 4.3's don't actually implement - // the EventTarget methods for all of these e.g. FileReader. - // In this case, there is nothing to patch. - if (proto && proto.addEventListener) { - utils.patchEventTargetMethods(proto); - } - }); - - // Patch the methods on `window` instead of `Window.prototype` - // `Window` is not accessible on Android 4.3 - if (typeof(window) !== 'undefined') { - utils.patchEventTargetMethods(window); - } - } -} - -module.exports = { - apply: apply -}; - -}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{"../utils":16}],8:[function(require,module,exports){ -'use strict'; - -var utils = require('../utils'); - -function apply() { - utils.patchClass('FileReader'); -} - -module.exports = { - apply: apply -}; -},{"../utils":16}],9:[function(require,module,exports){ -(function (global){ -'use strict'; - -var utils = require('../utils'); - -function patchSetClearFunction(obj, fnNames) { - fnNames.map(function (name) { - return name[0].toUpperCase() + name.substr(1); - }).forEach(function (name) { - var setName = 'set' + name; - var delegate = obj[setName]; - - if (delegate) { - var clearName = 'clear' + name; - var ids = {}; - - var bindArgs = setName === 'setInterval' ? utils.bindArguments : utils.bindArgumentsOnce; - - global.zone[setName] = function (fn) { - var id, fnRef = fn; - arguments[0] = function () { - delete ids[id]; - return fnRef.apply(this, arguments); - }; - var args = bindArgs(arguments); - id = delegate.apply(obj, args); - ids[id] = true; - return id; - }; - - obj[setName] = function () { - return global.zone[setName].apply(this, arguments); - }; - - var clearDelegate = obj[clearName]; - - global.zone[clearName] = function (id) { - if (ids[id]) { - delete ids[id]; - global.zone.dequeueTask(); - } - return clearDelegate.apply(this, arguments); - }; - - obj[clearName] = function () { - return global.zone[clearName].apply(this, arguments); - }; - } - }); -}; - - -/** - * requestAnimationFrame is typically recursively called from within the callback function - * that it executes. To handle this case, only fork a zone if this is executed - * within the root zone. - */ -function patchRequestAnimationFrame(obj, fnNames) { - fnNames.forEach(function (name) { - var delegate = obj[name]; - if (delegate) { - global.zone[name] = function (fn) { - var callZone = global.zone.isRootZone() ? global.zone.fork() : global.zone; - if (fn) { - arguments[0] = function () { - return callZone.run(fn, this, arguments); - }; - } - return delegate.apply(obj, arguments); - }; - - obj[name] = function () { - return global.zone[name].apply(this, arguments); - }; - } - }); -}; - -function patchSetFunction(obj, fnNames) { - fnNames.forEach(function (name) { - var delegate = obj[name]; - - if (delegate) { - global.zone[name] = function (fn) { - arguments[0] = function () { - return fn.apply(this, arguments); - }; - var args = utils.bindArgumentsOnce(arguments); - return delegate.apply(obj, args); - }; - - obj[name] = function () { - return zone[name].apply(this, arguments); - }; - } - }); -}; - -function patchFunction(obj, fnNames) { - fnNames.forEach(function (name) { - var delegate = obj[name]; - global.zone[name] = function () { - return delegate.apply(obj, arguments); - }; - - obj[name] = function () { - return global.zone[name].apply(this, arguments); - }; - }); -}; - - -module.exports = { - patchSetClearFunction: patchSetClearFunction, - patchSetFunction: patchSetFunction, - patchRequestAnimationFrame: patchRequestAnimationFrame, - patchFunction: patchFunction -}; - -}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{"../utils":16}],10:[function(require,module,exports){ -(function (global){ -'use strict'; - -var utils = require('../utils'); - -function apply() { - if (global.navigator && global.navigator.geolocation) { - utils.patchPrototype(global.navigator.geolocation, [ - 'getCurrentPosition', - 'watchPosition' - ]); - } -} - -module.exports = { - apply: apply -} - -}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{"../utils":16}],11:[function(require,module,exports){ -(function (global){ -'use strict'; - -var keys = require('../keys'); - -var originalInstanceKey = keys.create('originalInstance'); -var creationZoneKey = keys.create('creationZone'); -var isActiveKey = keys.create('isActive'); - -// wrap some native API on `window` -function patchClass(className) { - var OriginalClass = global[className]; - if (!OriginalClass) return; - - global[className] = function (fn) { - this[originalInstanceKey] = new OriginalClass(global.zone.bind(fn, true)); - // Remember where the class was instantiate to execute the enqueueTask and dequeueTask hooks - this[creationZoneKey] = global.zone; - }; - - var instance = new OriginalClass(function () {}); - - global[className].prototype.disconnect = function () { - var result = this[originalInstanceKey].disconnect.apply(this[originalInstanceKey], arguments); - if (this[isActiveKey]) { - this[creationZoneKey].dequeueTask(); - this[isActiveKey] = false; - } - return result; - }; - - global[className].prototype.observe = function () { - if (!this[isActiveKey]) { - this[creationZoneKey].enqueueTask(); - this[isActiveKey] = true; - } - return this[originalInstanceKey].observe.apply(this[originalInstanceKey], arguments); - }; - - var prop; - for (prop in instance) { - (function (prop) { - if (typeof global[className].prototype !== 'undefined') { - return; - } - if (typeof instance[prop] === 'function') { - global[className].prototype[prop] = function () { - return this[originalInstanceKey][prop].apply(this[originalInstanceKey], arguments); - }; - } else { - Object.defineProperty(global[className].prototype, prop, { - set: function (fn) { - if (typeof fn === 'function') { - this[originalInstanceKey][prop] = global.zone.bind(fn); - } else { - this[originalInstanceKey][prop] = fn; - } - }, - get: function () { - return this[originalInstanceKey][prop]; - } - }); - } - }(prop)); - } -}; - -module.exports = { - patchClass: patchClass -}; - -}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{"../keys":3}],12:[function(require,module,exports){ -(function (global){ -'use strict'; - -var utils = require('../utils'); - -/* - * Patches a function that returns a Promise-like instance. - * - * This function must be used when either: - * - Native Promises are not available, - * - The function returns a Promise-like object. - * - * This is required because zones rely on a Promise monkey patch that could not be applied when - * Promise is not natively available or when the returned object is not an instance of Promise. - * - * Note that calling `bindPromiseFn` on a function that returns a native Promise will also work - * with minimal overhead. - * - * ``` - * var boundFunction = bindPromiseFn(FunctionReturningAPromise); - * - * boundFunction.then(successHandler, errorHandler); - * ``` - */ -var bindPromiseFn; - -if (global.Promise) { - bindPromiseFn = function (delegate) { - return function() { - var delegatePromise = delegate.apply(this, arguments); - - // if the delegate returned an instance of Promise, forward it. - if (delegatePromise instanceof Promise) { - return delegatePromise; - } - - // Otherwise wrap the Promise-like in a global Promise - return new Promise(function(resolve, reject) { - delegatePromise.then(resolve, reject); - }); - }; - }; -} else { - bindPromiseFn = function (delegate) { - return function () { - return _patchThenable(delegate.apply(this, arguments)); - }; - }; -} - - -function _patchPromiseFnsOnObject(objectPath, fnNames) { - var obj = global; - - var exists = objectPath.every(function (segment) { - obj = obj[segment]; - return obj; - }); - - if (!exists) { - return; - } - - fnNames.forEach(function (name) { - var fn = obj[name]; - if (fn) { - obj[name] = bindPromiseFn(fn); - } - }); -} - -function _patchThenable(thenable) { - var then = thenable.then; - thenable.then = function () { - var args = utils.bindArguments(arguments); - var nextThenable = then.apply(thenable, args); - return _patchThenable(nextThenable); - }; - - var ocatch = thenable.catch; - thenable.catch = function () { - var args = utils.bindArguments(arguments); - var nextThenable = ocatch.apply(thenable, args); - return _patchThenable(nextThenable); - }; - - return thenable; -} - - -function apply() { - // Patch .then() and .catch() on native Promises to execute callbacks in the zone where - // those functions are called. - if (global.Promise) { - utils.patchPrototype(Promise.prototype, [ - 'then', - 'catch' - ]); - - // Patch browser APIs that return a Promise - var patchFns = [ - // fetch - [[], ['fetch']], - [['Response', 'prototype'], ['arrayBuffer', 'blob', 'json', 'text']] - ]; - - patchFns.forEach(function(objPathAndFns) { - _patchPromiseFnsOnObject(objPathAndFns[0], objPathAndFns[1]); - }); - } -} - -module.exports = { - apply: apply, - bindPromiseFn: bindPromiseFn -}; - -}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{"../utils":16}],13:[function(require,module,exports){ -(function (global){ -'use strict'; - -var webSocketPatch = require('./websocket'); -var utils = require('../utils'); -var keys = require('../keys'); - -var eventNames = 'copy cut paste abort blur focus canplay canplaythrough change click contextmenu dblclick drag dragend dragenter dragleave dragover dragstart drop durationchange emptied ended input invalid keydown keypress keyup load loadeddata loadedmetadata loadstart message mousedown mouseenter mouseleave mousemove mouseout mouseover mouseup pause play playing progress ratechange reset scroll seeked seeking select show stalled submit suspend timeupdate volumechange waiting mozfullscreenchange mozfullscreenerror mozpointerlockchange mozpointerlockerror error webglcontextrestored webglcontextlost webglcontextcreationerror'.split(' '); - -function apply() { - if (utils.isWebWorker()){ - // on WebWorker so don't apply patch - return; - } - - var supportsWebSocket = typeof WebSocket !== 'undefined'; - if (canPatchViaPropertyDescriptor()) { - // for browsers that we can patch the descriptor: Chrome & Firefox - var onEventNames = eventNames.map(function (property) { - return 'on' + property; - }); - utils.patchProperties(HTMLElement.prototype, onEventNames); - utils.patchProperties(XMLHttpRequest.prototype); - if (supportsWebSocket) { - utils.patchProperties(WebSocket.prototype); - } - } else { - // Safari, Android browsers (Jelly Bean) - patchViaCapturingAllTheEvents(); - utils.patchClass('XMLHttpRequest'); - if (supportsWebSocket) { - webSocketPatch.apply(); - } - } -} - -function canPatchViaPropertyDescriptor() { - if (!Object.getOwnPropertyDescriptor(HTMLElement.prototype, 'onclick') && typeof Element !== 'undefined') { - // WebKit https://bugs.webkit.org/show_bug.cgi?id=134364 - // IDL interface attributes are not configurable - var desc = Object.getOwnPropertyDescriptor(Element.prototype, 'onclick'); - if (desc && !desc.configurable) return false; - } - - Object.defineProperty(HTMLElement.prototype, 'onclick', { - get: function () { - return true; - } - }); - var elt = document.createElement('div'); - var result = !!elt.onclick; - Object.defineProperty(HTMLElement.prototype, 'onclick', {}); - return result; -}; - -var unboundKey = keys.create('unbound'); - -// Whenever any event fires, we check the event target and all parents -// for `onwhatever` properties and replace them with zone-bound functions -// - Chrome (for now) -function patchViaCapturingAllTheEvents() { - eventNames.forEach(function (property) { - var onproperty = 'on' + property; - document.addEventListener(property, function (event) { - var elt = event.target, bound; - while (elt) { - if (elt[onproperty] && !elt[onproperty][unboundKey]) { - bound = global.zone.bind(elt[onproperty]); - bound[unboundKey] = elt[onproperty]; - elt[onproperty] = bound; - } - elt = elt.parentElement; - } - }, true); - }); -}; - -module.exports = { - apply: apply -}; - -}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{"../keys":3,"../utils":16,"./websocket":15}],14:[function(require,module,exports){ -(function (global){ -'use strict'; - -var _redefineProperty = require('./define-property')._redefineProperty; -var utils = require("../utils"); - -function apply() { - if (utils.isWebWorker() || !('registerElement' in global.document)) { - return; - } - - var _registerElement = document.registerElement; - var callbacks = [ - 'createdCallback', - 'attachedCallback', - 'detachedCallback', - 'attributeChangedCallback' - ]; - - document.registerElement = function (name, opts) { - if (opts && opts.prototype) { - callbacks.forEach(function (callback) { - if (opts.prototype.hasOwnProperty(callback)) { - var descriptor = Object.getOwnPropertyDescriptor(opts.prototype, callback); - if (descriptor && descriptor.value) { - descriptor.value = global.zone.bind(descriptor.value); - _redefineProperty(opts.prototype, callback, descriptor); - } else { - opts.prototype[callback] = global.zone.bind(opts.prototype[callback]); - } - } else if (opts.prototype[callback]) { - opts.prototype[callback] = global.zone.bind(opts.prototype[callback]); - } - }); - } - - return _registerElement.apply(document, [name, opts]); - }; -} - -module.exports = { - apply: apply -}; - -}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{"../utils":16,"./define-property":6}],15:[function(require,module,exports){ -(function (global){ -'use strict'; - -var utils = require('../utils'); - -// we have to patch the instance since the proto is non-configurable -function apply() { - var WS = global.WebSocket; - utils.patchEventTargetMethods(WS.prototype); - global.WebSocket = function(a, b) { - var socket = arguments.length > 1 ? new WS(a, b) : new WS(a); - var proxySocket; - - // Safari 7.0 has non-configurable own 'onmessage' and friends properties on the socket instance - var onmessageDesc = Object.getOwnPropertyDescriptor(socket, 'onmessage'); - if (onmessageDesc && onmessageDesc.configurable === false) { - proxySocket = Object.create(socket); - ['addEventListener', 'removeEventListener', 'send', 'close'].forEach(function(propName) { - proxySocket[propName] = function() { - return socket[propName].apply(socket, arguments); - }; - }); - } else { - // we can patch the real socket - proxySocket = socket; - } - - utils.patchProperties(proxySocket, ['onclose', 'onerror', 'onmessage', 'onopen']); - - return proxySocket; - }; -} - -module.exports = { - apply: apply -}; - -}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{"../utils":16}],16:[function(require,module,exports){ -(function (global){ -'use strict'; - -var keys = require('./keys'); - -function bindArguments(args) { - for (var i = args.length - 1; i >= 0; i--) { - if (typeof args[i] === 'function') { - args[i] = global.zone.bind(args[i]); - } - } - return args; -}; - -function bindArgumentsOnce(args) { - for (var i = args.length - 1; i >= 0; i--) { - if (typeof args[i] === 'function') { - args[i] = global.zone.bindOnce(args[i]); - } - } - return args; -}; - -function patchPrototype(obj, fnNames) { - fnNames.forEach(function (name) { - var delegate = obj[name]; - if (delegate) { - obj[name] = function () { - return delegate.apply(this, bindArguments(arguments)); - }; - } - }); -}; - -function isWebWorker() { - return (typeof document === "undefined"); -} - -function patchProperty(obj, prop) { - var desc = Object.getOwnPropertyDescriptor(obj, prop) || { - enumerable: true, - configurable: true - }; - - // A property descriptor cannot have getter/setter and be writable - // deleting the writable and value properties avoids this error: - // - // TypeError: property descriptors must not specify a value or be writable when a - // getter or setter has been specified - delete desc.writable; - delete desc.value; - - // substr(2) cuz 'onclick' -> 'click', etc - var eventName = prop.substr(2); - var _prop = '_' + prop; - - desc.set = function (fn) { - if (this[_prop]) { - this.removeEventListener(eventName, this[_prop]); - } - - if (typeof fn === 'function') { - this[_prop] = fn; - this.addEventListener(eventName, fn, false); - } else { - this[_prop] = null; - } - }; - - desc.get = function () { - return this[_prop]; - }; - - Object.defineProperty(obj, prop, desc); -}; - -function patchProperties(obj, properties) { - (properties || (function () { - var props = []; - for (var prop in obj) { - props.push(prop); - } - return props; - }()). - filter(function (propertyName) { - return propertyName.substr(0,2) === 'on'; - })). - forEach(function (eventName) { - patchProperty(obj, eventName); - }); -}; - -var originalFnKey = keys.create('originalFn'); -var boundFnsKey = keys.create('boundFns'); - -function patchEventTargetMethods(obj) { - // This is required for the addEventListener hook on the root zone. - obj[keys.common.addEventListener] = obj.addEventListener; - obj.addEventListener = function (eventName, handler, useCapturing) { - //Ignore special listeners of IE11 & Edge dev tools, see https://github.com/angular/zone.js/issues/150 - if (handler && handler.toString() !== "[object FunctionWrapper]") { - var eventType = eventName + (useCapturing ? '$capturing' : '$bubbling'); - var fn; - if (handler.handleEvent) { - // Have to pass in 'handler' reference as an argument here, otherwise it gets clobbered in - // IE9 by the arguments[1] assignment at end of this function. - fn = (function(handler) { - return function() { - handler.handleEvent.apply(handler, arguments); - }; - })(handler); - } else { - fn = handler; - } - - handler[originalFnKey] = fn; - handler[boundFnsKey] = handler[boundFnsKey] || {}; - handler[boundFnsKey][eventType] = handler[boundFnsKey][eventType] || zone.bind(fn); - arguments[1] = handler[boundFnsKey][eventType]; - } - - // - Inside a Web Worker, `this` is undefined, the context is `global` (= `self`) - // - When `addEventListener` is called on the global context in strict mode, `this` is undefined - // see https://github.com/angular/zone.js/issues/190 - var target = this || global; - return global.zone.addEventListener.apply(target, arguments); - }; - - // This is required for the removeEventListener hook on the root zone. - obj[keys.common.removeEventListener] = obj.removeEventListener; - obj.removeEventListener = function (eventName, handler, useCapturing) { - var eventType = eventName + (useCapturing ? '$capturing' : '$bubbling'); - if (handler && handler[boundFnsKey] && handler[boundFnsKey][eventType]) { - var _bound = handler[boundFnsKey]; - arguments[1] = _bound[eventType]; - delete _bound[eventType]; - global.zone.dequeueTask(handler[originalFnKey]); - } - - // - Inside a Web Worker, `this` is undefined, the context is `global` - // - When `addEventListener` is called on the global context in strict mode, `this` is undefined - // see https://github.com/angular/zone.js/issues/190 - var target = this || global; - var result = global.zone.removeEventListener.apply(target, arguments); - return result; - }; -}; - -var originalInstanceKey = keys.create('originalInstance'); - -// wrap some native API on `window` -function patchClass(className) { - var OriginalClass = global[className]; - if (!OriginalClass) return; - - global[className] = function () { - var a = bindArguments(arguments); - switch (a.length) { - case 0: this[originalInstanceKey] = new OriginalClass(); break; - case 1: this[originalInstanceKey] = new OriginalClass(a[0]); break; - case 2: this[originalInstanceKey] = new OriginalClass(a[0], a[1]); break; - case 3: this[originalInstanceKey] = new OriginalClass(a[0], a[1], a[2]); break; - case 4: this[originalInstanceKey] = new OriginalClass(a[0], a[1], a[2], a[3]); break; - default: throw new Error('what are you even doing?'); - } - }; - - var instance = new OriginalClass(); - - var prop; - for (prop in instance) { - (function (prop) { - if (typeof instance[prop] === 'function') { - global[className].prototype[prop] = function () { - return this[originalInstanceKey][prop].apply(this[originalInstanceKey], arguments); - }; - } else { - Object.defineProperty(global[className].prototype, prop, { - set: function (fn) { - if (typeof fn === 'function') { - this[originalInstanceKey][prop] = global.zone.bind(fn); - } else { - this[originalInstanceKey][prop] = fn; - } - }, - get: function () { - return this[originalInstanceKey][prop]; - } - }); - } - }(prop)); - } - - for (prop in OriginalClass) { - if (prop !== 'prototype' && OriginalClass.hasOwnProperty(prop)) { - global[className][prop] = OriginalClass[prop]; - } - } -}; - -module.exports = { - bindArguments: bindArguments, - bindArgumentsOnce: bindArgumentsOnce, - patchPrototype: patchPrototype, - patchProperty: patchProperty, - patchProperties: patchProperties, - patchEventTargetMethods: patchEventTargetMethods, - patchClass: patchClass, - isWebWorker: isWebWorker -}; - -}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{"./keys":3}],17:[function(require,module,exports){ -(function (process,global){ -/*! - * @overview es6-promise - a tiny implementation of Promises/A+. - * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald) - * @license Licensed under MIT license - * See https://raw.githubusercontent.com/jakearchibald/es6-promise/master/LICENSE - * @version 3.0.2 - */ - -(function() { - "use strict"; - function lib$es6$promise$utils$$objectOrFunction(x) { - return typeof x === 'function' || (typeof x === 'object' && x !== null); - } - - function lib$es6$promise$utils$$isFunction(x) { - return typeof x === 'function'; - } - - function lib$es6$promise$utils$$isMaybeThenable(x) { - return typeof x === 'object' && x !== null; - } - - var lib$es6$promise$utils$$_isArray; - if (!Array.isArray) { - lib$es6$promise$utils$$_isArray = function (x) { - return Object.prototype.toString.call(x) === '[object Array]'; - }; - } else { - lib$es6$promise$utils$$_isArray = Array.isArray; - } - - var lib$es6$promise$utils$$isArray = lib$es6$promise$utils$$_isArray; - var lib$es6$promise$asap$$len = 0; - var lib$es6$promise$asap$$toString = {}.toString; - var lib$es6$promise$asap$$vertxNext; - var lib$es6$promise$asap$$customSchedulerFn; - - var lib$es6$promise$asap$$asap = function asap(callback, arg) { - lib$es6$promise$asap$$queue[lib$es6$promise$asap$$len] = callback; - lib$es6$promise$asap$$queue[lib$es6$promise$asap$$len + 1] = arg; - lib$es6$promise$asap$$len += 2; - if (lib$es6$promise$asap$$len === 2) { - // If len is 2, that means that we need to schedule an async flush. - // If additional callbacks are queued before the queue is flushed, they - // will be processed by this flush that we are scheduling. - if (lib$es6$promise$asap$$customSchedulerFn) { - lib$es6$promise$asap$$customSchedulerFn(lib$es6$promise$asap$$flush); - } else { - lib$es6$promise$asap$$scheduleFlush(); - } - } - } - - function lib$es6$promise$asap$$setScheduler(scheduleFn) { - lib$es6$promise$asap$$customSchedulerFn = scheduleFn; - } - - function lib$es6$promise$asap$$setAsap(asapFn) { - lib$es6$promise$asap$$asap = asapFn; - } - - var lib$es6$promise$asap$$browserWindow = (typeof window !== 'undefined') ? window : undefined; - var lib$es6$promise$asap$$browserGlobal = lib$es6$promise$asap$$browserWindow || {}; - var lib$es6$promise$asap$$BrowserMutationObserver = lib$es6$promise$asap$$browserGlobal.MutationObserver || lib$es6$promise$asap$$browserGlobal.WebKitMutationObserver; - var lib$es6$promise$asap$$isNode = typeof process !== 'undefined' && {}.toString.call(process) === '[object process]'; - - // test for web worker but not in IE10 - var lib$es6$promise$asap$$isWorker = typeof Uint8ClampedArray !== 'undefined' && - typeof importScripts !== 'undefined' && - typeof MessageChannel !== 'undefined'; - - // node - function lib$es6$promise$asap$$useNextTick() { - // node version 0.10.x displays a deprecation warning when nextTick is used recursively - // see https://github.com/cujojs/when/issues/410 for details - return function() { - process.nextTick(lib$es6$promise$asap$$flush); - }; - } - - // vertx - function lib$es6$promise$asap$$useVertxTimer() { - return function() { - lib$es6$promise$asap$$vertxNext(lib$es6$promise$asap$$flush); - }; - } - - function lib$es6$promise$asap$$useMutationObserver() { - var iterations = 0; - var observer = new lib$es6$promise$asap$$BrowserMutationObserver(lib$es6$promise$asap$$flush); - var node = document.createTextNode(''); - observer.observe(node, { characterData: true }); - - return function() { - node.data = (iterations = ++iterations % 2); - }; - } - - // web worker - function lib$es6$promise$asap$$useMessageChannel() { - var channel = new MessageChannel(); - channel.port1.onmessage = lib$es6$promise$asap$$flush; - return function () { - channel.port2.postMessage(0); - }; - } - - function lib$es6$promise$asap$$useSetTimeout() { - return function() { - setTimeout(lib$es6$promise$asap$$flush, 1); - }; - } - - var lib$es6$promise$asap$$queue = new Array(1000); - function lib$es6$promise$asap$$flush() { - for (var i = 0; i < lib$es6$promise$asap$$len; i+=2) { - var callback = lib$es6$promise$asap$$queue[i]; - var arg = lib$es6$promise$asap$$queue[i+1]; - - callback(arg); - - lib$es6$promise$asap$$queue[i] = undefined; - lib$es6$promise$asap$$queue[i+1] = undefined; - } - - lib$es6$promise$asap$$len = 0; - } - - function lib$es6$promise$asap$$attemptVertx() { - try { - var r = require; - var vertx = r('vertx'); - lib$es6$promise$asap$$vertxNext = vertx.runOnLoop || vertx.runOnContext; - return lib$es6$promise$asap$$useVertxTimer(); - } catch(e) { - return lib$es6$promise$asap$$useSetTimeout(); - } - } - - var lib$es6$promise$asap$$scheduleFlush; - // Decide what async method to use to triggering processing of queued callbacks: - if (lib$es6$promise$asap$$isNode) { - lib$es6$promise$asap$$scheduleFlush = lib$es6$promise$asap$$useNextTick(); - } else if (lib$es6$promise$asap$$BrowserMutationObserver) { - lib$es6$promise$asap$$scheduleFlush = lib$es6$promise$asap$$useMutationObserver(); - } else if (lib$es6$promise$asap$$isWorker) { - lib$es6$promise$asap$$scheduleFlush = lib$es6$promise$asap$$useMessageChannel(); - } else if (lib$es6$promise$asap$$browserWindow === undefined && typeof require === 'function') { - lib$es6$promise$asap$$scheduleFlush = lib$es6$promise$asap$$attemptVertx(); - } else { - lib$es6$promise$asap$$scheduleFlush = lib$es6$promise$asap$$useSetTimeout(); - } - - function lib$es6$promise$$internal$$noop() {} - - var lib$es6$promise$$internal$$PENDING = void 0; - var lib$es6$promise$$internal$$FULFILLED = 1; - var lib$es6$promise$$internal$$REJECTED = 2; - - var lib$es6$promise$$internal$$GET_THEN_ERROR = new lib$es6$promise$$internal$$ErrorObject(); - - function lib$es6$promise$$internal$$selfFulfillment() { - return new TypeError("You cannot resolve a promise with itself"); - } - - function lib$es6$promise$$internal$$cannotReturnOwn() { - return new TypeError('A promises callback cannot return that same promise.'); - } - - function lib$es6$promise$$internal$$getThen(promise) { - try { - return promise.then; - } catch(error) { - lib$es6$promise$$internal$$GET_THEN_ERROR.error = error; - return lib$es6$promise$$internal$$GET_THEN_ERROR; - } - } - - function lib$es6$promise$$internal$$tryThen(then, value, fulfillmentHandler, rejectionHandler) { - try { - then.call(value, fulfillmentHandler, rejectionHandler); - } catch(e) { - return e; - } - } - - function lib$es6$promise$$internal$$handleForeignThenable(promise, thenable, then) { - lib$es6$promise$asap$$asap(function(promise) { - var sealed = false; - var error = lib$es6$promise$$internal$$tryThen(then, thenable, function(value) { - if (sealed) { return; } - sealed = true; - if (thenable !== value) { - lib$es6$promise$$internal$$resolve(promise, value); - } else { - lib$es6$promise$$internal$$fulfill(promise, value); - } - }, function(reason) { - if (sealed) { return; } - sealed = true; - - lib$es6$promise$$internal$$reject(promise, reason); - }, 'Settle: ' + (promise._label || ' unknown promise')); - - if (!sealed && error) { - sealed = true; - lib$es6$promise$$internal$$reject(promise, error); - } - }, promise); - } - - function lib$es6$promise$$internal$$handleOwnThenable(promise, thenable) { - if (thenable._state === lib$es6$promise$$internal$$FULFILLED) { - lib$es6$promise$$internal$$fulfill(promise, thenable._result); - } else if (thenable._state === lib$es6$promise$$internal$$REJECTED) { - lib$es6$promise$$internal$$reject(promise, thenable._result); - } else { - lib$es6$promise$$internal$$subscribe(thenable, undefined, function(value) { - lib$es6$promise$$internal$$resolve(promise, value); - }, function(reason) { - lib$es6$promise$$internal$$reject(promise, reason); - }); - } - } - - function lib$es6$promise$$internal$$handleMaybeThenable(promise, maybeThenable) { - if (maybeThenable.constructor === promise.constructor) { - lib$es6$promise$$internal$$handleOwnThenable(promise, maybeThenable); - } else { - var then = lib$es6$promise$$internal$$getThen(maybeThenable); - - if (then === lib$es6$promise$$internal$$GET_THEN_ERROR) { - lib$es6$promise$$internal$$reject(promise, lib$es6$promise$$internal$$GET_THEN_ERROR.error); - } else if (then === undefined) { - lib$es6$promise$$internal$$fulfill(promise, maybeThenable); - } else if (lib$es6$promise$utils$$isFunction(then)) { - lib$es6$promise$$internal$$handleForeignThenable(promise, maybeThenable, then); - } else { - lib$es6$promise$$internal$$fulfill(promise, maybeThenable); - } - } - } - - function lib$es6$promise$$internal$$resolve(promise, value) { - if (promise === value) { - lib$es6$promise$$internal$$reject(promise, lib$es6$promise$$internal$$selfFulfillment()); - } else if (lib$es6$promise$utils$$objectOrFunction(value)) { - lib$es6$promise$$internal$$handleMaybeThenable(promise, value); - } else { - lib$es6$promise$$internal$$fulfill(promise, value); - } - } - - function lib$es6$promise$$internal$$publishRejection(promise) { - if (promise._onerror) { - promise._onerror(promise._result); - } - - lib$es6$promise$$internal$$publish(promise); - } - - function lib$es6$promise$$internal$$fulfill(promise, value) { - if (promise._state !== lib$es6$promise$$internal$$PENDING) { return; } - - promise._result = value; - promise._state = lib$es6$promise$$internal$$FULFILLED; - - if (promise._subscribers.length !== 0) { - lib$es6$promise$asap$$asap(lib$es6$promise$$internal$$publish, promise); - } - } - - function lib$es6$promise$$internal$$reject(promise, reason) { - if (promise._state !== lib$es6$promise$$internal$$PENDING) { return; } - promise._state = lib$es6$promise$$internal$$REJECTED; - promise._result = reason; - - lib$es6$promise$asap$$asap(lib$es6$promise$$internal$$publishRejection, promise); - } - - function lib$es6$promise$$internal$$subscribe(parent, child, onFulfillment, onRejection) { - var subscribers = parent._subscribers; - var length = subscribers.length; - - parent._onerror = null; - - subscribers[length] = child; - subscribers[length + lib$es6$promise$$internal$$FULFILLED] = onFulfillment; - subscribers[length + lib$es6$promise$$internal$$REJECTED] = onRejection; - - if (length === 0 && parent._state) { - lib$es6$promise$asap$$asap(lib$es6$promise$$internal$$publish, parent); - } - } - - function lib$es6$promise$$internal$$publish(promise) { - var subscribers = promise._subscribers; - var settled = promise._state; - - if (subscribers.length === 0) { return; } - - var child, callback, detail = promise._result; - - for (var i = 0; i < subscribers.length; i += 3) { - child = subscribers[i]; - callback = subscribers[i + settled]; - - if (child) { - lib$es6$promise$$internal$$invokeCallback(settled, child, callback, detail); - } else { - callback(detail); - } - } - - promise._subscribers.length = 0; - } - - function lib$es6$promise$$internal$$ErrorObject() { - this.error = null; - } - - var lib$es6$promise$$internal$$TRY_CATCH_ERROR = new lib$es6$promise$$internal$$ErrorObject(); - - function lib$es6$promise$$internal$$tryCatch(callback, detail) { - try { - return callback(detail); - } catch(e) { - lib$es6$promise$$internal$$TRY_CATCH_ERROR.error = e; - return lib$es6$promise$$internal$$TRY_CATCH_ERROR; - } - } - - function lib$es6$promise$$internal$$invokeCallback(settled, promise, callback, detail) { - var hasCallback = lib$es6$promise$utils$$isFunction(callback), - value, error, succeeded, failed; - - if (hasCallback) { - value = lib$es6$promise$$internal$$tryCatch(callback, detail); - - if (value === lib$es6$promise$$internal$$TRY_CATCH_ERROR) { - failed = true; - error = value.error; - value = null; - } else { - succeeded = true; - } - - if (promise === value) { - lib$es6$promise$$internal$$reject(promise, lib$es6$promise$$internal$$cannotReturnOwn()); - return; - } - - } else { - value = detail; - succeeded = true; - } - - if (promise._state !== lib$es6$promise$$internal$$PENDING) { - // noop - } else if (hasCallback && succeeded) { - lib$es6$promise$$internal$$resolve(promise, value); - } else if (failed) { - lib$es6$promise$$internal$$reject(promise, error); - } else if (settled === lib$es6$promise$$internal$$FULFILLED) { - lib$es6$promise$$internal$$fulfill(promise, value); - } else if (settled === lib$es6$promise$$internal$$REJECTED) { - lib$es6$promise$$internal$$reject(promise, value); - } - } - - function lib$es6$promise$$internal$$initializePromise(promise, resolver) { - try { - resolver(function resolvePromise(value){ - lib$es6$promise$$internal$$resolve(promise, value); - }, function rejectPromise(reason) { - lib$es6$promise$$internal$$reject(promise, reason); - }); - } catch(e) { - lib$es6$promise$$internal$$reject(promise, e); - } - } - - function lib$es6$promise$enumerator$$Enumerator(Constructor, input) { - var enumerator = this; - - enumerator._instanceConstructor = Constructor; - enumerator.promise = new Constructor(lib$es6$promise$$internal$$noop); - - if (enumerator._validateInput(input)) { - enumerator._input = input; - enumerator.length = input.length; - enumerator._remaining = input.length; - - enumerator._init(); - - if (enumerator.length === 0) { - lib$es6$promise$$internal$$fulfill(enumerator.promise, enumerator._result); - } else { - enumerator.length = enumerator.length || 0; - enumerator._enumerate(); - if (enumerator._remaining === 0) { - lib$es6$promise$$internal$$fulfill(enumerator.promise, enumerator._result); - } - } - } else { - lib$es6$promise$$internal$$reject(enumerator.promise, enumerator._validationError()); - } - } - - lib$es6$promise$enumerator$$Enumerator.prototype._validateInput = function(input) { - return lib$es6$promise$utils$$isArray(input); - }; - - lib$es6$promise$enumerator$$Enumerator.prototype._validationError = function() { - return new Error('Array Methods must be provided an Array'); - }; - - lib$es6$promise$enumerator$$Enumerator.prototype._init = function() { - this._result = new Array(this.length); - }; - - var lib$es6$promise$enumerator$$default = lib$es6$promise$enumerator$$Enumerator; - - lib$es6$promise$enumerator$$Enumerator.prototype._enumerate = function() { - var enumerator = this; - - var length = enumerator.length; - var promise = enumerator.promise; - var input = enumerator._input; - - for (var i = 0; promise._state === lib$es6$promise$$internal$$PENDING && i < length; i++) { - enumerator._eachEntry(input[i], i); - } - }; - - lib$es6$promise$enumerator$$Enumerator.prototype._eachEntry = function(entry, i) { - var enumerator = this; - var c = enumerator._instanceConstructor; - - if (lib$es6$promise$utils$$isMaybeThenable(entry)) { - if (entry.constructor === c && entry._state !== lib$es6$promise$$internal$$PENDING) { - entry._onerror = null; - enumerator._settledAt(entry._state, i, entry._result); - } else { - enumerator._willSettleAt(c.resolve(entry), i); - } - } else { - enumerator._remaining--; - enumerator._result[i] = entry; - } - }; - - lib$es6$promise$enumerator$$Enumerator.prototype._settledAt = function(state, i, value) { - var enumerator = this; - var promise = enumerator.promise; - - if (promise._state === lib$es6$promise$$internal$$PENDING) { - enumerator._remaining--; - - if (state === lib$es6$promise$$internal$$REJECTED) { - lib$es6$promise$$internal$$reject(promise, value); - } else { - enumerator._result[i] = value; - } - } - - if (enumerator._remaining === 0) { - lib$es6$promise$$internal$$fulfill(promise, enumerator._result); - } - }; - - lib$es6$promise$enumerator$$Enumerator.prototype._willSettleAt = function(promise, i) { - var enumerator = this; - - lib$es6$promise$$internal$$subscribe(promise, undefined, function(value) { - enumerator._settledAt(lib$es6$promise$$internal$$FULFILLED, i, value); - }, function(reason) { - enumerator._settledAt(lib$es6$promise$$internal$$REJECTED, i, reason); - }); - }; - function lib$es6$promise$promise$all$$all(entries) { - return new lib$es6$promise$enumerator$$default(this, entries).promise; - } - var lib$es6$promise$promise$all$$default = lib$es6$promise$promise$all$$all; - function lib$es6$promise$promise$race$$race(entries) { - /*jshint validthis:true */ - var Constructor = this; - - var promise = new Constructor(lib$es6$promise$$internal$$noop); - - if (!lib$es6$promise$utils$$isArray(entries)) { - lib$es6$promise$$internal$$reject(promise, new TypeError('You must pass an array to race.')); - return promise; - } - - var length = entries.length; - - function onFulfillment(value) { - lib$es6$promise$$internal$$resolve(promise, value); - } - - function onRejection(reason) { - lib$es6$promise$$internal$$reject(promise, reason); - } - - for (var i = 0; promise._state === lib$es6$promise$$internal$$PENDING && i < length; i++) { - lib$es6$promise$$internal$$subscribe(Constructor.resolve(entries[i]), undefined, onFulfillment, onRejection); - } - - return promise; - } - var lib$es6$promise$promise$race$$default = lib$es6$promise$promise$race$$race; - function lib$es6$promise$promise$resolve$$resolve(object) { - /*jshint validthis:true */ - var Constructor = this; - - if (object && typeof object === 'object' && object.constructor === Constructor) { - return object; - } - - var promise = new Constructor(lib$es6$promise$$internal$$noop); - lib$es6$promise$$internal$$resolve(promise, object); - return promise; - } - var lib$es6$promise$promise$resolve$$default = lib$es6$promise$promise$resolve$$resolve; - function lib$es6$promise$promise$reject$$reject(reason) { - /*jshint validthis:true */ - var Constructor = this; - var promise = new Constructor(lib$es6$promise$$internal$$noop); - lib$es6$promise$$internal$$reject(promise, reason); - return promise; - } - var lib$es6$promise$promise$reject$$default = lib$es6$promise$promise$reject$$reject; - - var lib$es6$promise$promise$$counter = 0; - - function lib$es6$promise$promise$$needsResolver() { - throw new TypeError('You must pass a resolver function as the first argument to the promise constructor'); - } - - function lib$es6$promise$promise$$needsNew() { - throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function."); - } - - var lib$es6$promise$promise$$default = lib$es6$promise$promise$$Promise; - /** - Promise objects represent the eventual result of an asynchronous operation. The - primary way of interacting with a promise is through its `then` method, which - registers callbacks to receive either a promise's eventual value or the reason - why the promise cannot be fulfilled. - - Terminology - ----------- - - - `promise` is an object or function with a `then` method whose behavior conforms to this specification. - - `thenable` is an object or function that defines a `then` method. - - `value` is any legal JavaScript value (including undefined, a thenable, or a promise). - - `exception` is a value that is thrown using the throw statement. - - `reason` is a value that indicates why a promise was rejected. - - `settled` the final resting state of a promise, fulfilled or rejected. - - A promise can be in one of three states: pending, fulfilled, or rejected. - - Promises that are fulfilled have a fulfillment value and are in the fulfilled - state. Promises that are rejected have a rejection reason and are in the - rejected state. A fulfillment value is never a thenable. - - Promises can also be said to *resolve* a value. If this value is also a - promise, then the original promise's settled state will match the value's - settled state. So a promise that *resolves* a promise that rejects will - itself reject, and a promise that *resolves* a promise that fulfills will - itself fulfill. - - - Basic Usage: - ------------ - - ```js - var promise = new Promise(function(resolve, reject) { - // on success - resolve(value); - - // on failure - reject(reason); - }); - - promise.then(function(value) { - // on fulfillment - }, function(reason) { - // on rejection - }); - ``` - - Advanced Usage: - --------------- - - Promises shine when abstracting away asynchronous interactions such as - `XMLHttpRequest`s. - - ```js - function getJSON(url) { - return new Promise(function(resolve, reject){ - var xhr = new XMLHttpRequest(); - - xhr.open('GET', url); - xhr.onreadystatechange = handler; - xhr.responseType = 'json'; - xhr.setRequestHeader('Accept', 'application/json'); - xhr.send(); - - function handler() { - if (this.readyState === this.DONE) { - if (this.status === 200) { - resolve(this.response); - } else { - reject(new Error('getJSON: `' + url + '` failed with status: [' + this.status + ']')); - } - } - }; - }); - } - - getJSON('/posts.json').then(function(json) { - // on fulfillment - }, function(reason) { - // on rejection - }); - ``` - - Unlike callbacks, promises are great composable primitives. - - ```js - Promise.all([ - getJSON('/posts'), - getJSON('/comments') - ]).then(function(values){ - values[0] // => postsJSON - values[1] // => commentsJSON - - return values; - }); - ``` - - @class Promise - @param {function} resolver - Useful for tooling. - @constructor - */ - function lib$es6$promise$promise$$Promise(resolver) { - this._id = lib$es6$promise$promise$$counter++; - this._state = undefined; - this._result = undefined; - this._subscribers = []; - - if (lib$es6$promise$$internal$$noop !== resolver) { - if (!lib$es6$promise$utils$$isFunction(resolver)) { - lib$es6$promise$promise$$needsResolver(); - } - - if (!(this instanceof lib$es6$promise$promise$$Promise)) { - lib$es6$promise$promise$$needsNew(); - } - - lib$es6$promise$$internal$$initializePromise(this, resolver); - } - } - - lib$es6$promise$promise$$Promise.all = lib$es6$promise$promise$all$$default; - lib$es6$promise$promise$$Promise.race = lib$es6$promise$promise$race$$default; - lib$es6$promise$promise$$Promise.resolve = lib$es6$promise$promise$resolve$$default; - lib$es6$promise$promise$$Promise.reject = lib$es6$promise$promise$reject$$default; - lib$es6$promise$promise$$Promise._setScheduler = lib$es6$promise$asap$$setScheduler; - lib$es6$promise$promise$$Promise._setAsap = lib$es6$promise$asap$$setAsap; - lib$es6$promise$promise$$Promise._asap = lib$es6$promise$asap$$asap; - - lib$es6$promise$promise$$Promise.prototype = { - constructor: lib$es6$promise$promise$$Promise, - - /** - The primary way of interacting with a promise is through its `then` method, - which registers callbacks to receive either a promise's eventual value or the - reason why the promise cannot be fulfilled. - - ```js - findUser().then(function(user){ - // user is available - }, function(reason){ - // user is unavailable, and you are given the reason why - }); - ``` - - Chaining - -------- - - The return value of `then` is itself a promise. This second, 'downstream' - promise is resolved with the return value of the first promise's fulfillment - or rejection handler, or rejected if the handler throws an exception. - - ```js - findUser().then(function (user) { - return user.name; - }, function (reason) { - return 'default name'; - }).then(function (userName) { - // If `findUser` fulfilled, `userName` will be the user's name, otherwise it - // will be `'default name'` - }); - - findUser().then(function (user) { - throw new Error('Found user, but still unhappy'); - }, function (reason) { - throw new Error('`findUser` rejected and we're unhappy'); - }).then(function (value) { - // never reached - }, function (reason) { - // if `findUser` fulfilled, `reason` will be 'Found user, but still unhappy'. - // If `findUser` rejected, `reason` will be '`findUser` rejected and we're unhappy'. - }); - ``` - If the downstream promise does not specify a rejection handler, rejection reasons will be propagated further downstream. - - ```js - findUser().then(function (user) { - throw new PedagogicalException('Upstream error'); - }).then(function (value) { - // never reached - }).then(function (value) { - // never reached - }, function (reason) { - // The `PedgagocialException` is propagated all the way down to here - }); - ``` - - Assimilation - ------------ - - Sometimes the value you want to propagate to a downstream promise can only be - retrieved asynchronously. This can be achieved by returning a promise in the - fulfillment or rejection handler. The downstream promise will then be pending - until the returned promise is settled. This is called *assimilation*. - - ```js - findUser().then(function (user) { - return findCommentsByAuthor(user); - }).then(function (comments) { - // The user's comments are now available - }); - ``` - - If the assimliated promise rejects, then the downstream promise will also reject. - - ```js - findUser().then(function (user) { - return findCommentsByAuthor(user); - }).then(function (comments) { - // If `findCommentsByAuthor` fulfills, we'll have the value here - }, function (reason) { - // If `findCommentsByAuthor` rejects, we'll have the reason here - }); - ``` - - Simple Example - -------------- - - Synchronous Example - - ```javascript - var result; - - try { - result = findResult(); - // success - } catch(reason) { - // failure - } - ``` - - Errback Example - - ```js - findResult(function(result, err){ - if (err) { - // failure - } else { - // success - } - }); - ``` - - Promise Example; - - ```javascript - findResult().then(function(result){ - // success - }, function(reason){ - // failure - }); - ``` - - Advanced Example - -------------- - - Synchronous Example - - ```javascript - var author, books; - - try { - author = findAuthor(); - books = findBooksByAuthor(author); - // success - } catch(reason) { - // failure - } - ``` - - Errback Example - - ```js - - function foundBooks(books) { - - } - - function failure(reason) { - - } - - findAuthor(function(author, err){ - if (err) { - failure(err); - // failure - } else { - try { - findBoooksByAuthor(author, function(books, err) { - if (err) { - failure(err); - } else { - try { - foundBooks(books); - } catch(reason) { - failure(reason); - } - } - }); - } catch(error) { - failure(err); - } - // success - } - }); - ``` - - Promise Example; - - ```javascript - findAuthor(). - then(findBooksByAuthor). - then(function(books){ - // found books - }).catch(function(reason){ - // something went wrong - }); - ``` - - @method then - @param {Function} onFulfilled - @param {Function} onRejected - Useful for tooling. - @return {Promise} - */ - then: function(onFulfillment, onRejection) { - var parent = this; - var state = parent._state; - - if (state === lib$es6$promise$$internal$$FULFILLED && !onFulfillment || state === lib$es6$promise$$internal$$REJECTED && !onRejection) { - return this; - } - - var child = new this.constructor(lib$es6$promise$$internal$$noop); - var result = parent._result; - - if (state) { - var callback = arguments[state - 1]; - lib$es6$promise$asap$$asap(function(){ - lib$es6$promise$$internal$$invokeCallback(state, child, callback, result); - }); - } else { - lib$es6$promise$$internal$$subscribe(parent, child, onFulfillment, onRejection); - } - - return child; - }, - - /** - `catch` is simply sugar for `then(undefined, onRejection)` which makes it the same - as the catch block of a try/catch statement. - - ```js - function findAuthor(){ - throw new Error('couldn't find that author'); - } - - // synchronous - try { - findAuthor(); - } catch(reason) { - // something went wrong - } - - // async with promises - findAuthor().catch(function(reason){ - // something went wrong - }); - ``` - - @method catch - @param {Function} onRejection - Useful for tooling. - @return {Promise} - */ - 'catch': function(onRejection) { - return this.then(null, onRejection); - } - }; - function lib$es6$promise$polyfill$$polyfill() { - var local; - - if (typeof global !== 'undefined') { - local = global; - } else if (typeof self !== 'undefined') { - local = self; - } else { - try { - local = Function('return this')(); - } catch (e) { - throw new Error('polyfill failed because global object is unavailable in this environment'); - } - } - - var P = local.Promise; - - if (P && Object.prototype.toString.call(P.resolve()) === '[object Promise]' && !P.cast) { - return; - } - - local.Promise = lib$es6$promise$promise$$default; - } - var lib$es6$promise$polyfill$$default = lib$es6$promise$polyfill$$polyfill; - - var lib$es6$promise$umd$$ES6Promise = { - 'Promise': lib$es6$promise$promise$$default, - 'polyfill': lib$es6$promise$polyfill$$default - }; - - /* global define:true module:true window: true */ - if (typeof define === 'function' && define['amd']) { - define(function() { return lib$es6$promise$umd$$ES6Promise; }); - } else if (typeof module !== 'undefined' && module['exports']) { - module['exports'] = lib$es6$promise$umd$$ES6Promise; - } else if (typeof this !== 'undefined') { - this['ES6Promise'] = lib$es6$promise$umd$$ES6Promise; - } - - lib$es6$promise$polyfill$$default(); -}).call(this); - - -}).call(this,{},typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{}]},{},[1]); - +try {document.addEventListener('DOMContentLoaded', $buo_f, false);} +catch(e){window.attachEvent('onload', $buo_f);} + +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; + +/******/ // The require function +/******/ function __webpack_require__(moduleId) { + +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) +/******/ return installedModules[moduleId].exports; + +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ exports: {}, +/******/ id: moduleId, +/******/ loaded: false +/******/ }; + +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); + +/******/ // Flag the module as loaded +/******/ module.loaded = true; + +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } + + +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; + +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; + +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; + +/******/ // Load entry module and return exports +/******/ return __webpack_require__(0); +/******/ }) +/************************************************************************/ +/******/ ([ +/* 0 */ +/***/ function(module, exports, __webpack_require__) { + + /* WEBPACK VAR INJECTION */(function(global) {'use strict'; + var microtask = __webpack_require__(1); + var es6Promise = __webpack_require__(2); + var core = __webpack_require__(6); + var browserPatch = __webpack_require__(10); + if (core.Zone.prototype['scheduleMicrotask']) { + console.warn('Zone-microtasks already exported on window the object!'); + } + else { + microtask.addMicrotaskSupport(core.Zone); + global.Zone = core.Zone; + global.zone = new global.Zone(); + // Monkey patch the Promise implementation to add support for microtasks + global.Promise = es6Promise.Promise; + browserPatch.apply(); + } + + /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()))) + +/***/ }, +/* 1 */ +/***/ function(module, exports, __webpack_require__) { + + /* WEBPACK VAR INJECTION */(function(global) {// TODO(vicb): Create a benchmark for the different methods & the usage of the queue + // see https://github.com/angular/zone.js/issues/97 + // It is required to initialize hasNativePromise before requiring es6-promise otherwise es6-promise would + // overwrite the native Promise implementation on v8 and the check would always return false. + // see https://github.com/jakearchibald/es6-promise/issues/140 + var hasNativePromise = typeof Promise !== "undefined" && + Promise.toString().indexOf("[native code]") !== -1; + var isFirefox = global.navigator && + global.navigator.userAgent.toLowerCase().indexOf('firefox') > -1; + var resolvedPromise; + // TODO(vicb): remove '!isFirefox' when the bug gets fixed: + // https://bugzilla.mozilla.org/show_bug.cgi?id=1162013 + if (hasNativePromise && !isFirefox) { + // When available use a native Promise to schedule microtasks. + // When not available, es6-promise fallback will be used + resolvedPromise = Promise.resolve(); + } + var es6Promise = __webpack_require__(2).Promise; + if (resolvedPromise) { + es6Promise._setScheduler(function (fn) { + resolvedPromise.then(fn); + }); + } + // es6-promise asap should schedule microtasks via zone.scheduleMicrotask so that any + // user defined hooks are triggered + es6Promise._setAsap(function (fn, arg) { + global.zone.scheduleMicrotask(function () { + fn(arg); + }); + }); + // The default implementation of scheduleMicrotask use the original es6-promise implementation + // to schedule a microtask + function scheduleMicrotask(fn) { + es6Promise._asap(this.bind(fn)); + } + function addMicrotaskSupport(zoneClass) { + zoneClass.prototype.scheduleMicrotask = scheduleMicrotask; + return zoneClass; + } + exports.addMicrotaskSupport = addMicrotaskSupport; + + /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()))) + +/***/ }, +/* 2 */ +/***/ function(module, exports, __webpack_require__) { + + var require;var __WEBPACK_AMD_DEFINE_RESULT__;/* WEBPACK VAR INJECTION */(function(global, module) {/*! + * @overview es6-promise - a tiny implementation of Promises/A+. + * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald) + * @license Licensed under MIT license + * See https://raw.githubusercontent.com/jakearchibald/es6-promise/master/LICENSE + * @version 3.0.2 + */ + + (function() { + "use strict"; + function lib$es6$promise$utils$$objectOrFunction(x) { + return typeof x === 'function' || (typeof x === 'object' && x !== null); + } + + function lib$es6$promise$utils$$isFunction(x) { + return typeof x === 'function'; + } + + function lib$es6$promise$utils$$isMaybeThenable(x) { + return typeof x === 'object' && x !== null; + } + + var lib$es6$promise$utils$$_isArray; + if (!Array.isArray) { + lib$es6$promise$utils$$_isArray = function (x) { + return Object.prototype.toString.call(x) === '[object Array]'; + }; + } else { + lib$es6$promise$utils$$_isArray = Array.isArray; + } + + var lib$es6$promise$utils$$isArray = lib$es6$promise$utils$$_isArray; + var lib$es6$promise$asap$$len = 0; + var lib$es6$promise$asap$$toString = {}.toString; + var lib$es6$promise$asap$$vertxNext; + var lib$es6$promise$asap$$customSchedulerFn; + + var lib$es6$promise$asap$$asap = function asap(callback, arg) { + lib$es6$promise$asap$$queue[lib$es6$promise$asap$$len] = callback; + lib$es6$promise$asap$$queue[lib$es6$promise$asap$$len + 1] = arg; + lib$es6$promise$asap$$len += 2; + if (lib$es6$promise$asap$$len === 2) { + // If len is 2, that means that we need to schedule an async flush. + // If additional callbacks are queued before the queue is flushed, they + // will be processed by this flush that we are scheduling. + if (lib$es6$promise$asap$$customSchedulerFn) { + lib$es6$promise$asap$$customSchedulerFn(lib$es6$promise$asap$$flush); + } else { + lib$es6$promise$asap$$scheduleFlush(); + } + } + } + + function lib$es6$promise$asap$$setScheduler(scheduleFn) { + lib$es6$promise$asap$$customSchedulerFn = scheduleFn; + } + + function lib$es6$promise$asap$$setAsap(asapFn) { + lib$es6$promise$asap$$asap = asapFn; + } + + var lib$es6$promise$asap$$browserWindow = (typeof window !== 'undefined') ? window : undefined; + var lib$es6$promise$asap$$browserGlobal = lib$es6$promise$asap$$browserWindow || {}; + var lib$es6$promise$asap$$BrowserMutationObserver = lib$es6$promise$asap$$browserGlobal.MutationObserver || lib$es6$promise$asap$$browserGlobal.WebKitMutationObserver; + var lib$es6$promise$asap$$isNode = typeof process !== 'undefined' && {}.toString.call(process) === '[object process]'; + + // test for web worker but not in IE10 + var lib$es6$promise$asap$$isWorker = typeof Uint8ClampedArray !== 'undefined' && + typeof importScripts !== 'undefined' && + typeof MessageChannel !== 'undefined'; + + // node + function lib$es6$promise$asap$$useNextTick() { + // node version 0.10.x displays a deprecation warning when nextTick is used recursively + // see https://github.com/cujojs/when/issues/410 for details + return function() { + process.nextTick(lib$es6$promise$asap$$flush); + }; + } + + // vertx + function lib$es6$promise$asap$$useVertxTimer() { + return function() { + lib$es6$promise$asap$$vertxNext(lib$es6$promise$asap$$flush); + }; + } + + function lib$es6$promise$asap$$useMutationObserver() { + var iterations = 0; + var observer = new lib$es6$promise$asap$$BrowserMutationObserver(lib$es6$promise$asap$$flush); + var node = document.createTextNode(''); + observer.observe(node, { characterData: true }); + + return function() { + node.data = (iterations = ++iterations % 2); + }; + } + + // web worker + function lib$es6$promise$asap$$useMessageChannel() { + var channel = new MessageChannel(); + channel.port1.onmessage = lib$es6$promise$asap$$flush; + return function () { + channel.port2.postMessage(0); + }; + } + + function lib$es6$promise$asap$$useSetTimeout() { + return function() { + setTimeout(lib$es6$promise$asap$$flush, 1); + }; + } + + var lib$es6$promise$asap$$queue = new Array(1000); + function lib$es6$promise$asap$$flush() { + for (var i = 0; i < lib$es6$promise$asap$$len; i+=2) { + var callback = lib$es6$promise$asap$$queue[i]; + var arg = lib$es6$promise$asap$$queue[i+1]; + + callback(arg); + + lib$es6$promise$asap$$queue[i] = undefined; + lib$es6$promise$asap$$queue[i+1] = undefined; + } + + lib$es6$promise$asap$$len = 0; + } + + function lib$es6$promise$asap$$attemptVertx() { + try { + var r = require; + var vertx = __webpack_require__(4); + lib$es6$promise$asap$$vertxNext = vertx.runOnLoop || vertx.runOnContext; + return lib$es6$promise$asap$$useVertxTimer(); + } catch(e) { + return lib$es6$promise$asap$$useSetTimeout(); + } + } + + var lib$es6$promise$asap$$scheduleFlush; + // Decide what async method to use to triggering processing of queued callbacks: + if (lib$es6$promise$asap$$isNode) { + lib$es6$promise$asap$$scheduleFlush = lib$es6$promise$asap$$useNextTick(); + } else if (lib$es6$promise$asap$$BrowserMutationObserver) { + lib$es6$promise$asap$$scheduleFlush = lib$es6$promise$asap$$useMutationObserver(); + } else if (lib$es6$promise$asap$$isWorker) { + lib$es6$promise$asap$$scheduleFlush = lib$es6$promise$asap$$useMessageChannel(); + } else if (lib$es6$promise$asap$$browserWindow === undefined && "function" === 'function') { + lib$es6$promise$asap$$scheduleFlush = lib$es6$promise$asap$$attemptVertx(); + } else { + lib$es6$promise$asap$$scheduleFlush = lib$es6$promise$asap$$useSetTimeout(); + } + + function lib$es6$promise$$internal$$noop() {} + + var lib$es6$promise$$internal$$PENDING = void 0; + var lib$es6$promise$$internal$$FULFILLED = 1; + var lib$es6$promise$$internal$$REJECTED = 2; + + var lib$es6$promise$$internal$$GET_THEN_ERROR = new lib$es6$promise$$internal$$ErrorObject(); + + function lib$es6$promise$$internal$$selfFulfillment() { + return new TypeError("You cannot resolve a promise with itself"); + } + + function lib$es6$promise$$internal$$cannotReturnOwn() { + return new TypeError('A promises callback cannot return that same promise.'); + } + + function lib$es6$promise$$internal$$getThen(promise) { + try { + return promise.then; + } catch(error) { + lib$es6$promise$$internal$$GET_THEN_ERROR.error = error; + return lib$es6$promise$$internal$$GET_THEN_ERROR; + } + } + + function lib$es6$promise$$internal$$tryThen(then, value, fulfillmentHandler, rejectionHandler) { + try { + then.call(value, fulfillmentHandler, rejectionHandler); + } catch(e) { + return e; + } + } + + function lib$es6$promise$$internal$$handleForeignThenable(promise, thenable, then) { + lib$es6$promise$asap$$asap(function(promise) { + var sealed = false; + var error = lib$es6$promise$$internal$$tryThen(then, thenable, function(value) { + if (sealed) { return; } + sealed = true; + if (thenable !== value) { + lib$es6$promise$$internal$$resolve(promise, value); + } else { + lib$es6$promise$$internal$$fulfill(promise, value); + } + }, function(reason) { + if (sealed) { return; } + sealed = true; + + lib$es6$promise$$internal$$reject(promise, reason); + }, 'Settle: ' + (promise._label || ' unknown promise')); + + if (!sealed && error) { + sealed = true; + lib$es6$promise$$internal$$reject(promise, error); + } + }, promise); + } + + function lib$es6$promise$$internal$$handleOwnThenable(promise, thenable) { + if (thenable._state === lib$es6$promise$$internal$$FULFILLED) { + lib$es6$promise$$internal$$fulfill(promise, thenable._result); + } else if (thenable._state === lib$es6$promise$$internal$$REJECTED) { + lib$es6$promise$$internal$$reject(promise, thenable._result); + } else { + lib$es6$promise$$internal$$subscribe(thenable, undefined, function(value) { + lib$es6$promise$$internal$$resolve(promise, value); + }, function(reason) { + lib$es6$promise$$internal$$reject(promise, reason); + }); + } + } + + function lib$es6$promise$$internal$$handleMaybeThenable(promise, maybeThenable) { + if (maybeThenable.constructor === promise.constructor) { + lib$es6$promise$$internal$$handleOwnThenable(promise, maybeThenable); + } else { + var then = lib$es6$promise$$internal$$getThen(maybeThenable); + + if (then === lib$es6$promise$$internal$$GET_THEN_ERROR) { + lib$es6$promise$$internal$$reject(promise, lib$es6$promise$$internal$$GET_THEN_ERROR.error); + } else if (then === undefined) { + lib$es6$promise$$internal$$fulfill(promise, maybeThenable); + } else if (lib$es6$promise$utils$$isFunction(then)) { + lib$es6$promise$$internal$$handleForeignThenable(promise, maybeThenable, then); + } else { + lib$es6$promise$$internal$$fulfill(promise, maybeThenable); + } + } + } + + function lib$es6$promise$$internal$$resolve(promise, value) { + if (promise === value) { + lib$es6$promise$$internal$$reject(promise, lib$es6$promise$$internal$$selfFulfillment()); + } else if (lib$es6$promise$utils$$objectOrFunction(value)) { + lib$es6$promise$$internal$$handleMaybeThenable(promise, value); + } else { + lib$es6$promise$$internal$$fulfill(promise, value); + } + } + + function lib$es6$promise$$internal$$publishRejection(promise) { + if (promise._onerror) { + promise._onerror(promise._result); + } + + lib$es6$promise$$internal$$publish(promise); + } + + function lib$es6$promise$$internal$$fulfill(promise, value) { + if (promise._state !== lib$es6$promise$$internal$$PENDING) { return; } + + promise._result = value; + promise._state = lib$es6$promise$$internal$$FULFILLED; + + if (promise._subscribers.length !== 0) { + lib$es6$promise$asap$$asap(lib$es6$promise$$internal$$publish, promise); + } + } + + function lib$es6$promise$$internal$$reject(promise, reason) { + if (promise._state !== lib$es6$promise$$internal$$PENDING) { return; } + promise._state = lib$es6$promise$$internal$$REJECTED; + promise._result = reason; + + lib$es6$promise$asap$$asap(lib$es6$promise$$internal$$publishRejection, promise); + } + + function lib$es6$promise$$internal$$subscribe(parent, child, onFulfillment, onRejection) { + var subscribers = parent._subscribers; + var length = subscribers.length; + + parent._onerror = null; + + subscribers[length] = child; + subscribers[length + lib$es6$promise$$internal$$FULFILLED] = onFulfillment; + subscribers[length + lib$es6$promise$$internal$$REJECTED] = onRejection; + + if (length === 0 && parent._state) { + lib$es6$promise$asap$$asap(lib$es6$promise$$internal$$publish, parent); + } + } + + function lib$es6$promise$$internal$$publish(promise) { + var subscribers = promise._subscribers; + var settled = promise._state; + + if (subscribers.length === 0) { return; } + + var child, callback, detail = promise._result; + + for (var i = 0; i < subscribers.length; i += 3) { + child = subscribers[i]; + callback = subscribers[i + settled]; + + if (child) { + lib$es6$promise$$internal$$invokeCallback(settled, child, callback, detail); + } else { + callback(detail); + } + } + + promise._subscribers.length = 0; + } + + function lib$es6$promise$$internal$$ErrorObject() { + this.error = null; + } + + var lib$es6$promise$$internal$$TRY_CATCH_ERROR = new lib$es6$promise$$internal$$ErrorObject(); + + function lib$es6$promise$$internal$$tryCatch(callback, detail) { + try { + return callback(detail); + } catch(e) { + lib$es6$promise$$internal$$TRY_CATCH_ERROR.error = e; + return lib$es6$promise$$internal$$TRY_CATCH_ERROR; + } + } + + function lib$es6$promise$$internal$$invokeCallback(settled, promise, callback, detail) { + var hasCallback = lib$es6$promise$utils$$isFunction(callback), + value, error, succeeded, failed; + + if (hasCallback) { + value = lib$es6$promise$$internal$$tryCatch(callback, detail); + + if (value === lib$es6$promise$$internal$$TRY_CATCH_ERROR) { + failed = true; + error = value.error; + value = null; + } else { + succeeded = true; + } + + if (promise === value) { + lib$es6$promise$$internal$$reject(promise, lib$es6$promise$$internal$$cannotReturnOwn()); + return; + } + + } else { + value = detail; + succeeded = true; + } + + if (promise._state !== lib$es6$promise$$internal$$PENDING) { + // noop + } else if (hasCallback && succeeded) { + lib$es6$promise$$internal$$resolve(promise, value); + } else if (failed) { + lib$es6$promise$$internal$$reject(promise, error); + } else if (settled === lib$es6$promise$$internal$$FULFILLED) { + lib$es6$promise$$internal$$fulfill(promise, value); + } else if (settled === lib$es6$promise$$internal$$REJECTED) { + lib$es6$promise$$internal$$reject(promise, value); + } + } + + function lib$es6$promise$$internal$$initializePromise(promise, resolver) { + try { + resolver(function resolvePromise(value){ + lib$es6$promise$$internal$$resolve(promise, value); + }, function rejectPromise(reason) { + lib$es6$promise$$internal$$reject(promise, reason); + }); + } catch(e) { + lib$es6$promise$$internal$$reject(promise, e); + } + } + + function lib$es6$promise$enumerator$$Enumerator(Constructor, input) { + var enumerator = this; + + enumerator._instanceConstructor = Constructor; + enumerator.promise = new Constructor(lib$es6$promise$$internal$$noop); + + if (enumerator._validateInput(input)) { + enumerator._input = input; + enumerator.length = input.length; + enumerator._remaining = input.length; + + enumerator._init(); + + if (enumerator.length === 0) { + lib$es6$promise$$internal$$fulfill(enumerator.promise, enumerator._result); + } else { + enumerator.length = enumerator.length || 0; + enumerator._enumerate(); + if (enumerator._remaining === 0) { + lib$es6$promise$$internal$$fulfill(enumerator.promise, enumerator._result); + } + } + } else { + lib$es6$promise$$internal$$reject(enumerator.promise, enumerator._validationError()); + } + } + + lib$es6$promise$enumerator$$Enumerator.prototype._validateInput = function(input) { + return lib$es6$promise$utils$$isArray(input); + }; + + lib$es6$promise$enumerator$$Enumerator.prototype._validationError = function() { + return new Error('Array Methods must be provided an Array'); + }; + + lib$es6$promise$enumerator$$Enumerator.prototype._init = function() { + this._result = new Array(this.length); + }; + + var lib$es6$promise$enumerator$$default = lib$es6$promise$enumerator$$Enumerator; + + lib$es6$promise$enumerator$$Enumerator.prototype._enumerate = function() { + var enumerator = this; + + var length = enumerator.length; + var promise = enumerator.promise; + var input = enumerator._input; + + for (var i = 0; promise._state === lib$es6$promise$$internal$$PENDING && i < length; i++) { + enumerator._eachEntry(input[i], i); + } + }; + + lib$es6$promise$enumerator$$Enumerator.prototype._eachEntry = function(entry, i) { + var enumerator = this; + var c = enumerator._instanceConstructor; + + if (lib$es6$promise$utils$$isMaybeThenable(entry)) { + if (entry.constructor === c && entry._state !== lib$es6$promise$$internal$$PENDING) { + entry._onerror = null; + enumerator._settledAt(entry._state, i, entry._result); + } else { + enumerator._willSettleAt(c.resolve(entry), i); + } + } else { + enumerator._remaining--; + enumerator._result[i] = entry; + } + }; + + lib$es6$promise$enumerator$$Enumerator.prototype._settledAt = function(state, i, value) { + var enumerator = this; + var promise = enumerator.promise; + + if (promise._state === lib$es6$promise$$internal$$PENDING) { + enumerator._remaining--; + + if (state === lib$es6$promise$$internal$$REJECTED) { + lib$es6$promise$$internal$$reject(promise, value); + } else { + enumerator._result[i] = value; + } + } + + if (enumerator._remaining === 0) { + lib$es6$promise$$internal$$fulfill(promise, enumerator._result); + } + }; + + lib$es6$promise$enumerator$$Enumerator.prototype._willSettleAt = function(promise, i) { + var enumerator = this; + + lib$es6$promise$$internal$$subscribe(promise, undefined, function(value) { + enumerator._settledAt(lib$es6$promise$$internal$$FULFILLED, i, value); + }, function(reason) { + enumerator._settledAt(lib$es6$promise$$internal$$REJECTED, i, reason); + }); + }; + function lib$es6$promise$promise$all$$all(entries) { + return new lib$es6$promise$enumerator$$default(this, entries).promise; + } + var lib$es6$promise$promise$all$$default = lib$es6$promise$promise$all$$all; + function lib$es6$promise$promise$race$$race(entries) { + /*jshint validthis:true */ + var Constructor = this; + + var promise = new Constructor(lib$es6$promise$$internal$$noop); + + if (!lib$es6$promise$utils$$isArray(entries)) { + lib$es6$promise$$internal$$reject(promise, new TypeError('You must pass an array to race.')); + return promise; + } + + var length = entries.length; + + function onFulfillment(value) { + lib$es6$promise$$internal$$resolve(promise, value); + } + + function onRejection(reason) { + lib$es6$promise$$internal$$reject(promise, reason); + } + + for (var i = 0; promise._state === lib$es6$promise$$internal$$PENDING && i < length; i++) { + lib$es6$promise$$internal$$subscribe(Constructor.resolve(entries[i]), undefined, onFulfillment, onRejection); + } + + return promise; + } + var lib$es6$promise$promise$race$$default = lib$es6$promise$promise$race$$race; + function lib$es6$promise$promise$resolve$$resolve(object) { + /*jshint validthis:true */ + var Constructor = this; + + if (object && typeof object === 'object' && object.constructor === Constructor) { + return object; + } + + var promise = new Constructor(lib$es6$promise$$internal$$noop); + lib$es6$promise$$internal$$resolve(promise, object); + return promise; + } + var lib$es6$promise$promise$resolve$$default = lib$es6$promise$promise$resolve$$resolve; + function lib$es6$promise$promise$reject$$reject(reason) { + /*jshint validthis:true */ + var Constructor = this; + var promise = new Constructor(lib$es6$promise$$internal$$noop); + lib$es6$promise$$internal$$reject(promise, reason); + return promise; + } + var lib$es6$promise$promise$reject$$default = lib$es6$promise$promise$reject$$reject; + + var lib$es6$promise$promise$$counter = 0; + + function lib$es6$promise$promise$$needsResolver() { + throw new TypeError('You must pass a resolver function as the first argument to the promise constructor'); + } + + function lib$es6$promise$promise$$needsNew() { + throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function."); + } + + var lib$es6$promise$promise$$default = lib$es6$promise$promise$$Promise; + /** + Promise objects represent the eventual result of an asynchronous operation. The + primary way of interacting with a promise is through its `then` method, which + registers callbacks to receive either a promise's eventual value or the reason + why the promise cannot be fulfilled. + + Terminology + ----------- + + - `promise` is an object or function with a `then` method whose behavior conforms to this specification. + - `thenable` is an object or function that defines a `then` method. + - `value` is any legal JavaScript value (including undefined, a thenable, or a promise). + - `exception` is a value that is thrown using the throw statement. + - `reason` is a value that indicates why a promise was rejected. + - `settled` the final resting state of a promise, fulfilled or rejected. + + A promise can be in one of three states: pending, fulfilled, or rejected. + + Promises that are fulfilled have a fulfillment value and are in the fulfilled + state. Promises that are rejected have a rejection reason and are in the + rejected state. A fulfillment value is never a thenable. + + Promises can also be said to *resolve* a value. If this value is also a + promise, then the original promise's settled state will match the value's + settled state. So a promise that *resolves* a promise that rejects will + itself reject, and a promise that *resolves* a promise that fulfills will + itself fulfill. + + + Basic Usage: + ------------ + + ```js + var promise = new Promise(function(resolve, reject) { + // on success + resolve(value); + + // on failure + reject(reason); + }); + + promise.then(function(value) { + // on fulfillment + }, function(reason) { + // on rejection + }); + ``` + + Advanced Usage: + --------------- + + Promises shine when abstracting away asynchronous interactions such as + `XMLHttpRequest`s. + + ```js + function getJSON(url) { + return new Promise(function(resolve, reject){ + var xhr = new XMLHttpRequest(); + + xhr.open('GET', url); + xhr.onreadystatechange = handler; + xhr.responseType = 'json'; + xhr.setRequestHeader('Accept', 'application/json'); + xhr.send(); + + function handler() { + if (this.readyState === this.DONE) { + if (this.status === 200) { + resolve(this.response); + } else { + reject(new Error('getJSON: `' + url + '` failed with status: [' + this.status + ']')); + } + } + }; + }); + } + + getJSON('/posts.json').then(function(json) { + // on fulfillment + }, function(reason) { + // on rejection + }); + ``` + + Unlike callbacks, promises are great composable primitives. + + ```js + Promise.all([ + getJSON('/posts'), + getJSON('/comments') + ]).then(function(values){ + values[0] // => postsJSON + values[1] // => commentsJSON + + return values; + }); + ``` + + @class Promise + @param {function} resolver + Useful for tooling. + @constructor + */ + function lib$es6$promise$promise$$Promise(resolver) { + this._id = lib$es6$promise$promise$$counter++; + this._state = undefined; + this._result = undefined; + this._subscribers = []; + + if (lib$es6$promise$$internal$$noop !== resolver) { + if (!lib$es6$promise$utils$$isFunction(resolver)) { + lib$es6$promise$promise$$needsResolver(); + } + + if (!(this instanceof lib$es6$promise$promise$$Promise)) { + lib$es6$promise$promise$$needsNew(); + } + + lib$es6$promise$$internal$$initializePromise(this, resolver); + } + } + + lib$es6$promise$promise$$Promise.all = lib$es6$promise$promise$all$$default; + lib$es6$promise$promise$$Promise.race = lib$es6$promise$promise$race$$default; + lib$es6$promise$promise$$Promise.resolve = lib$es6$promise$promise$resolve$$default; + lib$es6$promise$promise$$Promise.reject = lib$es6$promise$promise$reject$$default; + lib$es6$promise$promise$$Promise._setScheduler = lib$es6$promise$asap$$setScheduler; + lib$es6$promise$promise$$Promise._setAsap = lib$es6$promise$asap$$setAsap; + lib$es6$promise$promise$$Promise._asap = lib$es6$promise$asap$$asap; + + lib$es6$promise$promise$$Promise.prototype = { + constructor: lib$es6$promise$promise$$Promise, + + /** + The primary way of interacting with a promise is through its `then` method, + which registers callbacks to receive either a promise's eventual value or the + reason why the promise cannot be fulfilled. + + ```js + findUser().then(function(user){ + // user is available + }, function(reason){ + // user is unavailable, and you are given the reason why + }); + ``` + + Chaining + -------- + + The return value of `then` is itself a promise. This second, 'downstream' + promise is resolved with the return value of the first promise's fulfillment + or rejection handler, or rejected if the handler throws an exception. + + ```js + findUser().then(function (user) { + return user.name; + }, function (reason) { + return 'default name'; + }).then(function (userName) { + // If `findUser` fulfilled, `userName` will be the user's name, otherwise it + // will be `'default name'` + }); + + findUser().then(function (user) { + throw new Error('Found user, but still unhappy'); + }, function (reason) { + throw new Error('`findUser` rejected and we're unhappy'); + }).then(function (value) { + // never reached + }, function (reason) { + // if `findUser` fulfilled, `reason` will be 'Found user, but still unhappy'. + // If `findUser` rejected, `reason` will be '`findUser` rejected and we're unhappy'. + }); + ``` + If the downstream promise does not specify a rejection handler, rejection reasons will be propagated further downstream. + + ```js + findUser().then(function (user) { + throw new PedagogicalException('Upstream error'); + }).then(function (value) { + // never reached + }).then(function (value) { + // never reached + }, function (reason) { + // The `PedgagocialException` is propagated all the way down to here + }); + ``` + + Assimilation + ------------ + + Sometimes the value you want to propagate to a downstream promise can only be + retrieved asynchronously. This can be achieved by returning a promise in the + fulfillment or rejection handler. The downstream promise will then be pending + until the returned promise is settled. This is called *assimilation*. + + ```js + findUser().then(function (user) { + return findCommentsByAuthor(user); + }).then(function (comments) { + // The user's comments are now available + }); + ``` + + If the assimliated promise rejects, then the downstream promise will also reject. + + ```js + findUser().then(function (user) { + return findCommentsByAuthor(user); + }).then(function (comments) { + // If `findCommentsByAuthor` fulfills, we'll have the value here + }, function (reason) { + // If `findCommentsByAuthor` rejects, we'll have the reason here + }); + ``` + + Simple Example + -------------- + + Synchronous Example + + ```javascript + var result; + + try { + result = findResult(); + // success + } catch(reason) { + // failure + } + ``` + + Errback Example + + ```js + findResult(function(result, err){ + if (err) { + // failure + } else { + // success + } + }); + ``` + + Promise Example; + + ```javascript + findResult().then(function(result){ + // success + }, function(reason){ + // failure + }); + ``` + + Advanced Example + -------------- + + Synchronous Example + + ```javascript + var author, books; + + try { + author = findAuthor(); + books = findBooksByAuthor(author); + // success + } catch(reason) { + // failure + } + ``` + + Errback Example + + ```js + + function foundBooks(books) { + + } + + function failure(reason) { + + } + + findAuthor(function(author, err){ + if (err) { + failure(err); + // failure + } else { + try { + findBoooksByAuthor(author, function(books, err) { + if (err) { + failure(err); + } else { + try { + foundBooks(books); + } catch(reason) { + failure(reason); + } + } + }); + } catch(error) { + failure(err); + } + // success + } + }); + ``` + + Promise Example; + + ```javascript + findAuthor(). + then(findBooksByAuthor). + then(function(books){ + // found books + }).catch(function(reason){ + // something went wrong + }); + ``` + + @method then + @param {Function} onFulfilled + @param {Function} onRejected + Useful for tooling. + @return {Promise} + */ + then: function(onFulfillment, onRejection) { + var parent = this; + var state = parent._state; + + if (state === lib$es6$promise$$internal$$FULFILLED && !onFulfillment || state === lib$es6$promise$$internal$$REJECTED && !onRejection) { + return this; + } + + var child = new this.constructor(lib$es6$promise$$internal$$noop); + var result = parent._result; + + if (state) { + var callback = arguments[state - 1]; + lib$es6$promise$asap$$asap(function(){ + lib$es6$promise$$internal$$invokeCallback(state, child, callback, result); + }); + } else { + lib$es6$promise$$internal$$subscribe(parent, child, onFulfillment, onRejection); + } + + return child; + }, + + /** + `catch` is simply sugar for `then(undefined, onRejection)` which makes it the same + as the catch block of a try/catch statement. + + ```js + function findAuthor(){ + throw new Error('couldn't find that author'); + } + + // synchronous + try { + findAuthor(); + } catch(reason) { + // something went wrong + } + + // async with promises + findAuthor().catch(function(reason){ + // something went wrong + }); + ``` + + @method catch + @param {Function} onRejection + Useful for tooling. + @return {Promise} + */ + 'catch': function(onRejection) { + return this.then(null, onRejection); + } + }; + function lib$es6$promise$polyfill$$polyfill() { + var local; + + if (typeof global !== 'undefined') { + local = global; + } else if (typeof self !== 'undefined') { + local = self; + } else { + try { + local = Function('return this')(); + } catch (e) { + throw new Error('polyfill failed because global object is unavailable in this environment'); + } + } + + var P = local.Promise; + + if (P && Object.prototype.toString.call(P.resolve()) === '[object Promise]' && !P.cast) { + return; + } + + local.Promise = lib$es6$promise$promise$$default; + } + var lib$es6$promise$polyfill$$default = lib$es6$promise$polyfill$$polyfill; + + var lib$es6$promise$umd$$ES6Promise = { + 'Promise': lib$es6$promise$promise$$default, + 'polyfill': lib$es6$promise$polyfill$$default + }; + + /* global define:true module:true window: true */ + if ("function" === 'function' && __webpack_require__(5)['amd']) { + !(__WEBPACK_AMD_DEFINE_RESULT__ = function() { return lib$es6$promise$umd$$ES6Promise; }.call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); + } else if (typeof module !== 'undefined' && module['exports']) { + module['exports'] = lib$es6$promise$umd$$ES6Promise; + } else if (typeof this !== 'undefined') { + this['ES6Promise'] = lib$es6$promise$umd$$ES6Promise; + } + + lib$es6$promise$polyfill$$default(); + }).call(this); + + + /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()), __webpack_require__(3)(module))) + +/***/ }, +/* 3 */ +/***/ function(module, exports) { + + module.exports = function(module) { + if(!module.webpackPolyfill) { + module.deprecate = function() {}; + module.paths = []; + // module.parent = undefined by default + module.children = []; + module.webpackPolyfill = 1; + } + return module; + } + + +/***/ }, +/* 4 */ +/***/ function(module, exports) { + + /* (ignored) */ + +/***/ }, +/* 5 */ +/***/ function(module, exports) { + + module.exports = function() { throw new Error("define cannot be used indirect"); }; + + +/***/ }, +/* 6 */ +/***/ function(module, exports, __webpack_require__) { + + /* WEBPACK VAR INJECTION */(function(global) {var keys = __webpack_require__(7); + var promise = __webpack_require__(8); + var deprecated = {}; + function deprecatedWarning(key, text) { + if (!deprecated.hasOwnProperty(key)) { + deprecated[key] = true; + console.warn("DEPRECATION WARNING: '" + key + + "' is no longer supported and will be removed in next major release. " + text); + } + } + var Zone = (function () { + function Zone(parentZone, data) { + this.parent = null; + // onError is used to override error handling. + // When a custom error handler is provided, it should most probably rethrow the exception + // not to break the expected control flow: + // + // `promise.then(fnThatThrows).catch(fn);` + // + // When this code is executed in a zone with a custom onError handler that doesn't rethrow, the + // `.catch()` branch will not be taken as the `fnThatThrows` exception will be swallowed by the + // handler. + this.onError = null; + var zone = (arguments.length) ? Object.create(parentZone) : this; + zone.parent = parentZone || null; + Object.keys(data || {}).forEach(function (property) { + var _property = property.substr(1); + // augment the new zone with a hook decorates the parent's hook + if (property[0] === '$') { + zone[_property] = data[property](parentZone[_property] || function () { }); + } + else if (property[0] === '+') { + if (parentZone[_property]) { + zone[_property] = function () { + var result = parentZone[_property].apply(this, arguments); + data[property].apply(this, arguments); + return result; + }; + } + else { + zone[_property] = data[property]; + } + } + else if (property[0] === '-') { + if (parentZone[_property]) { + zone[_property] = function () { + data[property].apply(this, arguments); + return parentZone[_property].apply(this, arguments); + }; + } + else { + zone[_property] = data[property]; + } + } + else { + zone[property] = (typeof data[property] === 'object') ? + JSON.parse(JSON.stringify(data[property])) : + data[property]; + } + }); + zone.$id = Zone.nextId++; + return zone; + } + Zone.prototype.fork = function (locals) { + this.onZoneCreated(); + return new Zone(this, locals); + }; + Zone.prototype.bind = function (fn, skipEnqueue) { + if (typeof fn !== 'function') { + throw new Error('Expecting function got: ' + fn); + } + skipEnqueue || this.enqueueTask(fn); + var zone = this.isRootZone() ? this : this.fork(); + return function zoneBoundFn() { + return zone.run(fn, this, arguments); + }; + }; + /// @deprecated + Zone.prototype.bindOnce = function (fn) { + deprecatedWarning('bindOnce', 'There is no replacement.'); + var boundZone = this; + return this.bind(function () { + var result = fn.apply(this, arguments); + boundZone.dequeueTask(fn); + return result; + }); + }; + Zone.prototype.isRootZone = function () { + return this.parent === null; + }; + Zone.prototype.run = function (fn, applyTo, applyWith) { + applyWith = applyWith || []; + var oldZone = global.zone; + // MAKE THIS ZONE THE CURRENT ZONE + global.zone = this; + try { + this.beforeTask(); + return fn.apply(applyTo, applyWith); + } + catch (e) { + if (this.onError) { + this.onError(e); + } + else { + throw e; + } + } + finally { + this.afterTask(); + // REVERT THE CURRENT ZONE BACK TO THE ORIGINAL ZONE + global.zone = oldZone; + } + }; + Zone.prototype.beforeTask = function () { }; + Zone.prototype.onZoneCreated = function () { }; + Zone.prototype.afterTask = function () { }; + Zone.prototype.enqueueTask = function (fn) { + deprecatedWarning('enqueueTask', 'Use addTask/addRepeatingTask/addMicroTask'); + }; + Zone.prototype.dequeueTask = function (fn) { + deprecatedWarning('dequeueTask', 'Use removeTask/removeRepeatingTask/removeMicroTask'); + }; + Zone.prototype.addTask = function (taskFn) { this.enqueueTask(taskFn); }; + Zone.prototype.removeTask = function (taskFn) { this.dequeueTask(taskFn); }; + Zone.prototype.addRepeatingTask = function (taskFn) { this.enqueueTask(taskFn); }; + Zone.prototype.removeRepeatingTask = function (taskFn) { this.dequeueTask(taskFn); }; + Zone.prototype.addMicrotask = function (taskFn) { this.enqueueTask(taskFn); }; + Zone.prototype.removeMicrotask = function (taskFn) { this.dequeueTask(taskFn); }; + Zone.prototype.addEventListener = function () { + return this[keys.common.addEventListener].apply(this, arguments); + }; + Zone.prototype.removeEventListener = function () { + return this[keys.common.removeEventListener].apply(this, arguments); + }; + // Root zone ID === 1 + Zone.nextId = 1; + Zone.bindPromiseFn = promise.bindPromiseFn; + return Zone; + })(); + exports.Zone = Zone; + ; + + /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()))) + +/***/ }, +/* 7 */ +/***/ function(module, exports) { + + /** + * Creates keys for `private` properties on exposed objects to minimize interactions with other codebases. + */ + function create(name) { + // `Symbol` implementation is broken in Chrome 39.0.2171, do not use them even if they are available + return '_zone$' + name; + } + exports.create = create; + exports.common = { + addEventListener: create('addEventListener'), + removeEventListener: create('removeEventListener') + }; + + +/***/ }, +/* 8 */ +/***/ function(module, exports, __webpack_require__) { + + /* WEBPACK VAR INJECTION */(function(global) {var utils = __webpack_require__(9); + if (global.Promise) { + exports.bindPromiseFn = function (delegate) { + return function () { + var delegatePromise = delegate.apply(this, arguments); + // if the delegate returned an instance of Promise, forward it. + if (delegatePromise instanceof Promise) { + return delegatePromise; + } + // Otherwise wrap the Promise-like in a global Promise + return new Promise(function (resolve, reject) { + delegatePromise.then(resolve, reject); + }); + }; + }; + } + else { + exports.bindPromiseFn = function (delegate) { + return function () { + return _patchThenable(delegate.apply(this, arguments)); + }; + }; + } + function _patchPromiseFnsOnObject(objectPath, fnNames) { + var obj = global; + var exists = objectPath.every(function (segment) { + obj = obj[segment]; + return obj; + }); + if (!exists) { + return; + } + fnNames.forEach(function (name) { + var fn = obj[name]; + if (fn) { + obj[name] = exports.bindPromiseFn(fn); + } + }); + } + function _patchThenable(thenable) { + var then = thenable.then; + thenable.then = function () { + var args = utils.bindArguments(arguments); + var nextThenable = then.apply(thenable, args); + return _patchThenable(nextThenable); + }; + var ocatch = thenable.catch; + thenable.catch = function () { + var args = utils.bindArguments(arguments); + var nextThenable = ocatch.apply(thenable, args); + return _patchThenable(nextThenable); + }; + return thenable; + } + function apply() { + // Patch .then() and .catch() on native Promises to execute callbacks in the zone where + // those functions are called. + if (global.Promise) { + utils.patchPrototype(Promise.prototype, [ + 'then', + 'catch' + ]); + // Patch browser APIs that return a Promise + var patchFns = [ + // fetch + [[], ['fetch']], + [['Response', 'prototype'], ['arrayBuffer', 'blob', 'json', 'text']] + ]; + patchFns.forEach(function (objPathAndFns) { + _patchPromiseFnsOnObject(objPathAndFns[0], objPathAndFns[1]); + }); + } + } + exports.apply = apply; + module.exports = { + apply: apply, + bindPromiseFn: exports.bindPromiseFn + }; + + /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()))) + +/***/ }, +/* 9 */ +/***/ function(module, exports, __webpack_require__) { + + /* WEBPACK VAR INJECTION */(function(global) {var keys = __webpack_require__(7); + function bindArguments(args) { + for (var i = args.length - 1; i >= 0; i--) { + if (typeof args[i] === 'function') { + args[i] = global.zone.bind(args[i]); + } + } + return args; + } + exports.bindArguments = bindArguments; + ; + function patchPrototype(obj, fnNames) { + fnNames.forEach(function (name) { + var delegate = obj[name]; + if (delegate) { + obj[name] = function () { + return delegate.apply(this, bindArguments(arguments)); + }; + } + }); + } + exports.patchPrototype = patchPrototype; + ; + function isWebWorker() { + return (typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope); + } + exports.isWebWorker = isWebWorker; + function isNode() { + return (typeof process !== 'undefined' && {}.toString.call(process) === '[object process]'); + } + exports.isNode = isNode; + function patchProperty(obj, prop) { + var desc = Object.getOwnPropertyDescriptor(obj, prop) || { + enumerable: true, + configurable: true + }; + // A property descriptor cannot have getter/setter and be writable + // deleting the writable and value properties avoids this error: + // + // TypeError: property descriptors must not specify a value or be writable when a + // getter or setter has been specified + delete desc.writable; + delete desc.value; + // substr(2) cuz 'onclick' -> 'click', etc + var eventName = prop.substr(2); + var _prop = '_' + prop; + desc.set = function (fn) { + if (this[_prop]) { + this.removeEventListener(eventName, this[_prop]); + } + if (typeof fn === 'function') { + this[_prop] = fn; + this.addEventListener(eventName, fn, false); + } + else { + this[_prop] = null; + } + }; + desc.get = function () { + return this[_prop]; + }; + Object.defineProperty(obj, prop, desc); + } + exports.patchProperty = patchProperty; + ; + function patchProperties(obj, properties) { + (properties || (function () { + var props = []; + for (var prop in obj) { + props.push(prop); + } + return props; + }()). + filter(function (propertyName) { + return propertyName.substr(0, 2) === 'on'; + })). + forEach(function (eventName) { + patchProperty(obj, eventName); + }); + } + exports.patchProperties = patchProperties; + ; + var originalFnKey = keys.create('originalFn'); + var boundFnsKey = keys.create('boundFns'); + function patchEventTargetMethods(obj) { + // This is required for the addEventListener hook on the root zone. + obj[keys.common.addEventListener] = obj.addEventListener; + obj.addEventListener = function (eventName, handler, useCapturing) { + //Ignore special listeners of IE11 & Edge dev tools, see https://github.com/angular/zone.js/issues/150 + if (handler && handler.toString() !== "[object FunctionWrapper]") { + var eventType = eventName + (useCapturing ? '$capturing' : '$bubbling'); + var fn; + if (handler.handleEvent) { + // Have to pass in 'handler' reference as an argument here, otherwise it gets clobbered in + // IE9 by the arguments[1] assignment at end of this function. + fn = (function (handler) { + return function () { + handler.handleEvent.apply(handler, arguments); + }; + })(handler); + } + else { + fn = handler; + } + handler[originalFnKey] = fn; + handler[boundFnsKey] = handler[boundFnsKey] || {}; + handler[boundFnsKey][eventType] = handler[boundFnsKey][eventType] || global.zone.bind(fn); + arguments[1] = handler[boundFnsKey][eventType]; + } + // - Inside a Web Worker, `this` is undefined, the context is `global` (= `self`) + // - When `addEventListener` is called on the global context in strict mode, `this` is undefined + // see https://github.com/angular/zone.js/issues/190 + var target = this || global; + return global.zone.addEventListener.apply(target, arguments); + }; + // This is required for the removeEventListener hook on the root zone. + obj[keys.common.removeEventListener] = obj.removeEventListener; + obj.removeEventListener = function (eventName, handler, useCapturing) { + var eventType = eventName + (useCapturing ? '$capturing' : '$bubbling'); + if (handler && handler[boundFnsKey] && handler[boundFnsKey][eventType]) { + var _bound = handler[boundFnsKey]; + arguments[1] = _bound[eventType]; + delete _bound[eventType]; + global.zone.dequeueTask(handler[originalFnKey]); + } + // - Inside a Web Worker, `this` is undefined, the context is `global` + // - When `addEventListener` is called on the global context in strict mode, `this` is undefined + // see https://github.com/angular/zone.js/issues/190 + var target = this || global; + var result = global.zone.removeEventListener.apply(target, arguments); + return result; + }; + } + exports.patchEventTargetMethods = patchEventTargetMethods; + ; + var originalInstanceKey = keys.create('originalInstance'); + // wrap some native API on `window` + function patchClass(className) { + var OriginalClass = global[className]; + if (!OriginalClass) + return; + global[className] = function () { + var a = bindArguments(arguments); + switch (a.length) { + case 0: + this[originalInstanceKey] = new OriginalClass(); + break; + case 1: + this[originalInstanceKey] = new OriginalClass(a[0]); + break; + case 2: + this[originalInstanceKey] = new OriginalClass(a[0], a[1]); + break; + case 3: + this[originalInstanceKey] = new OriginalClass(a[0], a[1], a[2]); + break; + case 4: + this[originalInstanceKey] = new OriginalClass(a[0], a[1], a[2], a[3]); + break; + default: throw new Error('what are you even doing?'); + } + }; + var instance = new OriginalClass(); + var prop; + for (prop in instance) { + (function (prop) { + if (typeof instance[prop] === 'function') { + global[className].prototype[prop] = function () { + return this[originalInstanceKey][prop].apply(this[originalInstanceKey], arguments); + }; + } + else { + Object.defineProperty(global[className].prototype, prop, { + set: function (fn) { + if (typeof fn === 'function') { + this[originalInstanceKey][prop] = global.zone.bind(fn); + } + else { + this[originalInstanceKey][prop] = fn; + } + }, + get: function () { + return this[originalInstanceKey][prop]; + } + }); + } + }(prop)); + } + for (prop in OriginalClass) { + if (prop !== 'prototype' && OriginalClass.hasOwnProperty(prop)) { + global[className][prop] = OriginalClass[prop]; + } + } + } + exports.patchClass = patchClass; + ; + + /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()))) + +/***/ }, +/* 10 */ +/***/ function(module, exports, __webpack_require__) { + + /* WEBPACK VAR INJECTION */(function(global) {var fnPatch = __webpack_require__(11); + var promisePatch = __webpack_require__(8); + var mutationObserverPatch = __webpack_require__(13); + var definePropertyPatch = __webpack_require__(14); + var registerElementPatch = __webpack_require__(15); + var eventTargetPatch = __webpack_require__(16); + var propertyDescriptorPatch = __webpack_require__(17); + var geolocationPatch = __webpack_require__(19); + var fileReaderPatch = __webpack_require__(20); + function apply() { + fnPatch.patchSetClearFunction(global, global.Zone, [ + ['setTimeout', 'clearTimeout', false, false], + ['setInterval', 'clearInterval', true, false], + ['setImmediate', 'clearImmediate', false, false], + ['requestAnimationFrame', 'cancelAnimationFrame', false, true], + ['mozRequestAnimationFrame', 'mozCancelAnimationFrame', false, true], + ['webkitRequestAnimationFrame', 'webkitCancelAnimationFrame', false, true] + ]); + fnPatch.patchFunction(global, [ + 'alert', + 'prompt' + ]); + eventTargetPatch.apply(); + propertyDescriptorPatch.apply(); + promisePatch.apply(); + mutationObserverPatch.patchClass('MutationObserver'); + mutationObserverPatch.patchClass('WebKitMutationObserver'); + definePropertyPatch.apply(); + registerElementPatch.apply(); + geolocationPatch.apply(); + fileReaderPatch.apply(); + } + exports.apply = apply; + + /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()))) + +/***/ }, +/* 11 */ +/***/ function(module, exports, __webpack_require__) { + + /* WEBPACK VAR INJECTION */(function(global) {var wtf = __webpack_require__(12); + function patchSetClearFunction(window, Zone, fnNames) { + function patchMacroTaskMethod(setName, clearName, repeating, isRaf) { + var setNative = window[setName]; + var clearNative = window[clearName]; + var ids = {}; + if (setNative) { + var wtfSetEventFn = wtf.createEvent('Zone#' + setName + '(uint32 zone, uint32 id, uint32 delay)'); + var wtfClearEventFn = wtf.createEvent('Zone#' + clearName + '(uint32 zone, uint32 id)'); + var wtfCallbackFn = wtf.createScope('Zone#cb:' + setName + '(uint32 zone, uint32 id, uint32 delay)'); + // Forward all calls from the window through the zone. + window[setName] = function () { + return global.zone[setName].apply(global.zone, arguments); + }; + window[clearName] = function () { + return global.zone[clearName].apply(global.zone, arguments); + }; + // Set up zone processing for the set function. + Zone.prototype[setName] = function (fn, delay) { + // We need to save `fn` in var different then argument. This is because + // in IE9 `argument[0]` and `fn` have same identity, and assigning to + // `argument[0]` changes `fn`. + var callbackFn = fn; + if (typeof callbackFn !== 'function') { + // force the error by calling the method with wrong args + setNative.apply(window, arguments); + } + var zone = this; + var setId = null; + // wrap the callback function into the zone. + arguments[0] = function () { + var callbackZone = zone.isRootZone() || isRaf ? zone : zone.fork(); + var callbackThis = this; + var callbackArgs = arguments; + return wtf.leaveScope(wtfCallbackFn(callbackZone.$id, setId, delay), callbackZone.run(function () { + if (!repeating) { + delete ids[setId]; + callbackZone.removeTask(callbackFn); + } + return callbackFn.apply(callbackThis, callbackArgs); + })); + }; + if (repeating) { + zone.addRepeatingTask(callbackFn); + } + else { + zone.addTask(callbackFn); + } + setId = setNative.apply(window, arguments); + ids[setId] = callbackFn; + wtfSetEventFn(zone.$id, setId, delay); + return setId; + }; + Zone.prototype[setName + 'Unpatched'] = function () { + return setNative.apply(window, arguments); + }; + // Set up zone processing for the clear function. + Zone.prototype[clearName] = function (id) { + wtfClearEventFn(this.$id, id); + if (ids.hasOwnProperty(id)) { + var callbackFn = ids[id]; + delete ids[id]; + if (repeating) { + this.removeRepeatingTask(callbackFn); + } + else { + this.removeTask(callbackFn); + } + } + return clearNative.apply(window, arguments); + }; + Zone.prototype[clearName + 'Unpatched'] = function () { + return clearNative.apply(window, arguments); + }; + } + } + fnNames.forEach(function (args) { + patchMacroTaskMethod.apply(null, args); + }); + } + exports.patchSetClearFunction = patchSetClearFunction; + ; + function patchFunction(obj, fnNames) { + fnNames.forEach(function (name) { + var delegate = obj[name]; + global.zone[name] = function () { + return delegate.apply(obj, arguments); + }; + obj[name] = function () { + return global.zone[name].apply(this, arguments); + }; + }); + } + exports.patchFunction = patchFunction; + ; + + /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()))) + +/***/ }, +/* 12 */ +/***/ function(module, exports) { + + /* WEBPACK VAR INJECTION */(function(global) {// Detect and setup WTF. + var wtfTrace = null; + var wtfEvents = null; + var wtfEnabled = (function () { + var wtf = global['wtf']; + if (wtf) { + wtfTrace = wtf['trace']; + if (wtfTrace) { + wtfEvents = wtfTrace['events']; + return true; + } + } + return false; + })(); + function noop() { + } + exports.enabled = wtfEnabled; + exports.createScope = wtfEnabled ? function (signature, flags) { + return wtfEvents.createScope(signature, flags); + } : function (s, f) { + return noop; + }; + exports.createEvent = wtfEnabled ? function (signature, flags) { + return wtfEvents.createInstance(signature, flags); + } : function (s, f) { + return noop; + }; + exports.leaveScope = wtfEnabled ? function (scope, returnValue) { + wtfTrace.leaveScope(scope, returnValue); + return returnValue; + } : function (s, v) { + return v; + }; + exports.beginTimeRange = wtfEnabled ? function (rangeType, action) { + return wtfTrace.beginTimeRange(rangeType, action); + } : function (t, a) { + return null; + }; + exports.endTimeRange = wtfEnabled ? function (range) { + wtfTrace.endTimeRange(range); + } : function (r) { + }; + + /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()))) + +/***/ }, +/* 13 */ +/***/ function(module, exports, __webpack_require__) { + + /* WEBPACK VAR INJECTION */(function(global) {var keys = __webpack_require__(7); + var originalInstanceKey = keys.create('originalInstance'); + var creationZoneKey = keys.create('creationZone'); + var isActiveKey = keys.create('isActive'); + // wrap some native API on `window` + function patchClass(className) { + var OriginalClass = global[className]; + if (!OriginalClass) + return; + global[className] = function (fn) { + this[originalInstanceKey] = new OriginalClass(global.zone.bind(fn, true)); + // Remember where the class was instantiate to execute the enqueueTask and dequeueTask hooks + this[creationZoneKey] = global.zone; + }; + var instance = new OriginalClass(function () { }); + global[className].prototype.disconnect = function () { + var result = this[originalInstanceKey].disconnect.apply(this[originalInstanceKey], arguments); + if (this[isActiveKey]) { + this[creationZoneKey].dequeueTask(); + this[isActiveKey] = false; + } + return result; + }; + global[className].prototype.observe = function () { + if (!this[isActiveKey]) { + this[creationZoneKey].enqueueTask(); + this[isActiveKey] = true; + } + return this[originalInstanceKey].observe.apply(this[originalInstanceKey], arguments); + }; + var prop; + for (prop in instance) { + (function (prop) { + if (typeof global[className].prototype !== 'undefined') { + return; + } + if (typeof instance[prop] === 'function') { + global[className].prototype[prop] = function () { + return this[originalInstanceKey][prop].apply(this[originalInstanceKey], arguments); + }; + } + else { + Object.defineProperty(global[className].prototype, prop, { + set: function (fn) { + if (typeof fn === 'function') { + this[originalInstanceKey][prop] = global.zone.bind(fn); + } + else { + this[originalInstanceKey][prop] = fn; + } + }, + get: function () { + return this[originalInstanceKey][prop]; + } + }); + } + }(prop)); + } + } + exports.patchClass = patchClass; + ; + + /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()))) + +/***/ }, +/* 14 */ +/***/ function(module, exports, __webpack_require__) { + + var keys = __webpack_require__(7); + // might need similar for object.freeze + // i regret nothing + var _defineProperty = Object.defineProperty; + var _getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; + var _create = Object.create; + var unconfigurablesKey = keys.create('unconfigurables'); + function apply() { + Object.defineProperty = function (obj, prop, desc) { + if (isUnconfigurable(obj, prop)) { + throw new TypeError('Cannot assign to read only property \'' + prop + '\' of ' + obj); + } + if (prop !== 'prototype') { + desc = rewriteDescriptor(obj, prop, desc); + } + return _defineProperty(obj, prop, desc); + }; + Object.defineProperties = function (obj, props) { + Object.keys(props).forEach(function (prop) { + Object.defineProperty(obj, prop, props[prop]); + }); + return obj; + }; + Object.create = function (obj, proto) { + if (typeof proto === 'object') { + Object.keys(proto).forEach(function (prop) { + proto[prop] = rewriteDescriptor(obj, prop, proto[prop]); + }); + } + return _create(obj, proto); + }; + Object.getOwnPropertyDescriptor = function (obj, prop) { + var desc = _getOwnPropertyDescriptor(obj, prop); + if (isUnconfigurable(obj, prop)) { + desc.configurable = false; + } + return desc; + }; + } + exports.apply = apply; + ; + function _redefineProperty(obj, prop, desc) { + desc = rewriteDescriptor(obj, prop, desc); + return _defineProperty(obj, prop, desc); + } + exports._redefineProperty = _redefineProperty; + ; + function isUnconfigurable(obj, prop) { + return obj && obj[unconfigurablesKey] && obj[unconfigurablesKey][prop]; + } + function rewriteDescriptor(obj, prop, desc) { + desc.configurable = true; + if (!desc.configurable) { + if (!obj[unconfigurablesKey]) { + _defineProperty(obj, unconfigurablesKey, { writable: true, value: {} }); + } + obj[unconfigurablesKey][prop] = true; + } + return desc; + } + + +/***/ }, +/* 15 */ +/***/ function(module, exports, __webpack_require__) { + + /* WEBPACK VAR INJECTION */(function(global) {var define_property_1 = __webpack_require__(14); + var utils = __webpack_require__(9); + function apply() { + if (utils.isWebWorker() || utils.isNode() || !('registerElement' in global.document)) { + return; + } + var _registerElement = document.registerElement; + var callbacks = [ + 'createdCallback', + 'attachedCallback', + 'detachedCallback', + 'attributeChangedCallback' + ]; + document.registerElement = function (name, opts) { + if (opts && opts.prototype) { + callbacks.forEach(function (callback) { + if (opts.prototype.hasOwnProperty(callback)) { + var descriptor = Object.getOwnPropertyDescriptor(opts.prototype, callback); + if (descriptor && descriptor.value) { + descriptor.value = global.zone.bind(descriptor.value); + define_property_1._redefineProperty(opts.prototype, callback, descriptor); + } + else { + opts.prototype[callback] = global.zone.bind(opts.prototype[callback]); + } + } + else if (opts.prototype[callback]) { + opts.prototype[callback] = global.zone.bind(opts.prototype[callback]); + } + }); + } + return _registerElement.apply(document, [name, opts]); + }; + } + exports.apply = apply; + + /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()))) + +/***/ }, +/* 16 */ +/***/ function(module, exports, __webpack_require__) { + + /* WEBPACK VAR INJECTION */(function(global) {'use strict'; + var utils = __webpack_require__(9); + function apply() { + // patched properties depend on addEventListener, so this needs to come first + if (global.EventTarget) { + utils.patchEventTargetMethods(global.EventTarget.prototype); + } + else { + var apis = [ + 'ApplicationCache', + 'EventSource', + 'FileReader', + 'InputMethodContext', + 'MediaController', + 'MessagePort', + 'Node', + 'Performance', + 'SVGElementInstance', + 'SharedWorker', + 'TextTrack', + 'TextTrackCue', + 'TextTrackList', + 'WebKitNamedFlow', + 'Worker', + 'WorkerGlobalScope', + 'XMLHttpRequest', + 'XMLHttpRequestEventTarget', + 'XMLHttpRequestUpload' + ]; + apis.forEach(function (api) { + var proto = global[api] && global[api].prototype; + // Some browsers e.g. Android 4.3's don't actually implement + // the EventTarget methods for all of these e.g. FileReader. + // In this case, there is nothing to patch. + if (proto && proto.addEventListener) { + utils.patchEventTargetMethods(proto); + } + }); + // Patch the methods on `window` instead of `Window.prototype` + // `Window` is not accessible on Android 4.3 + if (typeof (window) !== 'undefined') { + utils.patchEventTargetMethods(window); + } + } + } + exports.apply = apply; + + /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()))) + +/***/ }, +/* 17 */ +/***/ function(module, exports, __webpack_require__) { + + /* WEBPACK VAR INJECTION */(function(global) {var webSocketPatch = __webpack_require__(18); + var utils = __webpack_require__(9); + var keys = __webpack_require__(7); + var eventNames = 'copy cut paste abort blur focus canplay canplaythrough change click contextmenu dblclick drag dragend dragenter dragleave dragover dragstart drop durationchange emptied ended input invalid keydown keypress keyup load loadeddata loadedmetadata loadstart message mousedown mouseenter mouseleave mousemove mouseout mouseover mouseup pause play playing progress ratechange reset scroll seeked seeking select show stalled submit suspend timeupdate volumechange waiting mozfullscreenchange mozfullscreenerror mozpointerlockchange mozpointerlockerror error webglcontextrestored webglcontextlost webglcontextcreationerror'.split(' '); + function apply() { + if (utils.isNode()) { + return; + } + var supportsWebSocket = typeof WebSocket !== 'undefined'; + if (canPatchViaPropertyDescriptor()) { + // for browsers that we can patch the descriptor: Chrome & Firefox + if (!utils.isWebWorker()) { + var onEventNames = eventNames.map(function (property) { + return 'on' + property; + }); + utils.patchProperties(HTMLElement.prototype, onEventNames); + } + utils.patchProperties(XMLHttpRequest.prototype); + if (supportsWebSocket) { + utils.patchProperties(WebSocket.prototype); + } + } + else { + // Safari, Android browsers (Jelly Bean) + if (!utils.isWebWorker()) { + patchViaCapturingAllTheEvents(); + } + utils.patchClass('XMLHttpRequest'); + if (supportsWebSocket) { + webSocketPatch.apply(); + } + } + } + exports.apply = apply; + function canPatchViaPropertyDescriptor() { + if (!utils.isWebWorker() && !Object.getOwnPropertyDescriptor(HTMLElement.prototype, 'onclick') + && typeof Element !== 'undefined') { + // WebKit https://bugs.webkit.org/show_bug.cgi?id=134364 + // IDL interface attributes are not configurable + var desc = Object.getOwnPropertyDescriptor(Element.prototype, 'onclick'); + if (desc && !desc.configurable) + return false; + } + Object.defineProperty(XMLHttpRequest.prototype, 'onreadystatechange', { + get: function () { + return true; + } + }); + var req = new XMLHttpRequest(); + var result = !!req.onreadystatechange; + Object.defineProperty(XMLHttpRequest.prototype, 'onreadystatechange', {}); + return result; + } + ; + var unboundKey = keys.create('unbound'); + // Whenever any event fires, we check the event target and all parents + // for `onwhatever` properties and replace them with zone-bound functions + // - Chrome (for now) + function patchViaCapturingAllTheEvents() { + eventNames.forEach(function (property) { + var onproperty = 'on' + property; + document.addEventListener(property, function (event) { + var elt = event.target, bound; + while (elt) { + if (elt[onproperty] && !elt[onproperty][unboundKey]) { + bound = global.zone.bind(elt[onproperty]); + bound[unboundKey] = elt[onproperty]; + elt[onproperty] = bound; + } + elt = elt.parentElement; + } + }, true); + }); + } + ; + + /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()))) + +/***/ }, +/* 18 */ +/***/ function(module, exports, __webpack_require__) { + + /* WEBPACK VAR INJECTION */(function(global) {var utils = __webpack_require__(9); + // we have to patch the instance since the proto is non-configurable + function apply() { + var WS = global.WebSocket; + // On Safari window.EventTarget doesn't exist so need to patch WS add/removeEventListener + // On older Chrome, no need since EventTarget was already patched + if (!global.EventTarget) { + utils.patchEventTargetMethods(WS.prototype); + } + global.WebSocket = function (a, b) { + var socket = arguments.length > 1 ? new WS(a, b) : new WS(a); + var proxySocket; + // Safari 7.0 has non-configurable own 'onmessage' and friends properties on the socket instance + var onmessageDesc = Object.getOwnPropertyDescriptor(socket, 'onmessage'); + if (onmessageDesc && onmessageDesc.configurable === false) { + proxySocket = Object.create(socket); + ['addEventListener', 'removeEventListener', 'send', 'close'].forEach(function (propName) { + proxySocket[propName] = function () { + return socket[propName].apply(socket, arguments); + }; + }); + } + else { + // we can patch the real socket + proxySocket = socket; + } + utils.patchProperties(proxySocket, ['onclose', 'onerror', 'onmessage', 'onopen']); + return proxySocket; + }; + } + exports.apply = apply; + + /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()))) + +/***/ }, +/* 19 */ +/***/ function(module, exports, __webpack_require__) { + + /* WEBPACK VAR INJECTION */(function(global) {var utils = __webpack_require__(9); + function apply() { + if (global.navigator && global.navigator.geolocation) { + utils.patchPrototype(global.navigator.geolocation, [ + 'getCurrentPosition', + 'watchPosition' + ]); + } + } + exports.apply = apply; + + /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()))) + +/***/ }, +/* 20 */ +/***/ function(module, exports, __webpack_require__) { + + var utils = __webpack_require__(9); + function apply() { + utils.patchClass('FileReader'); + } + exports.apply = apply; + + +/***/ } +/******/ ]); /*! ***************************************************************************** Copyright (C) Microsoft. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use @@ -7473,7 +7485,61 @@ module.exports = _dereq_(17); (["1"], [], function($__System) { !function(){var t=$__System;if("undefined"!=typeof window&&"undefined"!=typeof document&&window.location)var s=location.protocol+"//"+location.hostname+(location.port?":"+location.port:"");t.set("@@cjs-helpers",t.newModule({getPathVars:function(t){var n,o=t.lastIndexOf("!");n=-1!=o?t.substr(0,o):t;var e=n.split("/");return e.pop(),e=e.join("/"),"file:///"==n.substr(0,8)?(n=n.substr(7),e=e.substr(7),isWindows&&(n=n.substr(1),e=e.substr(1))):s&&n.substr(0,s.length)===s&&(n=n.substr(s.length),e=e.substr(s.length)),{filename:n,dirname:e}}}))}(); -$__System.register('2', ['3', '4', '5', '6', '7'], function (_export) { +$__System.registerDynamic("2", [], true, function($__require, exports, module) { + ; + var global = this, + __define = global.define; + global.define = undefined; + ; + (function() { + var parents = function(node, ps) { + if (node.parentNode === null) { + return ps; + } + return parents(node.parentNode, ps.concat([node])); + }; + var style = function(node, prop) { + return getComputedStyle(node, null).getPropertyValue(prop); + }; + var overflow = function(node) { + return style(node, "overflow") + style(node, "overflow-y") + style(node, "overflow-x"); + }; + var scroll = function(node) { + return (/(auto|scroll)/).test(overflow(node)); + }; + var scrollParent = function(node) { + if (!(node instanceof HTMLElement)) { + return; + } + var ps = parents(node.parentNode, []); + for (var i = 0; i < ps.length; i += 1) { + if (scroll(ps[i])) { + return ps[i]; + } + } + return window; + }; + if (typeof module === "object" && module !== null) { + module.exports = scrollParent; + } else { + window.Scrollparent = scrollParent; + } + })(); + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("3", ["2"], true, function($__require, exports, module) { + ; + var global = this, + __define = global.define; + global.define = undefined; + module.exports = $__require('2'); + global.define = __define; + return module.exports; +}); + +$__System.register('4', ['5', '6', '7', '8', '9'], function (_export) { var RedocComponent, BaseComponent, _get, _inherits, _createClass, _classCallCheck, ApiInfo; return { @@ -7521,8 +7587,8 @@ $__System.register('2', ['3', '4', '5', '6', '7'], function (_export) { } }; }); -$__System.register('8', ['3', '4', '5', '6', '7'], function (_export) { - var RedocComponent, BaseComponent, _get, _inherits, _createClass, _classCallCheck, ApiInfo; +$__System.register('a', ['5', '6', '7', '8', '9'], function (_export) { + var RedocComponent, BaseComponent, _get, _inherits, _createClass, _classCallCheck, ApiLogo; return { setters: [function (_5) { @@ -7540,16 +7606,16 @@ $__System.register('8', ['3', '4', '5', '6', '7'], function (_export) { execute: function () { 'use strict'; - ApiInfo = (function (_BaseComponent) { - _inherits(ApiInfo, _BaseComponent); + ApiLogo = (function (_BaseComponent) { + _inherits(ApiLogo, _BaseComponent); - function ApiInfo(schemaMgr) { - _classCallCheck(this, _ApiInfo); + function ApiLogo(schemaMgr) { + _classCallCheck(this, _ApiLogo); - _get(Object.getPrototypeOf(_ApiInfo.prototype), 'constructor', this).call(this, schemaMgr); + _get(Object.getPrototypeOf(_ApiLogo.prototype), 'constructor', this).call(this, schemaMgr); } - _createClass(ApiInfo, [{ + _createClass(ApiLogo, [{ key: 'prepareModel', value: function prepareModel() { this.data = {}; @@ -7560,21 +7626,21 @@ $__System.register('8', ['3', '4', '5', '6', '7'], function (_export) { } }]); - var _ApiInfo = ApiInfo; - ApiInfo = RedocComponent({ + var _ApiLogo = ApiLogo; + ApiLogo = RedocComponent({ selector: 'api-logo', styles: ['\n img{max-height:150px;width:auto;display:inline-block;max-width:100%;padding:0 5px;box-sizing:border-box}\n '], template: '\n \n ' - })(ApiInfo) || ApiInfo; - return ApiInfo; + })(ApiLogo) || ApiLogo; + return ApiLogo; })(BaseComponent); - _export('default', ApiInfo); + _export('default', ApiLogo); } }; }); -$__System.register('9', ['3', '4', '5', '6', '7', 'a'], function (_export) { - var RedocComponent, BaseComponent, _get, _inherits, _createClass, _classCallCheck, JsonSchema, ParamsList; +$__System.register('b', ['5', '6', '7', '8', '9', 'c', 'd'], function (_export) { + var RedocComponent, BaseComponent, _get, _inherits, _createClass, _classCallCheck, JsonSchema, JsonSchemaLazy, ParamsList; return { setters: [function (_5) { @@ -7588,8 +7654,10 @@ $__System.register('9', ['3', '4', '5', '6', '7', 'a'], function (_export) { _createClass = _3['default']; }, function (_4) { _classCallCheck = _4['default']; - }, function (_a) { - JsonSchema = _a['default']; + }, function (_c) { + JsonSchema = _c['default']; + }, function (_d) { + JsonSchemaLazy = _d['default']; }], execute: function () { 'use strict'; @@ -7617,6 +7685,11 @@ $__System.register('9', ['3', '4', '5', '6', '7', 'a'], function (_export) { this.data.bodyParam = bodyParam; } + params = params.map(function (paramData) { + var propPointer = paramData._pointer; + return JsonSchema.injectPropData(paramData, paramData.name, propPointer); + }); + this.data.noParams = !(params.length || this.data.bodyParam); this.data.params = params; } @@ -7640,9 +7713,9 @@ $__System.register('9', ['3', '4', '5', '6', '7', 'a'], function (_export) { var _ParamsList = ParamsList; ParamsList = RedocComponent({ selector: 'params-list', - template: '\n

Parameters

\n
\n
\n
\n {{param.name}} \n
\n
\n
\n {{param.type}}\n Required\n
\n
\n
\n
\n
\n\n
\n

Request Body

\n\n
\n
\n \n \n
\n
\n ', - styles: ['\n .param-list-header{border-bottom:1px solid #999;font-size:18px;padding:0.2em 0;margin:0.5em 0;color:#253137;font-weight:normal}.param-schema{padding-left:12.5px;border-left:1px solid #7D97CE}.param-wrap{position:relative}.param-schema:before{content:"";position:absolute;left:13.5px;top:20px;bottom:0;border-left:1px solid #7D97CE}.param-name{font-size:14px;padding:10px 25px 10px 0;font-weight:bold;box-sizing:border-box;line-height:20px;border-left:1px solid #7D97CE;white-space:nowrap;position:relative}.param-info{width:100%;padding:10px 0;box-sizing:border-box;border-bottom:1px solid #ccc}.param{display:flex}.param-required{color:red;font-weight:bold;font-size:12px;line-height:20px;vertical-align:middle}.param-type{color:#999;font-size:12px;line-height:20px;vertical-align:middle;font-weight:bold}.param-type.array:before{content:"Array of ";color:#999}.param-type.string{color:rgba(0,80,0,0.7)}.param-type.integer,.param-type.number{color:rgba(74,139,179,0.8)}.param-type.object{color:rgba(0,50,159,0.7)}.param-type.boolean{color:firebrick}.param-type.with-hint{background-color:rgba(0,50,159,0.1);padding:0.2em 0;font-size:0.85em;border-radius:3px;cursor:help}.param-type.with-hint:before,.param-type.with-hint:after{content:"\\00a0"}.param-type-trivial{margin:10px 10px 0;display:inline-block}.param-name>span:before{content:"";display:inline-block;width:7px;height:7px;background-color:#7D97CE;margin:0 10px;vertical-align:middle}.param-name>span:after{content:"";position:absolute;border-top:1px solid #7D97CE;width:10px;left:0;top:20px}.param-wrap:first-of-type>.param>.param-name:before{content:"";display:block;position:absolute;left:-1px;top:0;border-left:2px solid #fff;height:20px}.param-wrap:last-of-type>.param>.param-name{position:static}.param-wrap:last-of-type>.param>.param-name:after{content:"";display:block;position:absolute;left:-1px;border-left:2px solid #fff;top:21px;background-color:white;bottom:0}.param-wrap:last-of-type>.param-schema{border-left-color:transparent}.param-schema .param-wrap:first-of-type .param-name:before{display:none !important}.params-wrap{display:table}.param-name{display:table-cell;vertical-align:top}.param-info{display:table-cell}.param{display:table-row}.param:first-of-type .param-name:before{content:"";display:block;position:absolute;left:-1px;top:0;border-left:2px solid #fff;height:20px}.param:last-of-type .param-name:after{content:"";display:block;position:absolute;left:-1px;border-left:2px solid #fff;top:21px;background-color:white;bottom:0}\n '], - directives: [JsonSchema] + template: '\n

Parameters

\n
\n
\n
\n {{param.name}} \n
\n
\n
\n {{param._displayType}} {{param._displayFormat}}\n Required\n
\n {{enumItem.val | json}} \n
\n
\n
\n
\n
\n
\n\n
\n

Request Body

\n\n
\n
\n \n \n
\n
\n ', + styles: ['\n .param-list-header{border-bottom:1px solid #999;font-size:18px;padding:0.2em 0;margin:0.5em 0;color:#253137;font-weight:normal}.param-schema{padding-left:12.5px;border-left:1px solid #7D97CE}.param-wrap{position:relative}.param-schema:before{content:"";position:absolute;left:13.5px;top:20px;bottom:0;border-left:1px solid #7D97CE}.param-name{flex-grow:0;-ms-flex-grow:0;display:inline-block;font-size:14px;padding:10px 0 10px 0;font-weight:bold;box-sizing:border-box;line-height:20px;border-left:1px solid #7D97CE;white-space:nowrap;position:relative}.param-name-content{padding-right:25px;display:inline-block}.param-info{flex-grow:1;-ms-flex-grow:1;padding:10px 0;box-sizing:border-box;border-bottom:1px solid #ccc;display:inline-block}.param{display:flex;display:-ms-flexbox}.param-required{color:red;font-weight:bold;font-size:12px;line-height:20px;vertical-align:middle}.param-type{color:#999;font-size:12px;line-height:20px;vertical-align:middle;font-weight:bold}.param-type.array:before{content:"Array of ";color:#999}.param-type.string,.enum-value.string{color:rgba(0,80,0,0.7)}.param-type.integer,.param-type.number,.enum-value.number{color:rgba(74,139,179,0.8)}.param-type.object{color:rgba(0,50,159,0.7)}.param-type.boolean,.enum-value.boolean{color:firebrick}.param-type.with-hint{background-color:rgba(0,50,159,0.1);padding:0.2em 0;font-size:0.85em;border-radius:3px;cursor:help}.param-type.with-hint:before,.param-type.with-hint:after{content:"\\00a0"}.param-type-trivial{margin:10px 10px 0;display:inline-block}.param-name>span:before{content:"";display:inline-block;width:7px;height:7px;background-color:#7D97CE;margin:0 10px;vertical-align:middle}.param-name>span:after{content:"";position:absolute;border-top:1px solid #7D97CE;width:10px;left:0;top:20px}.param-wrap:first-of-type>.param>.param-name:before{content:"";display:block;position:absolute;left:-1px;top:0;border-left:2px solid #fff;height:20px}.param-wrap:last-of-type>.param>.param-name{position:static}.param-wrap:last-of-type>.param>.param-name:after{content:"";display:block;position:absolute;left:-1px;border-left:2px solid #fff;top:21px;background-color:white;bottom:0}.param-wrap:last-of-type>.param-schema{border-left-color:transparent}.param-schema .param-wrap:first-of-type .param-name:before{display:none !important}.param-enum{color:#666}.param-enum:before{content:"Values: {"}.param-enum:after{content:"}"}.param-enum>.enum-value:after{content:", "}.param-enum>.enum-value:last-of-type:after{content:none}.params-wrap{display:table}.param-name{display:table-cell;vertical-align:top}.param-info{display:table-cell}.param{display:table-row}.param:last-of-type>.param-name{border-left:0}.param:last-of-type>.param-name:after{content:"";display:block;position:absolute;left:0;border-left:1px solid #7D97CE;height:21px;background-color:white;top:0}.param:first-of-type .param-name:after{content:"";display:block;position:absolute;left:-1px;border-left:2px solid #fff;height:20px;background-color:white;top:0}\n '], + directives: [JsonSchema, JsonSchemaLazy] })(ParamsList) || ParamsList; return ParamsList; })(BaseComponent); @@ -7651,13 +7724,14 @@ $__System.register('9', ['3', '4', '5', '6', '7', 'a'], function (_export) { } }; }); -$__System.register('b', ['3', '4', '5', '6', '7', '10', '11', 'c', 'd', 'e', 'f'], function (_export) { - var RedocComponent, BaseComponent, _get, _inherits, _createClass, _classCallCheck, redocEvents, ViewChildren, QueryList, ChangeDetectorRef, ChangeDetectionStrategy, JsonPointer, Tabs, Tab, SchemaSample, PrismPipe, RequestSamples; +$__System.register('e', ['5', '6', '7', '8', '9', '10', '11', '12', '13', '14', 'f'], function (_export) { + var RedocComponent, BaseComponent, SchemaManager, _get, _inherits, _createClass, _classCallCheck, Tabs, Tab, SchemaSample, PrismPipe, redocEvents, ViewChildren, QueryList, ChangeDetectorRef, ChangeDetectionStrategy, JsonPointer, RequestSamples; return { - setters: [function (_6) { - RedocComponent = _6.RedocComponent; - BaseComponent = _6.BaseComponent; + setters: [function (_7) { + RedocComponent = _7.RedocComponent; + BaseComponent = _7.BaseComponent; + SchemaManager = _7.SchemaManager; }, function (_2) { _get = _2['default']; }, function (_3) { @@ -7667,21 +7741,21 @@ $__System.register('b', ['3', '4', '5', '6', '7', '10', '11', 'c', 'd', 'e', 'f' }, function (_5) { _classCallCheck = _5['default']; }, function (_8) { - redocEvents = _8.redocEvents; - }, function (_7) { - ViewChildren = _7.ViewChildren; - QueryList = _7.QueryList; - ChangeDetectorRef = _7.ChangeDetectorRef; - ChangeDetectionStrategy = _7.ChangeDetectionStrategy; - }, function (_c) { - JsonPointer = _c['default']; - }, function (_d) { - Tabs = _d.Tabs; - Tab = _d.Tab; - }, function (_e) { - SchemaSample = _e['default']; + Tabs = _8.Tabs; + Tab = _8.Tab; + }, function (_9) { + SchemaSample = _9['default']; + }, function (_10) { + PrismPipe = _10.PrismPipe; + }, function (_11) { + redocEvents = _11.redocEvents; + }, function (_6) { + ViewChildren = _6.ViewChildren; + QueryList = _6.QueryList; + ChangeDetectorRef = _6.ChangeDetectorRef; + ChangeDetectionStrategy = _6.ChangeDetectionStrategy; }, function (_f) { - PrismPipe = _f.PrismPipe; + JsonPointer = _f['default']; }], execute: function () { 'use strict'; @@ -7728,6 +7802,7 @@ $__System.register('b', ['3', '4', '5', '6', '7', '10', '11', 'c', 'd', 'e', 'f' }]); var _RequestSamples = RequestSamples; + RequestSamples = Reflect.metadata('parameters', [[SchemaManager], [new ViewChildren(Tabs), QueryList], [ChangeDetectorRef]])(RequestSamples) || RequestSamples; RequestSamples = RedocComponent({ selector: 'request-samples', template: '\n
Request samples
\n \n \n \n \n \n \n
\n      
\n
\n ', @@ -7741,13 +7816,11 @@ $__System.register('b', ['3', '4', '5', '6', '7', '10', '11', 'c', 'd', 'e', 'f' })(BaseComponent); _export('default', RequestSamples); - - RequestSamples.parameters = RequestSamples.parameters.concat([[new ViewChildren(Tabs), QueryList], [ChangeDetectorRef]]); } }; }); -$__System.register('12', ['3', '4', '5', '6', '7', '9', '13', '14', 'c', 'e', 'b'], function (_export) { - var RedocComponent, BaseComponent, _get, _inherits, _createClass, _classCallCheck, ParamsList, ResponsesList, ResponsesSamples, JsonPointer, SchemaSample, RequestSamples, Method; +$__System.register('15', ['5', '6', '7', '8', '9', '11', '16', '17', 'f', 'b', 'e'], function (_export) { + var RedocComponent, BaseComponent, _get, _inherits, _createClass, _classCallCheck, SchemaSample, ResponsesList, ResponsesSamples, JsonPointer, ParamsList, RequestSamples, Method; return { setters: [function (_5) { @@ -7761,18 +7834,18 @@ $__System.register('12', ['3', '4', '5', '6', '7', '9', '13', '14', 'c', 'e', 'b _createClass = _3['default']; }, function (_4) { _classCallCheck = _4['default']; - }, function (_6) { - ParamsList = _6['default']; - }, function (_7) { - ResponsesList = _7['default']; }, function (_8) { - ResponsesSamples = _8['default']; - }, function (_c) { - JsonPointer = _c.JsonPointer; - }, function (_e) { - SchemaSample = _e['default']; + SchemaSample = _8['default']; + }, function (_6) { + ResponsesList = _6['default']; + }, function (_7) { + ResponsesSamples = _7['default']; + }, function (_f) { + JsonPointer = _f.JsonPointer; }, function (_b) { - RequestSamples = _b['default']; + ParamsList = _b['default']; + }, function (_e) { + RequestSamples = _e['default']; }], execute: function () { 'use strict'; @@ -7796,6 +7869,11 @@ $__System.register('12', ['3', '4', '5', '6', '7', '9', '13', '14', 'c', 'e', 'b this.data.methodInfo = this.componentSchema; this.data.methodInfo.tags = this.filterMainTags(this.data.methodInfo.tags); this.data.bodyParam = this.findBodyParam(); + if (this.componentSchema.operationId) { + this.data.methodAnchor = 'operation/' + this.componentSchema.operationId; + } else { + this.data.methodAnchor = 'tag/' + this.tag + this.pointer; + } } }, { key: 'filterMainTags', @@ -7820,7 +7898,7 @@ $__System.register('12', ['3', '4', '5', '6', '7', '9', '13', '14', 'c', 'e', 'b var _Method = Method; Method = RedocComponent({ selector: 'method', - template: '\n
\n
\n

\n {{data.methodInfo.summary}}\n

\n

\n {{data.httpMethod}}\n {{data.apiUrl}} {{data.path}}\n

\n \n

\n

\n \n \n
\n
\n
\n \n \n
\n
\n \n
\n
\n
\n ', + template: '\n
\n
\n

\n {{data.methodInfo.summary}}\n

\n

\n {{data.httpMethod}}\n {{data.apiUrl}} {{data.path}}\n

\n \n

\n

\n \n \n
\n
\n
\n \n \n
\n
\n \n
\n
\n
\n ', styles: ['\n .share-link{cursor:pointer;margin-left:-15px;padding:0;line-height:1;width:15px;display:inline-block}.share-link:before{content:"";width:15px;height:15px;background-size:contain;background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgeD0iMCIgeT0iMCIgd2lkdGg9IjUxMiIgaGVpZ2h0PSI1MTIiIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA1MTIgNTEyIiB4bWw6c3BhY2U9InByZXNlcnZlIj48cGF0aCBmaWxsPSIjMDEwMTAxIiBkPSJNNDU5LjcgMjMzLjRsLTkwLjUgOTAuNWMtNTAgNTAtMTMxIDUwLTE4MSAwIC03LjktNy44LTE0LTE2LjctMTkuNC0yNS44bDQyLjEtNDIuMWMyLTIgNC41LTMuMiA2LjgtNC41IDIuOSA5LjkgOCAxOS4zIDE1LjggMjcuMiAyNSAyNSA2NS42IDI0LjkgOTAuNSAwbDkwLjUtOTAuNWMyNS0yNSAyNS02NS42IDAtOTAuNSAtMjQuOS0yNS02NS41LTI1LTkwLjUgMGwtMzIuMiAzMi4yYy0yNi4xLTEwLjItNTQuMi0xMi45LTgxLjYtOC45bDY4LjYtNjguNmM1MC01MCAxMzEtNTAgMTgxIDBDNTA5LjYgMTAyLjMgNTA5LjYgMTgzLjQgNDU5LjcgMjMzLjR6TTIyMC4zIDM4Mi4ybC0zMi4yIDMyLjJjLTI1IDI0LjktNjUuNiAyNC45LTkwLjUgMCAtMjUtMjUtMjUtNjUuNiAwLTkwLjVsOTAuNS05MC41YzI1LTI1IDY1LjUtMjUgOTAuNSAwIDcuOCA3LjggMTIuOSAxNy4yIDE1LjggMjcuMSAyLjQtMS40IDQuOC0yLjUgNi44LTQuNWw0Mi4xLTQyYy01LjQtOS4yLTExLjYtMTgtMTkuNC0yNS44IC01MC01MC0xMzEtNTAtMTgxIDBsLTkwLjUgOTAuNWMtNTAgNTAtNTAgMTMxIDAgMTgxIDUwIDUwIDEzMSA1MCAxODEgMGw2OC42LTY4LjZDMjc0LjYgMzk1LjEgMjQ2LjQgMzkyLjMgMjIwLjMgMzgyLjJ6Ii8+PC9zdmc+Cg==");opacity:0.5;visibility:hidden;display:inline-block;vertical-align:middle}.sharable-header:hover .share-link:before,.share-link:hover:before{visibility:visible}:host{padding-bottom:100px;display:block;border-bottom:2px solid rgba(127,127,127,0.25)}responses-list,params-list{display:block}.method-header{font-size:25px;font-weight:200;color:#253137}.method-endpoint{margin:0;font-weight:200;font-size:0}.method-endpoint>span{padding-top:3px;padding-bottom:3px;vertical-align:middle;font-size:14px}.api-url{color:#999;margin-left:10px}.path{font-family:monospace;font-weight:bold;color:#00329F}.method-tags{margin-top:20px}.method-tags a{font-size:16px;color:#999;display:inline-block;padding:0 0.5em;text-decoration:none}.method-tags a:before{content:\'#\';margin-right:-0.4em}.method-tags a:first-of-type{padding:0}.method-content,.method-samples{display:block;box-sizing:border-box;float:left}.method-content{width:60%;padding:0 20px}.method-samples{color:#CFD2D3;width:40%;padding:10px 20px;background:#263238}responses-samples{display:block}.method-samples header{font-size:16px;margin:5px 0;color:#8A9094;text-transform:uppercase}.method-samples schema-sample{display:block}.method:after{content:"";display:table;clear:both}.method-description{padding:30px 0;margin:0}.http-method{color:white;background-color:#1976D3;padding:3px 10px;text-transform:uppercase}.http-method.delete{background-color:red}.http-method.post{background-color:#00329F}.http-method.patch{background-color:orange}.http-method.put{background-color:crimson}.http-method.options{background-color:black}.http-method.head{background-color:darkkhaki}@media (max-width: 1100px){.methods:before{display:none}.method-samples,.method-content{width:100%}.method-samples{margin-top:2em}:host{padding-bottom:0}}\n '], directives: [ParamsList, ResponsesList, ResponsesSamples, SchemaSample, RequestSamples], inputs: ['tag'] @@ -7832,13 +7910,13 @@ $__System.register('12', ['3', '4', '5', '6', '7', '9', '13', '14', 'c', 'e', 'b } }; }); -$__System.register('15', ['3', '4', '5', '6', '7', '12', '16', '17'], function (_export) { +$__System.register('18', ['5', '6', '7', '8', '9', '15', '19', '1a'], function (_export) { var RedocComponent, BaseComponent, _get, _inherits, _createClass, _classCallCheck, Method, _slicedToArray, _Array$from, MethodsList; return { - setters: [function (_7) { - RedocComponent = _7.RedocComponent; - BaseComponent = _7.BaseComponent; + setters: [function (_6) { + RedocComponent = _6.RedocComponent; + BaseComponent = _6.BaseComponent; }, function (_) { _get = _['default']; }, function (_2) { @@ -7847,12 +7925,12 @@ $__System.register('15', ['3', '4', '5', '6', '7', '12', '16', '17'], function ( _createClass = _3['default']; }, function (_4) { _classCallCheck = _4['default']; - }, function (_8) { - Method = _8['default']; + }, function (_7) { + Method = _7['default']; }, function (_5) { _slicedToArray = _5['default']; - }, function (_6) { - _Array$from = _6['default']; + }, function (_a) { + _Array$from = _a['default']; }], execute: function () { 'use strict'; @@ -7901,7 +7979,7 @@ $__System.register('15', ['3', '4', '5', '6', '7', '12', '16', '17'], function ( var _MethodsList = MethodsList; MethodsList = RedocComponent({ selector: 'methods-list', - template: '\n
\n
\n
\n

{{tag.name}}

\n

\n
\n \n
\n
\n ', + template: '\n
\n
\n
\n

{{tag.name}}

\n

\n
\n \n
\n
\n ', styles: ['\n .share-link{cursor:pointer;margin-left:-15px;padding:0;line-height:1;width:15px;display:inline-block}.share-link:before{content:"";width:15px;height:15px;background-size:contain;background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgeD0iMCIgeT0iMCIgd2lkdGg9IjUxMiIgaGVpZ2h0PSI1MTIiIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA1MTIgNTEyIiB4bWw6c3BhY2U9InByZXNlcnZlIj48cGF0aCBmaWxsPSIjMDEwMTAxIiBkPSJNNDU5LjcgMjMzLjRsLTkwLjUgOTAuNWMtNTAgNTAtMTMxIDUwLTE4MSAwIC03LjktNy44LTE0LTE2LjctMTkuNC0yNS44bDQyLjEtNDIuMWMyLTIgNC41LTMuMiA2LjgtNC41IDIuOSA5LjkgOCAxOS4zIDE1LjggMjcuMiAyNSAyNSA2NS42IDI0LjkgOTAuNSAwbDkwLjUtOTAuNWMyNS0yNSAyNS02NS42IDAtOTAuNSAtMjQuOS0yNS02NS41LTI1LTkwLjUgMGwtMzIuMiAzMi4yYy0yNi4xLTEwLjItNTQuMi0xMi45LTgxLjYtOC45bDY4LjYtNjguNmM1MC01MCAxMzEtNTAgMTgxIDBDNTA5LjYgMTAyLjMgNTA5LjYgMTgzLjQgNDU5LjcgMjMzLjR6TTIyMC4zIDM4Mi4ybC0zMi4yIDMyLjJjLTI1IDI0LjktNjUuNiAyNC45LTkwLjUgMCAtMjUtMjUtMjUtNjUuNiAwLTkwLjVsOTAuNS05MC41YzI1LTI1IDY1LjUtMjUgOTAuNSAwIDcuOCA3LjggMTIuOSAxNy4yIDE1LjggMjcuMSAyLjQtMS40IDQuOC0yLjUgNi44LTQuNWw0Mi4xLTQyYy01LjQtOS4yLTExLjYtMTgtMTkuNC0yNS44IC01MC01MC0xMzEtNTAtMTgxIDBsLTkwLjUgOTAuNWMtNTAgNTAtNTAgMTMxIDAgMTgxIDUwIDUwIDEzMSA1MCAxODEgMGw2OC42LTY4LjZDMjc0LjYgMzk1LjEgMjQ2LjQgMzkyLjMgMjIwLjMgMzgyLjJ6Ii8+PC9zdmc+Cg==");opacity:0.5;visibility:hidden;display:inline-block;vertical-align:middle}.sharable-header:hover .share-link:before,.share-link:hover:before{visibility:visible}.tag-info{padding:0 20px;box-sizing:border-box;background-color:white}.tag-info:after,.tag-info:before{content:"";display:table}.tag-info h1{color:#00329F;text-transform:capitalize;font-weight:normal}.methods{display:block;position:relative}.methods:before{content:"";background:#263238;height:100%;width:40%;top:0;right:0;position:absolute;z-index:-1}@media (max-width: 1100px){.methods:before{display:none}}\n '], directives: [Method] })(MethodsList) || MethodsList; @@ -7912,7 +7990,7 @@ $__System.register('15', ['3', '4', '5', '6', '7', '12', '16', '17'], function ( } }; }); -$__System.register('18', ['6', '7', '11', '19'], function (_export) { +$__System.register('1b', ['8', '9', '14', '1c'], function (_export) { var _createClass, _classCallCheck, Directive, ElementRef, BrowserDomAdapter, StickySidebar; return { @@ -7923,8 +8001,8 @@ $__System.register('18', ['6', '7', '11', '19'], function (_export) { }, function (_3) { Directive = _3.Directive; ElementRef = _3.ElementRef; - }, function (_4) { - BrowserDomAdapter = _4.BrowserDomAdapter; + }, function (_c) { + BrowserDomAdapter = _c.BrowserDomAdapter; }], execute: function () { 'use strict'; @@ -7933,14 +8011,14 @@ $__System.register('18', ['6', '7', '11', '19'], function (_export) { function StickySidebar(elementRef, dom) { _classCallCheck(this, _StickySidebar); - this.element = elementRef.nativeElement; + this.$element = elementRef.nativeElement; this.dom = dom; // initial styling - this.dom.setStyle(this.element, 'position', 'absolute'); - this.dom.setStyle(this.element, 'top', '0'); - this.dom.setStyle(this.element, 'bottom', '0'); - this.dom.setStyle(this.element, 'max-height', '100%'); + this.dom.setStyle(this.$element, 'position', 'absolute'); + this.dom.setStyle(this.$element, 'top', '0'); + this.dom.setStyle(this.$element, 'bottom', '0'); + this.dom.setStyle(this.$element, 'max-height', '100%'); } _createClass(StickySidebar, [{ @@ -7961,7 +8039,7 @@ $__System.register('18', ['6', '7', '11', '19'], function (_export) { }, { key: 'updatePosition', value: function updatePosition() { - if (this.scrollY + this.scrollYOffset() >= this.redocEl.offsetTop) { + if (this.scrollY + this.scrollYOffset() >= this.$redocEl.offsetTop) { this.stick(); } else { this.unstick(); @@ -7970,19 +8048,20 @@ $__System.register('18', ['6', '7', '11', '19'], function (_export) { }, { key: 'stick', value: function stick() { - this.dom.setStyle(this.element, 'position', 'fixed'); - this.dom.setStyle(this.element, 'top', this.scrollYOffset() + 'px'); + this.dom.setStyle(this.$element, 'position', 'fixed'); + this.dom.setStyle(this.$element, 'top', this.scrollYOffset() + 'px'); } }, { key: 'unstick', value: function unstick() { - this.dom.setStyle(this.element, 'position', 'absolute'); - this.dom.setStyle(this.element, 'top', 0); + this.dom.setStyle(this.$element, 'position', 'absolute'); + this.dom.setStyle(this.$element, 'top', 0); } }, { key: 'ngOnInit', value: function ngOnInit() { - this.redocEl = this.element.offsetParent; + // FIXME use more reliable code + this.$redocEl = this.$element.offsetParent; this.bind(); } }, { @@ -7998,6 +8077,7 @@ $__System.register('18', ['6', '7', '11', '19'], function (_export) { }]); var _StickySidebar = StickySidebar; + StickySidebar = Reflect.metadata('parameters', [[ElementRef], [BrowserDomAdapter]])(StickySidebar) || StickySidebar; StickySidebar = Directive({ selector: '[sticky-sidebar]', inputs: ['scrollParent', 'scrollYOffset'] @@ -8006,74 +8086,22 @@ $__System.register('18', ['6', '7', '11', '19'], function (_export) { })(); _export('default', StickySidebar); - - StickySidebar.parameters = [[ElementRef], [BrowserDomAdapter]]; } }; }); -$__System.registerDynamic("1a", [], true, function($__require, exports, module) { - ; - var global = this, - __define = global.define; - global.define = undefined; - ; - (function() { - var parents = function(node, ps) { - if (node.parentNode === null) { - return ps; - } - return parents(node.parentNode, ps.concat([node])); - }; - var style = function(node, prop) { - return getComputedStyle(node, null).getPropertyValue(prop); - }; - var overflow = function(node) { - return style(node, "overflow") + style(node, "overflow-y") + style(node, "overflow-x"); - }; - var scroll = function(node) { - return (/(auto|scroll)/).test(overflow(node)); - }; - var scrollParent = function(node) { - if (!(node instanceof HTMLElement)) { - return; - } - var ps = parents(node.parentNode, []); - for (var i = 0; i < ps.length; i += 1) { - if (scroll(ps[i])) { - return ps[i]; - } - } - return window; - }; - if (typeof module === "object" && module !== null) { - module.exports = scrollParent; - } else { - window.Scrollparent = scrollParent; - } - })(); - global.define = __define; - return module.exports; -}); +$__System.register("1d", [], function() { return { setters: [], execute: function() {} } }); -$__System.registerDynamic("1b", ["1a"], true, function($__require, exports, module) { - ; - var global = this, - __define = global.define; - global.define = undefined; - module.exports = $__require('1a'); - global.define = __define; - return module.exports; -}); - -$__System.register('1c', ['2', '3', '4', '5', '6', '7', '8', '10', '11', '15', '17', '18', '19', '20', '21', '22', '1d', '1e', '1f', '1b'], function (_export) { - var ApiInfo, RedocComponent, BaseComponent, _get, _inherits, _createClass, _classCallCheck, ApiLogo, redocEvents, ChangeDetectionStrategy, ElementRef, MethodsList, _Array$from, StickySidebar, BrowserDomAdapter, bootstrap, _Set, _Object$assign, isFunction, isString, SchemaManager, SideMenu, OptionsManager, detectScollParent, optionNames, dom, Redoc; +$__System.register('1e', ['3', '4', '5', '6', '7', '8', '9', '13', '14', '18', '20', '21', '1c', '1f', 'a', '1b', '1d'], function (_export) { + var detectScollParent, ApiInfo, RedocComponent, BaseComponent, _get, _inherits, _createClass, _classCallCheck, redocEvents, ChangeDetectionStrategy, provide, enableProdMode, ElementRef, MethodsList, SideMenu, OptionsManager, BrowserDomAdapter, bootstrap, SchemaManager, ApiLogo, StickySidebar, dom, _modeLocked, Redoc; return { - setters: [function (_9) { - ApiInfo = _9['default']; + setters: [function (_6) { + detectScollParent = _6['default']; }, function (_8) { - RedocComponent = _8.RedocComponent; - BaseComponent = _8.BaseComponent; + ApiInfo = _8['default']; + }, function (_7) { + RedocComponent = _7.RedocComponent; + BaseComponent = _7.BaseComponent; }, function (_) { _get = _['default']; }, function (_2) { @@ -8082,131 +8110,52 @@ $__System.register('1c', ['2', '3', '4', '5', '6', '7', '8', '10', '11', '15', ' _createClass = _3['default']; }, function (_4) { _classCallCheck = _4['default']; - }, function (_10) { - ApiLogo = _10['default']; - }, function (_13) { - redocEvents = _13.redocEvents; - }, function (_14) { - ChangeDetectionStrategy = _14.ChangeDetectionStrategy; - ElementRef = _14.ElementRef; - }, function (_11) { - MethodsList = _11['default']; - }, function (_7) { - _Array$from = _7['default']; }, function (_12) { - StickySidebar = _12['default']; - }, function (_15) { - BrowserDomAdapter = _15.BrowserDomAdapter; - bootstrap = _15.bootstrap; + redocEvents = _12.redocEvents; }, function (_5) { - _Set = _5['default']; - }, function (_6) { - _Object$assign = _6['default']; - }, function (_16) { - isFunction = _16.isFunction; - isString = _16.isString; - }, function (_d) { - SchemaManager = _d['default']; - }, function (_e) { - SideMenu = _e['default']; + ChangeDetectionStrategy = _5.ChangeDetectionStrategy; + provide = _5.provide; + enableProdMode = _5.enableProdMode; + ElementRef = _5.ElementRef; + }, function (_9) { + MethodsList = _9['default']; + }, function (_10) { + SideMenu = _10['default']; + }, function (_11) { + OptionsManager = _11['default']; + }, function (_c) { + BrowserDomAdapter = _c.BrowserDomAdapter; + bootstrap = _c.bootstrap; }, function (_f) { - OptionsManager = _f['default']; + SchemaManager = _f['default']; + }, function (_a) { + ApiLogo = _a['default']; }, function (_b) { - detectScollParent = _b['default']; - }], + StickySidebar = _b['default']; + }, function (_d) {}], execute: function () { 'use strict'; - optionNames = new _Set(['scrollYOffset', 'disableLazySchemas']); dom = new BrowserDomAdapter(); + _modeLocked = false; Redoc = (function (_BaseComponent) { _inherits(Redoc, _BaseComponent); - function Redoc(schemaMgr, optionsMgr, elementRef, dom) { + function Redoc(schemaMgr, optionsMgr, elementRef) { _classCallCheck(this, _Redoc); _get(Object.getPrototypeOf(_Redoc.prototype), 'constructor', this).call(this, schemaMgr); this.element = elementRef.nativeElement; - - this.dom = dom; - var el = this.element; - //parse options (top level component doesn't support inputs) - this.scrollParent = detectScollParent(el); - this.parseOptions(); - this.options = _Object$assign({}, optionsMgr.options, this.options); - this.normalizeOptions(); - optionsMgr.options = this.options; + optionsMgr.parseOptions(this.element); + optionsMgr.options.$scrollParent = detectScollParent(this.element); + this.options = optionsMgr.options; } - _createClass(Redoc, [{ - key: 'parseOptions', - value: function parseOptions() { - var _this = this; - - var attributesMap = this.dom.attributeMap(this.element); - this.options = {}; - _Array$from(attributesMap.keys()) - //camelCasify - .map(function (k) { - return { - attrName: k, - name: k.replace(/-(.)/g, function (m, $1) { - return $1.toUpperCase(); - }) - }; - }).filter(function (option) { - return optionNames.has(option.name); - }).forEach(function (option) { - _this.options[option.name] = attributesMap.get(option.attrName); - }); - } - }, { - key: 'normalizeOptions', - value: function normalizeOptions() { - var _this2 = this; - - // modify scrollYOffset to always be a function - if (!isFunction(this.options.scrollYOffset)) { - if (isFinite(this.options.scrollYOffset)) { - (function () { - // if number specified create function that returns this value - var numberOffset = parseFloat(_this2.options.scrollYOffset); - _this2.options.scrollYOffset = function () { - return numberOffset; - }; - })(); - } else { - (function () { - // if selector or node function that returns bottom offset of this node - var el = _this2.options.scrollYOffset; - if (!(el instanceof Node)) { - el = _this2.dom.query(el); - } - if (!el) { - _this2.options.scrollYOffset = function () { - return 0; - }; - } else { - _this2.options.scrollYOffset = function () { - return el.offsetTop + el.offsetHeight; - }; - } - })(); - } - } - - if (isString(this.options.disableLazySchemas)) this.options.disableLazySchemas = true; - } - }], [{ + _createClass(Redoc, null, [{ key: 'showLoadingAnimation', value: function showLoadingAnimation() { - if (!dom.query('#redoc-loading-style')) { - var animStyle = dom.createStyleElement('\n redoc.loading {\n position: relative;\n display: block;\n min-height:350px;\n }\n\n redoc.loading:before {\n content: "Loading...";\n font-size: 28px;\n text-align: center;\n padding-top: 40px;\n color: #3F5C9C;\n font-weight: bold;\n display: block;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n background-color: white;\n z-index: 9999;\n opacity: 1;\n transition: all 0.6s ease-out;\n }\n\n redoc.loading-remove:before {\n opacity: 0;\n }\n '); - animStyle.id = 'redoc-loading-style'; - dom.appendChild(dom.defaultDoc().head, animStyle); - } var elem = dom.query('redoc'); dom.addClass(elem, 'loading'); } @@ -8223,17 +8172,27 @@ $__System.register('1c', ['2', '3', '4', '5', '6', '7', '8', '10', '11', '15', ' }, { key: 'init', value: function init(schemaUrl, options) { + var optionsMgr = new OptionsManager(); + optionsMgr.options = options; + var providers = [provide(OptionsManager, { useValue: optionsMgr })]; + if (Redoc.appRef) { Redoc.dispose(); } Redoc.showLoadingAnimation(); return SchemaManager.instance().load(schemaUrl).then(function () { - new OptionsManager().options = options; - return bootstrap(Redoc); + if (!_modeLocked && !optionsMgr.options.debugMode) { + enableProdMode(); + _modeLocked = true; + } + return bootstrap(Redoc, providers); }).then(function (appRef) { Redoc.hideLoadingAnimation(); Redoc.appRef = appRef; - redocEvents.bootstrapped.next(); + // setTimeout to allow cached elements to init + setTimeout(function () { + return redocEvents.bootstrapped.next(); + }); console.log('ReDoc bootstrapped!'); }, function (error) { console.log(error); @@ -8244,7 +8203,6 @@ $__System.register('1c', ['2', '3', '4', '5', '6', '7', '8', '10', '11', '15', ' key: 'autoInit', value: function autoInit() { var specUrlAttributeName = 'spec-url'; - var dom = new BrowserDomAdapter(); var redocEl = dom.query('redoc'); if (!redocEl) return; if (dom.hasAttribute(redocEl, specUrlAttributeName)) { @@ -8255,7 +8213,6 @@ $__System.register('1c', ['2', '3', '4', '5', '6', '7', '8', '10', '11', '15', ' }, { key: 'dispose', value: function dispose() { - var dom = new BrowserDomAdapter(); var el = dom.query('redoc'); var elClone = undefined; var parent = undefined; @@ -8279,10 +8236,11 @@ $__System.register('1c', ['2', '3', '4', '5', '6', '7', '8', '10', '11', '15', ' }]); var _Redoc = Redoc; + Redoc = Reflect.metadata('parameters', [[SchemaManager], [OptionsManager], [ElementRef]])(Redoc) || Redoc; Redoc = RedocComponent({ selector: 'redoc', - providers: [SchemaManager, BrowserDomAdapter, OptionsManager], - template: '\n
\n \n
\n \n \n \n
\n
\n ', + providers: [SchemaManager, BrowserDomAdapter], + template: '\n
\n \n
\n \n \n \n
\n
\n ', styles: ['\n :host{display:block;box-sizing:border-box}.redoc-wrap{position:relative}side-menu{display:block;box-sizing:border-box}methods-list{display:block;overflow:hidden}api-info,.side-bar{display:block;padding:10px 0}api-info{padding:10px 20px}api-logo{display:block;text-align:center}@media (max-width: 1000px){api-logo{display:none}}[sticky-sidebar]{width:260px;background-color:#FAFAFA;overflow-y:auto;overflow-x:hidden}@media (max-width: 1000px){[sticky-sidebar]{z-index:1;width:100%;bottom:auto !important}}#api-content{margin-left:260px}@media (max-width: 1000px){#api-content{padding-top:3em;margin-left:0}}#api-content:after{content:"";position:absolute;left:0;right:0;top:0;bottom:0;background-color:black;opacity:0.5;transition:all 0.3s ease;display:none}#api-content.menu-opened:after{display:block}footer{text-align:right;padding:10px;font-size:15px}footer a{color:#999;text-decoration:none}footer strong{font-size:18px;color:#00329F}:host p{margin:0;margin-bottom:1em}:host .redoc-markdown-block pre{font-family:Courier, monospace;white-space:pre-wrap;background-color:rgba(0,0,0,0.04);padding:10px;overflow-x:auto;line-height:normal;border-radius:3px}:host .redoc-markdown-block pre code{background-color:transparent}:host .redoc-markdown-block pre code:before,:host .redoc-markdown-block pre code:after{content:none}:host .redoc-markdown-block code{font-family:Courier, monospace;background-color:rgba(0,0,0,0.04);padding:0.2em 0;font-size:0.85em;border-radius:3px}:host .redoc-markdown-block code:before,:host .redoc-markdown-block code:after{letter-spacing:-0.2em;content:"\\00a0"}:host .redoc-markdown-block p{margin:0;margin-bottom:1em}:host .redoc-markdown-block p:last-of-type{margin-bottom:0}:host .redoc-markdown-block blockquote{margin:0;margin-bottom:1em;padding:0 15px;color:#777;border-left:4px solid #ddd}:host .redoc-markdown-block img{max-width:100%;box-sizing:content-box}:host .redoc-markdown-block ul,:host .redoc-markdown-block ol{padding-left:2em;margin:0;margin-bottom:1em}:host .redoc-markdown-block table{display:block;width:100%;overflow:auto;word-break:normal;word-break:keep-all;border-collapse:collapse;border-spacing:0;margin-top:0.5em;margin-bottom:0.5em}:host .redoc-markdown-block table tr{background-color:#fff;border-top:1px solid #ccc}:host .redoc-markdown-block table tr:nth-child(2n){background-color:#f8f8f8}:host .redoc-markdown-block table th,:host .redoc-markdown-block table td{padding:6px 13px;border:1px solid #ddd}:host .redoc-markdown-block table th{text-align:left;font-weight:bold}\n '], directives: [ApiInfo, ApiLogo, MethodsList, SideMenu, StickySidebar], changeDetection: ChangeDetectionStrategy.Default @@ -8291,18 +8249,15 @@ $__System.register('1c', ['2', '3', '4', '5', '6', '7', '8', '10', '11', '15', ' })(BaseComponent); _export('default', Redoc); - - Redoc.parameters = Redoc.parameters.concat([[OptionsManager], [ElementRef], [BrowserDomAdapter]]); - - // TODO - // this doesn't work in side-menu.js because of some circular references issue - SideMenu.parameters = SideMenu.parameters.concat([[Redoc]]); } }; }); -$__System.register('23', ['6', '7', '11', '24', '25', 'a', '1f'], function (_export) { - var _createClass, _classCallCheck, Component, View, ElementRef, CORE_DIRECTIVES, DynamicComponentLoader, JsonSchema, OptionsManager, JsonSchemaLazy; +$__System.register('d', ['8', '9', '14', '21', '22', '23', 'c', '1f'], function (_export) { + var _createClass, _classCallCheck, Component, View, ElementRef, OptionsManager, CORE_DIRECTIVES, DynamicComponentLoader, JsonSchema, SchemaManager, cache, JsonSchemaLazy; + function insertAfter(newNode, referenceNode) { + referenceNode.parentNode.insertBefore(newNode, referenceNode.nextSibling); + } return { setters: [function (_) { _createClass = _['default']; @@ -8312,32 +8267,44 @@ $__System.register('23', ['6', '7', '11', '24', '25', 'a', '1f'], function (_exp Component = _3.Component; View = _3.View; ElementRef = _3.ElementRef; + }, function (_6) { + OptionsManager = _6['default']; }, function (_4) { CORE_DIRECTIVES = _4.CORE_DIRECTIVES; }, function (_5) { DynamicComponentLoader = _5.DynamicComponentLoader; - }, function (_a) { - JsonSchema = _a['default']; + }, function (_c) { + JsonSchema = _c['default']; }, function (_f) { - OptionsManager = _f['default']; + SchemaManager = _f['default']; }], execute: function () { 'use strict'; + cache = {}; + JsonSchemaLazy = (function () { - function JsonSchemaLazy(elementRef, dcl) { + function JsonSchemaLazy(schemaMgr, elementRef, dcl, optionsMgr) { _classCallCheck(this, _JsonSchemaLazy); this.elementRef = elementRef; this.dcl = dcl; + this.optionsMgr = optionsMgr; + this.schemaMgr = schemaMgr; } _createClass(JsonSchemaLazy, [{ + key: 'normalizePointer', + value: function normalizePointer() { + var schema = this.schemaMgr.byPointer(this.pointer); + return schema && schema.$ref || this.pointer; + } + }, { key: 'load', value: function load() { var _this = this; - if (OptionsManager.instance().options.disableLazySchemas) return; + if (this.optionsMgr.options.disableLazySchemas) return; if (this.loaded) return; if (this.pointer) { this.dcl.loadNextToLocation(JsonSchema, this.elementRef).then(function (compRef) { @@ -8346,27 +8313,70 @@ $__System.register('23', ['6', '7', '11', '24', '25', 'a', '1f'], function (_exp } this.loaded = true; } + + // cache JsonSchema view + }, { + key: 'loadCached', + value: function loadCached() { + var _this2 = this; + + this.pointer = this.normalizePointer(this.pointer); + if (cache[this.pointer]) { + cache[this.pointer].then(function (compRef) { + setTimeout(function () { + var $element = compRef.location.nativeElement; + + // skip caching view with tabs inside (discriminator) as it needs attached controller + if ($element.querySelector('tabs')) { + _this2.dcl.loadNextToLocation(JsonSchema, _this2.elementRef).then(function (compRef) { + compRef.instance.pointer = _this2.pointer; + compRef.hostView.changeDetectorRef.markForCheck(); + }); + return; + } + insertAfter($element.cloneNode(true), _this2.elementRef.nativeElement); + }); + }); + } else { + cache[this.pointer] = this.dcl.loadNextToLocation(JsonSchema, this.elementRef).then(function (compRef) { + compRef.instance.pointer = _this2.pointer; + compRef.hostView.changeDetectorRef.markForCheck(); + return compRef; + }); + } + } + }, { + key: 'ngAfterViewInit', + value: function ngAfterViewInit() { + if (!this.auto) return; + this.loadCached(); + } + }, { + key: 'ngOnDestroy', + value: function ngOnDestroy() { + // clear cache + cache = {}; + } }]); var _JsonSchemaLazy = JsonSchemaLazy; + JsonSchemaLazy = Reflect.metadata('parameters', [[SchemaManager], [ElementRef], [DynamicComponentLoader], [OptionsManager]])(JsonSchemaLazy) || JsonSchemaLazy; JsonSchemaLazy = View({ template: '', directives: [CORE_DIRECTIVES] })(JsonSchemaLazy) || JsonSchemaLazy; JsonSchemaLazy = Component({ selector: 'json-schema-lazy', - inputs: ['pointer'] + inputs: ['pointer', 'auto'] })(JsonSchemaLazy) || JsonSchemaLazy; return JsonSchemaLazy; })(); _export('default', JsonSchemaLazy); - - JsonSchemaLazy.parameters = [[ElementRef], [DynamicComponentLoader]]; } }; }); -$__System.register('26', ['6', '7', '11', '24'], function (_export) { +$__System.register('24', ['8', '9', '14', '22'], function (_export) { var _createClass, _classCallCheck, Component, View, EventEmitter, CORE_DIRECTIVES, Zippy; return { @@ -8407,7 +8417,7 @@ $__System.register('26', ['6', '7', '11', '24'], function (_export) { var _Zippy = Zippy; Zippy = View({ template: '\n
\n
\n {{ visible ? \'▾\' : \'▸\' }}\n {{title}}\n
\n
\n \n
\n
\n ', - styles: ['\n .zippy-title{padding:10px;margin:2px 0;line-height:1.5em;background-color:#f2f2f2;cursor:pointer}.zippy-success>.zippy-title{color:#09AC1C;background-color:#E1F5E3}.zippy-error>.zippy-title{color:#E54541;background-color:#FBE7E7}.zippy-redirect>.zippy-title{color:#AC7C09;background-color:#F5F0E1}.zippy-info>.zippy-title{color:#096DAC;background-color:#E1EFF5}span.zippy-indicator{font-size:1.5em;line-height:1;margin-right:0.2em;vertical-align:text-bottom}.zippy-content{padding:15px 0}.zippy-empty .zippy-title{cursor:default}.zippy-empty .zippy-indicator{display:none}.zippy-empty .zippy-content{display:none}.zippy-hidden{visibility:hidden;height:0;padding:0}\n '], + styles: ['\n .zippy-title{padding:10px;margin:2px 0;line-height:1.5em;background-color:#f2f2f2;cursor:pointer}.zippy-success>.zippy-title{color:#09AC1C;background-color:#E1F5E3}.zippy-error>.zippy-title{color:#E54541;background-color:#FBE7E7}.zippy-redirect>.zippy-title{color:#AC7C09;background-color:#F5F0E1}.zippy-info>.zippy-title{color:#096DAC;background-color:#E1EFF5}span.zippy-indicator{font-size:1.5em;line-height:1;margin-right:0.2em;vertical-align:text-bottom}.zippy-content{padding:15px 0}.zippy-empty .zippy-title{cursor:default}.zippy-empty .zippy-indicator{display:none}.zippy-empty .zippy-content{display:none}.zippy-hidden{overflow:hidden;visibility:hidden;height:0;padding:0}\n '], directives: [CORE_DIRECTIVES] })(Zippy) || Zippy; Zippy = Component({ @@ -8422,70 +8432,8 @@ $__System.register('26', ['6', '7', '11', '24'], function (_export) { } }; }); -$__System.register('1f', ['6', '7', '21'], function (_export) { - var _createClass, _classCallCheck, _Object$assign, options, OptionsManager; - - return { - setters: [function (_) { - _createClass = _['default']; - }, function (_2) { - _classCallCheck = _2['default']; - }, function (_3) { - _Object$assign = _3['default']; - }], - execute: function () { - 'use strict'; - - options = { - scrollYOffset: 0 - }; - - _export('options', options); - - // singleton - - OptionsManager = (function () { - function OptionsManager() { - _classCallCheck(this, OptionsManager); - - if (OptionsManager.prototype._instance) { - return OptionsManager.prototype._instance; - } - - OptionsManager.prototype._instance = this; - - this._defaults = { - scrollYOffset: 0, - disableLazySchemas: false - }; - - this._options = {}; - } - - _createClass(OptionsManager, [{ - key: 'options', - get: function get() { - return this._options; - }, - set: function set(opts) { - this._options = _Object$assign({}, this._defaults, opts); - } - }], [{ - key: 'instance', - value: function instance() { - return new OptionsManager(); - } - }]); - - return OptionsManager; - })(); - - _export('default', OptionsManager); - } - }; -}); -$__System.register('13', ['3', '4', '5', '6', '7', '23', '26', '27', '28', 'c', 'a', '1f'], function (_export) { - var RedocComponent, BaseComponent, _get, _inherits, _createClass, _classCallCheck, JsonSchemaLazy, Zippy, statusCodeType, _Object$keys, JsonPointer, JsonSchema, OptionsManager, ResponsesList; +$__System.register('16', ['5', '6', '7', '8', '9', '21', '24', '25', '26', 'f', 'c', 'd'], function (_export) { + var RedocComponent, BaseComponent, SchemaManager, _get, _inherits, _createClass, _classCallCheck, OptionsManager, Zippy, statusCodeType, _Object$keys, JsonPointer, JsonSchema, JsonSchemaLazy, ResponsesList; function isNumeric(n) { return !isNaN(parseFloat(n)) && isFinite(n); @@ -8495,6 +8443,7 @@ $__System.register('13', ['3', '4', '5', '6', '7', '23', '26', '27', '28', 'c', setters: [function (_6) { RedocComponent = _6.RedocComponent; BaseComponent = _6.BaseComponent; + SchemaManager = _6.SchemaManager; }, function (_) { _get = _['default']; }, function (_2) { @@ -8503,20 +8452,20 @@ $__System.register('13', ['3', '4', '5', '6', '7', '23', '26', '27', '28', 'c', _createClass = _3['default']; }, function (_4) { _classCallCheck = _4['default']; - }, function (_7) { - JsonSchemaLazy = _7['default']; - }, function (_8) { - Zippy = _8['default']; }, function (_9) { - statusCodeType = _9.statusCodeType; + OptionsManager = _9['default']; + }, function (_7) { + Zippy = _7['default']; + }, function (_8) { + statusCodeType = _8.statusCodeType; }, function (_5) { _Object$keys = _5['default']; - }, function (_c) { - JsonPointer = _c['default']; - }, function (_a) { - JsonSchema = _a['default']; }, function (_f) { - OptionsManager = _f['default']; + JsonPointer = _f['default']; + }, function (_c) { + JsonSchema = _c['default']; + }, function (_d) { + JsonSchemaLazy = _d['default']; }], execute: function () { 'use strict'; @@ -8524,10 +8473,11 @@ $__System.register('13', ['3', '4', '5', '6', '7', '23', '26', '27', '28', 'c', ResponsesList = (function (_BaseComponent) { _inherits(ResponsesList, _BaseComponent); - function ResponsesList(schemaMgr) { + function ResponsesList(schemaMgr, optionsMgr) { _classCallCheck(this, _ResponsesList); _get(Object.getPrototypeOf(_ResponsesList.prototype), 'constructor', this).call(this, schemaMgr); + this.options = optionsMgr.options; } _createClass(ResponsesList, [{ @@ -8537,7 +8487,6 @@ $__System.register('13', ['3', '4', '5', '6', '7', '23', '26', '27', '28', 'c', this.data = {}; this.data.responses = []; - this.enabledLazy = !OptionsManager.instance().options.disableLazySchemas; var responses = this.componentSchema; if (!responses) return; @@ -8573,9 +8522,10 @@ $__System.register('13', ['3', '4', '5', '6', '7', '23', '26', '27', '28', 'c', }]); var _ResponsesList = ResponsesList; + ResponsesList = Reflect.metadata('parameters', [[SchemaManager], [OptionsManager]])(ResponsesList) || ResponsesList; ResponsesList = RedocComponent({ selector: 'responses-list', - template: '\n

Responses

\n \n
\n
\n Headers\n
\n
\n
{{header.name}}
\n
{{header.type}}
\n
\n
\n
\n
\n Response schema\n
\n \n \n \n \n
\n ', + template: '\n

Responses

\n \n
\n
\n Headers\n
\n
\n
{{header.name}}
\n
{{header.type}}
\n
\n
\n
\n
\n Response schema\n
\n \n \n \n \n
\n ', styles: ['\n .responses-list-header{font-size:18px;padding:0.2em 0;margin:0.5em 0;color:#253137;font-weight:normal}.header-name{font-weight:bold;display:inline-block}.header-type{display:inline-block;font-weight:bold;color:#999}header{font-size:14px;font-weight:bold;text-transform:uppercase;margin-bottom:15px}.header{margin-bottom:10px}\n '], directives: [JsonSchema, Zippy, JsonSchemaLazy] })(ResponsesList) || ResponsesList; @@ -8586,7 +8536,7 @@ $__System.register('13', ['3', '4', '5', '6', '7', '23', '26', '27', '28', 'c', } }; }); -$__System.register('27', [], function (_export) { +$__System.register('25', [], function (_export) { 'use strict'; _export('statusCodeType', statusCodeType); @@ -8611,8 +8561,8 @@ $__System.register('27', [], function (_export) { execute: function () {} }; }); -$__System.register('14', ['3', '4', '5', '6', '7', '27', '28', 'c', 'd', 'e'], function (_export) { - var RedocComponent, BaseComponent, _get, _inherits, _createClass, _classCallCheck, statusCodeType, _Object$keys, JsonPointer, Tabs, Tab, SchemaSample, ResponsesSamples; +$__System.register('17', ['5', '6', '7', '8', '9', '10', '11', '25', '26', 'f'], function (_export) { + var RedocComponent, BaseComponent, _get, _inherits, _createClass, _classCallCheck, Tabs, Tab, SchemaSample, statusCodeType, _Object$keys, JsonPointer, ResponsesSamples; function isNumeric(n) { return !isNaN(parseFloat(n)) && isFinite(n); @@ -8635,16 +8585,16 @@ $__System.register('14', ['3', '4', '5', '6', '7', '27', '28', 'c', 'd', 'e'], f }, function (_4) { _classCallCheck = _4['default']; }, function (_7) { - statusCodeType = _7.statusCodeType; + Tabs = _7.Tabs; + Tab = _7.Tab; + }, function (_8) { + SchemaSample = _8['default']; + }, function (_9) { + statusCodeType = _9.statusCodeType; }, function (_5) { _Object$keys = _5['default']; - }, function (_c) { - JsonPointer = _c['default']; - }, function (_d) { - Tabs = _d.Tabs; - Tab = _d.Tab; - }, function (_e) { - SchemaSample = _e['default']; + }, function (_f) { + JsonPointer = _f['default']; }], execute: function () { 'use strict'; @@ -8705,7 +8655,7 @@ $__System.register('14', ['3', '4', '5', '6', '7', '27', '28', 'c', 'd', 'e'], f } }; }); -$__System.registerDynamic("29", [], true, function($__require, exports, module) { +$__System.registerDynamic("27", [], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -8772,28 +8722,28 @@ $__System.registerDynamic("29", [], true, function($__require, exports, module) return module.exports; }); -$__System.registerDynamic("2a", ["29"], true, function($__require, exports, module) { +$__System.registerDynamic("28", ["27"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; - module.exports = $__require('29'); + module.exports = $__require('27'); global.define = __define; return module.exports; }); -$__System.registerDynamic("2b", ["2a"], true, function($__require, exports, module) { +$__System.registerDynamic("29", ["28"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; - module.exports = $__require('2a'); + module.exports = $__require('28'); global.define = __define; return module.exports; }); -$__System.register('2c', ['6', '7', '11', '22', '28'], function (_export) { - var _createClass, _classCallCheck, Pipe, isBlank, _Object$keys, level, COLLAPSE_LEVEL, JsonFormatter; +$__System.register('2a', ['8', '9', '14', '26', '2b'], function (_export) { + var _createClass, _classCallCheck, Pipe, _Object$keys, isBlank, level, COLLAPSE_LEVEL, JsonFormatter; function htmlEncode(t) { return t != null ? t.toString().replace(/&/g, '&').replace(/"/g, '"').replace(//g, '>') : ''; @@ -8893,10 +8843,10 @@ $__System.register('2c', ['6', '7', '11', '22', '28'], function (_export) { _classCallCheck = _2['default']; }, function (_4) { Pipe = _4.Pipe; - }, function (_5) { - isBlank = _5.isBlank; }, function (_3) { _Object$keys = _3['default']; + }, function (_b) { + isBlank = _b.isBlank; }], execute: function () { 'use strict'; @@ -8925,13 +8875,14 @@ $__System.register('2c', ['6', '7', '11', '22', '28'], function (_export) { } }; }); -$__System.register('e', ['3', '4', '5', '6', '7', '11', '2b', '2c'], function (_export) { - var RedocComponent, BaseComponent, _get, _inherits, _createClass, _classCallCheck, ElementRef, SchemaSampler, JsonFormatter, SchemaSample; +$__System.register('11', ['5', '6', '7', '8', '9', '14', '29', '2a'], function (_export) { + var RedocComponent, BaseComponent, SchemaManager, _get, _inherits, _createClass, _classCallCheck, ElementRef, SchemaSampler, JsonFormatter, SchemaSample; return { - setters: [function (_5) { - RedocComponent = _5.RedocComponent; - BaseComponent = _5.BaseComponent; + setters: [function (_7) { + RedocComponent = _7.RedocComponent; + BaseComponent = _7.BaseComponent; + SchemaManager = _7.SchemaManager; }, function (_) { _get = _['default']; }, function (_2) { @@ -8940,12 +8891,12 @@ $__System.register('e', ['3', '4', '5', '6', '7', '11', '2b', '2c'], function (_ _createClass = _3['default']; }, function (_4) { _classCallCheck = _4['default']; + }, function (_5) { + ElementRef = _5.ElementRef; }, function (_6) { - ElementRef = _6.ElementRef; - }, function (_b) { - SchemaSampler = _b['default']; - }, function (_c) { - JsonFormatter = _c.JsonFormatter; + SchemaSampler = _6['default']; + }, function (_a) { + JsonFormatter = _a.JsonFormatter; }], execute: function () { 'use strict'; @@ -8999,6 +8950,7 @@ $__System.register('e', ['3', '4', '5', '6', '7', '11', '2b', '2c'], function (_ }]); var _SchemaSample = SchemaSample; + SchemaSample = Reflect.metadata('parameters', [[SchemaManager], [ElementRef]])(SchemaSample) || SchemaSample; SchemaSample = RedocComponent({ selector: 'schema-sample', template: '\n
\n \n
 Sample unavailable 
\n
\n    
\n ', @@ -9009,20 +8961,18 @@ $__System.register('e', ['3', '4', '5', '6', '7', '11', '2b', '2c'], function (_ })(BaseComponent); _export('default', SchemaSample); - - SchemaSample.parameters = SchemaSample.parameters.concat([[ElementRef]]); } }; }); -$__System.registerDynamic("2d", ["2e", "2f", "30", "31"], true, function($__require, exports, module) { +$__System.registerDynamic("2c", ["2d", "2e", "2f", "30"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; - var classof = $__require('2e'), - ITERATOR = $__require('2f')('iterator'), - Iterators = $__require('30'); - module.exports = $__require('31').isIterable = function(it) { + var classof = $__require('2d'), + ITERATOR = $__require('2e')('iterator'), + Iterators = $__require('2f'); + module.exports = $__require('30').isIterable = function(it) { var O = Object(it); return O[ITERATOR] !== undefined || '@@iterator' in O || Iterators.hasOwnProperty(classof(O)); }; @@ -9030,39 +8980,39 @@ $__System.registerDynamic("2d", ["2e", "2f", "30", "31"], true, function($__requ return module.exports; }); -$__System.registerDynamic("32", ["33", "34", "2d"], true, function($__require, exports, module) { +$__System.registerDynamic("31", ["32", "33", "2c"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; + $__require('32'); $__require('33'); - $__require('34'); - module.exports = $__require('2d'); + module.exports = $__require('2c'); global.define = __define; return module.exports; }); -$__System.registerDynamic("35", ["32"], true, function($__require, exports, module) { +$__System.registerDynamic("34", ["31"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; module.exports = { - "default": $__require('32'), + "default": $__require('31'), __esModule: true }; global.define = __define; return module.exports; }); -$__System.registerDynamic("16", ["36", "35"], true, function($__require, exports, module) { +$__System.registerDynamic("19", ["35", "34"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var _getIterator = $__require('36')["default"]; - var _isIterable = $__require('35')["default"]; + var _getIterator = $__require('35')["default"]; + var _isIterable = $__require('34')["default"]; exports["default"] = (function() { function sliceIterator(arr, i) { var _arr = []; @@ -9105,7 +9055,7 @@ $__System.registerDynamic("16", ["36", "35"], true, function($__require, exports return module.exports; }); -$__System.register('10', ['11'], function (_export) { +$__System.register('13', ['14'], function (_export) { 'use strict'; var EventEmitter, bootsrEmmiter, langChanged, redocEvents; @@ -9125,7 +9075,7 @@ $__System.register('10', ['11'], function (_export) { } }; }); -$__System.registerDynamic("37", ["22", "38"], true, function($__require, exports, module) { +$__System.registerDynamic("36", ["2b", "37"], true, function($__require, exports, module) { ; var global = this, __define = global.define; @@ -9148,7 +9098,7 @@ $__System.registerDynamic("37", ["22", "38"], true, function($__require, exports if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; - var lang_1 = $__require('22'); + var lang_1 = $__require('2b'); var AngularEntrypoint = (function() { function AngularEntrypoint(name) { this.name = name; @@ -9157,12 +9107,12 @@ $__System.registerDynamic("37", ["22", "38"], true, function($__require, exports return AngularEntrypoint; })(); exports.AngularEntrypoint = AngularEntrypoint; - })($__require('38')); + })($__require('37')); global.define = __define; return module.exports; }); -$__System.registerDynamic("39", ["3a", "22", "3b", "3c", "3d", "38"], true, function($__require, exports, module) { +$__System.registerDynamic("38", ["39", "2b", "3a", "3b", "3c", "37"], true, function($__require, exports, module) { ; var global = this, __define = global.define; @@ -9194,11 +9144,11 @@ $__System.registerDynamic("39", ["3a", "22", "3b", "3c", "3d", "38"], true, func if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; - var dom_adapter_1 = $__require('3a'); - var lang_1 = $__require('22'); - var collection_1 = $__require('3b'); - var event_manager_1 = $__require('3c'); - var di_1 = $__require('3d'); + var dom_adapter_1 = $__require('39'); + var lang_1 = $__require('2b'); + var collection_1 = $__require('3a'); + var event_manager_1 = $__require('3b'); + var di_1 = $__require('3c'); var modifierKeys = ['alt', 'control', 'meta', 'shift']; var modifierKeyGetters = { 'alt': function(event) { @@ -9225,8 +9175,8 @@ $__System.registerDynamic("39", ["3a", "22", "3b", "3c", "3d", "38"], true, func KeyEventsPlugin.prototype.addEventListener = function(element, eventName, handler) { var parsedEvent = KeyEventsPlugin.parseEventName(eventName); var outsideHandler = KeyEventsPlugin.eventCallback(element, collection_1.StringMapWrapper.get(parsedEvent, 'fullKey'), handler, this.manager.getZone()); - this.manager.getZone().runOutsideAngular(function() { - dom_adapter_1.DOM.on(element, collection_1.StringMapWrapper.get(parsedEvent, 'domEventName'), outsideHandler); + return this.manager.getZone().runOutsideAngular(function() { + return dom_adapter_1.DOM.onAndCancel(element, collection_1.StringMapWrapper.get(parsedEvent, 'domEventName'), outsideHandler); }); }; KeyEventsPlugin.parseEventName = function(eventName) { @@ -9293,12 +9243,12 @@ $__System.registerDynamic("39", ["3a", "22", "3b", "3c", "3d", "38"], true, func return KeyEventsPlugin; })(event_manager_1.EventManagerPlugin); exports.KeyEventsPlugin = KeyEventsPlugin; - })($__require('38')); + })($__require('37')); global.define = __define; return module.exports; }); -$__System.registerDynamic("3e", ["3c", "3b"], true, function($__require, exports, module) { +$__System.registerDynamic("3d", ["3b", "3a"], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -9313,8 +9263,8 @@ $__System.registerDynamic("3e", ["3c", "3b"], true, function($__require, exports } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; - var event_manager_1 = $__require('3c'); - var collection_1 = $__require('3b'); + var event_manager_1 = $__require('3b'); + var collection_1 = $__require('3a'); var _eventNames = { 'pan': true, 'panstart': true, @@ -9362,7 +9312,7 @@ $__System.registerDynamic("3e", ["3c", "3b"], true, function($__require, exports return module.exports; }); -$__System.registerDynamic("3f", ["3e", "22", "40", "3d"], true, function($__require, exports, module) { +$__System.registerDynamic("3e", ["3d", "2b", "3f", "3c"], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -9393,10 +9343,10 @@ $__System.registerDynamic("3f", ["3e", "22", "40", "3d"], true, function($__requ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; - var hammer_common_1 = $__require('3e'); - var lang_1 = $__require('22'); - var exceptions_1 = $__require('40'); - var di_1 = $__require('3d'); + var hammer_common_1 = $__require('3d'); + var lang_1 = $__require('2b'); + var exceptions_1 = $__require('3f'); + var di_1 = $__require('3c'); var HammerGesturesPlugin = (function(_super) { __extends(HammerGesturesPlugin, _super); function HammerGesturesPlugin() { @@ -9413,15 +9363,19 @@ $__System.registerDynamic("3f", ["3e", "22", "40", "3d"], true, function($__requ HammerGesturesPlugin.prototype.addEventListener = function(element, eventName, handler) { var zone = this.manager.getZone(); eventName = eventName.toLowerCase(); - zone.runOutsideAngular(function() { + return zone.runOutsideAngular(function() { var mc = new Hammer(element); mc.get('pinch').set({enable: true}); mc.get('rotate').set({enable: true}); - mc.on(eventName, function(eventObj) { + var handler = function(eventObj) { zone.run(function() { handler(eventObj); }); - }); + }; + mc.on(eventName, handler); + return function() { + mc.off(eventName, handler); + }; }); }; HammerGesturesPlugin = __decorate([di_1.Injectable(), __metadata('design:paramtypes', [])], HammerGesturesPlugin); @@ -9432,7 +9386,7 @@ $__System.registerDynamic("3f", ["3e", "22", "40", "3d"], true, function($__requ return module.exports; }); -$__System.registerDynamic("41", ["3b", "22", "3a", "42"], true, function($__require, exports, module) { +$__System.registerDynamic("40", ["3a", "2b", "39", "41"], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -9447,10 +9401,10 @@ $__System.registerDynamic("41", ["3b", "22", "3a", "42"], true, function($__requ } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; - var collection_1 = $__require('3b'); - var lang_1 = $__require('22'); - var dom_adapter_1 = $__require('3a'); - var xhr_impl_1 = $__require('42'); + var collection_1 = $__require('3a'); + var lang_1 = $__require('2b'); + var dom_adapter_1 = $__require('39'); + var xhr_impl_1 = $__require('41'); var GenericBrowserDomAdapter = (function(_super) { __extends(GenericBrowserDomAdapter, _super); function GenericBrowserDomAdapter() { @@ -9518,7 +9472,7 @@ $__System.registerDynamic("41", ["3b", "22", "3a", "42"], true, function($__requ return module.exports; }); -$__System.registerDynamic("43", ["3b", "22", "3a", "41"], true, function($__require, exports, module) { +$__System.registerDynamic("42", ["3a", "2b", "39", "40"], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -9533,10 +9487,10 @@ $__System.registerDynamic("43", ["3b", "22", "3a", "41"], true, function($__requ } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; - var collection_1 = $__require('3b'); - var lang_1 = $__require('22'); - var dom_adapter_1 = $__require('3a'); - var generic_browser_adapter_1 = $__require('41'); + var collection_1 = $__require('3a'); + var lang_1 = $__require('2b'); + var dom_adapter_1 = $__require('39'); + var generic_browser_adapter_1 = $__require('40'); var _attrToPropMap = { 'class': 'className', 'innerHtml': 'innerHTML', @@ -10047,15 +10001,16 @@ $__System.registerDynamic("43", ["3b", "22", "3a", "41"], true, function($__requ return module.exports; }); -$__System.registerDynamic("44", ["22", "3a", "11"], true, function($__require, exports, module) { +$__System.registerDynamic("43", ["3a", "2b", "39", "14"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var lang_1 = $__require('22'); - var dom_adapter_1 = $__require('3a'); - var core_1 = $__require('11'); + var collection_1 = $__require('3a'); + var lang_1 = $__require('2b'); + var dom_adapter_1 = $__require('39'); + var core_1 = $__require('14'); var PublicTestability = (function() { function PublicTestability(testability) { this._testability = testability; @@ -10096,6 +10051,25 @@ $__System.registerDynamic("44", ["22", "3a", "11"], true, function($__require, e return new PublicTestability(testability); }); }; + var whenAllStable = function(callback) { + var testabilities = lang_1.global.getAllAngularTestabilities(); + var count = testabilities.length; + var didWork = false; + var decrement = function(didWork_) { + didWork = didWork || didWork_; + count--; + if (count == 0) { + callback(didWork); + } + }; + testabilities.forEach(function(testability) { + testability.whenStable(decrement); + }); + }; + if (!lang_1.global.frameworkStabilizers) { + lang_1.global.frameworkStabilizers = collection_1.ListWrapper.createGrowableSize(0); + } + lang_1.global.frameworkStabilizers.push(whenAllStable); }; BrowserGetTestability.prototype.findTestabilityInTree = function(registry, elem, findInAncestors) { if (elem == null) { @@ -10119,7 +10093,7 @@ $__System.registerDynamic("44", ["22", "3a", "11"], true, function($__require, e return module.exports; }); -$__System.registerDynamic("45", [], true, function($__require, exports, module) { +$__System.registerDynamic("44", [], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -10131,24 +10105,107 @@ $__System.registerDynamic("45", [], true, function($__require, exports, module) return module.exports; }); -$__System.registerDynamic("46", ["3a"], true, function($__require, exports, module) { +$__System.registerDynamic("45", ["39", "14", "3b"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var dom_adapter_1 = $__require('3a'); - var Title = (function() { - function Title() {} - Title.prototype.getTitle = function() { - return dom_adapter_1.DOM.getTitle(); + var __extends = (this && this.__extends) || function(d, b) { + for (var p in b) + if (b.hasOwnProperty(p)) + d[p] = b[p]; + function __() { + this.constructor = d; + } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; + var __decorate = (this && this.__decorate) || function(decorators, target, key, desc) { + var c = arguments.length, + r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, + d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") + r = Reflect.decorate(decorators, target, key, desc); + else + for (var i = decorators.length - 1; i >= 0; i--) + if (d = decorators[i]) + r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; + var __metadata = (this && this.__metadata) || function(k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") + return Reflect.metadata(k, v); + }; + var dom_adapter_1 = $__require('39'); + var core_1 = $__require('14'); + var event_manager_1 = $__require('3b'); + var DomEventsPlugin = (function(_super) { + __extends(DomEventsPlugin, _super); + function DomEventsPlugin() { + _super.apply(this, arguments); + } + DomEventsPlugin.prototype.supports = function(eventName) { + return true; }; - Title.prototype.setTitle = function(newTitle) { - dom_adapter_1.DOM.setTitle(newTitle); + DomEventsPlugin.prototype.addEventListener = function(element, eventName, handler) { + var zone = this.manager.getZone(); + var outsideHandler = function(event) { + return zone.run(function() { + return handler(event); + }); + }; + return this.manager.getZone().runOutsideAngular(function() { + return dom_adapter_1.DOM.onAndCancel(element, eventName, outsideHandler); + }); }; - return Title; + DomEventsPlugin.prototype.addGlobalEventListener = function(target, eventName, handler) { + var element = dom_adapter_1.DOM.getGlobalEventTarget(target); + var zone = this.manager.getZone(); + var outsideHandler = function(event) { + return zone.run(function() { + return handler(event); + }); + }; + return this.manager.getZone().runOutsideAngular(function() { + return dom_adapter_1.DOM.onAndCancel(element, eventName, outsideHandler); + }); + }; + DomEventsPlugin = __decorate([core_1.Injectable(), __metadata('design:paramtypes', [])], DomEventsPlugin); + return DomEventsPlugin; + })(event_manager_1.EventManagerPlugin); + exports.DomEventsPlugin = DomEventsPlugin; + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("46", ["2b", "39"], true, function($__require, exports, module) { + "use strict"; + ; + var global = this, + __define = global.define; + global.define = undefined; + var lang_1 = $__require('2b'); + var dom_adapter_1 = $__require('39'); + var By = (function() { + function By() {} + By.all = function() { + return function(debugElement) { + return true; + }; + }; + By.css = function(selector) { + return function(debugElement) { + return lang_1.isPresent(debugElement.nativeElement) ? dom_adapter_1.DOM.elementMatches(debugElement.nativeElement, selector) : false; + }; + }; + By.directive = function(type) { + return function(debugElement) { + return debugElement.providerTokens.indexOf(type) !== -1; + }; + }; + return By; })(); - exports.Title = Title; + exports.By = By; global.define = __define; return module.exports; }); @@ -10172,17 +10229,17 @@ $__System.registerDynamic("47", [], true, function($__require, exports, module) return module.exports; }); -$__System.registerDynamic("48", ["22", "49", "4a", "3b", "3a"], true, function($__require, exports, module) { +$__System.registerDynamic("48", ["2b", "49", "4a", "3a", "39"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var lang_1 = $__require('22'); + var lang_1 = $__require('2b'); var math_1 = $__require('49'); var util_1 = $__require('4a'); - var collection_1 = $__require('3b'); - var dom_adapter_1 = $__require('3a'); + var collection_1 = $__require('3a'); + var dom_adapter_1 = $__require('39'); var Animation = (function() { function Animation(element, data, browserDetails) { var _this = this; @@ -10370,20 +10427,20 @@ $__System.registerDynamic("4b", ["47", "48"], true, function($__require, exports return module.exports; }); -$__System.registerDynamic("49", ["22"], true, function($__require, exports, module) { +$__System.registerDynamic("49", ["2b"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var lang_1 = $__require('22'); + var lang_1 = $__require('2b'); exports.Math = lang_1.global.Math; exports.NaN = typeof exports.NaN; global.define = __define; return module.exports; }); -$__System.registerDynamic("4c", ["3d", "49", "3a"], true, function($__require, exports, module) { +$__System.registerDynamic("4c", ["3c", "49", "39"], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -10405,9 +10462,9 @@ $__System.registerDynamic("4c", ["3d", "49", "3a"], true, function($__require, e if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; - var di_1 = $__require('3d'); + var di_1 = $__require('3c'); var math_1 = $__require('49'); - var dom_adapter_1 = $__require('3a'); + var dom_adapter_1 = $__require('39'); var BrowserDetails = (function() { function BrowserDetails() { this.elapsedTimeIncludesDelay = false; @@ -10469,7 +10526,7 @@ $__System.registerDynamic("4c", ["3d", "49", "3a"], true, function($__require, e return module.exports; }); -$__System.registerDynamic("4d", ["3d", "4b", "4c"], true, function($__require, exports, module) { +$__System.registerDynamic("4d", ["3c", "4b", "4c"], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -10491,7 +10548,7 @@ $__System.registerDynamic("4d", ["3d", "4b", "4c"], true, function($__require, e if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; - var di_1 = $__require('3d'); + var di_1 = $__require('3c'); var css_animation_builder_1 = $__require('4b'); var browser_details_1 = $__require('4c'); var AnimationBuilder = (function() { @@ -10509,32 +10566,7 @@ $__System.registerDynamic("4d", ["3d", "4b", "4c"], true, function($__require, e return module.exports; }); -$__System.registerDynamic("4a", ["22"], true, function($__require, exports, module) { - "use strict"; - ; - var global = this, - __define = global.define; - global.define = undefined; - var lang_1 = $__require('22'); - var CAMEL_CASE_REGEXP = /([A-Z])/g; - var DASH_CASE_REGEXP = /-([a-z])/g; - function camelCaseToDashCase(input) { - return lang_1.StringWrapper.replaceAllMapped(input, CAMEL_CASE_REGEXP, function(m) { - return '-' + m[1].toLowerCase(); - }); - } - exports.camelCaseToDashCase = camelCaseToDashCase; - function dashCaseToCamelCase(input) { - return lang_1.StringWrapper.replaceAllMapped(input, DASH_CASE_REGEXP, function(m) { - return m[1].toUpperCase(); - }); - } - exports.dashCaseToCamelCase = dashCaseToCamelCase; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("4e", ["3d", "4d", "22", "40", "4f", "50", "11", "3c", "51", "52", "53", "54", "3a", "4a"], true, function($__require, exports, module) { +$__System.registerDynamic("4e", ["39", "3c", "3a", "4f"], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -10570,355 +10602,10 @@ $__System.registerDynamic("4e", ["3d", "4d", "22", "40", "4f", "50", "11", "3c", decorator(target, key, paramIndex); }; }; - var di_1 = $__require('3d'); - var animation_builder_1 = $__require('4d'); - var lang_1 = $__require('22'); - var exceptions_1 = $__require('40'); - var shared_styles_host_1 = $__require('4f'); - var profile_1 = $__require('50'); - var core_1 = $__require('11'); - var event_manager_1 = $__require('3c'); - var dom_tokens_1 = $__require('51'); - var view_factory_1 = $__require('52'); - var view_1 = $__require('53'); - var metadata_1 = $__require('54'); - var dom_adapter_1 = $__require('3a'); - var util_1 = $__require('4a'); - var NAMESPACE_URIS = lang_1.CONST_EXPR({ - 'xlink': 'http://www.w3.org/1999/xlink', - 'svg': 'http://www.w3.org/2000/svg' - }); - var TEMPLATE_COMMENT_TEXT = 'template bindings={}'; - var TEMPLATE_BINDINGS_EXP = /^template bindings=(.*)$/g; - var DomRenderer = (function(_super) { - __extends(DomRenderer, _super); - function DomRenderer() { - _super.apply(this, arguments); - } - DomRenderer.prototype.getNativeElementSync = function(location) { - return resolveInternalDomView(location.renderView).boundElements[location.boundElementIndex]; - }; - DomRenderer.prototype.getRootNodes = function(fragment) { - return resolveInternalDomFragment(fragment); - }; - DomRenderer.prototype.attachFragmentAfterFragment = function(previousFragmentRef, fragmentRef) { - var previousFragmentNodes = resolveInternalDomFragment(previousFragmentRef); - if (previousFragmentNodes.length > 0) { - var sibling = previousFragmentNodes[previousFragmentNodes.length - 1]; - var nodes = resolveInternalDomFragment(fragmentRef); - moveNodesAfterSibling(sibling, nodes); - this.animateNodesEnter(nodes); - } - }; - DomRenderer.prototype.animateNodesEnter = function(nodes) { - for (var i = 0; i < nodes.length; i++) - this.animateNodeEnter(nodes[i]); - }; - DomRenderer.prototype.attachFragmentAfterElement = function(elementRef, fragmentRef) { - var parentView = resolveInternalDomView(elementRef.renderView); - var element = parentView.boundElements[elementRef.boundElementIndex]; - var nodes = resolveInternalDomFragment(fragmentRef); - moveNodesAfterSibling(element, nodes); - this.animateNodesEnter(nodes); - }; - DomRenderer.prototype.hydrateView = function(viewRef) { - resolveInternalDomView(viewRef).hydrate(); - }; - DomRenderer.prototype.dehydrateView = function(viewRef) { - resolveInternalDomView(viewRef).dehydrate(); - }; - DomRenderer.prototype.createTemplateAnchor = function(attrNameAndValues) { - return dom_adapter_1.DOM.createComment(TEMPLATE_COMMENT_TEXT); - }; - DomRenderer.prototype.createText = function(value) { - return dom_adapter_1.DOM.createTextNode(lang_1.isPresent(value) ? value : ''); - }; - DomRenderer.prototype.appendChild = function(parent, child) { - dom_adapter_1.DOM.appendChild(parent, child); - }; - DomRenderer.prototype.setElementProperty = function(location, propertyName, propertyValue) { - var view = resolveInternalDomView(location.renderView); - dom_adapter_1.DOM.setProperty(view.boundElements[location.boundElementIndex], propertyName, propertyValue); - }; - DomRenderer.prototype.setElementAttribute = function(location, attributeName, attributeValue) { - var view = resolveInternalDomView(location.renderView); - var element = view.boundElements[location.boundElementIndex]; - if (lang_1.isPresent(attributeValue)) { - dom_adapter_1.DOM.setAttribute(element, attributeName, lang_1.stringify(attributeValue)); - } else { - dom_adapter_1.DOM.removeAttribute(element, attributeName); - } - }; - DomRenderer.prototype.setBindingDebugInfo = function(location, propertyName, propertyValue) { - var view = resolveInternalDomView(location.renderView); - var element = view.boundElements[location.boundElementIndex]; - var dashCasedPropertyName = util_1.camelCaseToDashCase(propertyName); - if (dom_adapter_1.DOM.isCommentNode(element)) { - var existingBindings = lang_1.RegExpWrapper.firstMatch(TEMPLATE_BINDINGS_EXP, lang_1.StringWrapper.replaceAll(dom_adapter_1.DOM.getText(element), /\n/g, '')); - var parsedBindings = lang_1.Json.parse(existingBindings[1]); - parsedBindings[dashCasedPropertyName] = propertyValue; - dom_adapter_1.DOM.setText(element, lang_1.StringWrapper.replace(TEMPLATE_COMMENT_TEXT, '{}', lang_1.Json.stringify(parsedBindings))); - } else { - this.setElementAttribute(location, propertyName, propertyValue); - } - }; - DomRenderer.prototype.setElementClass = function(location, className, isAdd) { - var view = resolveInternalDomView(location.renderView); - var element = view.boundElements[location.boundElementIndex]; - if (isAdd) { - dom_adapter_1.DOM.addClass(element, className); - } else { - dom_adapter_1.DOM.removeClass(element, className); - } - }; - DomRenderer.prototype.setElementStyle = function(location, styleName, styleValue) { - var view = resolveInternalDomView(location.renderView); - var element = view.boundElements[location.boundElementIndex]; - if (lang_1.isPresent(styleValue)) { - dom_adapter_1.DOM.setStyle(element, styleName, lang_1.stringify(styleValue)); - } else { - dom_adapter_1.DOM.removeStyle(element, styleName); - } - }; - DomRenderer.prototype.invokeElementMethod = function(location, methodName, args) { - var view = resolveInternalDomView(location.renderView); - var element = view.boundElements[location.boundElementIndex]; - dom_adapter_1.DOM.invoke(element, methodName, args); - }; - DomRenderer.prototype.setText = function(viewRef, textNodeIndex, text) { - var view = resolveInternalDomView(viewRef); - dom_adapter_1.DOM.setText(view.boundTextNodes[textNodeIndex], text); - }; - DomRenderer.prototype.setEventDispatcher = function(viewRef, dispatcher) { - resolveInternalDomView(viewRef).setEventDispatcher(dispatcher); - }; - return DomRenderer; - })(core_1.Renderer); - exports.DomRenderer = DomRenderer; - var DomRenderer_ = (function(_super) { - __extends(DomRenderer_, _super); - function DomRenderer_(_eventManager, _domSharedStylesHost, _animate, document) { - _super.call(this); - this._eventManager = _eventManager; - this._domSharedStylesHost = _domSharedStylesHost; - this._animate = _animate; - this._componentTpls = new Map(); - this._createRootHostViewScope = profile_1.wtfCreateScope('DomRenderer#createRootHostView()'); - this._createViewScope = profile_1.wtfCreateScope('DomRenderer#createView()'); - this._detachFragmentScope = profile_1.wtfCreateScope('DomRenderer#detachFragment()'); - this._document = document; - } - DomRenderer_.prototype.registerComponentTemplate = function(template) { - this._componentTpls.set(template.id, template); - if (template.encapsulation !== metadata_1.ViewEncapsulation.Native) { - var encapsulatedStyles = view_factory_1.encapsulateStyles(template); - this._domSharedStylesHost.addStyles(encapsulatedStyles); - } - }; - DomRenderer_.prototype.createProtoView = function(componentTemplateId, cmds) { - return new view_1.DefaultProtoViewRef(this._componentTpls.get(componentTemplateId), cmds); - }; - DomRenderer_.prototype.resolveComponentTemplate = function(templateId) { - return this._componentTpls.get(templateId); - }; - DomRenderer_.prototype.createRootHostView = function(hostProtoViewRef, fragmentCount, hostElementSelector) { - var s = this._createRootHostViewScope(); - var element = dom_adapter_1.DOM.querySelector(this._document, hostElementSelector); - if (lang_1.isBlank(element)) { - profile_1.wtfLeave(s); - throw new exceptions_1.BaseException("The selector \"" + hostElementSelector + "\" did not match any elements"); - } - return profile_1.wtfLeave(s, this._createView(hostProtoViewRef, element)); - }; - DomRenderer_.prototype.createView = function(protoViewRef, fragmentCount) { - var s = this._createViewScope(); - return profile_1.wtfLeave(s, this._createView(protoViewRef, null)); - }; - DomRenderer_.prototype._createView = function(protoViewRef, inplaceElement) { - var dpvr = protoViewRef; - var view = view_factory_1.createRenderView(dpvr.template, dpvr.cmds, inplaceElement, this); - var sdRoots = view.nativeShadowRoots; - for (var i = 0; i < sdRoots.length; i++) { - this._domSharedStylesHost.addHost(sdRoots[i]); - } - return new core_1.RenderViewWithFragments(view, view.fragments); - }; - DomRenderer_.prototype.destroyView = function(viewRef) { - var view = viewRef; - var sdRoots = view.nativeShadowRoots; - for (var i = 0; i < sdRoots.length; i++) { - this._domSharedStylesHost.removeHost(sdRoots[i]); - } - }; - DomRenderer_.prototype.animateNodeEnter = function(node) { - if (dom_adapter_1.DOM.isElementNode(node) && dom_adapter_1.DOM.hasClass(node, 'ng-animate')) { - dom_adapter_1.DOM.addClass(node, 'ng-enter'); - this._animate.css().addAnimationClass('ng-enter-active').start(node).onComplete(function() { - dom_adapter_1.DOM.removeClass(node, 'ng-enter'); - }); - } - }; - DomRenderer_.prototype.animateNodeLeave = function(node) { - if (dom_adapter_1.DOM.isElementNode(node) && dom_adapter_1.DOM.hasClass(node, 'ng-animate')) { - dom_adapter_1.DOM.addClass(node, 'ng-leave'); - this._animate.css().addAnimationClass('ng-leave-active').start(node).onComplete(function() { - dom_adapter_1.DOM.removeClass(node, 'ng-leave'); - dom_adapter_1.DOM.remove(node); - }); - } else { - dom_adapter_1.DOM.remove(node); - } - }; - DomRenderer_.prototype.detachFragment = function(fragmentRef) { - var s = this._detachFragmentScope(); - var fragmentNodes = resolveInternalDomFragment(fragmentRef); - for (var i = 0; i < fragmentNodes.length; i++) { - this.animateNodeLeave(fragmentNodes[i]); - } - profile_1.wtfLeave(s); - }; - DomRenderer_.prototype.createElement = function(name, attrNameAndValues) { - var nsAndName = splitNamespace(name); - var el = lang_1.isPresent(nsAndName[0]) ? dom_adapter_1.DOM.createElementNS(NAMESPACE_URIS[nsAndName[0]], nsAndName[1]) : dom_adapter_1.DOM.createElement(nsAndName[1]); - this._setAttributes(el, attrNameAndValues); - return el; - }; - DomRenderer_.prototype.mergeElement = function(existing, attrNameAndValues) { - dom_adapter_1.DOM.clearNodes(existing); - this._setAttributes(existing, attrNameAndValues); - }; - DomRenderer_.prototype._setAttributes = function(node, attrNameAndValues) { - for (var attrIdx = 0; attrIdx < attrNameAndValues.length; attrIdx += 2) { - var attrNs; - var attrName = attrNameAndValues[attrIdx]; - var nsAndName = splitNamespace(attrName); - if (lang_1.isPresent(nsAndName[0])) { - attrName = nsAndName[0] + ':' + nsAndName[1]; - attrNs = NAMESPACE_URIS[nsAndName[0]]; - } - var attrValue = attrNameAndValues[attrIdx + 1]; - if (lang_1.isPresent(attrNs)) { - dom_adapter_1.DOM.setAttributeNS(node, attrNs, attrName, attrValue); - } else { - dom_adapter_1.DOM.setAttribute(node, nsAndName[1], attrValue); - } - } - }; - DomRenderer_.prototype.createRootContentInsertionPoint = function() { - return dom_adapter_1.DOM.createComment('root-content-insertion-point'); - }; - DomRenderer_.prototype.createShadowRoot = function(host, templateId) { - var sr = dom_adapter_1.DOM.createShadowRoot(host); - var tpl = this._componentTpls.get(templateId); - for (var i = 0; i < tpl.styles.length; i++) { - dom_adapter_1.DOM.appendChild(sr, dom_adapter_1.DOM.createStyleElement(tpl.styles[i])); - } - return sr; - }; - DomRenderer_.prototype.on = function(element, eventName, callback) { - this._eventManager.addEventListener(element, eventName, decoratePreventDefault(callback)); - }; - DomRenderer_.prototype.globalOn = function(target, eventName, callback) { - return this._eventManager.addGlobalEventListener(target, eventName, decoratePreventDefault(callback)); - }; - DomRenderer_ = __decorate([di_1.Injectable(), __param(3, di_1.Inject(dom_tokens_1.DOCUMENT)), __metadata('design:paramtypes', [event_manager_1.EventManager, shared_styles_host_1.DomSharedStylesHost, animation_builder_1.AnimationBuilder, Object])], DomRenderer_); - return DomRenderer_; - })(DomRenderer); - exports.DomRenderer_ = DomRenderer_; - function resolveInternalDomView(viewRef) { - return viewRef; - } - function resolveInternalDomFragment(fragmentRef) { - return fragmentRef.nodes; - } - function moveNodesAfterSibling(sibling, nodes) { - var parent = dom_adapter_1.DOM.parentElement(sibling); - if (nodes.length > 0 && lang_1.isPresent(parent)) { - var nextSibling = dom_adapter_1.DOM.nextSibling(sibling); - if (lang_1.isPresent(nextSibling)) { - for (var i = 0; i < nodes.length; i++) { - dom_adapter_1.DOM.insertBefore(nextSibling, nodes[i]); - } - } else { - for (var i = 0; i < nodes.length; i++) { - dom_adapter_1.DOM.appendChild(parent, nodes[i]); - } - } - } - } - function decoratePreventDefault(eventHandler) { - return function(event) { - var allowDefaultBehavior = eventHandler(event); - if (!allowDefaultBehavior) { - dom_adapter_1.DOM.preventDefault(event); - } - }; - } - var NS_PREFIX_RE = /^@([^:]+):(.+)/g; - function splitNamespace(name) { - if (name[0] != '@') { - return [null, name]; - } - var match = lang_1.RegExpWrapper.firstMatch(NS_PREFIX_RE, name); - return [match[1], match[2]]; - } - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("51", ["3d", "22"], true, function($__require, exports, module) { - "use strict"; - ; - var global = this, - __define = global.define; - global.define = undefined; - var di_1 = $__require('3d'); - var lang_1 = $__require('22'); - exports.DOCUMENT = lang_1.CONST_EXPR(new di_1.OpaqueToken('DocumentToken')); - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("4f", ["3a", "3d", "3b", "51"], true, function($__require, exports, module) { - "use strict"; - ; - var global = this, - __define = global.define; - global.define = undefined; - var __extends = (this && this.__extends) || function(d, b) { - for (var p in b) - if (b.hasOwnProperty(p)) - d[p] = b[p]; - function __() { - this.constructor = d; - } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; - var __decorate = (this && this.__decorate) || function(decorators, target, key, desc) { - var c = arguments.length, - r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, - d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") - r = Reflect.decorate(decorators, target, key, desc); - else - for (var i = decorators.length - 1; i >= 0; i--) - if (d = decorators[i]) - r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; - }; - var __metadata = (this && this.__metadata) || function(k, v) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") - return Reflect.metadata(k, v); - }; - var __param = (this && this.__param) || function(paramIndex, decorator) { - return function(target, key) { - decorator(target, key, paramIndex); - }; - }; - var dom_adapter_1 = $__require('3a'); - var di_1 = $__require('3d'); - var collection_1 = $__require('3b'); - var dom_tokens_1 = $__require('51'); + var dom_adapter_1 = $__require('39'); + var di_1 = $__require('3c'); + var collection_1 = $__require('3a'); + var dom_tokens_1 = $__require('4f'); var SharedStylesHost = (function() { function SharedStylesHost() { this._styles = []; @@ -10978,80 +10665,7 @@ $__System.registerDynamic("4f", ["3a", "3d", "3b", "51"], true, function($__requ return module.exports; }); -$__System.registerDynamic("55", ["3a", "11", "3c"], true, function($__require, exports, module) { - "use strict"; - ; - var global = this, - __define = global.define; - global.define = undefined; - var __extends = (this && this.__extends) || function(d, b) { - for (var p in b) - if (b.hasOwnProperty(p)) - d[p] = b[p]; - function __() { - this.constructor = d; - } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; - var __decorate = (this && this.__decorate) || function(decorators, target, key, desc) { - var c = arguments.length, - r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, - d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") - r = Reflect.decorate(decorators, target, key, desc); - else - for (var i = decorators.length - 1; i >= 0; i--) - if (d = decorators[i]) - r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; - }; - var __metadata = (this && this.__metadata) || function(k, v) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") - return Reflect.metadata(k, v); - }; - var dom_adapter_1 = $__require('3a'); - var core_1 = $__require('11'); - var event_manager_1 = $__require('3c'); - var DomEventsPlugin = (function(_super) { - __extends(DomEventsPlugin, _super); - function DomEventsPlugin() { - _super.apply(this, arguments); - } - DomEventsPlugin.prototype.supports = function(eventName) { - return true; - }; - DomEventsPlugin.prototype.addEventListener = function(element, eventName, handler) { - var zone = this.manager.getZone(); - var outsideHandler = function(event) { - return zone.run(function() { - return handler(event); - }); - }; - this.manager.getZone().runOutsideAngular(function() { - dom_adapter_1.DOM.on(element, eventName, outsideHandler); - }); - }; - DomEventsPlugin.prototype.addGlobalEventListener = function(target, eventName, handler) { - var element = dom_adapter_1.DOM.getGlobalEventTarget(target); - var zone = this.manager.getZone(); - var outsideHandler = function(event) { - return zone.run(function() { - return handler(event); - }); - }; - return this.manager.getZone().runOutsideAngular(function() { - return dom_adapter_1.DOM.onAndCancel(element, eventName, outsideHandler); - }); - }; - DomEventsPlugin = __decorate([core_1.Injectable(), __metadata('design:paramtypes', [])], DomEventsPlugin); - return DomEventsPlugin; - })(event_manager_1.EventManagerPlugin); - exports.DomEventsPlugin = DomEventsPlugin; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("3c", ["22", "40", "3d", "56", "3b"], true, function($__require, exports, module) { +$__System.registerDynamic("3b", ["2b", "3f", "3c", "50", "3a"], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -11078,11 +10692,11 @@ $__System.registerDynamic("3c", ["22", "40", "3d", "56", "3b"], true, function($ decorator(target, key, paramIndex); }; }; - var lang_1 = $__require('22'); - var exceptions_1 = $__require('40'); - var di_1 = $__require('3d'); - var ng_zone_1 = $__require('56'); - var collection_1 = $__require('3b'); + var lang_1 = $__require('2b'); + var exceptions_1 = $__require('3f'); + var di_1 = $__require('3c'); + var ng_zone_1 = $__require('50'); + var collection_1 = $__require('3a'); exports.EVENT_MANAGER_PLUGINS = lang_1.CONST_EXPR(new di_1.OpaqueToken("EventManagerPlugins")); var EventManager = (function() { function EventManager(plugins, _zone) { @@ -11095,7 +10709,7 @@ $__System.registerDynamic("3c", ["22", "40", "3d", "56", "3b"], true, function($ } EventManager.prototype.addEventListener = function(element, eventName, handler) { var plugin = this._findPluginFor(eventName); - plugin.addEventListener(element, eventName, handler); + return plugin.addEventListener(element, eventName, handler); }; EventManager.prototype.addGlobalEventListener = function(target, eventName, handler) { var plugin = this._findPluginFor(eventName); @@ -11136,44 +10750,59 @@ $__System.registerDynamic("3c", ["22", "40", "3d", "56", "3b"], true, function($ return module.exports; }); -$__System.registerDynamic("57", ["22", "3a"], true, function($__require, exports, module) { +$__System.registerDynamic("4f", ["3c", "2b"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var lang_1 = $__require('22'); - var dom_adapter_1 = $__require('3a'); - var By = (function() { - function By() {} - By.all = function() { - return function(debugElement) { - return true; - }; - }; - By.css = function(selector) { - return function(debugElement) { - return lang_1.isPresent(debugElement.nativeElement) ? dom_adapter_1.DOM.elementMatches(debugElement.nativeElement, selector) : false; - }; - }; - By.directive = function(type) { - return function(debugElement) { - return debugElement.hasDirective(type); - }; - }; - return By; - })(); - exports.By = By; + var di_1 = $__require('3c'); + var lang_1 = $__require('2b'); + exports.DOCUMENT = lang_1.CONST_EXPR(new di_1.OpaqueToken('DocumentToken')); global.define = __define; return module.exports; }); -$__System.registerDynamic("58", ["22", "3b", "3d", "59", "3a", "5a", "5b"], true, function($__require, exports, module) { +$__System.registerDynamic("4a", ["2b"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; + var lang_1 = $__require('2b'); + var CAMEL_CASE_REGEXP = /([A-Z])/g; + var DASH_CASE_REGEXP = /-([a-z])/g; + function camelCaseToDashCase(input) { + return lang_1.StringWrapper.replaceAllMapped(input, CAMEL_CASE_REGEXP, function(m) { + return '-' + m[1].toLowerCase(); + }); + } + exports.camelCaseToDashCase = camelCaseToDashCase; + function dashCaseToCamelCase(input) { + return lang_1.StringWrapper.replaceAllMapped(input, DASH_CASE_REGEXP, function(m) { + return m[1].toUpperCase(); + }); + } + exports.dashCaseToCamelCase = dashCaseToCamelCase; + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("51", ["3c", "4d", "2b", "3f", "4e", "3b", "4f", "52", "39", "4a"], true, function($__require, exports, module) { + "use strict"; + ; + var global = this, + __define = global.define; + global.define = undefined; + var __extends = (this && this.__extends) || function(d, b) { + for (var p in b) + if (b.hasOwnProperty(p)) + d[p] = b[p]; + function __() { + this.constructor = d; + } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; var __decorate = (this && this.__decorate) || function(decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, @@ -11190,75 +10819,471 @@ $__System.registerDynamic("58", ["22", "3b", "3d", "59", "3a", "5a", "5b"], true if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; - var lang_1 = $__require('22'); - var collection_1 = $__require('3b'); - var di_1 = $__require('3d'); - var view_listener_1 = $__require('59'); - var dom_adapter_1 = $__require('3a'); - var api_1 = $__require('5a'); - var debug_element_1 = $__require('5b'); - var NG_ID_PROPERTY = 'ngid'; - var INSPECT_GLOBAL_NAME = 'ng.probe'; - var NG_ID_SEPARATOR = '#'; - var _allIdsByView = new collection_1.Map(); - var _allViewsById = new collection_1.Map(); - var _nextId = 0; - function _setElementId(element, indices) { - if (lang_1.isPresent(element) && dom_adapter_1.DOM.isElementNode(element)) { - dom_adapter_1.DOM.setData(element, NG_ID_PROPERTY, indices.join(NG_ID_SEPARATOR)); - } - } - function _getElementId(element) { - var elId = dom_adapter_1.DOM.getData(element, NG_ID_PROPERTY); - if (lang_1.isPresent(elId)) { - return elId.split(NG_ID_SEPARATOR).map(function(partStr) { - return lang_1.NumberWrapper.parseInt(partStr, 10); - }); - } else { - return null; - } - } - function inspectNativeElement(element) { - var elId = _getElementId(element); - if (lang_1.isPresent(elId)) { - var view = _allViewsById.get(elId[0]); - if (lang_1.isPresent(view)) { - return new debug_element_1.DebugElement_(view, elId[1]); - } - } - return null; - } - exports.inspectNativeElement = inspectNativeElement; - var DebugElementViewListener = (function() { - function DebugElementViewListener(_renderer) { - this._renderer = _renderer; - dom_adapter_1.DOM.setGlobalVar(INSPECT_GLOBAL_NAME, inspectNativeElement); - } - DebugElementViewListener.prototype.onViewCreated = function(view) { - var viewId = _nextId++; - _allViewsById.set(viewId, view); - _allIdsByView.set(view, viewId); - for (var i = 0; i < view.elementRefs.length; i++) { - var el = view.elementRefs[i]; - _setElementId(this._renderer.getNativeElementSync(el), [viewId, i]); - } + var __param = (this && this.__param) || function(paramIndex, decorator) { + return function(target, key) { + decorator(target, key, paramIndex); }; - DebugElementViewListener.prototype.onViewDestroyed = function(view) { - var viewId = _allIdsByView.get(view); - _allIdsByView.delete(view); - _allViewsById.delete(viewId); + }; + var di_1 = $__require('3c'); + var animation_builder_1 = $__require('4d'); + var lang_1 = $__require('2b'); + var exceptions_1 = $__require('3f'); + var shared_styles_host_1 = $__require('4e'); + var event_manager_1 = $__require('3b'); + var dom_tokens_1 = $__require('4f'); + var metadata_1 = $__require('52'); + var dom_adapter_1 = $__require('39'); + var util_1 = $__require('4a'); + var NAMESPACE_URIS = lang_1.CONST_EXPR({ + 'xlink': 'http://www.w3.org/1999/xlink', + 'svg': 'http://www.w3.org/2000/svg' + }); + var TEMPLATE_COMMENT_TEXT = 'template bindings={}'; + var TEMPLATE_BINDINGS_EXP = /^template bindings=(.*)$/g; + var DomRootRenderer = (function() { + function DomRootRenderer(document, eventManager, sharedStylesHost, animate) { + this.document = document; + this.eventManager = eventManager; + this.sharedStylesHost = sharedStylesHost; + this.animate = animate; + this._registeredComponents = new Map(); + } + DomRootRenderer.prototype.renderComponent = function(componentProto) { + var renderer = this._registeredComponents.get(componentProto.id); + if (lang_1.isBlank(renderer)) { + renderer = new DomRenderer(this, componentProto); + this._registeredComponents.set(componentProto.id, renderer); + } + return renderer; }; - DebugElementViewListener = __decorate([di_1.Injectable(), __metadata('design:paramtypes', [api_1.Renderer])], DebugElementViewListener); - return DebugElementViewListener; + return DomRootRenderer; })(); - exports.DebugElementViewListener = DebugElementViewListener; - exports.ELEMENT_PROBE_PROVIDERS = lang_1.CONST_EXPR([DebugElementViewListener, lang_1.CONST_EXPR(new di_1.Provider(view_listener_1.AppViewListener, {useExisting: DebugElementViewListener}))]); - exports.ELEMENT_PROBE_BINDINGS = exports.ELEMENT_PROBE_PROVIDERS; + exports.DomRootRenderer = DomRootRenderer; + var DomRootRenderer_ = (function(_super) { + __extends(DomRootRenderer_, _super); + function DomRootRenderer_(_document, _eventManager, sharedStylesHost, animate) { + _super.call(this, _document, _eventManager, sharedStylesHost, animate); + } + DomRootRenderer_ = __decorate([di_1.Injectable(), __param(0, di_1.Inject(dom_tokens_1.DOCUMENT)), __metadata('design:paramtypes', [Object, event_manager_1.EventManager, shared_styles_host_1.DomSharedStylesHost, animation_builder_1.AnimationBuilder])], DomRootRenderer_); + return DomRootRenderer_; + })(DomRootRenderer); + exports.DomRootRenderer_ = DomRootRenderer_; + var DomRenderer = (function() { + function DomRenderer(_rootRenderer, componentProto) { + this._rootRenderer = _rootRenderer; + this.componentProto = componentProto; + this._styles = _flattenStyles(componentProto.id, componentProto.styles, []); + if (componentProto.encapsulation !== metadata_1.ViewEncapsulation.Native) { + this._rootRenderer.sharedStylesHost.addStyles(this._styles); + } + if (this.componentProto.encapsulation === metadata_1.ViewEncapsulation.Emulated) { + this._contentAttr = _shimContentAttribute(componentProto.id); + this._hostAttr = _shimHostAttribute(componentProto.id); + } else { + this._contentAttr = null; + this._hostAttr = null; + } + } + DomRenderer.prototype.renderComponent = function(componentProto) { + return this._rootRenderer.renderComponent(componentProto); + }; + DomRenderer.prototype.selectRootElement = function(selector) { + var el = dom_adapter_1.DOM.querySelector(this._rootRenderer.document, selector); + if (lang_1.isBlank(el)) { + throw new exceptions_1.BaseException("The selector \"" + selector + "\" did not match any elements"); + } + dom_adapter_1.DOM.clearNodes(el); + return el; + }; + DomRenderer.prototype.createElement = function(parent, name) { + var nsAndName = splitNamespace(name); + var el = lang_1.isPresent(nsAndName[0]) ? dom_adapter_1.DOM.createElementNS(NAMESPACE_URIS[nsAndName[0]], nsAndName[1]) : dom_adapter_1.DOM.createElement(nsAndName[1]); + if (lang_1.isPresent(this._contentAttr)) { + dom_adapter_1.DOM.setAttribute(el, this._contentAttr, ''); + } + if (lang_1.isPresent(parent)) { + dom_adapter_1.DOM.appendChild(parent, el); + } + return el; + }; + DomRenderer.prototype.createViewRoot = function(hostElement) { + var nodesParent; + if (this.componentProto.encapsulation === metadata_1.ViewEncapsulation.Native) { + nodesParent = dom_adapter_1.DOM.createShadowRoot(hostElement); + this._rootRenderer.sharedStylesHost.addHost(nodesParent); + for (var i = 0; i < this._styles.length; i++) { + dom_adapter_1.DOM.appendChild(nodesParent, dom_adapter_1.DOM.createStyleElement(this._styles[i])); + } + } else { + if (lang_1.isPresent(this._hostAttr)) { + dom_adapter_1.DOM.setAttribute(hostElement, this._hostAttr, ''); + } + nodesParent = hostElement; + } + return nodesParent; + }; + DomRenderer.prototype.createTemplateAnchor = function(parentElement) { + var comment = dom_adapter_1.DOM.createComment(TEMPLATE_COMMENT_TEXT); + if (lang_1.isPresent(parentElement)) { + dom_adapter_1.DOM.appendChild(parentElement, comment); + } + return comment; + }; + DomRenderer.prototype.createText = function(parentElement, value) { + var node = dom_adapter_1.DOM.createTextNode(value); + if (lang_1.isPresent(parentElement)) { + dom_adapter_1.DOM.appendChild(parentElement, node); + } + return node; + }; + DomRenderer.prototype.projectNodes = function(parentElement, nodes) { + if (lang_1.isBlank(parentElement)) + return; + appendNodes(parentElement, nodes); + }; + DomRenderer.prototype.attachViewAfter = function(node, viewRootNodes) { + moveNodesAfterSibling(node, viewRootNodes); + for (var i = 0; i < viewRootNodes.length; i++) + this.animateNodeEnter(viewRootNodes[i]); + }; + DomRenderer.prototype.detachView = function(viewRootNodes) { + for (var i = 0; i < viewRootNodes.length; i++) { + var node = viewRootNodes[i]; + dom_adapter_1.DOM.remove(node); + this.animateNodeLeave(node); + } + }; + DomRenderer.prototype.destroyView = function(hostElement, viewAllNodes) { + if (this.componentProto.encapsulation === metadata_1.ViewEncapsulation.Native && lang_1.isPresent(hostElement)) { + this._rootRenderer.sharedStylesHost.removeHost(dom_adapter_1.DOM.getShadowRoot(hostElement)); + } + }; + DomRenderer.prototype.listen = function(renderElement, name, callback) { + return this._rootRenderer.eventManager.addEventListener(renderElement, name, decoratePreventDefault(callback)); + }; + DomRenderer.prototype.listenGlobal = function(target, name, callback) { + return this._rootRenderer.eventManager.addGlobalEventListener(target, name, decoratePreventDefault(callback)); + }; + DomRenderer.prototype.setElementProperty = function(renderElement, propertyName, propertyValue) { + dom_adapter_1.DOM.setProperty(renderElement, propertyName, propertyValue); + }; + DomRenderer.prototype.setElementAttribute = function(renderElement, attributeName, attributeValue) { + var attrNs; + var nsAndName = splitNamespace(attributeName); + if (lang_1.isPresent(nsAndName[0])) { + attributeName = nsAndName[0] + ':' + nsAndName[1]; + attrNs = NAMESPACE_URIS[nsAndName[0]]; + } + if (lang_1.isPresent(attributeValue)) { + if (lang_1.isPresent(attrNs)) { + dom_adapter_1.DOM.setAttributeNS(renderElement, attrNs, attributeName, attributeValue); + } else { + dom_adapter_1.DOM.setAttribute(renderElement, nsAndName[1], attributeValue); + } + } else { + dom_adapter_1.DOM.removeAttribute(renderElement, attributeName); + } + }; + DomRenderer.prototype.setBindingDebugInfo = function(renderElement, propertyName, propertyValue) { + var dashCasedPropertyName = util_1.camelCaseToDashCase(propertyName); + if (dom_adapter_1.DOM.isCommentNode(renderElement)) { + var existingBindings = lang_1.RegExpWrapper.firstMatch(TEMPLATE_BINDINGS_EXP, lang_1.StringWrapper.replaceAll(dom_adapter_1.DOM.getText(renderElement), /\n/g, '')); + var parsedBindings = lang_1.Json.parse(existingBindings[1]); + parsedBindings[dashCasedPropertyName] = propertyValue; + dom_adapter_1.DOM.setText(renderElement, lang_1.StringWrapper.replace(TEMPLATE_COMMENT_TEXT, '{}', lang_1.Json.stringify(parsedBindings))); + } else { + this.setElementAttribute(renderElement, propertyName, propertyValue); + } + }; + DomRenderer.prototype.setElementDebugInfo = function(renderElement, info) {}; + DomRenderer.prototype.setElementClass = function(renderElement, className, isAdd) { + if (isAdd) { + dom_adapter_1.DOM.addClass(renderElement, className); + } else { + dom_adapter_1.DOM.removeClass(renderElement, className); + } + }; + DomRenderer.prototype.setElementStyle = function(renderElement, styleName, styleValue) { + if (lang_1.isPresent(styleValue)) { + dom_adapter_1.DOM.setStyle(renderElement, styleName, lang_1.stringify(styleValue)); + } else { + dom_adapter_1.DOM.removeStyle(renderElement, styleName); + } + }; + DomRenderer.prototype.invokeElementMethod = function(renderElement, methodName, args) { + dom_adapter_1.DOM.invoke(renderElement, methodName, args); + }; + DomRenderer.prototype.setText = function(renderNode, text) { + dom_adapter_1.DOM.setText(renderNode, text); + }; + DomRenderer.prototype.animateNodeEnter = function(node) { + if (dom_adapter_1.DOM.isElementNode(node) && dom_adapter_1.DOM.hasClass(node, 'ng-animate')) { + dom_adapter_1.DOM.addClass(node, 'ng-enter'); + this._rootRenderer.animate.css().addAnimationClass('ng-enter-active').start(node).onComplete(function() { + dom_adapter_1.DOM.removeClass(node, 'ng-enter'); + }); + } + }; + DomRenderer.prototype.animateNodeLeave = function(node) { + if (dom_adapter_1.DOM.isElementNode(node) && dom_adapter_1.DOM.hasClass(node, 'ng-animate')) { + dom_adapter_1.DOM.addClass(node, 'ng-leave'); + this._rootRenderer.animate.css().addAnimationClass('ng-leave-active').start(node).onComplete(function() { + dom_adapter_1.DOM.removeClass(node, 'ng-leave'); + dom_adapter_1.DOM.remove(node); + }); + } else { + dom_adapter_1.DOM.remove(node); + } + }; + return DomRenderer; + })(); + exports.DomRenderer = DomRenderer; + function moveNodesAfterSibling(sibling, nodes) { + var parent = dom_adapter_1.DOM.parentElement(sibling); + if (nodes.length > 0 && lang_1.isPresent(parent)) { + var nextSibling = dom_adapter_1.DOM.nextSibling(sibling); + if (lang_1.isPresent(nextSibling)) { + for (var i = 0; i < nodes.length; i++) { + dom_adapter_1.DOM.insertBefore(nextSibling, nodes[i]); + } + } else { + for (var i = 0; i < nodes.length; i++) { + dom_adapter_1.DOM.appendChild(parent, nodes[i]); + } + } + } + } + function appendNodes(parent, nodes) { + for (var i = 0; i < nodes.length; i++) { + dom_adapter_1.DOM.appendChild(parent, nodes[i]); + } + } + function decoratePreventDefault(eventHandler) { + return function(event) { + var allowDefaultBehavior = eventHandler(event); + if (allowDefaultBehavior === false) { + dom_adapter_1.DOM.preventDefault(event); + } + }; + } + var COMPONENT_REGEX = /%COMP%/g; + exports.COMPONENT_VARIABLE = '%COMP%'; + exports.HOST_ATTR = "_nghost-" + exports.COMPONENT_VARIABLE; + exports.CONTENT_ATTR = "_ngcontent-" + exports.COMPONENT_VARIABLE; + function _shimContentAttribute(componentShortId) { + return lang_1.StringWrapper.replaceAll(exports.CONTENT_ATTR, COMPONENT_REGEX, componentShortId); + } + function _shimHostAttribute(componentShortId) { + return lang_1.StringWrapper.replaceAll(exports.HOST_ATTR, COMPONENT_REGEX, componentShortId); + } + function _flattenStyles(compId, styles, target) { + for (var i = 0; i < styles.length; i++) { + var style = styles[i]; + if (lang_1.isArray(style)) { + _flattenStyles(compId, style, target); + } else { + style = lang_1.StringWrapper.replaceAll(style, COMPONENT_REGEX, compId); + target.push(style); + } + } + return target; + } + var NS_PREFIX_RE = /^@([^:]+):(.+)/g; + function splitNamespace(name) { + if (name[0] != '@') { + return [null, name]; + } + var match = lang_1.RegExpWrapper.firstMatch(NS_PREFIX_RE, name); + return [match[1], match[2]]; + } global.define = __define; return module.exports; }); -$__System.registerDynamic("5c", ["3a", "4e", "51", "4f", "55", "3c", "57", "58"], true, function($__require, exports, module) { +$__System.registerDynamic("53", ["2b", "54"], true, function($__require, exports, module) { + "use strict"; + ; + var global = this, + __define = global.define; + global.define = undefined; + var lang_1 = $__require('2b'); + var debug_node_1 = $__require('54'); + var DebugDomRootRenderer = (function() { + function DebugDomRootRenderer(_delegate) { + this._delegate = _delegate; + } + DebugDomRootRenderer.prototype.renderComponent = function(componentProto) { + return new DebugDomRenderer(this, this._delegate.renderComponent(componentProto)); + }; + return DebugDomRootRenderer; + })(); + exports.DebugDomRootRenderer = DebugDomRootRenderer; + var DebugDomRenderer = (function() { + function DebugDomRenderer(_rootRenderer, _delegate) { + this._rootRenderer = _rootRenderer; + this._delegate = _delegate; + } + DebugDomRenderer.prototype.renderComponent = function(componentType) { + return this._rootRenderer.renderComponent(componentType); + }; + DebugDomRenderer.prototype.selectRootElement = function(selector) { + var nativeEl = this._delegate.selectRootElement(selector); + var debugEl = new debug_node_1.DebugElement(nativeEl, null); + debug_node_1.indexDebugNode(debugEl); + return nativeEl; + }; + DebugDomRenderer.prototype.createElement = function(parentElement, name) { + var nativeEl = this._delegate.createElement(parentElement, name); + var debugEl = new debug_node_1.DebugElement(nativeEl, debug_node_1.getDebugNode(parentElement)); + debugEl.name = name; + debug_node_1.indexDebugNode(debugEl); + return nativeEl; + }; + DebugDomRenderer.prototype.createViewRoot = function(hostElement) { + return this._delegate.createViewRoot(hostElement); + }; + DebugDomRenderer.prototype.createTemplateAnchor = function(parentElement) { + var comment = this._delegate.createTemplateAnchor(parentElement); + var debugEl = new debug_node_1.DebugNode(comment, debug_node_1.getDebugNode(parentElement)); + debug_node_1.indexDebugNode(debugEl); + return comment; + }; + DebugDomRenderer.prototype.createText = function(parentElement, value) { + var text = this._delegate.createText(parentElement, value); + var debugEl = new debug_node_1.DebugNode(text, debug_node_1.getDebugNode(parentElement)); + debug_node_1.indexDebugNode(debugEl); + return text; + }; + DebugDomRenderer.prototype.projectNodes = function(parentElement, nodes) { + var debugParent = debug_node_1.getDebugNode(parentElement); + if (lang_1.isPresent(debugParent) && debugParent instanceof debug_node_1.DebugElement) { + nodes.forEach(function(node) { + debugParent.addChild(debug_node_1.getDebugNode(node)); + }); + } + return this._delegate.projectNodes(parentElement, nodes); + }; + DebugDomRenderer.prototype.attachViewAfter = function(node, viewRootNodes) { + var debugNode = debug_node_1.getDebugNode(node); + if (lang_1.isPresent(debugNode)) { + var debugParent = debugNode.parent; + if (viewRootNodes.length > 0 && lang_1.isPresent(debugParent)) { + var debugViewRootNodes = []; + viewRootNodes.forEach(function(rootNode) { + return debugViewRootNodes.push(debug_node_1.getDebugNode(rootNode)); + }); + debugParent.insertChildrenAfter(debugNode, debugViewRootNodes); + } + } + return this._delegate.attachViewAfter(node, viewRootNodes); + }; + DebugDomRenderer.prototype.detachView = function(viewRootNodes) { + viewRootNodes.forEach(function(node) { + var debugNode = debug_node_1.getDebugNode(node); + if (lang_1.isPresent(debugNode) && lang_1.isPresent(debugNode.parent)) { + debugNode.parent.removeChild(debugNode); + } + }); + return this._delegate.detachView(viewRootNodes); + }; + DebugDomRenderer.prototype.destroyView = function(hostElement, viewAllNodes) { + viewAllNodes.forEach(function(node) { + debug_node_1.removeDebugNodeFromIndex(debug_node_1.getDebugNode(node)); + }); + return this._delegate.destroyView(hostElement, viewAllNodes); + }; + DebugDomRenderer.prototype.listen = function(renderElement, name, callback) { + var debugEl = debug_node_1.getDebugNode(renderElement); + if (lang_1.isPresent(debugEl)) { + debugEl.listeners.push(new debug_node_1.EventListener(name, callback)); + } + return this._delegate.listen(renderElement, name, callback); + }; + DebugDomRenderer.prototype.listenGlobal = function(target, name, callback) { + return this._delegate.listenGlobal(target, name, callback); + }; + DebugDomRenderer.prototype.setElementProperty = function(renderElement, propertyName, propertyValue) { + var debugEl = debug_node_1.getDebugNode(renderElement); + if (lang_1.isPresent(debugEl) && debugEl instanceof debug_node_1.DebugElement) { + debugEl.properties.set(propertyName, propertyValue); + } + return this._delegate.setElementProperty(renderElement, propertyName, propertyValue); + }; + DebugDomRenderer.prototype.setElementAttribute = function(renderElement, attributeName, attributeValue) { + var debugEl = debug_node_1.getDebugNode(renderElement); + if (lang_1.isPresent(debugEl) && debugEl instanceof debug_node_1.DebugElement) { + debugEl.attributes.set(attributeName, attributeValue); + } + return this._delegate.setElementAttribute(renderElement, attributeName, attributeValue); + }; + DebugDomRenderer.prototype.setBindingDebugInfo = function(renderElement, propertyName, propertyValue) { + return this._delegate.setBindingDebugInfo(renderElement, propertyName, propertyValue); + }; + DebugDomRenderer.prototype.setElementDebugInfo = function(renderElement, info) { + var debugEl = debug_node_1.getDebugNode(renderElement); + debugEl.setDebugInfo(info); + return this._delegate.setElementDebugInfo(renderElement, info); + }; + DebugDomRenderer.prototype.setElementClass = function(renderElement, className, isAdd) { + return this._delegate.setElementClass(renderElement, className, isAdd); + }; + DebugDomRenderer.prototype.setElementStyle = function(renderElement, styleName, styleValue) { + return this._delegate.setElementStyle(renderElement, styleName, styleValue); + }; + DebugDomRenderer.prototype.invokeElementMethod = function(renderElement, methodName, args) { + return this._delegate.invokeElementMethod(renderElement, methodName, args); + }; + DebugDomRenderer.prototype.setText = function(renderNode, text) { + return this._delegate.setText(renderNode, text); + }; + return DebugDomRenderer; + })(); + exports.DebugDomRenderer = DebugDomRenderer; + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("55", ["2b", "3c", "39", "54", "51", "14", "53"], true, function($__require, exports, module) { + "use strict"; + ; + var global = this, + __define = global.define; + global.define = undefined; + var lang_1 = $__require('2b'); + var di_1 = $__require('3c'); + var dom_adapter_1 = $__require('39'); + var debug_node_1 = $__require('54'); + var dom_renderer_1 = $__require('51'); + var core_1 = $__require('14'); + var debug_renderer_1 = $__require('53'); + var INSPECT_GLOBAL_NAME = 'ng.probe'; + function inspectNativeElement(element) { + return debug_node_1.getDebugNode(element); + } + exports.inspectNativeElement = inspectNativeElement; + function _createConditionalRootRenderer(rootRenderer) { + if (lang_1.assertionsEnabled()) { + return _createRootRenderer(rootRenderer); + } + return rootRenderer; + } + function _createRootRenderer(rootRenderer) { + dom_adapter_1.DOM.setGlobalVar(INSPECT_GLOBAL_NAME, inspectNativeElement); + return new debug_renderer_1.DebugDomRootRenderer(rootRenderer); + } + exports.ELEMENT_PROBE_PROVIDERS = lang_1.CONST_EXPR([new di_1.Provider(core_1.RootRenderer, { + useFactory: _createConditionalRootRenderer, + deps: [dom_renderer_1.DomRootRenderer] + })]); + exports.ELEMENT_PROBE_PROVIDERS_PROD_MODE = lang_1.CONST_EXPR([new di_1.Provider(core_1.RootRenderer, { + useFactory: _createRootRenderer, + deps: [dom_renderer_1.DomRootRenderer] + })]); + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("56", ["39", "51", "4f", "4e", "45", "3b", "46", "55"], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -11269,30 +11294,52 @@ $__System.registerDynamic("5c", ["3a", "4e", "51", "4f", "55", "3c", "57", "58"] if (!exports.hasOwnProperty(p)) exports[p] = m[p]; } - var dom_adapter_1 = $__require('3a'); + var dom_adapter_1 = $__require('39'); exports.DOM = dom_adapter_1.DOM; exports.setRootDomAdapter = dom_adapter_1.setRootDomAdapter; exports.DomAdapter = dom_adapter_1.DomAdapter; - var dom_renderer_1 = $__require('4e'); + var dom_renderer_1 = $__require('51'); exports.DomRenderer = dom_renderer_1.DomRenderer; - var dom_tokens_1 = $__require('51'); + var dom_tokens_1 = $__require('4f'); exports.DOCUMENT = dom_tokens_1.DOCUMENT; - var shared_styles_host_1 = $__require('4f'); + var shared_styles_host_1 = $__require('4e'); exports.SharedStylesHost = shared_styles_host_1.SharedStylesHost; exports.DomSharedStylesHost = shared_styles_host_1.DomSharedStylesHost; - var dom_events_1 = $__require('55'); + var dom_events_1 = $__require('45'); exports.DomEventsPlugin = dom_events_1.DomEventsPlugin; - var event_manager_1 = $__require('3c'); + var event_manager_1 = $__require('3b'); exports.EVENT_MANAGER_PLUGINS = event_manager_1.EVENT_MANAGER_PLUGINS; exports.EventManager = event_manager_1.EventManager; exports.EventManagerPlugin = event_manager_1.EventManagerPlugin; - __export($__require('57')); - __export($__require('58')); + __export($__require('46')); + __export($__require('55')); global.define = __define; return module.exports; }); -$__System.registerDynamic("5d", [], true, function($__require, exports, module) { +$__System.registerDynamic("57", ["39"], true, function($__require, exports, module) { + "use strict"; + ; + var global = this, + __define = global.define; + global.define = undefined; + var dom_adapter_1 = $__require('39'); + var Title = (function() { + function Title() {} + Title.prototype.getTitle = function() { + return dom_adapter_1.DOM.getTitle(); + }; + Title.prototype.setTitle = function(newTitle) { + dom_adapter_1.DOM.setTitle(newTitle); + }; + return Title; + })(); + exports.Title = Title; + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("58", [], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -11319,16 +11366,16 @@ $__System.registerDynamic("5d", [], true, function($__require, exports, module) return module.exports; }); -$__System.registerDynamic("5e", ["5f", "22", "5d", "3a"], true, function($__require, exports, module) { +$__System.registerDynamic("59", ["5a", "2b", "58", "39"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var application_ref_1 = $__require('5f'); - var lang_1 = $__require('22'); - var browser_1 = $__require('5d'); - var dom_adapter_1 = $__require('3a'); + var application_ref_1 = $__require('5a'); + var lang_1 = $__require('2b'); + var browser_1 = $__require('58'); + var dom_adapter_1 = $__require('39'); var AngularTools = (function() { function AngularTools(ref) { this.profiler = new AngularProfiler(ref); @@ -11368,14 +11415,14 @@ $__System.registerDynamic("5e", ["5f", "22", "5d", "3a"], true, function($__requ return module.exports; }); -$__System.registerDynamic("60", ["22", "5e"], true, function($__require, exports, module) { +$__System.registerDynamic("5b", ["2b", "59"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var lang_1 = $__require('22'); - var common_tools_1 = $__require('5e'); + var lang_1 = $__require('2b'); + var common_tools_1 = $__require('59'); var context = lang_1.global; function enableDebugTools(ref) { context.ng = new common_tools_1.AngularTools(ref); @@ -11389,44 +11436,44 @@ $__System.registerDynamic("60", ["22", "5e"], true, function($__require, exports return module.exports; }); -$__System.registerDynamic("61", ["22", "3d", "11", "24", "62", "3a", "55", "39", "3f", "51", "4e", "4f", "4c", "4d", "43", "44", "45", "3c", "46", "5c", "60"], true, function($__require, exports, module) { +$__System.registerDynamic("5c", ["2b", "3c", "14", "22", "5d", "39", "45", "38", "3e", "4f", "51", "4e", "4c", "4d", "42", "43", "44", "3b", "56", "57", "5b"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var lang_1 = $__require('22'); - var di_1 = $__require('3d'); - var core_1 = $__require('11'); - var common_1 = $__require('24'); - var testability_1 = $__require('62'); - var dom_adapter_1 = $__require('3a'); - var dom_events_1 = $__require('55'); - var key_events_1 = $__require('39'); - var hammer_gestures_1 = $__require('3f'); - var dom_tokens_1 = $__require('51'); - var dom_renderer_1 = $__require('4e'); - var shared_styles_host_1 = $__require('4f'); - var shared_styles_host_2 = $__require('4f'); + var lang_1 = $__require('2b'); + var di_1 = $__require('3c'); + var core_1 = $__require('14'); + var common_1 = $__require('22'); + var testability_1 = $__require('5d'); + var dom_adapter_1 = $__require('39'); + var dom_events_1 = $__require('45'); + var key_events_1 = $__require('38'); + var hammer_gestures_1 = $__require('3e'); + var dom_tokens_1 = $__require('4f'); + var dom_renderer_1 = $__require('51'); + var shared_styles_host_1 = $__require('4e'); + var shared_styles_host_2 = $__require('4e'); var browser_details_1 = $__require('4c'); var animation_builder_1 = $__require('4d'); - var browser_adapter_1 = $__require('43'); - var testability_2 = $__require('44'); - var wtf_init_1 = $__require('45'); - var event_manager_1 = $__require('3c'); - var dom_tokens_2 = $__require('51'); + var browser_adapter_1 = $__require('42'); + var testability_2 = $__require('43'); + var wtf_init_1 = $__require('44'); + var event_manager_1 = $__require('3b'); + var common_dom_1 = $__require('56'); + var dom_tokens_2 = $__require('4f'); exports.DOCUMENT = dom_tokens_2.DOCUMENT; - var title_1 = $__require('46'); + var title_1 = $__require('57'); exports.Title = title_1.Title; - var common_dom_1 = $__require('5c'); - exports.DebugElementViewListener = common_dom_1.DebugElementViewListener; - exports.ELEMENT_PROBE_PROVIDERS = common_dom_1.ELEMENT_PROBE_PROVIDERS; - exports.ELEMENT_PROBE_BINDINGS = common_dom_1.ELEMENT_PROBE_BINDINGS; - exports.inspectNativeElement = common_dom_1.inspectNativeElement; - exports.By = common_dom_1.By; - var browser_adapter_2 = $__require('43'); + var common_dom_2 = $__require('56'); + exports.ELEMENT_PROBE_PROVIDERS = common_dom_2.ELEMENT_PROBE_PROVIDERS; + exports.ELEMENT_PROBE_PROVIDERS_PROD_MODE = common_dom_2.ELEMENT_PROBE_PROVIDERS_PROD_MODE; + exports.inspectNativeElement = common_dom_2.inspectNativeElement; + exports.By = common_dom_2.By; + var browser_adapter_2 = $__require('42'); exports.BrowserDomAdapter = browser_adapter_2.BrowserDomAdapter; - var tools_1 = $__require('60'); + var tools_1 = $__require('5b'); exports.enableDebugTools = tools_1.enableDebugTools; exports.disableDebugTools = tools_1.disableDebugTools; exports.BROWSER_PROVIDERS = lang_1.CONST_EXPR([core_1.PLATFORM_COMMON_PROVIDERS, new di_1.Provider(core_1.PLATFORM_INITIALIZER, { @@ -11460,7 +11507,7 @@ $__System.registerDynamic("61", ["22", "3d", "11", "24", "62", "3a", "55", "39", }), new di_1.Provider(event_manager_1.EVENT_MANAGER_PLUGINS, { useClass: hammer_gestures_1.HammerGesturesPlugin, multi: true - }), new di_1.Provider(dom_renderer_1.DomRenderer, {useClass: dom_renderer_1.DomRenderer_}), new di_1.Provider(core_1.Renderer, {useExisting: dom_renderer_1.DomRenderer}), new di_1.Provider(shared_styles_host_2.SharedStylesHost, {useExisting: shared_styles_host_1.DomSharedStylesHost}), shared_styles_host_1.DomSharedStylesHost, testability_1.Testability, browser_details_1.BrowserDetails, animation_builder_1.AnimationBuilder, event_manager_1.EventManager]); + }), new di_1.Provider(dom_renderer_1.DomRootRenderer, {useClass: dom_renderer_1.DomRootRenderer_}), new di_1.Provider(core_1.RootRenderer, {useExisting: dom_renderer_1.DomRootRenderer}), new di_1.Provider(shared_styles_host_2.SharedStylesHost, {useExisting: shared_styles_host_1.DomSharedStylesHost}), shared_styles_host_1.DomSharedStylesHost, testability_1.Testability, browser_details_1.BrowserDetails, animation_builder_1.AnimationBuilder, event_manager_1.EventManager, common_dom_1.ELEMENT_PROBE_PROVIDERS]); function initDomAdapter() { browser_adapter_1.BrowserDomAdapter.makeCurrent(); wtf_init_1.wtfInit(); @@ -11471,7 +11518,7 @@ $__System.registerDynamic("61", ["22", "3d", "11", "24", "62", "3a", "55", "39", return module.exports; }); -$__System.registerDynamic("63", ["64", "65", "66", "3d"], true, function($__require, exports, module) { +$__System.registerDynamic("5e", ["5f", "60", "61", "3c"], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -11502,10 +11549,10 @@ $__System.registerDynamic("63", ["64", "65", "66", "3d"], true, function($__requ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; - var compiler_1 = $__require('64'); - var proto_view_factory_1 = $__require('65'); - var template_compiler_1 = $__require('66'); - var di_1 = $__require('3d'); + var compiler_1 = $__require('5f'); + var view_ref_1 = $__require('60'); + var template_compiler_1 = $__require('61'); + var di_1 = $__require('3c'); var RuntimeCompiler = (function(_super) { __extends(RuntimeCompiler, _super); function RuntimeCompiler() { @@ -11516,21 +11563,20 @@ $__System.registerDynamic("63", ["64", "65", "66", "3d"], true, function($__requ exports.RuntimeCompiler = RuntimeCompiler; var RuntimeCompiler_ = (function(_super) { __extends(RuntimeCompiler_, _super); - function RuntimeCompiler_(_protoViewFactory, _templateCompiler) { - _super.call(this, _protoViewFactory); + function RuntimeCompiler_(_templateCompiler) { + _super.call(this); this._templateCompiler = _templateCompiler; } RuntimeCompiler_.prototype.compileInHost = function(componentType) { - var _this = this; - return this._templateCompiler.compileHostComponentRuntime(componentType).then(function(compiledHostTemplate) { - return compiler_1.internalCreateProtoView(_this, compiledHostTemplate); + return this._templateCompiler.compileHostComponentRuntime(componentType).then(function(hostViewFactory) { + return new view_ref_1.HostViewFactoryRef_(hostViewFactory); }); }; RuntimeCompiler_.prototype.clearCache = function() { _super.prototype.clearCache.call(this); this._templateCompiler.clearCache(); }; - RuntimeCompiler_ = __decorate([di_1.Injectable(), __metadata('design:paramtypes', [proto_view_factory_1.ProtoViewFactory, template_compiler_1.TemplateCompiler])], RuntimeCompiler_); + RuntimeCompiler_ = __decorate([di_1.Injectable(), __metadata('design:paramtypes', [template_compiler_1.TemplateCompiler])], RuntimeCompiler_); return RuntimeCompiler_; })(compiler_1.Compiler_); exports.RuntimeCompiler_ = RuntimeCompiler_; @@ -11538,7 +11584,7 @@ $__System.registerDynamic("63", ["64", "65", "66", "3d"], true, function($__requ return module.exports; }); -$__System.registerDynamic("66", ["22", "40", "3b", "67", "68", "69", "3d", "6a", "6b", "6c", "6d", "6e", "6f", "70", "71"], true, function($__require, exports, module) { +$__System.registerDynamic("61", ["2b", "3f", "3a", "62", "63", "64", "3c", "65", "66", "67", "68", "69", "6a", "6b", "6c", "6d", "6e", "6f", "70"], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -11560,34 +11606,40 @@ $__System.registerDynamic("66", ["22", "40", "3b", "67", "68", "69", "3d", "6a", if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; - var lang_1 = $__require('22'); - var exceptions_1 = $__require('40'); - var collection_1 = $__require('3b'); - var async_1 = $__require('67'); - var template_commands_1 = $__require('68'); - var directive_metadata_1 = $__require('69'); - var di_1 = $__require('3d'); - var source_module_1 = $__require('6a'); - var change_detector_compiler_1 = $__require('6b'); - var style_compiler_1 = $__require('6c'); - var command_compiler_1 = $__require('6d'); - var template_parser_1 = $__require('6e'); - var template_normalizer_1 = $__require('6f'); - var runtime_metadata_1 = $__require('70'); - var command_compiler_2 = $__require('6d'); - var util_1 = $__require('71'); + var lang_1 = $__require('2b'); + var exceptions_1 = $__require('3f'); + var collection_1 = $__require('3a'); + var async_1 = $__require('62'); + var directive_metadata_1 = $__require('63'); + var template_ast_1 = $__require('64'); + var di_1 = $__require('3c'); + var source_module_1 = $__require('65'); + var change_detector_compiler_1 = $__require('66'); + var style_compiler_1 = $__require('67'); + var view_compiler_1 = $__require('68'); + var proto_view_compiler_1 = $__require('69'); + var template_parser_1 = $__require('6a'); + var template_normalizer_1 = $__require('6b'); + var runtime_metadata_1 = $__require('6c'); + var view_1 = $__require('6d'); + var change_detection_1 = $__require('6e'); + var resolved_metadata_cache_1 = $__require('6f'); + var util_1 = $__require('70'); + exports.METADATA_CACHE_MODULE_REF = source_module_1.moduleRef('package:angular2/src/core/linker/resolved_metadata_cache' + util_1.MODULE_SUFFIX); var TemplateCompiler = (function() { - function TemplateCompiler(_runtimeMetadataResolver, _templateNormalizer, _templateParser, _styleCompiler, _commandCompiler, _cdCompiler) { + function TemplateCompiler(_runtimeMetadataResolver, _templateNormalizer, _templateParser, _styleCompiler, _cdCompiler, _protoViewCompiler, _viewCompiler, _resolvedMetadataCache, _genConfig) { this._runtimeMetadataResolver = _runtimeMetadataResolver; this._templateNormalizer = _templateNormalizer; this._templateParser = _templateParser; this._styleCompiler = _styleCompiler; - this._commandCompiler = _commandCompiler; this._cdCompiler = _cdCompiler; + this._protoViewCompiler = _protoViewCompiler; + this._viewCompiler = _viewCompiler; + this._resolvedMetadataCache = _resolvedMetadataCache; + this._genConfig = _genConfig; this._hostCacheKeys = new Map(); this._compiledTemplateCache = new Map(); this._compiledTemplateDone = new Map(); - this._nextTemplateId = 0; } TemplateCompiler.prototype.normalizeDirectiveMetadata = function(directive) { if (!directive.isComponent) { @@ -11612,85 +11664,24 @@ $__System.registerDynamic("66", ["22", "40", "3b", "67", "68", "69", "3d", "6a", }); }; TemplateCompiler.prototype.compileHostComponentRuntime = function(type) { + var compMeta = this._runtimeMetadataResolver.getDirectiveMetadata(type); var hostCacheKey = this._hostCacheKeys.get(type); if (lang_1.isBlank(hostCacheKey)) { hostCacheKey = new Object(); this._hostCacheKeys.set(type, hostCacheKey); - var compMeta = this._runtimeMetadataResolver.getMetadata(type); assertComponent(compMeta); var hostMeta = directive_metadata_1.createHostComponentMeta(compMeta.type, compMeta.selector); - this._compileComponentRuntime(hostCacheKey, hostMeta, [compMeta], new Set()); + this._compileComponentRuntime(hostCacheKey, hostMeta, [compMeta], [], []); } return this._compiledTemplateDone.get(hostCacheKey).then(function(compiledTemplate) { - return new template_commands_1.CompiledHostTemplate(compiledTemplate); + return new view_1.HostViewFactory(compMeta.selector, compiledTemplate.viewFactory); }); }; TemplateCompiler.prototype.clearCache = function() { - this._hostCacheKeys.clear(); this._styleCompiler.clearCache(); this._compiledTemplateCache.clear(); this._compiledTemplateDone.clear(); - }; - TemplateCompiler.prototype._compileComponentRuntime = function(cacheKey, compMeta, viewDirectives, compilingComponentCacheKeys) { - var _this = this; - var uniqViewDirectives = removeDuplicates(viewDirectives); - var compiledTemplate = this._compiledTemplateCache.get(cacheKey); - var done = this._compiledTemplateDone.get(cacheKey); - if (lang_1.isBlank(compiledTemplate)) { - var styles = []; - var changeDetectorFactory; - var commands = []; - var templateId = lang_1.stringify(compMeta.type.runtime) + "Template" + this._nextTemplateId++; - compiledTemplate = new template_commands_1.CompiledComponentTemplate(templateId, function(dispatcher) { - return changeDetectorFactory(dispatcher); - }, commands, styles); - this._compiledTemplateCache.set(cacheKey, compiledTemplate); - compilingComponentCacheKeys.add(cacheKey); - done = async_1.PromiseWrapper.all([this._styleCompiler.compileComponentRuntime(compMeta.template)].concat(uniqViewDirectives.map(function(dirMeta) { - return _this.normalizeDirectiveMetadata(dirMeta); - }))).then(function(stylesAndNormalizedViewDirMetas) { - var childPromises = []; - var normalizedViewDirMetas = stylesAndNormalizedViewDirMetas.slice(1); - var parsedTemplate = _this._templateParser.parse(compMeta.template.template, normalizedViewDirMetas, compMeta.type.name); - var changeDetectorFactories = _this._cdCompiler.compileComponentRuntime(compMeta.type, compMeta.changeDetection, parsedTemplate); - changeDetectorFactory = changeDetectorFactories[0]; - var tmpStyles = stylesAndNormalizedViewDirMetas[0]; - tmpStyles.forEach(function(style) { - return styles.push(style); - }); - var tmpCommands = _this._compileCommandsRuntime(compMeta, parsedTemplate, changeDetectorFactories, compilingComponentCacheKeys, childPromises); - tmpCommands.forEach(function(cmd) { - return commands.push(cmd); - }); - return async_1.PromiseWrapper.all(childPromises); - }).then(function(_) { - collection_1.SetWrapper.delete(compilingComponentCacheKeys, cacheKey); - return compiledTemplate; - }); - this._compiledTemplateDone.set(cacheKey, done); - } - return compiledTemplate; - }; - TemplateCompiler.prototype._compileCommandsRuntime = function(compMeta, parsedTemplate, changeDetectorFactories, compilingComponentCacheKeys, childPromises) { - var _this = this; - var cmds = this._commandCompiler.compileComponentRuntime(compMeta, parsedTemplate, changeDetectorFactories, function(childComponentDir) { - var childCacheKey = childComponentDir.type.runtime; - var childViewDirectives = _this._runtimeMetadataResolver.getViewDirectivesMetadata(childComponentDir.type.runtime); - var childIsRecursive = collection_1.SetWrapper.has(compilingComponentCacheKeys, childCacheKey); - var childTemplate = _this._compileComponentRuntime(childCacheKey, childComponentDir, childViewDirectives, compilingComponentCacheKeys); - if (!childIsRecursive) { - childPromises.push(_this._compiledTemplateDone.get(childCacheKey)); - } - return function() { - return childTemplate; - }; - }); - cmds.forEach(function(cmd) { - if (cmd instanceof template_commands_1.BeginComponentCmd) { - cmd.templateGetter(); - } - }); - return cmds; + this._hostCacheKeys.clear(); }; TemplateCompiler.prototype.compileTemplatesCodeGen = function(components) { var _this = this; @@ -11698,84 +11689,161 @@ $__System.registerDynamic("66", ["22", "40", "3b", "67", "68", "69", "3d", "6a", throw new exceptions_1.BaseException('No components given'); } var declarations = []; - var templateArguments = []; - var componentMetas = []; components.forEach(function(componentWithDirs) { var compMeta = componentWithDirs.component; assertComponent(compMeta); - componentMetas.push(compMeta); - _this._processTemplateCodeGen(compMeta, componentWithDirs.directives, declarations, templateArguments); + _this._compileComponentCodeGen(compMeta, componentWithDirs.directives, componentWithDirs.pipes, declarations); if (compMeta.dynamicLoadable) { var hostMeta = directive_metadata_1.createHostComponentMeta(compMeta.type, compMeta.selector); - componentMetas.push(hostMeta); - _this._processTemplateCodeGen(hostMeta, [compMeta], declarations, templateArguments); + var viewFactoryExpression = _this._compileComponentCodeGen(hostMeta, [compMeta], [], declarations); + var constructionKeyword = lang_1.IS_DART ? 'const' : 'new'; + var compiledTemplateExpr = constructionKeyword + " " + proto_view_compiler_1.APP_VIEW_MODULE_REF + "HostViewFactory('" + compMeta.selector + "'," + viewFactoryExpression + ")"; + var varName = codeGenHostViewFactoryName(compMeta.type); + declarations.push("" + util_1.codeGenExportVariable(varName) + compiledTemplateExpr + ";"); } }); - collection_1.ListWrapper.forEachWithIndex(componentMetas, function(compMeta, index) { - var templateId = compMeta.type.moduleUrl + "|" + compMeta.type.name; - var constructionKeyword = lang_1.IS_DART ? 'const' : 'new'; - var compiledTemplateExpr = constructionKeyword + " " + command_compiler_2.TEMPLATE_COMMANDS_MODULE_REF + "CompiledComponentTemplate('" + templateId + "'," + templateArguments[index].join(',') + ")"; - var variableValueExpr; - if (compMeta.type.isHost) { - variableValueExpr = constructionKeyword + " " + command_compiler_2.TEMPLATE_COMMANDS_MODULE_REF + "CompiledHostTemplate(" + compiledTemplateExpr + ")"; - } else { - variableValueExpr = compiledTemplateExpr; - } - var varName = templateVariableName(compMeta.type); - declarations.push("" + util_1.codeGenExportVariable(varName) + variableValueExpr + ";"); - declarations.push(util_1.codeGenValueFn([], varName, templateGetterName(compMeta.type)) + ";"); - }); var moduleUrl = components[0].component.type.moduleUrl; return new source_module_1.SourceModule("" + templateModuleUrl(moduleUrl), declarations.join('\n')); }; TemplateCompiler.prototype.compileStylesheetCodeGen = function(stylesheetUrl, cssText) { return this._styleCompiler.compileStylesheetCodeGen(stylesheetUrl, cssText); }; - TemplateCompiler.prototype._processTemplateCodeGen = function(compMeta, directives, targetDeclarations, targetTemplateArguments) { - var uniqueDirectives = removeDuplicates(directives); - var styleExpr = this._styleCompiler.compileComponentCodeGen(compMeta.template); - var parsedTemplate = this._templateParser.parse(compMeta.template.template, uniqueDirectives, compMeta.type.name); - var changeDetectorsExprs = this._cdCompiler.compileComponentCodeGen(compMeta.type, compMeta.changeDetection, parsedTemplate); - var commandsExpr = this._commandCompiler.compileComponentCodeGen(compMeta, parsedTemplate, changeDetectorsExprs.expressions, codeGenComponentTemplateFactory); - addAll(styleExpr.declarations, targetDeclarations); - addAll(changeDetectorsExprs.declarations, targetDeclarations); - addAll(commandsExpr.declarations, targetDeclarations); - targetTemplateArguments.push([changeDetectorsExprs.expressions[0], commandsExpr.expression, styleExpr.expression]); + TemplateCompiler.prototype._compileComponentRuntime = function(cacheKey, compMeta, viewDirectives, pipes, compilingComponentsPath) { + var _this = this; + var uniqViewDirectives = removeDuplicates(viewDirectives); + var uniqViewPipes = removeDuplicates(pipes); + var compiledTemplate = this._compiledTemplateCache.get(cacheKey); + var done = this._compiledTemplateDone.get(cacheKey); + if (lang_1.isBlank(compiledTemplate)) { + compiledTemplate = new CompiledTemplate(); + this._compiledTemplateCache.set(cacheKey, compiledTemplate); + done = async_1.PromiseWrapper.all([this._styleCompiler.compileComponentRuntime(compMeta.template)].concat(uniqViewDirectives.map(function(dirMeta) { + return _this.normalizeDirectiveMetadata(dirMeta); + }))).then(function(stylesAndNormalizedViewDirMetas) { + var normalizedViewDirMetas = stylesAndNormalizedViewDirMetas.slice(1); + var styles = stylesAndNormalizedViewDirMetas[0]; + var parsedTemplate = _this._templateParser.parse(compMeta.template.template, normalizedViewDirMetas, uniqViewPipes, compMeta.type.name); + var childPromises = []; + var usedDirectives = DirectiveCollector.findUsedDirectives(parsedTemplate); + usedDirectives.components.forEach(function(component) { + return _this._compileNestedComponentRuntime(component, compilingComponentsPath, childPromises); + }); + return async_1.PromiseWrapper.all(childPromises).then(function(_) { + var filteredPipes = filterPipes(parsedTemplate, uniqViewPipes); + compiledTemplate.init(_this._createViewFactoryRuntime(compMeta, parsedTemplate, usedDirectives.directives, styles, filteredPipes)); + return compiledTemplate; + }); + }); + this._compiledTemplateDone.set(cacheKey, done); + } + return compiledTemplate; }; - TemplateCompiler = __decorate([di_1.Injectable(), __metadata('design:paramtypes', [runtime_metadata_1.RuntimeMetadataResolver, template_normalizer_1.TemplateNormalizer, template_parser_1.TemplateParser, style_compiler_1.StyleCompiler, command_compiler_1.CommandCompiler, change_detector_compiler_1.ChangeDetectionCompiler])], TemplateCompiler); + TemplateCompiler.prototype._compileNestedComponentRuntime = function(childComponentDir, parentCompilingComponentsPath, childPromises) { + var compilingComponentsPath = collection_1.ListWrapper.clone(parentCompilingComponentsPath); + var childCacheKey = childComponentDir.type.runtime; + var childViewDirectives = this._runtimeMetadataResolver.getViewDirectivesMetadata(childComponentDir.type.runtime); + var childViewPipes = this._runtimeMetadataResolver.getViewPipesMetadata(childComponentDir.type.runtime); + var childIsRecursive = collection_1.ListWrapper.contains(compilingComponentsPath, childCacheKey); + compilingComponentsPath.push(childCacheKey); + this._compileComponentRuntime(childCacheKey, childComponentDir, childViewDirectives, childViewPipes, compilingComponentsPath); + if (!childIsRecursive) { + childPromises.push(this._compiledTemplateDone.get(childCacheKey)); + } + }; + TemplateCompiler.prototype._createViewFactoryRuntime = function(compMeta, parsedTemplate, directives, styles, pipes) { + var _this = this; + if (lang_1.IS_DART || !this._genConfig.useJit) { + var changeDetectorFactories = this._cdCompiler.compileComponentRuntime(compMeta.type, compMeta.changeDetection, parsedTemplate); + var protoViews = this._protoViewCompiler.compileProtoViewRuntime(this._resolvedMetadataCache, compMeta, parsedTemplate, pipes); + return this._viewCompiler.compileComponentRuntime(compMeta, parsedTemplate, styles, protoViews.protoViews, changeDetectorFactories, function(compMeta) { + return _this._getNestedComponentViewFactory(compMeta); + }); + } else { + var declarations = []; + var viewFactoryExpr = this._createViewFactoryCodeGen('resolvedMetadataCache', compMeta, new source_module_1.SourceExpression([], 'styles'), parsedTemplate, pipes, declarations); + var vars = { + 'exports': {}, + 'styles': styles, + 'resolvedMetadataCache': this._resolvedMetadataCache + }; + directives.forEach(function(dirMeta) { + vars[dirMeta.type.name] = dirMeta.type.runtime; + if (dirMeta.isComponent && dirMeta.type.runtime !== compMeta.type.runtime) { + vars[("viewFactory_" + dirMeta.type.name + "0")] = _this._getNestedComponentViewFactory(dirMeta); + } + }); + pipes.forEach(function(pipeMeta) { + return vars[pipeMeta.type.name] = pipeMeta.type.runtime; + }); + var declarationsWithoutImports = source_module_1.SourceModule.getSourceWithoutImports(declarations.join('\n')); + return lang_1.evalExpression("viewFactory_" + compMeta.type.name, viewFactoryExpr, declarationsWithoutImports, mergeStringMaps([vars, change_detector_compiler_1.CHANGE_DETECTION_JIT_IMPORTS, proto_view_compiler_1.PROTO_VIEW_JIT_IMPORTS, view_compiler_1.VIEW_JIT_IMPORTS])); + } + }; + TemplateCompiler.prototype._getNestedComponentViewFactory = function(compMeta) { + return this._compiledTemplateCache.get(compMeta.type.runtime).viewFactory; + }; + TemplateCompiler.prototype._compileComponentCodeGen = function(compMeta, directives, pipes, targetDeclarations) { + var uniqueDirectives = removeDuplicates(directives); + var uniqPipes = removeDuplicates(pipes); + var styleExpr = this._styleCompiler.compileComponentCodeGen(compMeta.template); + var parsedTemplate = this._templateParser.parse(compMeta.template.template, uniqueDirectives, uniqPipes, compMeta.type.name); + var filteredPipes = filterPipes(parsedTemplate, uniqPipes); + return this._createViewFactoryCodeGen(exports.METADATA_CACHE_MODULE_REF + "CODEGEN_RESOLVED_METADATA_CACHE", compMeta, styleExpr, parsedTemplate, filteredPipes, targetDeclarations); + }; + TemplateCompiler.prototype._createViewFactoryCodeGen = function(resolvedMetadataCacheExpr, compMeta, styleExpr, parsedTemplate, pipes, targetDeclarations) { + var changeDetectorsExprs = this._cdCompiler.compileComponentCodeGen(compMeta.type, compMeta.changeDetection, parsedTemplate); + var protoViewExprs = this._protoViewCompiler.compileProtoViewCodeGen(new util_1.Expression(resolvedMetadataCacheExpr), compMeta, parsedTemplate, pipes); + var viewFactoryExpr = this._viewCompiler.compileComponentCodeGen(compMeta, parsedTemplate, styleExpr, protoViewExprs.protoViews, changeDetectorsExprs, codeGenComponentViewFactoryName); + util_1.addAll(changeDetectorsExprs.declarations, targetDeclarations); + util_1.addAll(protoViewExprs.declarations, targetDeclarations); + util_1.addAll(viewFactoryExpr.declarations, targetDeclarations); + return viewFactoryExpr.expression; + }; + TemplateCompiler = __decorate([di_1.Injectable(), __metadata('design:paramtypes', [runtime_metadata_1.RuntimeMetadataResolver, template_normalizer_1.TemplateNormalizer, template_parser_1.TemplateParser, style_compiler_1.StyleCompiler, change_detector_compiler_1.ChangeDetectionCompiler, proto_view_compiler_1.ProtoViewCompiler, view_compiler_1.ViewCompiler, resolved_metadata_cache_1.ResolvedMetadataCache, change_detection_1.ChangeDetectorGenConfig])], TemplateCompiler); return TemplateCompiler; })(); exports.TemplateCompiler = TemplateCompiler; var NormalizedComponentWithViewDirectives = (function() { - function NormalizedComponentWithViewDirectives(component, directives) { + function NormalizedComponentWithViewDirectives(component, directives, pipes) { this.component = component; this.directives = directives; + this.pipes = pipes; } return NormalizedComponentWithViewDirectives; })(); exports.NormalizedComponentWithViewDirectives = NormalizedComponentWithViewDirectives; + var CompiledTemplate = (function() { + function CompiledTemplate() { + this.viewFactory = null; + } + CompiledTemplate.prototype.init = function(viewFactory) { + this.viewFactory = viewFactory; + }; + return CompiledTemplate; + })(); function assertComponent(meta) { if (!meta.isComponent) { throw new exceptions_1.BaseException("Could not compile '" + meta.type.name + "' because it is not a component."); } } - function templateVariableName(type) { - return type.name + "Template"; - } - function templateGetterName(type) { - return templateVariableName(type) + "Getter"; - } function templateModuleUrl(moduleUrl) { var urlWithoutSuffix = moduleUrl.substring(0, moduleUrl.length - util_1.MODULE_SUFFIX.length); return urlWithoutSuffix + ".template" + util_1.MODULE_SUFFIX; } - function addAll(source, target) { - for (var i = 0; i < source.length; i++) { - target.push(source[i]); - } + function codeGenHostViewFactoryName(type) { + return "hostViewFactory_" + type.name; } - function codeGenComponentTemplateFactory(nestedCompType) { - return "" + source_module_1.moduleRef(templateModuleUrl(nestedCompType.type.moduleUrl)) + templateGetterName(nestedCompType.type); + function codeGenComponentViewFactoryName(nestedCompType) { + return source_module_1.moduleRef(templateModuleUrl(nestedCompType.type.moduleUrl)) + "viewFactory_" + nestedCompType.type.name + "0"; + } + function mergeStringMaps(maps) { + var result = {}; + maps.forEach(function(map) { + collection_1.StringMapWrapper.forEach(map, function(value, key) { + result[key] = value; + }); + }); + return result; } function removeDuplicates(items) { var res = []; @@ -11789,11 +11857,124 @@ $__System.registerDynamic("66", ["22", "40", "3b", "67", "68", "69", "3d", "6a", }); return res; } + var DirectiveCollector = (function() { + function DirectiveCollector() { + this.directives = []; + this.components = []; + } + DirectiveCollector.findUsedDirectives = function(parsedTemplate) { + var collector = new DirectiveCollector(); + template_ast_1.templateVisitAll(collector, parsedTemplate); + return collector; + }; + DirectiveCollector.prototype.visitBoundText = function(ast, context) { + return null; + }; + DirectiveCollector.prototype.visitText = function(ast, context) { + return null; + }; + DirectiveCollector.prototype.visitNgContent = function(ast, context) { + return null; + }; + DirectiveCollector.prototype.visitElement = function(ast, context) { + template_ast_1.templateVisitAll(this, ast.directives); + template_ast_1.templateVisitAll(this, ast.children); + return null; + }; + DirectiveCollector.prototype.visitEmbeddedTemplate = function(ast, context) { + template_ast_1.templateVisitAll(this, ast.directives); + template_ast_1.templateVisitAll(this, ast.children); + return null; + }; + DirectiveCollector.prototype.visitVariable = function(ast, ctx) { + return null; + }; + DirectiveCollector.prototype.visitAttr = function(ast, attrNameAndValues) { + return null; + }; + DirectiveCollector.prototype.visitDirective = function(ast, ctx) { + if (ast.directive.isComponent) { + this.components.push(ast.directive); + } + this.directives.push(ast.directive); + return null; + }; + DirectiveCollector.prototype.visitEvent = function(ast, eventTargetAndNames) { + return null; + }; + DirectiveCollector.prototype.visitDirectiveProperty = function(ast, context) { + return null; + }; + DirectiveCollector.prototype.visitElementProperty = function(ast, context) { + return null; + }; + return DirectiveCollector; + })(); + function filterPipes(template, allPipes) { + var visitor = new PipeVisitor(); + template_ast_1.templateVisitAll(visitor, template); + return allPipes.filter(function(pipeMeta) { + return collection_1.SetWrapper.has(visitor.collector.pipes, pipeMeta.name); + }); + } + var PipeVisitor = (function() { + function PipeVisitor() { + this.collector = new template_parser_1.PipeCollector(); + } + PipeVisitor.prototype.visitBoundText = function(ast, context) { + ast.value.visit(this.collector); + return null; + }; + PipeVisitor.prototype.visitText = function(ast, context) { + return null; + }; + PipeVisitor.prototype.visitNgContent = function(ast, context) { + return null; + }; + PipeVisitor.prototype.visitElement = function(ast, context) { + template_ast_1.templateVisitAll(this, ast.inputs); + template_ast_1.templateVisitAll(this, ast.outputs); + template_ast_1.templateVisitAll(this, ast.directives); + template_ast_1.templateVisitAll(this, ast.children); + return null; + }; + PipeVisitor.prototype.visitEmbeddedTemplate = function(ast, context) { + template_ast_1.templateVisitAll(this, ast.outputs); + template_ast_1.templateVisitAll(this, ast.directives); + template_ast_1.templateVisitAll(this, ast.children); + return null; + }; + PipeVisitor.prototype.visitVariable = function(ast, ctx) { + return null; + }; + PipeVisitor.prototype.visitAttr = function(ast, attrNameAndValues) { + return null; + }; + PipeVisitor.prototype.visitDirective = function(ast, ctx) { + template_ast_1.templateVisitAll(this, ast.inputs); + template_ast_1.templateVisitAll(this, ast.hostEvents); + template_ast_1.templateVisitAll(this, ast.hostProperties); + return null; + }; + PipeVisitor.prototype.visitEvent = function(ast, eventTargetAndNames) { + ast.handler.visit(this.collector); + return null; + }; + PipeVisitor.prototype.visitDirectiveProperty = function(ast, context) { + ast.value.visit(this.collector); + return null; + }; + PipeVisitor.prototype.visitElementProperty = function(ast, context) { + ast.value.visit(this.collector); + return null; + }; + return PipeVisitor; + })(); global.define = __define; return module.exports; }); -$__System.registerDynamic("6e", ["3b", "22", "11", "40", "72", "73", "74", "75", "76", "77", "78", "79", "7a", "7b", "71", "38"], true, function($__require, exports, module) { +$__System.registerDynamic("6a", ["3a", "2b", "14", "3f", "6e", "71", "72", "73", "74", "64", "75", "76", "77", "78", "79", "70", "37"], true, function($__require, exports, module) { ; var global = this, __define = global.define; @@ -11830,22 +12011,23 @@ $__System.registerDynamic("6e", ["3b", "22", "11", "40", "72", "73", "74", "75", decorator(target, key, paramIndex); }; }; - var collection_1 = $__require('3b'); - var lang_1 = $__require('22'); - var core_1 = $__require('11'); - var lang_2 = $__require('22'); - var exceptions_1 = $__require('40'); - var change_detection_1 = $__require('72'); - var html_parser_1 = $__require('73'); - var html_tags_1 = $__require('74'); - var parse_util_1 = $__require('75'); - var template_ast_1 = $__require('76'); - var selector_1 = $__require('77'); - var element_schema_registry_1 = $__require('78'); - var template_preparser_1 = $__require('79'); - var style_url_resolver_1 = $__require('7a'); - var html_ast_1 = $__require('7b'); - var util_1 = $__require('71'); + var collection_1 = $__require('3a'); + var lang_1 = $__require('2b'); + var core_1 = $__require('14'); + var lang_2 = $__require('2b'); + var exceptions_1 = $__require('3f'); + var change_detection_1 = $__require('6e'); + var html_parser_1 = $__require('71'); + var html_tags_1 = $__require('72'); + var parse_util_1 = $__require('73'); + var ast_1 = $__require('74'); + var template_ast_1 = $__require('64'); + var selector_1 = $__require('75'); + var element_schema_registry_1 = $__require('76'); + var template_preparser_1 = $__require('77'); + var style_url_resolver_1 = $__require('78'); + var html_ast_1 = $__require('79'); + var util_1 = $__require('70'); var BIND_NAME_REGEXP = /^(?:(?:(?:(bind-)|(var-|#)|(on-)|(bindon-))(.+))|\[\(([^\)]+)\)\]|\[([^\]]+)\]|\(([^\)]+)\))$/g; var TEMPLATE_ELEMENT = 'template'; var TEMPLATE_ATTR = 'template'; @@ -11872,8 +12054,8 @@ $__System.registerDynamic("6e", ["3b", "22", "11", "40", "72", "73", "74", "75", this._htmlParser = _htmlParser; this.transforms = transforms; } - TemplateParser.prototype.parse = function(template, directives, templateUrl) { - var parseVisitor = new TemplateParseVisitor(directives, this._exprParser, this._schemaRegistry); + TemplateParser.prototype.parse = function(template, directives, pipes, templateUrl) { + var parseVisitor = new TemplateParseVisitor(directives, pipes, this._exprParser, this._schemaRegistry); var htmlAstWithErrors = this._htmlParser.parse(template, templateUrl); var result = html_ast_1.htmlVisitAll(parseVisitor, htmlAstWithErrors.rootNodes, EMPTY_COMPONENT); var errors = htmlAstWithErrors.errors.concat(parseVisitor.errors); @@ -11893,7 +12075,7 @@ $__System.registerDynamic("6e", ["3b", "22", "11", "40", "72", "73", "74", "75", })(); exports.TemplateParser = TemplateParser; var TemplateParseVisitor = (function() { - function TemplateParseVisitor(directives, _exprParser, _schemaRegistry) { + function TemplateParseVisitor(directives, pipes, _exprParser, _schemaRegistry) { var _this = this; this._exprParser = _exprParser; this._schemaRegistry = _schemaRegistry; @@ -11906,6 +12088,10 @@ $__System.registerDynamic("6e", ["3b", "22", "11", "40", "72", "73", "74", "75", _this.selectorMatcher.addSelectables(selector, directive); _this.directivesIndex.set(directive, index); }); + this.pipesByName = new Map(); + pipes.forEach(function(pipe) { + return _this.pipesByName.set(pipe.name, pipe); + }); } TemplateParseVisitor.prototype._reportError = function(message, sourceSpan) { this.errors.push(new TemplateParseError(message, sourceSpan.start)); @@ -11913,7 +12099,9 @@ $__System.registerDynamic("6e", ["3b", "22", "11", "40", "72", "73", "74", "75", TemplateParseVisitor.prototype._parseInterpolation = function(value, sourceSpan) { var sourceInfo = sourceSpan.start.toString(); try { - return this._exprParser.parseInterpolation(value, sourceInfo); + var ast = this._exprParser.parseInterpolation(value, sourceInfo); + this._checkPipes(ast, sourceSpan); + return ast; } catch (e) { this._reportError("" + e, sourceSpan); return this._exprParser.wrapLiteralPrimitive('ERROR', sourceInfo); @@ -11922,7 +12110,9 @@ $__System.registerDynamic("6e", ["3b", "22", "11", "40", "72", "73", "74", "75", TemplateParseVisitor.prototype._parseAction = function(value, sourceSpan) { var sourceInfo = sourceSpan.start.toString(); try { - return this._exprParser.parseAction(value, sourceInfo); + var ast = this._exprParser.parseAction(value, sourceInfo); + this._checkPipes(ast, sourceSpan); + return ast; } catch (e) { this._reportError("" + e, sourceSpan); return this._exprParser.wrapLiteralPrimitive('ERROR', sourceInfo); @@ -11931,21 +12121,42 @@ $__System.registerDynamic("6e", ["3b", "22", "11", "40", "72", "73", "74", "75", TemplateParseVisitor.prototype._parseBinding = function(value, sourceSpan) { var sourceInfo = sourceSpan.start.toString(); try { - return this._exprParser.parseBinding(value, sourceInfo); + var ast = this._exprParser.parseBinding(value, sourceInfo); + this._checkPipes(ast, sourceSpan); + return ast; } catch (e) { this._reportError("" + e, sourceSpan); return this._exprParser.wrapLiteralPrimitive('ERROR', sourceInfo); } }; TemplateParseVisitor.prototype._parseTemplateBindings = function(value, sourceSpan) { + var _this = this; var sourceInfo = sourceSpan.start.toString(); try { - return this._exprParser.parseTemplateBindings(value, sourceInfo); + var bindings = this._exprParser.parseTemplateBindings(value, sourceInfo); + bindings.forEach(function(binding) { + if (lang_1.isPresent(binding.expression)) { + _this._checkPipes(binding.expression, sourceSpan); + } + }); + return bindings; } catch (e) { this._reportError("" + e, sourceSpan); return []; } }; + TemplateParseVisitor.prototype._checkPipes = function(ast, sourceSpan) { + var _this = this; + if (lang_1.isPresent(ast)) { + var collector = new PipeCollector(); + ast.visit(collector); + collector.pipes.forEach(function(pipeName) { + if (!_this.pipesByName.has(pipeName)) { + _this._reportError("The pipe '" + pipeName + "' could not be found", sourceSpan); + } + }); + } + }; TemplateParseVisitor.prototype.visitText = function(ast, component) { var ngContentIndex = component.findNgContentIndex(TEXT_CSS_SELECTOR); var expr = this._parseInterpolation(ast.value, ast.sourceSpan); @@ -11978,11 +12189,11 @@ $__System.registerDynamic("6e", ["3b", "22", "11", "40", "72", "73", "74", "75", var hasInlineTemplates = false; var attrs = []; element.attrs.forEach(function(attr) { - matchableAttrs.push([attr.name, attr.value]); var hasBinding = _this._parseAttr(attr, matchableAttrs, elementOrDirectiveProps, events, vars); var hasTemplateBinding = _this._parseInlineTemplateBinding(attr, templateMatchableAttrs, templateElementOrDirectiveProps, templateVars); if (!hasBinding && !hasTemplateBinding) { attrs.push(_this.visitAttr(attr, null)); + matchableAttrs.push([attr.name, attr.value]); } if (hasTemplateBinding) { hasInlineTemplates = true; @@ -12111,7 +12322,9 @@ $__System.registerDynamic("6e", ["3b", "22", "11", "40", "72", "73", "74", "75", var parts = util_1.splitAtColon(name, [null, name]); var target = parts[0]; var eventName = parts[1]; - targetEvents.push(new template_ast_1.BoundEventAst(eventName, target, this._parseAction(expression, sourceSpan), sourceSpan)); + var ast = this._parseAction(expression, sourceSpan); + targetMatchableAttrs.push([name, ast.source]); + targetEvents.push(new template_ast_1.BoundEventAst(eventName, target, ast, sourceSpan)); }; TemplateParseVisitor.prototype._parseLiteralAttr = function(name, value, sourceSpan, targetProps) { targetProps.push(new BoundElementOrDirectiveProperty(name, this._exprParser.wrapLiteralPrimitive(value, ''), true, sourceSpan)); @@ -12374,18 +12587,33 @@ $__System.registerDynamic("6e", ["3b", "22", "11", "40", "72", "73", "74", "75", } var EMPTY_COMPONENT = new Component(new selector_1.SelectorMatcher(), null); var NON_BINDABLE_VISITOR = new NonBindableVisitor(); - })($__require('38')); + var PipeCollector = (function(_super) { + __extends(PipeCollector, _super); + function PipeCollector() { + _super.apply(this, arguments); + this.pipes = new Set(); + } + PipeCollector.prototype.visitPipe = function(ast) { + this.pipes.add(ast.name); + ast.exp.visit(this); + this.visitAll(ast.args); + return null; + }; + return PipeCollector; + })(ast_1.RecursiveAstVisitor); + exports.PipeCollector = PipeCollector; + })($__require('37')); global.define = __define; return module.exports; }); -$__System.registerDynamic("7b", ["22"], true, function($__require, exports, module) { +$__System.registerDynamic("79", ["2b"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var lang_1 = $__require('22'); + var lang_1 = $__require('2b'); var HtmlTextAst = (function() { function HtmlTextAst(value, sourceSpan) { this.value = value; @@ -12440,7 +12668,7 @@ $__System.registerDynamic("7b", ["22"], true, function($__require, exports, modu return module.exports; }); -$__System.registerDynamic("7c", ["22", "3b", "75", "74", "38"], true, function($__require, exports, module) { +$__System.registerDynamic("7a", ["2b", "3a", "73", "72", "37"], true, function($__require, exports, module) { ; var global = this, __define = global.define; @@ -12456,10 +12684,10 @@ $__System.registerDynamic("7c", ["22", "3b", "75", "74", "38"], true, function($ } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; - var lang_1 = $__require('22'); - var collection_1 = $__require('3b'); - var parse_util_1 = $__require('75'); - var html_tags_1 = $__require('74'); + var lang_1 = $__require('2b'); + var collection_1 = $__require('3a'); + var parse_util_1 = $__require('73'); + var html_tags_1 = $__require('72'); (function(HtmlTokenType) { HtmlTokenType[HtmlTokenType["TAG_OPEN_START"] = 0] = "TAG_OPEN_START"; HtmlTokenType[HtmlTokenType["TAG_OPEN_END"] = 1] = "TAG_OPEN_END"; @@ -12530,10 +12758,12 @@ $__System.registerDynamic("7c", ["22", "3b", "75", "74", "38"], true, function($ var $EQ = 61; var $GT = 62; var $QUESTION = 63; - var $A = 65; - var $Z = 90; var $LBRACKET = 91; var $RBRACKET = 93; + var $A = 65; + var $F = 70; + var $X = 88; + var $Z = 90; var $a = 97; var $f = 102; var $z = 122; @@ -12563,7 +12793,6 @@ $__System.registerDynamic("7c", ["22", "3b", "75", "74", "38"], true, function($ this.tokens = []; this.errors = []; this.input = file.content; - this.inputLowercase = file.content.toLowerCase(); this.length = file.content.length; this._advance(); } @@ -12574,16 +12803,16 @@ $__System.registerDynamic("7c", ["22", "3b", "75", "74", "38"], true, function($ while (this.peek !== $EOF) { var start = this._getLocation(); try { - if (this._attemptChar($LT)) { - if (this._attemptChar($BANG)) { - if (this._attemptChar($LBRACKET)) { + if (this._attemptCharCode($LT)) { + if (this._attemptCharCode($BANG)) { + if (this._attemptCharCode($LBRACKET)) { this._consumeCdata(start); - } else if (this._attemptChar($MINUS)) { + } else if (this._attemptCharCode($MINUS)) { this._consumeComment(start); } else { this._consumeDocType(start); } - } else if (this._attemptChar($SLASH)) { + } else if (this._attemptCharCode($SLASH)) { this._consumeTagClose(start); } else { this._consumeTagOpen(start); @@ -12646,43 +12875,58 @@ $__System.registerDynamic("7c", ["22", "3b", "75", "74", "38"], true, function($ this.column++; } this.index++; - this.peek = this.index >= this.length ? $EOF : lang_1.StringWrapper.charCodeAt(this.inputLowercase, this.index); + this.peek = this.index >= this.length ? $EOF : lang_1.StringWrapper.charCodeAt(this.input, this.index); }; - _HtmlTokenizer.prototype._attemptChar = function(charCode) { + _HtmlTokenizer.prototype._attemptCharCode = function(charCode) { if (this.peek === charCode) { this._advance(); return true; } return false; }; - _HtmlTokenizer.prototype._requireChar = function(charCode) { + _HtmlTokenizer.prototype._attemptCharCodeCaseInsensitive = function(charCode) { + if (compareCharCodeCaseInsensitive(this.peek, charCode)) { + this._advance(); + return true; + } + return false; + }; + _HtmlTokenizer.prototype._requireCharCode = function(charCode) { var location = this._getLocation(); - if (!this._attemptChar(charCode)) { + if (!this._attemptCharCode(charCode)) { throw this._createError(unexpectedCharacterErrorMsg(this.peek), location); } }; - _HtmlTokenizer.prototype._attemptChars = function(chars) { + _HtmlTokenizer.prototype._attemptStr = function(chars) { for (var i = 0; i < chars.length; i++) { - if (!this._attemptChar(lang_1.StringWrapper.charCodeAt(chars, i))) { + if (!this._attemptCharCode(lang_1.StringWrapper.charCodeAt(chars, i))) { return false; } } return true; }; - _HtmlTokenizer.prototype._requireChars = function(chars) { + _HtmlTokenizer.prototype._attemptStrCaseInsensitive = function(chars) { + for (var i = 0; i < chars.length; i++) { + if (!this._attemptCharCodeCaseInsensitive(lang_1.StringWrapper.charCodeAt(chars, i))) { + return false; + } + } + return true; + }; + _HtmlTokenizer.prototype._requireStr = function(chars) { var location = this._getLocation(); - if (!this._attemptChars(chars)) { + if (!this._attemptStr(chars)) { throw this._createError(unexpectedCharacterErrorMsg(this.peek), location); } }; - _HtmlTokenizer.prototype._attemptUntilFn = function(predicate) { + _HtmlTokenizer.prototype._attemptCharCodeUntilFn = function(predicate) { while (!predicate(this.peek)) { this._advance(); } }; - _HtmlTokenizer.prototype._requireUntilFn = function(predicate, len) { + _HtmlTokenizer.prototype._requireCharCodeUntilFn = function(predicate, len) { var start = this._getLocation(); - this._attemptUntilFn(predicate); + this._attemptCharCodeUntilFn(predicate); if (this.index - start.offset < len) { throw this._createError(unexpectedCharacterErrorMsg(this.peek), start); } @@ -12704,10 +12948,10 @@ $__System.registerDynamic("7c", ["22", "3b", "75", "74", "38"], true, function($ _HtmlTokenizer.prototype._decodeEntity = function() { var start = this._getLocation(); this._advance(); - if (this._attemptChar($HASH)) { - var isHex = this._attemptChar($x); + if (this._attemptCharCode($HASH)) { + var isHex = this._attemptCharCode($x) || this._attemptCharCode($X); var numberStart = this._getLocation().offset; - this._attemptUntilFn(isDigitEntityEnd); + this._attemptCharCodeUntilFn(isDigitEntityEnd); if (this.peek != $SEMICOLON) { throw this._createError(unexpectedCharacterErrorMsg(this.peek), this._getLocation()); } @@ -12722,7 +12966,7 @@ $__System.registerDynamic("7c", ["22", "3b", "75", "74", "38"], true, function($ } } else { var startPosition = this._savePosition(); - this._attemptUntilFn(isNamedEntityEnd); + this._attemptCharCodeUntilFn(isNamedEntityEnd); if (this.peek != $SEMICOLON) { this._restorePosition(startPosition); return '&'; @@ -12743,7 +12987,7 @@ $__System.registerDynamic("7c", ["22", "3b", "75", "74", "38"], true, function($ var parts = []; while (true) { tagCloseStart = this._getLocation(); - if (this._attemptChar(firstCharOfEnd) && attemptEndRest()) { + if (this._attemptCharCode(firstCharOfEnd) && attemptEndRest()) { break; } if (this.index > tagCloseStart.offset) { @@ -12758,10 +13002,10 @@ $__System.registerDynamic("7c", ["22", "3b", "75", "74", "38"], true, function($ _HtmlTokenizer.prototype._consumeComment = function(start) { var _this = this; this._beginToken(HtmlTokenType.COMMENT_START, start); - this._requireChar($MINUS); + this._requireCharCode($MINUS); this._endToken([]); var textToken = this._consumeRawText(false, $MINUS, function() { - return _this._attemptChars('->'); + return _this._attemptStr('->'); }); this._beginToken(HtmlTokenType.COMMENT_END, textToken.sourceSpan.end); this._endToken([]); @@ -12769,10 +13013,10 @@ $__System.registerDynamic("7c", ["22", "3b", "75", "74", "38"], true, function($ _HtmlTokenizer.prototype._consumeCdata = function(start) { var _this = this; this._beginToken(HtmlTokenType.CDATA_START, start); - this._requireChars('cdata['); + this._requireStr('CDATA['); this._endToken([]); var textToken = this._consumeRawText(false, $RBRACKET, function() { - return _this._attemptChars(']>'); + return _this._attemptStr(']>'); }); this._beginToken(HtmlTokenType.CDATA_END, textToken.sourceSpan.end); this._endToken([]); @@ -12797,7 +13041,7 @@ $__System.registerDynamic("7c", ["22", "3b", "75", "74", "38"], true, function($ } else { nameStart = nameOrPrefixStart; } - this._requireUntilFn(isNameEnd, this.index === nameStart ? 1 : 0); + this._requireCharCodeUntilFn(isNameEnd, this.index === nameStart ? 1 : 0); var name = this.input.substring(nameStart, this.index); return [prefix, name]; }; @@ -12810,16 +13054,16 @@ $__System.registerDynamic("7c", ["22", "3b", "75", "74", "38"], true, function($ } var nameStart = this.index; this._consumeTagOpenStart(start); - lowercaseTagName = this.inputLowercase.substring(nameStart, this.index); - this._attemptUntilFn(isNotWhitespace); + lowercaseTagName = this.input.substring(nameStart, this.index).toLowerCase(); + this._attemptCharCodeUntilFn(isNotWhitespace); while (this.peek !== $SLASH && this.peek !== $GT) { this._consumeAttributeName(); - this._attemptUntilFn(isNotWhitespace); - if (this._attemptChar($EQ)) { - this._attemptUntilFn(isNotWhitespace); + this._attemptCharCodeUntilFn(isNotWhitespace); + if (this._attemptCharCode($EQ)) { + this._attemptCharCodeUntilFn(isNotWhitespace); this._consumeAttributeValue(); } - this._attemptUntilFn(isNotWhitespace); + this._attemptCharCodeUntilFn(isNotWhitespace); } this._consumeTagOpenEnd(); } catch (e) { @@ -12841,13 +13085,13 @@ $__System.registerDynamic("7c", ["22", "3b", "75", "74", "38"], true, function($ _HtmlTokenizer.prototype._consumeRawTextWithTagClose = function(lowercaseTagName, decodeEntities) { var _this = this; var textToken = this._consumeRawText(decodeEntities, $LT, function() { - if (!_this._attemptChar($SLASH)) + if (!_this._attemptCharCode($SLASH)) return false; - _this._attemptUntilFn(isNotWhitespace); - if (!_this._attemptChars(lowercaseTagName)) + _this._attemptCharCodeUntilFn(isNotWhitespace); + if (!_this._attemptStrCaseInsensitive(lowercaseTagName)) return false; - _this._attemptUntilFn(isNotWhitespace); - if (!_this._attemptChar($GT)) + _this._attemptCharCodeUntilFn(isNotWhitespace); + if (!_this._attemptCharCode($GT)) return false; return true; }); @@ -12878,24 +13122,24 @@ $__System.registerDynamic("7c", ["22", "3b", "75", "74", "38"], true, function($ this._advance(); } else { var valueStart = this.index; - this._requireUntilFn(isNameEnd, 1); + this._requireCharCodeUntilFn(isNameEnd, 1); value = this.input.substring(valueStart, this.index); } this._endToken([this._processCarriageReturns(value)]); }; _HtmlTokenizer.prototype._consumeTagOpenEnd = function() { - var tokenType = this._attemptChar($SLASH) ? HtmlTokenType.TAG_OPEN_END_VOID : HtmlTokenType.TAG_OPEN_END; + var tokenType = this._attemptCharCode($SLASH) ? HtmlTokenType.TAG_OPEN_END_VOID : HtmlTokenType.TAG_OPEN_END; this._beginToken(tokenType); - this._requireChar($GT); + this._requireCharCode($GT); this._endToken([]); }; _HtmlTokenizer.prototype._consumeTagClose = function(start) { this._beginToken(HtmlTokenType.TAG_CLOSE, start); - this._attemptUntilFn(isNotWhitespace); + this._attemptCharCodeUntilFn(isNotWhitespace); var prefixAndName; prefixAndName = this._consumePrefixAndName(); - this._attemptUntilFn(isNotWhitespace); - this._requireChar($GT); + this._attemptCharCodeUntilFn(isNotWhitespace); + this._requireCharCode($GT); this._endToken(prefixAndName); }; _HtmlTokenizer.prototype._consumeText = function() { @@ -12944,10 +13188,16 @@ $__System.registerDynamic("7c", ["22", "3b", "75", "74", "38"], true, function($ return code === $LT || code === $EOF; } function isAsciiLetter(code) { - return code >= $a && code <= $z; + return code >= $a && code <= $z || code >= $A && code <= $Z; } function isAsciiHexDigit(code) { - return code >= $a && code <= $f || code >= $0 && code <= $9; + return code >= $a && code <= $f || code >= $A && code <= $F || code >= $0 && code <= $9; + } + function compareCharCodeCaseInsensitive(code1, code2) { + return toUpperCaseCharCode(code1) == toUpperCaseCharCode(code2); + } + function toUpperCaseCharCode(code) { + return code >= $a && code <= $z ? code - $a + $A : code; } function mergeTextTokens(srcTokens) { var dstTokens = []; @@ -12964,12 +13214,12 @@ $__System.registerDynamic("7c", ["22", "3b", "75", "74", "38"], true, function($ } return dstTokens; } - })($__require('38')); + })($__require('37')); global.define = __define; return module.exports; }); -$__System.registerDynamic("75", [], true, function($__require, exports, module) { +$__System.registerDynamic("73", [], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -13051,7 +13301,7 @@ $__System.registerDynamic("75", [], true, function($__require, exports, module) return module.exports; }); -$__System.registerDynamic("73", ["22", "3b", "7b", "3d", "7c", "75", "74"], true, function($__require, exports, module) { +$__System.registerDynamic("71", ["2b", "3a", "79", "3c", "7a", "73", "72"], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -13082,13 +13332,13 @@ $__System.registerDynamic("73", ["22", "3b", "7b", "3d", "7c", "75", "74"], true if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; - var lang_1 = $__require('22'); - var collection_1 = $__require('3b'); - var html_ast_1 = $__require('7b'); - var di_1 = $__require('3d'); - var html_lexer_1 = $__require('7c'); - var parse_util_1 = $__require('75'); - var html_tags_1 = $__require('74'); + var lang_1 = $__require('2b'); + var collection_1 = $__require('3a'); + var html_ast_1 = $__require('79'); + var di_1 = $__require('3c'); + var html_lexer_1 = $__require('7a'); + var parse_util_1 = $__require('73'); + var html_tags_1 = $__require('72'); var HtmlTreeError = (function(_super) { __extends(HtmlTreeError, _super); function HtmlTreeError(elementName, location, msg) { @@ -13298,14 +13548,14 @@ $__System.registerDynamic("73", ["22", "3b", "7b", "3d", "7c", "75", "74"], true return module.exports; }); -$__System.registerDynamic("79", ["22", "74"], true, function($__require, exports, module) { +$__System.registerDynamic("77", ["2b", "72"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var lang_1 = $__require('22'); - var html_tags_1 = $__require('74'); + var lang_1 = $__require('2b'); + var html_tags_1 = $__require('72'); var NG_CONTENT_SELECT_ATTR = 'select'; var NG_CONTENT_ELEMENT = 'ng-content'; var LINK_ELEMENT = 'link'; @@ -13375,7 +13625,7 @@ $__System.registerDynamic("79", ["22", "74"], true, function($__require, exports return module.exports; }); -$__System.registerDynamic("6f", ["69", "22", "40", "67", "7d", "7e", "7a", "3d", "7f", "7b", "73", "79"], true, function($__require, exports, module) { +$__System.registerDynamic("6b", ["63", "2b", "3f", "62", "7b", "7c", "78", "3c", "7d", "79", "71", "77"], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -13397,18 +13647,18 @@ $__System.registerDynamic("6f", ["69", "22", "40", "67", "7d", "7e", "7a", "3d", if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; - var directive_metadata_1 = $__require('69'); - var lang_1 = $__require('22'); - var exceptions_1 = $__require('40'); - var async_1 = $__require('67'); - var xhr_1 = $__require('7d'); - var url_resolver_1 = $__require('7e'); - var style_url_resolver_1 = $__require('7a'); - var di_1 = $__require('3d'); - var view_1 = $__require('7f'); - var html_ast_1 = $__require('7b'); - var html_parser_1 = $__require('73'); - var template_preparser_1 = $__require('79'); + var directive_metadata_1 = $__require('63'); + var lang_1 = $__require('2b'); + var exceptions_1 = $__require('3f'); + var async_1 = $__require('62'); + var xhr_1 = $__require('7b'); + var url_resolver_1 = $__require('7c'); + var style_url_resolver_1 = $__require('78'); + var di_1 = $__require('3c'); + var view_1 = $__require('7d'); + var html_ast_1 = $__require('79'); + var html_parser_1 = $__require('71'); + var template_preparser_1 = $__require('77'); var TemplateNormalizer = (function() { function TemplateNormalizer(_xhr, _urlResolver, _htmlParser) { this._xhr = _xhr; @@ -13494,6 +13744,8 @@ $__System.registerDynamic("6f", ["69", "22", "40", "67", "7d", "7e", "7a", "3d", case template_preparser_1.PreparsedElementType.STYLESHEET: this.styleUrls.push(preparsedElement.hrefAttr); break; + default: + break; } if (preparsedElement.nonBindable) { this.ngNonBindableStackCount++; @@ -13516,16 +13768,16 @@ $__System.registerDynamic("6f", ["69", "22", "40", "67", "7d", "7e", "7a", "3d", return module.exports; }); -$__System.registerDynamic("77", ["3b", "22", "40", "38"], true, function($__require, exports, module) { +$__System.registerDynamic("75", ["3a", "2b", "3f", "37"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; (function(process) { 'use strict'; - var collection_1 = $__require('3b'); - var lang_1 = $__require('22'); - var exceptions_1 = $__require('40'); + var collection_1 = $__require('3a'); + var lang_1 = $__require('2b'); + var exceptions_1 = $__require('3f'); var _EMPTY_ATTR_VALUE = ''; var _SELECTOR_REGEXP = lang_1.RegExpWrapper.create('(\\:not\\()|' + '([-\\w]+)|' + '(?:\\.([-\\w]+))|' + '(?:\\[([-\\w*]+)(?:=([^\\]]*))?\\])|' + '(\\))|' + '(\\s*,\\s*)'); var CssSelector = (function() { @@ -13836,25 +14088,41 @@ $__System.registerDynamic("77", ["3b", "22", "40", "38"], true, function($__requ return SelectorContext; })(); exports.SelectorContext = SelectorContext; - })($__require('38')); + })($__require('37')); global.define = __define; return module.exports; }); -$__System.registerDynamic("69", ["22", "3b", "72", "7f", "77", "71", "80"], true, function($__require, exports, module) { +$__System.registerDynamic("63", ["2b", "3f", "3a", "6e", "7d", "75", "70", "7e"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var lang_1 = $__require('22'); - var collection_1 = $__require('3b'); - var change_detection_1 = $__require('72'); - var view_1 = $__require('7f'); - var selector_1 = $__require('77'); - var util_1 = $__require('71'); - var interfaces_1 = $__require('80'); + var lang_1 = $__require('2b'); + var exceptions_1 = $__require('3f'); + var collection_1 = $__require('3a'); + var change_detection_1 = $__require('6e'); + var view_1 = $__require('7d'); + var selector_1 = $__require('75'); + var util_1 = $__require('70'); + var interfaces_1 = $__require('7e'); var HOST_REG_EXP = /^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))$/g; + var CompileMetadataWithType = (function() { + function CompileMetadataWithType() {} + CompileMetadataWithType.fromJson = function(data) { + return _COMPILE_METADATA_FROM_JSON[data['class']](data); + }; + Object.defineProperty(CompileMetadataWithType.prototype, "type", { + get: function() { + return exceptions_1.unimplemented(); + }, + enumerable: true, + configurable: true + }); + return CompileMetadataWithType; + })(); + exports.CompileMetadataWithType = CompileMetadataWithType; var CompileTypeMetadata = (function() { function CompileTypeMetadata(_a) { var _b = _a === void 0 ? {} : _a, @@ -14032,6 +14300,7 @@ $__System.registerDynamic("69", ["22", "3b", "72", "7f", "77", "71", "80"], true }; CompileDirectiveMetadata.prototype.toJson = function() { return { + 'class': 'Directive', 'isComponent': this.isComponent, 'dynamicLoadable': this.dynamicLoadable, 'selector': this.selector, @@ -14079,11 +14348,81 @@ $__System.registerDynamic("69", ["22", "3b", "72", "7f", "77", "71", "80"], true }); } exports.createHostComponentMeta = createHostComponentMeta; + var CompilePipeMetadata = (function() { + function CompilePipeMetadata(_a) { + var _b = _a === void 0 ? {} : _a, + type = _b.type, + name = _b.name, + pure = _b.pure; + this.type = type; + this.name = name; + this.pure = lang_1.normalizeBool(pure); + } + CompilePipeMetadata.fromJson = function(data) { + return new CompilePipeMetadata({ + type: lang_1.isPresent(data['type']) ? CompileTypeMetadata.fromJson(data['type']) : data['type'], + name: data['name'], + pure: data['pure'] + }); + }; + CompilePipeMetadata.prototype.toJson = function() { + return { + 'class': 'Pipe', + 'type': lang_1.isPresent(this.type) ? this.type.toJson() : null, + 'name': this.name, + 'pure': this.pure + }; + }; + return CompilePipeMetadata; + })(); + exports.CompilePipeMetadata = CompilePipeMetadata; + var _COMPILE_METADATA_FROM_JSON = { + 'Directive': CompileDirectiveMetadata.fromJson, + 'Pipe': CompilePipeMetadata.fromJson + }; global.define = __define; return module.exports; }); -$__System.registerDynamic("70", ["3d", "22", "40", "69", "81", "82", "83", "84", "80", "85", "86", "71", "7e"], true, function($__require, exports, module) { +$__System.registerDynamic("7f", ["2b", "7e"], true, function($__require, exports, module) { + "use strict"; + ; + var global = this, + __define = global.define; + global.define = undefined; + var lang_1 = $__require('2b'); + var interfaces_1 = $__require('7e'); + function hasLifecycleHook(lcInterface, token) { + if (!(token instanceof lang_1.Type)) + return false; + var proto = token.prototype; + switch (lcInterface) { + case interfaces_1.LifecycleHooks.AfterContentInit: + return !!proto.ngAfterContentInit; + case interfaces_1.LifecycleHooks.AfterContentChecked: + return !!proto.ngAfterContentChecked; + case interfaces_1.LifecycleHooks.AfterViewInit: + return !!proto.ngAfterViewInit; + case interfaces_1.LifecycleHooks.AfterViewChecked: + return !!proto.ngAfterViewChecked; + case interfaces_1.LifecycleHooks.OnChanges: + return !!proto.ngOnChanges; + case interfaces_1.LifecycleHooks.DoCheck: + return !!proto.ngDoCheck; + case interfaces_1.LifecycleHooks.OnDestroy: + return !!proto.ngOnDestroy; + case interfaces_1.LifecycleHooks.OnInit: + return !!proto.ngOnInit; + default: + return false; + } + } + exports.hasLifecycleHook = hasLifecycleHook; + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("6c", ["3c", "2b", "3f", "63", "80", "81", "82", "83", "7f", "7e", "84", "85", "70", "7c"], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -14110,29 +14449,33 @@ $__System.registerDynamic("70", ["3d", "22", "40", "69", "81", "82", "83", "84", decorator(target, key, paramIndex); }; }; - var di_1 = $__require('3d'); - var lang_1 = $__require('22'); - var exceptions_1 = $__require('40'); - var cpl = $__require('69'); - var md = $__require('81'); - var directive_resolver_1 = $__require('82'); + var di_1 = $__require('3c'); + var lang_1 = $__require('2b'); + var exceptions_1 = $__require('3f'); + var cpl = $__require('63'); + var md = $__require('80'); + var directive_resolver_1 = $__require('81'); + var pipe_resolver_1 = $__require('82'); var view_resolver_1 = $__require('83'); - var directive_lifecycle_reflector_1 = $__require('84'); - var interfaces_1 = $__require('80'); - var reflection_1 = $__require('85'); - var di_2 = $__require('3d'); - var platform_directives_and_pipes_1 = $__require('86'); - var util_1 = $__require('71'); - var url_resolver_1 = $__require('7e'); + var directive_lifecycle_reflector_1 = $__require('7f'); + var interfaces_1 = $__require('7e'); + var reflection_1 = $__require('84'); + var di_2 = $__require('3c'); + var platform_directives_and_pipes_1 = $__require('85'); + var util_1 = $__require('70'); + var url_resolver_1 = $__require('7c'); var RuntimeMetadataResolver = (function() { - function RuntimeMetadataResolver(_directiveResolver, _viewResolver, _platformDirectives) { + function RuntimeMetadataResolver(_directiveResolver, _pipeResolver, _viewResolver, _platformDirectives, _platformPipes) { this._directiveResolver = _directiveResolver; + this._pipeResolver = _pipeResolver; this._viewResolver = _viewResolver; this._platformDirectives = _platformDirectives; - this._cache = new Map(); + this._platformPipes = _platformPipes; + this._directiveCache = new Map(); + this._pipeCache = new Map(); } - RuntimeMetadataResolver.prototype.getMetadata = function(directiveType) { - var meta = this._cache.get(directiveType); + RuntimeMetadataResolver.prototype.getDirectiveMetadata = function(directiveType) { + var meta = this._directiveCache.get(directiveType); if (lang_1.isBlank(meta)) { var dirMeta = this._directiveResolver.resolve(directiveType); var moduleUrl = null; @@ -14170,7 +14513,25 @@ $__System.registerDynamic("70", ["3d", "22", "40", "69", "81", "82", "83", "84", return directive_lifecycle_reflector_1.hasLifecycleHook(hook, directiveType); }) }); - this._cache.set(directiveType, meta); + this._directiveCache.set(directiveType, meta); + } + return meta; + }; + RuntimeMetadataResolver.prototype.getPipeMetadata = function(pipeType) { + var meta = this._pipeCache.get(pipeType); + if (lang_1.isBlank(meta)) { + var pipeMeta = this._pipeResolver.resolve(pipeType); + var moduleUrl = reflection_1.reflector.importUri(pipeType); + meta = new cpl.CompilePipeMetadata({ + type: new cpl.CompileTypeMetadata({ + name: lang_1.stringify(pipeType), + moduleUrl: moduleUrl, + runtime: pipeType + }), + name: pipeMeta.name, + pure: pipeMeta.pure + }); + this._pipeCache.set(pipeType, meta); } return meta; }; @@ -14179,15 +14540,28 @@ $__System.registerDynamic("70", ["3d", "22", "40", "69", "81", "82", "83", "84", var view = this._viewResolver.resolve(component); var directives = flattenDirectives(view, this._platformDirectives); for (var i = 0; i < directives.length; i++) { - if (!isValidDirective(directives[i])) { + if (!isValidType(directives[i])) { throw new exceptions_1.BaseException("Unexpected directive value '" + lang_1.stringify(directives[i]) + "' on the View of component '" + lang_1.stringify(component) + "'"); } } return directives.map(function(type) { - return _this.getMetadata(type); + return _this.getDirectiveMetadata(type); }); }; - RuntimeMetadataResolver = __decorate([di_2.Injectable(), __param(2, di_2.Optional()), __param(2, di_2.Inject(platform_directives_and_pipes_1.PLATFORM_DIRECTIVES)), __metadata('design:paramtypes', [directive_resolver_1.DirectiveResolver, view_resolver_1.ViewResolver, Array])], RuntimeMetadataResolver); + RuntimeMetadataResolver.prototype.getViewPipesMetadata = function(component) { + var _this = this; + var view = this._viewResolver.resolve(component); + var pipes = flattenPipes(view, this._platformPipes); + for (var i = 0; i < pipes.length; i++) { + if (!isValidType(pipes[i])) { + throw new exceptions_1.BaseException("Unexpected piped value '" + lang_1.stringify(pipes[i]) + "' on the View of component '" + lang_1.stringify(component) + "'"); + } + } + return pipes.map(function(type) { + return _this.getPipeMetadata(type); + }); + }; + RuntimeMetadataResolver = __decorate([di_2.Injectable(), __param(3, di_2.Optional()), __param(3, di_2.Inject(platform_directives_and_pipes_1.PLATFORM_DIRECTIVES)), __param(4, di_2.Optional()), __param(4, di_2.Inject(platform_directives_and_pipes_1.PLATFORM_PIPES)), __metadata('design:paramtypes', [directive_resolver_1.DirectiveResolver, pipe_resolver_1.PipeResolver, view_resolver_1.ViewResolver, Array, Array])], RuntimeMetadataResolver); return RuntimeMetadataResolver; })(); exports.RuntimeMetadataResolver = RuntimeMetadataResolver; @@ -14201,6 +14575,16 @@ $__System.registerDynamic("70", ["3d", "22", "40", "69", "81", "82", "83", "84", } return directives; } + function flattenPipes(view, platformPipes) { + var pipes = []; + if (lang_1.isPresent(platformPipes)) { + flattenArray(platformPipes, pipes); + } + if (lang_1.isPresent(view.pipes)) { + flattenArray(view.pipes, pipes); + } + return pipes; + } function flattenArray(tree, out) { for (var i = 0; i < tree.length; i++) { var item = di_1.resolveForwardRef(tree[i]); @@ -14211,7 +14595,7 @@ $__System.registerDynamic("70", ["3d", "22", "40", "69", "81", "82", "83", "84", } } } - function isValidDirective(value) { + function isValidType(value) { return lang_1.isPresent(value) && (value instanceof lang_1.Type); } function calcModuleUrl(type, cmpMetadata) { @@ -14227,18 +14611,40 @@ $__System.registerDynamic("70", ["3d", "22", "40", "69", "81", "82", "83", "84", return module.exports; }); -$__System.registerDynamic("87", ["3b", "22", "85", "72", "76", "80"], true, function($__require, exports, module) { +$__System.registerDynamic("7e", [], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var collection_1 = $__require('3b'); - var lang_1 = $__require('22'); - var reflection_1 = $__require('85'); - var change_detection_1 = $__require('72'); - var template_ast_1 = $__require('76'); - var interfaces_1 = $__require('80'); + (function(LifecycleHooks) { + LifecycleHooks[LifecycleHooks["OnInit"] = 0] = "OnInit"; + LifecycleHooks[LifecycleHooks["OnDestroy"] = 1] = "OnDestroy"; + LifecycleHooks[LifecycleHooks["DoCheck"] = 2] = "DoCheck"; + LifecycleHooks[LifecycleHooks["OnChanges"] = 3] = "OnChanges"; + LifecycleHooks[LifecycleHooks["AfterContentInit"] = 4] = "AfterContentInit"; + LifecycleHooks[LifecycleHooks["AfterContentChecked"] = 5] = "AfterContentChecked"; + LifecycleHooks[LifecycleHooks["AfterViewInit"] = 6] = "AfterViewInit"; + LifecycleHooks[LifecycleHooks["AfterViewChecked"] = 7] = "AfterViewChecked"; + })(exports.LifecycleHooks || (exports.LifecycleHooks = {})); + var LifecycleHooks = exports.LifecycleHooks; + exports.LIFECYCLE_HOOKS_VALUES = [LifecycleHooks.OnInit, LifecycleHooks.OnDestroy, LifecycleHooks.DoCheck, LifecycleHooks.OnChanges, LifecycleHooks.AfterContentInit, LifecycleHooks.AfterContentChecked, LifecycleHooks.AfterViewInit, LifecycleHooks.AfterViewChecked]; + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("86", ["3a", "2b", "84", "6e", "64", "7e"], true, function($__require, exports, module) { + "use strict"; + ; + var global = this, + __define = global.define; + global.define = undefined; + var collection_1 = $__require('3a'); + var lang_1 = $__require('2b'); + var reflection_1 = $__require('84'); + var change_detection_1 = $__require('6e'); + var template_ast_1 = $__require('64'); + var interfaces_1 = $__require('7e'); function createChangeDetectorDefinitions(componentType, componentStrategy, genConfig, parsedTemplate) { var pvVisitors = []; var visitor = new ProtoViewVisitor(null, pvVisitors, componentStrategy); @@ -14251,7 +14657,7 @@ $__System.registerDynamic("87", ["3b", "22", "85", "72", "76", "80"], true, func this.parent = parent; this.allVisitors = allVisitors; this.strategy = strategy; - this.boundTextCount = 0; + this.nodeCount = 0; this.boundElementCount = 0; this.variableNames = []; this.bindingRecords = []; @@ -14261,6 +14667,7 @@ $__System.registerDynamic("87", ["3b", "22", "85", "72", "76", "80"], true, func allVisitors.push(this); } ProtoViewVisitor.prototype.visitEmbeddedTemplate = function(ast, context) { + this.nodeCount++; this.boundElementCount++; template_ast_1.templateVisitAll(this, ast.outputs); for (var i = 0; i < ast.directives.length; i++) { @@ -14272,6 +14679,7 @@ $__System.registerDynamic("87", ["3b", "22", "85", "72", "76", "80"], true, func return null; }; ProtoViewVisitor.prototype.visitElement = function(ast, context) { + this.nodeCount++; if (ast.isBound()) { this.boundElementCount++; } @@ -14316,16 +14724,21 @@ $__System.registerDynamic("87", ["3b", "22", "85", "72", "76", "80"], true, func return null; }; ProtoViewVisitor.prototype.visitBoundText = function(ast, context) { - var boundTextIndex = this.boundTextCount++; - this.bindingRecords.push(change_detection_1.BindingRecord.createForTextNode(ast.value, boundTextIndex)); + var nodeIndex = this.nodeCount++; + this.bindingRecords.push(change_detection_1.BindingRecord.createForTextNode(ast.value, nodeIndex)); return null; }; ProtoViewVisitor.prototype.visitText = function(ast, context) { + this.nodeCount++; return null; }; ProtoViewVisitor.prototype.visitDirective = function(ast, directiveIndexAsNumber) { var directiveIndex = new change_detection_1.DirectiveIndex(this.boundElementCount - 1, directiveIndexAsNumber); var directiveMetadata = ast.directive; + var outputsArray = []; + collection_1.StringMapWrapper.forEach(ast.directive.outputs, function(eventName, dirProperty) { + return outputsArray.push([dirProperty, eventName]); + }); var directiveRecord = new change_detection_1.DirectiveRecord({ directiveIndex: directiveIndex, callAfterContentInit: directiveMetadata.lifecycleHooks.indexOf(interfaces_1.LifecycleHooks.AfterContentInit) !== -1, @@ -14335,7 +14748,9 @@ $__System.registerDynamic("87", ["3b", "22", "85", "72", "76", "80"], true, func callOnChanges: directiveMetadata.lifecycleHooks.indexOf(interfaces_1.LifecycleHooks.OnChanges) !== -1, callDoCheck: directiveMetadata.lifecycleHooks.indexOf(interfaces_1.LifecycleHooks.DoCheck) !== -1, callOnInit: directiveMetadata.lifecycleHooks.indexOf(interfaces_1.LifecycleHooks.OnInit) !== -1, - changeDetection: directiveMetadata.changeDetection + callOnDestroy: directiveMetadata.lifecycleHooks.indexOf(interfaces_1.LifecycleHooks.OnDestroy) !== -1, + changeDetection: directiveMetadata.changeDetection, + outputs: outputsArray }); this.directiveRecords.push(directiveRecord); template_ast_1.templateVisitAll(this, ast.inputs, directiveRecord); @@ -14380,7 +14795,7 @@ $__System.registerDynamic("87", ["3b", "22", "85", "72", "76", "80"], true, func return module.exports; }); -$__System.registerDynamic("88", [], true, function($__require, exports, module) { +$__System.registerDynamic("87", [], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -14401,7 +14816,7 @@ $__System.registerDynamic("88", [], true, function($__require, exports, module) return module.exports; }); -$__System.registerDynamic("6b", ["6a", "89", "87", "22", "72", "88", "71", "3d"], true, function($__require, exports, module) { +$__System.registerDynamic("66", ["65", "88", "89", "8a", "8b", "86", "2b", "6e", "87", "70", "3c"], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -14423,17 +14838,25 @@ $__System.registerDynamic("6b", ["6a", "89", "87", "22", "72", "88", "71", "3d"] if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; - var source_module_1 = $__require('6a'); - var change_detection_jit_generator_1 = $__require('89'); - var change_definition_factory_1 = $__require('87'); - var lang_1 = $__require('22'); - var change_detection_1 = $__require('72'); - var change_detector_codegen_1 = $__require('88'); - var util_1 = $__require('71'); - var di_1 = $__require('3d'); + var source_module_1 = $__require('65'); + var change_detection_jit_generator_1 = $__require('88'); + var abstract_change_detector_1 = $__require('89'); + var change_detection_util_1 = $__require('8a'); + var constants_1 = $__require('8b'); + var change_definition_factory_1 = $__require('86'); + var lang_1 = $__require('2b'); + var change_detection_1 = $__require('6e'); + var change_detector_codegen_1 = $__require('87'); + var util_1 = $__require('70'); + var di_1 = $__require('3c'); var ABSTRACT_CHANGE_DETECTOR = "AbstractChangeDetector"; var UTIL = "ChangeDetectionUtil"; var CHANGE_DETECTOR_STATE = "ChangeDetectorState"; + exports.CHANGE_DETECTION_JIT_IMPORTS = lang_1.CONST_EXPR({ + 'AbstractChangeDetector': abstract_change_detector_1.AbstractChangeDetector, + 'ChangeDetectionUtil': change_detection_util_1.ChangeDetectionUtil, + 'ChangeDetectorState': constants_1.ChangeDetectorState + }); var ABSTRACT_CHANGE_DETECTOR_MODULE = source_module_1.moduleRef("package:angular2/src/core/change_detection/abstract_change_detector" + util_1.MODULE_SUFFIX); var UTIL_MODULE = source_module_1.moduleRef("package:angular2/src/core/change_detection/change_detection_util" + util_1.MODULE_SUFFIX); var PREGEN_PROTO_CHANGE_DETECTOR_MODULE = source_module_1.moduleRef("package:angular2/src/core/change_detection/pregen_proto_change_detector" + util_1.MODULE_SUFFIX); @@ -14450,14 +14873,10 @@ $__System.registerDynamic("6b", ["6a", "89", "87", "22", "72", "88", "71", "3d"] }); }; ChangeDetectionCompiler.prototype._createChangeDetectorFactory = function(definition) { - if (lang_1.IS_DART || !this._genConfig.useJit) { - var proto = new change_detection_1.DynamicProtoChangeDetector(definition); - return function(dispatcher) { - return proto.instantiate(dispatcher); - }; - } else { - return new change_detection_jit_generator_1.ChangeDetectorJITGenerator(definition, UTIL, ABSTRACT_CHANGE_DETECTOR, CHANGE_DETECTOR_STATE).generate(); - } + var proto = new change_detection_1.DynamicProtoChangeDetector(definition); + return function() { + return proto.instantiate(); + }; }; ChangeDetectionCompiler.prototype.compileComponentCodeGen = function(componentType, strategy, parsedTemplate) { var changeDetectorDefinitions = change_definition_factory_1.createChangeDetectorDefinitions(componentType, strategy, this._genConfig, parsedTemplate); @@ -14475,7 +14894,7 @@ $__System.registerDynamic("6b", ["6a", "89", "87", "22", "72", "88", "71", "3d"] sourcePart = codegen.toString(); } else { codegen = new change_detection_jit_generator_1.ChangeDetectorJITGenerator(definition, "" + UTIL_MODULE + UTIL, "" + ABSTRACT_CHANGE_DETECTOR_MODULE + ABSTRACT_CHANGE_DETECTOR, "" + CONSTANTS_MODULE + CHANGE_DETECTOR_STATE); - factories.push("function(dispatcher) { return new " + codegen.typeName + "(dispatcher); }"); + factories.push("function() { return new " + codegen.typeName + "(); }"); sourcePart = codegen.generateSource(); } index++; @@ -14491,15 +14910,15 @@ $__System.registerDynamic("6b", ["6a", "89", "87", "22", "72", "88", "71", "3d"] return module.exports; }); -$__System.registerDynamic("8a", ["3b", "22", "38"], true, function($__require, exports, module) { +$__System.registerDynamic("8c", ["3a", "2b", "37"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; (function(process) { 'use strict'; - var collection_1 = $__require('3b'); - var lang_1 = $__require('22'); + var collection_1 = $__require('3a'); + var lang_1 = $__require('2b'); var ShadowCss = (function() { function ShadowCss() { this.strictStyling = true; @@ -14764,18 +15183,18 @@ $__System.registerDynamic("8a", ["3b", "22", "38"], true, function($__require, e } return new StringWithEscapedBlocks(resultParts.join(''), escapedBlocks); } - })($__require('38')); + })($__require('37')); global.define = __define; return module.exports; }); -$__System.registerDynamic("7a", ["22"], true, function($__require, exports, module) { +$__System.registerDynamic("78", ["2b"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var lang_1 = $__require('22'); + var lang_1 = $__require('2b'); var StyleWithImports = (function() { function StyleWithImports(style, styleUrls) { this.style = style; @@ -14810,383 +15229,7 @@ $__System.registerDynamic("7a", ["22"], true, function($__require, exports, modu return module.exports; }); -$__System.registerDynamic("53", ["40", "3b", "22", "5a"], true, function($__require, exports, module) { - "use strict"; - ; - var global = this, - __define = global.define; - global.define = undefined; - var __extends = (this && this.__extends) || function(d, b) { - for (var p in b) - if (b.hasOwnProperty(p)) - d[p] = b[p]; - function __() { - this.constructor = d; - } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; - var exceptions_1 = $__require('40'); - var collection_1 = $__require('3b'); - var lang_1 = $__require('22'); - var api_1 = $__require('5a'); - var DefaultProtoViewRef = (function(_super) { - __extends(DefaultProtoViewRef, _super); - function DefaultProtoViewRef(template, cmds) { - _super.call(this); - this.template = template; - this.cmds = cmds; - } - return DefaultProtoViewRef; - })(api_1.RenderProtoViewRef); - exports.DefaultProtoViewRef = DefaultProtoViewRef; - var DefaultRenderFragmentRef = (function(_super) { - __extends(DefaultRenderFragmentRef, _super); - function DefaultRenderFragmentRef(nodes) { - _super.call(this); - this.nodes = nodes; - } - return DefaultRenderFragmentRef; - })(api_1.RenderFragmentRef); - exports.DefaultRenderFragmentRef = DefaultRenderFragmentRef; - var DefaultRenderView = (function(_super) { - __extends(DefaultRenderView, _super); - function DefaultRenderView(fragments, boundTextNodes, boundElements, nativeShadowRoots, globalEventAdders, rootContentInsertionPoints) { - _super.call(this); - this.fragments = fragments; - this.boundTextNodes = boundTextNodes; - this.boundElements = boundElements; - this.nativeShadowRoots = nativeShadowRoots; - this.globalEventAdders = globalEventAdders; - this.rootContentInsertionPoints = rootContentInsertionPoints; - this.hydrated = false; - this.eventDispatcher = null; - this.globalEventRemovers = null; - } - DefaultRenderView.prototype.hydrate = function() { - if (this.hydrated) - throw new exceptions_1.BaseException('The view is already hydrated.'); - this.hydrated = true; - this.globalEventRemovers = collection_1.ListWrapper.createFixedSize(this.globalEventAdders.length); - for (var i = 0; i < this.globalEventAdders.length; i++) { - this.globalEventRemovers[i] = this.globalEventAdders[i](); - } - }; - DefaultRenderView.prototype.dehydrate = function() { - if (!this.hydrated) - throw new exceptions_1.BaseException('The view is already dehydrated.'); - for (var i = 0; i < this.globalEventRemovers.length; i++) { - this.globalEventRemovers[i](); - } - this.globalEventRemovers = null; - this.hydrated = false; - }; - DefaultRenderView.prototype.setEventDispatcher = function(dispatcher) { - this.eventDispatcher = dispatcher; - }; - DefaultRenderView.prototype.dispatchRenderEvent = function(boundElementIndex, eventName, event) { - var allowDefaultBehavior = true; - if (lang_1.isPresent(this.eventDispatcher)) { - var locals = new collection_1.Map(); - locals.set('$event', event); - allowDefaultBehavior = this.eventDispatcher.dispatchRenderEvent(boundElementIndex, eventName, locals); - } - return allowDefaultBehavior; - }; - return DefaultRenderView; - })(api_1.RenderViewRef); - exports.DefaultRenderView = DefaultRenderView; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("52", ["22", "53", "54", "3b", "38"], true, function($__require, exports, module) { - ; - var global = this, - __define = global.define; - global.define = undefined; - (function(process) { - 'use strict'; - var lang_1 = $__require('22'); - var view_1 = $__require('53'); - var metadata_1 = $__require('54'); - var collection_1 = $__require('3b'); - function encapsulateStyles(componentTemplate) { - var processedStyles = componentTemplate.styles; - if (componentTemplate.encapsulation === metadata_1.ViewEncapsulation.Emulated) { - processedStyles = collection_1.ListWrapper.createFixedSize(componentTemplate.styles.length); - for (var i = 0; i < componentTemplate.styles.length; i++) { - processedStyles[i] = lang_1.StringWrapper.replaceAll(componentTemplate.styles[i], COMPONENT_REGEX, componentTemplate.shortId); - } - } - return processedStyles; - } - exports.encapsulateStyles = encapsulateStyles; - function createRenderView(componentTemplate, cmds, inplaceElement, nodeFactory) { - var view; - var eventDispatcher = function(boundElementIndex, eventName, event) { - return view.dispatchRenderEvent(boundElementIndex, eventName, event); - }; - var context = new BuildContext(eventDispatcher, nodeFactory, inplaceElement); - context.build(componentTemplate, cmds); - var fragments = []; - for (var i = 0; i < context.fragments.length; i++) { - fragments.push(new view_1.DefaultRenderFragmentRef(context.fragments[i])); - } - view = new view_1.DefaultRenderView(fragments, context.boundTextNodes, context.boundElements, context.nativeShadowRoots, context.globalEventAdders, context.rootContentInsertionPoints); - return view; - } - exports.createRenderView = createRenderView; - var BuildContext = (function() { - function BuildContext(_eventDispatcher, factory, _inplaceElement) { - this._eventDispatcher = _eventDispatcher; - this.factory = factory; - this._inplaceElement = _inplaceElement; - this._builders = []; - this.globalEventAdders = []; - this.boundElements = []; - this.boundTextNodes = []; - this.nativeShadowRoots = []; - this.fragments = []; - this.rootContentInsertionPoints = []; - this.componentCount = 0; - this.isHost = lang_1.isPresent((_inplaceElement)); - } - BuildContext.prototype.build = function(template, cmds) { - this.enqueueRootBuilder(template, cmds); - this._build(this._builders[0]); - }; - BuildContext.prototype._build = function(builder) { - this._builders = []; - builder.build(this); - var enqueuedBuilders = this._builders; - for (var i = 0; i < enqueuedBuilders.length; i++) { - this._build(enqueuedBuilders[i]); - } - }; - BuildContext.prototype.enqueueComponentBuilder = function(component) { - this.componentCount++; - this._builders.push(new RenderViewBuilder(component, null, component.template, component.template.commands)); - }; - BuildContext.prototype.enqueueFragmentBuilder = function(parentComponent, parentTemplate, commands) { - var rootNodes = []; - this.fragments.push(rootNodes); - this._builders.push(new RenderViewBuilder(parentComponent, rootNodes, parentTemplate, commands)); - }; - BuildContext.prototype.enqueueRootBuilder = function(template, cmds) { - var rootNodes = []; - this.fragments.push(rootNodes); - this._builders.push(new RenderViewBuilder(null, rootNodes, template, cmds)); - }; - BuildContext.prototype.consumeInplaceElement = function() { - var result = this._inplaceElement; - this._inplaceElement = null; - return result; - }; - BuildContext.prototype.addEventListener = function(boundElementIndex, target, eventName) { - if (lang_1.isPresent(target)) { - var handler = createEventHandler(boundElementIndex, target + ":" + eventName, this._eventDispatcher); - this.globalEventAdders.push(createGlobalEventAdder(target, eventName, handler, this.factory)); - } else { - var handler = createEventHandler(boundElementIndex, eventName, this._eventDispatcher); - this.factory.on(this.boundElements[boundElementIndex], eventName, handler); - } - }; - return BuildContext; - })(); - function createEventHandler(boundElementIndex, eventName, eventDispatcher) { - return function($event) { - return eventDispatcher(boundElementIndex, eventName, $event); - }; - } - function createGlobalEventAdder(target, eventName, eventHandler, nodeFactory) { - return function() { - return nodeFactory.globalOn(target, eventName, eventHandler); - }; - } - var RenderViewBuilder = (function() { - function RenderViewBuilder(parentComponent, fragmentRootNodes, template, cmds) { - this.parentComponent = parentComponent; - this.fragmentRootNodes = fragmentRootNodes; - this.template = template; - this.cmds = cmds; - var rootNodesParent = lang_1.isPresent(fragmentRootNodes) ? null : parentComponent.shadowRoot; - this.parentStack = [rootNodesParent]; - } - RenderViewBuilder.prototype.build = function(context) { - var cmds = this.cmds; - for (var i = 0; i < cmds.length; i++) { - cmds[i].visit(this, context); - } - }; - Object.defineProperty(RenderViewBuilder.prototype, "parent", { - get: function() { - return this.parentStack[this.parentStack.length - 1]; - }, - enumerable: true, - configurable: true - }); - RenderViewBuilder.prototype.visitText = function(cmd, context) { - var text = context.factory.createText(cmd.value); - this._addChild(text, cmd.ngContentIndex, context); - if (cmd.isBound) { - context.boundTextNodes.push(text); - } - return null; - }; - RenderViewBuilder.prototype.visitNgContent = function(cmd, context) { - if (lang_1.isPresent(this.parentComponent)) { - if (this.parentComponent.isRoot) { - var insertionPoint = context.factory.createRootContentInsertionPoint(); - if (this.parent instanceof Component) { - context.factory.appendChild(this.parent.shadowRoot, insertionPoint); - } else { - context.factory.appendChild(this.parent, insertionPoint); - } - context.rootContentInsertionPoints.push(insertionPoint); - } else { - var projectedNodes = this.parentComponent.project(cmd.index); - for (var i = 0; i < projectedNodes.length; i++) { - var node = projectedNodes[i]; - this._addChild(node, cmd.ngContentIndex, context); - } - } - } - return null; - }; - RenderViewBuilder.prototype.visitBeginElement = function(cmd, context) { - this.parentStack.push(this._beginElement(cmd, context, null)); - return null; - }; - RenderViewBuilder.prototype.visitEndElement = function(context) { - this._endElement(); - return null; - }; - RenderViewBuilder.prototype.visitBeginComponent = function(cmd, context) { - var templateId = cmd.templateId; - var tpl = context.factory.resolveComponentTemplate(templateId); - var el = this._beginElement(cmd, context, tpl); - var root = el; - if (tpl.encapsulation === metadata_1.ViewEncapsulation.Native) { - root = context.factory.createShadowRoot(el, templateId); - context.nativeShadowRoots.push(root); - } - var isRoot = context.componentCount === 0 && context.isHost; - var component = new Component(el, root, isRoot, tpl); - context.enqueueComponentBuilder(component); - this.parentStack.push(component); - return null; - }; - RenderViewBuilder.prototype.visitEndComponent = function(context) { - this._endElement(); - return null; - }; - RenderViewBuilder.prototype.visitEmbeddedTemplate = function(cmd, context) { - var el = context.factory.createTemplateAnchor(cmd.attrNameAndValues); - this._addChild(el, cmd.ngContentIndex, context); - context.boundElements.push(el); - if (cmd.isMerged) { - context.enqueueFragmentBuilder(this.parentComponent, this.template, cmd.children); - } - return null; - }; - RenderViewBuilder.prototype._beginElement = function(cmd, context, componentTemplate) { - var el = context.consumeInplaceElement(); - var attrNameAndValues = cmd.attrNameAndValues; - var templateEmulatedEncapsulation = this.template.encapsulation === metadata_1.ViewEncapsulation.Emulated; - var componentEmulatedEncapsulation = lang_1.isPresent(componentTemplate) && componentTemplate.encapsulation === metadata_1.ViewEncapsulation.Emulated; - var newAttrLength = attrNameAndValues.length + (templateEmulatedEncapsulation ? 2 : 0) + (componentEmulatedEncapsulation ? 2 : 0); - if (newAttrLength > attrNameAndValues.length) { - var newAttrNameAndValues = collection_1.ListWrapper.createFixedSize(newAttrLength); - var attrIndex; - for (attrIndex = 0; attrIndex < attrNameAndValues.length; attrIndex++) { - newAttrNameAndValues[attrIndex] = attrNameAndValues[attrIndex]; - } - if (templateEmulatedEncapsulation) { - newAttrNameAndValues[attrIndex++] = _shimContentAttribute(this.template.shortId); - newAttrNameAndValues[attrIndex++] = ''; - } - if (componentEmulatedEncapsulation) { - newAttrNameAndValues[attrIndex++] = _shimHostAttribute(componentTemplate.shortId); - newAttrNameAndValues[attrIndex++] = ''; - } - attrNameAndValues = newAttrNameAndValues; - } - if (lang_1.isPresent(el)) { - context.factory.mergeElement(el, attrNameAndValues); - this.fragmentRootNodes.push(el); - } else { - el = context.factory.createElement(cmd.name, attrNameAndValues); - this._addChild(el, cmd.ngContentIndex, context); - } - if (cmd.isBound) { - var boundElementIndex = context.boundElements.length; - context.boundElements.push(el); - for (var i = 0; i < cmd.eventTargetAndNames.length; i += 2) { - var target = cmd.eventTargetAndNames[i]; - var eventName = cmd.eventTargetAndNames[i + 1]; - context.addEventListener(boundElementIndex, target, eventName); - } - } - return el; - }; - RenderViewBuilder.prototype._endElement = function() { - this.parentStack.pop(); - }; - RenderViewBuilder.prototype._addChild = function(node, ngContentIndex, context) { - var parent = this.parent; - if (lang_1.isPresent(parent)) { - if (parent instanceof Component) { - parent.addContentNode(ngContentIndex, node, context); - } else { - context.factory.appendChild(parent, node); - } - } else { - this.fragmentRootNodes.push(node); - } - }; - return RenderViewBuilder; - })(); - var Component = (function() { - function Component(hostElement, shadowRoot, isRoot, template) { - this.hostElement = hostElement; - this.shadowRoot = shadowRoot; - this.isRoot = isRoot; - this.template = template; - this.contentNodesByNgContentIndex = []; - } - Component.prototype.addContentNode = function(ngContentIndex, node, context) { - if (lang_1.isBlank(ngContentIndex)) { - if (this.template.encapsulation === metadata_1.ViewEncapsulation.Native) { - context.factory.appendChild(this.hostElement, node); - } - } else { - while (this.contentNodesByNgContentIndex.length <= ngContentIndex) { - this.contentNodesByNgContentIndex.push([]); - } - this.contentNodesByNgContentIndex[ngContentIndex].push(node); - } - }; - Component.prototype.project = function(ngContentIndex) { - return ngContentIndex < this.contentNodesByNgContentIndex.length ? this.contentNodesByNgContentIndex[ngContentIndex] : []; - }; - return Component; - })(); - var COMPONENT_REGEX = /%COMP%/g; - exports.COMPONENT_VARIABLE = '%COMP%'; - exports.HOST_ATTR = "_nghost-" + exports.COMPONENT_VARIABLE; - exports.CONTENT_ATTR = "_ngcontent-" + exports.COMPONENT_VARIABLE; - function _shimContentAttribute(componentShortId) { - return lang_1.StringWrapper.replaceAll(exports.CONTENT_ATTR, COMPONENT_REGEX, componentShortId); - } - function _shimHostAttribute(componentShortId) { - return lang_1.StringWrapper.replaceAll(exports.HOST_ATTR, COMPONENT_REGEX, componentShortId); - } - })($__require('38')); - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("6c", ["6a", "7f", "7d", "22", "67", "8a", "7e", "7a", "71", "3d", "52"], true, function($__require, exports, module) { +$__System.registerDynamic("67", ["65", "7d", "7b", "2b", "62", "8c", "7c", "78", "70", "3c"], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -15208,17 +15251,19 @@ $__System.registerDynamic("6c", ["6a", "7f", "7d", "22", "67", "8a", "7e", "7a", if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; - var source_module_1 = $__require('6a'); - var view_1 = $__require('7f'); - var xhr_1 = $__require('7d'); - var lang_1 = $__require('22'); - var async_1 = $__require('67'); - var shadow_css_1 = $__require('8a'); - var url_resolver_1 = $__require('7e'); - var style_url_resolver_1 = $__require('7a'); - var util_1 = $__require('71'); - var di_1 = $__require('3d'); - var view_factory_1 = $__require('52'); + var source_module_1 = $__require('65'); + var view_1 = $__require('7d'); + var xhr_1 = $__require('7b'); + var lang_1 = $__require('2b'); + var async_1 = $__require('62'); + var shadow_css_1 = $__require('8c'); + var url_resolver_1 = $__require('7c'); + var style_url_resolver_1 = $__require('78'); + var util_1 = $__require('70'); + var di_1 = $__require('3c'); + var COMPONENT_VARIABLE = '%COMP%'; + var HOST_ATTR = "_nghost-" + COMPONENT_VARIABLE; + var CONTENT_ATTR = "_ngcontent-" + COMPONENT_VARIABLE; var StyleCompiler = (function() { function StyleCompiler(_xhr, _urlResolver) { this._xhr = _xhr; @@ -15284,7 +15329,7 @@ $__System.registerDynamic("6c", ["6a", "7f", "7d", "22", "67", "8a", "7e", "7a", return new source_module_1.SourceModule(this._createModuleUrl(stylesheetUrl, shim), moduleSource); }; StyleCompiler.prototype._shimIfNeeded = function(style, shim) { - return shim ? this._shadowCss.shimCssText(style, view_factory_1.CONTENT_ATTR, view_factory_1.HOST_ATTR) : style; + return shim ? this._shadowCss.shimCssText(style, CONTENT_ATTR, HOST_ATTR) : style; }; StyleCompiler.prototype._createModuleUrl = function(stylesheetUrl, shim) { return shim ? stylesheetUrl + ".shim" + util_1.MODULE_SUFFIX : "" + stylesheetUrl + util_1.MODULE_SUFFIX; @@ -15297,13 +15342,433 @@ $__System.registerDynamic("6c", ["6a", "7f", "7d", "22", "67", "8a", "7e", "7a", return module.exports; }); -$__System.registerDynamic("76", ["22"], true, function($__require, exports, module) { +$__System.registerDynamic("68", ["2b", "3a", "64", "65", "6d", "8d", "8e", "7d", "70", "3c", "69"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var lang_1 = $__require('22'); + var __decorate = (this && this.__decorate) || function(decorators, target, key, desc) { + var c = arguments.length, + r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, + d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") + r = Reflect.decorate(decorators, target, key, desc); + else + for (var i = decorators.length - 1; i >= 0; i--) + if (d = decorators[i]) + r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; + var __metadata = (this && this.__metadata) || function(k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") + return Reflect.metadata(k, v); + }; + var lang_1 = $__require('2b'); + var collection_1 = $__require('3a'); + var template_ast_1 = $__require('64'); + var source_module_1 = $__require('65'); + var view_1 = $__require('6d'); + var view_type_1 = $__require('8d'); + var element_1 = $__require('8e'); + var view_2 = $__require('7d'); + var util_1 = $__require('70'); + var di_1 = $__require('3c'); + var proto_view_compiler_1 = $__require('69'); + exports.VIEW_JIT_IMPORTS = lang_1.CONST_EXPR({ + 'AppView': view_1.AppView, + 'AppElement': element_1.AppElement, + 'flattenNestedViewRenderNodes': view_1.flattenNestedViewRenderNodes, + 'checkSlotCount': view_1.checkSlotCount + }); + var ViewCompiler = (function() { + function ViewCompiler() {} + ViewCompiler.prototype.compileComponentRuntime = function(component, template, styles, protoViews, changeDetectorFactories, componentViewFactory) { + var viewFactory = new RuntimeViewFactory(component, styles, protoViews, changeDetectorFactories, componentViewFactory); + return viewFactory.createViewFactory(template, 0, []); + }; + ViewCompiler.prototype.compileComponentCodeGen = function(component, template, styles, protoViews, changeDetectorFactoryExpressions, componentViewFactory) { + var viewFactory = new CodeGenViewFactory(component, styles, protoViews, changeDetectorFactoryExpressions, componentViewFactory); + var targetStatements = []; + var viewFactoryExpression = viewFactory.createViewFactory(template, 0, targetStatements); + return new source_module_1.SourceExpression(targetStatements.map(function(stmt) { + return stmt.statement; + }), viewFactoryExpression.expression); + }; + ViewCompiler = __decorate([di_1.Injectable(), __metadata('design:paramtypes', [])], ViewCompiler); + return ViewCompiler; + })(); + exports.ViewCompiler = ViewCompiler; + var CodeGenViewFactory = (function() { + function CodeGenViewFactory(component, styles, protoViews, changeDetectorExpressions, componentViewFactory) { + this.component = component; + this.styles = styles; + this.protoViews = protoViews; + this.changeDetectorExpressions = changeDetectorExpressions; + this.componentViewFactory = componentViewFactory; + this._nextVarId = 0; + } + CodeGenViewFactory.prototype._nextVar = function(prefix) { + return "" + prefix + this._nextVarId++ + "_" + this.component.type.name; + }; + CodeGenViewFactory.prototype._nextRenderVar = function() { + return this._nextVar('render'); + }; + CodeGenViewFactory.prototype._nextAppVar = function() { + return this._nextVar('app'); + }; + CodeGenViewFactory.prototype._nextDisposableVar = function() { + return "disposable" + this._nextVarId++ + "_" + this.component.type.name; + }; + CodeGenViewFactory.prototype.createText = function(renderer, parent, text, targetStatements) { + var varName = this._nextRenderVar(); + var statement = "var " + varName + " = " + renderer.expression + ".createText(" + (lang_1.isPresent(parent) ? parent.expression : null) + ", " + util_1.escapeSingleQuoteString(text) + ");"; + targetStatements.push(new util_1.Statement(statement)); + return new util_1.Expression(varName); + }; + CodeGenViewFactory.prototype.createElement = function(renderer, parentRenderNode, name, rootSelector, targetStatements) { + var varName = this._nextRenderVar(); + var valueExpr; + if (lang_1.isPresent(rootSelector)) { + valueExpr = rootSelector.expression + " == null ?\n " + renderer.expression + ".createElement(" + (lang_1.isPresent(parentRenderNode) ? parentRenderNode.expression : null) + ", " + util_1.escapeSingleQuoteString(name) + ") :\n " + renderer.expression + ".selectRootElement(" + rootSelector.expression + ");"; + } else { + valueExpr = renderer.expression + ".createElement(" + (lang_1.isPresent(parentRenderNode) ? parentRenderNode.expression : null) + ", " + util_1.escapeSingleQuoteString(name) + ")"; + } + var statement = "var " + varName + " = " + valueExpr + ";"; + targetStatements.push(new util_1.Statement(statement)); + return new util_1.Expression(varName); + }; + CodeGenViewFactory.prototype.createTemplateAnchor = function(renderer, parentRenderNode, targetStatements) { + var varName = this._nextRenderVar(); + var valueExpr = renderer.expression + ".createTemplateAnchor(" + (lang_1.isPresent(parentRenderNode) ? parentRenderNode.expression : null) + ");"; + targetStatements.push(new util_1.Statement("var " + varName + " = " + valueExpr)); + return new util_1.Expression(varName); + }; + CodeGenViewFactory.prototype.createGlobalEventListener = function(renderer, appView, boundElementIndex, eventAst, targetStatements) { + var disposableVar = this._nextDisposableVar(); + var eventHandlerExpr = codeGenEventHandler(appView, boundElementIndex, eventAst.fullName); + targetStatements.push(new util_1.Statement("var " + disposableVar + " = " + renderer.expression + ".listenGlobal(" + util_1.escapeValue(eventAst.target) + ", " + util_1.escapeValue(eventAst.name) + ", " + eventHandlerExpr + ");")); + return new util_1.Expression(disposableVar); + }; + CodeGenViewFactory.prototype.createElementEventListener = function(renderer, appView, boundElementIndex, renderNode, eventAst, targetStatements) { + var disposableVar = this._nextDisposableVar(); + var eventHandlerExpr = codeGenEventHandler(appView, boundElementIndex, eventAst.fullName); + targetStatements.push(new util_1.Statement("var " + disposableVar + " = " + renderer.expression + ".listen(" + renderNode.expression + ", " + util_1.escapeValue(eventAst.name) + ", " + eventHandlerExpr + ");")); + return new util_1.Expression(disposableVar); + }; + CodeGenViewFactory.prototype.setElementAttribute = function(renderer, renderNode, attrName, attrValue, targetStatements) { + targetStatements.push(new util_1.Statement(renderer.expression + ".setElementAttribute(" + renderNode.expression + ", " + util_1.escapeSingleQuoteString(attrName) + ", " + util_1.escapeSingleQuoteString(attrValue) + ");")); + }; + CodeGenViewFactory.prototype.createAppElement = function(appProtoEl, appView, renderNode, parentAppEl, embeddedViewFactory, targetStatements) { + var appVar = this._nextAppVar(); + var varValue = "new " + proto_view_compiler_1.APP_EL_MODULE_REF + "AppElement(" + appProtoEl.expression + ", " + appView.expression + ",\n " + (lang_1.isPresent(parentAppEl) ? parentAppEl.expression : null) + ", " + renderNode.expression + ", " + (lang_1.isPresent(embeddedViewFactory) ? embeddedViewFactory.expression : null) + ")"; + targetStatements.push(new util_1.Statement("var " + appVar + " = " + varValue + ";")); + return new util_1.Expression(appVar); + }; + CodeGenViewFactory.prototype.createAndSetComponentView = function(renderer, viewManager, view, appEl, component, contentNodesByNgContentIndex, targetStatements) { + var codeGenContentNodes; + if (this.component.type.isHost) { + codeGenContentNodes = view.expression + ".projectableNodes"; + } else { + codeGenContentNodes = "[" + contentNodesByNgContentIndex.map(function(nodes) { + return util_1.codeGenFlatArray(nodes); + }).join(',') + "]"; + } + targetStatements.push(new util_1.Statement(this.componentViewFactory(component) + "(" + renderer.expression + ", " + viewManager.expression + ", " + appEl.expression + ", " + codeGenContentNodes + ", null, null, null);")); + }; + CodeGenViewFactory.prototype.getProjectedNodes = function(projectableNodes, ngContentIndex) { + return new util_1.Expression(projectableNodes.expression + "[" + ngContentIndex + "]", true); + }; + CodeGenViewFactory.prototype.appendProjectedNodes = function(renderer, parent, nodes, targetStatements) { + targetStatements.push(new util_1.Statement(renderer.expression + ".projectNodes(" + parent.expression + ", " + proto_view_compiler_1.APP_VIEW_MODULE_REF + "flattenNestedViewRenderNodes(" + nodes.expression + "));")); + }; + CodeGenViewFactory.prototype.createViewFactory = function(asts, embeddedTemplateIndex, targetStatements) { + var compileProtoView = this.protoViews[embeddedTemplateIndex]; + var isHostView = this.component.type.isHost; + var isComponentView = embeddedTemplateIndex === 0 && !isHostView; + var visitor = new ViewBuilderVisitor(new util_1.Expression('renderer'), new util_1.Expression('viewManager'), new util_1.Expression('projectableNodes'), isHostView ? new util_1.Expression('rootSelector') : null, new util_1.Expression('view'), compileProtoView, targetStatements, this); + template_ast_1.templateVisitAll(visitor, asts, new ParentElement(isComponentView ? new util_1.Expression('parentRenderNode') : null, null, null)); + var appProtoView = compileProtoView.protoView.expression; + var viewFactoryName = codeGenViewFactoryName(this.component, embeddedTemplateIndex); + var changeDetectorFactory = this.changeDetectorExpressions.expressions[embeddedTemplateIndex]; + var factoryArgs = ['parentRenderer', 'viewManager', 'containerEl', 'projectableNodes', 'rootSelector', 'dynamicallyCreatedProviders', 'rootInjector']; + var initRendererStmts = []; + var rendererExpr = "parentRenderer"; + if (embeddedTemplateIndex === 0) { + var renderCompTypeVar = this._nextVar('renderType'); + targetStatements.push(new util_1.Statement("var " + renderCompTypeVar + " = null;")); + var stylesVar = this._nextVar('styles'); + targetStatements.push(new util_1.Statement(util_1.CONST_VAR + " " + stylesVar + " = " + this.styles.expression + ";")); + var encapsulation = this.component.template.encapsulation; + initRendererStmts.push("if (" + renderCompTypeVar + " == null) {\n " + renderCompTypeVar + " = viewManager.createRenderComponentType(" + codeGenViewEncapsulation(encapsulation) + ", " + stylesVar + ");\n }"); + rendererExpr = "parentRenderer.renderComponent(" + renderCompTypeVar + ")"; + } + var statement = "\n" + util_1.codeGenFnHeader(factoryArgs, viewFactoryName) + "{\n " + initRendererStmts.join('\n') + "\n var renderer = " + rendererExpr + ";\n var view = new " + proto_view_compiler_1.APP_VIEW_MODULE_REF + "AppView(\n " + appProtoView + ", renderer, viewManager,\n projectableNodes,\n containerEl,\n dynamicallyCreatedProviders, rootInjector,\n " + changeDetectorFactory + "()\n );\n " + proto_view_compiler_1.APP_VIEW_MODULE_REF + "checkSlotCount(" + util_1.escapeValue(this.component.type.name) + ", " + this.component.template.ngContentSelectors.length + ", projectableNodes);\n " + (isComponentView ? 'var parentRenderNode = renderer.createViewRoot(view.containerAppElement.nativeElement);' : '') + "\n " + visitor.renderStmts.map(function(stmt) { + return stmt.statement; + }).join('\n') + "\n " + visitor.appStmts.map(function(stmt) { + return stmt.statement; + }).join('\n') + "\n\n view.init(" + util_1.codeGenFlatArray(visitor.rootNodesOrAppElements) + ", " + util_1.codeGenArray(visitor.renderNodes) + ", " + util_1.codeGenArray(visitor.appDisposables) + ",\n " + util_1.codeGenArray(visitor.appElements) + ");\n return view;\n}"; + targetStatements.push(new util_1.Statement(statement)); + return new util_1.Expression(viewFactoryName); + }; + return CodeGenViewFactory; + })(); + var RuntimeViewFactory = (function() { + function RuntimeViewFactory(component, styles, protoViews, changeDetectorFactories, componentViewFactory) { + this.component = component; + this.styles = styles; + this.protoViews = protoViews; + this.changeDetectorFactories = changeDetectorFactories; + this.componentViewFactory = componentViewFactory; + } + RuntimeViewFactory.prototype.createText = function(renderer, parent, text, targetStatements) { + return renderer.createText(parent, text); + }; + RuntimeViewFactory.prototype.createElement = function(renderer, parent, name, rootSelector, targetStatements) { + var el; + if (lang_1.isPresent(rootSelector)) { + el = renderer.selectRootElement(rootSelector); + } else { + el = renderer.createElement(parent, name); + } + return el; + }; + RuntimeViewFactory.prototype.createTemplateAnchor = function(renderer, parent, targetStatements) { + return renderer.createTemplateAnchor(parent); + }; + RuntimeViewFactory.prototype.createGlobalEventListener = function(renderer, appView, boundElementIndex, eventAst, targetStatements) { + return renderer.listenGlobal(eventAst.target, eventAst.name, function(event) { + return appView.triggerEventHandlers(eventAst.fullName, event, boundElementIndex); + }); + }; + RuntimeViewFactory.prototype.createElementEventListener = function(renderer, appView, boundElementIndex, renderNode, eventAst, targetStatements) { + return renderer.listen(renderNode, eventAst.name, function(event) { + return appView.triggerEventHandlers(eventAst.fullName, event, boundElementIndex); + }); + }; + RuntimeViewFactory.prototype.setElementAttribute = function(renderer, renderNode, attrName, attrValue, targetStatements) { + renderer.setElementAttribute(renderNode, attrName, attrValue); + }; + RuntimeViewFactory.prototype.createAppElement = function(appProtoEl, appView, renderNode, parentAppEl, embeddedViewFactory, targetStatements) { + return new element_1.AppElement(appProtoEl, appView, parentAppEl, renderNode, embeddedViewFactory); + }; + RuntimeViewFactory.prototype.createAndSetComponentView = function(renderer, viewManager, appView, appEl, component, contentNodesByNgContentIndex, targetStatements) { + var flattenedContentNodes; + if (this.component.type.isHost) { + flattenedContentNodes = appView.projectableNodes; + } else { + flattenedContentNodes = collection_1.ListWrapper.createFixedSize(contentNodesByNgContentIndex.length); + for (var i = 0; i < contentNodesByNgContentIndex.length; i++) { + flattenedContentNodes[i] = util_1.flattenArray(contentNodesByNgContentIndex[i], []); + } + } + this.componentViewFactory(component)(renderer, viewManager, appEl, flattenedContentNodes); + }; + RuntimeViewFactory.prototype.getProjectedNodes = function(projectableNodes, ngContentIndex) { + return projectableNodes[ngContentIndex]; + }; + RuntimeViewFactory.prototype.appendProjectedNodes = function(renderer, parent, nodes, targetStatements) { + renderer.projectNodes(parent, view_1.flattenNestedViewRenderNodes(nodes)); + }; + RuntimeViewFactory.prototype.createViewFactory = function(asts, embeddedTemplateIndex, targetStatements) { + var _this = this; + var compileProtoView = this.protoViews[embeddedTemplateIndex]; + var isComponentView = compileProtoView.protoView.type === view_type_1.ViewType.COMPONENT; + var renderComponentType = null; + return function(parentRenderer, viewManager, containerEl, projectableNodes, rootSelector, dynamicallyCreatedProviders, rootInjector) { + if (rootSelector === void 0) { + rootSelector = null; + } + if (dynamicallyCreatedProviders === void 0) { + dynamicallyCreatedProviders = null; + } + if (rootInjector === void 0) { + rootInjector = null; + } + view_1.checkSlotCount(_this.component.type.name, _this.component.template.ngContentSelectors.length, projectableNodes); + var renderer; + if (embeddedTemplateIndex === 0) { + if (lang_1.isBlank(renderComponentType)) { + renderComponentType = viewManager.createRenderComponentType(_this.component.template.encapsulation, _this.styles); + } + renderer = parentRenderer.renderComponent(renderComponentType); + } else { + renderer = parentRenderer; + } + var changeDetector = _this.changeDetectorFactories[embeddedTemplateIndex](); + var view = new view_1.AppView(compileProtoView.protoView, renderer, viewManager, projectableNodes, containerEl, dynamicallyCreatedProviders, rootInjector, changeDetector); + var visitor = new ViewBuilderVisitor(renderer, viewManager, projectableNodes, rootSelector, view, compileProtoView, [], _this); + var parentRenderNode = isComponentView ? renderer.createViewRoot(containerEl.nativeElement) : null; + template_ast_1.templateVisitAll(visitor, asts, new ParentElement(parentRenderNode, null, null)); + view.init(util_1.flattenArray(visitor.rootNodesOrAppElements, []), visitor.renderNodes, visitor.appDisposables, visitor.appElements); + return view; + }; + }; + return RuntimeViewFactory; + })(); + var ParentElement = (function() { + function ParentElement(renderNode, appEl, component) { + this.renderNode = renderNode; + this.appEl = appEl; + this.component = component; + if (lang_1.isPresent(component)) { + this.contentNodesByNgContentIndex = collection_1.ListWrapper.createFixedSize(component.template.ngContentSelectors.length); + for (var i = 0; i < this.contentNodesByNgContentIndex.length; i++) { + this.contentNodesByNgContentIndex[i] = []; + } + } else { + this.contentNodesByNgContentIndex = null; + } + } + ParentElement.prototype.addContentNode = function(ngContentIndex, nodeExpr) { + this.contentNodesByNgContentIndex[ngContentIndex].push(nodeExpr); + }; + return ParentElement; + })(); + var ViewBuilderVisitor = (function() { + function ViewBuilderVisitor(renderer, viewManager, projectableNodes, rootSelector, view, protoView, targetStatements, factory) { + this.renderer = renderer; + this.viewManager = viewManager; + this.projectableNodes = projectableNodes; + this.rootSelector = rootSelector; + this.view = view; + this.protoView = protoView; + this.targetStatements = targetStatements; + this.factory = factory; + this.renderStmts = []; + this.renderNodes = []; + this.appStmts = []; + this.appElements = []; + this.appDisposables = []; + this.rootNodesOrAppElements = []; + this.elementCount = 0; + } + ViewBuilderVisitor.prototype._addRenderNode = function(renderNode, appEl, ngContentIndex, parent) { + this.renderNodes.push(renderNode); + if (lang_1.isPresent(parent.component)) { + if (lang_1.isPresent(ngContentIndex)) { + parent.addContentNode(ngContentIndex, lang_1.isPresent(appEl) ? appEl : renderNode); + } + } else if (lang_1.isBlank(parent.renderNode)) { + this.rootNodesOrAppElements.push(lang_1.isPresent(appEl) ? appEl : renderNode); + } + }; + ViewBuilderVisitor.prototype._getParentRenderNode = function(ngContentIndex, parent) { + return lang_1.isPresent(parent.component) && parent.component.template.encapsulation !== view_2.ViewEncapsulation.Native ? null : parent.renderNode; + }; + ViewBuilderVisitor.prototype.visitBoundText = function(ast, parent) { + return this._visitText('', ast.ngContentIndex, parent); + }; + ViewBuilderVisitor.prototype.visitText = function(ast, parent) { + return this._visitText(ast.value, ast.ngContentIndex, parent); + }; + ViewBuilderVisitor.prototype._visitText = function(value, ngContentIndex, parent) { + var renderNode = this.factory.createText(this.renderer, this._getParentRenderNode(ngContentIndex, parent), value, this.renderStmts); + this._addRenderNode(renderNode, null, ngContentIndex, parent); + return null; + }; + ViewBuilderVisitor.prototype.visitNgContent = function(ast, parent) { + var nodesExpression = this.factory.getProjectedNodes(this.projectableNodes, ast.index); + if (lang_1.isPresent(parent.component)) { + if (lang_1.isPresent(ast.ngContentIndex)) { + parent.addContentNode(ast.ngContentIndex, nodesExpression); + } + } else { + if (lang_1.isPresent(parent.renderNode)) { + this.factory.appendProjectedNodes(this.renderer, parent.renderNode, nodesExpression, this.renderStmts); + } else { + this.rootNodesOrAppElements.push(nodesExpression); + } + } + return null; + }; + ViewBuilderVisitor.prototype.visitElement = function(ast, parent) { + var _this = this; + var renderNode = this.factory.createElement(this.renderer, this._getParentRenderNode(ast.ngContentIndex, parent), ast.name, this.rootSelector, this.renderStmts); + var component = ast.getComponent(); + var elementIndex = this.elementCount++; + var protoEl = this.protoView.protoElements[elementIndex]; + protoEl.renderEvents.forEach(function(eventAst) { + var disposable; + if (lang_1.isPresent(eventAst.target)) { + disposable = _this.factory.createGlobalEventListener(_this.renderer, _this.view, protoEl.boundElementIndex, eventAst, _this.renderStmts); + } else { + disposable = _this.factory.createElementEventListener(_this.renderer, _this.view, protoEl.boundElementIndex, renderNode, eventAst, _this.renderStmts); + } + _this.appDisposables.push(disposable); + }); + for (var i = 0; i < protoEl.attrNameAndValues.length; i++) { + var attrName = protoEl.attrNameAndValues[i][0]; + var attrValue = protoEl.attrNameAndValues[i][1]; + this.factory.setElementAttribute(this.renderer, renderNode, attrName, attrValue, this.renderStmts); + } + var appEl = null; + if (lang_1.isPresent(protoEl.appProtoEl)) { + appEl = this.factory.createAppElement(protoEl.appProtoEl, this.view, renderNode, parent.appEl, null, this.appStmts); + this.appElements.push(appEl); + } + this._addRenderNode(renderNode, appEl, ast.ngContentIndex, parent); + var newParent = new ParentElement(renderNode, lang_1.isPresent(appEl) ? appEl : parent.appEl, component); + template_ast_1.templateVisitAll(this, ast.children, newParent); + if (lang_1.isPresent(appEl) && lang_1.isPresent(component)) { + this.factory.createAndSetComponentView(this.renderer, this.viewManager, this.view, appEl, component, newParent.contentNodesByNgContentIndex, this.appStmts); + } + return null; + }; + ViewBuilderVisitor.prototype.visitEmbeddedTemplate = function(ast, parent) { + var renderNode = this.factory.createTemplateAnchor(this.renderer, this._getParentRenderNode(ast.ngContentIndex, parent), this.renderStmts); + var elementIndex = this.elementCount++; + var protoEl = this.protoView.protoElements[elementIndex]; + var embeddedViewFactory = this.factory.createViewFactory(ast.children, protoEl.embeddedTemplateIndex, this.targetStatements); + var appEl = this.factory.createAppElement(protoEl.appProtoEl, this.view, renderNode, parent.appEl, embeddedViewFactory, this.appStmts); + this._addRenderNode(renderNode, appEl, ast.ngContentIndex, parent); + this.appElements.push(appEl); + return null; + }; + ViewBuilderVisitor.prototype.visitVariable = function(ast, ctx) { + return null; + }; + ViewBuilderVisitor.prototype.visitAttr = function(ast, ctx) { + return null; + }; + ViewBuilderVisitor.prototype.visitDirective = function(ast, ctx) { + return null; + }; + ViewBuilderVisitor.prototype.visitEvent = function(ast, ctx) { + return null; + }; + ViewBuilderVisitor.prototype.visitDirectiveProperty = function(ast, context) { + return null; + }; + ViewBuilderVisitor.prototype.visitElementProperty = function(ast, context) { + return null; + }; + return ViewBuilderVisitor; + })(); + function codeGenEventHandler(view, boundElementIndex, eventName) { + return util_1.codeGenValueFn(['event'], view.expression + ".triggerEventHandlers(" + util_1.escapeValue(eventName) + ", event, " + boundElementIndex + ")"); + } + function codeGenViewFactoryName(component, embeddedTemplateIndex) { + return "viewFactory_" + component.type.name + embeddedTemplateIndex; + } + function codeGenViewEncapsulation(value) { + if (lang_1.IS_DART) { + return "" + proto_view_compiler_1.METADATA_MODULE_REF + value; + } else { + return "" + value; + } + } + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("64", ["2b"], true, function($__require, exports, module) { + "use strict"; + ; + var global = this, + __define = global.define; + global.define = undefined; + var lang_1 = $__require('2b'); var TextAst = (function() { function TextAst(value, ngContentIndex, sourceSpan) { this.value = value; @@ -15495,13 +15960,13 @@ $__System.registerDynamic("76", ["22"], true, function($__require, exports, modu return module.exports; }); -$__System.registerDynamic("6a", ["22"], true, function($__require, exports, module) { +$__System.registerDynamic("65", ["2b"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var lang_1 = $__require('22'); + var lang_1 = $__require('2b'); var MODULE_REGEXP = /#MODULE\[([^\]]*)\]/g; function moduleRef(moduleUrl) { return "#MODULE[" + moduleUrl + "]"; @@ -15512,6 +15977,11 @@ $__System.registerDynamic("6a", ["22"], true, function($__require, exports, modu this.moduleUrl = moduleUrl; this.sourceWithModuleRefs = sourceWithModuleRefs; } + SourceModule.getSourceWithoutImports = function(sourceWithModuleRefs) { + return lang_1.StringWrapper.replaceAllMapped(sourceWithModuleRefs, MODULE_REGEXP, function(match) { + return ''; + }); + }; SourceModule.prototype.getSourceWithImports = function() { var _this = this; var moduleAliases = {}; @@ -15563,18 +16033,19 @@ $__System.registerDynamic("6a", ["22"], true, function($__require, exports, modu return module.exports; }); -$__System.registerDynamic("71", ["22"], true, function($__require, exports, module) { +$__System.registerDynamic("70", ["2b"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var lang_1 = $__require('22'); + var lang_1 = $__require('2b'); var CAMEL_CASE_REGEXP = /([A-Z])/g; var DASH_CASE_REGEXP = /-([a-z])/g; var SINGLE_QUOTE_ESCAPE_STRING_RE = /'|\\|\n|\r|\$/g; var DOUBLE_QUOTE_ESCAPE_STRING_RE = /"|\\|\n|\r|\$/g; exports.MODULE_SUFFIX = lang_1.IS_DART ? '.dart' : '.js'; + exports.CONST_VAR = lang_1.IS_DART ? 'const' : 'var'; function camelCaseToDashCase(input) { return lang_1.StringWrapper.replaceAllMapped(input, CAMEL_CASE_REGEXP, function(m) { return '-' + m[1].toLowerCase(); @@ -15635,12 +16106,23 @@ $__System.registerDynamic("71", ["22"], true, function($__require, exports, modu fnName = ''; } if (lang_1.IS_DART) { - return fnName + "(" + params.join(',') + ") => " + value; + return codeGenFnHeader(params, fnName) + " => " + value; } else { - return "function " + fnName + "(" + params.join(',') + ") { return " + value + "; }"; + return codeGenFnHeader(params, fnName) + " { return " + value + "; }"; } } exports.codeGenValueFn = codeGenValueFn; + function codeGenFnHeader(params, fnName) { + if (fnName === void 0) { + fnName = ''; + } + if (lang_1.IS_DART) { + return fnName + "(" + params.join(',') + ")"; + } else { + return "function " + fnName + "(" + params.join(',') + ")"; + } + } + exports.codeGenFnHeader = codeGenFnHeader; function codeGenToString(expr) { if (lang_1.IS_DART) { return "'${" + expr + "}'"; @@ -15658,16 +16140,107 @@ $__System.registerDynamic("71", ["22"], true, function($__require, exports, modu } } exports.splitAtColon = splitAtColon; + var Statement = (function() { + function Statement(statement) { + this.statement = statement; + } + return Statement; + })(); + exports.Statement = Statement; + var Expression = (function() { + function Expression(expression, isArray) { + if (isArray === void 0) { + isArray = false; + } + this.expression = expression; + this.isArray = isArray; + } + return Expression; + })(); + exports.Expression = Expression; + function escapeValue(value) { + if (value instanceof Expression) { + return value.expression; + } else if (lang_1.isString(value)) { + return escapeSingleQuoteString(value); + } else if (lang_1.isBlank(value)) { + return 'null'; + } else { + return "" + value; + } + } + exports.escapeValue = escapeValue; + function codeGenArray(data) { + return "[" + data.map(escapeValue).join(',') + "]"; + } + exports.codeGenArray = codeGenArray; + function codeGenFlatArray(values) { + var result = '(['; + var isFirstArrayEntry = true; + var concatFn = lang_1.IS_DART ? '.addAll' : 'concat'; + for (var i = 0; i < values.length; i++) { + var value = values[i]; + if (value instanceof Expression && value.isArray) { + result += "])." + concatFn + "(" + value.expression + ")." + concatFn + "(["; + isFirstArrayEntry = true; + } else { + if (!isFirstArrayEntry) { + result += ','; + } + isFirstArrayEntry = false; + result += escapeValue(value); + } + } + result += '])'; + return result; + } + exports.codeGenFlatArray = codeGenFlatArray; + function codeGenStringMap(keyValueArray) { + return "{" + keyValueArray.map(codeGenKeyValue).join(',') + "}"; + } + exports.codeGenStringMap = codeGenStringMap; + function codeGenKeyValue(keyValue) { + return escapeValue(keyValue[0]) + ":" + escapeValue(keyValue[1]); + } + function addAll(source, target) { + for (var i = 0; i < source.length; i++) { + target.push(source[i]); + } + } + exports.addAll = addAll; + function flattenArray(source, target) { + if (lang_1.isPresent(source)) { + for (var i = 0; i < source.length; i++) { + var item = source[i]; + if (lang_1.isArray(item)) { + flattenArray(item, target); + } else { + target.push(item); + } + } + } + return target; + } + exports.flattenArray = flattenArray; global.define = __define; return module.exports; }); -$__System.registerDynamic("6d", ["22", "3b", "68", "76", "6a", "71", "3d"], true, function($__require, exports, module) { +$__System.registerDynamic("69", ["2b", "3a", "64", "65", "6d", "8d", "8e", "70", "3c"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; + var __extends = (this && this.__extends) || function(d, b) { + for (var p in b) + if (b.hasOwnProperty(p)) + d[p] = b[p]; + function __() { + this.constructor = d; + } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; var __decorate = (this && this.__decorate) || function(decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, @@ -15684,112 +16257,161 @@ $__System.registerDynamic("6d", ["22", "3b", "68", "76", "6a", "71", "3d"], true if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; - var lang_1 = $__require('22'); - var collection_1 = $__require('3b'); - var template_commands_1 = $__require('68'); - var template_ast_1 = $__require('76'); - var source_module_1 = $__require('6a'); - var util_1 = $__require('71'); - var di_1 = $__require('3d'); - exports.TEMPLATE_COMMANDS_MODULE_REF = source_module_1.moduleRef("package:angular2/src/core/linker/template_commands" + util_1.MODULE_SUFFIX); + var lang_1 = $__require('2b'); + var collection_1 = $__require('3a'); + var template_ast_1 = $__require('64'); + var source_module_1 = $__require('65'); + var view_1 = $__require('6d'); + var view_type_1 = $__require('8d'); + var element_1 = $__require('8e'); + var util_1 = $__require('70'); + var di_1 = $__require('3c'); + exports.PROTO_VIEW_JIT_IMPORTS = lang_1.CONST_EXPR({ + 'AppProtoView': view_1.AppProtoView, + 'AppProtoElement': element_1.AppProtoElement, + 'ViewType': view_type_1.ViewType + }); + exports.APP_VIEW_MODULE_REF = source_module_1.moduleRef('package:angular2/src/core/linker/view' + util_1.MODULE_SUFFIX); + exports.VIEW_TYPE_MODULE_REF = source_module_1.moduleRef('package:angular2/src/core/linker/view_type' + util_1.MODULE_SUFFIX); + exports.APP_EL_MODULE_REF = source_module_1.moduleRef('package:angular2/src/core/linker/element' + util_1.MODULE_SUFFIX); + exports.METADATA_MODULE_REF = source_module_1.moduleRef('package:angular2/src/core/metadata/view' + util_1.MODULE_SUFFIX); var IMPLICIT_TEMPLATE_VAR = '\$implicit'; var CLASS_ATTR = 'class'; var STYLE_ATTR = 'style'; - var CommandCompiler = (function() { - function CommandCompiler() {} - CommandCompiler.prototype.compileComponentRuntime = function(component, template, changeDetectorFactories, componentTemplateFactory) { - var visitor = new CommandBuilderVisitor(new RuntimeCommandFactory(component, componentTemplateFactory, changeDetectorFactories), 0); - template_ast_1.templateVisitAll(visitor, template); - return visitor.result; + var ProtoViewCompiler = (function() { + function ProtoViewCompiler() {} + ProtoViewCompiler.prototype.compileProtoViewRuntime = function(metadataCache, component, template, pipes) { + var protoViewFactory = new RuntimeProtoViewFactory(metadataCache, component, pipes); + var allProtoViews = []; + protoViewFactory.createCompileProtoView(template, [], [], allProtoViews); + return new CompileProtoViews([], allProtoViews); }; - CommandCompiler.prototype.compileComponentCodeGen = function(component, template, changeDetectorFactoryExpressions, componentTemplateFactory) { - var visitor = new CommandBuilderVisitor(new CodegenCommandFactory(component, componentTemplateFactory, changeDetectorFactoryExpressions), 0); - template_ast_1.templateVisitAll(visitor, template); - return new source_module_1.SourceExpression([], codeGenArray(visitor.result)); + ProtoViewCompiler.prototype.compileProtoViewCodeGen = function(resolvedMetadataCacheExpr, component, template, pipes) { + var protoViewFactory = new CodeGenProtoViewFactory(resolvedMetadataCacheExpr, component, pipes); + var allProtoViews = []; + var allStatements = []; + protoViewFactory.createCompileProtoView(template, [], allStatements, allProtoViews); + return new CompileProtoViews(allStatements.map(function(stmt) { + return stmt.statement; + }), allProtoViews); }; - CommandCompiler = __decorate([di_1.Injectable(), __metadata('design:paramtypes', [])], CommandCompiler); - return CommandCompiler; + ProtoViewCompiler = __decorate([di_1.Injectable(), __metadata('design:paramtypes', [])], ProtoViewCompiler); + return ProtoViewCompiler; })(); - exports.CommandCompiler = CommandCompiler; - var RuntimeCommandFactory = (function() { - function RuntimeCommandFactory(component, componentTemplateFactory, changeDetectorFactories) { - this.component = component; - this.componentTemplateFactory = componentTemplateFactory; - this.changeDetectorFactories = changeDetectorFactories; + exports.ProtoViewCompiler = ProtoViewCompiler; + var CompileProtoViews = (function() { + function CompileProtoViews(declarations, protoViews) { + this.declarations = declarations; + this.protoViews = protoViews; } - RuntimeCommandFactory.prototype._mapDirectives = function(directives) { - return directives.map(function(directive) { - return directive.type.runtime; - }); - }; - RuntimeCommandFactory.prototype.createText = function(value, isBound, ngContentIndex) { - return new template_commands_1.TextCmd(value, isBound, ngContentIndex); - }; - RuntimeCommandFactory.prototype.createNgContent = function(index, ngContentIndex) { - return new template_commands_1.NgContentCmd(index, ngContentIndex); - }; - RuntimeCommandFactory.prototype.createBeginElement = function(name, attrNameAndValues, eventTargetAndNames, variableNameAndValues, directives, isBound, ngContentIndex) { - return new template_commands_1.BeginElementCmd(name, attrNameAndValues, eventTargetAndNames, variableNameAndValues, this._mapDirectives(directives), isBound, ngContentIndex); - }; - RuntimeCommandFactory.prototype.createEndElement = function() { - return new template_commands_1.EndElementCmd(); - }; - RuntimeCommandFactory.prototype.createBeginComponent = function(name, attrNameAndValues, eventTargetAndNames, variableNameAndValues, directives, encapsulation, ngContentIndex) { - var nestedTemplateAccessor = this.componentTemplateFactory(directives[0]); - return new template_commands_1.BeginComponentCmd(name, attrNameAndValues, eventTargetAndNames, variableNameAndValues, this._mapDirectives(directives), encapsulation, ngContentIndex, nestedTemplateAccessor); - }; - RuntimeCommandFactory.prototype.createEndComponent = function() { - return new template_commands_1.EndComponentCmd(); - }; - RuntimeCommandFactory.prototype.createEmbeddedTemplate = function(embeddedTemplateIndex, attrNameAndValues, variableNameAndValues, directives, isMerged, ngContentIndex, children) { - return new template_commands_1.EmbeddedTemplateCmd(attrNameAndValues, variableNameAndValues, this._mapDirectives(directives), isMerged, ngContentIndex, this.changeDetectorFactories[embeddedTemplateIndex], children); - }; - return RuntimeCommandFactory; + return CompileProtoViews; })(); - var CodegenCommandFactory = (function() { - function CodegenCommandFactory(component, componentTemplateFactory, changeDetectorFactoryExpressions) { - this.component = component; - this.componentTemplateFactory = componentTemplateFactory; - this.changeDetectorFactoryExpressions = changeDetectorFactoryExpressions; + exports.CompileProtoViews = CompileProtoViews; + var CompileProtoView = (function() { + function CompileProtoView(embeddedTemplateIndex, protoElements, protoView) { + this.embeddedTemplateIndex = embeddedTemplateIndex; + this.protoElements = protoElements; + this.protoView = protoView; } - CodegenCommandFactory.prototype.createText = function(value, isBound, ngContentIndex) { - return new Expression(util_1.codeGenConstConstructorCall(exports.TEMPLATE_COMMANDS_MODULE_REF + 'TextCmd') + "(" + util_1.escapeSingleQuoteString(value) + ", " + isBound + ", " + ngContentIndex + ")"); - }; - CodegenCommandFactory.prototype.createNgContent = function(index, ngContentIndex) { - return new Expression(util_1.codeGenConstConstructorCall(exports.TEMPLATE_COMMANDS_MODULE_REF + 'NgContentCmd') + "(" + index + ", " + ngContentIndex + ")"); - }; - CodegenCommandFactory.prototype.createBeginElement = function(name, attrNameAndValues, eventTargetAndNames, variableNameAndValues, directives, isBound, ngContentIndex) { - var attrsExpression = codeGenArray(attrNameAndValues); - return new Expression((util_1.codeGenConstConstructorCall(exports.TEMPLATE_COMMANDS_MODULE_REF + 'BeginElementCmd') + "(" + util_1.escapeSingleQuoteString(name) + ", " + attrsExpression + ", ") + (codeGenArray(eventTargetAndNames) + ", " + codeGenArray(variableNameAndValues) + ", " + codeGenDirectivesArray(directives) + ", " + isBound + ", " + ngContentIndex + ")")); - }; - CodegenCommandFactory.prototype.createEndElement = function() { - return new Expression(util_1.codeGenConstConstructorCall(exports.TEMPLATE_COMMANDS_MODULE_REF + 'EndElementCmd') + "()"); - }; - CodegenCommandFactory.prototype.createBeginComponent = function(name, attrNameAndValues, eventTargetAndNames, variableNameAndValues, directives, encapsulation, ngContentIndex) { - var attrsExpression = codeGenArray(attrNameAndValues); - return new Expression((util_1.codeGenConstConstructorCall(exports.TEMPLATE_COMMANDS_MODULE_REF + 'BeginComponentCmd') + "(" + util_1.escapeSingleQuoteString(name) + ", " + attrsExpression + ", ") + (codeGenArray(eventTargetAndNames) + ", " + codeGenArray(variableNameAndValues) + ", " + codeGenDirectivesArray(directives) + ", " + codeGenViewEncapsulation(encapsulation) + ", " + ngContentIndex + ", " + this.componentTemplateFactory(directives[0]) + ")")); - }; - CodegenCommandFactory.prototype.createEndComponent = function() { - return new Expression(util_1.codeGenConstConstructorCall(exports.TEMPLATE_COMMANDS_MODULE_REF + 'EndComponentCmd') + "()"); - }; - CodegenCommandFactory.prototype.createEmbeddedTemplate = function(embeddedTemplateIndex, attrNameAndValues, variableNameAndValues, directives, isMerged, ngContentIndex, children) { - return new Expression((util_1.codeGenConstConstructorCall(exports.TEMPLATE_COMMANDS_MODULE_REF + 'EmbeddedTemplateCmd') + "(" + codeGenArray(attrNameAndValues) + ", " + codeGenArray(variableNameAndValues) + ", ") + (codeGenDirectivesArray(directives) + ", " + isMerged + ", " + ngContentIndex + ", " + this.changeDetectorFactoryExpressions[embeddedTemplateIndex] + ", " + codeGenArray(children) + ")")); - }; - return CodegenCommandFactory; + return CompileProtoView; })(); + exports.CompileProtoView = CompileProtoView; + var CompileProtoElement = (function() { + function CompileProtoElement(boundElementIndex, attrNameAndValues, variableNameAndValues, renderEvents, directives, embeddedTemplateIndex, appProtoEl) { + this.boundElementIndex = boundElementIndex; + this.attrNameAndValues = attrNameAndValues; + this.variableNameAndValues = variableNameAndValues; + this.renderEvents = renderEvents; + this.directives = directives; + this.embeddedTemplateIndex = embeddedTemplateIndex; + this.appProtoEl = appProtoEl; + } + return CompileProtoElement; + })(); + exports.CompileProtoElement = CompileProtoElement; function visitAndReturnContext(visitor, asts, context) { template_ast_1.templateVisitAll(visitor, asts, context); return context; } - var CommandBuilderVisitor = (function() { - function CommandBuilderVisitor(commandFactory, embeddedTemplateIndex) { - this.commandFactory = commandFactory; - this.embeddedTemplateIndex = embeddedTemplateIndex; - this.result = []; - this.transitiveNgContentCount = 0; + var ProtoViewFactory = (function() { + function ProtoViewFactory(component) { + this.component = component; } - CommandBuilderVisitor.prototype._readAttrNameAndValues = function(directives, attrAsts) { - var attrs = keyValueArrayToMap(visitAndReturnContext(this, attrAsts, [])); + ProtoViewFactory.prototype.createCompileProtoView = function(template, templateVariableBindings, targetStatements, targetProtoViews) { + var embeddedTemplateIndex = targetProtoViews.length; + targetProtoViews.push(null); + var builder = new ProtoViewBuilderVisitor(this, targetStatements, targetProtoViews); + template_ast_1.templateVisitAll(builder, template); + var viewType = getViewType(this.component, embeddedTemplateIndex); + var appProtoView = this.createAppProtoView(embeddedTemplateIndex, viewType, templateVariableBindings, targetStatements); + var cpv = new CompileProtoView(embeddedTemplateIndex, builder.protoElements, appProtoView); + targetProtoViews[embeddedTemplateIndex] = cpv; + return cpv; + }; + return ProtoViewFactory; + })(); + var CodeGenProtoViewFactory = (function(_super) { + __extends(CodeGenProtoViewFactory, _super); + function CodeGenProtoViewFactory(resolvedMetadataCacheExpr, component, pipes) { + _super.call(this, component); + this.resolvedMetadataCacheExpr = resolvedMetadataCacheExpr; + this.pipes = pipes; + this._nextVarId = 0; + } + CodeGenProtoViewFactory.prototype._nextProtoViewVar = function(embeddedTemplateIndex) { + return "appProtoView" + this._nextVarId++ + "_" + this.component.type.name + embeddedTemplateIndex; + }; + CodeGenProtoViewFactory.prototype.createAppProtoView = function(embeddedTemplateIndex, viewType, templateVariableBindings, targetStatements) { + var protoViewVarName = this._nextProtoViewVar(embeddedTemplateIndex); + var viewTypeExpr = codeGenViewType(viewType); + var pipesExpr = embeddedTemplateIndex === 0 ? codeGenTypesArray(this.pipes.map(function(pipeMeta) { + return pipeMeta.type; + })) : null; + var statement = "var " + protoViewVarName + " = " + exports.APP_VIEW_MODULE_REF + "AppProtoView.create(" + this.resolvedMetadataCacheExpr.expression + ", " + viewTypeExpr + ", " + pipesExpr + ", " + util_1.codeGenStringMap(templateVariableBindings) + ");"; + targetStatements.push(new util_1.Statement(statement)); + return new util_1.Expression(protoViewVarName); + }; + CodeGenProtoViewFactory.prototype.createAppProtoElement = function(boundElementIndex, attrNameAndValues, variableNameAndValues, directives, targetStatements) { + var varName = "appProtoEl" + this._nextVarId++ + "_" + this.component.type.name; + var value = exports.APP_EL_MODULE_REF + "AppProtoElement.create(\n " + this.resolvedMetadataCacheExpr.expression + ",\n " + boundElementIndex + ",\n " + util_1.codeGenStringMap(attrNameAndValues) + ",\n " + codeGenDirectivesArray(directives) + ",\n " + util_1.codeGenStringMap(variableNameAndValues) + "\n )"; + var statement = "var " + varName + " = " + value + ";"; + targetStatements.push(new util_1.Statement(statement)); + return new util_1.Expression(varName); + }; + return CodeGenProtoViewFactory; + })(ProtoViewFactory); + var RuntimeProtoViewFactory = (function(_super) { + __extends(RuntimeProtoViewFactory, _super); + function RuntimeProtoViewFactory(metadataCache, component, pipes) { + _super.call(this, component); + this.metadataCache = metadataCache; + this.pipes = pipes; + } + RuntimeProtoViewFactory.prototype.createAppProtoView = function(embeddedTemplateIndex, viewType, templateVariableBindings, targetStatements) { + var pipes = embeddedTemplateIndex === 0 ? this.pipes.map(function(pipeMeta) { + return pipeMeta.type.runtime; + }) : []; + var templateVars = keyValueArrayToStringMap(templateVariableBindings); + return view_1.AppProtoView.create(this.metadataCache, viewType, pipes, templateVars); + }; + RuntimeProtoViewFactory.prototype.createAppProtoElement = function(boundElementIndex, attrNameAndValues, variableNameAndValues, directives, targetStatements) { + var attrs = keyValueArrayToStringMap(attrNameAndValues); + return element_1.AppProtoElement.create(this.metadataCache, boundElementIndex, attrs, directives.map(function(dirMeta) { + return dirMeta.type.runtime; + }), keyValueArrayToStringMap(variableNameAndValues)); + }; + return RuntimeProtoViewFactory; + })(ProtoViewFactory); + var ProtoViewBuilderVisitor = (function() { + function ProtoViewBuilderVisitor(factory, allStatements, allProtoViews) { + this.factory = factory; + this.allStatements = allStatements; + this.allProtoViews = allProtoViews; + this.protoElements = []; + this.boundElementCount = 0; + } + ProtoViewBuilderVisitor.prototype._readAttrNameAndValues = function(directives, attrAsts) { + var attrs = visitAndReturnContext(this, attrAsts, {}); directives.forEach(function(directiveMeta) { collection_1.StringMapWrapper.forEach(directiveMeta.hostAttributes, function(value, name) { var prevValue = attrs[name]; @@ -15798,119 +16420,92 @@ $__System.registerDynamic("6d", ["22", "3b", "68", "76", "6a", "71", "3d"], true }); return mapToKeyValueArray(attrs); }; - CommandBuilderVisitor.prototype.visitNgContent = function(ast, context) { - this.transitiveNgContentCount++; - this.result.push(this.commandFactory.createNgContent(ast.index, ast.ngContentIndex)); + ProtoViewBuilderVisitor.prototype.visitBoundText = function(ast, context) { return null; }; - CommandBuilderVisitor.prototype.visitEmbeddedTemplate = function(ast, context) { - var _this = this; - this.embeddedTemplateIndex++; - var childVisitor = new CommandBuilderVisitor(this.commandFactory, this.embeddedTemplateIndex); - template_ast_1.templateVisitAll(childVisitor, ast.children); - var isMerged = childVisitor.transitiveNgContentCount > 0; - var variableNameAndValues = []; - ast.vars.forEach(function(varAst) { - variableNameAndValues.push(varAst.name); - variableNameAndValues.push(varAst.value.length > 0 ? varAst.value : IMPLICIT_TEMPLATE_VAR); - }); - var directives = []; - collection_1.ListWrapper.forEachWithIndex(ast.directives, function(directiveAst, index) { - directiveAst.visit(_this, new DirectiveContext(index, [], [], directives)); - }); - this.result.push(this.commandFactory.createEmbeddedTemplate(this.embeddedTemplateIndex, this._readAttrNameAndValues(directives, ast.attrs), variableNameAndValues, directives, isMerged, ast.ngContentIndex, childVisitor.result)); - this.transitiveNgContentCount += childVisitor.transitiveNgContentCount; - this.embeddedTemplateIndex = childVisitor.embeddedTemplateIndex; + ProtoViewBuilderVisitor.prototype.visitText = function(ast, context) { return null; }; - CommandBuilderVisitor.prototype.visitElement = function(ast, context) { + ProtoViewBuilderVisitor.prototype.visitNgContent = function(ast, context) { + return null; + }; + ProtoViewBuilderVisitor.prototype.visitElement = function(ast, context) { var _this = this; + var boundElementIndex = null; + if (ast.isBound()) { + boundElementIndex = this.boundElementCount++; + } var component = ast.getComponent(); - var eventTargetAndNames = visitAndReturnContext(this, ast.outputs, []); var variableNameAndValues = []; if (lang_1.isBlank(component)) { ast.exportAsVars.forEach(function(varAst) { - variableNameAndValues.push(varAst.name); - variableNameAndValues.push(null); + variableNameAndValues.push([varAst.name, null]); }); } var directives = []; + var renderEvents = visitAndReturnContext(this, ast.outputs, new Map()); collection_1.ListWrapper.forEachWithIndex(ast.directives, function(directiveAst, index) { - directiveAst.visit(_this, new DirectiveContext(index, eventTargetAndNames, variableNameAndValues, directives)); + directiveAst.visit(_this, new DirectiveContext(index, boundElementIndex, renderEvents, variableNameAndValues, directives)); + }); + var renderEventArray = []; + renderEvents.forEach(function(eventAst, _) { + return renderEventArray.push(eventAst); }); - eventTargetAndNames = removeKeyValueArrayDuplicates(eventTargetAndNames); var attrNameAndValues = this._readAttrNameAndValues(directives, ast.attrs); - if (lang_1.isPresent(component)) { - this.result.push(this.commandFactory.createBeginComponent(ast.name, attrNameAndValues, eventTargetAndNames, variableNameAndValues, directives, component.template.encapsulation, ast.ngContentIndex)); - template_ast_1.templateVisitAll(this, ast.children); - this.result.push(this.commandFactory.createEndComponent()); - } else { - this.result.push(this.commandFactory.createBeginElement(ast.name, attrNameAndValues, eventTargetAndNames, variableNameAndValues, directives, ast.isBound(), ast.ngContentIndex)); - template_ast_1.templateVisitAll(this, ast.children); - this.result.push(this.commandFactory.createEndElement()); + this._addProtoElement(ast.isBound(), boundElementIndex, attrNameAndValues, variableNameAndValues, renderEventArray, directives, null); + template_ast_1.templateVisitAll(this, ast.children); + return null; + }; + ProtoViewBuilderVisitor.prototype.visitEmbeddedTemplate = function(ast, context) { + var _this = this; + var boundElementIndex = this.boundElementCount++; + var directives = []; + collection_1.ListWrapper.forEachWithIndex(ast.directives, function(directiveAst, index) { + directiveAst.visit(_this, new DirectiveContext(index, boundElementIndex, new Map(), [], directives)); + }); + var attrNameAndValues = this._readAttrNameAndValues(directives, ast.attrs); + var templateVariableBindings = ast.vars.map(function(varAst) { + return [varAst.value.length > 0 ? varAst.value : IMPLICIT_TEMPLATE_VAR, varAst.name]; + }); + var nestedProtoView = this.factory.createCompileProtoView(ast.children, templateVariableBindings, this.allStatements, this.allProtoViews); + this._addProtoElement(true, boundElementIndex, attrNameAndValues, [], [], directives, nestedProtoView.embeddedTemplateIndex); + return null; + }; + ProtoViewBuilderVisitor.prototype._addProtoElement = function(isBound, boundElementIndex, attrNameAndValues, variableNameAndValues, renderEvents, directives, embeddedTemplateIndex) { + var appProtoEl = null; + if (isBound) { + appProtoEl = this.factory.createAppProtoElement(boundElementIndex, attrNameAndValues, variableNameAndValues, directives, this.allStatements); } + var compileProtoEl = new CompileProtoElement(boundElementIndex, attrNameAndValues, variableNameAndValues, renderEvents, directives, embeddedTemplateIndex, appProtoEl); + this.protoElements.push(compileProtoEl); + }; + ProtoViewBuilderVisitor.prototype.visitVariable = function(ast, ctx) { return null; }; - CommandBuilderVisitor.prototype.visitVariable = function(ast, ctx) { + ProtoViewBuilderVisitor.prototype.visitAttr = function(ast, attrNameAndValues) { + attrNameAndValues[ast.name] = ast.value; return null; }; - CommandBuilderVisitor.prototype.visitAttr = function(ast, attrNameAndValues) { - attrNameAndValues.push(ast.name); - attrNameAndValues.push(ast.value); - return null; - }; - CommandBuilderVisitor.prototype.visitBoundText = function(ast, context) { - this.result.push(this.commandFactory.createText(null, true, ast.ngContentIndex)); - return null; - }; - CommandBuilderVisitor.prototype.visitText = function(ast, context) { - this.result.push(this.commandFactory.createText(ast.value, false, ast.ngContentIndex)); - return null; - }; - CommandBuilderVisitor.prototype.visitDirective = function(ast, ctx) { + ProtoViewBuilderVisitor.prototype.visitDirective = function(ast, ctx) { ctx.targetDirectives.push(ast.directive); - template_ast_1.templateVisitAll(this, ast.hostEvents, ctx.eventTargetAndNames); + template_ast_1.templateVisitAll(this, ast.hostEvents, ctx.hostEventTargetAndNames); ast.exportAsVars.forEach(function(varAst) { - ctx.targetVariableNameAndValues.push(varAst.name); - ctx.targetVariableNameAndValues.push(ctx.index); + ctx.targetVariableNameAndValues.push([varAst.name, ctx.index]); }); return null; }; - CommandBuilderVisitor.prototype.visitEvent = function(ast, eventTargetAndNames) { - eventTargetAndNames.push(ast.target); - eventTargetAndNames.push(ast.name); + ProtoViewBuilderVisitor.prototype.visitEvent = function(ast, eventTargetAndNames) { + eventTargetAndNames.set(ast.fullName, ast); return null; }; - CommandBuilderVisitor.prototype.visitDirectiveProperty = function(ast, context) { + ProtoViewBuilderVisitor.prototype.visitDirectiveProperty = function(ast, context) { return null; }; - CommandBuilderVisitor.prototype.visitElementProperty = function(ast, context) { + ProtoViewBuilderVisitor.prototype.visitElementProperty = function(ast, context) { return null; }; - return CommandBuilderVisitor; + return ProtoViewBuilderVisitor; })(); - function removeKeyValueArrayDuplicates(keyValueArray) { - var knownPairs = new Set(); - var resultKeyValueArray = []; - for (var i = 0; i < keyValueArray.length; i += 2) { - var key = keyValueArray[i]; - var value = keyValueArray[i + 1]; - var pairId = key + ":" + value; - if (!collection_1.SetWrapper.has(knownPairs, pairId)) { - resultKeyValueArray.push(key); - resultKeyValueArray.push(value); - knownPairs.add(pairId); - } - } - return resultKeyValueArray; - } - function keyValueArrayToMap(keyValueArr) { - var data = {}; - for (var i = 0; i < keyValueArr.length; i += 2) { - data[keyValueArr[i]] = keyValueArr[i + 1]; - } - return data; - } function mapToKeyValueArray(data) { var entryArray = []; collection_1.StringMapWrapper.forEach(data, function(value, name) { @@ -15921,8 +16516,7 @@ $__System.registerDynamic("6d", ["22", "3b", "68", "76", "6a", "71", "3d"], true }); var keyValueArray = []; entryArray.forEach(function(entry) { - keyValueArray.push(entry[0]); - keyValueArray.push(entry[1]); + keyValueArray.push([entry[0], entry[1]]); }); return keyValueArray; } @@ -15934,60 +16528,63 @@ $__System.registerDynamic("6d", ["22", "3b", "68", "76", "6a", "71", "3d"], true } } var DirectiveContext = (function() { - function DirectiveContext(index, eventTargetAndNames, targetVariableNameAndValues, targetDirectives) { + function DirectiveContext(index, boundElementIndex, hostEventTargetAndNames, targetVariableNameAndValues, targetDirectives) { this.index = index; - this.eventTargetAndNames = eventTargetAndNames; + this.boundElementIndex = boundElementIndex; + this.hostEventTargetAndNames = hostEventTargetAndNames; this.targetVariableNameAndValues = targetVariableNameAndValues; this.targetDirectives = targetDirectives; } return DirectiveContext; })(); - var Expression = (function() { - function Expression(value) { - this.value = value; + function keyValueArrayToStringMap(keyValueArray) { + var stringMap = {}; + for (var i = 0; i < keyValueArray.length; i++) { + var entry = keyValueArray[i]; + stringMap[entry[0]] = entry[1]; } - return Expression; - })(); - function escapeValue(value) { - if (value instanceof Expression) { - return value.value; - } else if (lang_1.isString(value)) { - return util_1.escapeSingleQuoteString(value); - } else if (lang_1.isBlank(value)) { - return 'null'; - } else { - return "" + value; - } - } - function codeGenArray(data) { - var base = "[" + data.map(escapeValue).join(',') + "]"; - return lang_1.IS_DART ? "const " + base : base; + return stringMap; } function codeGenDirectivesArray(directives) { var expressions = directives.map(function(directiveType) { - return ("" + source_module_1.moduleRef(directiveType.type.moduleUrl) + directiveType.type.name); + return typeRef(directiveType.type); }); - var base = "[" + expressions.join(',') + "]"; - return lang_1.IS_DART ? "const " + base : base; + return "[" + expressions.join(',') + "]"; } - function codeGenViewEncapsulation(value) { + function codeGenTypesArray(types) { + var expressions = types.map(typeRef); + return "[" + expressions.join(',') + "]"; + } + function codeGenViewType(value) { if (lang_1.IS_DART) { - return "" + exports.TEMPLATE_COMMANDS_MODULE_REF + value; + return "" + exports.VIEW_TYPE_MODULE_REF + value; } else { return "" + value; } } + function typeRef(type) { + return "" + source_module_1.moduleRef(type.moduleUrl) + type.name; + } + function getViewType(component, embeddedTemplateIndex) { + if (embeddedTemplateIndex > 0) { + return view_type_1.ViewType.EMBEDDED; + } else if (component.type.isHost) { + return view_type_1.ViewType.HOST; + } else { + return view_type_1.ViewType.COMPONENT; + } + } global.define = __define; return module.exports; }); -$__System.registerDynamic("3a", ["22"], true, function($__require, exports, module) { +$__System.registerDynamic("39", ["2b"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var lang_1 = $__require('22'); + var lang_1 = $__require('2b'); exports.DOM = null; function setRootDomAdapter(adapter) { if (lang_1.isBlank(exports.DOM)) { @@ -15997,6 +16594,18 @@ $__System.registerDynamic("3a", ["22"], true, function($__require, exports, modu exports.setRootDomAdapter = setRootDomAdapter; var DomAdapter = (function() { function DomAdapter() {} + Object.defineProperty(DomAdapter.prototype, "attrToPropMap", { + get: function() { + return this._attrToPropMap; + }, + set: function(value) { + this._attrToPropMap = value; + }, + enumerable: true, + configurable: true + }); + ; + ; return DomAdapter; })(); exports.DomAdapter = DomAdapter; @@ -16004,13 +16613,13 @@ $__System.registerDynamic("3a", ["22"], true, function($__require, exports, modu return module.exports; }); -$__System.registerDynamic("74", ["22"], true, function($__require, exports, module) { +$__System.registerDynamic("72", ["2b"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var lang_1 = $__require('22'); + var lang_1 = $__require('2b'); exports.NAMED_ENTITIES = lang_1.CONST_EXPR({ 'Aacute': '\u00C1', 'aacute': '\u00E1', @@ -16428,7 +17037,7 @@ $__System.registerDynamic("74", ["22"], true, function($__require, exports, modu return module.exports; }); -$__System.registerDynamic("78", [], true, function($__require, exports, module) { +$__System.registerDynamic("76", [], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -16449,7 +17058,7 @@ $__System.registerDynamic("78", [], true, function($__require, exports, module) return module.exports; }); -$__System.registerDynamic("8b", ["3d", "22", "3b", "3a", "74", "78"], true, function($__require, exports, module) { +$__System.registerDynamic("8f", ["3c", "2b", "3a", "39", "72", "76"], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -16480,12 +17089,12 @@ $__System.registerDynamic("8b", ["3d", "22", "3b", "3a", "74", "78"], true, func if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; - var di_1 = $__require('3d'); - var lang_1 = $__require('22'); - var collection_1 = $__require('3b'); - var dom_adapter_1 = $__require('3a'); - var html_tags_1 = $__require('74'); - var element_schema_registry_1 = $__require('78'); + var di_1 = $__require('3c'); + var lang_1 = $__require('2b'); + var collection_1 = $__require('3a'); + var dom_adapter_1 = $__require('39'); + var html_tags_1 = $__require('72'); + var element_schema_registry_1 = $__require('76'); var NAMESPACE_URIS = lang_1.CONST_EXPR({ 'xlink': 'http://www.w3.org/1999/xlink', 'svg': 'http://www.w3.org/2000/svg' @@ -16525,7 +17134,7 @@ $__System.registerDynamic("8b", ["3d", "22", "3b", "3a", "74", "78"], true, func return module.exports; }); -$__System.registerDynamic("7e", ["3d", "22", "8c"], true, function($__require, exports, module) { +$__System.registerDynamic("7c", ["3c", "2b", "90"], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -16552,10 +17161,10 @@ $__System.registerDynamic("7e", ["3d", "22", "8c"], true, function($__require, e decorator(target, key, paramIndex); }; }; - var di_1 = $__require('3d'); - var lang_1 = $__require('22'); - var application_tokens_1 = $__require('8c'); - var di_2 = $__require('3d'); + var di_1 = $__require('3c'); + var lang_1 = $__require('2b'); + var application_tokens_1 = $__require('90'); + var di_2 = $__require('3c'); function createWithoutPackagePrefix() { return new UrlResolver(); } @@ -16697,7 +17306,7 @@ $__System.registerDynamic("7e", ["3d", "22", "8c"], true, function($__require, e return module.exports; }); -$__System.registerDynamic("8d", ["63", "66", "69", "6a", "86", "76", "6e", "22", "3d", "73", "6f", "70", "6b", "6c", "6d", "72", "64", "78", "8b", "7e"], true, function($__require, exports, module) { +$__System.registerDynamic("91", ["5e", "61", "63", "65", "85", "64", "6a", "2b", "3c", "71", "6b", "6c", "66", "67", "68", "69", "6e", "5f", "76", "8f", "7c"], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -16708,43 +17317,44 @@ $__System.registerDynamic("8d", ["63", "66", "69", "6a", "86", "76", "6e", "22", if (!exports.hasOwnProperty(p)) exports[p] = m[p]; } - var runtime_compiler_1 = $__require('63'); - var template_compiler_1 = $__require('66'); + var runtime_compiler_1 = $__require('5e'); + var template_compiler_1 = $__require('61'); exports.TemplateCompiler = template_compiler_1.TemplateCompiler; - var directive_metadata_1 = $__require('69'); + var directive_metadata_1 = $__require('63'); exports.CompileDirectiveMetadata = directive_metadata_1.CompileDirectiveMetadata; exports.CompileTypeMetadata = directive_metadata_1.CompileTypeMetadata; exports.CompileTemplateMetadata = directive_metadata_1.CompileTemplateMetadata; - var source_module_1 = $__require('6a'); + var source_module_1 = $__require('65'); exports.SourceModule = source_module_1.SourceModule; exports.SourceWithImports = source_module_1.SourceWithImports; - var platform_directives_and_pipes_1 = $__require('86'); + var platform_directives_and_pipes_1 = $__require('85'); exports.PLATFORM_DIRECTIVES = platform_directives_and_pipes_1.PLATFORM_DIRECTIVES; exports.PLATFORM_PIPES = platform_directives_and_pipes_1.PLATFORM_PIPES; - __export($__require('76')); - var template_parser_1 = $__require('6e'); + __export($__require('64')); + var template_parser_1 = $__require('6a'); exports.TEMPLATE_TRANSFORMS = template_parser_1.TEMPLATE_TRANSFORMS; - var lang_1 = $__require('22'); - var di_1 = $__require('3d'); - var template_parser_2 = $__require('6e'); - var html_parser_1 = $__require('73'); - var template_normalizer_1 = $__require('6f'); - var runtime_metadata_1 = $__require('70'); - var change_detector_compiler_1 = $__require('6b'); - var style_compiler_1 = $__require('6c'); - var command_compiler_1 = $__require('6d'); - var template_compiler_2 = $__require('66'); - var change_detection_1 = $__require('72'); - var compiler_1 = $__require('64'); - var runtime_compiler_2 = $__require('63'); - var element_schema_registry_1 = $__require('78'); - var dom_element_schema_registry_1 = $__require('8b'); - var url_resolver_1 = $__require('7e'); - var change_detection_2 = $__require('72'); + var lang_1 = $__require('2b'); + var di_1 = $__require('3c'); + var template_parser_2 = $__require('6a'); + var html_parser_1 = $__require('71'); + var template_normalizer_1 = $__require('6b'); + var runtime_metadata_1 = $__require('6c'); + var change_detector_compiler_1 = $__require('66'); + var style_compiler_1 = $__require('67'); + var view_compiler_1 = $__require('68'); + var proto_view_compiler_1 = $__require('69'); + var template_compiler_2 = $__require('61'); + var change_detection_1 = $__require('6e'); + var compiler_1 = $__require('5f'); + var runtime_compiler_2 = $__require('5e'); + var element_schema_registry_1 = $__require('76'); + var dom_element_schema_registry_1 = $__require('8f'); + var url_resolver_1 = $__require('7c'); + var change_detection_2 = $__require('6e'); function _createChangeDetectorGenConfig() { return new change_detection_1.ChangeDetectorGenConfig(lang_1.assertionsEnabled(), false, true); } - exports.COMPILER_PROVIDERS = lang_1.CONST_EXPR([change_detection_2.Lexer, change_detection_2.Parser, html_parser_1.HtmlParser, template_parser_2.TemplateParser, template_normalizer_1.TemplateNormalizer, runtime_metadata_1.RuntimeMetadataResolver, url_resolver_1.DEFAULT_PACKAGE_URL_PROVIDER, style_compiler_1.StyleCompiler, command_compiler_1.CommandCompiler, change_detector_compiler_1.ChangeDetectionCompiler, new di_1.Provider(change_detection_1.ChangeDetectorGenConfig, { + exports.COMPILER_PROVIDERS = lang_1.CONST_EXPR([change_detection_2.Lexer, change_detection_2.Parser, html_parser_1.HtmlParser, template_parser_2.TemplateParser, template_normalizer_1.TemplateNormalizer, runtime_metadata_1.RuntimeMetadataResolver, url_resolver_1.DEFAULT_PACKAGE_URL_PROVIDER, style_compiler_1.StyleCompiler, proto_view_compiler_1.ProtoViewCompiler, view_compiler_1.ViewCompiler, change_detector_compiler_1.ChangeDetectionCompiler, new di_1.Provider(change_detection_1.ChangeDetectorGenConfig, { useFactory: _createChangeDetectorGenConfig, deps: [] }), template_compiler_2.TemplateCompiler, new di_1.Provider(runtime_compiler_2.RuntimeCompiler, {useClass: runtime_compiler_1.RuntimeCompiler_}), new di_1.Provider(compiler_1.Compiler, {useExisting: runtime_compiler_2.RuntimeCompiler}), dom_element_schema_registry_1.DomElementSchemaRegistry, new di_1.Provider(element_schema_registry_1.ElementSchemaRegistry, {useExisting: dom_element_schema_registry_1.DomElementSchemaRegistry}), url_resolver_1.UrlResolver]); @@ -16752,7 +17362,7 @@ $__System.registerDynamic("8d", ["63", "66", "69", "6a", "86", "76", "6e", "22", return module.exports; }); -$__System.registerDynamic("8e", ["7e", "7d", "8d"], true, function($__require, exports, module) { +$__System.registerDynamic("92", ["7c", "7b", "91"], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -16763,14 +17373,14 @@ $__System.registerDynamic("8e", ["7e", "7d", "8d"], true, function($__require, e if (!exports.hasOwnProperty(p)) exports[p] = m[p]; } - __export($__require('7e')); - __export($__require('7d')); - __export($__require('8d')); + __export($__require('7c')); + __export($__require('7b')); + __export($__require('91')); global.define = __define; return module.exports; }); -$__System.registerDynamic("7d", [], true, function($__require, exports, module) { +$__System.registerDynamic("7b", [], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -16788,7 +17398,7 @@ $__System.registerDynamic("7d", [], true, function($__require, exports, module) return module.exports; }); -$__System.registerDynamic("42", ["8f", "22", "7d"], true, function($__require, exports, module) { +$__System.registerDynamic("41", ["93", "2b", "7b"], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -16803,9 +17413,9 @@ $__System.registerDynamic("42", ["8f", "22", "7d"], true, function($__require, e } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; - var promise_1 = $__require('8f'); - var lang_1 = $__require('22'); - var xhr_1 = $__require('7d'); + var promise_1 = $__require('93'); + var lang_1 = $__require('2b'); + var xhr_1 = $__require('7b'); var XHRImpl = (function(_super) { __extends(XHRImpl, _super); function XHRImpl() { @@ -16841,19 +17451,19 @@ $__System.registerDynamic("42", ["8f", "22", "7d"], true, function($__require, e return module.exports; }); -$__System.registerDynamic("19", ["37", "61", "22", "8e", "11", "90", "42", "3d", "38"], true, function($__require, exports, module) { +$__System.registerDynamic("1c", ["36", "5c", "2b", "92", "14", "94", "41", "3c", "37"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; (function(process) { 'use strict'; - var angular_entrypoint_1 = $__require('37'); + var angular_entrypoint_1 = $__require('36'); exports.AngularEntrypoint = angular_entrypoint_1.AngularEntrypoint; - var browser_common_1 = $__require('61'); + var browser_common_1 = $__require('5c'); exports.BROWSER_PROVIDERS = browser_common_1.BROWSER_PROVIDERS; - exports.ELEMENT_PROBE_BINDINGS = browser_common_1.ELEMENT_PROBE_BINDINGS; exports.ELEMENT_PROBE_PROVIDERS = browser_common_1.ELEMENT_PROBE_PROVIDERS; + exports.ELEMENT_PROBE_PROVIDERS_PROD_MODE = browser_common_1.ELEMENT_PROBE_PROVIDERS_PROD_MODE; exports.inspectNativeElement = browser_common_1.inspectNativeElement; exports.BrowserDomAdapter = browser_common_1.BrowserDomAdapter; exports.By = browser_common_1.By; @@ -16861,14 +17471,14 @@ $__System.registerDynamic("19", ["37", "61", "22", "8e", "11", "90", "42", "3d", exports.DOCUMENT = browser_common_1.DOCUMENT; exports.enableDebugTools = browser_common_1.enableDebugTools; exports.disableDebugTools = browser_common_1.disableDebugTools; - var lang_1 = $__require('22'); - var browser_common_2 = $__require('61'); - var compiler_1 = $__require('8e'); - var core_1 = $__require('11'); - var reflection_capabilities_1 = $__require('90'); - var xhr_impl_1 = $__require('42'); - var compiler_2 = $__require('8e'); - var di_1 = $__require('3d'); + var lang_1 = $__require('2b'); + var browser_common_2 = $__require('5c'); + var compiler_1 = $__require('92'); + var core_1 = $__require('14'); + var reflection_capabilities_1 = $__require('94'); + var xhr_impl_1 = $__require('41'); + var compiler_2 = $__require('92'); + var di_1 = $__require('3c'); exports.BROWSER_APP_PROVIDERS = lang_1.CONST_EXPR([browser_common_2.BROWSER_APP_COMMON_PROVIDERS, compiler_1.COMPILER_PROVIDERS, new di_1.Provider(compiler_2.XHR, {useClass: xhr_impl_1.XHRImpl})]); function bootstrap(appComponentType, customProviders) { core_1.reflector.reflectionCapabilities = new reflection_capabilities_1.ReflectionCapabilities(); @@ -16876,18 +17486,138 @@ $__System.registerDynamic("19", ["37", "61", "22", "8e", "11", "90", "42", "3d", return core_1.platform(browser_common_2.BROWSER_PROVIDERS).application(appProviders).bootstrap(appComponentType); } exports.bootstrap = bootstrap; - })($__require('38')); + })($__require('37')); global.define = __define; return module.exports; }); -$__System.register('1e', ['3', '4', '5', '6', '7', '10', '11', '16', '17', '19', '22', '5d'], function (_export) { - var RedocComponent, BaseComponent, _get, _inherits, _createClass, _classCallCheck, redocEvents, NgZone, ChangeDetectionStrategy, ElementRef, _slicedToArray, _Array$from, BrowserDomAdapter, global, document, CHANGE, INVIEW_POSITION, SideMenu; +$__System.register('21', ['8', '9', '95', '96', '1a', '2b', '1c'], function (_export) { + var _createClass, _classCallCheck, _Set, _Object$assign, _Array$from, isFunction, isString, global, BrowserDomAdapter, defaults, OPTION_NAMES, OptionsManager; return { - setters: [function (_7) { - RedocComponent = _7.RedocComponent; - BaseComponent = _7.BaseComponent; + setters: [function (_) { + _createClass = _['default']; + }, function (_2) { + _classCallCheck = _2['default']; + }, function (_3) { + _Set = _3['default']; + }, function (_4) { + _Object$assign = _4['default']; + }, function (_a) { + _Array$from = _a['default']; + }, function (_b) { + isFunction = _b.isFunction; + isString = _b.isString; + global = _b.global; + }, function (_c) { + BrowserDomAdapter = _c.BrowserDomAdapter; + }], + execute: function () { + 'use strict'; + + defaults = { + scrollYOffset: 0, + disableLazySchemas: false, + debugMode: global.redocDebugMode + }; + OPTION_NAMES = new _Set(['scrollYOffset', 'disableLazySchemas']); + + OptionsManager = (function () { + function OptionsManager() { + _classCallCheck(this, _OptionsManager); + + this._options = defaults; + this.dom = new BrowserDomAdapter(); + } + + _createClass(OptionsManager, [{ + key: 'parseOptions', + value: function parseOptions(el) { + var parsedOpts = undefined; + var attributesMap = this.dom.attributeMap(el); + parsedOpts = {}; + _Array$from(attributesMap.keys()) + //camelCasify + .map(function (k) { + return { + attrName: k, + name: k.replace(/-(.)/g, function (m, $1) { + return $1.toUpperCase(); + }) + }; + }).filter(function (option) { + return OPTION_NAMES.has(option.name); + }).forEach(function (option) { + parsedOpts[option.name] = attributesMap.get(option.attrName); + }); + + this.options = parsedOpts; + this._normalizeOptions(); + } + }, { + key: '_normalizeOptions', + value: function _normalizeOptions() { + var _this = this; + + // modify scrollYOffset to always be a function + if (!isFunction(this._options.scrollYOffset)) { + if (isFinite(this._options.scrollYOffset)) { + (function () { + // if number specified create function that returns this value + var numberOffset = parseFloat(_this._options.scrollYOffset); + _this.options.scrollYOffset = function () { + return numberOffset; + }; + })(); + } else { + (function () { + // if selector or node function that returns bottom offset of this node + var el = _this._options.scrollYOffset; + if (!(el instanceof Node)) { + el = _this.dom.query(el); + } + if (!el) { + _this._options.scrollYOffset = function () { + return 0; + }; + } else { + _this._options.scrollYOffset = function () { + return el.offsetTop + el.offsetHeight; + }; + } + })(); + } + } + + if (isString(this._options.disableLazySchemas)) this._options.disableLazySchemas = true; + } + }, { + key: 'options', + get: function get() { + return this._options; + }, + set: function set(opts) { + this._options = _Object$assign(this._options, opts); + } + }]); + + var _OptionsManager = OptionsManager; + OptionsManager = Reflect.metadata('parameters', [[BrowserDomAdapter]])(OptionsManager) || OptionsManager; + return OptionsManager; + })(); + + _export('default', OptionsManager); + } + }; +}); +$__System.register('20', ['5', '6', '7', '8', '9', '13', '14', '19', '21', '58', '1a', '1c', '2b'], function (_export) { + var RedocComponent, BaseComponent, SchemaManager, _get, _inherits, _createClass, _classCallCheck, redocEvents, NgZone, ChangeDetectionStrategy, ElementRef, _slicedToArray, OptionsManager, document, _Array$from, BrowserDomAdapter, global, CHANGE, INVIEW_POSITION, SideMenu; + + return { + setters: [function (_8) { + RedocComponent = _8.RedocComponent; + BaseComponent = _8.BaseComponent; + SchemaManager = _8.SchemaManager; }, function (_) { _get = _['default']; }, function (_2) { @@ -16896,22 +17626,24 @@ $__System.register('1e', ['3', '4', '5', '6', '7', '10', '11', '16', '17', '19', _createClass = _3['default']; }, function (_4) { _classCallCheck = _4['default']; - }, function (_8) { - redocEvents = _8.redocEvents; }, function (_9) { - NgZone = _9.NgZone; - ChangeDetectionStrategy = _9.ChangeDetectionStrategy; - ElementRef = _9.ElementRef; + redocEvents = _9.redocEvents; + }, function (_6) { + NgZone = _6.NgZone; + ChangeDetectionStrategy = _6.ChangeDetectionStrategy; + ElementRef = _6.ElementRef; }, function (_5) { _slicedToArray = _5['default']; - }, function (_6) { - _Array$from = _6['default']; }, function (_10) { - BrowserDomAdapter = _10.BrowserDomAdapter; - }, function (_11) { - global = _11.global; - }, function (_d) { - document = _d.document; + OptionsManager = _10['default']; + }, function (_7) { + document = _7.document; + }, function (_a) { + _Array$from = _a['default']; + }, function (_c) { + BrowserDomAdapter = _c.BrowserDomAdapter; + }, function (_b) { + global = _b.global; }], execute: function () { 'use strict'; @@ -16930,23 +17662,19 @@ $__System.register('1e', ['3', '4', '5', '6', '7', '10', '11', '16', '17', '19', SideMenu = (function (_BaseComponent) { _inherits(SideMenu, _BaseComponent); - function SideMenu(schemaMgr, elementRef, adapter, zone, redoc) { + function SideMenu(schemaMgr, elementRef, dom, zone, optionsMgr) { var _this = this; _classCallCheck(this, _SideMenu); _get(Object.getPrototypeOf(_SideMenu.prototype), 'constructor', this).call(this, schemaMgr); - this.zone = zone; - this.adapter = adapter; - this.redoc = redoc; - - this.scrollParent = this.redoc.scrollParent; - this.mobileNav = adapter.querySelector(elementRef.nativeElement, '.mobile-nav'); - this.resourcesNav = adapter.querySelector(elementRef.nativeElement, '#resources-nav'); - + this.$element = elementRef.nativeElement; + this.dom = dom; + this.options = optionsMgr.options; + this.$scrollParent = this.options.$scrollParent; // for some reason constructor is not run inside zone // as workaround running it manually - this.zone.run(function () { + zone.run(function () { _this.bindEvents(); }); this.activeCatIdx = 0; @@ -16964,19 +17692,27 @@ $__System.register('1e', ['3', '4', '5', '6', '7', '10', '11', '16', '17', '19', _createClass(SideMenu, [{ key: 'scrollY', value: function scrollY() { - return this.scrollParent.pageYOffset != null ? this.scrollParent.pageYOffset : this.scrollParent.scrollTop; + return this.$scrollParent.pageYOffset != null ? this.$scrollParent.pageYOffset : this.$scrollParent.scrollTop; } }, { key: 'hashScroll', value: function hashScroll(evt) { - var hash = this.adapter.getLocation().hash; + var hash = this.dom.getLocation().hash; if (!hash) return; + var $el = undefined; hash = hash.substr(1); - var tag = hash.split('/')[0]; - var ptr = hash.substr(tag.length); - var el = this.getMethodEl(ptr, tag); - if (el) this.scrollTo(el); + var namespace = hash.split('/')[0]; + var ptr = hash.substr(namespace.length + 1); + if (namespace === 'operation') { + $el = this.getMethodElByOperId(ptr); + } else if (namespace === 'tag') { + var tag = ptr.split('/')[0]; + ptr = ptr.substr(tag.length); + $el = this.getMethodElByPtr(ptr, tag); + } + + if ($el) this.scrollTo($el); if (evt) evt.preventDefault(); } }, { @@ -16988,14 +17724,14 @@ $__System.register('1e', ['3', '4', '5', '6', '7', '10', '11', '16', '17', '19', //decorate option.scrollYOffset to account mobile nav this.scrollYOffset = function () { - var mobileNavOffset = _this2.mobileNav.clientHeight; - return _this2.redoc.options.scrollYOffset() + mobileNavOffset; + var mobileNavOffset = _this2.$mobileNav.clientHeight; + return _this2.options.scrollYOffset() + mobileNavOffset; }; this._cancel = {}; - this._cancel.scroll = this.adapter.onAndCancel(this.scrollParent, 'scroll', function () { + this._cancel.scroll = this.dom.onAndCancel(this.$scrollParent, 'scroll', function () { _this2.scrollHandler(); }); - this._cancel.hash = this.adapter.onAndCancel(global, 'hashchange', function (evt) { + this._cancel.hash = this.dom.onAndCancel(global, 'hashchange', function (evt) { return _this2.hashScroll(evt); }); } @@ -17016,14 +17752,14 @@ $__System.register('1e', ['3', '4', '5', '6', '7', '10', '11', '16', '17', '19', } }, { key: 'scrollTo', - value: function scrollTo(el) { + value: function scrollTo($el) { // TODO: rewrite this to use offsetTop as more reliable solution - var subjRect = el.getBoundingClientRect(); + var subjRect = $el.getBoundingClientRect(); var offset = this.scrollY() + subjRect.top - this.scrollYOffset() + 1; - if (this.scrollParent.scrollTo) { - this.scrollParent.scrollTo(0, offset); + if (this.$scrollParent.scrollTo) { + this.$scrollParent.scrollTo(0, offset); } else { - this.scrollParent.scrollTop = offset; + this.$scrollParent.scrollTop = offset; } } }, { @@ -17104,26 +17840,32 @@ $__System.register('1e', ['3', '4', '5', '6', '7', '10', '11', '16', '17', '19', return methodIdx === 0 && catIdx === 0; } }, { - key: 'getMethodEl', - value: function getMethodEl(ptr, tag) { + key: 'getMethodElByPtr', + value: function getMethodElByPtr(ptr, tag) { var selector = ptr ? '[pointer="' + ptr + '"][tag="' + tag + '"]' : '[tag="' + tag + '"]'; return document.querySelector(selector); } + }, { + key: 'getMethodElByOperId', + value: function getMethodElByOperId(operationId) { + var selector = '[operation-id="' + operationId + '"]'; + return document.querySelector(selector); + } }, { key: 'getCurrentMethodEl', value: function getCurrentMethodEl() { - return this.getMethodEl(this.activeMethodPtr, this.data.menu[this.activeCatIdx].name); + return this.getMethodElByPtr(this.activeMethodPtr, this.data.menu[this.activeCatIdx].name); } /* returns 1 if element if above the view, 0 if in view and -1 below the view */ }, { key: 'getElementInViewPos', - value: function getElementInViewPos(el) { - if (Math.floor(el.getBoundingClientRect().top) > this.scrollYOffset()) { + value: function getElementInViewPos($el) { + if (Math.floor($el.getBoundingClientRect().top) > this.scrollYOffset()) { return INVIEW_POSITION.ABOVE; } - if (el.getBoundingClientRect().bottom <= this.scrollYOffset()) { + if ($el.getBoundingClientRect().bottom <= this.scrollYOffset()) { return INVIEW_POSITION.BELLOW; } return INVIEW_POSITION.INVIEW; @@ -17135,9 +17877,9 @@ $__System.register('1e', ['3', '4', '5', '6', '7', '10', '11', '16', '17', '19', this.prevOffsetY = this.scrollY(); var stable = false; while (!stable) { - var activeMethodHost = this.getCurrentMethodEl(); - if (!activeMethodHost) return; - var elementInViewPos = this.getElementInViewPos(activeMethodHost); + var $activeMethodHost = this.getCurrentMethodEl(); + if (!$activeMethodHost) return; + var elementInViewPos = this.getElementInViewPos($activeMethodHost); if (isScrolledDown && elementInViewPos === INVIEW_POSITION.BELLOW) { stable = this.changeActive(CHANGE.NEXT); continue; @@ -17160,31 +17902,34 @@ $__System.register('1e', ['3', '4', '5', '6', '7', '10', '11', '16', '17', '19', }, { key: 'mobileMode', value: function mobileMode() { - return this.mobileNav.clientHeight > 0; + return this.$mobileNav.clientHeight > 0; } }, { key: 'toggleMobileNav', value: function toggleMobileNav() { - var dom = this.adapter; - var overflowParent = this.scrollParent === global ? dom.defaultDoc().body : this.scrollParent; - if (dom.hasStyle(this.resourcesNav, 'height')) { - dom.removeStyle(this.resourcesNav, 'height'); - dom.removeStyle(overflowParent, 'overflow-y'); + var dom = this.dom; + var $overflowParent = this.$scrollParent === global ? dom.defaultDoc().body : this.$scrollParent; + if (dom.hasStyle(this.$resourcesNav, 'height')) { + dom.removeStyle(this.$resourcesNav, 'height'); + dom.removeStyle($overflowParent, 'overflow-y'); } else { - var viewportHeight = this.scrollParent.innerHeight || this.scrollParent.clientHeight; - var height = viewportHeight - this.mobileNav.getBoundingClientRect().bottom; - dom.setStyle(overflowParent, 'overflow-y', 'hidden'); - dom.setStyle(this.resourcesNav, 'height', height + 'px'); + var viewportHeight = this.$scrollParent.innerHeight || this.$scrollParent.clientHeight; + var height = viewportHeight - this.$mobileNav.getBoundingClientRect().bottom; + dom.setStyle($overflowParent, 'overflow-y', 'hidden'); + dom.setStyle(this.$resourcesNav, 'height', height + 'px'); } } }, { key: 'init', value: function init() { + this.$mobileNav = this.dom.querySelector(this.$element, '.mobile-nav'); + this.$resourcesNav = this.dom.querySelector(this.$element, '#resources-nav'); this.changeActive(CHANGE.INITIAL); } }]); var _SideMenu = SideMenu; + SideMenu = Reflect.metadata('parameters', [[SchemaManager], [ElementRef], [BrowserDomAdapter], [NgZone], OptionsManager])(SideMenu) || SideMenu; SideMenu = RedocComponent({ selector: 'side-menu', template: '\n
\n API Reference: \n \n {{activeCatCaption}} \n {{activeItemCaption}}\n \n
\n
\n \n \n
\n ', @@ -17195,25 +17940,23 @@ $__System.register('1e', ['3', '4', '5', '6', '7', '10', '11', '16', '17', '19', })(BaseComponent); _export('default', SideMenu); - - SideMenu.parameters = SideMenu.parameters.concat([[ElementRef], [BrowserDomAdapter], [NgZone]]); } }; }); -$__System.registerDynamic("91", ["92", "93", "94", "95", "96", "97", "98", "99"], true, function($__require, exports, module) { +$__System.registerDynamic("97", ["98", "99", "9a", "9b", "9c", "9d", "9e", "9f"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var ctx = $__require('92'), - $export = $__require('93'), - toObject = $__require('94'), - call = $__require('95'), - isArrayIter = $__require('96'), - toLength = $__require('97'), - getIterFn = $__require('98'); - $export($export.S + $export.F * !$__require('99')(function(iter) { + var ctx = $__require('98'), + $export = $__require('99'), + toObject = $__require('9a'), + call = $__require('9b'), + isArrayIter = $__require('9c'), + toLength = $__require('9d'), + getIterFn = $__require('9e'); + $export($export.S + $export.F * !$__require('9f')(function(iter) { Array.from(iter); }), 'Array', {from: function from(arrayLike) { var O = toObject(arrayLike), @@ -17247,38 +17990,38 @@ $__System.registerDynamic("91", ["92", "93", "94", "95", "96", "97", "98", "99"] return module.exports; }); -$__System.registerDynamic("9a", ["34", "91", "31"], true, function($__require, exports, module) { +$__System.registerDynamic("a0", ["33", "97", "30"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; - $__require('34'); - $__require('91'); - module.exports = $__require('31').Array.from; + $__require('33'); + $__require('97'); + module.exports = $__require('30').Array.from; global.define = __define; return module.exports; }); -$__System.registerDynamic("17", ["9a"], true, function($__require, exports, module) { +$__System.registerDynamic("1a", ["a0"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; module.exports = { - "default": $__require('9a'), + "default": $__require('a0'), __esModule: true }; global.define = __define; return module.exports; }); -$__System.registerDynamic("9b", ["17"], true, function($__require, exports, module) { +$__System.registerDynamic("a1", ["1a"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var _Array$from = $__require('17')["default"]; + var _Array$from = $__require('1a')["default"]; exports["default"] = function(arr) { if (Array.isArray(arr)) { for (var i = 0, @@ -17294,84 +18037,6 @@ $__System.registerDynamic("9b", ["17"], true, function($__require, exports, modu return module.exports; }); -$__System.registerDynamic("9c", ["9d", "94", "9e", "9f"], true, function($__require, exports, module) { - ; - var global = this, - __define = global.define; - global.define = undefined; - var $ = $__require('9d'), - toObject = $__require('94'), - IObject = $__require('9e'); - module.exports = $__require('9f')(function() { - var a = Object.assign, - A = {}, - B = {}, - S = Symbol(), - K = 'abcdefghijklmnopqrst'; - A[S] = 7; - K.split('').forEach(function(k) { - B[k] = k; - }); - return a({}, A)[S] != 7 || Object.keys(a({}, B)).join('') != K; - }) ? function assign(target, source) { - var T = toObject(target), - $$ = arguments, - $$len = $$.length, - index = 1, - getKeys = $.getKeys, - getSymbols = $.getSymbols, - isEnum = $.isEnum; - while ($$len > index) { - var S = IObject($$[index++]), - keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S), - length = keys.length, - j = 0, - key; - while (length > j) - if (isEnum.call(S, key = keys[j++])) - T[key] = S[key]; - } - return T; - } : Object.assign; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("a0", ["93", "9c"], true, function($__require, exports, module) { - ; - var global = this, - __define = global.define; - global.define = undefined; - var $export = $__require('93'); - $export($export.S + $export.F, 'Object', {assign: $__require('9c')}); - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("a1", ["a0", "31"], true, function($__require, exports, module) { - ; - var global = this, - __define = global.define; - global.define = undefined; - $__require('a0'); - module.exports = $__require('31').Object.assign; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("21", ["a1"], true, function($__require, exports, module) { - ; - var global = this, - __define = global.define; - global.define = undefined; - module.exports = { - "default": $__require('a1'), - __esModule: true - }; - global.define = __define; - return module.exports; -}); - $__System.registerDynamic("a2", [], true, function($__require, exports, module) { ; var global = this, @@ -17384,14 +18049,14 @@ $__System.registerDynamic("a2", [], true, function($__require, exports, module) return module.exports; }); -$__System.registerDynamic("a3", ["a4", "a5", "2f"], true, function($__require, exports, module) { +$__System.registerDynamic("a3", ["a4", "a5", "2e"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; var anObject = $__require('a4'), aFunction = $__require('a5'), - SPECIES = $__require('2f')('species'); + SPECIES = $__require('2e')('species'); module.exports = function(O, D) { var C = anObject(O).constructor, S; @@ -17451,13 +18116,13 @@ $__System.registerDynamic("a9", ["aa", "a8"], true, function($__require, exports return module.exports; }); -$__System.registerDynamic("ab", ["92", "a6", "a7", "a9", "a8", "ac", "38"], true, function($__require, exports, module) { +$__System.registerDynamic("ab", ["98", "a6", "a7", "a9", "a8", "ac", "37"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; (function(process) { - var ctx = $__require('92'), + var ctx = $__require('98'), invoke = $__require('a6'), html = $__require('a7'), cel = $__require('a9'), @@ -17529,12 +18194,12 @@ $__System.registerDynamic("ab", ["92", "a6", "a7", "a9", "a8", "ac", "38"], true set: setTask, clear: clearTask }; - })($__require('38')); + })($__require('37')); global.define = __define; return module.exports; }); -$__System.registerDynamic("ad", ["a8", "ab", "ac", "38"], true, function($__require, exports, module) { +$__System.registerDynamic("ad", ["a8", "ab", "ac", "37"], true, function($__require, exports, module) { ; var global = this, __define = global.define; @@ -17605,17 +18270,17 @@ $__System.registerDynamic("ad", ["a8", "ab", "ac", "38"], true, function($__requ } last = task; }; - })($__require('38')); + })($__require('37')); global.define = __define; return module.exports; }); -$__System.registerDynamic("99", ["2f"], true, function($__require, exports, module) { +$__System.registerDynamic("9f", ["2e"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; - var ITERATOR = $__require('2f')('iterator'), + var ITERATOR = $__require('2e')('iterator'), SAFE_CLOSING = false; try { var riter = [7][ITERATOR](); @@ -17647,27 +18312,27 @@ $__System.registerDynamic("99", ["2f"], true, function($__require, exports, modu return module.exports; }); -$__System.registerDynamic("ae", ["9d", "af", "a8", "92", "2e", "93", "aa", "a4", "a5", "b0", "b1", "b2", "a2", "2f", "a3", "ad", "b3", "b4", "b5", "b6", "31", "99", "38"], true, function($__require, exports, module) { +$__System.registerDynamic("ae", ["af", "b0", "a8", "98", "2d", "99", "aa", "a4", "a5", "b1", "b2", "b3", "a2", "2e", "a3", "ad", "b4", "b5", "b6", "b7", "30", "9f", "37"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; (function(process) { 'use strict'; - var $ = $__require('9d'), - LIBRARY = $__require('af'), + var $ = $__require('af'), + LIBRARY = $__require('b0'), global = $__require('a8'), - ctx = $__require('92'), - classof = $__require('2e'), - $export = $__require('93'), + ctx = $__require('98'), + classof = $__require('2d'), + $export = $__require('99'), isObject = $__require('aa'), anObject = $__require('a4'), aFunction = $__require('a5'), - strictNew = $__require('b0'), - forOf = $__require('b1'), - setProto = $__require('b2').set, + strictNew = $__require('b1'), + forOf = $__require('b2'), + setProto = $__require('b3').set, same = $__require('a2'), - SPECIES = $__require('2f')('species'), + SPECIES = $__require('2e')('species'), speciesConstructor = $__require('a3'), asap = $__require('ad'), PROMISE = 'Promise', @@ -17695,7 +18360,7 @@ $__System.registerDynamic("ae", ["9d", "af", "a8", "92", "2e", "93", "aa", "a4", if (!(P2.resolve(5).then(function() {}) instanceof P2)) { works = false; } - if (works && $__require('b3')) { + if (works && $__require('b4')) { var thenableThenGotten = false; P.resolve($.setDesc({}, 'then', {get: function() { thenableThenGotten = true; @@ -17873,7 +18538,7 @@ $__System.registerDynamic("ae", ["9d", "af", "a8", "92", "2e", "93", "aa", "a4", $reject.call(record, err); } }; - $__require('b4')(P.prototype, { + $__require('b5')(P.prototype, { then: function then(onFulfilled, onRejected) { var reaction = new PromiseCapability(speciesConstructor(this, P)), promise = reaction.promise, @@ -17893,9 +18558,9 @@ $__System.registerDynamic("ae", ["9d", "af", "a8", "92", "2e", "93", "aa", "a4", }); } $export($export.G + $export.W + $export.F * !USE_NATIVE, {Promise: P}); - $__require('b5')(P, PROMISE); - $__require('b6')(PROMISE); - Wrapper = $__require('31')[PROMISE]; + $__require('b6')(P, PROMISE); + $__require('b7')(PROMISE); + Wrapper = $__require('30')[PROMISE]; $export($export.S + $export.F * !USE_NATIVE, PROMISE, {reject: function reject(r) { var capability = new PromiseCapability(this), $$reject = capability.reject; @@ -17910,7 +18575,7 @@ $__System.registerDynamic("ae", ["9d", "af", "a8", "92", "2e", "93", "aa", "a4", $$resolve(x); return capability.promise; }}); - $export($export.S + $export.F * !(USE_NATIVE && $__require('99')(function(iter) { + $export($export.S + $export.F * !(USE_NATIVE && $__require('9f')(function(iter) { P.all(iter)['catch'](function() {}); })), PROMISE, { all: function all(iterable) { @@ -17955,46 +18620,46 @@ $__System.registerDynamic("ae", ["9d", "af", "a8", "92", "2e", "93", "aa", "a4", return capability.promise; } }); - })($__require('38')); + })($__require('37')); global.define = __define; return module.exports; }); -$__System.registerDynamic("b7", ["b8", "34", "33", "ae", "31"], true, function($__require, exports, module) { +$__System.registerDynamic("b8", ["b9", "33", "32", "ae", "30"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; - $__require('b8'); - $__require('34'); + $__require('b9'); $__require('33'); + $__require('32'); $__require('ae'); - module.exports = $__require('31').Promise; + module.exports = $__require('30').Promise; global.define = __define; return module.exports; }); -$__System.registerDynamic("b9", ["b7"], true, function($__require, exports, module) { +$__System.registerDynamic("ba", ["b8"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; module.exports = { - "default": $__require('b7'), + "default": $__require('b8'), __esModule: true }; global.define = __define; return module.exports; }); -$__System.registerDynamic("ba", ["a4", "98", "31"], true, function($__require, exports, module) { +$__System.registerDynamic("bb", ["a4", "9e", "30"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; var anObject = $__require('a4'), - get = $__require('98'); - module.exports = $__require('31').getIterator = function(it) { + get = $__require('9e'); + module.exports = $__require('30').getIterator = function(it) { var iterFn = get(it); if (typeof iterFn != 'function') throw TypeError(it + ' is not iterable!'); @@ -18004,39 +18669,39 @@ $__System.registerDynamic("ba", ["a4", "98", "31"], true, function($__require, e return module.exports; }); -$__System.registerDynamic("bb", ["33", "34", "ba"], true, function($__require, exports, module) { +$__System.registerDynamic("bc", ["32", "33", "bb"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; + $__require('32'); $__require('33'); - $__require('34'); - module.exports = $__require('ba'); + module.exports = $__require('bb'); global.define = __define; return module.exports; }); -$__System.registerDynamic("36", ["bb"], true, function($__require, exports, module) { +$__System.registerDynamic("35", ["bc"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; module.exports = { - "default": $__require('bb'), + "default": $__require('bc'), __esModule: true }; global.define = __define; return module.exports; }); -$__System.registerDynamic("bc", ["bd", "be"], true, function($__require, exports, module) { +$__System.registerDynamic("bd", ["be", "bf"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var strong = $__require('bd'); - $__require('be')('Map', function(get) { + var strong = $__require('be'); + $__require('bf')('Map', function(get) { return function Map() { return get(this, arguments.length > 0 ? arguments[0] : undefined); }; @@ -18053,46 +18718,46 @@ $__System.registerDynamic("bc", ["bd", "be"], true, function($__require, exports return module.exports; }); -$__System.registerDynamic("bf", ["93", "c0"], true, function($__require, exports, module) { +$__System.registerDynamic("c0", ["99", "c1"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; - var $export = $__require('93'); - $export($export.P, 'Map', {toJSON: $__require('c0')('Map')}); + var $export = $__require('99'); + $export($export.P, 'Map', {toJSON: $__require('c1')('Map')}); global.define = __define; return module.exports; }); -$__System.registerDynamic("c1", ["b8", "34", "33", "bc", "bf", "31"], true, function($__require, exports, module) { +$__System.registerDynamic("c2", ["b9", "33", "32", "bd", "c0", "30"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; - $__require('b8'); - $__require('34'); + $__require('b9'); $__require('33'); - $__require('bc'); - $__require('bf'); - module.exports = $__require('31').Map; + $__require('32'); + $__require('bd'); + $__require('c0'); + module.exports = $__require('30').Map; global.define = __define; return module.exports; }); -$__System.registerDynamic("c2", ["c1"], true, function($__require, exports, module) { +$__System.registerDynamic("c3", ["c2"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; module.exports = { - "default": $__require('c1'), + "default": $__require('c2'), __esModule: true }; global.define = __define; return module.exports; }); -$__System.registerDynamic("c3", [], true, function($__require, exports, module) { +$__System.registerDynamic("c4", [], true, function($__require, exports, module) { ; var global = this, __define = global.define; @@ -18113,17 +18778,17 @@ $__System.registerDynamic("c3", [], true, function($__require, exports, module) return module.exports; }); -$__System.registerDynamic("c4", ["c5", "c6", "c7", "c8", "38"], true, function($__require, exports, module) { +$__System.registerDynamic("c5", ["c6", "c7", "c8", "c9", "37"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; (function(process) { "use strict"; - var Report = $__require('c5'); - var SchemaCompilation = $__require('c6'); - var SchemaValidation = $__require('c7'); - var Utils = $__require('c8'); + var Report = $__require('c6'); + var SchemaCompilation = $__require('c7'); + var SchemaValidation = $__require('c8'); + var Utils = $__require('c9'); function decodeJSONPointer(str) { return decodeURIComponent(str).replace(/~[0-1]/g, function(x) { return x === "~1" ? "/" : "~"; @@ -18248,20 +18913,20 @@ $__System.registerDynamic("c4", ["c5", "c6", "c7", "c8", "38"], true, function($ return result; }; exports.getRemotePath = getRemotePath; - })($__require('38')); + })($__require('37')); global.define = __define; return module.exports; }); -$__System.registerDynamic("c6", ["c5", "c4", "c8"], true, function($__require, exports, module) { +$__System.registerDynamic("c7", ["c6", "c5", "c9"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var Report = $__require('c5'); - var SchemaCache = $__require('c4'); - var Utils = $__require('c8'); + var Report = $__require('c6'); + var SchemaCache = $__require('c5'); + var Utils = $__require('c9'); function mergeReference(scope, ref) { if (Utils.isAbsoluteUri(ref)) { return ref; @@ -18480,7 +19145,7 @@ $__System.registerDynamic("c6", ["c5", "c4", "c8"], true, function($__require, e return module.exports; }); -$__System.registerDynamic("c9", [], true, function($__require, exports, module) { +$__System.registerDynamic("ca", [], true, function($__require, exports, module) { ; var global = this, __define = global.define; @@ -19223,22 +19888,22 @@ $__System.registerDynamic("c9", [], true, function($__require, exports, module) return module.exports; }); -$__System.registerDynamic("ca", ["c9"], true, function($__require, exports, module) { - ; - var global = this, - __define = global.define; - global.define = undefined; - module.exports = $__require('c9'); - global.define = __define; - return module.exports; -}); - $__System.registerDynamic("cb", ["ca"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; - var validator = $__require('ca'); + module.exports = $__require('ca'); + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("cc", ["cb"], true, function($__require, exports, module) { + ; + var global = this, + __define = global.define; + global.define = undefined; + var validator = $__require('cb'); var FormatValidators = { "date": function(date) { if (typeof date !== "string") { @@ -19332,15 +19997,15 @@ $__System.registerDynamic("cb", ["ca"], true, function($__require, exports, modu return module.exports; }); -$__System.registerDynamic("cc", ["cb", "c5", "c8"], true, function($__require, exports, module) { +$__System.registerDynamic("cd", ["cc", "c6", "c9"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var FormatValidators = $__require('cb'), - Report = $__require('c5'), - Utils = $__require('c8'); + var FormatValidators = $__require('cc'), + Report = $__require('c6'), + Utils = $__require('c9'); var JsonValidators = { multipleOf: function(report, schema, json) { if (typeof json !== "number") { @@ -19756,7 +20421,7 @@ $__System.registerDynamic("cc", ["cb", "c5", "c8"], true, function($__require, e return module.exports; }); -$__System.registerDynamic("cd", ["38"], true, function($__require, exports, module) { +$__System.registerDynamic("ce", ["37"], true, function($__require, exports, module) { ; var global = this, __define = global.define; @@ -19784,22 +20449,22 @@ $__System.registerDynamic("cd", ["38"], true, function($__require, exports, modu return !!value && (type == 'object' || type == 'function'); } module.exports = baseGet; - })($__require('38')); + })($__require('37')); global.define = __define; return module.exports; }); -$__System.registerDynamic("ce", ["cd"], true, function($__require, exports, module) { +$__System.registerDynamic("cf", ["ce"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; - module.exports = $__require('cd'); + module.exports = $__require('ce'); global.define = __define; return module.exports; }); -$__System.registerDynamic("cf", [], true, function($__require, exports, module) { +$__System.registerDynamic("d0", [], true, function($__require, exports, module) { ; var global = this, __define = global.define; @@ -19848,23 +20513,23 @@ $__System.registerDynamic("cf", [], true, function($__require, exports, module) return module.exports; }); -$__System.registerDynamic("d0", ["cf"], true, function($__require, exports, module) { +$__System.registerDynamic("d1", ["d0"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; - module.exports = $__require('cf'); + module.exports = $__require('d0'); global.define = __define; return module.exports; }); -$__System.registerDynamic("d1", ["d0", "38"], true, function($__require, exports, module) { +$__System.registerDynamic("d2", ["d1", "37"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; (function(process) { - var isArray = $__require('d0'); + var isArray = $__require('d1'); var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\n\\]|\\.)*?)\2)\]/g; var reEscapeChar = /\\(\\)?/g; function baseToString(value) { @@ -19881,28 +20546,28 @@ $__System.registerDynamic("d1", ["d0", "38"], true, function($__require, exports return result; } module.exports = toPath; - })($__require('38')); + })($__require('37')); global.define = __define; return module.exports; }); -$__System.registerDynamic("d2", ["d1"], true, function($__require, exports, module) { +$__System.registerDynamic("d3", ["d2"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; - module.exports = $__require('d1'); + module.exports = $__require('d2'); global.define = __define; return module.exports; }); -$__System.registerDynamic("d3", ["ce", "d2"], true, function($__require, exports, module) { +$__System.registerDynamic("d4", ["cf", "d3"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; - var baseGet = $__require('ce'), - toPath = $__require('d2'); + var baseGet = $__require('cf'), + toPath = $__require('d3'); function get(object, path, defaultValue) { var result = object == null ? undefined : baseGet(object, toPath(path), path + ''); return result === undefined ? defaultValue : result; @@ -19912,17 +20577,17 @@ $__System.registerDynamic("d3", ["ce", "d2"], true, function($__require, exports return module.exports; }); -$__System.registerDynamic("d4", ["d3"], true, function($__require, exports, module) { +$__System.registerDynamic("d5", ["d4"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; - module.exports = $__require('d3'); + module.exports = $__require('d4'); global.define = __define; return module.exports; }); -$__System.registerDynamic("d5", [], true, function($__require, exports, module) { +$__System.registerDynamic("d6", [], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -19975,16 +20640,16 @@ $__System.registerDynamic("d5", [], true, function($__require, exports, module) return module.exports; }); -$__System.registerDynamic("c5", ["d4", "d5", "c8", "38"], true, function($__require, exports, module) { +$__System.registerDynamic("c6", ["d5", "d6", "c9", "37"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; (function(process) { "use strict"; - var get = $__require('d4'); - var Errors = $__require('d5'); - var Utils = $__require('c8'); + var get = $__require('d5'); + var Errors = $__require('d6'); + var Utils = $__require('c9'); function Report(parentOrOptions, reportOptions) { this.parentReport = parentOrOptions instanceof Report ? parentOrOptions : undefined; this.options = parentOrOptions instanceof Report ? parentOrOptions.options : parentOrOptions || {}; @@ -20142,21 +20807,21 @@ $__System.registerDynamic("c5", ["d4", "d5", "c8", "38"], true, function($__requ this.errors.push(err); }; module.exports = Report; - })($__require('38')); + })($__require('37')); global.define = __define; return module.exports; }); -$__System.registerDynamic("c7", ["cb", "cc", "c5", "c8"], true, function($__require, exports, module) { +$__System.registerDynamic("c8", ["cc", "cd", "c6", "c9"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var FormatValidators = $__require('cb'), - JsonValidation = $__require('cc'), - Report = $__require('c5'), - Utils = $__require('c8'); + var FormatValidators = $__require('cc'), + JsonValidation = $__require('cd'), + Report = $__require('c6'), + Utils = $__require('c9'); var SchemaValidators = { $ref: function(report, schema) { if (typeof schema.$ref !== "string") { @@ -20688,7 +21353,7 @@ $__System.registerDynamic("c7", ["cb", "cc", "c5", "c8"], true, function($__requ return module.exports; }); -$__System.registerDynamic("c8", [], true, function($__require, exports, module) { +$__System.registerDynamic("c9", [], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -20874,7 +21539,7 @@ $__System.registerDynamic("c8", [], true, function($__require, exports, module) return module.exports; }); -$__System.registerDynamic("d6", [], true, function($__require, exports, module) { +$__System.registerDynamic("d7", [], true, function($__require, exports, module) { ; var global = this, __define = global.define; @@ -21003,7 +21668,7 @@ $__System.registerDynamic("d6", [], true, function($__require, exports, module) return module.exports; }); -$__System.registerDynamic("d7", [], true, function($__require, exports, module) { +$__System.registerDynamic("d8", [], true, function($__require, exports, module) { ; var global = this, __define = global.define; @@ -21100,24 +21765,24 @@ $__System.registerDynamic("d7", [], true, function($__require, exports, module) return module.exports; }); -$__System.registerDynamic("d8", ["c3", "d4", "c5", "cb", "cc", "c4", "c6", "c7", "c8", "d6", "d7", "38"], true, function($__require, exports, module) { +$__System.registerDynamic("d9", ["c4", "d5", "c6", "cc", "cd", "c5", "c7", "c8", "c9", "d7", "d8", "37"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; (function(process) { "use strict"; - $__require('c3'); - var get = $__require('d4'); - var Report = $__require('c5'); - var FormatValidators = $__require('cb'); - var JsonValidation = $__require('cc'); - var SchemaCache = $__require('c4'); - var SchemaCompilation = $__require('c6'); - var SchemaValidation = $__require('c7'); - var Utils = $__require('c8'); - var Draft4Schema = $__require('d6'); - var Draft4HyperSchema = $__require('d7'); + $__require('c4'); + var get = $__require('d5'); + var Report = $__require('c6'); + var FormatValidators = $__require('cc'); + var JsonValidation = $__require('cd'); + var SchemaCache = $__require('c5'); + var SchemaCompilation = $__require('c7'); + var SchemaValidation = $__require('c8'); + var Utils = $__require('c9'); + var Draft4Schema = $__require('d7'); + var Draft4HyperSchema = $__require('d8'); var defaultOptions = { asyncTimeout: 2000, forceAdditional: false, @@ -21384,22 +22049,22 @@ $__System.registerDynamic("d8", ["c3", "d4", "c5", "cb", "cc", "c4", "c6", "c7", return Utils.cloneDeep(defaultOptions); }; module.exports = ZSchema; - })($__require('38')); + })($__require('37')); global.define = __define; return module.exports; }); -$__System.registerDynamic("d9", ["d8"], true, function($__require, exports, module) { +$__System.registerDynamic("da", ["d9"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; - module.exports = $__require('d8'); + module.exports = $__require('d9'); global.define = __define; return module.exports; }); -$__System.registerDynamic("da", [], true, function($__require, exports, module) { +$__System.registerDynamic("db", [], true, function($__require, exports, module) { ; var global = this, __define = global.define; @@ -22249,16 +22914,16 @@ $__System.registerDynamic("da", [], true, function($__require, exports, module) return module.exports; }); -$__System.registerDynamic("db", ["dc", "dd", "d9", "da"], true, function($__require, exports, module) { +$__System.registerDynamic("dc", ["dd", "de", "da", "db"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var util = $__require('dc'), - ono = $__require('dd'), - ZSchema = $__require('d9'), - swaggerSchema = $__require('da'); + var util = $__require('dd'), + ono = $__require('de'), + ZSchema = $__require('da'), + swaggerSchema = $__require('db'); module.exports = validateSchema; initializeZSchema(); function validateSchema(api) { @@ -22295,7 +22960,7 @@ $__System.registerDynamic("db", ["dc", "dd", "d9", "da"], true, function($__requ return module.exports; }); -$__System.registerDynamic("de", [], true, function($__require, exports, module) { +$__System.registerDynamic("df", [], true, function($__require, exports, module) { ; var global = this, __define = global.define; @@ -22305,25 +22970,25 @@ $__System.registerDynamic("de", [], true, function($__require, exports, module) return module.exports; }); -$__System.registerDynamic("df", ["de"], true, function($__require, exports, module) { +$__System.registerDynamic("e0", ["df"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; - module.exports = $__require('de'); + module.exports = $__require('df'); global.define = __define; return module.exports; }); -$__System.registerDynamic("e0", ["dc", "dd", "df"], true, function($__require, exports, module) { +$__System.registerDynamic("e1", ["dd", "de", "e0"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var util = $__require('dc'), - ono = $__require('dd'), - swaggerMethods = $__require('df'), + var util = $__require('dd'), + ono = $__require('de'), + swaggerMethods = $__require('e0'), primitiveTypes = ['array', 'boolean', 'integer', 'number', 'string'], schemaTypes = ['array', 'boolean', 'integer', 'number', 'string', 'object', 'null', undefined]; module.exports = validateSpec; @@ -22485,14 +23150,14 @@ $__System.registerDynamic("e0", ["dc", "dd", "df"], true, function($__require, e return module.exports; }); -$__System.registerDynamic("dc", ["e1", "e2"], true, function($__require, exports, module) { +$__System.registerDynamic("dd", ["e2", "e3"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var debug = $__require('e1'), - util = $__require('e2'); + var debug = $__require('e2'), + util = $__require('e3'); exports.format = util.format; exports.inherits = util.inherits; exports.debug = debug('swagger:parser'); @@ -22501,14 +23166,14 @@ $__System.registerDynamic("dc", ["e1", "e2"], true, function($__require, exports return module.exports; }); -$__System.registerDynamic("e3", ["e4", "e2"], true, function($__require, exports, module) { +$__System.registerDynamic("e4", ["e5", "e3"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var $RefParserOptions = $__require('e4'), - util = $__require('e2'); + var $RefParserOptions = $__require('e5'), + util = $__require('e3'); module.exports = ParserOptions; function ParserOptions(options) { this.validate = { @@ -22522,18 +23187,18 @@ $__System.registerDynamic("e3", ["e4", "e2"], true, function($__require, exports return module.exports; }); -$__System.registerDynamic("e5", ["e6"], true, function($__require, exports, module) { +$__System.registerDynamic("e6", ["e7"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - module.exports = typeof Promise === 'function' ? Promise : $__require('e6').Promise; + module.exports = typeof Promise === 'function' ? Promise : $__require('e7').Promise; global.define = __define; return module.exports; }); -$__System.registerDynamic("e4", ["e7"], true, function($__require, exports, module) { +$__System.registerDynamic("e5", ["e8"], true, function($__require, exports, module) { ; var global = this, __define = global.define; @@ -22587,21 +23252,21 @@ $__System.registerDynamic("e4", ["e7"], true, function($__require, exports, modu } } } - })($__require('e7').Buffer); + })($__require('e8').Buffer); global.define = __define; return module.exports; }); -$__System.registerDynamic("e8", ["e4", "e9", "ea", "dd"], true, function($__require, exports, module) { +$__System.registerDynamic("e9", ["e5", "ea", "eb", "de"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var Options = $__require('e4'), - util = $__require('e9'), - url = $__require('ea'), - ono = $__require('dd'); + var Options = $__require('e5'), + util = $__require('ea'), + url = $__require('eb'), + ono = $__require('de'); module.exports = $Refs; function $Refs() { this.circular = false; @@ -22688,7 +23353,7 @@ $__System.registerDynamic("e8", ["e4", "e9", "ea", "dd"], true, function($__requ return module.exports; }); -$__System.registerDynamic("eb", [], true, function($__require, exports, module) { +$__System.registerDynamic("ec", [], true, function($__require, exports, module) { ; var global = this, __define = global.define; @@ -22717,38 +23382,28 @@ $__System.registerDynamic("eb", [], true, function($__require, exports, module) return module.exports; }); -$__System.registerDynamic("ec", ["eb"], true, function($__require, exports, module) { +$__System.registerDynamic("ed", ["ec"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; - module.exports = $__require('eb'); + module.exports = $__require('ec'); global.define = __define; return module.exports; }); -$__System.registerDynamic("ed", ["ee", "f3", "ef", "f0", "f1", "f2"], true, function($__require, exports, module) { +$__System.registerDynamic("ee", ["ef", "f4", "f0", "f1", "f2", "f3"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; - exports = module.exports = $__require('ee'); - exports.Stream = $__require('f3'); + exports = module.exports = $__require('ef'); + exports.Stream = $__require('f4'); exports.Readable = exports; - exports.Writable = $__require('ef'); - exports.Duplex = $__require('f0'); - exports.Transform = $__require('f1'); - exports.PassThrough = $__require('f2'); - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("f4", ["ef"], true, function($__require, exports, module) { - ; - var global = this, - __define = global.define; - global.define = undefined; - module.exports = $__require('ef'); + exports.Writable = $__require('f0'); + exports.Duplex = $__require('f1'); + exports.Transform = $__require('f2'); + exports.PassThrough = $__require('f3'); global.define = __define; return module.exports; }); @@ -22773,7 +23428,17 @@ $__System.registerDynamic("f6", ["f1"], true, function($__require, exports, modu return module.exports; }); -$__System.registerDynamic("f7", [], true, function($__require, exports, module) { +$__System.registerDynamic("f7", ["f2"], true, function($__require, exports, module) { + ; + var global = this, + __define = global.define; + global.define = undefined; + module.exports = $__require('f2'); + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("f8", [], true, function($__require, exports, module) { ; var global = this, __define = global.define; @@ -22785,17 +23450,17 @@ $__System.registerDynamic("f7", [], true, function($__require, exports, module) return module.exports; }); -$__System.registerDynamic("f8", ["f7"], true, function($__require, exports, module) { +$__System.registerDynamic("f9", ["f8"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; - module.exports = $__require('f7'); + module.exports = $__require('f8'); global.define = __define; return module.exports; }); -$__System.registerDynamic("f9", [], true, function($__require, exports, module) { +$__System.registerDynamic("fa", [], true, function($__require, exports, module) { ; var global = this, __define = global.define; @@ -23017,22 +23682,12 @@ $__System.registerDynamic("f9", [], true, function($__require, exports, module) return module.exports; }); -$__System.registerDynamic("fa", ["f9"], true, function($__require, exports, module) { - ; - var global = this, - __define = global.define; - global.define = undefined; - module.exports = $__require('f9'); - global.define = __define; - return module.exports; -}); - $__System.registerDynamic("fb", ["fa"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; - module.exports = $__System._nodeRequire ? $__System._nodeRequire('events') : $__require('fa'); + module.exports = $__require('fa'); global.define = __define; return module.exports; }); @@ -23042,18 +23697,28 @@ $__System.registerDynamic("fc", ["fb"], true, function($__require, exports, modu var global = this, __define = global.define; global.define = undefined; - module.exports = $__require('fb'); + module.exports = $__System._nodeRequire ? $__System._nodeRequire('events') : $__require('fb'); global.define = __define; return module.exports; }); -$__System.registerDynamic("fd", ["e7"], true, function($__require, exports, module) { +$__System.registerDynamic("fd", ["fc"], true, function($__require, exports, module) { + ; + var global = this, + __define = global.define; + global.define = undefined; + module.exports = $__require('fc'); + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("fe", ["e8"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; (function(Buffer) { - var Buffer = $__require('e7').Buffer; + var Buffer = $__require('e8').Buffer; var isBufferEncoding = Buffer.isEncoding || function(encoding) { switch (encoding && encoding.toLowerCase()) { case 'hex': @@ -23185,39 +23850,39 @@ $__System.registerDynamic("fd", ["e7"], true, function($__require, exports, modu this.charReceived = buffer.length % 3; this.charLength = this.charReceived ? 3 : 0; } - })($__require('e7').Buffer); + })($__require('e8').Buffer); global.define = __define; return module.exports; }); -$__System.registerDynamic("fe", ["fd"], true, function($__require, exports, module) { +$__System.registerDynamic("ff", ["fe"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; - module.exports = $__require('fd'); + module.exports = $__require('fe'); global.define = __define; return module.exports; }); -$__System.registerDynamic("ee", ["f8", "e7", "fc", "f3", "ff", "100", "@empty", "f0", "fe", "38"], true, function($__require, exports, module) { +$__System.registerDynamic("ef", ["f9", "e8", "fd", "f4", "100", "101", "@empty", "f1", "ff", "37"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; (function(Buffer, process) { module.exports = Readable; - var isArray = $__require('f8'); - var Buffer = $__require('e7').Buffer; + var isArray = $__require('f9'); + var Buffer = $__require('e8').Buffer; Readable.ReadableState = ReadableState; - var EE = $__require('fc').EventEmitter; + var EE = $__require('fd').EventEmitter; if (!EE.listenerCount) EE.listenerCount = function(emitter, type) { return emitter.listeners(type).length; }; - var Stream = $__require('f3'); - var util = $__require('ff'); - util.inherits = $__require('100'); + var Stream = $__require('f4'); + var util = $__require('100'); + util.inherits = $__require('101'); var StringDecoder; var debug = $__require('@empty'); if (debug && debug.debuglog) { @@ -23227,7 +23892,7 @@ $__System.registerDynamic("ee", ["f8", "e7", "fc", "f3", "ff", "100", "@empty", } util.inherits(Readable, Stream); function ReadableState(options, stream) { - var Duplex = $__require('f0'); + var Duplex = $__require('f1'); options = options || {}; var hwm = options.highWaterMark; var defaultHwm = options.objectMode ? 16 : 16 * 1024; @@ -23256,13 +23921,13 @@ $__System.registerDynamic("ee", ["f8", "e7", "fc", "f3", "ff", "100", "@empty", this.encoding = null; if (options.encoding) { if (!StringDecoder) - StringDecoder = $__require('fe').StringDecoder; + StringDecoder = $__require('ff').StringDecoder; this.decoder = new StringDecoder(options.encoding); this.encoding = options.encoding; } } function Readable(options) { - var Duplex = $__require('f0'); + var Duplex = $__require('f1'); if (!(this instanceof Readable)) return new Readable(options); this._readableState = new ReadableState(options, this); @@ -23328,7 +23993,7 @@ $__System.registerDynamic("ee", ["f8", "e7", "fc", "f3", "ff", "100", "@empty", } Readable.prototype.setEncoding = function(enc) { if (!StringDecoder) - StringDecoder = $__require('fe').StringDecoder; + StringDecoder = $__require('ff').StringDecoder; this._readableState.decoder = new StringDecoder(enc); this._readableState.encoding = enc; return this; @@ -23826,23 +24491,23 @@ $__System.registerDynamic("ee", ["f8", "e7", "fc", "f3", "ff", "100", "@empty", } return -1; } - })($__require('e7').Buffer, $__require('38')); + })($__require('e8').Buffer, $__require('37')); global.define = __define; return module.exports; }); -$__System.registerDynamic("ef", ["e7", "ff", "100", "f3", "f0", "38"], true, function($__require, exports, module) { +$__System.registerDynamic("f0", ["e8", "100", "101", "f4", "f1", "37"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; (function(Buffer, process) { module.exports = Writable; - var Buffer = $__require('e7').Buffer; + var Buffer = $__require('e8').Buffer; Writable.WritableState = WritableState; - var util = $__require('ff'); - util.inherits = $__require('100'); - var Stream = $__require('f3'); + var util = $__require('100'); + util.inherits = $__require('101'); + var Stream = $__require('f4'); util.inherits(Writable, Stream); function WriteReq(chunk, encoding, cb) { this.chunk = chunk; @@ -23850,7 +24515,7 @@ $__System.registerDynamic("ef", ["e7", "ff", "100", "f3", "f0", "38"], true, fun this.callback = cb; } function WritableState(options, stream) { - var Duplex = $__require('f0'); + var Duplex = $__require('f1'); options = options || {}; var hwm = options.highWaterMark; var defaultHwm = options.objectMode ? 16 : 16 * 1024; @@ -23882,7 +24547,7 @@ $__System.registerDynamic("ef", ["e7", "ff", "100", "f3", "f0", "38"], true, fun this.errorEmitted = false; } function Writable(options) { - var Duplex = $__require('f0'); + var Duplex = $__require('f1'); if (!(this instanceof Writable) && !(this instanceof Duplex)) return new Writable(options); this._writableState = new WritableState(options, this); @@ -24118,12 +24783,12 @@ $__System.registerDynamic("ef", ["e7", "ff", "100", "f3", "f0", "38"], true, fun } state.ended = true; } - })($__require('e7').Buffer, $__require('38')); + })($__require('e8').Buffer, $__require('37')); global.define = __define; return module.exports; }); -$__System.registerDynamic("f0", ["ff", "100", "ee", "ef", "38"], true, function($__require, exports, module) { +$__System.registerDynamic("f1", ["100", "101", "ef", "f0", "37"], true, function($__require, exports, module) { ; var global = this, __define = global.define; @@ -24136,10 +24801,10 @@ $__System.registerDynamic("f0", ["ff", "100", "ee", "ef", "38"], true, function( keys.push(key); return keys; }; - var util = $__require('ff'); - util.inherits = $__require('100'); - var Readable = $__require('ee'); - var Writable = $__require('ef'); + var util = $__require('100'); + util.inherits = $__require('101'); + var Readable = $__require('ef'); + var Writable = $__require('f0'); util.inherits(Duplex, Readable); forEach(objectKeys(Writable.prototype), function(method) { if (!Duplex.prototype[method]) @@ -24170,21 +24835,21 @@ $__System.registerDynamic("f0", ["ff", "100", "ee", "ef", "38"], true, function( f(xs[i], i); } } - })($__require('38')); + })($__require('37')); global.define = __define; return module.exports; }); -$__System.registerDynamic("f1", ["f0", "ff", "100", "38"], true, function($__require, exports, module) { +$__System.registerDynamic("f2", ["f1", "100", "101", "37"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; (function(process) { module.exports = Transform; - var Duplex = $__require('f0'); - var util = $__require('ff'); - util.inherits = $__require('100'); + var Duplex = $__require('f1'); + var util = $__require('100'); + util.inherits = $__require('101'); util.inherits(Transform, Duplex); function TransformState(options, stream) { this.afterTransform = function(er, data) { @@ -24268,12 +24933,12 @@ $__System.registerDynamic("f1", ["f0", "ff", "100", "38"], true, function($__req throw new Error('calling transform done when still transforming'); return stream.push(null); } - })($__require('38')); + })($__require('37')); global.define = __define; return module.exports; }); -$__System.registerDynamic("101", ["e7"], true, function($__require, exports, module) { +$__System.registerDynamic("102", ["e8"], true, function($__require, exports, module) { ; var global = this, __define = global.define; @@ -24342,30 +25007,30 @@ $__System.registerDynamic("101", ["e7"], true, function($__require, exports, mod function objectToString(o) { return Object.prototype.toString.call(o); } - })($__require('e7').Buffer); + })($__require('e8').Buffer); global.define = __define; return module.exports; }); -$__System.registerDynamic("ff", ["101"], true, function($__require, exports, module) { +$__System.registerDynamic("100", ["102"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; - module.exports = $__require('101'); + module.exports = $__require('102'); global.define = __define; return module.exports; }); -$__System.registerDynamic("f2", ["f1", "ff", "100"], true, function($__require, exports, module) { +$__System.registerDynamic("f3", ["f2", "100", "101"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; module.exports = PassThrough; - var Transform = $__require('f1'); - var util = $__require('ff'); - util.inherits = $__require('100'); + var Transform = $__require('f2'); + var util = $__require('100'); + util.inherits = $__require('101'); util.inherits(PassThrough, Transform); function PassThrough(options) { if (!(this instanceof PassThrough)) @@ -24379,30 +25044,30 @@ $__System.registerDynamic("f2", ["f1", "ff", "100"], true, function($__require, return module.exports; }); -$__System.registerDynamic("102", ["f2"], true, function($__require, exports, module) { +$__System.registerDynamic("103", ["f3"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; - module.exports = $__require('f2'); + module.exports = $__require('f3'); global.define = __define; return module.exports; }); -$__System.registerDynamic("f3", ["fc", "100", "ed", "f4", "f5", "f6", "102"], true, function($__require, exports, module) { +$__System.registerDynamic("f4", ["fd", "101", "ee", "f5", "f6", "f7", "103"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; module.exports = Stream; - var EE = $__require('fc').EventEmitter; - var inherits = $__require('100'); + var EE = $__require('fd').EventEmitter; + var inherits = $__require('101'); inherits(Stream, EE); - Stream.Readable = $__require('ed'); - Stream.Writable = $__require('f4'); - Stream.Duplex = $__require('f5'); - Stream.Transform = $__require('f6'); - Stream.PassThrough = $__require('102'); + Stream.Readable = $__require('ee'); + Stream.Writable = $__require('f5'); + Stream.Duplex = $__require('f6'); + Stream.Transform = $__require('f7'); + Stream.PassThrough = $__require('103'); Stream.Stream = Stream; function Stream() { EE.call(this); @@ -24470,22 +25135,12 @@ $__System.registerDynamic("f3", ["fc", "100", "ed", "f4", "f5", "f6", "102"], tr return module.exports; }); -$__System.registerDynamic("103", ["f3"], true, function($__require, exports, module) { +$__System.registerDynamic("104", ["f4"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; - module.exports = $__require('f3'); - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("104", ["103"], true, function($__require, exports, module) { - ; - var global = this, - __define = global.define; - global.define = undefined; - module.exports = $__System._nodeRequire ? $__System._nodeRequire('stream') : $__require('103'); + module.exports = $__require('f4'); global.define = __define; return module.exports; }); @@ -24495,18 +25150,28 @@ $__System.registerDynamic("105", ["104"], true, function($__require, exports, mo var global = this, __define = global.define; global.define = undefined; - module.exports = $__require('104'); + module.exports = $__System._nodeRequire ? $__System._nodeRequire('stream') : $__require('104'); global.define = __define; return module.exports; }); -$__System.registerDynamic("106", ["105", "e2"], true, function($__require, exports, module) { +$__System.registerDynamic("106", ["105"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; - var Stream = $__require('105'); - var util = $__require('e2'); + module.exports = $__require('105'); + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("107", ["106", "e3"], true, function($__require, exports, module) { + ; + var global = this, + __define = global.define; + global.define = undefined; + var Stream = $__require('106'); + var util = $__require('e3'); var Response = module.exports = function(res) { this.offset = 0; this.readable = true; @@ -24609,7 +25274,7 @@ $__System.registerDynamic("106", ["105", "e2"], true, function($__require, expor return module.exports; }); -$__System.registerDynamic("107", [], true, function($__require, exports, module) { +$__System.registerDynamic("108", [], true, function($__require, exports, module) { ; var global = this, __define = global.define; @@ -24657,25 +25322,25 @@ $__System.registerDynamic("107", [], true, function($__require, exports, module) return module.exports; }); -$__System.registerDynamic("108", ["107"], true, function($__require, exports, module) { +$__System.registerDynamic("109", ["108"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; - module.exports = $__require('107'); + module.exports = $__require('108'); global.define = __define; return module.exports; }); -$__System.registerDynamic("109", ["105", "106", "108", "100"], true, function($__require, exports, module) { +$__System.registerDynamic("10a", ["106", "107", "109", "101"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; - var Stream = $__require('105'); - var Response = $__require('106'); - var Base64 = $__require('108'); - var inherits = $__require('100'); + var Stream = $__require('106'); + var Response = $__require('107'); + var Base64 = $__require('109'); + var inherits = $__require('101'); var Request = module.exports = function(xhr, params) { var self = this; self.writable = true; @@ -24829,7 +25494,7 @@ $__System.registerDynamic("109", ["105", "106", "108", "100"], true, function($_ return module.exports; }); -$__System.registerDynamic("10a", ["fc", "109", "ea"], true, function($__require, exports, module) { +$__System.registerDynamic("10b", ["fd", "10a", "eb"], true, function($__require, exports, module) { ; var global = this, __define = global.define; @@ -24838,9 +25503,9 @@ $__System.registerDynamic("10a", ["fc", "109", "ea"], true, function($__require, module.exports = $__System._nodeRequire('http'); } else { var http = module.exports; - var EventEmitter = $__require('fc').EventEmitter; - var Request = $__require('109'); - var url = $__require('ea'); + var EventEmitter = $__require('fd').EventEmitter; + var Request = $__require('10a'); + var url = $__require('eb'); http.request = function(params, cb) { if (typeof params === 'string') { params = url.parse(params); @@ -24973,22 +25638,22 @@ $__System.registerDynamic("10a", ["fc", "109", "ea"], true, function($__require, return module.exports; }); -$__System.registerDynamic("10b", ["10a"], true, function($__require, exports, module) { - ; - var global = this, - __define = global.define; - global.define = undefined; - module.exports = $__require('10a'); - global.define = __define; - return module.exports; -}); - $__System.registerDynamic("10c", ["10b"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; - var http = $__require('10b'); + module.exports = $__require('10b'); + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("10d", ["10c"], true, function($__require, exports, module) { + ; + var global = this, + __define = global.define; + global.define = undefined; + var http = $__require('10c'); var https = module.exports; for (var key in http) { if (http.hasOwnProperty(key)) @@ -25005,22 +25670,12 @@ $__System.registerDynamic("10c", ["10b"], true, function($__require, exports, mo return module.exports; }); -$__System.registerDynamic("10d", ["10c"], true, function($__require, exports, module) { - ; - var global = this, - __define = global.define; - global.define = undefined; - module.exports = $__require('10c'); - global.define = __define; - return module.exports; -}); - $__System.registerDynamic("10e", ["10d"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; - module.exports = $__System._nodeRequire ? $__System._nodeRequire('https') : $__require('10d'); + module.exports = $__require('10d'); global.define = __define; return module.exports; }); @@ -25030,24 +25685,34 @@ $__System.registerDynamic("10f", ["10e"], true, function($__require, exports, mo var global = this, __define = global.define; global.define = undefined; - module.exports = $__require('10e'); + module.exports = $__System._nodeRequire ? $__System._nodeRequire('https') : $__require('10e'); global.define = __define; return module.exports; }); -$__System.registerDynamic("110", ["10b", "10f", "ea", "e9", "111", "dd", "e7"], true, function($__require, exports, module) { +$__System.registerDynamic("110", ["10f"], true, function($__require, exports, module) { + ; + var global = this, + __define = global.define; + global.define = undefined; + module.exports = $__require('10f'); + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("111", ["10c", "110", "eb", "ea", "112", "de", "e8"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; (function(Buffer) { 'use strict'; - var http = $__require('10b'), - https = $__require('10f'), - url = $__require('ea'), - util = $__require('e9'), - Promise = $__require('111'), - ono = $__require('dd'); + var http = $__require('10c'), + https = $__require('110'), + url = $__require('eb'), + util = $__require('ea'), + Promise = $__require('112'), + ono = $__require('de'); module.exports = download; function download(u, options, redirects) { return new Promise(function(resolve, reject) { @@ -25108,21 +25773,21 @@ $__System.registerDynamic("110", ["10b", "10f", "ea", "e9", "111", "dd", "e7"], }); }); } - })($__require('e7').Buffer); + })($__require('e8').Buffer); global.define = __define; return module.exports; }); -$__System.registerDynamic("112", ["113", "e9", "dd", "e7"], true, function($__require, exports, module) { +$__System.registerDynamic("113", ["114", "ea", "de", "e8"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; (function(Buffer) { 'use strict'; - var YAML = $__require('113'), - util = $__require('e9'), - ono = $__require('dd'); + var YAML = $__require('114'), + util = $__require('ea'), + ono = $__require('de'); module.exports = parse; function parse(data, path, options) { var parsed; @@ -25155,12 +25820,12 @@ $__System.registerDynamic("112", ["113", "e9", "dd", "e7"], true, function($__re function isEmpty(value) { return !value || (typeof value === 'object' && Object.keys(value).length === 0) || (typeof value === 'string' && value.trim().length === 0) || (value instanceof Buffer && value.length === 0); } - })($__require('e7').Buffer); + })($__require('e8').Buffer); global.define = __define; return module.exports; }); -$__System.registerDynamic("114", ["38"], true, function($__require, exports, module) { +$__System.registerDynamic("115", ["37"], true, function($__require, exports, module) { ; var global = this, __define = global.define; @@ -25188,7 +25853,6 @@ $__System.registerDynamic("114", ["38"], true, function($__require, exports, mod } var lib$es6$promise$utils$$isArray = lib$es6$promise$utils$$_isArray; var lib$es6$promise$asap$$len = 0; - var lib$es6$promise$asap$$toString = {}.toString; var lib$es6$promise$asap$$vertxNext; var lib$es6$promise$asap$$customSchedulerFn; var lib$es6$promise$asap$$asap = function asap(callback, arg) { @@ -25278,6 +25942,35 @@ $__System.registerDynamic("114", ["38"], true, function($__require, exports, mod } else { lib$es6$promise$asap$$scheduleFlush = lib$es6$promise$asap$$useSetTimeout(); } + function lib$es6$promise$then$$then(onFulfillment, onRejection) { + var parent = this; + var state = parent._state; + if (state === lib$es6$promise$$internal$$FULFILLED && !onFulfillment || state === lib$es6$promise$$internal$$REJECTED && !onRejection) { + return this; + } + var child = new this.constructor(lib$es6$promise$$internal$$noop); + var result = parent._result; + if (state) { + var callback = arguments[state - 1]; + lib$es6$promise$asap$$asap(function() { + lib$es6$promise$$internal$$invokeCallback(state, child, callback, result); + }); + } else { + lib$es6$promise$$internal$$subscribe(parent, child, onFulfillment, onRejection); + } + return child; + } + var lib$es6$promise$then$$default = lib$es6$promise$then$$then; + function lib$es6$promise$promise$resolve$$resolve(object) { + var Constructor = this; + if (object && typeof object === 'object' && object.constructor === Constructor) { + return object; + } + var promise = new Constructor(lib$es6$promise$$internal$$noop); + lib$es6$promise$$internal$$resolve(promise, object); + return promise; + } + var lib$es6$promise$promise$resolve$$default = lib$es6$promise$promise$resolve$$resolve; function lib$es6$promise$$internal$$noop() {} var lib$es6$promise$$internal$$PENDING = void 0; var lib$es6$promise$$internal$$FULFILLED = 1; @@ -25343,11 +26036,10 @@ $__System.registerDynamic("114", ["38"], true, function($__require, exports, mod }); } } - function lib$es6$promise$$internal$$handleMaybeThenable(promise, maybeThenable) { - if (maybeThenable.constructor === promise.constructor) { + function lib$es6$promise$$internal$$handleMaybeThenable(promise, maybeThenable, then) { + if (maybeThenable.constructor === promise.constructor && then === lib$es6$promise$then$$default && constructor.resolve === lib$es6$promise$promise$resolve$$default) { lib$es6$promise$$internal$$handleOwnThenable(promise, maybeThenable); } else { - var then = lib$es6$promise$$internal$$getThen(maybeThenable); if (then === lib$es6$promise$$internal$$GET_THEN_ERROR) { lib$es6$promise$$internal$$reject(promise, lib$es6$promise$$internal$$GET_THEN_ERROR.error); } else if (then === undefined) { @@ -25363,7 +26055,7 @@ $__System.registerDynamic("114", ["38"], true, function($__require, exports, mod if (promise === value) { lib$es6$promise$$internal$$reject(promise, lib$es6$promise$$internal$$selfFulfillment()); } else if (lib$es6$promise$utils$$objectOrFunction(value)) { - lib$es6$promise$$internal$$handleMaybeThenable(promise, value); + lib$es6$promise$$internal$$handleMaybeThenable(promise, value, lib$es6$promise$$internal$$getThen(value)); } else { lib$es6$promise$$internal$$fulfill(promise, value); } @@ -25479,85 +26171,6 @@ $__System.registerDynamic("114", ["38"], true, function($__require, exports, mod lib$es6$promise$$internal$$reject(promise, e); } } - function lib$es6$promise$enumerator$$Enumerator(Constructor, input) { - var enumerator = this; - enumerator._instanceConstructor = Constructor; - enumerator.promise = new Constructor(lib$es6$promise$$internal$$noop); - if (enumerator._validateInput(input)) { - enumerator._input = input; - enumerator.length = input.length; - enumerator._remaining = input.length; - enumerator._init(); - if (enumerator.length === 0) { - lib$es6$promise$$internal$$fulfill(enumerator.promise, enumerator._result); - } else { - enumerator.length = enumerator.length || 0; - enumerator._enumerate(); - if (enumerator._remaining === 0) { - lib$es6$promise$$internal$$fulfill(enumerator.promise, enumerator._result); - } - } - } else { - lib$es6$promise$$internal$$reject(enumerator.promise, enumerator._validationError()); - } - } - lib$es6$promise$enumerator$$Enumerator.prototype._validateInput = function(input) { - return lib$es6$promise$utils$$isArray(input); - }; - lib$es6$promise$enumerator$$Enumerator.prototype._validationError = function() { - return new Error('Array Methods must be provided an Array'); - }; - lib$es6$promise$enumerator$$Enumerator.prototype._init = function() { - this._result = new Array(this.length); - }; - var lib$es6$promise$enumerator$$default = lib$es6$promise$enumerator$$Enumerator; - lib$es6$promise$enumerator$$Enumerator.prototype._enumerate = function() { - var enumerator = this; - var length = enumerator.length; - var promise = enumerator.promise; - var input = enumerator._input; - for (var i = 0; promise._state === lib$es6$promise$$internal$$PENDING && i < length; i++) { - enumerator._eachEntry(input[i], i); - } - }; - lib$es6$promise$enumerator$$Enumerator.prototype._eachEntry = function(entry, i) { - var enumerator = this; - var c = enumerator._instanceConstructor; - if (lib$es6$promise$utils$$isMaybeThenable(entry)) { - if (entry.constructor === c && entry._state !== lib$es6$promise$$internal$$PENDING) { - entry._onerror = null; - enumerator._settledAt(entry._state, i, entry._result); - } else { - enumerator._willSettleAt(c.resolve(entry), i); - } - } else { - enumerator._remaining--; - enumerator._result[i] = entry; - } - }; - lib$es6$promise$enumerator$$Enumerator.prototype._settledAt = function(state, i, value) { - var enumerator = this; - var promise = enumerator.promise; - if (promise._state === lib$es6$promise$$internal$$PENDING) { - enumerator._remaining--; - if (state === lib$es6$promise$$internal$$REJECTED) { - lib$es6$promise$$internal$$reject(promise, value); - } else { - enumerator._result[i] = value; - } - } - if (enumerator._remaining === 0) { - lib$es6$promise$$internal$$fulfill(promise, enumerator._result); - } - }; - lib$es6$promise$enumerator$$Enumerator.prototype._willSettleAt = function(promise, i) { - var enumerator = this; - lib$es6$promise$$internal$$subscribe(promise, undefined, function(value) { - enumerator._settledAt(lib$es6$promise$$internal$$FULFILLED, i, value); - }, function(reason) { - enumerator._settledAt(lib$es6$promise$$internal$$REJECTED, i, reason); - }); - }; function lib$es6$promise$promise$all$$all(entries) { return new lib$es6$promise$enumerator$$default(this, entries).promise; } @@ -25582,16 +26195,6 @@ $__System.registerDynamic("114", ["38"], true, function($__require, exports, mod return promise; } var lib$es6$promise$promise$race$$default = lib$es6$promise$promise$race$$race; - function lib$es6$promise$promise$resolve$$resolve(object) { - var Constructor = this; - if (object && typeof object === 'object' && object.constructor === Constructor) { - return object; - } - var promise = new Constructor(lib$es6$promise$$internal$$noop); - lib$es6$promise$$internal$$resolve(promise, object); - return promise; - } - var lib$es6$promise$promise$resolve$$default = lib$es6$promise$promise$resolve$$resolve; function lib$es6$promise$promise$reject$$reject(reason) { var Constructor = this; var promise = new Constructor(lib$es6$promise$$internal$$noop); @@ -25613,13 +26216,8 @@ $__System.registerDynamic("114", ["38"], true, function($__require, exports, mod this._result = undefined; this._subscribers = []; if (lib$es6$promise$$internal$$noop !== resolver) { - if (!lib$es6$promise$utils$$isFunction(resolver)) { - lib$es6$promise$promise$$needsResolver(); - } - if (!(this instanceof lib$es6$promise$promise$$Promise)) { - lib$es6$promise$promise$$needsNew(); - } - lib$es6$promise$$internal$$initializePromise(this, resolver); + typeof resolver !== 'function' && lib$es6$promise$promise$$needsResolver(); + this instanceof lib$es6$promise$promise$$Promise ? lib$es6$promise$$internal$$initializePromise(this, resolver) : lib$es6$promise$promise$$needsNew(); } } lib$es6$promise$promise$$Promise.all = lib$es6$promise$promise$all$$default; @@ -25631,28 +26229,88 @@ $__System.registerDynamic("114", ["38"], true, function($__require, exports, mod lib$es6$promise$promise$$Promise._asap = lib$es6$promise$asap$$asap; lib$es6$promise$promise$$Promise.prototype = { constructor: lib$es6$promise$promise$$Promise, - then: function(onFulfillment, onRejection) { - var parent = this; - var state = parent._state; - if (state === lib$es6$promise$$internal$$FULFILLED && !onFulfillment || state === lib$es6$promise$$internal$$REJECTED && !onRejection) { - return this; - } - var child = new this.constructor(lib$es6$promise$$internal$$noop); - var result = parent._result; - if (state) { - var callback = arguments[state - 1]; - lib$es6$promise$asap$$asap(function() { - lib$es6$promise$$internal$$invokeCallback(state, child, callback, result); - }); - } else { - lib$es6$promise$$internal$$subscribe(parent, child, onFulfillment, onRejection); - } - return child; - }, + then: lib$es6$promise$then$$default, 'catch': function(onRejection) { return this.then(null, onRejection); } }; + var lib$es6$promise$enumerator$$default = lib$es6$promise$enumerator$$Enumerator; + function lib$es6$promise$enumerator$$Enumerator(Constructor, input) { + this._instanceConstructor = Constructor; + this.promise = new Constructor(lib$es6$promise$$internal$$noop); + if (Array.isArray(input)) { + this._input = input; + this.length = input.length; + this._remaining = input.length; + this._result = new Array(this.length); + if (this.length === 0) { + lib$es6$promise$$internal$$fulfill(this.promise, this._result); + } else { + this.length = this.length || 0; + this._enumerate(); + if (this._remaining === 0) { + lib$es6$promise$$internal$$fulfill(this.promise, this._result); + } + } + } else { + lib$es6$promise$$internal$$reject(this.promise, this._validationError()); + } + } + lib$es6$promise$enumerator$$Enumerator.prototype._validationError = function() { + return new Error('Array Methods must be provided an Array'); + }; + lib$es6$promise$enumerator$$Enumerator.prototype._enumerate = function() { + var length = this.length; + var input = this._input; + for (var i = 0; this._state === lib$es6$promise$$internal$$PENDING && i < length; i++) { + this._eachEntry(input[i], i); + } + }; + lib$es6$promise$enumerator$$Enumerator.prototype._eachEntry = function(entry, i) { + var c = this._instanceConstructor; + var resolve = c.resolve; + if (resolve === lib$es6$promise$promise$resolve$$default) { + var then = lib$es6$promise$$internal$$getThen(entry); + if (then === lib$es6$promise$then$$default && entry._state !== lib$es6$promise$$internal$$PENDING) { + this._settledAt(entry._state, i, entry._result); + } else if (typeof then !== 'function') { + this._remaining--; + this._result[i] = entry; + } else if (c === lib$es6$promise$promise$$default) { + var promise = new c(lib$es6$promise$$internal$$noop); + lib$es6$promise$$internal$$handleMaybeThenable(promise, entry, then); + this._willSettleAt(promise, i); + } else { + this._willSettleAt(new c(function(resolve) { + resolve(entry); + }), i); + } + } else { + this._willSettleAt(resolve(entry), i); + } + }; + lib$es6$promise$enumerator$$Enumerator.prototype._settledAt = function(state, i, value) { + var promise = this.promise; + if (promise._state === lib$es6$promise$$internal$$PENDING) { + this._remaining--; + if (state === lib$es6$promise$$internal$$REJECTED) { + lib$es6$promise$$internal$$reject(promise, value); + } else { + this._result[i] = value; + } + } + if (this._remaining === 0) { + lib$es6$promise$$internal$$fulfill(promise, this._result); + } + }; + lib$es6$promise$enumerator$$Enumerator.prototype._willSettleAt = function(promise, i) { + var enumerator = this; + lib$es6$promise$$internal$$subscribe(promise, undefined, function(value) { + enumerator._settledAt(lib$es6$promise$$internal$$FULFILLED, i, value); + }, function(reason) { + enumerator._settledAt(lib$es6$promise$$internal$$REJECTED, i, reason); + }); + }; function lib$es6$promise$polyfill$$polyfill() { var local; if (typeof global !== 'undefined') { @@ -25688,47 +26346,47 @@ $__System.registerDynamic("114", ["38"], true, function($__require, exports, mod } lib$es6$promise$polyfill$$default(); }).call(this); - })($__require('38')); + })($__require('37')); global.define = __define; return module.exports; }); -$__System.registerDynamic("e6", ["114"], true, function($__require, exports, module) { +$__System.registerDynamic("e7", ["115"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; - module.exports = $__require('114'); + module.exports = $__require('115'); global.define = __define; return module.exports; }); -$__System.registerDynamic("111", ["e6"], true, function($__require, exports, module) { +$__System.registerDynamic("112", ["e7"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - module.exports = typeof Promise === 'function' ? Promise : $__require('e6').Promise; + module.exports = typeof Promise === 'function' ? Promise : $__require('e7').Promise; global.define = __define; return module.exports; }); -$__System.registerDynamic("115", ["ec", "110", "112", "e9", "116", "111", "ea", "dd", "38"], true, function($__require, exports, module) { +$__System.registerDynamic("116", ["ed", "111", "113", "ea", "117", "112", "eb", "de", "37"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; (function(process) { 'use strict'; - var fs = $__require('ec'), - download = $__require('110'), - parse = $__require('112'), - util = $__require('e9'), - $Ref = $__require('116'), - Promise = $__require('111'), - url = $__require('ea'), - ono = $__require('dd'); + var fs = $__require('ed'), + download = $__require('111'), + parse = $__require('113'), + util = $__require('ea'), + $Ref = $__require('117'), + Promise = $__require('112'), + url = $__require('eb'), + ono = $__require('de'); module.exports = read; function read(path, $refs, options) { try { @@ -25806,23 +26464,23 @@ $__System.registerDynamic("115", ["ec", "110", "112", "e9", "116", "111", "ea", return download(u, options); } } - })($__require('38')); + })($__require('37')); global.define = __define; return module.exports; }); -$__System.registerDynamic("117", ["111", "116", "118", "115", "e9", "ea"], true, function($__require, exports, module) { +$__System.registerDynamic("118", ["112", "117", "119", "116", "ea", "eb"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var Promise = $__require('111'), - $Ref = $__require('116'), - Pointer = $__require('118'), - read = $__require('115'), - util = $__require('e9'), - url = $__require('ea'); + var Promise = $__require('112'), + $Ref = $__require('117'), + Pointer = $__require('119'), + read = $__require('116'), + util = $__require('ea'), + url = $__require('eb'); module.exports = resolve; function resolve(parser, options) { try { @@ -25867,16 +26525,16 @@ $__System.registerDynamic("117", ["111", "116", "118", "115", "e9", "ea"], true, return module.exports; }); -$__System.registerDynamic("119", ["116", "118", "e9", "ea"], true, function($__require, exports, module) { +$__System.registerDynamic("11a", ["117", "119", "ea", "eb"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var $Ref = $__require('116'), - Pointer = $__require('118'), - util = $__require('e9'), - url = $__require('ea'); + var $Ref = $__require('117'), + Pointer = $__require('119'), + util = $__require('ea'), + url = $__require('eb'); module.exports = bundle; function bundle(parser, options) { util.debug('Bundling $ref pointers in %s', parser.$refs._basePath); @@ -25972,7 +26630,7 @@ $__System.registerDynamic("119", ["116", "118", "e9", "ea"], true, function($__r return module.exports; }); -$__System.registerDynamic("11a", ["38"], true, function($__require, exports, module) { +$__System.registerDynamic("11b", ["37"], true, function($__require, exports, module) { ; var global = this, __define = global.define; @@ -25998,28 +26656,28 @@ $__System.registerDynamic("11a", ["38"], true, function($__require, exports, mod return promise; } }; - })($__require('38')); + })($__require('37')); global.define = __define; return module.exports; }); -$__System.registerDynamic("11b", ["11a"], true, function($__require, exports, module) { +$__System.registerDynamic("11c", ["11b"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; - module.exports = $__require('11a'); + module.exports = $__require('11b'); global.define = __define; return module.exports; }); -$__System.registerDynamic("11c", ["11d"], true, function($__require, exports, module) { +$__System.registerDynamic("11d", ["11e"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var common = $__require('11d'); + var common = $__require('11e'); function Mark(name, buffer, position, line, column) { this.name = name; this.buffer = buffer; @@ -26081,17 +26739,17 @@ $__System.registerDynamic("11c", ["11d"], true, function($__require, exports, mo return module.exports; }); -$__System.registerDynamic("11e", ["11d", "11f", "11c", "120", "121"], true, function($__require, exports, module) { +$__System.registerDynamic("11f", ["11e", "120", "11d", "121", "122"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var common = $__require('11d'); - var YAMLException = $__require('11f'); - var Mark = $__require('11c'); - var DEFAULT_SAFE_SCHEMA = $__require('120'); - var DEFAULT_FULL_SCHEMA = $__require('121'); + var common = $__require('11e'); + var YAMLException = $__require('120'); + var Mark = $__require('11d'); + var DEFAULT_SAFE_SCHEMA = $__require('121'); + var DEFAULT_FULL_SCHEMA = $__require('122'); var _hasOwnProperty = Object.prototype.hasOwnProperty; var CONTEXT_FLOW_IN = 1; var CONTEXT_FLOW_OUT = 2; @@ -27242,16 +27900,16 @@ $__System.registerDynamic("11e", ["11d", "11f", "11c", "120", "121"], true, func return module.exports; }); -$__System.registerDynamic("122", ["11d", "11f", "121", "120"], true, function($__require, exports, module) { +$__System.registerDynamic("123", ["11e", "120", "122", "121"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var common = $__require('11d'); - var YAMLException = $__require('11f'); - var DEFAULT_FULL_SCHEMA = $__require('121'); - var DEFAULT_SAFE_SCHEMA = $__require('120'); + var common = $__require('11e'); + var YAMLException = $__require('120'); + var DEFAULT_FULL_SCHEMA = $__require('122'); + var DEFAULT_SAFE_SCHEMA = $__require('121'); var _toString = Object.prototype.toString; var _hasOwnProperty = Object.prototype.hasOwnProperty; var CHAR_TAB = 0x09; @@ -27917,15 +28575,15 @@ $__System.registerDynamic("122", ["11d", "11f", "121", "120"], true, function($_ return module.exports; }); -$__System.registerDynamic("123", ["11d", "11f", "124"], true, function($__require, exports, module) { +$__System.registerDynamic("124", ["11e", "120", "125"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var common = $__require('11d'); - var YAMLException = $__require('11f'); - var Type = $__require('124'); + var common = $__require('11e'); + var YAMLException = $__require('120'); + var Type = $__require('125'); function compileList(schema, name, result) { var exclude = []; schema.include.forEach(function(includedSchema) { @@ -28006,13 +28664,13 @@ $__System.registerDynamic("123", ["11d", "11f", "124"], true, function($__requir return module.exports; }); -$__System.registerDynamic("125", ["124"], true, function($__require, exports, module) { +$__System.registerDynamic("126", ["125"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var Type = $__require('124'); + var Type = $__require('125'); module.exports = new Type('tag:yaml.org,2002:str', { kind: 'scalar', construct: function(data) { @@ -28023,13 +28681,13 @@ $__System.registerDynamic("125", ["124"], true, function($__require, exports, mo return module.exports; }); -$__System.registerDynamic("126", ["124"], true, function($__require, exports, module) { +$__System.registerDynamic("127", ["125"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var Type = $__require('124'); + var Type = $__require('125'); module.exports = new Type('tag:yaml.org,2002:seq', { kind: 'sequence', construct: function(data) { @@ -28040,13 +28698,13 @@ $__System.registerDynamic("126", ["124"], true, function($__require, exports, mo return module.exports; }); -$__System.registerDynamic("127", ["124"], true, function($__require, exports, module) { +$__System.registerDynamic("128", ["125"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var Type = $__require('124'); + var Type = $__require('125'); module.exports = new Type('tag:yaml.org,2002:map', { kind: 'mapping', construct: function(data) { @@ -28057,25 +28715,25 @@ $__System.registerDynamic("127", ["124"], true, function($__require, exports, mo return module.exports; }); -$__System.registerDynamic("128", ["123", "125", "126", "127"], true, function($__require, exports, module) { +$__System.registerDynamic("129", ["124", "126", "127", "128"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var Schema = $__require('123'); - module.exports = new Schema({explicit: [$__require('125'), $__require('126'), $__require('127')]}); + var Schema = $__require('124'); + module.exports = new Schema({explicit: [$__require('126'), $__require('127'), $__require('128')]}); global.define = __define; return module.exports; }); -$__System.registerDynamic("129", ["124"], true, function($__require, exports, module) { +$__System.registerDynamic("12a", ["125"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var Type = $__require('124'); + var Type = $__require('125'); function resolveYamlNull(data) { if (null === data) { return true; @@ -28114,13 +28772,13 @@ $__System.registerDynamic("129", ["124"], true, function($__require, exports, mo return module.exports; }); -$__System.registerDynamic("12a", ["124"], true, function($__require, exports, module) { +$__System.registerDynamic("12b", ["125"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var Type = $__require('124'); + var Type = $__require('125'); function resolveYamlBoolean(data) { if (null === data) { return false; @@ -28156,14 +28814,14 @@ $__System.registerDynamic("12a", ["124"], true, function($__require, exports, mo return module.exports; }); -$__System.registerDynamic("12b", ["11d", "124"], true, function($__require, exports, module) { +$__System.registerDynamic("12c", ["11e", "125"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var common = $__require('11d'); - var Type = $__require('124'); + var common = $__require('11e'); + var Type = $__require('125'); function isHexCode(c) { return ((0x30 <= c) && (c <= 0x39)) || ((0x41 <= c) && (c <= 0x46)) || ((0x61 <= c) && (c <= 0x66)); } @@ -28331,7 +28989,7 @@ $__System.registerDynamic("12b", ["11d", "124"], true, function($__require, expo return module.exports; }); -$__System.registerDynamic("11d", [], true, function($__require, exports, module) { +$__System.registerDynamic("11e", [], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -28386,14 +29044,14 @@ $__System.registerDynamic("11d", [], true, function($__require, exports, module) return module.exports; }); -$__System.registerDynamic("12c", ["11d", "124"], true, function($__require, exports, module) { +$__System.registerDynamic("12d", ["11e", "125"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var common = $__require('11d'); - var Type = $__require('124'); + var common = $__require('11e'); + var Type = $__require('125'); var YAML_FLOAT_PATTERN = new RegExp('^(?:[-+]?(?:[0-9][0-9_]*)\\.[0-9_]*(?:[eE][-+][0-9]+)?' + '|\\.[0-9_]+(?:[eE][-+][0-9]+)?' + '|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*' + '|[-+]?\\.(?:inf|Inf|INF)' + '|\\.(?:nan|NaN|NAN))$'); function resolveYamlFloat(data) { if (null === data) { @@ -28484,40 +29142,40 @@ $__System.registerDynamic("12c", ["11d", "124"], true, function($__require, expo return module.exports; }); -$__System.registerDynamic("12d", ["123", "128", "129", "12a", "12b", "12c"], true, function($__require, exports, module) { +$__System.registerDynamic("12e", ["124", "129", "12a", "12b", "12c", "12d"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var Schema = $__require('123'); + var Schema = $__require('124'); module.exports = new Schema({ - include: [$__require('128')], - implicit: [$__require('129'), $__require('12a'), $__require('12b'), $__require('12c')] + include: [$__require('129')], + implicit: [$__require('12a'), $__require('12b'), $__require('12c'), $__require('12d')] }); global.define = __define; return module.exports; }); -$__System.registerDynamic("12e", ["123", "12d"], true, function($__require, exports, module) { +$__System.registerDynamic("12f", ["124", "12e"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var Schema = $__require('123'); - module.exports = new Schema({include: [$__require('12d')]}); + var Schema = $__require('124'); + module.exports = new Schema({include: [$__require('12e')]}); global.define = __define; return module.exports; }); -$__System.registerDynamic("12f", ["124"], true, function($__require, exports, module) { +$__System.registerDynamic("130", ["125"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var Type = $__require('124'); + var Type = $__require('125'); var YAML_TIMESTAMP_REGEXP = new RegExp('^([0-9][0-9][0-9][0-9])' + '-([0-9][0-9]?)' + '-([0-9][0-9]?)' + '(?:(?:[Tt]|[ \\t]+)' + '([0-9][0-9]?)' + ':([0-9][0-9])' + ':([0-9][0-9])' + '(?:\\.([0-9]*))?' + '(?:[ \\t]*(Z|([-+])([0-9][0-9]?)' + '(?::([0-9][0-9]))?))?)?$'); function resolveYamlTimestamp(data) { if (null === data) { @@ -28589,13 +29247,13 @@ $__System.registerDynamic("12f", ["124"], true, function($__require, exports, mo return module.exports; }); -$__System.registerDynamic("130", ["124"], true, function($__require, exports, module) { +$__System.registerDynamic("131", ["125"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var Type = $__require('124'); + var Type = $__require('125'); function resolveYamlMerge(data) { return '<<' === data || null === data; } @@ -28607,7 +29265,7 @@ $__System.registerDynamic("130", ["124"], true, function($__require, exports, mo return module.exports; }); -$__System.registerDynamic("131", ["@empty", "124"], true, function($__require, exports, module) { +$__System.registerDynamic("132", ["@empty", "125"], true, function($__require, exports, module) { ; var global = this, __define = global.define; @@ -28615,7 +29273,7 @@ $__System.registerDynamic("131", ["@empty", "124"], true, function($__require, e (function(Buffer) { 'use strict'; var NodeBuffer = $__require('@empty').Buffer; - var Type = $__require('124'); + var Type = $__require('125'); var BASE64_MAP = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r'; function resolveYamlBinary(data) { if (null === data) { @@ -28720,13 +29378,13 @@ $__System.registerDynamic("131", ["@empty", "124"], true, function($__require, e return module.exports; }); -$__System.registerDynamic("132", ["124"], true, function($__require, exports, module) { +$__System.registerDynamic("133", ["125"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var Type = $__require('124'); + var Type = $__require('125'); var _hasOwnProperty = Object.prototype.hasOwnProperty; var _toString = Object.prototype.toString; function resolveYamlOmap(data) { @@ -28778,13 +29436,13 @@ $__System.registerDynamic("132", ["124"], true, function($__require, exports, mo return module.exports; }); -$__System.registerDynamic("133", ["124"], true, function($__require, exports, module) { +$__System.registerDynamic("134", ["125"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var Type = $__require('124'); + var Type = $__require('125'); var _toString = Object.prototype.toString; function resolveYamlPairs(data) { if (null === data) { @@ -28837,13 +29495,13 @@ $__System.registerDynamic("133", ["124"], true, function($__require, exports, mo return module.exports; }); -$__System.registerDynamic("134", ["124"], true, function($__require, exports, module) { +$__System.registerDynamic("135", ["125"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var Type = $__require('124'); + var Type = $__require('125'); var _hasOwnProperty = Object.prototype.hasOwnProperty; function resolveYamlSet(data) { if (null === data) { @@ -28872,29 +29530,29 @@ $__System.registerDynamic("134", ["124"], true, function($__require, exports, mo return module.exports; }); -$__System.registerDynamic("120", ["123", "12e", "12f", "130", "131", "132", "133", "134"], true, function($__require, exports, module) { +$__System.registerDynamic("121", ["124", "12f", "130", "131", "132", "133", "134", "135"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var Schema = $__require('123'); + var Schema = $__require('124'); module.exports = new Schema({ - include: [$__require('12e')], - implicit: [$__require('12f'), $__require('130')], - explicit: [$__require('131'), $__require('132'), $__require('133'), $__require('134')] + include: [$__require('12f')], + implicit: [$__require('130'), $__require('131')], + explicit: [$__require('132'), $__require('133'), $__require('134'), $__require('135')] }); global.define = __define; return module.exports; }); -$__System.registerDynamic("135", ["124"], true, function($__require, exports, module) { +$__System.registerDynamic("136", ["125"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var Type = $__require('124'); + var Type = $__require('125'); function resolveJavascriptUndefined() { return true; } @@ -28918,13 +29576,13 @@ $__System.registerDynamic("135", ["124"], true, function($__require, exports, mo return module.exports; }); -$__System.registerDynamic("136", ["124"], true, function($__require, exports, module) { +$__System.registerDynamic("137", ["125"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var Type = $__require('124'); + var Type = $__require('125'); function resolveJavascriptRegExp(data) { if (null === data) { return false; @@ -28992,13 +29650,13 @@ $__System.registerDynamic("136", ["124"], true, function($__require, exports, mo return module.exports; }); -$__System.registerDynamic("124", ["11f"], true, function($__require, exports, module) { +$__System.registerDynamic("125", ["120"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var YAMLException = $__require('11f'); + var YAMLException = $__require('120'); var TYPE_CONSTRUCTOR_OPTIONS = ['kind', 'resolve', 'construct', 'instanceOf', 'predicate', 'represent', 'defaultStyle', 'styleAliases']; var YAML_NODE_KINDS = ['scalar', 'sequence', 'mapping']; function compileStyleAliases(map) { @@ -29041,7 +29699,7 @@ $__System.registerDynamic("124", ["11f"], true, function($__require, exports, mo return module.exports; }); -$__System.registerDynamic("137", ["124"], true, function($__require, exports, module) { +$__System.registerDynamic("138", ["125"], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -29056,7 +29714,7 @@ $__System.registerDynamic("137", ["124"], true, function($__require, exports, mo esprima = window.esprima; } } - var Type = $__require('124'); + var Type = $__require('125'); function resolveJavascriptFunction(data) { if (null === data) { return false; @@ -29103,22 +29761,22 @@ $__System.registerDynamic("137", ["124"], true, function($__require, exports, mo return module.exports; }); -$__System.registerDynamic("121", ["123", "120", "135", "136", "137"], true, function($__require, exports, module) { +$__System.registerDynamic("122", ["124", "121", "136", "137", "138"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var Schema = $__require('123'); + var Schema = $__require('124'); module.exports = Schema.DEFAULT = new Schema({ - include: [$__require('120')], - explicit: [$__require('135'), $__require('136'), $__require('137')] + include: [$__require('121')], + explicit: [$__require('136'), $__require('137'), $__require('138')] }); global.define = __define; return module.exports; }); -$__System.registerDynamic("11f", [], true, function($__require, exports, module) { +$__System.registerDynamic("120", [], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -29151,36 +29809,36 @@ $__System.registerDynamic("11f", [], true, function($__require, exports, module) return module.exports; }); -$__System.registerDynamic("138", ["11e", "122", "124", "123", "128", "12d", "12e", "120", "121", "11f"], true, function($__require, exports, module) { +$__System.registerDynamic("139", ["11f", "123", "125", "124", "129", "12e", "12f", "121", "122", "120"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var loader = $__require('11e'); - var dumper = $__require('122'); + var loader = $__require('11f'); + var dumper = $__require('123'); function deprecated(name) { return function() { throw new Error('Function ' + name + ' is deprecated and cannot be used.'); }; } - module.exports.Type = $__require('124'); - module.exports.Schema = $__require('123'); - module.exports.FAILSAFE_SCHEMA = $__require('128'); - module.exports.JSON_SCHEMA = $__require('12d'); - module.exports.CORE_SCHEMA = $__require('12e'); - module.exports.DEFAULT_SAFE_SCHEMA = $__require('120'); - module.exports.DEFAULT_FULL_SCHEMA = $__require('121'); + module.exports.Type = $__require('125'); + module.exports.Schema = $__require('124'); + module.exports.FAILSAFE_SCHEMA = $__require('129'); + module.exports.JSON_SCHEMA = $__require('12e'); + module.exports.CORE_SCHEMA = $__require('12f'); + module.exports.DEFAULT_SAFE_SCHEMA = $__require('121'); + module.exports.DEFAULT_FULL_SCHEMA = $__require('122'); module.exports.load = loader.load; module.exports.loadAll = loader.loadAll; module.exports.safeLoad = loader.safeLoad; module.exports.safeLoadAll = loader.safeLoadAll; module.exports.dump = dumper.dump; module.exports.safeDump = dumper.safeDump; - module.exports.YAMLException = $__require('11f'); - module.exports.MINIMAL_SCHEMA = $__require('128'); - module.exports.SAFE_SCHEMA = $__require('120'); - module.exports.DEFAULT_SCHEMA = $__require('121'); + module.exports.YAMLException = $__require('120'); + module.exports.MINIMAL_SCHEMA = $__require('129'); + module.exports.SAFE_SCHEMA = $__require('121'); + module.exports.DEFAULT_SCHEMA = $__require('122'); module.exports.scan = deprecated('scan'); module.exports.parse = deprecated('parse'); module.exports.compose = deprecated('compose'); @@ -29189,36 +29847,36 @@ $__System.registerDynamic("138", ["11e", "122", "124", "123", "128", "12d", "12e return module.exports; }); -$__System.registerDynamic("139", ["138"], true, function($__require, exports, module) { +$__System.registerDynamic("13a", ["139"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var yaml = $__require('138'); + var yaml = $__require('139'); module.exports = yaml; global.define = __define; return module.exports; }); -$__System.registerDynamic("13a", ["139"], true, function($__require, exports, module) { +$__System.registerDynamic("13b", ["13a"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; - module.exports = $__require('139'); + module.exports = $__require('13a'); global.define = __define; return module.exports; }); -$__System.registerDynamic("113", ["13a", "dd"], true, function($__require, exports, module) { +$__System.registerDynamic("114", ["13b", "de"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var yaml = $__require('13a'), - ono = $__require('dd'); + var yaml = $__require('13b'), + ono = $__require('de'); module.exports = { parse: function yamlParse(text, reviver) { try { @@ -29248,27 +29906,27 @@ $__System.registerDynamic("113", ["13a", "dd"], true, function($__require, expor return module.exports; }); -$__System.registerDynamic("13b", ["111", "e4", "e8", "116", "115", "117", "119", "13c", "e9", "ea", "11b", "dd", "113", "e7"], true, function($__require, exports, module) { +$__System.registerDynamic("13c", ["112", "e5", "e9", "117", "116", "118", "11a", "13d", "ea", "eb", "11c", "de", "114", "e8"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; (function(Buffer) { 'use strict'; - var Promise = $__require('111'), - Options = $__require('e4'), - $Refs = $__require('e8'), - $Ref = $__require('116'), - read = $__require('115'), - resolve = $__require('117'), - bundle = $__require('119'), - dereference = $__require('13c'), - util = $__require('e9'), - url = $__require('ea'), - maybe = $__require('11b'), - ono = $__require('dd'); + var Promise = $__require('112'), + Options = $__require('e5'), + $Refs = $__require('e9'), + $Ref = $__require('117'), + read = $__require('116'), + resolve = $__require('118'), + bundle = $__require('11a'), + dereference = $__require('13d'), + util = $__require('ea'), + url = $__require('eb'), + maybe = $__require('11c'), + ono = $__require('de'); module.exports = $RefParser; - module.exports.YAML = $__require('113'); + module.exports.YAML = $__require('114'); function $RefParser() { this.schema = null; this.$refs = new $Refs(); @@ -29365,22 +30023,22 @@ $__System.registerDynamic("13b", ["111", "e4", "e8", "116", "115", "117", "119", callback: callback }; } - })($__require('e7').Buffer); + })($__require('e8').Buffer); global.define = __define; return module.exports; }); -$__System.registerDynamic("13d", ["13b"], true, function($__require, exports, module) { +$__System.registerDynamic("13e", ["13c"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; - module.exports = $__require('13b'); + module.exports = $__require('13c'); global.define = __define; return module.exports; }); -$__System.registerDynamic("116", ["118", "e9", "e7"], true, function($__require, exports, module) { +$__System.registerDynamic("117", ["119", "ea", "e8"], true, function($__require, exports, module) { ; var global = this, __define = global.define; @@ -29388,8 +30046,8 @@ $__System.registerDynamic("116", ["118", "e9", "e7"], true, function($__require, (function(Buffer) { 'use strict'; module.exports = $Ref; - var Pointer = $__require('118'), - util = $__require('e9'); + var Pointer = $__require('119'), + util = $__require('ea'); function $Ref($refs, path) { path = util.path.stripHash(path); $refs._$refs[path] = this; @@ -29449,12 +30107,12 @@ $__System.registerDynamic("116", ["118", "e9", "e7"], true, function($__require, } } }; - })($__require('e7').Buffer); + })($__require('e8').Buffer); global.define = __define; return module.exports; }); -$__System.registerDynamic("13e", [], true, function($__require, exports, module) { +$__System.registerDynamic("13f", [], true, function($__require, exports, module) { ; var global = this, __define = global.define; @@ -29560,17 +30218,17 @@ $__System.registerDynamic("13e", [], true, function($__require, exports, module) return module.exports; }); -$__System.registerDynamic("13f", ["13e"], true, function($__require, exports, module) { +$__System.registerDynamic("140", ["13f"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; - module.exports = $__require('13e'); + module.exports = $__require('13f'); global.define = __define; return module.exports; }); -$__System.registerDynamic("140", [], true, function($__require, exports, module) { +$__System.registerDynamic("141", [], true, function($__require, exports, module) { ; var global = this, __define = global.define; @@ -29655,17 +30313,17 @@ $__System.registerDynamic("140", [], true, function($__require, exports, module) return module.exports; }); -$__System.registerDynamic("141", ["140"], true, function($__require, exports, module) { +$__System.registerDynamic("142", ["141"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; - module.exports = $__require('140'); + module.exports = $__require('141'); global.define = __define; return module.exports; }); -$__System.registerDynamic("142", [], true, function($__require, exports, module) { +$__System.registerDynamic("143", [], true, function($__require, exports, module) { ; var global = this, __define = global.define; @@ -29678,25 +30336,25 @@ $__System.registerDynamic("142", [], true, function($__require, exports, module) return module.exports; }); -$__System.registerDynamic("143", ["142"], true, function($__require, exports, module) { +$__System.registerDynamic("144", ["143"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; - module.exports = $__require('142'); + module.exports = $__require('143'); global.define = __define; return module.exports; }); -$__System.registerDynamic("144", ["13f", "141", "143"], true, function($__require, exports, module) { +$__System.registerDynamic("145", ["140", "142", "144"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var base64 = $__require('13f'); - var ieee754 = $__require('141'); - var isArray = $__require('143'); + var base64 = $__require('140'); + var ieee754 = $__require('142'); + var isArray = $__require('144'); exports.Buffer = Buffer; exports.SlowBuffer = SlowBuffer; exports.INSPECT_MAX_BYTES = 50; @@ -30993,37 +31651,37 @@ $__System.registerDynamic("144", ["13f", "141", "143"], true, function($__requir return module.exports; }); -$__System.registerDynamic("145", ["144"], true, function($__require, exports, module) { - ; - var global = this, - __define = global.define; - global.define = undefined; - module.exports = $__require('144'); - global.define = __define; - return module.exports; -}); - $__System.registerDynamic("146", ["145"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; - module.exports = $__System._nodeRequire ? $__System._nodeRequire('buffer') : $__require('145'); + module.exports = $__require('145'); global.define = __define; return module.exports; }); -$__System.registerDynamic("e7", ["146"], true, function($__require, exports, module) { +$__System.registerDynamic("147", ["146"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; - module.exports = $__require('146'); + module.exports = $__System._nodeRequire ? $__System._nodeRequire('buffer') : $__require('146'); global.define = __define; return module.exports; }); -$__System.registerDynamic("118", ["116", "e9", "ea", "dd", "e7"], true, function($__require, exports, module) { +$__System.registerDynamic("e8", ["147"], true, function($__require, exports, module) { + ; + var global = this, + __define = global.define; + global.define = undefined; + module.exports = $__require('147'); + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("119", ["117", "ea", "eb", "de", "e8"], true, function($__require, exports, module) { ; var global = this, __define = global.define; @@ -31031,10 +31689,10 @@ $__System.registerDynamic("118", ["116", "e9", "ea", "dd", "e7"], true, function (function(Buffer) { 'use strict'; module.exports = Pointer; - var $Ref = $__require('116'), - util = $__require('e9'), - url = $__require('ea'), - ono = $__require('dd'), + var $Ref = $__require('117'), + util = $__require('ea'), + url = $__require('eb'), + ono = $__require('de'), slashes = /\//g, tildes = /~/g, escapedSlash = /~1/g, @@ -31139,12 +31797,12 @@ $__System.registerDynamic("118", ["116", "e9", "ea", "dd", "e7"], true, function } return value; } - })($__require('e7').Buffer); + })($__require('e8').Buffer); global.define = __define; return module.exports; }); -$__System.registerDynamic("147", [], true, function($__require, exports, module) { +$__System.registerDynamic("148", [], true, function($__require, exports, module) { ; var global = this, __define = global.define; @@ -31231,17 +31889,17 @@ $__System.registerDynamic("147", [], true, function($__require, exports, module) return module.exports; }); -$__System.registerDynamic("148", ["147"], true, function($__require, exports, module) { +$__System.registerDynamic("149", ["148"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; - module.exports = $__require('147'); + module.exports = $__require('148'); global.define = __define; return module.exports; }); -$__System.registerDynamic("149", ["148"], true, function($__require, exports, module) { +$__System.registerDynamic("14a", ["149"], true, function($__require, exports, module) { ; var global = this, __define = global.define; @@ -31251,7 +31909,7 @@ $__System.registerDynamic("149", ["148"], true, function($__require, exports, mo exports.disable = disable; exports.enable = enable; exports.enabled = enabled; - exports.humanize = $__require('148'); + exports.humanize = $__require('149'); exports.names = []; exports.skips = []; exports.formatters = {}; @@ -31347,12 +32005,12 @@ $__System.registerDynamic("149", ["148"], true, function($__require, exports, mo return module.exports; }); -$__System.registerDynamic("14a", ["149"], true, function($__require, exports, module) { +$__System.registerDynamic("14b", ["14a"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; - exports = module.exports = $__require('149'); + exports = module.exports = $__require('14a'); exports.log = log; exports.formatArgs = formatArgs; exports.save = save; @@ -31416,17 +32074,17 @@ $__System.registerDynamic("14a", ["149"], true, function($__require, exports, mo return module.exports; }); -$__System.registerDynamic("e1", ["14a"], true, function($__require, exports, module) { +$__System.registerDynamic("e2", ["14b"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; - module.exports = $__require('14a'); + module.exports = $__require('14b'); global.define = __define; return module.exports; }); -$__System.registerDynamic("14b", ["38"], true, function($__require, exports, module) { +$__System.registerDynamic("14c", ["37"], true, function($__require, exports, module) { ; var global = this, __define = global.define; @@ -31503,19 +32161,19 @@ $__System.registerDynamic("14b", ["38"], true, function($__require, exports, mod } return ''; }; - })($__require('38')); + })($__require('37')); global.define = __define; return module.exports; }); -$__System.registerDynamic("e9", ["e1", "14b"], true, function($__require, exports, module) { +$__System.registerDynamic("ea", ["e2", "14c"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var debug = $__require('e1'), - path = $__require('14b'); + var debug = $__require('e2'), + path = $__require('14c'); exports.debug = debug('json-schema-ref-parser'); exports.path = path; exports.dereference = function($ref, resolvedValue) { @@ -31540,7 +32198,7 @@ $__System.registerDynamic("e9", ["e1", "14b"], true, function($__require, export return module.exports; }); -$__System.registerDynamic("14c", [], true, function($__require, exports, module) { +$__System.registerDynamic("14d", [], true, function($__require, exports, module) { ; var global = this, __define = global.define; @@ -31552,7 +32210,7 @@ $__System.registerDynamic("14c", [], true, function($__require, exports, module) return module.exports; }); -$__System.registerDynamic("14d", [], true, function($__require, exports, module) { +$__System.registerDynamic("14e", [], true, function($__require, exports, module) { ; var global = this, __define = global.define; @@ -31580,17 +32238,17 @@ $__System.registerDynamic("14d", [], true, function($__require, exports, module) return module.exports; }); -$__System.registerDynamic("100", ["14d"], true, function($__require, exports, module) { +$__System.registerDynamic("101", ["14e"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; - module.exports = $__require('14d'); + module.exports = $__require('14e'); global.define = __define; return module.exports; }); -$__System.registerDynamic("14e", ["14c", "100", "38"], true, function($__require, exports, module) { +$__System.registerDynamic("14f", ["14d", "101", "37"], true, function($__require, exports, module) { ; var global = this, __define = global.define; @@ -31987,7 +32645,7 @@ $__System.registerDynamic("14e", ["14c", "100", "38"], true, function($__require return arg === null || typeof arg === 'boolean' || typeof arg === 'number' || typeof arg === 'string' || typeof arg === 'symbol' || typeof arg === 'undefined'; } exports.isPrimitive = isPrimitive; - exports.isBuffer = $__require('14c'); + exports.isBuffer = $__require('14d'); function objectToString(o) { return Object.prototype.toString.call(o); } @@ -32003,7 +32661,7 @@ $__System.registerDynamic("14e", ["14c", "100", "38"], true, function($__require exports.log = function() { console.log('%s - %s', timestamp(), exports.format.apply(exports, arguments)); }; - exports.inherits = $__require('100'); + exports.inherits = $__require('101'); exports._extend = function(origin, add) { if (!add || !isObject(add)) return origin; @@ -32017,17 +32675,7 @@ $__System.registerDynamic("14e", ["14c", "100", "38"], true, function($__require function hasOwnProperty(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); } - })($__require('38')); - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("14f", ["14e"], true, function($__require, exports, module) { - ; - var global = this, - __define = global.define; - global.define = undefined; - module.exports = $__require('14e'); + })($__require('37')); global.define = __define; return module.exports; }); @@ -32037,28 +32685,38 @@ $__System.registerDynamic("150", ["14f"], true, function($__require, exports, mo var global = this, __define = global.define; global.define = undefined; - module.exports = $__System._nodeRequire ? $__System._nodeRequire('util') : $__require('14f'); + module.exports = $__require('14f'); global.define = __define; return module.exports; }); -$__System.registerDynamic("e2", ["150"], true, function($__require, exports, module) { +$__System.registerDynamic("151", ["150"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; - module.exports = $__require('150'); + module.exports = $__System._nodeRequire ? $__System._nodeRequire('util') : $__require('150'); global.define = __define; return module.exports; }); -$__System.registerDynamic("151", ["e2"], true, function($__require, exports, module) { +$__System.registerDynamic("e3", ["151"], true, function($__require, exports, module) { + ; + var global = this, + __define = global.define; + global.define = undefined; + module.exports = $__require('151'); + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("152", ["e3"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var util = $__require('e2'), + var util = $__require('e3'), slice = Array.prototype.slice, vendorSpecificErrorProperties = ['name', 'message', 'description', 'number', 'fileName', 'lineNumber', 'columnNumber', 'sourceURL', 'line', 'column', 'stack']; module.exports = create(Error); @@ -32141,17 +32799,17 @@ $__System.registerDynamic("151", ["e2"], true, function($__require, exports, mod return module.exports; }); -$__System.registerDynamic("dd", ["151"], true, function($__require, exports, module) { +$__System.registerDynamic("de", ["152"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; - module.exports = $__require('151'); + module.exports = $__require('152'); global.define = __define; return module.exports; }); -$__System.registerDynamic("152", ["38"], true, function($__require, exports, module) { +$__System.registerDynamic("153", ["37"], true, function($__require, exports, module) { ; var global = this, __define = global.define; @@ -32435,22 +33093,22 @@ $__System.registerDynamic("152", ["38"], true, function($__require, exports, mod root.punycode = punycode; } }(this)); - })($__require('38')); + })($__require('37')); global.define = __define; return module.exports; }); -$__System.registerDynamic("153", ["152"], true, function($__require, exports, module) { +$__System.registerDynamic("154", ["153"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; - module.exports = $__require('152'); + module.exports = $__require('153'); global.define = __define; return module.exports; }); -$__System.registerDynamic("154", [], true, function($__require, exports, module) { +$__System.registerDynamic("155", [], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -32506,7 +33164,7 @@ $__System.registerDynamic("154", [], true, function($__require, exports, module) return module.exports; }); -$__System.registerDynamic("155", [], true, function($__require, exports, module) { +$__System.registerDynamic("156", [], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -32550,34 +33208,34 @@ $__System.registerDynamic("155", [], true, function($__require, exports, module) return module.exports; }); -$__System.registerDynamic("156", ["154", "155"], true, function($__require, exports, module) { +$__System.registerDynamic("157", ["155", "156"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - exports.decode = exports.parse = $__require('154'); - exports.encode = exports.stringify = $__require('155'); + exports.decode = exports.parse = $__require('155'); + exports.encode = exports.stringify = $__require('156'); global.define = __define; return module.exports; }); -$__System.registerDynamic("157", ["156"], true, function($__require, exports, module) { +$__System.registerDynamic("158", ["157"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; - module.exports = $__require('156'); + module.exports = $__require('157'); global.define = __define; return module.exports; }); -$__System.registerDynamic("158", ["153", "157"], true, function($__require, exports, module) { +$__System.registerDynamic("159", ["154", "158"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; - var punycode = $__require('153'); + var punycode = $__require('154'); exports.parse = urlParse; exports.resolve = urlResolve; exports.resolveObject = urlResolveObject; @@ -32627,7 +33285,7 @@ $__System.registerDynamic("158", ["153", "157"], true, function($__require, expo 'gopher:': true, 'file:': true }, - querystring = $__require('157'); + querystring = $__require('158'); function urlParse(url, parseQueryString, slashesDenoteHost) { if (url && isObject(url) && url instanceof Url) return url; @@ -33066,47 +33724,47 @@ $__System.registerDynamic("158", ["153", "157"], true, function($__require, expo return module.exports; }); -$__System.registerDynamic("159", ["158"], true, function($__require, exports, module) { - ; - var global = this, - __define = global.define; - global.define = undefined; - module.exports = $__require('158'); - global.define = __define; - return module.exports; -}); - $__System.registerDynamic("15a", ["159"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; - module.exports = $__System._nodeRequire ? $__System._nodeRequire('url') : $__require('159'); + module.exports = $__require('159'); global.define = __define; return module.exports; }); -$__System.registerDynamic("ea", ["15a"], true, function($__require, exports, module) { +$__System.registerDynamic("15b", ["15a"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; - module.exports = $__require('15a'); + module.exports = $__System._nodeRequire ? $__System._nodeRequire('url') : $__require('15a'); global.define = __define; return module.exports; }); -$__System.registerDynamic("13c", ["116", "118", "e9", "dd", "ea"], true, function($__require, exports, module) { +$__System.registerDynamic("eb", ["15b"], true, function($__require, exports, module) { + ; + var global = this, + __define = global.define; + global.define = undefined; + module.exports = $__require('15b'); + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("13d", ["117", "119", "ea", "de", "eb"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var $Ref = $__require('116'), - Pointer = $__require('118'), - util = $__require('e9'), - ono = $__require('dd'), - url = $__require('ea'); + var $Ref = $__require('117'), + Pointer = $__require('119'), + util = $__require('ea'), + ono = $__require('de'), + url = $__require('eb'); module.exports = dereference; function dereference(parser, options) { util.debug('Dereferencing $ref pointers in %s', parser.$refs._basePath); @@ -33172,21 +33830,21 @@ $__System.registerDynamic("13c", ["116", "118", "e9", "dd", "ea"], true, functio return module.exports; }); -$__System.registerDynamic("15b", ["db", "e0", "dc", "e3", "e5", "11b", "dd", "13d", "13c"], true, function($__require, exports, module) { +$__System.registerDynamic("15c", ["dc", "e1", "dd", "e4", "e6", "11c", "de", "13e", "13d"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var validateSchema = $__require('db'), - validateSpec = $__require('e0'), - util = $__require('dc'), - Options = $__require('e3'), - Promise = $__require('e5'), - maybe = $__require('11b'), - ono = $__require('dd'), - $RefParser = $__require('13d'), - dereference = $__require('13c'); + var validateSchema = $__require('dc'), + validateSpec = $__require('e1'), + util = $__require('dd'), + Options = $__require('e4'), + Promise = $__require('e6'), + maybe = $__require('11c'), + ono = $__require('de'), + $RefParser = $__require('13e'), + dereference = $__require('13d'); module.exports = SwaggerParser; function SwaggerParser() { $RefParser.apply(this, arguments); @@ -33264,17 +33922,17 @@ $__System.registerDynamic("15b", ["db", "e0", "dc", "e3", "e5", "11b", "dd", "13 return module.exports; }); -$__System.registerDynamic("15c", ["15b"], true, function($__require, exports, module) { +$__System.registerDynamic("15d", ["15c"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; - module.exports = $__require('15b'); + module.exports = $__require('15c'); global.define = __define; return module.exports; }); -$__System.registerDynamic("b8", [], true, function($__require, exports, module) { +$__System.registerDynamic("b9", [], true, function($__require, exports, module) { ; var global = this, __define = global.define; @@ -33284,13 +33942,13 @@ $__System.registerDynamic("b8", [], true, function($__require, exports, module) return module.exports; }); -$__System.registerDynamic("15d", ["15e", "15f"], true, function($__require, exports, module) { +$__System.registerDynamic("15e", ["15f", "160"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; - var toInteger = $__require('15e'), - defined = $__require('15f'); + var toInteger = $__require('15f'), + defined = $__require('160'); module.exports = function(TO_STRING) { return function(that, pos) { var s = String(defined(that)), @@ -33308,14 +33966,14 @@ $__System.registerDynamic("15d", ["15e", "15f"], true, function($__require, expo return module.exports; }); -$__System.registerDynamic("34", ["15d", "160"], true, function($__require, exports, module) { +$__System.registerDynamic("33", ["15e", "161"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var $at = $__require('15d')(true); - $__require('160')(String, 'String', function(iterated) { + var $at = $__require('15e')(true); + $__require('161')(String, 'String', function(iterated) { this._t = String(iterated); this._i = 0; }, function() { @@ -33338,7 +33996,7 @@ $__System.registerDynamic("34", ["15d", "160"], true, function($__require, expor return module.exports; }); -$__System.registerDynamic("161", [], true, function($__require, exports, module) { +$__System.registerDynamic("162", [], true, function($__require, exports, module) { ; var global = this, __define = global.define; @@ -33348,17 +34006,17 @@ $__System.registerDynamic("161", [], true, function($__require, exports, module) return module.exports; }); -$__System.registerDynamic("162", ["161", "163", "30", "164", "160"], true, function($__require, exports, module) { +$__System.registerDynamic("163", ["162", "164", "2f", "165", "161"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var addToUnscopables = $__require('161'), - step = $__require('163'), - Iterators = $__require('30'), - toIObject = $__require('164'); - module.exports = $__require('160')(Array, 'Array', function(iterated, kind) { + var addToUnscopables = $__require('162'), + step = $__require('164'), + Iterators = $__require('2f'), + toIObject = $__require('165'); + module.exports = $__require('161')(Array, 'Array', function(iterated, kind) { this._t = toIObject(iterated); this._i = 0; this._k = kind; @@ -33384,19 +34042,19 @@ $__System.registerDynamic("162", ["161", "163", "30", "164", "160"], true, funct return module.exports; }); -$__System.registerDynamic("33", ["162", "30"], true, function($__require, exports, module) { +$__System.registerDynamic("32", ["163", "2f"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; - $__require('162'); - var Iterators = $__require('30'); + $__require('163'); + var Iterators = $__require('2f'); Iterators.NodeList = Iterators.HTMLCollection = Iterators.Array; global.define = __define; return module.exports; }); -$__System.registerDynamic("af", [], true, function($__require, exports, module) { +$__System.registerDynamic("b0", [], true, function($__require, exports, module) { ; var global = this, __define = global.define; @@ -33406,17 +34064,17 @@ $__System.registerDynamic("af", [], true, function($__require, exports, module) return module.exports; }); -$__System.registerDynamic("165", ["9d", "166", "b5", "167", "2f"], true, function($__require, exports, module) { +$__System.registerDynamic("166", ["af", "167", "b6", "168", "2e"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var $ = $__require('9d'), - descriptor = $__require('166'), - setToStringTag = $__require('b5'), + var $ = $__require('af'), + descriptor = $__require('167'), + setToStringTag = $__require('b6'), IteratorPrototype = {}; - $__require('167')(IteratorPrototype, $__require('2f')('iterator'), function() { + $__require('168')(IteratorPrototype, $__require('2e')('iterator'), function() { return this; }); module.exports = function(Constructor, NAME, next) { @@ -33427,22 +34085,22 @@ $__System.registerDynamic("165", ["9d", "166", "b5", "167", "2f"], true, functio return module.exports; }); -$__System.registerDynamic("160", ["af", "93", "168", "167", "169", "30", "165", "b5", "9d", "2f"], true, function($__require, exports, module) { +$__System.registerDynamic("161", ["b0", "99", "169", "168", "16a", "2f", "166", "b6", "af", "2e"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var LIBRARY = $__require('af'), - $export = $__require('93'), - redefine = $__require('168'), - hide = $__require('167'), - has = $__require('169'), - Iterators = $__require('30'), - $iterCreate = $__require('165'), - setToStringTag = $__require('b5'), - getProto = $__require('9d').getProto, - ITERATOR = $__require('2f')('iterator'), + var LIBRARY = $__require('b0'), + $export = $__require('99'), + redefine = $__require('169'), + hide = $__require('168'), + has = $__require('16a'), + Iterators = $__require('2f'), + $iterCreate = $__require('166'), + setToStringTag = $__require('b6'), + getProto = $__require('af').getProto, + ITERATOR = $__require('2e')('iterator'), BUGGY = !([].keys && 'next' in [].keys()), FF_ITERATOR = '@@iterator', KEYS = 'keys', @@ -33514,7 +34172,7 @@ $__System.registerDynamic("160", ["af", "93", "168", "167", "169", "30", "165", return module.exports; }); -$__System.registerDynamic("163", [], true, function($__require, exports, module) { +$__System.registerDynamic("164", [], true, function($__require, exports, module) { ; var global = this, __define = global.define; @@ -33529,16 +34187,16 @@ $__System.registerDynamic("163", [], true, function($__require, exports, module) return module.exports; }); -$__System.registerDynamic("b6", ["31", "9d", "b3", "2f"], true, function($__require, exports, module) { +$__System.registerDynamic("b7", ["30", "af", "b4", "2e"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var core = $__require('31'), - $ = $__require('9d'), - DESCRIPTORS = $__require('b3'), - SPECIES = $__require('2f')('species'); + var core = $__require('30'), + $ = $__require('af'), + DESCRIPTORS = $__require('b4'), + SPECIES = $__require('2e')('species'); module.exports = function(KEY) { var C = core[KEY]; if (DESCRIPTORS && C && !C[SPECIES]) @@ -33553,26 +34211,26 @@ $__System.registerDynamic("b6", ["31", "9d", "b3", "2f"], true, function($__requ return module.exports; }); -$__System.registerDynamic("bd", ["9d", "167", "b4", "92", "b0", "15f", "b1", "160", "163", "16a", "169", "aa", "b6", "b3"], true, function($__require, exports, module) { +$__System.registerDynamic("be", ["af", "168", "b5", "98", "b1", "160", "b2", "161", "164", "16b", "16a", "aa", "b7", "b4"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var $ = $__require('9d'), - hide = $__require('167'), - redefineAll = $__require('b4'), - ctx = $__require('92'), - strictNew = $__require('b0'), - defined = $__require('15f'), - forOf = $__require('b1'), - $iterDefine = $__require('160'), - step = $__require('163'), - ID = $__require('16a')('id'), - $has = $__require('169'), + var $ = $__require('af'), + hide = $__require('168'), + redefineAll = $__require('b5'), + ctx = $__require('98'), + strictNew = $__require('b1'), + defined = $__require('160'), + forOf = $__require('b2'), + $iterDefine = $__require('161'), + step = $__require('164'), + ID = $__require('16b')('id'), + $has = $__require('16a'), isObject = $__require('aa'), - setSpecies = $__require('b6'), - DESCRIPTORS = $__require('b3'), + setSpecies = $__require('b7'), + DESCRIPTORS = $__require('b4'), isExtensible = Object.isExtensible || isObject, SIZE = DESCRIPTORS ? '_s' : 'size', id = 0; @@ -33715,7 +34373,7 @@ $__System.registerDynamic("bd", ["9d", "167", "b4", "92", "b0", "15f", "b1", "16 return module.exports; }); -$__System.registerDynamic("166", [], true, function($__require, exports, module) { +$__System.registerDynamic("167", [], true, function($__require, exports, module) { ; var global = this, __define = global.define; @@ -33732,14 +34390,14 @@ $__System.registerDynamic("166", [], true, function($__require, exports, module) return module.exports; }); -$__System.registerDynamic("167", ["9d", "166", "b3"], true, function($__require, exports, module) { +$__System.registerDynamic("168", ["af", "167", "b4"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; - var $ = $__require('9d'), - createDesc = $__require('166'); - module.exports = $__require('b3') ? function(object, key, value) { + var $ = $__require('af'), + createDesc = $__require('167'); + module.exports = $__require('b4') ? function(object, key, value) { return $.setDesc(object, key, createDesc(1, value)); } : function(object, key, value) { object[key] = value; @@ -33749,22 +34407,22 @@ $__System.registerDynamic("167", ["9d", "166", "b3"], true, function($__require, return module.exports; }); -$__System.registerDynamic("168", ["167"], true, function($__require, exports, module) { +$__System.registerDynamic("169", ["168"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; - module.exports = $__require('167'); + module.exports = $__require('168'); global.define = __define; return module.exports; }); -$__System.registerDynamic("b4", ["168"], true, function($__require, exports, module) { +$__System.registerDynamic("b5", ["169"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; - var redefine = $__require('168'); + var redefine = $__require('169'); module.exports = function(target, src) { for (var key in src) redefine(target, key, src[key]); @@ -33774,7 +34432,7 @@ $__System.registerDynamic("b4", ["168"], true, function($__require, exports, mod return module.exports; }); -$__System.registerDynamic("b0", [], true, function($__require, exports, module) { +$__System.registerDynamic("b1", [], true, function($__require, exports, module) { ; var global = this, __define = global.define; @@ -33788,7 +34446,7 @@ $__System.registerDynamic("b0", [], true, function($__require, exports, module) return module.exports; }); -$__System.registerDynamic("169", [], true, function($__require, exports, module) { +$__System.registerDynamic("16a", [], true, function($__require, exports, module) { ; var global = this, __define = global.define; @@ -33801,14 +34459,14 @@ $__System.registerDynamic("169", [], true, function($__require, exports, module) return module.exports; }); -$__System.registerDynamic("b5", ["9d", "169", "2f"], true, function($__require, exports, module) { +$__System.registerDynamic("b6", ["af", "16a", "2e"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; - var def = $__require('9d').setDesc, - has = $__require('169'), - TAG = $__require('2f')('toStringTag'); + var def = $__require('af').setDesc, + has = $__require('16a'), + TAG = $__require('2e')('toStringTag'); module.exports = function(it, tag, stat) { if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { @@ -33820,12 +34478,12 @@ $__System.registerDynamic("b5", ["9d", "169", "2f"], true, function($__require, return module.exports; }); -$__System.registerDynamic("b3", ["9f"], true, function($__require, exports, module) { +$__System.registerDynamic("b4", ["16c"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; - module.exports = !$__require('9f')(function() { + module.exports = !$__require('16c')(function() { return Object.defineProperty({}, 'a', {get: function() { return 7; }}).a != 7; @@ -33834,23 +34492,23 @@ $__System.registerDynamic("b3", ["9f"], true, function($__require, exports, modu return module.exports; }); -$__System.registerDynamic("be", ["9d", "a8", "93", "9f", "167", "b4", "b1", "b0", "aa", "b5", "b3"], true, function($__require, exports, module) { +$__System.registerDynamic("bf", ["af", "a8", "99", "16c", "168", "b5", "b2", "b1", "aa", "b6", "b4"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var $ = $__require('9d'), + var $ = $__require('af'), global = $__require('a8'), - $export = $__require('93'), - fails = $__require('9f'), - hide = $__require('167'), - redefineAll = $__require('b4'), - forOf = $__require('b1'), - strictNew = $__require('b0'), + $export = $__require('99'), + fails = $__require('16c'), + hide = $__require('168'), + redefineAll = $__require('b5'), + forOf = $__require('b2'), + strictNew = $__require('b1'), isObject = $__require('aa'), - setToStringTag = $__require('b5'), - DESCRIPTORS = $__require('b3'); + setToStringTag = $__require('b6'), + DESCRIPTORS = $__require('b4'); module.exports = function(NAME, wrapper, methods, common, IS_MAP, IS_WEAK) { var Base = global[NAME], C = Base, @@ -33895,14 +34553,14 @@ $__System.registerDynamic("be", ["9d", "a8", "93", "9f", "167", "b4", "b1", "b0" return module.exports; }); -$__System.registerDynamic("16b", ["bd", "be"], true, function($__require, exports, module) { +$__System.registerDynamic("16d", ["be", "bf"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var strong = $__require('bd'); - $__require('be')('Set', function(get) { + var strong = $__require('be'); + $__require('bf')('Set', function(get) { return function Set() { return get(this, arguments.length > 0 ? arguments[0] : undefined); }; @@ -33913,7 +34571,7 @@ $__System.registerDynamic("16b", ["bd", "be"], true, function($__require, export return module.exports; }); -$__System.registerDynamic("95", ["a4"], true, function($__require, exports, module) { +$__System.registerDynamic("9b", ["a4"], true, function($__require, exports, module) { ; var global = this, __define = global.define; @@ -33933,13 +34591,13 @@ $__System.registerDynamic("95", ["a4"], true, function($__require, exports, modu return module.exports; }); -$__System.registerDynamic("96", ["30", "2f"], true, function($__require, exports, module) { +$__System.registerDynamic("9c", ["2f", "2e"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; - var Iterators = $__require('30'), - ITERATOR = $__require('2f')('iterator'), + var Iterators = $__require('2f'), + ITERATOR = $__require('2e')('iterator'), ArrayProto = Array.prototype; module.exports = function(it) { return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it); @@ -33948,7 +34606,7 @@ $__System.registerDynamic("96", ["30", "2f"], true, function($__require, exports return module.exports; }); -$__System.registerDynamic("15e", [], true, function($__require, exports, module) { +$__System.registerDynamic("15f", [], true, function($__require, exports, module) { ; var global = this, __define = global.define; @@ -33962,12 +34620,12 @@ $__System.registerDynamic("15e", [], true, function($__require, exports, module) return module.exports; }); -$__System.registerDynamic("97", ["15e"], true, function($__require, exports, module) { +$__System.registerDynamic("9d", ["15f"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; - var toInteger = $__require('15e'), + var toInteger = $__require('15f'), min = Math.min; module.exports = function(it) { return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; @@ -33976,7 +34634,7 @@ $__System.registerDynamic("97", ["15e"], true, function($__require, exports, mod return module.exports; }); -$__System.registerDynamic("30", [], true, function($__require, exports, module) { +$__System.registerDynamic("2f", [], true, function($__require, exports, module) { ; var global = this, __define = global.define; @@ -33986,15 +34644,15 @@ $__System.registerDynamic("30", [], true, function($__require, exports, module) return module.exports; }); -$__System.registerDynamic("98", ["2e", "2f", "30", "31"], true, function($__require, exports, module) { +$__System.registerDynamic("9e", ["2d", "2e", "2f", "30"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; - var classof = $__require('2e'), - ITERATOR = $__require('2f')('iterator'), - Iterators = $__require('30'); - module.exports = $__require('31').getIteratorMethod = function(it) { + var classof = $__require('2d'), + ITERATOR = $__require('2e')('iterator'), + Iterators = $__require('2f'); + module.exports = $__require('30').getIteratorMethod = function(it) { if (it != undefined) return it[ITERATOR] || it['@@iterator'] || Iterators[classof(it)]; }; @@ -34002,17 +34660,17 @@ $__System.registerDynamic("98", ["2e", "2f", "30", "31"], true, function($__requ return module.exports; }); -$__System.registerDynamic("b1", ["92", "95", "96", "a4", "97", "98"], true, function($__require, exports, module) { +$__System.registerDynamic("b2", ["98", "9b", "9c", "a4", "9d", "9e"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; - var ctx = $__require('92'), - call = $__require('95'), - isArrayIter = $__require('96'), + var ctx = $__require('98'), + call = $__require('9b'), + isArrayIter = $__require('9c'), anObject = $__require('a4'), - toLength = $__require('97'), - getIterFn = $__require('98'); + toLength = $__require('9d'), + getIterFn = $__require('9e'); module.exports = function(iterable, entries, fn, that) { var iterFn = getIterFn(iterable), f = ctx(fn, that, entries ? 2 : 1), @@ -34035,7 +34693,7 @@ $__System.registerDynamic("b1", ["92", "95", "96", "a4", "97", "98"], true, func return module.exports; }); -$__System.registerDynamic("16c", ["a8"], true, function($__require, exports, module) { +$__System.registerDynamic("16e", ["a8"], true, function($__require, exports, module) { ; var global = this, __define = global.define; @@ -34050,7 +34708,7 @@ $__System.registerDynamic("16c", ["a8"], true, function($__require, exports, mod return module.exports; }); -$__System.registerDynamic("16a", [], true, function($__require, exports, module) { +$__System.registerDynamic("16b", [], true, function($__require, exports, module) { ; var global = this, __define = global.define; @@ -34064,13 +34722,13 @@ $__System.registerDynamic("16a", [], true, function($__require, exports, module) return module.exports; }); -$__System.registerDynamic("2f", ["16c", "16a", "a8"], true, function($__require, exports, module) { +$__System.registerDynamic("2e", ["16e", "16b", "a8"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; - var store = $__require('16c')('wks'), - uid = $__require('16a'), + var store = $__require('16e')('wks'), + uid = $__require('16b'), Symbol = $__require('a8').Symbol; module.exports = function(name) { return store[name] || (store[name] = Symbol && Symbol[name] || (Symbol || uid)('Symbol.' + name)); @@ -34079,13 +34737,13 @@ $__System.registerDynamic("2f", ["16c", "16a", "a8"], true, function($__require, return module.exports; }); -$__System.registerDynamic("2e", ["ac", "2f"], true, function($__require, exports, module) { +$__System.registerDynamic("2d", ["ac", "2e"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; var cof = $__require('ac'), - TAG = $__require('2f')('toStringTag'), + TAG = $__require('2e')('toStringTag'), ARG = cof(function() { return arguments; }()) == 'Arguments'; @@ -34099,13 +34757,13 @@ $__System.registerDynamic("2e", ["ac", "2f"], true, function($__require, exports return module.exports; }); -$__System.registerDynamic("c0", ["b1", "2e"], true, function($__require, exports, module) { +$__System.registerDynamic("c1", ["b2", "2d"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; - var forOf = $__require('b1'), - classof = $__require('2e'); + var forOf = $__require('b2'), + classof = $__require('2d'); module.exports = function(NAME) { return function toJSON() { if (classof(this) != NAME) @@ -34119,46 +34777,46 @@ $__System.registerDynamic("c0", ["b1", "2e"], true, function($__require, exports return module.exports; }); -$__System.registerDynamic("16d", ["93", "c0"], true, function($__require, exports, module) { +$__System.registerDynamic("16f", ["99", "c1"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; - var $export = $__require('93'); - $export($export.P, 'Set', {toJSON: $__require('c0')('Set')}); + var $export = $__require('99'); + $export($export.P, 'Set', {toJSON: $__require('c1')('Set')}); global.define = __define; return module.exports; }); -$__System.registerDynamic("16e", ["b8", "34", "33", "16b", "16d", "31"], true, function($__require, exports, module) { +$__System.registerDynamic("170", ["b9", "33", "32", "16d", "16f", "30"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; - $__require('b8'); - $__require('34'); + $__require('b9'); $__require('33'); - $__require('16b'); + $__require('32'); $__require('16d'); - module.exports = $__require('31').Set; + $__require('16f'); + module.exports = $__require('30').Set; global.define = __define; return module.exports; }); -$__System.registerDynamic("20", ["16e"], true, function($__require, exports, module) { +$__System.registerDynamic("95", ["170"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; module.exports = { - "default": $__require('16e'), + "default": $__require('170'), __esModule: true }; global.define = __define; return module.exports; }); -$__System.register('16f', ['20'], function (_export) { +$__System.register('171', ['95'], function (_export) { var _Set, methods; return { @@ -34174,8 +34832,8 @@ $__System.register('16f', ['20'], function (_export) { } }; }); -$__System.register('1d', ['6', '7', '28', '36', 'b9', 'c2', '15c', 'c', '16f'], function (_export) { - var _createClass, _classCallCheck, _Object$keys, _getIterator, _Promise, _Map, SwaggerParser, JsonPointer, swaggerMethods, SchemaManager; +$__System.register('1f', ['8', '9', '26', '35', '171', 'ba', 'c3', '15d', 'f'], function (_export) { + var _createClass, _classCallCheck, _Object$keys, _getIterator, swaggerMethods, _Promise, _Map, SwaggerParser, JsonPointer, SchemaManager; return { setters: [function (_) { @@ -34186,16 +34844,16 @@ $__System.register('1d', ['6', '7', '28', '36', 'b9', 'c2', '15c', 'c', '16f'], _Object$keys = _3['default']; }, function (_4) { _getIterator = _4['default']; - }, function (_b9) { - _Promise = _b9['default']; - }, function (_c2) { - _Map = _c2['default']; - }, function (_c) { - SwaggerParser = _c['default']; + }, function (_5) { + swaggerMethods = _5.methods; + }, function (_ba) { + _Promise = _ba['default']; }, function (_c3) { - JsonPointer = _c3['default']; + _Map = _c3['default']; + }, function (_d) { + SwaggerParser = _d['default']; }, function (_f) { - swaggerMethods = _f.methods; + JsonPointer = _f['default']; }], execute: function () { 'use strict'; @@ -34417,7 +35075,11 @@ $__System.register('1d', ['6', '7', '28', '36', 'b9', 'c2', '15c', 'c', '16f'], } if (tagDetails['x-traitTag']) continue; if (!tagDetails.methods) tagDetails.methods = []; - tagDetails.methods.push({ pointer: methodPointer, summary: methodSummary }); + tagDetails.methods.push({ + pointer: methodPointer, + summary: methodSummary, + operationId: methodInfo.operationId + }); } } catch (err) { _didIteratorError5 = true; @@ -34531,26 +35193,13 @@ $__System.register('1d', ['6', '7', '28', '36', 'b9', 'c2', '15c', 'c', '16f'], } }; }); -$__System.registerDynamic("94", ["15f"], true, function($__require, exports, module) { +$__System.registerDynamic("172", ["9a", "173"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; - var defined = $__require('15f'); - module.exports = function(it) { - return Object(defined(it)); - }; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("170", ["94", "171"], true, function($__require, exports, module) { - ; - var global = this, - __define = global.define; - global.define = undefined; - var toObject = $__require('94'); - $__require('171')('keys', function($keys) { + var toObject = $__require('9a'); + $__require('173')('keys', function($keys) { return function keys(it) { return $keys(toObject(it)); }; @@ -34559,867 +35208,30 @@ $__System.registerDynamic("170", ["94", "171"], true, function($__require, expor return module.exports; }); -$__System.registerDynamic("172", ["170", "31"], true, function($__require, exports, module) { +$__System.registerDynamic("174", ["172", "30"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; - $__require('170'); - module.exports = $__require('31').Object.keys; + $__require('172'); + module.exports = $__require('30').Object.keys; global.define = __define; return module.exports; }); -$__System.registerDynamic("28", ["172"], true, function($__require, exports, module) { +$__System.registerDynamic("26", ["174"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; module.exports = { - "default": $__require('172'), + "default": $__require('174'), __esModule: true }; global.define = __define; return module.exports; }); -$__System.registerDynamic("173", [], true, function($__require, exports, module) { - ; - var global = this, - __define = global.define; - global.define = undefined; - "format cjs"; - ; - (function() { - var block = { - newline: /^\n+/, - code: /^( {4}[^\n]+\n*)+/, - fences: noop, - hr: /^( *[-*_]){3,} *(?:\n+|$)/, - heading: /^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/, - nptable: noop, - lheading: /^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/, - blockquote: /^( *>[^\n]+(\n(?!def)[^\n]+)*\n*)+/, - list: /^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/, - html: /^ *(?:comment *(?:\n|\s*$)|closed *(?:\n{2,}|\s*$)|closing *(?:\n{2,}|\s*$))/, - def: /^ *\[([^\]]+)\]: *]+)>?(?: +["(]([^\n]+)[")])? *(?:\n+|$)/, - table: noop, - paragraph: /^((?:[^\n]+\n?(?!hr|heading|lheading|blockquote|tag|def))+)\n*/, - text: /^[^\n]+/ - }; - block.bullet = /(?:[*+-]|\d+\.)/; - block.item = /^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/; - block.item = replace(block.item, 'gm')(/bull/g, block.bullet)(); - block.list = replace(block.list)(/bull/g, block.bullet)('hr', '\\n+(?=\\1?(?:[-*_] *){3,}(?:\\n+|$))')('def', '\\n+(?=' + block.def.source + ')')(); - block.blockquote = replace(block.blockquote)('def', block.def)(); - block._tag = '(?!(?:' + 'a|em|strong|small|s|cite|q|dfn|abbr|data|time|code' + '|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo' + '|span|br|wbr|ins|del|img)\\b)\\w+(?!:/|[^\\w\\s@]*@)\\b'; - block.html = replace(block.html)('comment', //)('closed', /<(tag)[\s\S]+?<\/\1>/)('closing', /])*?>/)(/tag/g, block._tag)(); - block.paragraph = replace(block.paragraph)('hr', block.hr)('heading', block.heading)('lheading', block.lheading)('blockquote', block.blockquote)('tag', '<' + block._tag)('def', block.def)(); - block.normal = merge({}, block); - block.gfm = merge({}, block.normal, { - fences: /^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]*?)\s*\1 *(?:\n+|$)/, - paragraph: /^/, - heading: /^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/ - }); - block.gfm.paragraph = replace(block.paragraph)('(?!', '(?!' + block.gfm.fences.source.replace('\\1', '\\2') + '|' + block.list.source.replace('\\1', '\\3') + '|')(); - block.tables = merge({}, block.gfm, { - nptable: /^ *(\S.*\|.*)\n *([-:]+ *\|[-| :]*)\n((?:.*\|.*(?:\n|$))*)\n*/, - table: /^ *\|(.+)\n *\|( *[-:]+[-| :]*)\n((?: *\|.*(?:\n|$))*)\n*/ - }); - function Lexer(options) { - this.tokens = []; - this.tokens.links = {}; - this.options = options || marked.defaults; - this.rules = block.normal; - if (this.options.gfm) { - if (this.options.tables) { - this.rules = block.tables; - } else { - this.rules = block.gfm; - } - } - } - Lexer.rules = block; - Lexer.lex = function(src, options) { - var lexer = new Lexer(options); - return lexer.lex(src); - }; - Lexer.prototype.lex = function(src) { - src = src.replace(/\r\n|\r/g, '\n').replace(/\t/g, ' ').replace(/\u00a0/g, ' ').replace(/\u2424/g, '\n'); - return this.token(src, true); - }; - Lexer.prototype.token = function(src, top, bq) { - var src = src.replace(/^ +$/gm, ''), - next, - loose, - cap, - bull, - b, - item, - space, - i, - l; - while (src) { - if (cap = this.rules.newline.exec(src)) { - src = src.substring(cap[0].length); - if (cap[0].length > 1) { - this.tokens.push({type: 'space'}); - } - } - if (cap = this.rules.code.exec(src)) { - src = src.substring(cap[0].length); - cap = cap[0].replace(/^ {4}/gm, ''); - this.tokens.push({ - type: 'code', - text: !this.options.pedantic ? cap.replace(/\n+$/, '') : cap - }); - continue; - } - if (cap = this.rules.fences.exec(src)) { - src = src.substring(cap[0].length); - this.tokens.push({ - type: 'code', - lang: cap[2], - text: cap[3] || '' - }); - continue; - } - if (cap = this.rules.heading.exec(src)) { - src = src.substring(cap[0].length); - this.tokens.push({ - type: 'heading', - depth: cap[1].length, - text: cap[2] - }); - continue; - } - if (top && (cap = this.rules.nptable.exec(src))) { - src = src.substring(cap[0].length); - item = { - type: 'table', - header: cap[1].replace(/^ *| *\| *$/g, '').split(/ *\| */), - align: cap[2].replace(/^ *|\| *$/g, '').split(/ *\| */), - cells: cap[3].replace(/\n$/, '').split('\n') - }; - for (i = 0; i < item.align.length; i++) { - if (/^ *-+: *$/.test(item.align[i])) { - item.align[i] = 'right'; - } else if (/^ *:-+: *$/.test(item.align[i])) { - item.align[i] = 'center'; - } else if (/^ *:-+ *$/.test(item.align[i])) { - item.align[i] = 'left'; - } else { - item.align[i] = null; - } - } - for (i = 0; i < item.cells.length; i++) { - item.cells[i] = item.cells[i].split(/ *\| */); - } - this.tokens.push(item); - continue; - } - if (cap = this.rules.lheading.exec(src)) { - src = src.substring(cap[0].length); - this.tokens.push({ - type: 'heading', - depth: cap[2] === '=' ? 1 : 2, - text: cap[1] - }); - continue; - } - if (cap = this.rules.hr.exec(src)) { - src = src.substring(cap[0].length); - this.tokens.push({type: 'hr'}); - continue; - } - if (cap = this.rules.blockquote.exec(src)) { - src = src.substring(cap[0].length); - this.tokens.push({type: 'blockquote_start'}); - cap = cap[0].replace(/^ *> ?/gm, ''); - this.token(cap, top, true); - this.tokens.push({type: 'blockquote_end'}); - continue; - } - if (cap = this.rules.list.exec(src)) { - src = src.substring(cap[0].length); - bull = cap[2]; - this.tokens.push({ - type: 'list_start', - ordered: bull.length > 1 - }); - cap = cap[0].match(this.rules.item); - next = false; - l = cap.length; - i = 0; - for (; i < l; i++) { - item = cap[i]; - space = item.length; - item = item.replace(/^ *([*+-]|\d+\.) +/, ''); - if (~item.indexOf('\n ')) { - space -= item.length; - item = !this.options.pedantic ? item.replace(new RegExp('^ {1,' + space + '}', 'gm'), '') : item.replace(/^ {1,4}/gm, ''); - } - if (this.options.smartLists && i !== l - 1) { - b = block.bullet.exec(cap[i + 1])[0]; - if (bull !== b && !(bull.length > 1 && b.length > 1)) { - src = cap.slice(i + 1).join('\n') + src; - i = l - 1; - } - } - loose = next || /\n\n(?!\s*$)/.test(item); - if (i !== l - 1) { - next = item.charAt(item.length - 1) === '\n'; - if (!loose) - loose = next; - } - this.tokens.push({type: loose ? 'loose_item_start' : 'list_item_start'}); - this.token(item, false, bq); - this.tokens.push({type: 'list_item_end'}); - } - this.tokens.push({type: 'list_end'}); - continue; - } - if (cap = this.rules.html.exec(src)) { - src = src.substring(cap[0].length); - this.tokens.push({ - type: this.options.sanitize ? 'paragraph' : 'html', - pre: !this.options.sanitizer && (cap[1] === 'pre' || cap[1] === 'script' || cap[1] === 'style'), - text: cap[0] - }); - continue; - } - if ((!bq && top) && (cap = this.rules.def.exec(src))) { - src = src.substring(cap[0].length); - this.tokens.links[cap[1].toLowerCase()] = { - href: cap[2], - title: cap[3] - }; - continue; - } - if (top && (cap = this.rules.table.exec(src))) { - src = src.substring(cap[0].length); - item = { - type: 'table', - header: cap[1].replace(/^ *| *\| *$/g, '').split(/ *\| */), - align: cap[2].replace(/^ *|\| *$/g, '').split(/ *\| */), - cells: cap[3].replace(/(?: *\| *)?\n$/, '').split('\n') - }; - for (i = 0; i < item.align.length; i++) { - if (/^ *-+: *$/.test(item.align[i])) { - item.align[i] = 'right'; - } else if (/^ *:-+: *$/.test(item.align[i])) { - item.align[i] = 'center'; - } else if (/^ *:-+ *$/.test(item.align[i])) { - item.align[i] = 'left'; - } else { - item.align[i] = null; - } - } - for (i = 0; i < item.cells.length; i++) { - item.cells[i] = item.cells[i].replace(/^ *\| *| *\| *$/g, '').split(/ *\| */); - } - this.tokens.push(item); - continue; - } - if (top && (cap = this.rules.paragraph.exec(src))) { - src = src.substring(cap[0].length); - this.tokens.push({ - type: 'paragraph', - text: cap[1].charAt(cap[1].length - 1) === '\n' ? cap[1].slice(0, -1) : cap[1] - }); - continue; - } - if (cap = this.rules.text.exec(src)) { - src = src.substring(cap[0].length); - this.tokens.push({ - type: 'text', - text: cap[0] - }); - continue; - } - if (src) { - throw new Error('Infinite loop on byte: ' + src.charCodeAt(0)); - } - } - return this.tokens; - }; - var inline = { - escape: /^\\([\\`*{}\[\]()#+\-.!_>])/, - autolink: /^<([^ >]+(@|:\/)[^ >]+)>/, - url: noop, - tag: /^|^<\/?\w+(?:"[^"]*"|'[^']*'|[^'">])*?>/, - link: /^!?\[(inside)\]\(href\)/, - reflink: /^!?\[(inside)\]\s*\[([^\]]*)\]/, - nolink: /^!?\[((?:\[[^\]]*\]|[^\[\]])*)\]/, - strong: /^__([\s\S]+?)__(?!_)|^\*\*([\s\S]+?)\*\*(?!\*)/, - em: /^\b_((?:[^_]|__)+?)_\b|^\*((?:\*\*|[\s\S])+?)\*(?!\*)/, - code: /^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/, - br: /^ {2,}\n(?!\s*$)/, - del: noop, - text: /^[\s\S]+?(?=[\\?(?:\s+['"]([\s\S]*?)['"])?\s*/; - inline.link = replace(inline.link)('inside', inline._inside)('href', inline._href)(); - inline.reflink = replace(inline.reflink)('inside', inline._inside)(); - inline.normal = merge({}, inline); - inline.pedantic = merge({}, inline.normal, { - strong: /^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/, - em: /^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/ - }); - inline.gfm = merge({}, inline.normal, { - escape: replace(inline.escape)('])', '~|])')(), - url: /^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/, - del: /^~~(?=\S)([\s\S]*?\S)~~/, - text: replace(inline.text)(']|', '~]|')('|', '|https?://|')() - }); - inline.breaks = merge({}, inline.gfm, { - br: replace(inline.br)('{2,}', '*')(), - text: replace(inline.gfm.text)('{2,}', '*')() - }); - function InlineLexer(links, options) { - this.options = options || marked.defaults; - this.links = links; - this.rules = inline.normal; - this.renderer = this.options.renderer || new Renderer; - this.renderer.options = this.options; - if (!this.links) { - throw new Error('Tokens array requires a `links` property.'); - } - if (this.options.gfm) { - if (this.options.breaks) { - this.rules = inline.breaks; - } else { - this.rules = inline.gfm; - } - } else if (this.options.pedantic) { - this.rules = inline.pedantic; - } - } - InlineLexer.rules = inline; - InlineLexer.output = function(src, links, options) { - var inline = new InlineLexer(links, options); - return inline.output(src); - }; - InlineLexer.prototype.output = function(src) { - var out = '', - link, - text, - href, - cap; - while (src) { - if (cap = this.rules.escape.exec(src)) { - src = src.substring(cap[0].length); - out += cap[1]; - continue; - } - if (cap = this.rules.autolink.exec(src)) { - src = src.substring(cap[0].length); - if (cap[2] === '@') { - text = cap[1].charAt(6) === ':' ? this.mangle(cap[1].substring(7)) : this.mangle(cap[1]); - href = this.mangle('mailto:') + text; - } else { - text = escape(cap[1]); - href = text; - } - out += this.renderer.link(href, null, text); - continue; - } - if (!this.inLink && (cap = this.rules.url.exec(src))) { - src = src.substring(cap[0].length); - text = escape(cap[1]); - href = text; - out += this.renderer.link(href, null, text); - continue; - } - if (cap = this.rules.tag.exec(src)) { - if (!this.inLink && /^/i.test(cap[0])) { - this.inLink = false; - } - src = src.substring(cap[0].length); - out += this.options.sanitize ? this.options.sanitizer ? this.options.sanitizer(cap[0]) : escape(cap[0]) : cap[0]; - continue; - } - if (cap = this.rules.link.exec(src)) { - src = src.substring(cap[0].length); - this.inLink = true; - out += this.outputLink(cap, { - href: cap[2], - title: cap[3] - }); - this.inLink = false; - continue; - } - if ((cap = this.rules.reflink.exec(src)) || (cap = this.rules.nolink.exec(src))) { - src = src.substring(cap[0].length); - link = (cap[2] || cap[1]).replace(/\s+/g, ' '); - link = this.links[link.toLowerCase()]; - if (!link || !link.href) { - out += cap[0].charAt(0); - src = cap[0].substring(1) + src; - continue; - } - this.inLink = true; - out += this.outputLink(cap, link); - this.inLink = false; - continue; - } - if (cap = this.rules.strong.exec(src)) { - src = src.substring(cap[0].length); - out += this.renderer.strong(this.output(cap[2] || cap[1])); - continue; - } - if (cap = this.rules.em.exec(src)) { - src = src.substring(cap[0].length); - out += this.renderer.em(this.output(cap[2] || cap[1])); - continue; - } - if (cap = this.rules.code.exec(src)) { - src = src.substring(cap[0].length); - out += this.renderer.codespan(escape(cap[2], true)); - continue; - } - if (cap = this.rules.br.exec(src)) { - src = src.substring(cap[0].length); - out += this.renderer.br(); - continue; - } - if (cap = this.rules.del.exec(src)) { - src = src.substring(cap[0].length); - out += this.renderer.del(this.output(cap[1])); - continue; - } - if (cap = this.rules.text.exec(src)) { - src = src.substring(cap[0].length); - out += this.renderer.text(escape(this.smartypants(cap[0]))); - continue; - } - if (src) { - throw new Error('Infinite loop on byte: ' + src.charCodeAt(0)); - } - } - return out; - }; - InlineLexer.prototype.outputLink = function(cap, link) { - var href = escape(link.href), - title = link.title ? escape(link.title) : null; - return cap[0].charAt(0) !== '!' ? this.renderer.link(href, title, this.output(cap[1])) : this.renderer.image(href, title, escape(cap[1])); - }; - InlineLexer.prototype.smartypants = function(text) { - if (!this.options.smartypants) - return text; - return text.replace(/---/g, '\u2014').replace(/--/g, '\u2013').replace(/(^|[-\u2014/(\[{"\s])'/g, '$1\u2018').replace(/'/g, '\u2019').replace(/(^|[-\u2014/(\[{\u2018\s])"/g, '$1\u201c').replace(/"/g, '\u201d').replace(/\.{3}/g, '\u2026'); - }; - InlineLexer.prototype.mangle = function(text) { - if (!this.options.mangle) - return text; - var out = '', - l = text.length, - i = 0, - ch; - for (; i < l; i++) { - ch = text.charCodeAt(i); - if (Math.random() > 0.5) { - ch = 'x' + ch.toString(16); - } - out += '&#' + ch + ';'; - } - return out; - }; - function Renderer(options) { - this.options = options || {}; - } - Renderer.prototype.code = function(code, lang, escaped) { - if (this.options.highlight) { - var out = this.options.highlight(code, lang); - if (out != null && out !== code) { - escaped = true; - code = out; - } - } - if (!lang) { - return '
' + (escaped ? code : escape(code, true)) + '\n
'; - } - return '
' + (escaped ? code : escape(code, true)) + '\n
\n'; - }; - Renderer.prototype.blockquote = function(quote) { - return '
\n' + quote + '
\n'; - }; - Renderer.prototype.html = function(html) { - return html; - }; - Renderer.prototype.heading = function(text, level, raw) { - return '' + text + '\n'; - }; - Renderer.prototype.hr = function() { - return this.options.xhtml ? '
\n' : '
\n'; - }; - Renderer.prototype.list = function(body, ordered) { - var type = ordered ? 'ol' : 'ul'; - return '<' + type + '>\n' + body + '\n'; - }; - Renderer.prototype.listitem = function(text) { - return '
  • ' + text + '
  • \n'; - }; - Renderer.prototype.paragraph = function(text) { - return '

    ' + text + '

    \n'; - }; - Renderer.prototype.table = function(header, body) { - return '\n' + '\n' + header + '\n' + '\n' + body + '\n' + '
    \n'; - }; - Renderer.prototype.tablerow = function(content) { - return '\n' + content + '\n'; - }; - Renderer.prototype.tablecell = function(content, flags) { - var type = flags.header ? 'th' : 'td'; - var tag = flags.align ? '<' + type + ' style="text-align:' + flags.align + '">' : '<' + type + '>'; - return tag + content + '\n'; - }; - Renderer.prototype.strong = function(text) { - return '' + text + ''; - }; - Renderer.prototype.em = function(text) { - return '' + text + ''; - }; - Renderer.prototype.codespan = function(text) { - return '' + text + ''; - }; - Renderer.prototype.br = function() { - return this.options.xhtml ? '
    ' : '
    '; - }; - Renderer.prototype.del = function(text) { - return '' + text + ''; - }; - Renderer.prototype.link = function(href, title, text) { - if (this.options.sanitize) { - try { - var prot = decodeURIComponent(unescape(href)).replace(/[^\w:]/g, '').toLowerCase(); - } catch (e) { - return ''; - } - if (prot.indexOf('javascript:') === 0 || prot.indexOf('vbscript:') === 0) { - return ''; - } - } - var out = '
    '; - return out; - }; - Renderer.prototype.image = function(href, title, text) { - var out = '' + text + '' : '>'; - return out; - }; - Renderer.prototype.text = function(text) { - return text; - }; - function Parser(options) { - this.tokens = []; - this.token = null; - this.options = options || marked.defaults; - this.options.renderer = this.options.renderer || new Renderer; - this.renderer = this.options.renderer; - this.renderer.options = this.options; - } - Parser.parse = function(src, options, renderer) { - var parser = new Parser(options, renderer); - return parser.parse(src); - }; - Parser.prototype.parse = function(src) { - this.inline = new InlineLexer(src.links, this.options, this.renderer); - this.tokens = src.reverse(); - var out = ''; - while (this.next()) { - out += this.tok(); - } - return out; - }; - Parser.prototype.next = function() { - return this.token = this.tokens.pop(); - }; - Parser.prototype.peek = function() { - return this.tokens[this.tokens.length - 1] || 0; - }; - Parser.prototype.parseText = function() { - var body = this.token.text; - while (this.peek().type === 'text') { - body += '\n' + this.next().text; - } - return this.inline.output(body); - }; - Parser.prototype.tok = function() { - switch (this.token.type) { - case 'space': - { - return ''; - } - case 'hr': - { - return this.renderer.hr(); - } - case 'heading': - { - return this.renderer.heading(this.inline.output(this.token.text), this.token.depth, this.token.text); - } - case 'code': - { - return this.renderer.code(this.token.text, this.token.lang, this.token.escaped); - } - case 'table': - { - var header = '', - body = '', - i, - row, - cell, - flags, - j; - cell = ''; - for (i = 0; i < this.token.header.length; i++) { - flags = { - header: true, - align: this.token.align[i] - }; - cell += this.renderer.tablecell(this.inline.output(this.token.header[i]), { - header: true, - align: this.token.align[i] - }); - } - header += this.renderer.tablerow(cell); - for (i = 0; i < this.token.cells.length; i++) { - row = this.token.cells[i]; - cell = ''; - for (j = 0; j < row.length; j++) { - cell += this.renderer.tablecell(this.inline.output(row[j]), { - header: false, - align: this.token.align[j] - }); - } - body += this.renderer.tablerow(cell); - } - return this.renderer.table(header, body); - } - case 'blockquote_start': - { - var body = ''; - while (this.next().type !== 'blockquote_end') { - body += this.tok(); - } - return this.renderer.blockquote(body); - } - case 'list_start': - { - var body = '', - ordered = this.token.ordered; - while (this.next().type !== 'list_end') { - body += this.tok(); - } - return this.renderer.list(body, ordered); - } - case 'list_item_start': - { - var body = ''; - while (this.next().type !== 'list_item_end') { - body += this.token.type === 'text' ? this.parseText() : this.tok(); - } - return this.renderer.listitem(body); - } - case 'loose_item_start': - { - var body = ''; - while (this.next().type !== 'list_item_end') { - body += this.tok(); - } - return this.renderer.listitem(body); - } - case 'html': - { - var html = !this.token.pre && !this.options.pedantic ? this.inline.output(this.token.text) : this.token.text; - return this.renderer.html(html); - } - case 'paragraph': - { - return this.renderer.paragraph(this.inline.output(this.token.text)); - } - case 'text': - { - return this.renderer.paragraph(this.parseText()); - } - } - }; - function escape(html, encode) { - return html.replace(!encode ? /&(?!#?\w+;)/g : /&/g, '&').replace(//g, '>').replace(/"/g, '"').replace(/'/g, '''); - } - function unescape(html) { - return html.replace(/&([#\w]+);/g, function(_, n) { - n = n.toLowerCase(); - if (n === 'colon') - return ':'; - if (n.charAt(0) === '#') { - return n.charAt(1) === 'x' ? String.fromCharCode(parseInt(n.substring(2), 16)) : String.fromCharCode(+n.substring(1)); - } - return ''; - }); - } - function replace(regex, opt) { - regex = regex.source; - opt = opt || ''; - return function self(name, val) { - if (!name) - return new RegExp(regex, opt); - val = val.source || val; - val = val.replace(/(^|[^\[])\^/g, '$1'); - regex = regex.replace(name, val); - return self; - }; - } - function noop() {} - noop.exec = noop; - function merge(obj) { - var i = 1, - target, - key; - for (; i < arguments.length; i++) { - target = arguments[i]; - for (key in target) { - if (Object.prototype.hasOwnProperty.call(target, key)) { - obj[key] = target[key]; - } - } - } - return obj; - } - function marked(src, opt, callback) { - if (callback || typeof opt === 'function') { - if (!callback) { - callback = opt; - opt = null; - } - opt = merge({}, marked.defaults, opt || {}); - var highlight = opt.highlight, - tokens, - pending, - i = 0; - try { - tokens = Lexer.lex(src, opt); - } catch (e) { - return callback(e); - } - pending = tokens.length; - var done = function(err) { - if (err) { - opt.highlight = highlight; - return callback(err); - } - var out; - try { - out = Parser.parse(tokens, opt); - } catch (e) { - err = e; - } - opt.highlight = highlight; - return err ? callback(err) : callback(null, out); - }; - if (!highlight || highlight.length < 3) { - return done(); - } - delete opt.highlight; - if (!pending) - return done(); - for (; i < tokens.length; i++) { - (function(token) { - if (token.type !== 'code') { - return --pending || done(); - } - return highlight(token.text, token.lang, function(err, code) { - if (err) - return done(err); - if (code == null || code === token.text) { - return --pending || done(); - } - token.text = code; - token.escaped = true; - --pending || done(); - }); - })(tokens[i]); - } - return; - } - try { - if (opt) - opt = merge({}, marked.defaults, opt); - return Parser.parse(Lexer.lex(src, opt), opt); - } catch (e) { - e.message += '\nPlease report this to https://github.com/chjj/marked.'; - if ((opt || marked.defaults).silent) { - return '

    An error occured:

    ' + escape(e.message + '', true) + '
    '; - } - throw e; - } - } - marked.options = marked.setOptions = function(opt) { - merge(marked.defaults, opt); - return marked; - }; - marked.defaults = { - gfm: true, - tables: true, - breaks: false, - pedantic: false, - sanitize: false, - sanitizer: null, - mangle: true, - smartLists: false, - silent: false, - highlight: null, - langPrefix: 'lang-', - smartypants: false, - headerPrefix: '', - renderer: new Renderer, - xhtml: false - }; - marked.Parser = Parser; - marked.parser = Parser.parse; - marked.Renderer = Renderer; - marked.Lexer = Lexer; - marked.lexer = Lexer.lex; - marked.InlineLexer = InlineLexer; - marked.inlineLexer = InlineLexer.output; - marked.parse = marked; - if (typeof module !== 'undefined' && typeof exports === 'object') { - module.exports = marked; - } else if (typeof define === 'function' && define.amd) { - define(function() { - return marked; - }); - } else { - this.marked = marked; - } - }).call(function() { - return this || (typeof window !== 'undefined' ? window : global); - }()); - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("174", ["173"], true, function($__require, exports, module) { - ; - var global = this, - __define = global.define; - global.define = undefined; - module.exports = $__require('173'); - global.define = __define; - return module.exports; -}); - $__System.registerDynamic("175", [], true, function($__require, exports, module) { ; var global = this, @@ -36592,8 +36404,845 @@ $__System.registerDynamic("189", [], true, function($__require, exports, module) $__System.register("18a", [], function() { return { setters: [], execute: function() {} } }); -$__System.register('f', ['4', '5', '6', '7', '11', '22', '28', '40', '174', '176', '177', '178', '179', '180', '181', '182', '183', '184', '185', '186', '187', '188', '189', 'c', '17a', '17b', '17c', '17d', '17e', '17f', '18a'], function (_export) { - var _get, _inherits, _createClass, _classCallCheck, Pipe, isString, stringify, isBlank, _Object$keys, BaseException, marked, Prism, JsonPointer, InvalidPipeArgumentException, KeysPipe, ValuesPipe, JsonPointerEscapePipe, MarkedPipe, langMap, PrismPipe; +$__System.registerDynamic("18b", [], true, function($__require, exports, module) { + ; + var global = this, + __define = global.define; + global.define = undefined; + "format cjs"; + ; + (function() { + var block = { + newline: /^\n+/, + code: /^( {4}[^\n]+\n*)+/, + fences: noop, + hr: /^( *[-*_]){3,} *(?:\n+|$)/, + heading: /^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/, + nptable: noop, + lheading: /^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/, + blockquote: /^( *>[^\n]+(\n(?!def)[^\n]+)*\n*)+/, + list: /^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/, + html: /^ *(?:comment *(?:\n|\s*$)|closed *(?:\n{2,}|\s*$)|closing *(?:\n{2,}|\s*$))/, + def: /^ *\[([^\]]+)\]: *]+)>?(?: +["(]([^\n]+)[")])? *(?:\n+|$)/, + table: noop, + paragraph: /^((?:[^\n]+\n?(?!hr|heading|lheading|blockquote|tag|def))+)\n*/, + text: /^[^\n]+/ + }; + block.bullet = /(?:[*+-]|\d+\.)/; + block.item = /^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/; + block.item = replace(block.item, 'gm')(/bull/g, block.bullet)(); + block.list = replace(block.list)(/bull/g, block.bullet)('hr', '\\n+(?=\\1?(?:[-*_] *){3,}(?:\\n+|$))')('def', '\\n+(?=' + block.def.source + ')')(); + block.blockquote = replace(block.blockquote)('def', block.def)(); + block._tag = '(?!(?:' + 'a|em|strong|small|s|cite|q|dfn|abbr|data|time|code' + '|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo' + '|span|br|wbr|ins|del|img)\\b)\\w+(?!:/|[^\\w\\s@]*@)\\b'; + block.html = replace(block.html)('comment', //)('closed', /<(tag)[\s\S]+?<\/\1>/)('closing', /])*?>/)(/tag/g, block._tag)(); + block.paragraph = replace(block.paragraph)('hr', block.hr)('heading', block.heading)('lheading', block.lheading)('blockquote', block.blockquote)('tag', '<' + block._tag)('def', block.def)(); + block.normal = merge({}, block); + block.gfm = merge({}, block.normal, { + fences: /^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]*?)\s*\1 *(?:\n+|$)/, + paragraph: /^/, + heading: /^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/ + }); + block.gfm.paragraph = replace(block.paragraph)('(?!', '(?!' + block.gfm.fences.source.replace('\\1', '\\2') + '|' + block.list.source.replace('\\1', '\\3') + '|')(); + block.tables = merge({}, block.gfm, { + nptable: /^ *(\S.*\|.*)\n *([-:]+ *\|[-| :]*)\n((?:.*\|.*(?:\n|$))*)\n*/, + table: /^ *\|(.+)\n *\|( *[-:]+[-| :]*)\n((?: *\|.*(?:\n|$))*)\n*/ + }); + function Lexer(options) { + this.tokens = []; + this.tokens.links = {}; + this.options = options || marked.defaults; + this.rules = block.normal; + if (this.options.gfm) { + if (this.options.tables) { + this.rules = block.tables; + } else { + this.rules = block.gfm; + } + } + } + Lexer.rules = block; + Lexer.lex = function(src, options) { + var lexer = new Lexer(options); + return lexer.lex(src); + }; + Lexer.prototype.lex = function(src) { + src = src.replace(/\r\n|\r/g, '\n').replace(/\t/g, ' ').replace(/\u00a0/g, ' ').replace(/\u2424/g, '\n'); + return this.token(src, true); + }; + Lexer.prototype.token = function(src, top, bq) { + var src = src.replace(/^ +$/gm, ''), + next, + loose, + cap, + bull, + b, + item, + space, + i, + l; + while (src) { + if (cap = this.rules.newline.exec(src)) { + src = src.substring(cap[0].length); + if (cap[0].length > 1) { + this.tokens.push({type: 'space'}); + } + } + if (cap = this.rules.code.exec(src)) { + src = src.substring(cap[0].length); + cap = cap[0].replace(/^ {4}/gm, ''); + this.tokens.push({ + type: 'code', + text: !this.options.pedantic ? cap.replace(/\n+$/, '') : cap + }); + continue; + } + if (cap = this.rules.fences.exec(src)) { + src = src.substring(cap[0].length); + this.tokens.push({ + type: 'code', + lang: cap[2], + text: cap[3] || '' + }); + continue; + } + if (cap = this.rules.heading.exec(src)) { + src = src.substring(cap[0].length); + this.tokens.push({ + type: 'heading', + depth: cap[1].length, + text: cap[2] + }); + continue; + } + if (top && (cap = this.rules.nptable.exec(src))) { + src = src.substring(cap[0].length); + item = { + type: 'table', + header: cap[1].replace(/^ *| *\| *$/g, '').split(/ *\| */), + align: cap[2].replace(/^ *|\| *$/g, '').split(/ *\| */), + cells: cap[3].replace(/\n$/, '').split('\n') + }; + for (i = 0; i < item.align.length; i++) { + if (/^ *-+: *$/.test(item.align[i])) { + item.align[i] = 'right'; + } else if (/^ *:-+: *$/.test(item.align[i])) { + item.align[i] = 'center'; + } else if (/^ *:-+ *$/.test(item.align[i])) { + item.align[i] = 'left'; + } else { + item.align[i] = null; + } + } + for (i = 0; i < item.cells.length; i++) { + item.cells[i] = item.cells[i].split(/ *\| */); + } + this.tokens.push(item); + continue; + } + if (cap = this.rules.lheading.exec(src)) { + src = src.substring(cap[0].length); + this.tokens.push({ + type: 'heading', + depth: cap[2] === '=' ? 1 : 2, + text: cap[1] + }); + continue; + } + if (cap = this.rules.hr.exec(src)) { + src = src.substring(cap[0].length); + this.tokens.push({type: 'hr'}); + continue; + } + if (cap = this.rules.blockquote.exec(src)) { + src = src.substring(cap[0].length); + this.tokens.push({type: 'blockquote_start'}); + cap = cap[0].replace(/^ *> ?/gm, ''); + this.token(cap, top, true); + this.tokens.push({type: 'blockquote_end'}); + continue; + } + if (cap = this.rules.list.exec(src)) { + src = src.substring(cap[0].length); + bull = cap[2]; + this.tokens.push({ + type: 'list_start', + ordered: bull.length > 1 + }); + cap = cap[0].match(this.rules.item); + next = false; + l = cap.length; + i = 0; + for (; i < l; i++) { + item = cap[i]; + space = item.length; + item = item.replace(/^ *([*+-]|\d+\.) +/, ''); + if (~item.indexOf('\n ')) { + space -= item.length; + item = !this.options.pedantic ? item.replace(new RegExp('^ {1,' + space + '}', 'gm'), '') : item.replace(/^ {1,4}/gm, ''); + } + if (this.options.smartLists && i !== l - 1) { + b = block.bullet.exec(cap[i + 1])[0]; + if (bull !== b && !(bull.length > 1 && b.length > 1)) { + src = cap.slice(i + 1).join('\n') + src; + i = l - 1; + } + } + loose = next || /\n\n(?!\s*$)/.test(item); + if (i !== l - 1) { + next = item.charAt(item.length - 1) === '\n'; + if (!loose) + loose = next; + } + this.tokens.push({type: loose ? 'loose_item_start' : 'list_item_start'}); + this.token(item, false, bq); + this.tokens.push({type: 'list_item_end'}); + } + this.tokens.push({type: 'list_end'}); + continue; + } + if (cap = this.rules.html.exec(src)) { + src = src.substring(cap[0].length); + this.tokens.push({ + type: this.options.sanitize ? 'paragraph' : 'html', + pre: !this.options.sanitizer && (cap[1] === 'pre' || cap[1] === 'script' || cap[1] === 'style'), + text: cap[0] + }); + continue; + } + if ((!bq && top) && (cap = this.rules.def.exec(src))) { + src = src.substring(cap[0].length); + this.tokens.links[cap[1].toLowerCase()] = { + href: cap[2], + title: cap[3] + }; + continue; + } + if (top && (cap = this.rules.table.exec(src))) { + src = src.substring(cap[0].length); + item = { + type: 'table', + header: cap[1].replace(/^ *| *\| *$/g, '').split(/ *\| */), + align: cap[2].replace(/^ *|\| *$/g, '').split(/ *\| */), + cells: cap[3].replace(/(?: *\| *)?\n$/, '').split('\n') + }; + for (i = 0; i < item.align.length; i++) { + if (/^ *-+: *$/.test(item.align[i])) { + item.align[i] = 'right'; + } else if (/^ *:-+: *$/.test(item.align[i])) { + item.align[i] = 'center'; + } else if (/^ *:-+ *$/.test(item.align[i])) { + item.align[i] = 'left'; + } else { + item.align[i] = null; + } + } + for (i = 0; i < item.cells.length; i++) { + item.cells[i] = item.cells[i].replace(/^ *\| *| *\| *$/g, '').split(/ *\| */); + } + this.tokens.push(item); + continue; + } + if (top && (cap = this.rules.paragraph.exec(src))) { + src = src.substring(cap[0].length); + this.tokens.push({ + type: 'paragraph', + text: cap[1].charAt(cap[1].length - 1) === '\n' ? cap[1].slice(0, -1) : cap[1] + }); + continue; + } + if (cap = this.rules.text.exec(src)) { + src = src.substring(cap[0].length); + this.tokens.push({ + type: 'text', + text: cap[0] + }); + continue; + } + if (src) { + throw new Error('Infinite loop on byte: ' + src.charCodeAt(0)); + } + } + return this.tokens; + }; + var inline = { + escape: /^\\([\\`*{}\[\]()#+\-.!_>])/, + autolink: /^<([^ >]+(@|:\/)[^ >]+)>/, + url: noop, + tag: /^|^<\/?\w+(?:"[^"]*"|'[^']*'|[^'">])*?>/, + link: /^!?\[(inside)\]\(href\)/, + reflink: /^!?\[(inside)\]\s*\[([^\]]*)\]/, + nolink: /^!?\[((?:\[[^\]]*\]|[^\[\]])*)\]/, + strong: /^__([\s\S]+?)__(?!_)|^\*\*([\s\S]+?)\*\*(?!\*)/, + em: /^\b_((?:[^_]|__)+?)_\b|^\*((?:\*\*|[\s\S])+?)\*(?!\*)/, + code: /^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/, + br: /^ {2,}\n(?!\s*$)/, + del: noop, + text: /^[\s\S]+?(?=[\\?(?:\s+['"]([\s\S]*?)['"])?\s*/; + inline.link = replace(inline.link)('inside', inline._inside)('href', inline._href)(); + inline.reflink = replace(inline.reflink)('inside', inline._inside)(); + inline.normal = merge({}, inline); + inline.pedantic = merge({}, inline.normal, { + strong: /^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/, + em: /^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/ + }); + inline.gfm = merge({}, inline.normal, { + escape: replace(inline.escape)('])', '~|])')(), + url: /^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/, + del: /^~~(?=\S)([\s\S]*?\S)~~/, + text: replace(inline.text)(']|', '~]|')('|', '|https?://|')() + }); + inline.breaks = merge({}, inline.gfm, { + br: replace(inline.br)('{2,}', '*')(), + text: replace(inline.gfm.text)('{2,}', '*')() + }); + function InlineLexer(links, options) { + this.options = options || marked.defaults; + this.links = links; + this.rules = inline.normal; + this.renderer = this.options.renderer || new Renderer; + this.renderer.options = this.options; + if (!this.links) { + throw new Error('Tokens array requires a `links` property.'); + } + if (this.options.gfm) { + if (this.options.breaks) { + this.rules = inline.breaks; + } else { + this.rules = inline.gfm; + } + } else if (this.options.pedantic) { + this.rules = inline.pedantic; + } + } + InlineLexer.rules = inline; + InlineLexer.output = function(src, links, options) { + var inline = new InlineLexer(links, options); + return inline.output(src); + }; + InlineLexer.prototype.output = function(src) { + var out = '', + link, + text, + href, + cap; + while (src) { + if (cap = this.rules.escape.exec(src)) { + src = src.substring(cap[0].length); + out += cap[1]; + continue; + } + if (cap = this.rules.autolink.exec(src)) { + src = src.substring(cap[0].length); + if (cap[2] === '@') { + text = cap[1].charAt(6) === ':' ? this.mangle(cap[1].substring(7)) : this.mangle(cap[1]); + href = this.mangle('mailto:') + text; + } else { + text = escape(cap[1]); + href = text; + } + out += this.renderer.link(href, null, text); + continue; + } + if (!this.inLink && (cap = this.rules.url.exec(src))) { + src = src.substring(cap[0].length); + text = escape(cap[1]); + href = text; + out += this.renderer.link(href, null, text); + continue; + } + if (cap = this.rules.tag.exec(src)) { + if (!this.inLink && /^
    /i.test(cap[0])) { + this.inLink = false; + } + src = src.substring(cap[0].length); + out += this.options.sanitize ? this.options.sanitizer ? this.options.sanitizer(cap[0]) : escape(cap[0]) : cap[0]; + continue; + } + if (cap = this.rules.link.exec(src)) { + src = src.substring(cap[0].length); + this.inLink = true; + out += this.outputLink(cap, { + href: cap[2], + title: cap[3] + }); + this.inLink = false; + continue; + } + if ((cap = this.rules.reflink.exec(src)) || (cap = this.rules.nolink.exec(src))) { + src = src.substring(cap[0].length); + link = (cap[2] || cap[1]).replace(/\s+/g, ' '); + link = this.links[link.toLowerCase()]; + if (!link || !link.href) { + out += cap[0].charAt(0); + src = cap[0].substring(1) + src; + continue; + } + this.inLink = true; + out += this.outputLink(cap, link); + this.inLink = false; + continue; + } + if (cap = this.rules.strong.exec(src)) { + src = src.substring(cap[0].length); + out += this.renderer.strong(this.output(cap[2] || cap[1])); + continue; + } + if (cap = this.rules.em.exec(src)) { + src = src.substring(cap[0].length); + out += this.renderer.em(this.output(cap[2] || cap[1])); + continue; + } + if (cap = this.rules.code.exec(src)) { + src = src.substring(cap[0].length); + out += this.renderer.codespan(escape(cap[2], true)); + continue; + } + if (cap = this.rules.br.exec(src)) { + src = src.substring(cap[0].length); + out += this.renderer.br(); + continue; + } + if (cap = this.rules.del.exec(src)) { + src = src.substring(cap[0].length); + out += this.renderer.del(this.output(cap[1])); + continue; + } + if (cap = this.rules.text.exec(src)) { + src = src.substring(cap[0].length); + out += this.renderer.text(escape(this.smartypants(cap[0]))); + continue; + } + if (src) { + throw new Error('Infinite loop on byte: ' + src.charCodeAt(0)); + } + } + return out; + }; + InlineLexer.prototype.outputLink = function(cap, link) { + var href = escape(link.href), + title = link.title ? escape(link.title) : null; + return cap[0].charAt(0) !== '!' ? this.renderer.link(href, title, this.output(cap[1])) : this.renderer.image(href, title, escape(cap[1])); + }; + InlineLexer.prototype.smartypants = function(text) { + if (!this.options.smartypants) + return text; + return text.replace(/---/g, '\u2014').replace(/--/g, '\u2013').replace(/(^|[-\u2014/(\[{"\s])'/g, '$1\u2018').replace(/'/g, '\u2019').replace(/(^|[-\u2014/(\[{\u2018\s])"/g, '$1\u201c').replace(/"/g, '\u201d').replace(/\.{3}/g, '\u2026'); + }; + InlineLexer.prototype.mangle = function(text) { + if (!this.options.mangle) + return text; + var out = '', + l = text.length, + i = 0, + ch; + for (; i < l; i++) { + ch = text.charCodeAt(i); + if (Math.random() > 0.5) { + ch = 'x' + ch.toString(16); + } + out += '&#' + ch + ';'; + } + return out; + }; + function Renderer(options) { + this.options = options || {}; + } + Renderer.prototype.code = function(code, lang, escaped) { + if (this.options.highlight) { + var out = this.options.highlight(code, lang); + if (out != null && out !== code) { + escaped = true; + code = out; + } + } + if (!lang) { + return '
    ' + (escaped ? code : escape(code, true)) + '\n
    '; + } + return '
    ' + (escaped ? code : escape(code, true)) + '\n
    \n'; + }; + Renderer.prototype.blockquote = function(quote) { + return '
    \n' + quote + '
    \n'; + }; + Renderer.prototype.html = function(html) { + return html; + }; + Renderer.prototype.heading = function(text, level, raw) { + return '' + text + '\n'; + }; + Renderer.prototype.hr = function() { + return this.options.xhtml ? '
    \n' : '
    \n'; + }; + Renderer.prototype.list = function(body, ordered) { + var type = ordered ? 'ol' : 'ul'; + return '<' + type + '>\n' + body + '\n'; + }; + Renderer.prototype.listitem = function(text) { + return '
  • ' + text + '
  • \n'; + }; + Renderer.prototype.paragraph = function(text) { + return '

    ' + text + '

    \n'; + }; + Renderer.prototype.table = function(header, body) { + return '\n' + '\n' + header + '\n' + '\n' + body + '\n' + '
    \n'; + }; + Renderer.prototype.tablerow = function(content) { + return '\n' + content + '\n'; + }; + Renderer.prototype.tablecell = function(content, flags) { + var type = flags.header ? 'th' : 'td'; + var tag = flags.align ? '<' + type + ' style="text-align:' + flags.align + '">' : '<' + type + '>'; + return tag + content + '\n'; + }; + Renderer.prototype.strong = function(text) { + return '' + text + ''; + }; + Renderer.prototype.em = function(text) { + return '' + text + ''; + }; + Renderer.prototype.codespan = function(text) { + return '' + text + ''; + }; + Renderer.prototype.br = function() { + return this.options.xhtml ? '
    ' : '
    '; + }; + Renderer.prototype.del = function(text) { + return '' + text + ''; + }; + Renderer.prototype.link = function(href, title, text) { + if (this.options.sanitize) { + try { + var prot = decodeURIComponent(unescape(href)).replace(/[^\w:]/g, '').toLowerCase(); + } catch (e) { + return ''; + } + if (prot.indexOf('javascript:') === 0 || prot.indexOf('vbscript:') === 0) { + return ''; + } + } + var out = '
    '; + return out; + }; + Renderer.prototype.image = function(href, title, text) { + var out = '' + text + '' : '>'; + return out; + }; + Renderer.prototype.text = function(text) { + return text; + }; + function Parser(options) { + this.tokens = []; + this.token = null; + this.options = options || marked.defaults; + this.options.renderer = this.options.renderer || new Renderer; + this.renderer = this.options.renderer; + this.renderer.options = this.options; + } + Parser.parse = function(src, options, renderer) { + var parser = new Parser(options, renderer); + return parser.parse(src); + }; + Parser.prototype.parse = function(src) { + this.inline = new InlineLexer(src.links, this.options, this.renderer); + this.tokens = src.reverse(); + var out = ''; + while (this.next()) { + out += this.tok(); + } + return out; + }; + Parser.prototype.next = function() { + return this.token = this.tokens.pop(); + }; + Parser.prototype.peek = function() { + return this.tokens[this.tokens.length - 1] || 0; + }; + Parser.prototype.parseText = function() { + var body = this.token.text; + while (this.peek().type === 'text') { + body += '\n' + this.next().text; + } + return this.inline.output(body); + }; + Parser.prototype.tok = function() { + switch (this.token.type) { + case 'space': + { + return ''; + } + case 'hr': + { + return this.renderer.hr(); + } + case 'heading': + { + return this.renderer.heading(this.inline.output(this.token.text), this.token.depth, this.token.text); + } + case 'code': + { + return this.renderer.code(this.token.text, this.token.lang, this.token.escaped); + } + case 'table': + { + var header = '', + body = '', + i, + row, + cell, + flags, + j; + cell = ''; + for (i = 0; i < this.token.header.length; i++) { + flags = { + header: true, + align: this.token.align[i] + }; + cell += this.renderer.tablecell(this.inline.output(this.token.header[i]), { + header: true, + align: this.token.align[i] + }); + } + header += this.renderer.tablerow(cell); + for (i = 0; i < this.token.cells.length; i++) { + row = this.token.cells[i]; + cell = ''; + for (j = 0; j < row.length; j++) { + cell += this.renderer.tablecell(this.inline.output(row[j]), { + header: false, + align: this.token.align[j] + }); + } + body += this.renderer.tablerow(cell); + } + return this.renderer.table(header, body); + } + case 'blockquote_start': + { + var body = ''; + while (this.next().type !== 'blockquote_end') { + body += this.tok(); + } + return this.renderer.blockquote(body); + } + case 'list_start': + { + var body = '', + ordered = this.token.ordered; + while (this.next().type !== 'list_end') { + body += this.tok(); + } + return this.renderer.list(body, ordered); + } + case 'list_item_start': + { + var body = ''; + while (this.next().type !== 'list_item_end') { + body += this.token.type === 'text' ? this.parseText() : this.tok(); + } + return this.renderer.listitem(body); + } + case 'loose_item_start': + { + var body = ''; + while (this.next().type !== 'list_item_end') { + body += this.tok(); + } + return this.renderer.listitem(body); + } + case 'html': + { + var html = !this.token.pre && !this.options.pedantic ? this.inline.output(this.token.text) : this.token.text; + return this.renderer.html(html); + } + case 'paragraph': + { + return this.renderer.paragraph(this.inline.output(this.token.text)); + } + case 'text': + { + return this.renderer.paragraph(this.parseText()); + } + } + }; + function escape(html, encode) { + return html.replace(!encode ? /&(?!#?\w+;)/g : /&/g, '&').replace(//g, '>').replace(/"/g, '"').replace(/'/g, '''); + } + function unescape(html) { + return html.replace(/&([#\w]+);/g, function(_, n) { + n = n.toLowerCase(); + if (n === 'colon') + return ':'; + if (n.charAt(0) === '#') { + return n.charAt(1) === 'x' ? String.fromCharCode(parseInt(n.substring(2), 16)) : String.fromCharCode(+n.substring(1)); + } + return ''; + }); + } + function replace(regex, opt) { + regex = regex.source; + opt = opt || ''; + return function self(name, val) { + if (!name) + return new RegExp(regex, opt); + val = val.source || val; + val = val.replace(/(^|[^\[])\^/g, '$1'); + regex = regex.replace(name, val); + return self; + }; + } + function noop() {} + noop.exec = noop; + function merge(obj) { + var i = 1, + target, + key; + for (; i < arguments.length; i++) { + target = arguments[i]; + for (key in target) { + if (Object.prototype.hasOwnProperty.call(target, key)) { + obj[key] = target[key]; + } + } + } + return obj; + } + function marked(src, opt, callback) { + if (callback || typeof opt === 'function') { + if (!callback) { + callback = opt; + opt = null; + } + opt = merge({}, marked.defaults, opt || {}); + var highlight = opt.highlight, + tokens, + pending, + i = 0; + try { + tokens = Lexer.lex(src, opt); + } catch (e) { + return callback(e); + } + pending = tokens.length; + var done = function(err) { + if (err) { + opt.highlight = highlight; + return callback(err); + } + var out; + try { + out = Parser.parse(tokens, opt); + } catch (e) { + err = e; + } + opt.highlight = highlight; + return err ? callback(err) : callback(null, out); + }; + if (!highlight || highlight.length < 3) { + return done(); + } + delete opt.highlight; + if (!pending) + return done(); + for (; i < tokens.length; i++) { + (function(token) { + if (token.type !== 'code') { + return --pending || done(); + } + return highlight(token.text, token.lang, function(err, code) { + if (err) + return done(err); + if (code == null || code === token.text) { + return --pending || done(); + } + token.text = code; + token.escaped = true; + --pending || done(); + }); + })(tokens[i]); + } + return; + } + try { + if (opt) + opt = merge({}, marked.defaults, opt); + return Parser.parse(Lexer.lex(src, opt), opt); + } catch (e) { + e.message += '\nPlease report this to https://github.com/chjj/marked.'; + if ((opt || marked.defaults).silent) { + return '

    An error occured:

    ' + escape(e.message + '', true) + '
    '; + } + throw e; + } + } + marked.options = marked.setOptions = function(opt) { + merge(marked.defaults, opt); + return marked; + }; + marked.defaults = { + gfm: true, + tables: true, + breaks: false, + pedantic: false, + sanitize: false, + sanitizer: null, + mangle: true, + smartLists: false, + silent: false, + highlight: null, + langPrefix: 'lang-', + smartypants: false, + headerPrefix: '', + renderer: new Renderer, + xhtml: false + }; + marked.Parser = Parser; + marked.parser = Parser.parse; + marked.Renderer = Renderer; + marked.Lexer = Lexer; + marked.lexer = Lexer.lex; + marked.InlineLexer = InlineLexer; + marked.inlineLexer = InlineLexer.output; + marked.parse = marked; + if (typeof module !== 'undefined' && typeof exports === 'object') { + module.exports = marked; + } else if (typeof define === 'function' && define.amd) { + define(function() { + return marked; + }); + } else { + this.marked = marked; + } + }).call(function() { + return this || (typeof window !== 'undefined' ? window : global); + }()); + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("18c", ["18b"], true, function($__require, exports, module) { + ; + var global = this, + __define = global.define; + global.define = undefined; + module.exports = $__require('18b'); + global.define = __define; + return module.exports; +}); + +$__System.register('12', ['6', '7', '8', '9', '14', '26', '176', '177', '178', '179', '180', '181', '182', '183', '184', '185', '186', '187', '188', '189', '2b', '3f', 'f', '17a', '17b', '17c', '17d', '17e', '17f', '18a', '18c'], function (_export) { + var _get, _inherits, _createClass, _classCallCheck, Pipe, _Object$keys, Prism, isString, stringify, isBlank, BaseException, JsonPointer, marked, InvalidPipeArgumentException, KeysPipe, ValuesPipe, JsonPointerEscapePipe, MarkedPipe, langMap, PrismPipe; return { setters: [function (_) { @@ -36606,21 +37255,21 @@ $__System.register('f', ['4', '5', '6', '7', '11', '22', '28', '40', '174', '176 _classCallCheck = _3['default']; }, function (_6) { Pipe = _6.Pipe; - }, function (_7) { - isString = _7.isString; - stringify = _7.stringify; - isBlank = _7.isBlank; }, function (_5) { _Object$keys = _5['default']; - }, function (_8) { - BaseException = _8.BaseException; - }, function (_9) { - marked = _9['default']; - }, function (_10) { - Prism = _10['default']; - }, function (_11) {}, function (_12) {}, function (_13) {}, function (_14) {}, function (_15) {}, function (_16) {}, function (_17) {}, function (_18) {}, function (_19) {}, function (_20) {}, function (_21) {}, function (_22) {}, function (_23) {}, function (_c) { - JsonPointer = _c.JsonPointer; - }, function (_a) {}, function (_b) {}, function (_c2) {}, function (_d) {}, function (_e) {}, function (_f) {}, function (_a2) {}], + }, function (_7) { + Prism = _7['default']; + }, function (_8) {}, function (_9) {}, function (_10) {}, function (_11) {}, function (_12) {}, function (_13) {}, function (_14) {}, function (_15) {}, function (_16) {}, function (_17) {}, function (_18) {}, function (_19) {}, function (_20) {}, function (_b) { + isString = _b.isString; + stringify = _b.stringify; + isBlank = _b.isBlank; + }, function (_f) { + BaseException = _f.BaseException; + }, function (_f2) { + JsonPointer = _f2.JsonPointer; + }, function (_a) {}, function (_b2) {}, function (_c) {}, function (_d) {}, function (_e) {}, function (_f3) {}, function (_a2) {}, function (_c2) { + marked = _c2['default']; + }], execute: function () { 'use strict'; @@ -36784,8 +37433,8 @@ $__System.register('f', ['4', '5', '6', '7', '11', '22', '28', '40', '174', '176 }); //import 'prismjs/components/prism-scala.js'; -$__System.register('3', ['6', '7', '11', '21', '24', '28', '36', '9b', '1d', 'c', 'f'], function (_export) { - var _createClass, _classCallCheck, Component, View, OnInit, OnDestroy, ChangeDetectionStrategy, _Object$assign, CORE_DIRECTIVES, JsonPipe, AsyncPipe, _Object$keys, _getIterator, _toConsumableArray, SchemaManager, JsonPointer, MarkedPipe, JsonPointerEscapePipe, commonInputs, BaseComponent; +$__System.register('5', ['8', '9', '12', '14', '22', '26', '35', '96', 'a1', '1f', 'f'], function (_export) { + var _createClass, _classCallCheck, MarkedPipe, JsonPointerEscapePipe, Component, View, OnInit, OnDestroy, ChangeDetectionStrategy, CORE_DIRECTIVES, JsonPipe, AsyncPipe, _Object$keys, _getIterator, _Object$assign, _toConsumableArray, SchemaManager, JsonPointer, commonInputs, BaseComponent; // json pointer to the schema chunk @@ -36864,14 +37513,15 @@ $__System.register('3', ['6', '7', '11', '21', '24', '28', '36', '9b', '1d', 'c' _createClass = _['default']; }, function (_2) { _classCallCheck = _2['default']; + }, function (_8) { + MarkedPipe = _8.MarkedPipe; + JsonPointerEscapePipe = _8.JsonPointerEscapePipe; }, function (_6) { Component = _6.Component; View = _6.View; OnInit = _6.OnInit; OnDestroy = _6.OnDestroy; ChangeDetectionStrategy = _6.ChangeDetectionStrategy; - }, function (_3) { - _Object$assign = _3['default']; }, function (_7) { CORE_DIRECTIVES = _7.CORE_DIRECTIVES; JsonPipe = _7.JsonPipe; @@ -36880,28 +37530,28 @@ $__System.register('3', ['6', '7', '11', '21', '24', '28', '36', '9b', '1d', 'c' _Object$keys = _4['default']; }, function (_5) { _getIterator = _5['default']; - }, function (_b) { - _toConsumableArray = _b['default']; - }, function (_d) { - SchemaManager = _d['default']; - }, function (_c) { - JsonPointer = _c['default']; + }, function (_3) { + _Object$assign = _3['default']; + }, function (_a1) { + _toConsumableArray = _a1['default']; }, function (_f) { - MarkedPipe = _f.MarkedPipe; - JsonPointerEscapePipe = _f.JsonPointerEscapePipe; + SchemaManager = _f['default']; + }, function (_f2) { + JsonPointer = _f2['default']; }], execute: function () { - - // common inputs for all components 'use strict'; _export('RedocComponent', RedocComponent); + _export('SchemaManager', SchemaManager); + + // common inputs for all components commonInputs = ['pointer']; BaseComponent = (function () { function BaseComponent(schemaMgr) { - _classCallCheck(this, BaseComponent); + _classCallCheck(this, _BaseComponent); this.schemaMgr = schemaMgr; this.schema = schemaMgr.schema; @@ -37073,16 +37723,16 @@ $__System.register('3', ['6', '7', '11', '21', '24', '28', '36', '9b', '1d', 'c' value: function destroy() {} }]); + var _BaseComponent = BaseComponent; + BaseComponent = Reflect.metadata('parameters', [[SchemaManager]])(BaseComponent) || BaseComponent; return BaseComponent; })(); _export('BaseComponent', BaseComponent); - - BaseComponent.parameters = [[SchemaManager]]; } }; }); -$__System.registerDynamic("18b", ["22", "67", "11", "18c"], true, function($__require, exports, module) { +$__System.registerDynamic("18d", ["2b", "62", "14", "18e"], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -37104,10 +37754,10 @@ $__System.registerDynamic("18b", ["22", "67", "11", "18c"], true, function($__re if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; - var lang_1 = $__require('22'); - var async_1 = $__require('67'); - var core_1 = $__require('11'); - var invalid_pipe_argument_exception_1 = $__require('18c'); + var lang_1 = $__require('2b'); + var async_1 = $__require('62'); + var core_1 = $__require('14'); + var invalid_pipe_argument_exception_1 = $__require('18e'); var ObservableStrategy = (function() { function ObservableStrategy() {} ObservableStrategy.prototype.createSubscription = function(async, updateLatestValue) { @@ -37153,6 +37803,7 @@ $__System.registerDynamic("18b", ["22", "67", "11", "18c"], true, function($__re if (lang_1.isPresent(obj)) { this._subscribe(obj); } + this._latestReturnedValue = this._latestValue; return this._latestValue; } if (obj !== this._obj) { @@ -37207,7 +37858,7 @@ $__System.registerDynamic("18b", ["22", "67", "11", "18c"], true, function($__re return module.exports; }); -$__System.registerDynamic("18d", ["22", "11", "18c"], true, function($__require, exports, module) { +$__System.registerDynamic("18f", ["2b", "14", "18e"], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -37229,9 +37880,9 @@ $__System.registerDynamic("18d", ["22", "11", "18c"], true, function($__require, if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; - var lang_1 = $__require('22'); - var core_1 = $__require('11'); - var invalid_pipe_argument_exception_1 = $__require('18c'); + var lang_1 = $__require('2b'); + var core_1 = $__require('14'); + var invalid_pipe_argument_exception_1 = $__require('18e'); var UpperCasePipe = (function() { function UpperCasePipe() {} UpperCasePipe.prototype.transform = function(value, args) { @@ -37253,7 +37904,7 @@ $__System.registerDynamic("18d", ["22", "11", "18c"], true, function($__require, return module.exports; }); -$__System.registerDynamic("18e", ["22", "11", "18c"], true, function($__require, exports, module) { +$__System.registerDynamic("190", ["2b", "14", "18e"], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -37275,9 +37926,9 @@ $__System.registerDynamic("18e", ["22", "11", "18c"], true, function($__require, if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; - var lang_1 = $__require('22'); - var core_1 = $__require('11'); - var invalid_pipe_argument_exception_1 = $__require('18c'); + var lang_1 = $__require('2b'); + var core_1 = $__require('14'); + var invalid_pipe_argument_exception_1 = $__require('18e'); var LowerCasePipe = (function() { function LowerCasePipe() {} LowerCasePipe.prototype.transform = function(value, args) { @@ -37299,7 +37950,7 @@ $__System.registerDynamic("18e", ["22", "11", "18c"], true, function($__require, return module.exports; }); -$__System.registerDynamic("18f", ["22", "11"], true, function($__require, exports, module) { +$__System.registerDynamic("191", ["2b", "14"], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -37321,8 +37972,8 @@ $__System.registerDynamic("18f", ["22", "11"], true, function($__require, export if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; - var lang_1 = $__require('22'); - var core_1 = $__require('11'); + var lang_1 = $__require('2b'); + var core_1 = $__require('14'); var JsonPipe = (function() { function JsonPipe() {} JsonPipe.prototype.transform = function(value, args) { @@ -37342,7 +37993,7 @@ $__System.registerDynamic("18f", ["22", "11"], true, function($__require, export return module.exports; }); -$__System.registerDynamic("190", ["22", "40", "3b", "11", "18c"], true, function($__require, exports, module) { +$__System.registerDynamic("192", ["2b", "3f", "3a", "14", "18e"], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -37364,11 +38015,11 @@ $__System.registerDynamic("190", ["22", "40", "3b", "11", "18c"], true, function if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; - var lang_1 = $__require('22'); - var exceptions_1 = $__require('40'); - var collection_1 = $__require('3b'); - var core_1 = $__require('11'); - var invalid_pipe_argument_exception_1 = $__require('18c'); + var lang_1 = $__require('2b'); + var exceptions_1 = $__require('3f'); + var collection_1 = $__require('3a'); + var core_1 = $__require('14'); + var invalid_pipe_argument_exception_1 = $__require('18e'); var SlicePipe = (function() { function SlicePipe() {} SlicePipe.prototype.transform = function(value, args) { @@ -37404,7 +38055,7 @@ $__System.registerDynamic("190", ["22", "40", "3b", "11", "18c"], true, function return module.exports; }); -$__System.registerDynamic("191", ["22", "192", "11", "3b", "18c"], true, function($__require, exports, module) { +$__System.registerDynamic("193", ["2b", "194", "14", "3a", "18e"], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -37426,11 +38077,11 @@ $__System.registerDynamic("191", ["22", "192", "11", "3b", "18c"], true, functio if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; - var lang_1 = $__require('22'); - var intl_1 = $__require('192'); - var core_1 = $__require('11'); - var collection_1 = $__require('3b'); - var invalid_pipe_argument_exception_1 = $__require('18c'); + var lang_1 = $__require('2b'); + var intl_1 = $__require('194'); + var core_1 = $__require('14'); + var collection_1 = $__require('3a'); + var invalid_pipe_argument_exception_1 = $__require('18e'); var defaultLocale = 'en-US'; var DatePipe = (function() { function DatePipe() {} @@ -37473,7 +38124,7 @@ $__System.registerDynamic("191", ["22", "192", "11", "3b", "18c"], true, functio return module.exports; }); -$__System.registerDynamic("192", [], true, function($__require, exports, module) { +$__System.registerDynamic("194", [], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -37594,7 +38245,7 @@ $__System.registerDynamic("192", [], true, function($__require, exports, module) return module.exports; }); -$__System.registerDynamic("18c", ["22", "40"], true, function($__require, exports, module) { +$__System.registerDynamic("18e", ["2b", "3f"], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -37609,8 +38260,8 @@ $__System.registerDynamic("18c", ["22", "40"], true, function($__require, export } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; - var lang_1 = $__require('22'); - var exceptions_1 = $__require('40'); + var lang_1 = $__require('2b'); + var exceptions_1 = $__require('3f'); var InvalidPipeArgumentException = (function(_super) { __extends(InvalidPipeArgumentException, _super); function InvalidPipeArgumentException(type, value) { @@ -37623,7 +38274,7 @@ $__System.registerDynamic("18c", ["22", "40"], true, function($__require, export return module.exports; }); -$__System.registerDynamic("193", ["22", "40", "192", "11", "3b", "18c"], true, function($__require, exports, module) { +$__System.registerDynamic("195", ["2b", "3f", "194", "14", "3a", "18e"], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -37654,12 +38305,12 @@ $__System.registerDynamic("193", ["22", "40", "192", "11", "3b", "18c"], true, f if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; - var lang_1 = $__require('22'); - var exceptions_1 = $__require('40'); - var intl_1 = $__require('192'); - var core_1 = $__require('11'); - var collection_1 = $__require('3b'); - var invalid_pipe_argument_exception_1 = $__require('18c'); + var lang_1 = $__require('2b'); + var exceptions_1 = $__require('3f'); + var intl_1 = $__require('194'); + var core_1 = $__require('14'); + var collection_1 = $__require('3a'); + var invalid_pipe_argument_exception_1 = $__require('18e'); var defaultLocale = 'en-US'; var _re = lang_1.RegExpWrapper.create('^(\\d+)?\\.((\\d+)(\\-(\\d+))?)?$'); var NumberPipe = (function() { @@ -37751,43 +38402,43 @@ $__System.registerDynamic("193", ["22", "40", "192", "11", "3b", "18c"], true, f return module.exports; }); -$__System.registerDynamic("194", ["18b", "18d", "18e", "18f", "190", "191", "193", "22"], true, function($__require, exports, module) { +$__System.registerDynamic("196", ["18d", "18f", "190", "191", "192", "193", "195", "2b"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var async_pipe_1 = $__require('18b'); - var uppercase_pipe_1 = $__require('18d'); - var lowercase_pipe_1 = $__require('18e'); - var json_pipe_1 = $__require('18f'); - var slice_pipe_1 = $__require('190'); - var date_pipe_1 = $__require('191'); - var number_pipe_1 = $__require('193'); - var lang_1 = $__require('22'); - var async_pipe_2 = $__require('18b'); + var async_pipe_1 = $__require('18d'); + var uppercase_pipe_1 = $__require('18f'); + var lowercase_pipe_1 = $__require('190'); + var json_pipe_1 = $__require('191'); + var slice_pipe_1 = $__require('192'); + var date_pipe_1 = $__require('193'); + var number_pipe_1 = $__require('195'); + var lang_1 = $__require('2b'); + var async_pipe_2 = $__require('18d'); exports.AsyncPipe = async_pipe_2.AsyncPipe; - var date_pipe_2 = $__require('191'); + var date_pipe_2 = $__require('193'); exports.DatePipe = date_pipe_2.DatePipe; - var json_pipe_2 = $__require('18f'); + var json_pipe_2 = $__require('191'); exports.JsonPipe = json_pipe_2.JsonPipe; - var slice_pipe_2 = $__require('190'); + var slice_pipe_2 = $__require('192'); exports.SlicePipe = slice_pipe_2.SlicePipe; - var lowercase_pipe_2 = $__require('18e'); + var lowercase_pipe_2 = $__require('190'); exports.LowerCasePipe = lowercase_pipe_2.LowerCasePipe; - var number_pipe_2 = $__require('193'); + var number_pipe_2 = $__require('195'); exports.NumberPipe = number_pipe_2.NumberPipe; exports.DecimalPipe = number_pipe_2.DecimalPipe; exports.PercentPipe = number_pipe_2.PercentPipe; exports.CurrencyPipe = number_pipe_2.CurrencyPipe; - var uppercase_pipe_2 = $__require('18d'); + var uppercase_pipe_2 = $__require('18f'); exports.UpperCasePipe = uppercase_pipe_2.UpperCasePipe; exports.COMMON_PIPES = lang_1.CONST_EXPR([async_pipe_1.AsyncPipe, uppercase_pipe_1.UpperCasePipe, lowercase_pipe_1.LowerCasePipe, json_pipe_1.JsonPipe, slice_pipe_1.SlicePipe, number_pipe_1.DecimalPipe, number_pipe_1.PercentPipe, number_pipe_1.CurrencyPipe, date_pipe_1.DatePipe]); global.define = __define; return module.exports; }); -$__System.registerDynamic("195", ["22", "67", "11", "196", "197", "198", "199", "19a"], true, function($__require, exports, module) { +$__System.registerDynamic("197", ["2b", "62", "14", "198", "199", "19a", "19b", "19c"], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -37823,14 +38474,14 @@ $__System.registerDynamic("195", ["22", "67", "11", "196", "197", "198", "199", decorator(target, key, paramIndex); }; }; - var lang_1 = $__require('22'); - var async_1 = $__require('67'); - var core_1 = $__require('11'); - var control_container_1 = $__require('196'); - var ng_control_1 = $__require('197'); - var control_value_accessor_1 = $__require('198'); - var shared_1 = $__require('199'); - var validators_1 = $__require('19a'); + var lang_1 = $__require('2b'); + var async_1 = $__require('62'); + var core_1 = $__require('14'); + var control_container_1 = $__require('198'); + var ng_control_1 = $__require('199'); + var control_value_accessor_1 = $__require('19a'); + var shared_1 = $__require('19b'); + var validators_1 = $__require('19c'); var controlNameBinding = lang_1.CONST_EXPR(new core_1.Provider(ng_control_1.NgControl, {useExisting: core_1.forwardRef(function() { return NgControlName; })})); @@ -37911,7 +38562,7 @@ $__System.registerDynamic("195", ["22", "67", "11", "196", "197", "198", "199", return module.exports; }); -$__System.registerDynamic("19b", ["22", "3b", "67", "11", "197", "19a", "198", "199"], true, function($__require, exports, module) { +$__System.registerDynamic("19d", ["2b", "3a", "62", "14", "199", "19c", "19a", "19b"], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -37947,14 +38598,14 @@ $__System.registerDynamic("19b", ["22", "3b", "67", "11", "197", "19a", "198", " decorator(target, key, paramIndex); }; }; - var lang_1 = $__require('22'); - var collection_1 = $__require('3b'); - var async_1 = $__require('67'); - var core_1 = $__require('11'); - var ng_control_1 = $__require('197'); - var validators_1 = $__require('19a'); - var control_value_accessor_1 = $__require('198'); - var shared_1 = $__require('199'); + var lang_1 = $__require('2b'); + var collection_1 = $__require('3a'); + var async_1 = $__require('62'); + var core_1 = $__require('14'); + var ng_control_1 = $__require('199'); + var validators_1 = $__require('19c'); + var control_value_accessor_1 = $__require('19a'); + var shared_1 = $__require('19b'); var formControlBinding = lang_1.CONST_EXPR(new core_1.Provider(ng_control_1.NgControl, {useExisting: core_1.forwardRef(function() { return NgFormControl; })})); @@ -38026,7 +38677,7 @@ $__System.registerDynamic("19b", ["22", "3b", "67", "11", "197", "19a", "198", " return module.exports; }); -$__System.registerDynamic("19c", ["22", "67", "11", "198", "197", "19d", "19a", "199"], true, function($__require, exports, module) { +$__System.registerDynamic("19e", ["2b", "62", "14", "19a", "199", "19f", "19c", "19b"], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -38062,14 +38713,14 @@ $__System.registerDynamic("19c", ["22", "67", "11", "198", "197", "19d", "19a", decorator(target, key, paramIndex); }; }; - var lang_1 = $__require('22'); - var async_1 = $__require('67'); - var core_1 = $__require('11'); - var control_value_accessor_1 = $__require('198'); - var ng_control_1 = $__require('197'); - var model_1 = $__require('19d'); - var validators_1 = $__require('19a'); - var shared_1 = $__require('199'); + var lang_1 = $__require('2b'); + var async_1 = $__require('62'); + var core_1 = $__require('14'); + var control_value_accessor_1 = $__require('19a'); + var ng_control_1 = $__require('199'); + var model_1 = $__require('19f'); + var validators_1 = $__require('19c'); + var shared_1 = $__require('19b'); var formControlBinding = lang_1.CONST_EXPR(new core_1.Provider(ng_control_1.NgControl, {useExisting: core_1.forwardRef(function() { return NgModel; })})); @@ -38141,7 +38792,7 @@ $__System.registerDynamic("19c", ["22", "67", "11", "198", "197", "19d", "19a", return module.exports; }); -$__System.registerDynamic("19e", ["11", "22", "196", "199", "19a"], true, function($__require, exports, module) { +$__System.registerDynamic("1a0", ["14", "2b", "198", "19b", "19c"], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -38177,11 +38828,11 @@ $__System.registerDynamic("19e", ["11", "22", "196", "199", "19a"], true, functi decorator(target, key, paramIndex); }; }; - var core_1 = $__require('11'); - var lang_1 = $__require('22'); - var control_container_1 = $__require('196'); - var shared_1 = $__require('199'); - var validators_1 = $__require('19a'); + var core_1 = $__require('14'); + var lang_1 = $__require('2b'); + var control_container_1 = $__require('198'); + var shared_1 = $__require('19b'); + var validators_1 = $__require('19c'); var controlGroupProvider = lang_1.CONST_EXPR(new core_1.Provider(control_container_1.ControlContainer, {useExisting: core_1.forwardRef(function() { return NgControlGroup; })})); @@ -38247,7 +38898,7 @@ $__System.registerDynamic("19e", ["11", "22", "196", "199", "19a"], true, functi return module.exports; }); -$__System.registerDynamic("19f", ["22", "3b", "67", "11", "196", "199", "19a"], true, function($__require, exports, module) { +$__System.registerDynamic("1a1", ["2b", "3a", "62", "14", "198", "19b", "19c"], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -38283,13 +38934,13 @@ $__System.registerDynamic("19f", ["22", "3b", "67", "11", "196", "199", "19a"], decorator(target, key, paramIndex); }; }; - var lang_1 = $__require('22'); - var collection_1 = $__require('3b'); - var async_1 = $__require('67'); - var core_1 = $__require('11'); - var control_container_1 = $__require('196'); - var shared_1 = $__require('199'); - var validators_1 = $__require('19a'); + var lang_1 = $__require('2b'); + var collection_1 = $__require('3a'); + var async_1 = $__require('62'); + var core_1 = $__require('14'); + var control_container_1 = $__require('198'); + var shared_1 = $__require('19b'); + var validators_1 = $__require('19c'); var formDirectiveProvider = lang_1.CONST_EXPR(new core_1.Provider(control_container_1.ControlContainer, {useExisting: core_1.forwardRef(function() { return NgFormModel; })})); @@ -38388,7 +39039,7 @@ $__System.registerDynamic("19f", ["22", "3b", "67", "11", "196", "199", "19a"], return module.exports; }); -$__System.registerDynamic("196", ["1a0"], true, function($__require, exports, module) { +$__System.registerDynamic("198", ["1a2"], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -38403,7 +39054,7 @@ $__System.registerDynamic("196", ["1a0"], true, function($__require, exports, mo } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; - var abstract_control_directive_1 = $__require('1a0'); + var abstract_control_directive_1 = $__require('1a2'); var ControlContainer = (function(_super) { __extends(ControlContainer, _super); function ControlContainer() { @@ -38430,7 +39081,7 @@ $__System.registerDynamic("196", ["1a0"], true, function($__require, exports, mo return module.exports; }); -$__System.registerDynamic("1a1", [], true, function($__require, exports, module) { +$__System.registerDynamic("1a3", [], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -38450,21 +39101,22 @@ $__System.registerDynamic("1a1", [], true, function($__require, exports, module) return module.exports; }); -$__System.registerDynamic("199", ["3b", "22", "40", "19a", "1a2", "1a3", "1a4", "1a5", "1a1"], true, function($__require, exports, module) { +$__System.registerDynamic("19b", ["3a", "2b", "3f", "19c", "1a4", "1a5", "1a6", "1a7", "1a8", "1a3"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var collection_1 = $__require('3b'); - var lang_1 = $__require('22'); - var exceptions_1 = $__require('40'); - var validators_1 = $__require('19a'); - var default_value_accessor_1 = $__require('1a2'); - var number_value_accessor_1 = $__require('1a3'); - var checkbox_value_accessor_1 = $__require('1a4'); - var select_control_value_accessor_1 = $__require('1a5'); - var normalize_validator_1 = $__require('1a1'); + var collection_1 = $__require('3a'); + var lang_1 = $__require('2b'); + var exceptions_1 = $__require('3f'); + var validators_1 = $__require('19c'); + var default_value_accessor_1 = $__require('1a4'); + var number_value_accessor_1 = $__require('1a5'); + var checkbox_value_accessor_1 = $__require('1a6'); + var select_control_value_accessor_1 = $__require('1a7'); + var radio_control_value_accessor_1 = $__require('1a8'); + var normalize_validator_1 = $__require('1a3'); function controlPath(name, parent) { var p = collection_1.ListWrapper.clone(parent.path); p.push(name); @@ -38527,9 +39179,9 @@ $__System.registerDynamic("199", ["3b", "22", "40", "19a", "1a2", "1a3", "1a4", var builtinAccessor; var customAccessor; valueAccessors.forEach(function(v) { - if (v instanceof default_value_accessor_1.DefaultValueAccessor) { + if (lang_1.hasConstructor(v, default_value_accessor_1.DefaultValueAccessor)) { defaultAccessor = v; - } else if (v instanceof checkbox_value_accessor_1.CheckboxControlValueAccessor || v instanceof number_value_accessor_1.NumberValueAccessor || v instanceof select_control_value_accessor_1.SelectControlValueAccessor) { + } else if (lang_1.hasConstructor(v, checkbox_value_accessor_1.CheckboxControlValueAccessor) || lang_1.hasConstructor(v, number_value_accessor_1.NumberValueAccessor) || lang_1.hasConstructor(v, select_control_value_accessor_1.SelectControlValueAccessor) || lang_1.hasConstructor(v, radio_control_value_accessor_1.RadioControlValueAccessor)) { if (lang_1.isPresent(builtinAccessor)) _throwError(dir, "More than one built-in value accessor matches"); builtinAccessor = v; @@ -38553,7 +39205,7 @@ $__System.registerDynamic("199", ["3b", "22", "40", "19a", "1a2", "1a3", "1a4", return module.exports; }); -$__System.registerDynamic("1a6", ["67", "3b", "22", "11", "196", "19d", "199", "19a"], true, function($__require, exports, module) { +$__System.registerDynamic("1a9", ["62", "3a", "2b", "14", "198", "19f", "19b", "19c"], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -38589,14 +39241,14 @@ $__System.registerDynamic("1a6", ["67", "3b", "22", "11", "196", "19d", "199", " decorator(target, key, paramIndex); }; }; - var async_1 = $__require('67'); - var collection_1 = $__require('3b'); - var lang_1 = $__require('22'); - var core_1 = $__require('11'); - var control_container_1 = $__require('196'); - var model_1 = $__require('19d'); - var shared_1 = $__require('199'); - var validators_1 = $__require('19a'); + var async_1 = $__require('62'); + var collection_1 = $__require('3a'); + var lang_1 = $__require('2b'); + var core_1 = $__require('14'); + var control_container_1 = $__require('198'); + var model_1 = $__require('19f'); + var shared_1 = $__require('19b'); + var validators_1 = $__require('19c'); var formDirectiveProvider = lang_1.CONST_EXPR(new core_1.Provider(control_container_1.ControlContainer, {useExisting: core_1.forwardRef(function() { return NgForm; })})); @@ -38710,7 +39362,7 @@ $__System.registerDynamic("1a6", ["67", "3b", "22", "11", "196", "19d", "199", " return module.exports; }); -$__System.registerDynamic("1a2", ["11", "198", "22"], true, function($__require, exports, module) { +$__System.registerDynamic("1a4", ["14", "19a", "2b"], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -38732,9 +39384,9 @@ $__System.registerDynamic("1a2", ["11", "198", "22"], true, function($__require, if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; - var core_1 = $__require('11'); - var control_value_accessor_1 = $__require('198'); - var lang_1 = $__require('22'); + var core_1 = $__require('14'); + var control_value_accessor_1 = $__require('19a'); + var lang_1 = $__require('2b'); var DEFAULT_VALUE_ACCESSOR = lang_1.CONST_EXPR(new core_1.Provider(control_value_accessor_1.NG_VALUE_ACCESSOR, { useExisting: core_1.forwardRef(function() { return DefaultValueAccessor; @@ -38750,7 +39402,7 @@ $__System.registerDynamic("1a2", ["11", "198", "22"], true, function($__require, } DefaultValueAccessor.prototype.writeValue = function(value) { var normalizedValue = lang_1.isBlank(value) ? '' : value; - this._renderer.setElementProperty(this._elementRef, 'value', normalizedValue); + this._renderer.setElementProperty(this._elementRef.nativeElement, 'value', normalizedValue); }; DefaultValueAccessor.prototype.registerOnChange = function(fn) { this.onChange = fn; @@ -38773,7 +39425,7 @@ $__System.registerDynamic("1a2", ["11", "198", "22"], true, function($__require, return module.exports; }); -$__System.registerDynamic("1a4", ["11", "198", "22"], true, function($__require, exports, module) { +$__System.registerDynamic("1a6", ["14", "19a", "2b"], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -38795,9 +39447,9 @@ $__System.registerDynamic("1a4", ["11", "198", "22"], true, function($__require, if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; - var core_1 = $__require('11'); - var control_value_accessor_1 = $__require('198'); - var lang_1 = $__require('22'); + var core_1 = $__require('14'); + var control_value_accessor_1 = $__require('19a'); + var lang_1 = $__require('2b'); var CHECKBOX_VALUE_ACCESSOR = lang_1.CONST_EXPR(new core_1.Provider(control_value_accessor_1.NG_VALUE_ACCESSOR, { useExisting: core_1.forwardRef(function() { return CheckboxControlValueAccessor; @@ -38812,7 +39464,7 @@ $__System.registerDynamic("1a4", ["11", "198", "22"], true, function($__require, this.onTouched = function() {}; } CheckboxControlValueAccessor.prototype.writeValue = function(value) { - this._renderer.setElementProperty(this._elementRef, 'checked', value); + this._renderer.setElementProperty(this._elementRef.nativeElement, 'checked', value); }; CheckboxControlValueAccessor.prototype.registerOnChange = function(fn) { this.onChange = fn; @@ -38826,7 +39478,7 @@ $__System.registerDynamic("1a4", ["11", "198", "22"], true, function($__require, '(change)': 'onChange($event.target.checked)', '(blur)': 'onTouched()' }, - bindings: [CHECKBOX_VALUE_ACCESSOR] + providers: [CHECKBOX_VALUE_ACCESSOR] }), __metadata('design:paramtypes', [core_1.Renderer, core_1.ElementRef])], CheckboxControlValueAccessor); return CheckboxControlValueAccessor; })(); @@ -38835,7 +39487,7 @@ $__System.registerDynamic("1a4", ["11", "198", "22"], true, function($__require, return module.exports; }); -$__System.registerDynamic("1a3", ["11", "198", "22"], true, function($__require, exports, module) { +$__System.registerDynamic("1a5", ["14", "19a", "2b"], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -38857,9 +39509,9 @@ $__System.registerDynamic("1a3", ["11", "198", "22"], true, function($__require, if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; - var core_1 = $__require('11'); - var control_value_accessor_1 = $__require('198'); - var lang_1 = $__require('22'); + var core_1 = $__require('14'); + var control_value_accessor_1 = $__require('19a'); + var lang_1 = $__require('2b'); var NUMBER_VALUE_ACCESSOR = lang_1.CONST_EXPR(new core_1.Provider(control_value_accessor_1.NG_VALUE_ACCESSOR, { useExisting: core_1.forwardRef(function() { return NumberValueAccessor; @@ -38874,7 +39526,7 @@ $__System.registerDynamic("1a3", ["11", "198", "22"], true, function($__require, this.onTouched = function() {}; } NumberValueAccessor.prototype.writeValue = function(value) { - this._renderer.setElementProperty(this._elementRef, 'value', value); + this._renderer.setElementProperty(this._elementRef.nativeElement, 'value', value); }; NumberValueAccessor.prototype.registerOnChange = function(fn) { this.onChange = function(value) { @@ -38900,7 +39552,7 @@ $__System.registerDynamic("1a3", ["11", "198", "22"], true, function($__require, return module.exports; }); -$__System.registerDynamic("1a7", ["11", "197", "22"], true, function($__require, exports, module) { +$__System.registerDynamic("1aa", ["14", "199", "2b"], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -38927,9 +39579,9 @@ $__System.registerDynamic("1a7", ["11", "197", "22"], true, function($__require, decorator(target, key, paramIndex); }; }; - var core_1 = $__require('11'); - var ng_control_1 = $__require('197'); - var lang_1 = $__require('22'); + var core_1 = $__require('14'); + var ng_control_1 = $__require('199'); + var lang_1 = $__require('2b'); var NgControlStatus = (function() { function NgControlStatus(cd) { this._cd = cd; @@ -38994,20 +39646,7 @@ $__System.registerDynamic("1a7", ["11", "197", "22"], true, function($__require, return module.exports; }); -$__System.registerDynamic("198", ["11", "22"], true, function($__require, exports, module) { - "use strict"; - ; - var global = this, - __define = global.define; - global.define = undefined; - var core_1 = $__require('11'); - var lang_1 = $__require('22'); - exports.NG_VALUE_ACCESSOR = lang_1.CONST_EXPR(new core_1.OpaqueToken("NgValueAccessor")); - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("1a5", ["11", "67", "198", "22"], true, function($__require, exports, module) { +$__System.registerDynamic("1a7", ["14", "62", "19a", "2b"], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -39034,10 +39673,10 @@ $__System.registerDynamic("1a5", ["11", "67", "198", "22"], true, function($__re decorator(target, key, paramIndex); }; }; - var core_1 = $__require('11'); - var async_1 = $__require('67'); - var control_value_accessor_1 = $__require('198'); - var lang_1 = $__require('22'); + var core_1 = $__require('14'); + var async_1 = $__require('62'); + var control_value_accessor_1 = $__require('19a'); + var lang_1 = $__require('2b'); var SELECT_VALUE_ACCESSOR = lang_1.CONST_EXPR(new core_1.Provider(control_value_accessor_1.NG_VALUE_ACCESSOR, { useExisting: core_1.forwardRef(function() { return SelectControlValueAccessor; @@ -39060,7 +39699,7 @@ $__System.registerDynamic("1a5", ["11", "67", "198", "22"], true, function($__re } SelectControlValueAccessor.prototype.writeValue = function(value) { this.value = value; - this._renderer.setElementProperty(this._elementRef, 'value', value); + this._renderer.setElementProperty(this._elementRef.nativeElement, 'value', value); }; SelectControlValueAccessor.prototype.registerOnChange = function(fn) { this.onChange = fn; @@ -39077,7 +39716,6 @@ $__System.registerDynamic("1a5", ["11", "67", "198", "22"], true, function($__re SelectControlValueAccessor = __decorate([core_1.Directive({ selector: 'select[ngControl],select[ngFormControl],select[ngModel]', host: { - '(change)': 'onChange($event.target.value)', '(input)': 'onChange($event.target.value)', '(blur)': 'onTouched()' }, @@ -39090,202 +39728,81 @@ $__System.registerDynamic("1a5", ["11", "67", "198", "22"], true, function($__re return module.exports; }); -$__System.registerDynamic("1a0", ["22", "40"], true, function($__require, exports, module) { +$__System.registerDynamic("1ab", ["2b", "197", "19d", "19e", "1a0", "1a1", "1a9", "1a4", "1a6", "1a5", "1a8", "1aa", "1a7", "1ac", "199"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var lang_1 = $__require('22'); - var exceptions_1 = $__require('40'); - var AbstractControlDirective = (function() { - function AbstractControlDirective() {} - Object.defineProperty(AbstractControlDirective.prototype, "control", { - get: function() { - return exceptions_1.unimplemented(); - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(AbstractControlDirective.prototype, "value", { - get: function() { - return lang_1.isPresent(this.control) ? this.control.value : null; - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(AbstractControlDirective.prototype, "valid", { - get: function() { - return lang_1.isPresent(this.control) ? this.control.valid : null; - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(AbstractControlDirective.prototype, "errors", { - get: function() { - return lang_1.isPresent(this.control) ? this.control.errors : null; - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(AbstractControlDirective.prototype, "pristine", { - get: function() { - return lang_1.isPresent(this.control) ? this.control.pristine : null; - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(AbstractControlDirective.prototype, "dirty", { - get: function() { - return lang_1.isPresent(this.control) ? this.control.dirty : null; - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(AbstractControlDirective.prototype, "touched", { - get: function() { - return lang_1.isPresent(this.control) ? this.control.touched : null; - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(AbstractControlDirective.prototype, "untouched", { - get: function() { - return lang_1.isPresent(this.control) ? this.control.untouched : null; - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(AbstractControlDirective.prototype, "path", { - get: function() { - return null; - }, - enumerable: true, - configurable: true - }); - return AbstractControlDirective; - })(); - exports.AbstractControlDirective = AbstractControlDirective; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("197", ["1a0", "40"], true, function($__require, exports, module) { - "use strict"; - ; - var global = this, - __define = global.define; - global.define = undefined; - var __extends = (this && this.__extends) || function(d, b) { - for (var p in b) - if (b.hasOwnProperty(p)) - d[p] = b[p]; - function __() { - this.constructor = d; - } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; - var abstract_control_directive_1 = $__require('1a0'); - var exceptions_1 = $__require('40'); - var NgControl = (function(_super) { - __extends(NgControl, _super); - function NgControl() { - _super.apply(this, arguments); - this.name = null; - this.valueAccessor = null; - } - Object.defineProperty(NgControl.prototype, "validator", { - get: function() { - return exceptions_1.unimplemented(); - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(NgControl.prototype, "asyncValidator", { - get: function() { - return exceptions_1.unimplemented(); - }, - enumerable: true, - configurable: true - }); - return NgControl; - })(abstract_control_directive_1.AbstractControlDirective); - exports.NgControl = NgControl; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("1a8", ["22", "195", "19b", "19c", "19e", "19f", "1a6", "1a2", "1a4", "1a3", "1a7", "1a5", "1a9", "197"], true, function($__require, exports, module) { - "use strict"; - ; - var global = this, - __define = global.define; - global.define = undefined; - var lang_1 = $__require('22'); - var ng_control_name_1 = $__require('195'); - var ng_form_control_1 = $__require('19b'); - var ng_model_1 = $__require('19c'); - var ng_control_group_1 = $__require('19e'); - var ng_form_model_1 = $__require('19f'); - var ng_form_1 = $__require('1a6'); - var default_value_accessor_1 = $__require('1a2'); - var checkbox_value_accessor_1 = $__require('1a4'); - var number_value_accessor_1 = $__require('1a3'); - var ng_control_status_1 = $__require('1a7'); - var select_control_value_accessor_1 = $__require('1a5'); - var validators_1 = $__require('1a9'); - var ng_control_name_2 = $__require('195'); + var lang_1 = $__require('2b'); + var ng_control_name_1 = $__require('197'); + var ng_form_control_1 = $__require('19d'); + var ng_model_1 = $__require('19e'); + var ng_control_group_1 = $__require('1a0'); + var ng_form_model_1 = $__require('1a1'); + var ng_form_1 = $__require('1a9'); + var default_value_accessor_1 = $__require('1a4'); + var checkbox_value_accessor_1 = $__require('1a6'); + var number_value_accessor_1 = $__require('1a5'); + var radio_control_value_accessor_1 = $__require('1a8'); + var ng_control_status_1 = $__require('1aa'); + var select_control_value_accessor_1 = $__require('1a7'); + var validators_1 = $__require('1ac'); + var ng_control_name_2 = $__require('197'); exports.NgControlName = ng_control_name_2.NgControlName; - var ng_form_control_2 = $__require('19b'); + var ng_form_control_2 = $__require('19d'); exports.NgFormControl = ng_form_control_2.NgFormControl; - var ng_model_2 = $__require('19c'); + var ng_model_2 = $__require('19e'); exports.NgModel = ng_model_2.NgModel; - var ng_control_group_2 = $__require('19e'); + var ng_control_group_2 = $__require('1a0'); exports.NgControlGroup = ng_control_group_2.NgControlGroup; - var ng_form_model_2 = $__require('19f'); + var ng_form_model_2 = $__require('1a1'); exports.NgFormModel = ng_form_model_2.NgFormModel; - var ng_form_2 = $__require('1a6'); + var ng_form_2 = $__require('1a9'); exports.NgForm = ng_form_2.NgForm; - var default_value_accessor_2 = $__require('1a2'); + var default_value_accessor_2 = $__require('1a4'); exports.DefaultValueAccessor = default_value_accessor_2.DefaultValueAccessor; - var checkbox_value_accessor_2 = $__require('1a4'); + var checkbox_value_accessor_2 = $__require('1a6'); exports.CheckboxControlValueAccessor = checkbox_value_accessor_2.CheckboxControlValueAccessor; - var number_value_accessor_2 = $__require('1a3'); + var radio_control_value_accessor_2 = $__require('1a8'); + exports.RadioControlValueAccessor = radio_control_value_accessor_2.RadioControlValueAccessor; + exports.RadioButtonState = radio_control_value_accessor_2.RadioButtonState; + var number_value_accessor_2 = $__require('1a5'); exports.NumberValueAccessor = number_value_accessor_2.NumberValueAccessor; - var ng_control_status_2 = $__require('1a7'); + var ng_control_status_2 = $__require('1aa'); exports.NgControlStatus = ng_control_status_2.NgControlStatus; - var select_control_value_accessor_2 = $__require('1a5'); + var select_control_value_accessor_2 = $__require('1a7'); exports.SelectControlValueAccessor = select_control_value_accessor_2.SelectControlValueAccessor; exports.NgSelectOption = select_control_value_accessor_2.NgSelectOption; - var validators_2 = $__require('1a9'); + var validators_2 = $__require('1ac'); exports.RequiredValidator = validators_2.RequiredValidator; exports.MinLengthValidator = validators_2.MinLengthValidator; exports.MaxLengthValidator = validators_2.MaxLengthValidator; - var ng_control_1 = $__require('197'); + var ng_control_1 = $__require('199'); exports.NgControl = ng_control_1.NgControl; - exports.FORM_DIRECTIVES = lang_1.CONST_EXPR([ng_control_name_1.NgControlName, ng_control_group_1.NgControlGroup, ng_form_control_1.NgFormControl, ng_model_1.NgModel, ng_form_model_1.NgFormModel, ng_form_1.NgForm, select_control_value_accessor_1.NgSelectOption, default_value_accessor_1.DefaultValueAccessor, number_value_accessor_1.NumberValueAccessor, checkbox_value_accessor_1.CheckboxControlValueAccessor, select_control_value_accessor_1.SelectControlValueAccessor, ng_control_status_1.NgControlStatus, validators_1.RequiredValidator, validators_1.MinLengthValidator, validators_1.MaxLengthValidator]); + exports.FORM_DIRECTIVES = lang_1.CONST_EXPR([ng_control_name_1.NgControlName, ng_control_group_1.NgControlGroup, ng_form_control_1.NgFormControl, ng_model_1.NgModel, ng_form_model_1.NgFormModel, ng_form_1.NgForm, select_control_value_accessor_1.NgSelectOption, default_value_accessor_1.DefaultValueAccessor, number_value_accessor_1.NumberValueAccessor, checkbox_value_accessor_1.CheckboxControlValueAccessor, select_control_value_accessor_1.SelectControlValueAccessor, radio_control_value_accessor_1.RadioControlValueAccessor, ng_control_status_1.NgControlStatus, validators_1.RequiredValidator, validators_1.MinLengthValidator, validators_1.MaxLengthValidator]); global.define = __define; return module.exports; }); -$__System.registerDynamic("19a", ["22", "8f", "67", "3b", "11", "38"], true, function($__require, exports, module) { +$__System.registerDynamic("19c", ["2b", "93", "62", "3a", "14", "37"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; (function(process) { 'use strict'; - var lang_1 = $__require('22'); - var promise_1 = $__require('8f'); - var async_1 = $__require('67'); - var collection_1 = $__require('3b'); - var core_1 = $__require('11'); + var lang_1 = $__require('2b'); + var promise_1 = $__require('93'); + var async_1 = $__require('62'); + var collection_1 = $__require('3a'); + var core_1 = $__require('14'); exports.NG_VALIDATORS = lang_1.CONST_EXPR(new core_1.OpaqueToken("NgValidators")); exports.NG_ASYNC_VALIDATORS = lang_1.CONST_EXPR(new core_1.OpaqueToken("NgAsyncValidators")); var Validators = (function() { function Validators() {} Validators.required = function(control) { - return lang_1.isBlank(control.value) || control.value == "" ? {"required": true} : null; + return lang_1.isBlank(control.value) || (lang_1.isString(control.value) && control.value == "") ? {"required": true} : null; }; Validators.minLength = function(minLength) { return function(control) { @@ -39350,12 +39867,12 @@ $__System.registerDynamic("19a", ["22", "8f", "67", "3b", "11", "38"], true, fun }, {}); return collection_1.StringMapWrapper.isEmpty(res) ? null : res; } - })($__require('38')); + })($__require('37')); global.define = __define; return module.exports; }); -$__System.registerDynamic("1a9", ["11", "22", "19a"], true, function($__require, exports, module) { +$__System.registerDynamic("1ac", ["14", "2b", "19c"], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -39382,10 +39899,10 @@ $__System.registerDynamic("1a9", ["11", "22", "19a"], true, function($__require, decorator(target, key, paramIndex); }; }; - var core_1 = $__require('11'); - var lang_1 = $__require('22'); - var validators_1 = $__require('19a'); - var lang_2 = $__require('22'); + var core_1 = $__require('14'); + var lang_1 = $__require('2b'); + var validators_1 = $__require('19c'); + var lang_2 = $__require('2b'); var REQUIRED_VALIDATOR = lang_1.CONST_EXPR(new core_1.Provider(validators_1.NG_VALIDATORS, { useValue: validators_1.Validators.required, multi: true @@ -39443,7 +39960,7 @@ $__System.registerDynamic("1a9", ["11", "22", "19a"], true, function($__require, return module.exports; }); -$__System.registerDynamic("19d", ["22", "67", "8f", "3b"], true, function($__require, exports, module) { +$__System.registerDynamic("19f", ["2b", "62", "93", "3a"], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -39458,10 +39975,10 @@ $__System.registerDynamic("19d", ["22", "67", "8f", "3b"], true, function($__req } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; - var lang_1 = $__require('22'); - var async_1 = $__require('67'); - var promise_1 = $__require('8f'); - var collection_1 = $__require('3b'); + var lang_1 = $__require('2b'); + var async_1 = $__require('62'); + var promise_1 = $__require('93'); + var collection_1 = $__require('3a'); exports.VALID = "VALID"; exports.INVALID = "INVALID"; exports.PENDING = "PENDING"; @@ -39671,6 +40188,17 @@ $__System.registerDynamic("19d", ["22", "67", "8f", "3b"], true, function($__req } return lang_1.isPresent(this.getError(errorCode, path)); }; + Object.defineProperty(AbstractControl.prototype, "root", { + get: function() { + var x = this; + while (lang_1.isPresent(x._parent)) { + x = x._parent; + } + return x; + }, + enumerable: true, + configurable: true + }); AbstractControl.prototype._updateControlsErrors = function() { this._status = this._calculateStatus(); if (lang_1.isPresent(this._parent)) { @@ -39883,7 +40411,7 @@ $__System.registerDynamic("19d", ["22", "67", "8f", "3b"], true, function($__req return module.exports; }); -$__System.registerDynamic("1aa", ["11", "3b", "22", "19d"], true, function($__require, exports, module) { +$__System.registerDynamic("1ad", ["14", "3a", "2b", "19f"], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -39905,10 +40433,10 @@ $__System.registerDynamic("1aa", ["11", "3b", "22", "19d"], true, function($__re if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; - var core_1 = $__require('11'); - var collection_1 = $__require('3b'); - var lang_1 = $__require('22'); - var modelModule = $__require('19d'); + var core_1 = $__require('14'); + var collection_1 = $__require('3a'); + var lang_1 = $__require('2b'); + var modelModule = $__require('19f'); var FormBuilder = (function() { function FormBuilder() {} FormBuilder.prototype.group = function(controlsConfig, extra) { @@ -39967,82 +40495,149 @@ $__System.registerDynamic("1aa", ["11", "3b", "22", "19d"], true, function($__re return FormBuilder; })(); exports.FormBuilder = FormBuilder; - exports.FORM_PROVIDERS = lang_1.CONST_EXPR([FormBuilder]); - exports.FORM_BINDINGS = exports.FORM_PROVIDERS; global.define = __define; return module.exports; }); -$__System.registerDynamic("1ab", ["19d", "1a0", "196", "195", "19b", "19c", "197", "19e", "19f", "1a6", "198", "1a2", "1a7", "1a4", "1a5", "1a8", "19a", "1a9", "1aa"], true, function($__require, exports, module) { +$__System.registerDynamic("19a", ["14", "2b"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var model_1 = $__require('19d'); - exports.AbstractControl = model_1.AbstractControl; - exports.Control = model_1.Control; - exports.ControlGroup = model_1.ControlGroup; - exports.ControlArray = model_1.ControlArray; - var abstract_control_directive_1 = $__require('1a0'); - exports.AbstractControlDirective = abstract_control_directive_1.AbstractControlDirective; - var control_container_1 = $__require('196'); - exports.ControlContainer = control_container_1.ControlContainer; - var ng_control_name_1 = $__require('195'); - exports.NgControlName = ng_control_name_1.NgControlName; - var ng_form_control_1 = $__require('19b'); - exports.NgFormControl = ng_form_control_1.NgFormControl; - var ng_model_1 = $__require('19c'); - exports.NgModel = ng_model_1.NgModel; - var ng_control_1 = $__require('197'); - exports.NgControl = ng_control_1.NgControl; - var ng_control_group_1 = $__require('19e'); - exports.NgControlGroup = ng_control_group_1.NgControlGroup; - var ng_form_model_1 = $__require('19f'); - exports.NgFormModel = ng_form_model_1.NgFormModel; - var ng_form_1 = $__require('1a6'); - exports.NgForm = ng_form_1.NgForm; - var control_value_accessor_1 = $__require('198'); - exports.NG_VALUE_ACCESSOR = control_value_accessor_1.NG_VALUE_ACCESSOR; - var default_value_accessor_1 = $__require('1a2'); - exports.DefaultValueAccessor = default_value_accessor_1.DefaultValueAccessor; - var ng_control_status_1 = $__require('1a7'); - exports.NgControlStatus = ng_control_status_1.NgControlStatus; - var checkbox_value_accessor_1 = $__require('1a4'); - exports.CheckboxControlValueAccessor = checkbox_value_accessor_1.CheckboxControlValueAccessor; - var select_control_value_accessor_1 = $__require('1a5'); - exports.NgSelectOption = select_control_value_accessor_1.NgSelectOption; - exports.SelectControlValueAccessor = select_control_value_accessor_1.SelectControlValueAccessor; - var directives_1 = $__require('1a8'); - exports.FORM_DIRECTIVES = directives_1.FORM_DIRECTIVES; - var validators_1 = $__require('19a'); - exports.NG_VALIDATORS = validators_1.NG_VALIDATORS; - exports.NG_ASYNC_VALIDATORS = validators_1.NG_ASYNC_VALIDATORS; - exports.Validators = validators_1.Validators; - var validators_2 = $__require('1a9'); - exports.RequiredValidator = validators_2.RequiredValidator; - exports.MinLengthValidator = validators_2.MinLengthValidator; - exports.MaxLengthValidator = validators_2.MaxLengthValidator; - var form_builder_1 = $__require('1aa'); - exports.FormBuilder = form_builder_1.FormBuilder; - exports.FORM_PROVIDERS = form_builder_1.FORM_PROVIDERS; - exports.FORM_BINDINGS = form_builder_1.FORM_BINDINGS; + var core_1 = $__require('14'); + var lang_1 = $__require('2b'); + exports.NG_VALUE_ACCESSOR = lang_1.CONST_EXPR(new core_1.OpaqueToken("NgValueAccessor")); global.define = __define; return module.exports; }); -$__System.registerDynamic("1ac", [], true, function($__require, exports, module) { +$__System.registerDynamic("1a2", ["2b", "3f"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - "format cjs"; + var lang_1 = $__require('2b'); + var exceptions_1 = $__require('3f'); + var AbstractControlDirective = (function() { + function AbstractControlDirective() {} + Object.defineProperty(AbstractControlDirective.prototype, "control", { + get: function() { + return exceptions_1.unimplemented(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(AbstractControlDirective.prototype, "value", { + get: function() { + return lang_1.isPresent(this.control) ? this.control.value : null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(AbstractControlDirective.prototype, "valid", { + get: function() { + return lang_1.isPresent(this.control) ? this.control.valid : null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(AbstractControlDirective.prototype, "errors", { + get: function() { + return lang_1.isPresent(this.control) ? this.control.errors : null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(AbstractControlDirective.prototype, "pristine", { + get: function() { + return lang_1.isPresent(this.control) ? this.control.pristine : null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(AbstractControlDirective.prototype, "dirty", { + get: function() { + return lang_1.isPresent(this.control) ? this.control.dirty : null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(AbstractControlDirective.prototype, "touched", { + get: function() { + return lang_1.isPresent(this.control) ? this.control.touched : null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(AbstractControlDirective.prototype, "untouched", { + get: function() { + return lang_1.isPresent(this.control) ? this.control.untouched : null; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(AbstractControlDirective.prototype, "path", { + get: function() { + return null; + }, + enumerable: true, + configurable: true + }); + return AbstractControlDirective; + })(); + exports.AbstractControlDirective = AbstractControlDirective; global.define = __define; return module.exports; }); -$__System.registerDynamic("1ad", ["22", "11", "3b"], true, function($__require, exports, module) { +$__System.registerDynamic("199", ["1a2", "3f"], true, function($__require, exports, module) { + "use strict"; + ; + var global = this, + __define = global.define; + global.define = undefined; + var __extends = (this && this.__extends) || function(d, b) { + for (var p in b) + if (b.hasOwnProperty(p)) + d[p] = b[p]; + function __() { + this.constructor = d; + } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; + var abstract_control_directive_1 = $__require('1a2'); + var exceptions_1 = $__require('3f'); + var NgControl = (function(_super) { + __extends(NgControl, _super); + function NgControl() { + _super.apply(this, arguments); + this.name = null; + this.valueAccessor = null; + } + Object.defineProperty(NgControl.prototype, "validator", { + get: function() { + return exceptions_1.unimplemented(); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(NgControl.prototype, "asyncValidator", { + get: function() { + return exceptions_1.unimplemented(); + }, + enumerable: true, + configurable: true + }); + return NgControl; + })(abstract_control_directive_1.AbstractControlDirective); + exports.NgControl = NgControl; + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("1a8", ["14", "19a", "199", "2b", "3a"], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -40064,9 +40659,202 @@ $__System.registerDynamic("1ad", ["22", "11", "3b"], true, function($__require, if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; - var lang_1 = $__require('22'); - var core_1 = $__require('11'); - var collection_1 = $__require('3b'); + var core_1 = $__require('14'); + var control_value_accessor_1 = $__require('19a'); + var ng_control_1 = $__require('199'); + var lang_1 = $__require('2b'); + var collection_1 = $__require('3a'); + var RADIO_VALUE_ACCESSOR = lang_1.CONST_EXPR(new core_1.Provider(control_value_accessor_1.NG_VALUE_ACCESSOR, { + useExisting: core_1.forwardRef(function() { + return RadioControlValueAccessor; + }), + multi: true + })); + var RadioControlRegistry = (function() { + function RadioControlRegistry() { + this._accessors = []; + } + RadioControlRegistry.prototype.add = function(control, accessor) { + this._accessors.push([control, accessor]); + }; + RadioControlRegistry.prototype.remove = function(accessor) { + var indexToRemove = -1; + for (var i = 0; i < this._accessors.length; ++i) { + if (this._accessors[i][1] === accessor) { + indexToRemove = i; + } + } + collection_1.ListWrapper.removeAt(this._accessors, indexToRemove); + }; + RadioControlRegistry.prototype.select = function(accessor) { + this._accessors.forEach(function(c) { + if (c[0].control.root === accessor._control.control.root && c[1] !== accessor) { + c[1].fireUncheck(); + } + }); + }; + RadioControlRegistry = __decorate([core_1.Injectable(), __metadata('design:paramtypes', [])], RadioControlRegistry); + return RadioControlRegistry; + })(); + exports.RadioControlRegistry = RadioControlRegistry; + var RadioButtonState = (function() { + function RadioButtonState(checked, value) { + this.checked = checked; + this.value = value; + } + return RadioButtonState; + })(); + exports.RadioButtonState = RadioButtonState; + var RadioControlValueAccessor = (function() { + function RadioControlValueAccessor(_renderer, _elementRef, _registry, _injector) { + this._renderer = _renderer; + this._elementRef = _elementRef; + this._registry = _registry; + this._injector = _injector; + this.onChange = function() {}; + this.onTouched = function() {}; + } + RadioControlValueAccessor.prototype.ngOnInit = function() { + this._control = this._injector.get(ng_control_1.NgControl); + this._registry.add(this._control, this); + }; + RadioControlValueAccessor.prototype.ngOnDestroy = function() { + this._registry.remove(this); + }; + RadioControlValueAccessor.prototype.writeValue = function(value) { + this._state = value; + if (lang_1.isPresent(value) && value.checked) { + this._renderer.setElementProperty(this._elementRef.nativeElement, 'checked', true); + } + }; + RadioControlValueAccessor.prototype.registerOnChange = function(fn) { + var _this = this; + this._fn = fn; + this.onChange = function() { + fn(new RadioButtonState(true, _this._state.value)); + _this._registry.select(_this); + }; + }; + RadioControlValueAccessor.prototype.fireUncheck = function() { + this._fn(new RadioButtonState(false, this._state.value)); + }; + RadioControlValueAccessor.prototype.registerOnTouched = function(fn) { + this.onTouched = fn; + }; + __decorate([core_1.Input(), __metadata('design:type', String)], RadioControlValueAccessor.prototype, "name", void 0); + RadioControlValueAccessor = __decorate([core_1.Directive({ + selector: 'input[type=radio][ngControl],input[type=radio][ngFormControl],input[type=radio][ngModel]', + host: { + '(change)': 'onChange()', + '(blur)': 'onTouched()' + }, + providers: [RADIO_VALUE_ACCESSOR] + }), __metadata('design:paramtypes', [core_1.Renderer, core_1.ElementRef, RadioControlRegistry, core_1.Injector])], RadioControlValueAccessor); + return RadioControlValueAccessor; + })(); + exports.RadioControlValueAccessor = RadioControlValueAccessor; + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("1ae", ["19f", "1a2", "198", "197", "19d", "19e", "199", "1a0", "1a1", "1a9", "19a", "1a4", "1aa", "1a6", "1a7", "1ab", "19c", "1ac", "1ad", "1a8", "2b"], true, function($__require, exports, module) { + "use strict"; + ; + var global = this, + __define = global.define; + global.define = undefined; + var model_1 = $__require('19f'); + exports.AbstractControl = model_1.AbstractControl; + exports.Control = model_1.Control; + exports.ControlGroup = model_1.ControlGroup; + exports.ControlArray = model_1.ControlArray; + var abstract_control_directive_1 = $__require('1a2'); + exports.AbstractControlDirective = abstract_control_directive_1.AbstractControlDirective; + var control_container_1 = $__require('198'); + exports.ControlContainer = control_container_1.ControlContainer; + var ng_control_name_1 = $__require('197'); + exports.NgControlName = ng_control_name_1.NgControlName; + var ng_form_control_1 = $__require('19d'); + exports.NgFormControl = ng_form_control_1.NgFormControl; + var ng_model_1 = $__require('19e'); + exports.NgModel = ng_model_1.NgModel; + var ng_control_1 = $__require('199'); + exports.NgControl = ng_control_1.NgControl; + var ng_control_group_1 = $__require('1a0'); + exports.NgControlGroup = ng_control_group_1.NgControlGroup; + var ng_form_model_1 = $__require('1a1'); + exports.NgFormModel = ng_form_model_1.NgFormModel; + var ng_form_1 = $__require('1a9'); + exports.NgForm = ng_form_1.NgForm; + var control_value_accessor_1 = $__require('19a'); + exports.NG_VALUE_ACCESSOR = control_value_accessor_1.NG_VALUE_ACCESSOR; + var default_value_accessor_1 = $__require('1a4'); + exports.DefaultValueAccessor = default_value_accessor_1.DefaultValueAccessor; + var ng_control_status_1 = $__require('1aa'); + exports.NgControlStatus = ng_control_status_1.NgControlStatus; + var checkbox_value_accessor_1 = $__require('1a6'); + exports.CheckboxControlValueAccessor = checkbox_value_accessor_1.CheckboxControlValueAccessor; + var select_control_value_accessor_1 = $__require('1a7'); + exports.NgSelectOption = select_control_value_accessor_1.NgSelectOption; + exports.SelectControlValueAccessor = select_control_value_accessor_1.SelectControlValueAccessor; + var directives_1 = $__require('1ab'); + exports.FORM_DIRECTIVES = directives_1.FORM_DIRECTIVES; + exports.RadioButtonState = directives_1.RadioButtonState; + var validators_1 = $__require('19c'); + exports.NG_VALIDATORS = validators_1.NG_VALIDATORS; + exports.NG_ASYNC_VALIDATORS = validators_1.NG_ASYNC_VALIDATORS; + exports.Validators = validators_1.Validators; + var validators_2 = $__require('1ac'); + exports.RequiredValidator = validators_2.RequiredValidator; + exports.MinLengthValidator = validators_2.MinLengthValidator; + exports.MaxLengthValidator = validators_2.MaxLengthValidator; + var form_builder_1 = $__require('1ad'); + exports.FormBuilder = form_builder_1.FormBuilder; + var form_builder_2 = $__require('1ad'); + var radio_control_value_accessor_1 = $__require('1a8'); + var lang_1 = $__require('2b'); + exports.FORM_PROVIDERS = lang_1.CONST_EXPR([form_builder_2.FormBuilder, radio_control_value_accessor_1.RadioControlRegistry]); + exports.FORM_BINDINGS = exports.FORM_PROVIDERS; + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("1af", [], true, function($__require, exports, module) { + "use strict"; + ; + var global = this, + __define = global.define; + global.define = undefined; + "format cjs"; + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("1b0", ["2b", "14", "3a"], true, function($__require, exports, module) { + "use strict"; + ; + var global = this, + __define = global.define; + global.define = undefined; + var __decorate = (this && this.__decorate) || function(decorators, target, key, desc) { + var c = arguments.length, + r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, + d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") + r = Reflect.decorate(decorators, target, key, desc); + else + for (var i = decorators.length - 1; i >= 0; i--) + if (d = decorators[i]) + r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; + var __metadata = (this && this.__metadata) || function(k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") + return Reflect.metadata(k, v); + }; + var lang_1 = $__require('2b'); + var core_1 = $__require('14'); + var collection_1 = $__require('3a'); var NgClass = (function() { function NgClass(_iterableDiffers, _keyValueDiffers, _ngEl, _renderer) { this._iterableDiffers = _iterableDiffers; @@ -40181,10 +40969,10 @@ $__System.registerDynamic("1ad", ["22", "11", "3b"], true, function($__require, var classes = className.split(/\s+/g); for (var i = 0, len = classes.length; i < len; i++) { - this._renderer.setElementClass(this._ngEl, classes[i], enabled); + this._renderer.setElementClass(this._ngEl.nativeElement, classes[i], enabled); } } else { - this._renderer.setElementClass(this._ngEl, className, enabled); + this._renderer.setElementClass(this._ngEl.nativeElement, className, enabled); } } }; @@ -40199,7 +40987,7 @@ $__System.registerDynamic("1ad", ["22", "11", "3b"], true, function($__require, return module.exports; }); -$__System.registerDynamic("1ae", ["11", "22"], true, function($__require, exports, module) { +$__System.registerDynamic("1b1", ["14", "2b"], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -40221,8 +41009,8 @@ $__System.registerDynamic("1ae", ["11", "22"], true, function($__require, export if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; - var core_1 = $__require('11'); - var lang_1 = $__require('22'); + var core_1 = $__require('14'); + var lang_1 = $__require('2b'); var NgFor = (function() { function NgFor(_viewContainer, _templateRef, _iterableDiffers, _cdr) { this._viewContainer = _viewContainer; @@ -40234,7 +41022,7 @@ $__System.registerDynamic("1ae", ["11", "22"], true, function($__require, export set: function(value) { this._ngForOf = value; if (lang_1.isBlank(this._differ) && lang_1.isPresent(value)) { - this._differ = this._iterableDiffers.find(value).create(this._cdr); + this._differ = this._iterableDiffers.find(value).create(this._cdr, this._ngForTrackBy); } }, enumerable: true, @@ -40249,6 +41037,13 @@ $__System.registerDynamic("1ae", ["11", "22"], true, function($__require, export enumerable: true, configurable: true }); + Object.defineProperty(NgFor.prototype, "ngForTrackBy", { + set: function(value) { + this._ngForTrackBy = value; + }, + enumerable: true, + configurable: true + }); NgFor.prototype.ngDoCheck = function() { if (lang_1.isPresent(this._differ)) { var changes = this._differ.diff(this._ngForOf); @@ -40257,6 +41052,7 @@ $__System.registerDynamic("1ae", ["11", "22"], true, function($__require, export } }; NgFor.prototype._applyChanges = function(changes) { + var _this = this; var recordViewTuples = []; changes.forEachRemovedItem(function(removedRecord) { return recordViewTuples.push(new RecordViewTuple(removedRecord, null)); @@ -40274,8 +41070,13 @@ $__System.registerDynamic("1ae", ["11", "22"], true, function($__require, export } for (var i = 0, ilen = this._viewContainer.length; i < ilen; i++) { - this._viewContainer.get(i).setLocal('last', i === ilen - 1); + var viewRef = this._viewContainer.get(i); + viewRef.setLocal('last', i === ilen - 1); } + changes.forEachIdentityChange(function(record) { + var viewRef = _this._viewContainer.get(record.currentIndex); + viewRef.setLocal('\$implicit', record.item); + }); }; NgFor.prototype._perViewChange = function(view, record) { view.setLocal('\$implicit', record.item); @@ -40315,7 +41116,7 @@ $__System.registerDynamic("1ae", ["11", "22"], true, function($__require, export }; NgFor = __decorate([core_1.Directive({ selector: '[ngFor][ngForOf]', - inputs: ['ngForOf', 'ngForTemplate'] + inputs: ['ngForTrackBy', 'ngForOf', 'ngForTemplate'] }), __metadata('design:paramtypes', [core_1.ViewContainerRef, core_1.TemplateRef, core_1.IterableDiffers, core_1.ChangeDetectorRef])], NgFor); return NgFor; })(); @@ -40331,7 +41132,7 @@ $__System.registerDynamic("1ae", ["11", "22"], true, function($__require, export return module.exports; }); -$__System.registerDynamic("1af", ["11", "22"], true, function($__require, exports, module) { +$__System.registerDynamic("1b2", ["14", "2b"], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -40353,8 +41154,8 @@ $__System.registerDynamic("1af", ["11", "22"], true, function($__require, export if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; - var core_1 = $__require('11'); - var lang_1 = $__require('22'); + var core_1 = $__require('14'); + var lang_1 = $__require('2b'); var NgIf = (function() { function NgIf(_viewContainer, _templateRef) { this._viewContainer = _viewContainer; @@ -40385,7 +41186,7 @@ $__System.registerDynamic("1af", ["11", "22"], true, function($__require, export return module.exports; }); -$__System.registerDynamic("1b0", ["11", "22"], true, function($__require, exports, module) { +$__System.registerDynamic("1b3", ["14", "2b"], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -40407,8 +41208,8 @@ $__System.registerDynamic("1b0", ["11", "22"], true, function($__require, export if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; - var core_1 = $__require('11'); - var lang_1 = $__require('22'); + var core_1 = $__require('14'); + var lang_1 = $__require('2b'); var NgStyle = (function() { function NgStyle(_differs, _ngEl, _renderer) { this._differs = _differs; @@ -40446,7 +41247,7 @@ $__System.registerDynamic("1b0", ["11", "22"], true, function($__require, export }); }; NgStyle.prototype._setStyle = function(name, val) { - this._renderer.setElementStyle(this._ngEl, name, val); + this._renderer.setElementStyle(this._ngEl.nativeElement, name, val); }; NgStyle = __decorate([core_1.Directive({ selector: '[ngStyle]', @@ -40459,1471 +41260,49 @@ $__System.registerDynamic("1b0", ["11", "22"], true, function($__require, export return module.exports; }); -$__System.registerDynamic("1b1", ["11", "22", "3b"], true, function($__require, exports, module) { +$__System.registerDynamic("1b4", ["1b5"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var __decorate = (this && this.__decorate) || function(decorators, target, key, desc) { - var c = arguments.length, - r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, - d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") - r = Reflect.decorate(decorators, target, key, desc); - else - for (var i = decorators.length - 1; i >= 0; i--) - if (d = decorators[i]) - r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; - }; - var __metadata = (this && this.__metadata) || function(k, v) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") - return Reflect.metadata(k, v); - }; - var __param = (this && this.__param) || function(paramIndex, decorator) { - return function(target, key) { - decorator(target, key, paramIndex); - }; - }; - var core_1 = $__require('11'); - var lang_1 = $__require('22'); - var collection_1 = $__require('3b'); - var _WHEN_DEFAULT = lang_1.CONST_EXPR(new Object()); - var SwitchView = (function() { - function SwitchView(_viewContainerRef, _templateRef) { - this._viewContainerRef = _viewContainerRef; - this._templateRef = _templateRef; - } - SwitchView.prototype.create = function() { - this._viewContainerRef.createEmbeddedView(this._templateRef); - }; - SwitchView.prototype.destroy = function() { - this._viewContainerRef.clear(); - }; - return SwitchView; - })(); - var NgSwitch = (function() { - function NgSwitch() { - this._useDefault = false; - this._valueViews = new collection_1.Map(); - this._activeViews = []; - } - Object.defineProperty(NgSwitch.prototype, "ngSwitch", { - set: function(value) { - this._emptyAllActiveViews(); - this._useDefault = false; - var views = this._valueViews.get(value); - if (lang_1.isBlank(views)) { - this._useDefault = true; - views = lang_1.normalizeBlank(this._valueViews.get(_WHEN_DEFAULT)); - } - this._activateViews(views); - this._switchValue = value; - }, - enumerable: true, - configurable: true - }); - NgSwitch.prototype._onWhenValueChanged = function(oldWhen, newWhen, view) { - this._deregisterView(oldWhen, view); - this._registerView(newWhen, view); - if (oldWhen === this._switchValue) { - view.destroy(); - collection_1.ListWrapper.remove(this._activeViews, view); - } else if (newWhen === this._switchValue) { - if (this._useDefault) { - this._useDefault = false; - this._emptyAllActiveViews(); - } - view.create(); - this._activeViews.push(view); - } - if (this._activeViews.length === 0 && !this._useDefault) { - this._useDefault = true; - this._activateViews(this._valueViews.get(_WHEN_DEFAULT)); - } - }; - NgSwitch.prototype._emptyAllActiveViews = function() { - var activeContainers = this._activeViews; - for (var i = 0; i < activeContainers.length; i++) { - activeContainers[i].destroy(); - } - this._activeViews = []; - }; - NgSwitch.prototype._activateViews = function(views) { - if (lang_1.isPresent(views)) { - for (var i = 0; i < views.length; i++) { - views[i].create(); - } - this._activeViews = views; - } - }; - NgSwitch.prototype._registerView = function(value, view) { - var views = this._valueViews.get(value); - if (lang_1.isBlank(views)) { - views = []; - this._valueViews.set(value, views); - } - views.push(view); - }; - NgSwitch.prototype._deregisterView = function(value, view) { - if (value === _WHEN_DEFAULT) - return; - var views = this._valueViews.get(value); - if (views.length == 1) { - this._valueViews.delete(value); - } else { - collection_1.ListWrapper.remove(views, view); - } - }; - NgSwitch = __decorate([core_1.Directive({ - selector: '[ngSwitch]', - inputs: ['ngSwitch'] - }), __metadata('design:paramtypes', [])], NgSwitch); - return NgSwitch; - })(); - exports.NgSwitch = NgSwitch; - var NgSwitchWhen = (function() { - function NgSwitchWhen(viewContainer, templateRef, ngSwitch) { - this._value = _WHEN_DEFAULT; - this._switch = ngSwitch; - this._view = new SwitchView(viewContainer, templateRef); - } - Object.defineProperty(NgSwitchWhen.prototype, "ngSwitchWhen", { - set: function(value) { - this._switch._onWhenValueChanged(this._value, value, this._view); - this._value = value; - }, - enumerable: true, - configurable: true - }); - NgSwitchWhen = __decorate([core_1.Directive({ - selector: '[ngSwitchWhen]', - inputs: ['ngSwitchWhen'] - }), __param(2, core_1.Host()), __metadata('design:paramtypes', [core_1.ViewContainerRef, core_1.TemplateRef, NgSwitch])], NgSwitchWhen); - return NgSwitchWhen; - })(); - exports.NgSwitchWhen = NgSwitchWhen; - var NgSwitchDefault = (function() { - function NgSwitchDefault(viewContainer, templateRef, sswitch) { - sswitch._registerView(_WHEN_DEFAULT, new SwitchView(viewContainer, templateRef)); - } - NgSwitchDefault = __decorate([core_1.Directive({selector: '[ngSwitchDefault]'}), __param(2, core_1.Host()), __metadata('design:paramtypes', [core_1.ViewContainerRef, core_1.TemplateRef, NgSwitch])], NgSwitchDefault); - return NgSwitchDefault; - })(); - exports.NgSwitchDefault = NgSwitchDefault; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("1b2", ["22", "1ad", "1ae", "1af", "1b0", "1b1"], true, function($__require, exports, module) { - "use strict"; - ; - var global = this, - __define = global.define; - global.define = undefined; - var lang_1 = $__require('22'); - var ng_class_1 = $__require('1ad'); - var ng_for_1 = $__require('1ae'); - var ng_if_1 = $__require('1af'); - var ng_style_1 = $__require('1b0'); - var ng_switch_1 = $__require('1b1'); - exports.CORE_DIRECTIVES = lang_1.CONST_EXPR([ng_class_1.NgClass, ng_for_1.NgFor, ng_if_1.NgIf, ng_style_1.NgStyle, ng_switch_1.NgSwitch, ng_switch_1.NgSwitchWhen, ng_switch_1.NgSwitchDefault]); - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("1b3", ["1ad", "1ae", "1af", "1b0", "1b1", "1ac", "1b2"], true, function($__require, exports, module) { - "use strict"; - ; - var global = this, - __define = global.define; - global.define = undefined; - function __export(m) { - for (var p in m) - if (!exports.hasOwnProperty(p)) - exports[p] = m[p]; - } - var ng_class_1 = $__require('1ad'); - exports.NgClass = ng_class_1.NgClass; - var ng_for_1 = $__require('1ae'); - exports.NgFor = ng_for_1.NgFor; - var ng_if_1 = $__require('1af'); - exports.NgIf = ng_if_1.NgIf; - var ng_style_1 = $__require('1b0'); - exports.NgStyle = ng_style_1.NgStyle; - var ng_switch_1 = $__require('1b1'); - exports.NgSwitch = ng_switch_1.NgSwitch; - exports.NgSwitchWhen = ng_switch_1.NgSwitchWhen; - exports.NgSwitchDefault = ng_switch_1.NgSwitchDefault; - __export($__require('1ac')); - var core_directives_1 = $__require('1b2'); - exports.CORE_DIRECTIVES = core_directives_1.CORE_DIRECTIVES; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("1b4", ["22", "1ab", "1b3"], true, function($__require, exports, module) { - "use strict"; - ; - var global = this, - __define = global.define; - global.define = undefined; - var lang_1 = $__require('22'); - var forms_1 = $__require('1ab'); - var directives_1 = $__require('1b3'); - exports.COMMON_DIRECTIVES = lang_1.CONST_EXPR([directives_1.CORE_DIRECTIVES, forms_1.FORM_DIRECTIVES]); - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("24", ["194", "1b3", "1ab", "1b4"], true, function($__require, exports, module) { - "use strict"; - ; - var global = this, - __define = global.define; - global.define = undefined; - function __export(m) { - for (var p in m) - if (!exports.hasOwnProperty(p)) - exports[p] = m[p]; - } - __export($__require('194')); - __export($__require('1b3')); - __export($__require('1ab')); - __export($__require('1b4')); - global.define = __define; - return module.exports; -}); - -$__System.register('d', ['6', '7', '11', '24'], function (_export) { - var _createClass, _classCallCheck, Component, View, EventEmitter, CORE_DIRECTIVES, Tabs, Tab; - - return { - setters: [function (_) { - _createClass = _['default']; - }, function (_2) { - _classCallCheck = _2['default']; - }, function (_3) { - Component = _3.Component; - View = _3.View; - EventEmitter = _3.EventEmitter; - }, function (_4) { - CORE_DIRECTIVES = _4.CORE_DIRECTIVES; - }], - execute: function () { - 'use strict'; - - Tabs = (function () { - function Tabs() { - _classCallCheck(this, _Tabs); - - this.tabs = []; - this.change = new EventEmitter(); - } - - _createClass(Tabs, [{ - key: 'selectTab', - value: function selectTab(tab) { - var notify = arguments.length <= 1 || arguments[1] === undefined ? true : arguments[1]; - - if (tab.active) return; - this.tabs.forEach(function (tab) { - tab.active = false; - }); - tab.active = true; - notify && this.change.next(tab.tabTitle); - } - }, { - key: 'selectyByTitle', - value: function selectyByTitle(tabTitle) { - var notify = arguments.length <= 1 || arguments[1] === undefined ? false : arguments[1]; - - var prevActive = undefined; - var newActive = undefined; - this.tabs.forEach(function (tab) { - if (tab.active) prevActive = tab; - tab.active = false; - if (tab.tabTitle === tabTitle) { - newActive = tab; - } - }); - if (newActive) { - newActive.active = true; - } else { - prevActive.active = true; - } - notify && this.change.next(tabTitle); - } - }, { - key: 'addTab', - value: function addTab(tab) { - if (this.tabs.length === 0) { - tab.active = true; - } - this.tabs.push(tab); - } - }]); - - var _Tabs = Tabs; - Tabs = View({ - template: '\n
      \n
    • {{tab.tabTitle}}
    • \n
    \n \n ', - directives: [CORE_DIRECTIVES], - styles: ['\n ul{display:block;margin:0;padding:0}li{list-style:none;display:inline-block;cursor:pointer}.tab-success:before,.tab-error:before,.tab-redirect:before,.tab-info:before{content:"";display:inline-block;vertical-align:middle;height:6px;width:6px;border-radius:50%;margin-right:0.5em}.tab-success:before{box-shadow:0 0 3px 0 #00aa11;background-color:#00aa11}.tab-error:before{box-shadow:0 0 3px 0 #E53935;background-color:#E53935}.tab-redirect:before{box-shadow:0 0 3px 0 #F88F00;background-color:#F88F00}.tab-info:before{box-shadow:0 0 3px 0 #66C2FF;background-color:#66C2FF}\n '] - })(Tabs) || Tabs; - Tabs = Component({ - selector: 'tabs', - events: ['change'] - })(Tabs) || Tabs; - return Tabs; - })(); - - _export('Tabs', Tabs); - - Tab = (function () { - function Tab(tabs) { - _classCallCheck(this, _Tab); - - this.active = false; - tabs.addTab(this); - } - - var _Tab = Tab; - Tab = View({ - template: '\n
    \n \n
    \n ' - })(Tab) || Tab; - Tab = Component({ - selector: 'tab', - inputs: ['tabTitle', 'tabStatus'] - })(Tab) || Tab; - return Tab; - })(); - - _export('Tab', Tab); - - Tab.parameters = [[Tabs]]; - } - }; -}); -$__System.registerDynamic("ac", [], true, function($__require, exports, module) { - ; - var global = this, - __define = global.define; - global.define = undefined; - var toString = {}.toString; - module.exports = function(it) { - return toString.call(it).slice(8, -1); - }; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("9e", ["ac"], true, function($__require, exports, module) { - ; - var global = this, - __define = global.define; - global.define = undefined; - var cof = $__require('ac'); - module.exports = Object('z').propertyIsEnumerable(0) ? Object : function(it) { - return cof(it) == 'String' ? it.split('') : Object(it); - }; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("15f", [], true, function($__require, exports, module) { - ; - var global = this, - __define = global.define; - global.define = undefined; - module.exports = function(it) { - if (it == undefined) - throw TypeError("Can't call method on " + it); - return it; - }; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("164", ["9e", "15f"], true, function($__require, exports, module) { - ; - var global = this, - __define = global.define; - global.define = undefined; - var IObject = $__require('9e'), - defined = $__require('15f'); - module.exports = function(it) { - return IObject(defined(it)); - }; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("9f", [], true, function($__require, exports, module) { - ; - var global = this, - __define = global.define; - global.define = undefined; - module.exports = function(exec) { - try { - return !!exec(); - } catch (e) { - return true; - } - }; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("171", ["93", "31", "9f"], true, function($__require, exports, module) { - ; - var global = this, - __define = global.define; - global.define = undefined; - var $export = $__require('93'), - core = $__require('31'), - fails = $__require('9f'); - module.exports = function(KEY, exec) { - var fn = (core.Object || {})[KEY] || Object[KEY], - exp = {}; - exp[KEY] = exec(fn); - $export($export.S + $export.F * fails(function() { - fn(1); - }), 'Object', exp); - }; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("1b5", ["164", "171"], true, function($__require, exports, module) { - ; - var global = this, - __define = global.define; - global.define = undefined; - var toIObject = $__require('164'); - $__require('171')('getOwnPropertyDescriptor', function($getOwnPropertyDescriptor) { - return function getOwnPropertyDescriptor(it, key) { - return $getOwnPropertyDescriptor(toIObject(it), key); - }; - }); - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("1b6", ["9d", "1b5"], true, function($__require, exports, module) { - ; - var global = this, - __define = global.define; - global.define = undefined; - var $ = $__require('9d'); - $__require('1b5'); - module.exports = function getOwnPropertyDescriptor(it, key) { - return $.getDesc(it, key); - }; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("1b7", ["1b6"], true, function($__require, exports, module) { - ; - var global = this, - __define = global.define; - global.define = undefined; - module.exports = { - "default": $__require('1b6'), - __esModule: true - }; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("4", ["1b7"], true, function($__require, exports, module) { - "use strict"; - ; - var global = this, - __define = global.define; - global.define = undefined; - var _Object$getOwnPropertyDescriptor = $__require('1b7')["default"]; - exports["default"] = function get(_x, _x2, _x3) { - var _again = true; - _function: while (_again) { - var object = _x, - property = _x2, - receiver = _x3; - _again = false; - if (object === null) - object = Function.prototype; - var desc = _Object$getOwnPropertyDescriptor(object, property); - if (desc === undefined) { - var parent = Object.getPrototypeOf(object); - if (parent === null) { - return undefined; - } else { - _x = parent; - _x2 = property; - _x3 = receiver; - _again = true; - desc = parent = undefined; - continue _function; - } - } else if ("value" in desc) { - return desc.value; - } else { - var getter = desc.get; - if (getter === undefined) { - return undefined; - } - return getter.call(receiver); - } - } - }; - exports.__esModule = true; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("1b8", ["9d"], true, function($__require, exports, module) { - ; - var global = this, - __define = global.define; - global.define = undefined; - var $ = $__require('9d'); - module.exports = function create(P, D) { - return $.create(P, D); - }; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("1b9", ["1b8"], true, function($__require, exports, module) { - ; - var global = this, - __define = global.define; - global.define = undefined; - module.exports = { - "default": $__require('1b8'), - __esModule: true - }; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("a8", [], true, function($__require, exports, module) { - ; - var global = this, - __define = global.define; - global.define = undefined; - var global = module.exports = typeof window != 'undefined' && window.Math == Math ? window : typeof self != 'undefined' && self.Math == Math ? self : Function('return this')(); - if (typeof __g == 'number') - __g = global; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("93", ["a8", "31", "92"], true, function($__require, exports, module) { - ; - var global = this, - __define = global.define; - global.define = undefined; - var global = $__require('a8'), - core = $__require('31'), - ctx = $__require('92'), - PROTOTYPE = 'prototype'; - var $export = function(type, name, source) { - var IS_FORCED = type & $export.F, - IS_GLOBAL = type & $export.G, - IS_STATIC = type & $export.S, - IS_PROTO = type & $export.P, - IS_BIND = type & $export.B, - IS_WRAP = type & $export.W, - exports = IS_GLOBAL ? core : core[name] || (core[name] = {}), - target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE], - key, - own, - out; - if (IS_GLOBAL) - source = name; - for (key in source) { - own = !IS_FORCED && target && key in target; - if (own && key in exports) - continue; - out = own ? target[key] : source[key]; - exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key] : IS_BIND && own ? ctx(out, global) : IS_WRAP && target[key] == out ? (function(C) { - var F = function(param) { - return this instanceof C ? new C(param) : C(param); - }; - F[PROTOTYPE] = C[PROTOTYPE]; - return F; - })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out; - if (IS_PROTO) - (exports[PROTOTYPE] || (exports[PROTOTYPE] = {}))[key] = out; - } - }; - $export.F = 1; - $export.G = 2; - $export.S = 4; - $export.P = 8; - $export.B = 16; - $export.W = 32; - module.exports = $export; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("aa", [], true, function($__require, exports, module) { - ; - var global = this, - __define = global.define; - global.define = undefined; - module.exports = function(it) { - return typeof it === 'object' ? it !== null : typeof it === 'function'; - }; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("a4", ["aa"], true, function($__require, exports, module) { - ; - var global = this, - __define = global.define; - global.define = undefined; - var isObject = $__require('aa'); - module.exports = function(it) { - if (!isObject(it)) - throw TypeError(it + ' is not an object!'); - return it; - }; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("a5", [], true, function($__require, exports, module) { - ; - var global = this, - __define = global.define; - global.define = undefined; - module.exports = function(it) { - if (typeof it != 'function') - throw TypeError(it + ' is not a function!'); - return it; - }; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("92", ["a5"], true, function($__require, exports, module) { - ; - var global = this, - __define = global.define; - global.define = undefined; - var aFunction = $__require('a5'); - module.exports = function(fn, that, length) { - aFunction(fn); - if (that === undefined) - return fn; - switch (length) { - case 1: - return function(a) { - return fn.call(that, a); - }; - case 2: - return function(a, b) { - return fn.call(that, a, b); - }; - case 3: - return function(a, b, c) { - return fn.call(that, a, b, c); - }; - } - return function() { - return fn.apply(that, arguments); - }; - }; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("b2", ["9d", "aa", "a4", "92"], true, function($__require, exports, module) { - ; - var global = this, - __define = global.define; - global.define = undefined; - var getDesc = $__require('9d').getDesc, - isObject = $__require('aa'), - anObject = $__require('a4'); - var check = function(O, proto) { - anObject(O); - if (!isObject(proto) && proto !== null) - throw TypeError(proto + ": can't set as prototype!"); - }; - module.exports = { - set: Object.setPrototypeOf || ('__proto__' in {} ? function(test, buggy, set) { - try { - set = $__require('92')(Function.call, getDesc(Object.prototype, '__proto__').set, 2); - set(test, []); - buggy = !(test instanceof Array); - } catch (e) { - buggy = true; - } - return function setPrototypeOf(O, proto) { - check(O, proto); - if (buggy) - O.__proto__ = proto; - else - set(O, proto); - return O; - }; - }({}, false) : undefined), - check: check - }; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("1ba", ["93", "b2"], true, function($__require, exports, module) { - ; - var global = this, - __define = global.define; - global.define = undefined; - var $export = $__require('93'); - $export($export.S, 'Object', {setPrototypeOf: $__require('b2').set}); - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("31", [], true, function($__require, exports, module) { - ; - var global = this, - __define = global.define; - global.define = undefined; - var core = module.exports = {version: '1.2.6'}; - if (typeof __e == 'number') - __e = core; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("1bb", ["1ba", "31"], true, function($__require, exports, module) { - ; - var global = this, - __define = global.define; - global.define = undefined; - $__require('1ba'); - module.exports = $__require('31').Object.setPrototypeOf; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("1bc", ["1bb"], true, function($__require, exports, module) { - ; - var global = this, - __define = global.define; - global.define = undefined; - module.exports = { - "default": $__require('1bb'), - __esModule: true - }; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("5", ["1b9", "1bc"], true, function($__require, exports, module) { - "use strict"; - ; - var global = this, - __define = global.define; - global.define = undefined; - var _Object$create = $__require('1b9')["default"]; - var _Object$setPrototypeOf = $__require('1bc')["default"]; - exports["default"] = function(subClass, superClass) { - if (typeof superClass !== "function" && superClass !== null) { - throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); - } - subClass.prototype = _Object$create(superClass && superClass.prototype, {constructor: { - value: subClass, - enumerable: false, - writable: true, - configurable: true - }}); - if (superClass) - _Object$setPrototypeOf ? _Object$setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; - }; - exports.__esModule = true; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("9d", [], true, function($__require, exports, module) { - ; - var global = this, - __define = global.define; - global.define = undefined; - var $Object = Object; - module.exports = { - create: $Object.create, - getProto: $Object.getPrototypeOf, - isEnum: {}.propertyIsEnumerable, - getDesc: $Object.getOwnPropertyDescriptor, - setDesc: $Object.defineProperty, - setDescs: $Object.defineProperties, - getKeys: $Object.keys, - getNames: $Object.getOwnPropertyNames, - getSymbols: $Object.getOwnPropertySymbols, - each: [].forEach - }; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("1bd", ["9d"], true, function($__require, exports, module) { - ; - var global = this, - __define = global.define; - global.define = undefined; - var $ = $__require('9d'); - module.exports = function defineProperty(it, key, desc) { - return $.setDesc(it, key, desc); - }; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("1be", ["1bd"], true, function($__require, exports, module) { - ; - var global = this, - __define = global.define; - global.define = undefined; - module.exports = { - "default": $__require('1bd'), - __esModule: true - }; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("6", ["1be"], true, function($__require, exports, module) { - "use strict"; - ; - var global = this, - __define = global.define; - global.define = undefined; - var _Object$defineProperty = $__require('1be')["default"]; - exports["default"] = (function() { - function defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) - descriptor.writable = true; - _Object$defineProperty(target, descriptor.key, descriptor); - } - } - return function(Constructor, protoProps, staticProps) { - if (protoProps) - defineProperties(Constructor.prototype, protoProps); - if (staticProps) - defineProperties(Constructor, staticProps); - return Constructor; - }; - })(); - exports.__esModule = true; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("7", [], true, function($__require, exports, module) { - "use strict"; - ; - var global = this, - __define = global.define; - global.define = undefined; - exports["default"] = function(instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); - } - }; - exports.__esModule = true; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("1bf", [], true, function($__require, exports, module) { - ; - var global = this, - __define = global.define; - global.define = undefined; - var hasOwn = Object.prototype.hasOwnProperty; - var toString = Object.prototype.toString; - module.exports = function forEach(obj, fn, ctx) { - if (toString.call(fn) !== '[object Function]') { - throw new TypeError('iterator must be a function'); - } - var l = obj.length; - if (l === +l) { - for (var i = 0; i < l; i++) { - fn.call(ctx, obj[i], i, obj); - } - } else { - for (var k in obj) { - if (hasOwn.call(obj, k)) { - fn.call(ctx, obj[k], k, obj); - } - } - } - }; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("1c0", ["1bf"], true, function($__require, exports, module) { - ; - var global = this, - __define = global.define; - global.define = undefined; - module.exports = $__require('1bf'); - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("1c1", ["1c0"], true, function($__require, exports, module) { - "use strict"; - ; - var global = this, - __define = global.define; - global.define = undefined; - var each = $__require('1c0'); - module.exports = api; - function api(obj, pointer, value) { - if (arguments.length === 3) { - return api.set(obj, pointer, value); - } - if (arguments.length === 2) { - return api.get(obj, pointer); - } - var wrapped = api.bind(api, obj); - for (var name in api) { - if (api.hasOwnProperty(name)) { - wrapped[name] = api[name].bind(wrapped, obj); - } - } - return wrapped; - } - api.get = function get(obj, pointer) { - var tok, - refTokens = api.parse(pointer); - while (refTokens.length) { - tok = refTokens.shift(); - if (!(tok in obj)) { - throw new Error('Invalid reference token: ' + tok); - } - obj = obj[tok]; - } - return obj; - }; - api.set = function set(obj, pointer, value) { - var refTokens = api.parse(pointer), - tok, - nextTok = refTokens[0]; - while (refTokens.length > 1) { - tok = refTokens.shift(); - if (tok === '-' && Array.isArray(obj)) { - tok = obj.length; - } - nextTok = refTokens[0]; - if (!(tok in obj)) { - if (nextTok.match(/^(\d+|-)$/)) { - obj[tok] = []; - } else { - obj[tok] = {}; - } - } - obj = obj[tok]; - } - if (nextTok === '-' && Array.isArray(obj)) { - nextTok = obj.length; - } - obj[nextTok] = value; - return this; - }; - api.remove = function(obj, pointer) { - var refTokens = api.parse(pointer); - var finalToken = refTokens.pop(); - if (finalToken === undefined) { - throw new Error('Invalid JSON pointer for remove: "' + pointer + '"'); - } - delete api.get(obj, api.compile(refTokens))[finalToken]; - }; - api.dict = function dict(obj, descend) { - var results = {}; - api.walk(obj, function(value, pointer) { - results[pointer] = value; - }, descend); - return results; - }; - api.walk = function walk(obj, iterator, descend) { - var refTokens = []; - descend = descend || function(value) { - var type = Object.prototype.toString.call(value); - return type === '[object Object]' || type === '[object Array]'; - }; - (function next(cur) { - each(cur, function(value, key) { - refTokens.push(String(key)); - if (descend(value)) { - next(value); - } else { - iterator(value, api.compile(refTokens)); - } - refTokens.pop(); - }); - }(obj)); - }; - api.has = function has(obj, pointer) { - try { - api.get(obj, pointer); - } catch (e) { - return false; - } - return true; - }; - api.escape = function escape(str) { - return str.toString().replace(/~/g, '~0').replace(/\//g, '~1'); - }; - api.unescape = function unescape(str) { - return str.replace(/~1/g, '/').replace(/~0/g, '~'); - }; - api.parse = function parse(pointer) { - if (pointer === '') { - return []; - } - if (pointer.charAt(0) !== '/') { - throw new Error('Invalid JSON pointer: ' + pointer); - } - return pointer.substring(1).split(/\//).map(api.unescape); - }; - api.compile = function compile(refTokens) { - if (refTokens.length === 0) { - return ''; - } - return '/' + refTokens.map(api.escape).join('/'); - }; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("1c2", ["1c1"], true, function($__require, exports, module) { - ; - var global = this, - __define = global.define; - global.define = undefined; - module.exports = $__require('1c1'); - global.define = __define; - return module.exports; -}); - -$__System.register('c', ['4', '5', '6', '7', '1c2'], function (_export) { - var _get, _inherits, _createClass, _classCallCheck, JsonPointerLib, JsonPointer; - - return { - setters: [function (_) { - _get = _['default']; - }, function (_2) { - _inherits = _2['default']; - }, function (_3) { - _createClass = _3['default']; - }, function (_4) { - _classCallCheck = _4['default']; - }, function (_c2) { - JsonPointerLib = _c2['default']; - }], - execute: function () { - - /** - * Wrapper for JsonPointer. Provides common operations - */ - 'use strict'; - - JsonPointer = (function (_JsonPointerLib) { - _inherits(JsonPointer, _JsonPointerLib); - - function JsonPointer() { - _classCallCheck(this, JsonPointer); - - _get(Object.getPrototypeOf(JsonPointer.prototype), 'constructor', this).apply(this, arguments); - } - - _createClass(JsonPointer, null, [{ - key: 'baseName', - - /** - * returns last JsonPointer token - * if level > 1 returns levels last (second last/third last) - * @example - * // returns subpath - * JsonPointerHelper.baseName('/path/0/subpath') - * // returns foo - * JsonPointerHelper.baseName('/path/foo/subpath', 2) - */ - value: function baseName(pointer) { - var level = arguments.length <= 1 || arguments[1] === undefined ? 1 : arguments[1]; - - var tokens = JsonPointer.parse(pointer); - return tokens[tokens.length - level]; - } - - /** - * returns dirname of pointer - * if level > 1 returns corresponding dirname in the hierarchy - * @example - * // returns /path/0 - * JsonPointerHelper.dirName('/path/0/subpath') - * // returns /path - * JsonPointerHelper.dirName('/path/foo/subpath', 2) - */ - }, { - key: 'dirName', - value: function dirName(pointer) { - var level = arguments.length <= 1 || arguments[1] === undefined ? 1 : arguments[1]; - - var tokens = JsonPointer.parse(pointer); - return JsonPointer.compile(tokens.slice(0, tokens.length - level)); - } - - /** - * overridden JsonPointer original parse to take care of prefixing '#' symbol - * that is not valid JsonPointer - */ - }, { - key: 'parse', - value: function parse(pointer) { - var ptr = pointer; - if (ptr.charAt(0) === '#') { - ptr = ptr.substring(1); - } - return JsonPointerLib._origParse(ptr); - } - - /** - * Creates a JSON pointer path, by joining one or more tokens to a base path. - * - * @param {string} base - The base path - * @param {string|string[]} tokens - The token(s) to append (e.g. ["name", "first"]) - * @returns {string} - */ - }, { - key: 'join', - value: function join(base, tokens) { - // TODO: optimize - var baseTokens = JsonPointer.parse(base); - var resTokens = baseTokens.concat(tokens); - return JsonPointer.compile(resTokens); - } - }]); - - return JsonPointer; - })(JsonPointerLib); - - _export('JsonPointer', JsonPointer); - - JsonPointerLib._origParse = JsonPointerLib.parse; - JsonPointerLib.parse = JsonPointer.parse; - - _export('default', JsonPointer); - } - }; -}); -$__System.register('a', ['3', '4', '5', '6', '7', '11', '21', '28', '9b', 'd', 'c'], function (_export) { - var RedocComponent, BaseComponent, _get, _inherits, _createClass, _classCallCheck, ElementRef, _Object$assign, _Object$keys, _toConsumableArray, Tabs, Tab, JsonPointer, JsonSchema; - - return { - setters: [function (_7) { - RedocComponent = _7.RedocComponent; - BaseComponent = _7.BaseComponent; - }, function (_) { - _get = _['default']; - }, function (_2) { - _inherits = _2['default']; - }, function (_3) { - _createClass = _3['default']; - }, function (_4) { - _classCallCheck = _4['default']; - }, function (_8) { - ElementRef = _8.ElementRef; - }, function (_6) { - _Object$assign = _6['default']; - }, function (_5) { - _Object$keys = _5['default']; - }, function (_b) { - _toConsumableArray = _b['default']; - }, function (_d) { - Tabs = _d.Tabs; - Tab = _d.Tab; - }, function (_c) { - JsonPointer = _c['default']; - }], - execute: function () { - 'use strict'; - - JsonSchema = (function (_BaseComponent) { - _inherits(JsonSchema, _BaseComponent); - - function JsonSchema(schemaMgr, elementRef) { - _classCallCheck(this, _JsonSchema); - - _get(Object.getPrototypeOf(_JsonSchema.prototype), 'constructor', this).call(this, schemaMgr); - this.element = elementRef.nativeElement; - this.final = false; - } - - _createClass(JsonSchema, [{ - key: 'prepareModel', - value: function prepareModel() { - var _this = this; - - this.data = {}; - this.data.properties = []; - this.data.derived = []; - - if (!this.componentSchema) { - throw new Error('Can\'t load component schema at ' + this.pointer); - } - - this.dereference(); - var schema = this.componentSchema; - - if (schema.type === 'array') { - this.isArray = true; - if (schema._pointer) { - this.pointer = JsonPointer.join(schema._pointer, 'items'); - } - schema = schema.items; - } - var normPtr = schema._pointer || this.pointer; - var derived = this.schemaMgr.findDerivedDefinitions(normPtr); - if (!this.final && derived.length) { - this.data.derived = derived; - this.data.discriminator = schema.discriminator; - } - - this.joinAllOf(schema, { omitParent: true }); - - if (schema.type !== 'object') { - this.isTrivial = true; - this._displayType = schema.type; - if (schema.format) this._displayType = this.displayType + ' <' + schema.format + '>'; - return; - } - - this.pointer = schema._pointer || this.pointer; - - this.requiredMap = {}; - if (this.schema.required) { - this.schema.required.forEach(function (prop) { - return _this.requiredMap[prop] = true; - }); - } - - if (!schema.properties) { - this.isTrivial = true; - this._displayType = schema.type; - this._displayTypeHint = 'This field may contain data of any type'; - return; - } - - var discriminatorFieldIdx = -1; - var props = _Object$keys(schema.properties).map(function (prop, idx) { - var propData = schema.properties[prop]; - propData = _this.injectPropData(prop, propData, schema); - if (propData.isDiscriminator) discriminatorFieldIdx = idx; - return propData; - }); - // Move discriminator field to the end of properties list - if (discriminatorFieldIdx > -1) { - var discrProp = props.splice(discriminatorFieldIdx, 1); - props.push(discrProp[0]); - } - this.data.properties = props; - } - }, { - key: 'adjustNameColumnWidth', - value: function adjustNameColumnWidth() { - // TODO handle internal schemes differently - var names = [].slice.call(this.element.querySelectorAll('.param-name')); - var widths = names.map(function (el) { - return el.offsetWidth; - }); - var maxWidth = Math.max.apply(Math, _toConsumableArray(widths)); - if (!maxWidth) return; - names.forEach(function (el) { - el.style.minWidth = maxWidth + 'px'; - }); - - var discrValues = this.element.querySelector('tabs ul'); - if (discrValues) discrValues.style.paddingLeft = maxWidth + 'px'; - } - }, { - key: 'injectPropData', - value: function injectPropData(prop, propData, schema) { - propData = _Object$assign({}, propData); - propData._name = prop; - propData.isRequired = this.requiredMap[prop]; - propData._displayType = propData.type; - propData.isDiscriminator = schema.discriminator === prop; - if (propData.type === 'array') { - var itemType = propData.items.type; - var itemFormat = propData.items.format; - if (itemType === 'object' || !itemType) { - itemType = propData.items.title || 'object'; - propData._pointer = propData.items._pointer || JsonPointer.join(this.pointer, ['properties', prop, 'items']); - } - propData._displayType = '' + itemType; - propData.format = itemFormat; - propData._isArray = true; - propData.type = 'array ' + propData.items.type; - } - - if (propData.type === 'object') { - propData._displayType = propData.title || 'object'; - } - - if (!propData.type) { - propData._displayType = '< * >'; - propData._displayTypeHint = 'This field may contain data of any type'; - } - - if (propData.format) propData._displayFormat = '<' + propData.format + '>'; - - return propData; - } - }, { - key: 'init', - value: function init() { - var _this2 = this; - - setTimeout(function () { - return _this2.adjustNameColumnWidth(); - }); - } - }]); - - var _JsonSchema = JsonSchema; - JsonSchema = RedocComponent({ - selector: 'json-schema', - template: '\n \n {{_displayType}}\n \n
    \n
    \n
    \n
    \n {{prop._name}}\n
    \n
    \n
    \n {{prop._displayType}} {{prop._displayFormat}}\n Required\n
    \n
    \n
    This field value determines the exact schema:
    \n
    \n
    \n
    \n \n \n
    \n
    \n
    \n \n \n \n \n \n \n
    \n
    \n ', - styles: ['\n .param-schema{padding-left:12.5px;border-left:1px solid #7D97CE}.param-wrap{position:relative}.param-schema:before{content:"";position:absolute;left:13.5px;top:20px;bottom:0;border-left:1px solid #7D97CE}.param-name{font-size:14px;padding:10px 25px 10px 0;font-weight:bold;box-sizing:border-box;line-height:20px;border-left:1px solid #7D97CE;white-space:nowrap;position:relative}.param-info{width:100%;padding:10px 0;box-sizing:border-box;border-bottom:1px solid #ccc}.param{display:flex}.param-required{color:red;font-weight:bold;font-size:12px;line-height:20px;vertical-align:middle}.param-type{color:#999;font-size:12px;line-height:20px;vertical-align:middle;font-weight:bold}.param-type.array:before{content:"Array of ";color:#999}.param-type.string{color:rgba(0,80,0,0.7)}.param-type.integer,.param-type.number{color:rgba(74,139,179,0.8)}.param-type.object{color:rgba(0,50,159,0.7)}.param-type.boolean{color:firebrick}.param-type.with-hint{background-color:rgba(0,50,159,0.1);padding:0.2em 0;font-size:0.85em;border-radius:3px;cursor:help}.param-type.with-hint:before,.param-type.with-hint:after{content:"\\00a0"}.param-type-trivial{margin:10px 10px 0;display:inline-block}.param-name>span:before{content:"";display:inline-block;width:7px;height:7px;background-color:#7D97CE;margin:0 10px;vertical-align:middle}.param-name>span:after{content:"";position:absolute;border-top:1px solid #7D97CE;width:10px;left:0;top:20px}.param-wrap:first-of-type>.param>.param-name:before{content:"";display:block;position:absolute;left:-1px;top:0;border-left:2px solid #fff;height:20px}.param-wrap:last-of-type>.param>.param-name{position:static}.param-wrap:last-of-type>.param>.param-name:after{content:"";display:block;position:absolute;left:-1px;border-left:2px solid #fff;top:21px;background-color:white;bottom:0}.param-wrap:last-of-type>.param-schema{border-left-color:transparent}.param-schema .param-wrap:first-of-type .param-name:before{display:none !important}.params-wrap.params-array:before,.params-wrap.params-array:after{display:block;font-weight:bold;color:#999;font-size:12px;line-height:1.5}.params-wrap.params-array:after{content:"]"}.params-wrap.params-array:before{content:"Array [";padding-top:1em}.params-wrap.params-array{padding-left:10px}.param-schema.param-array:before{bottom:9px;width:10px;border-left-style:dashed;border-bottom:1px dashed #7D97CE}.params-wrap.params-array>.param-wrap:first-of-type>.param>.param-name:after{content:"";display:block;position:absolute;left:-1px;top:0;border-left:2px solid #fff;height:20px}.params-wrap>.param>.param-schema.param-array{border-left-color:transparent}.param.discriminator>div{padding-bottom:0;border-bottom:0}.discriminator-info{font-weight:bold}:host tabs{display:block;border-left:1px solid #7D97CE}:host tabs li{margin:0.2em 0.5em 0.2em 0;font-size:14px;border:0;color:white;padding:0 15px;border-radius:10px;background-color:#8A9094}:host tabs li:last-of-type{margin:0}:host tabs li.active{background-color:#00329F}tabs .params-wrap>.param-wrap:first-of-type .param-name{border-left:0}tabs .params-wrap>.param-wrap:first-of-type .param-name:before{display:none}\n '], - directives: [JsonSchema, Tabs, Tab], - inputs: ['isArray', 'final'] - })(JsonSchema) || JsonSchema; - return JsonSchema; - })(BaseComponent); - - _export('default', JsonSchema); - - JsonSchema.parameters = JsonSchema.parameters.concat([[ElementRef]]); - } - }; -}); -$__System.register('1c3', ['2', '8', '9', '12', '13', '14', '15', '1c', 'e', '1e', 'a'], function (_export) { - 'use strict'; - - var ApiInfo, ApiLogo, ParamsList, Method, ResponsesList, ResponsesSamples, MethodsList, Redoc, SchemaSample, SideMenu, JsonSchema, REDOC_COMPONENTS; - return { - setters: [function (_) { - ApiInfo = _['default']; - }, function (_2) { - ApiLogo = _2['default']; - }, function (_5) { - ParamsList = _5['default']; - }, function (_3) { - Method = _3['default']; - }, function (_6) { - ResponsesList = _6['default']; - }, function (_7) { - ResponsesSamples = _7['default']; - }, function (_4) { - MethodsList = _4['default']; - }, function (_c) { - Redoc = _c['default']; - }, function (_e) { - SchemaSample = _e['default']; - }, function (_e2) { - SideMenu = _e2['default']; - }, function (_a) { - JsonSchema = _a['default']; - }], - execute: function () { - REDOC_COMPONENTS = [ApiInfo, ApiLogo, JsonSchema, Method, MethodsList, ParamsList, Redoc, ResponsesList, ResponsesSamples, SchemaSample, SideMenu]; - - _export('ApiInfo', ApiInfo); - - _export('ApiLogo', ApiLogo); - - _export('JsonSchema', JsonSchema); - - _export('Method', Method); - - _export('MethodsList', MethodsList); - - _export('ParamsList', ParamsList); - - _export('Redoc', Redoc); - - _export('ResponsesList', ResponsesList); - - _export('ResponsesSamples', ResponsesSamples); - - _export('SchemaSample', SchemaSample); - - _export('SideMenu', SideMenu); - - _export('REDOC_COMPONENTS', REDOC_COMPONENTS); - } - }; -}); -$__System.registerDynamic("1c4", ["1c5"], true, function($__require, exports, module) { - "use strict"; - ; - var global = this, - __define = global.define; - global.define = undefined; - var decorators_1 = $__require('1c5'); + var decorators_1 = $__require('1b5'); exports.Class = decorators_1.Class; global.define = __define; return module.exports; }); -$__System.registerDynamic("1c6", ["22"], true, function($__require, exports, module) { +$__System.registerDynamic("1b6", ["2b"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var lang_1 = $__require('22'); + var lang_1 = $__require('2b'); exports.enableProdMode = lang_1.enableProdMode; global.define = __define; return module.exports; }); -$__System.registerDynamic("1c7", ["22", "67", "40", "1c8"], true, function($__require, exports, module) { +$__System.registerDynamic("1b7", ["2b", "62", "3f", "1b8"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var lang_1 = $__require('22'); + var lang_1 = $__require('2b'); exports.Type = lang_1.Type; - var async_1 = $__require('67'); + var async_1 = $__require('62'); exports.EventEmitter = async_1.EventEmitter; - var exceptions_1 = $__require('40'); + var exceptions_1 = $__require('3f'); exports.WrappedException = exceptions_1.WrappedException; - var exception_handler_1 = $__require('1c8'); + var exception_handler_1 = $__require('1b8'); exports.ExceptionHandler = exception_handler_1.ExceptionHandler; global.define = __define; return module.exports; }); -$__System.registerDynamic("5f", ["56", "22", "3d", "8c", "67", "3b", "62", "25", "40", "1c9", "1ca", "50"], true, function($__require, exports, module) { +$__System.registerDynamic("5a", ["50", "2b", "3c", "90", "62", "3a", "5d", "23", "3f", "1b9", "1ba"], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -41938,19 +41317,18 @@ $__System.registerDynamic("5f", ["56", "22", "3d", "8c", "67", "3b", "62", "25", } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; - var ng_zone_1 = $__require('56'); - var lang_1 = $__require('22'); - var di_1 = $__require('3d'); - var application_tokens_1 = $__require('8c'); - var async_1 = $__require('67'); - var collection_1 = $__require('3b'); - var testability_1 = $__require('62'); - var dynamic_component_loader_1 = $__require('25'); - var exceptions_1 = $__require('40'); - var view_ref_1 = $__require('1c9'); - var console_1 = $__require('1ca'); - var profile_1 = $__require('50'); - var lang_2 = $__require('22'); + var ng_zone_1 = $__require('50'); + var lang_1 = $__require('2b'); + var di_1 = $__require('3c'); + var application_tokens_1 = $__require('90'); + var async_1 = $__require('62'); + var collection_1 = $__require('3a'); + var testability_1 = $__require('5d'); + var dynamic_component_loader_1 = $__require('23'); + var exceptions_1 = $__require('3f'); + var console_1 = $__require('1b9'); + var profile_1 = $__require('1ba'); + var lang_2 = $__require('2b'); function _componentProviders(appComponentType) { return [di_1.provide(application_tokens_1.APP_COMPONENT, {useValue: appComponentType}), di_1.provide(application_tokens_1.APP_COMPONENT_REF_PROMISE, { useFactory: function(dynamicComponentLoader, appRef, injector) { @@ -41959,8 +41337,9 @@ $__System.registerDynamic("5f", ["56", "22", "3d", "8c", "67", "3b", "62", "25", appRef._unloadComponent(ref); }).then(function(componentRef) { ref = componentRef; - if (lang_1.isPresent(componentRef.location.nativeElement)) { - injector.get(testability_1.TestabilityRegistry).registerApplication(componentRef.location.nativeElement, injector.get(testability_1.Testability)); + var testability = injector.getOptional(testability_1.Testability); + if (lang_1.isPresent(testability)) { + injector.get(testability_1.TestabilityRegistry).registerApplication(componentRef.location.nativeElement, testability); } return componentRef; }); @@ -42052,20 +41431,28 @@ $__System.registerDynamic("5f", ["56", "22", "3d", "8c", "67", "3b", "62", "25", }); PlatformRef_.prototype.application = function(providers) { var app = this._initApp(createNgZone(), providers); + if (async_1.PromiseWrapper.isPromise(app)) { + throw new exceptions_1.BaseException("Cannot use asyncronous app initializers with application. Use asyncApplication instead."); + } return app; }; PlatformRef_.prototype.asyncApplication = function(bindingFn, additionalProviders) { var _this = this; var zone = createNgZone(); var completer = async_1.PromiseWrapper.completer(); - zone.run(function() { - async_1.PromiseWrapper.then(bindingFn(zone), function(providers) { - if (lang_1.isPresent(additionalProviders)) { - providers = collection_1.ListWrapper.concat(providers, additionalProviders); - } - completer.resolve(_this._initApp(zone, providers)); + if (bindingFn === null) { + completer.resolve(this._initApp(zone, additionalProviders)); + } else { + zone.run(function() { + async_1.PromiseWrapper.then(bindingFn(zone), function(providers) { + if (lang_1.isPresent(additionalProviders)) { + providers = collection_1.ListWrapper.concat(providers, additionalProviders); + } + var promise = _this._initApp(zone, providers); + completer.resolve(promise); + }); }); - }); + } return completer.promise; }; PlatformRef_.prototype._initApp = function(zone, providers) { @@ -42096,8 +41483,14 @@ $__System.registerDynamic("5f", ["56", "22", "3d", "8c", "67", "3b", "62", "25", }); app = new ApplicationRef_(this, zone, injector); this._applications.push(app); - _runAppInitializers(injector); - return app; + var promise = _runAppInitializers(injector); + if (promise !== null) { + return async_1.PromiseWrapper.then(promise, function(_) { + return app; + }); + } else { + return app; + } }; PlatformRef_.prototype.dispose = function() { collection_1.ListWrapper.clone(this._applications).forEach(function(app) { @@ -42116,10 +41509,20 @@ $__System.registerDynamic("5f", ["56", "22", "3d", "8c", "67", "3b", "62", "25", exports.PlatformRef_ = PlatformRef_; function _runAppInitializers(injector) { var inits = injector.getOptional(application_tokens_1.APP_INITIALIZER); - if (lang_1.isPresent(inits)) + var promises = []; + if (lang_1.isPresent(inits)) { inits.forEach(function(init) { - return init(); + var retVal = init(); + if (async_1.PromiseWrapper.isPromise(retVal)) { + promises.push(retVal); + } }); + } + if (promises.length > 0) { + return async_1.PromiseWrapper.all(promises); + } else { + return null; + } } var ApplicationRef = (function() { function ApplicationRef() {} @@ -42217,13 +41620,14 @@ $__System.registerDynamic("5f", ["56", "22", "3d", "8c", "67", "3b", "62", "25", }); return completer.promise.then(function(_) { var c = _this._injector.get(console_1.Console); - var modeDescription = lang_1.assertionsEnabled() ? "in the development mode. Call enableProdMode() to enable the production mode." : "in the production mode. Call enableDevMode() to enable the development mode."; - c.log("Angular 2 is running " + modeDescription); + if (lang_1.assertionsEnabled()) { + c.log("Angular 2 is running in the development mode. Call enableProdMode() to enable the production mode."); + } return _; }); }; ApplicationRef_.prototype._loadComponent = function(ref) { - var appChangeDetector = view_ref_1.internalView(ref.hostView).changeDetector; + var appChangeDetector = ref.location.internalElement.parentView.changeDetector; this._changeDetectorRefs.push(appChangeDetector.ref); this.tick(); this._rootComponents.push(ref); @@ -42235,7 +41639,7 @@ $__System.registerDynamic("5f", ["56", "22", "3d", "8c", "67", "3b", "62", "25", if (!collection_1.ListWrapper.contains(this._rootComponents, ref)) { return; } - this.unregisterChangeDetector(view_ref_1.internalView(ref.hostView).changeDetector.ref); + this.unregisterChangeDetector(ref.location.internalElement.parentView.changeDetector.ref); collection_1.ListWrapper.remove(this._rootComponents, ref); }; Object.defineProperty(ApplicationRef_.prototype, "injector", { @@ -42296,77 +41700,69 @@ $__System.registerDynamic("5f", ["56", "22", "3d", "8c", "67", "3b", "62", "25", return module.exports; }); -$__System.registerDynamic("1cb", ["56"], true, function($__require, exports, module) { +$__System.registerDynamic("1bb", ["50"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var ng_zone_1 = $__require('56'); + var ng_zone_1 = $__require('50'); exports.NgZone = ng_zone_1.NgZone; exports.NgZoneError = ng_zone_1.NgZoneError; global.define = __define; return module.exports; }); -$__System.registerDynamic("1cc", ["5a"], true, function($__require, exports, module) { +$__System.registerDynamic("1bc", ["1bd"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var api_1 = $__require('5a'); + var api_1 = $__require('1bd'); + exports.RootRenderer = api_1.RootRenderer; exports.Renderer = api_1.Renderer; - exports.RenderViewRef = api_1.RenderViewRef; - exports.RenderProtoViewRef = api_1.RenderProtoViewRef; - exports.RenderFragmentRef = api_1.RenderFragmentRef; - exports.RenderViewWithFragments = api_1.RenderViewWithFragments; - exports.RenderTemplateCmd = api_1.RenderTemplateCmd; - exports.RenderTextCmd = api_1.RenderTextCmd; - exports.RenderNgContentCmd = api_1.RenderNgContentCmd; - exports.RenderBeginElementCmd = api_1.RenderBeginElementCmd; - exports.RenderBeginComponentCmd = api_1.RenderBeginComponentCmd; - exports.RenderEmbeddedTemplateCmd = api_1.RenderEmbeddedTemplateCmd; - exports.RenderBeginCmd = api_1.RenderBeginCmd; - exports.RenderComponentTemplate = api_1.RenderComponentTemplate; + exports.RenderComponentType = api_1.RenderComponentType; global.define = __define; return module.exports; }); -$__System.registerDynamic("1cd", ["82", "83", "64", "1ce", "1cf", "25", "1d0", "1d1", "1c9", "1d2"], true, function($__require, exports, module) { +$__System.registerDynamic("1be", ["81", "83", "5f", "1bf", "1c0", "23", "1c1", "1c2", "60", "1c3"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var directive_resolver_1 = $__require('82'); + var directive_resolver_1 = $__require('81'); exports.DirectiveResolver = directive_resolver_1.DirectiveResolver; var view_resolver_1 = $__require('83'); exports.ViewResolver = view_resolver_1.ViewResolver; - var compiler_1 = $__require('64'); + var compiler_1 = $__require('5f'); exports.Compiler = compiler_1.Compiler; - var view_manager_1 = $__require('1ce'); + var view_manager_1 = $__require('1bf'); exports.AppViewManager = view_manager_1.AppViewManager; - var query_list_1 = $__require('1cf'); + var query_list_1 = $__require('1c0'); exports.QueryList = query_list_1.QueryList; - var dynamic_component_loader_1 = $__require('25'); + var dynamic_component_loader_1 = $__require('23'); exports.DynamicComponentLoader = dynamic_component_loader_1.DynamicComponentLoader; - var element_ref_1 = $__require('1d0'); + var element_ref_1 = $__require('1c1'); exports.ElementRef = element_ref_1.ElementRef; - var template_ref_1 = $__require('1d1'); + var template_ref_1 = $__require('1c2'); exports.TemplateRef = template_ref_1.TemplateRef; - var view_ref_1 = $__require('1c9'); + var view_ref_1 = $__require('60'); + exports.EmbeddedViewRef = view_ref_1.EmbeddedViewRef; + exports.HostViewRef = view_ref_1.HostViewRef; exports.ViewRef = view_ref_1.ViewRef; - exports.ProtoViewRef = view_ref_1.ProtoViewRef; - var view_container_ref_1 = $__require('1d2'); + exports.HostViewFactoryRef = view_ref_1.HostViewFactoryRef; + var view_container_ref_1 = $__require('1c3'); exports.ViewContainerRef = view_container_ref_1.ViewContainerRef; - var dynamic_component_loader_2 = $__require('25'); + var dynamic_component_loader_2 = $__require('23'); exports.ComponentRef = dynamic_component_loader_2.ComponentRef; global.define = __define; return module.exports; }); -$__System.registerDynamic("5b", ["22", "40", "1d3", "1c9"], true, function($__require, exports, module) { +$__System.registerDynamic("54", ["2b", "3a"], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -42381,211 +41777,181 @@ $__System.registerDynamic("5b", ["22", "40", "1d3", "1c9"], true, function($__re } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; - var lang_1 = $__require('22'); - var exceptions_1 = $__require('40'); - var view_1 = $__require('1d3'); - var view_ref_1 = $__require('1c9'); - var DebugElement = (function() { - function DebugElement() {} - Object.defineProperty(DebugElement.prototype, "componentInstance", { - get: function() { - return exceptions_1.unimplemented(); - }, - enumerable: true, - configurable: true - }); + var lang_1 = $__require('2b'); + var collection_1 = $__require('3a'); + var EventListener = (function() { + function EventListener(name, callback) { + this.name = name; + this.callback = callback; + } ; - Object.defineProperty(DebugElement.prototype, "nativeElement", { - get: function() { - return exceptions_1.unimplemented(); - }, - enumerable: true, - configurable: true - }); - ; - Object.defineProperty(DebugElement.prototype, "elementRef", { - get: function() { - return exceptions_1.unimplemented(); - }, - enumerable: true, - configurable: true - }); - ; - Object.defineProperty(DebugElement.prototype, "children", { - get: function() { - return exceptions_1.unimplemented(); - }, - enumerable: true, - configurable: true - }); - ; - Object.defineProperty(DebugElement.prototype, "componentViewChildren", { - get: function() { - return exceptions_1.unimplemented(); - }, - enumerable: true, - configurable: true - }); - ; - DebugElement.prototype.query = function(predicate, scope) { - if (scope === void 0) { - scope = Scope.all; + return EventListener; + })(); + exports.EventListener = EventListener; + var DebugNode = (function() { + function DebugNode(nativeNode, parent) { + this.nativeNode = nativeNode; + if (lang_1.isPresent(parent) && parent instanceof DebugElement) { + parent.addChild(this); + } else { + this.parent = null; } - var results = this.queryAll(predicate, scope); + this.listeners = []; + this.providerTokens = []; + } + DebugNode.prototype.setDebugInfo = function(info) { + this.injector = info.injector; + this.providerTokens = info.providerTokens; + this.locals = info.locals; + this.componentInstance = info.component; + }; + DebugNode.prototype.inject = function(token) { + return this.injector.get(token); + }; + DebugNode.prototype.getLocal = function(name) { + return this.locals.get(name); + }; + return DebugNode; + })(); + exports.DebugNode = DebugNode; + var DebugElement = (function(_super) { + __extends(DebugElement, _super); + function DebugElement(nativeNode, parent) { + _super.call(this, nativeNode, parent); + this.properties = new Map(); + this.attributes = new Map(); + this.childNodes = []; + this.nativeElement = nativeNode; + } + DebugElement.prototype.addChild = function(child) { + if (lang_1.isPresent(child)) { + this.childNodes.push(child); + child.parent = this; + } + }; + DebugElement.prototype.removeChild = function(child) { + var childIndex = this.childNodes.indexOf(child); + if (childIndex !== -1) { + child.parent = null; + this.childNodes.splice(childIndex, 1); + } + }; + DebugElement.prototype.insertChildrenAfter = function(child, newChildren) { + var siblingIndex = this.childNodes.indexOf(child); + if (siblingIndex !== -1) { + var previousChildren = this.childNodes.slice(0, siblingIndex + 1); + var nextChildren = this.childNodes.slice(siblingIndex + 1); + this.childNodes = collection_1.ListWrapper.concat(collection_1.ListWrapper.concat(previousChildren, newChildren), nextChildren); + for (var i = 0; i < newChildren.length; ++i) { + var newChild = newChildren[i]; + if (lang_1.isPresent(newChild.parent)) { + newChild.parent.removeChild(newChild); + } + newChild.parent = this; + } + } + }; + DebugElement.prototype.query = function(predicate) { + var results = this.queryAll(predicate); return results.length > 0 ? results[0] : null; }; - DebugElement.prototype.queryAll = function(predicate, scope) { - if (scope === void 0) { - scope = Scope.all; - } - var elementsInScope = scope(this); - return elementsInScope.filter(predicate); + DebugElement.prototype.queryAll = function(predicate) { + var matches = []; + _queryElementChildren(this, predicate, matches); + return matches; + }; + DebugElement.prototype.queryAllNodes = function(predicate) { + var matches = []; + _queryNodeChildren(this, predicate, matches); + return matches; + }; + Object.defineProperty(DebugElement.prototype, "children", { + get: function() { + var children = []; + this.childNodes.forEach(function(node) { + if (node instanceof DebugElement) { + children.push(node); + } + }); + return children; + }, + enumerable: true, + configurable: true + }); + DebugElement.prototype.triggerEventHandler = function(eventName, eventObj) { + this.listeners.forEach(function(listener) { + if (listener.name == eventName) { + listener.callback(eventObj); + } + }); }; return DebugElement; - })(); + })(DebugNode); exports.DebugElement = DebugElement; - var DebugElement_ = (function(_super) { - __extends(DebugElement_, _super); - function DebugElement_(_parentView, _boundElementIndex) { - _super.call(this); - this._parentView = _parentView; - this._boundElementIndex = _boundElementIndex; - this._elementInjector = this._parentView.elementInjectors[this._boundElementIndex]; - } - Object.defineProperty(DebugElement_.prototype, "componentInstance", { - get: function() { - if (!lang_1.isPresent(this._elementInjector)) { - return null; - } - return this._elementInjector.getComponent(); - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(DebugElement_.prototype, "nativeElement", { - get: function() { - return this.elementRef.nativeElement; - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(DebugElement_.prototype, "elementRef", { - get: function() { - return this._parentView.elementRefs[this._boundElementIndex]; - }, - enumerable: true, - configurable: true - }); - DebugElement_.prototype.getDirectiveInstance = function(directiveIndex) { - return this._elementInjector.getDirectiveAtIndex(directiveIndex); - }; - Object.defineProperty(DebugElement_.prototype, "children", { - get: function() { - return this._getChildElements(this._parentView, this._boundElementIndex); - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(DebugElement_.prototype, "componentViewChildren", { - get: function() { - var shadowView = this._parentView.getNestedView(this._boundElementIndex); - if (!lang_1.isPresent(shadowView) || shadowView.proto.type !== view_1.ViewType.COMPONENT) { - return []; - } - return this._getChildElements(shadowView, null); - }, - enumerable: true, - configurable: true - }); - DebugElement_.prototype.triggerEventHandler = function(eventName, eventObj) { - this._parentView.triggerEventHandlers(eventName, eventObj, this._boundElementIndex); - }; - DebugElement_.prototype.hasDirective = function(type) { - if (!lang_1.isPresent(this._elementInjector)) { - return false; - } - return this._elementInjector.hasDirective(type); - }; - DebugElement_.prototype.inject = function(type) { - if (!lang_1.isPresent(this._elementInjector)) { - return null; - } - return this._elementInjector.get(type); - }; - DebugElement_.prototype.getLocal = function(name) { - return this._parentView.locals.get(name); - }; - DebugElement_.prototype._getChildElements = function(view, parentBoundElementIndex) { - var _this = this; - var els = []; - var parentElementBinder = null; - if (lang_1.isPresent(parentBoundElementIndex)) { - parentElementBinder = view.proto.elementBinders[parentBoundElementIndex - view.elementOffset]; - } - for (var i = 0; i < view.proto.elementBinders.length; ++i) { - var binder = view.proto.elementBinders[i]; - if (binder.parent == parentElementBinder) { - els.push(new DebugElement_(view, view.elementOffset + i)); - var views = view.viewContainers[view.elementOffset + i]; - if (lang_1.isPresent(views)) { - views.views.forEach(function(nextView) { - els = els.concat(_this._getChildElements(nextView, null)); - }); - } - } - } - return els; - }; - return DebugElement_; - })(DebugElement); - exports.DebugElement_ = DebugElement_; - function inspectElement(elementRef) { - return new DebugElement_(view_ref_1.internalView(elementRef.parentView), elementRef.boundElementIndex); - } - exports.inspectElement = inspectElement; - function asNativeElements(arr) { - return arr.map(function(debugEl) { - return debugEl.nativeElement; + function asNativeElements(debugEls) { + return debugEls.map(function(el) { + return el.nativeElement; }); } exports.asNativeElements = asNativeElements; - var Scope = (function() { - function Scope() {} - Scope.all = function(debugElement) { - var scope = []; - scope.push(debugElement); - debugElement.children.forEach(function(child) { - return scope = scope.concat(Scope.all(child)); + function _queryElementChildren(element, predicate, matches) { + element.childNodes.forEach(function(node) { + if (node instanceof DebugElement) { + if (predicate(node)) { + matches.push(node); + } + _queryElementChildren(node, predicate, matches); + } + }); + } + function _queryNodeChildren(parentNode, predicate, matches) { + if (parentNode instanceof DebugElement) { + parentNode.childNodes.forEach(function(node) { + if (predicate(node)) { + matches.push(node); + } + if (node instanceof DebugElement) { + _queryNodeChildren(node, predicate, matches); + } }); - debugElement.componentViewChildren.forEach(function(child) { - return scope = scope.concat(Scope.all(child)); - }); - return scope; - }; - Scope.light = function(debugElement) { - var scope = []; - debugElement.children.forEach(function(child) { - scope.push(child); - scope = scope.concat(Scope.light(child)); - }); - return scope; - }; - Scope.view = function(debugElement) { - var scope = []; - debugElement.componentViewChildren.forEach(function(child) { - scope.push(child); - scope = scope.concat(Scope.light(child)); - }); - return scope; - }; - return Scope; - })(); - exports.Scope = Scope; + } + } + var _nativeNodeToDebugNode = new Map(); + function getDebugNode(nativeNode) { + return _nativeNodeToDebugNode.get(nativeNode); + } + exports.getDebugNode = getDebugNode; + function getAllDebugNodes() { + return collection_1.MapWrapper.values(_nativeNodeToDebugNode); + } + exports.getAllDebugNodes = getAllDebugNodes; + function indexDebugNode(node) { + _nativeNodeToDebugNode.set(node.nativeNode, node); + } + exports.indexDebugNode = indexDebugNode; + function removeDebugNodeFromIndex(node) { + _nativeNodeToDebugNode.delete(node.nativeNode); + } + exports.removeDebugNodeFromIndex = removeDebugNodeFromIndex; global.define = __define; return module.exports; }); -$__System.registerDynamic("1ca", ["3d", "22"], true, function($__require, exports, module) { +$__System.registerDynamic("85", ["3c", "2b"], true, function($__require, exports, module) { + "use strict"; + ; + var global = this, + __define = global.define; + global.define = undefined; + var di_1 = $__require('3c'); + var lang_1 = $__require('2b'); + exports.PLATFORM_DIRECTIVES = lang_1.CONST_EXPR(new di_1.OpaqueToken("Platform Directives")); + exports.PLATFORM_PIPES = lang_1.CONST_EXPR(new di_1.OpaqueToken("Platform Pipes")); + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("1b9", ["3c", "2b"], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -42607,8 +41973,8 @@ $__System.registerDynamic("1ca", ["3d", "22"], true, function($__require, export if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; - var di_1 = $__require('3d'); - var lang_1 = $__require('22'); + var di_1 = $__require('3c'); + var lang_1 = $__require('2b'); var Console = (function() { function Console() {} Console.prototype.log = function(message) { @@ -42622,17 +41988,17 @@ $__System.registerDynamic("1ca", ["3d", "22"], true, function($__require, export return module.exports; }); -$__System.registerDynamic("56", ["3b", "22", "67", "50", "38"], true, function($__require, exports, module) { +$__System.registerDynamic("50", ["3a", "2b", "62", "1ba", "37"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; (function(process) { 'use strict'; - var collection_1 = $__require('3b'); - var lang_1 = $__require('22'); - var async_1 = $__require('67'); - var profile_1 = $__require('50'); + var collection_1 = $__require('3a'); + var lang_1 = $__require('2b'); + var async_1 = $__require('62'); + var profile_1 = $__require('1ba'); var NgZoneError = (function() { function NgZoneError(error, stackTrace) { this.error = error; @@ -42780,7 +42146,7 @@ $__System.registerDynamic("56", ["3b", "22", "67", "50", "38"], true, function($ var ngZone = this; var errorHandling; if (enableLongStackTrace) { - errorHandling = collection_1.StringMapWrapper.merge(Zone.longStackTraceZone, {onError: function(e) { + errorHandling = collection_1.StringMapWrapper.merge(lang_1.global.Zone.longStackTraceZone, {onError: function(e) { ngZone._notifyOnError(this, e); }}); } else { @@ -42852,14 +42218,14 @@ $__System.registerDynamic("56", ["3b", "22", "67", "50", "38"], true, function($ fn(); collection_1.ListWrapper.remove(ngZone._pendingTimeouts, id); }; - id = parentSetTimeout(cb, delay, args); + id = parentSetTimeout.call(this, cb, delay, args); ngZone._pendingTimeouts.push(id); return id; }; }, '$clearTimeout': function(parentClearTimeout) { return function(id) { - parentClearTimeout(id); + parentClearTimeout.call(this, id); collection_1.ListWrapper.remove(ngZone._pendingTimeouts, id); }; }, @@ -42888,12 +42254,12 @@ $__System.registerDynamic("56", ["3b", "22", "67", "50", "38"], true, function($ return NgZone; })(); exports.NgZone = NgZone; - })($__require('38')); + })($__require('37')); global.define = __define; return module.exports; }); -$__System.registerDynamic("62", ["3d", "3b", "22", "40", "56", "67"], true, function($__require, exports, module) { +$__System.registerDynamic("5d", ["3c", "3a", "2b", "3f", "50", "62"], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -42915,15 +42281,16 @@ $__System.registerDynamic("62", ["3d", "3b", "22", "40", "56", "67"], true, func if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; - var di_1 = $__require('3d'); - var collection_1 = $__require('3b'); - var lang_1 = $__require('22'); - var exceptions_1 = $__require('40'); - var ng_zone_1 = $__require('56'); - var async_1 = $__require('67'); + var di_1 = $__require('3c'); + var collection_1 = $__require('3a'); + var lang_1 = $__require('2b'); + var exceptions_1 = $__require('3f'); + var ng_zone_1 = $__require('50'); + var async_1 = $__require('62'); var Testability = (function() { function Testability(_ngZone) { this._pendingCount = 0; + this._didWork = false; this._callbacks = []; this._isAngularEventPending = false; this._watchAngularEvents(_ngZone); @@ -42931,6 +42298,7 @@ $__System.registerDynamic("62", ["3d", "3b", "22", "40", "56", "67"], true, func Testability.prototype._watchAngularEvents = function(_ngZone) { var _this = this; async_1.ObservableWrapper.subscribe(_ngZone.onTurnStart, function(_) { + _this._didWork = true; _this._isAngularEventPending = true; }); _ngZone.runOutsideAngular(function() { @@ -42944,6 +42312,7 @@ $__System.registerDynamic("62", ["3d", "3b", "22", "40", "56", "67"], true, func }; Testability.prototype.increasePendingRequestCount = function() { this._pendingCount += 1; + this._didWork = true; return this._pendingCount; }; Testability.prototype.decreasePendingRequestCount = function() { @@ -42960,12 +42329,14 @@ $__System.registerDynamic("62", ["3d", "3b", "22", "40", "56", "67"], true, func Testability.prototype._runCallbacksIfReady = function() { var _this = this; if (!this.isStable()) { + this._didWork = true; return; } async_1.PromiseWrapper.resolve(null).then(function(_) { while (_this._callbacks.length !== 0) { - (_this._callbacks.pop())(); + (_this._callbacks.pop())(_this._didWork); } + _this._didWork = false; }); }; Testability.prototype.whenStable = function(callback) { @@ -43030,17 +42401,17 @@ $__System.registerDynamic("62", ["3d", "3b", "22", "40", "56", "67"], true, func return module.exports; }); -$__System.registerDynamic("1d4", ["22", "3d", "1ca", "85", "62"], true, function($__require, exports, module) { +$__System.registerDynamic("1c4", ["2b", "3c", "1b9", "84", "5d"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var lang_1 = $__require('22'); - var di_1 = $__require('3d'); - var console_1 = $__require('1ca'); - var reflection_1 = $__require('85'); - var testability_1 = $__require('62'); + var lang_1 = $__require('2b'); + var di_1 = $__require('3c'); + var console_1 = $__require('1b9'); + var reflection_1 = $__require('84'); + var testability_1 = $__require('5d'); function _reflector() { return reflection_1.reflector; } @@ -43052,85 +42423,7 @@ $__System.registerDynamic("1d4", ["22", "3d", "1ca", "85", "62"], true, function return module.exports; }); -$__System.registerDynamic("64", ["65", "3d", "22", "40", "67", "85", "68"], true, function($__require, exports, module) { - "use strict"; - ; - var global = this, - __define = global.define; - global.define = undefined; - var __extends = (this && this.__extends) || function(d, b) { - for (var p in b) - if (b.hasOwnProperty(p)) - d[p] = b[p]; - function __() { - this.constructor = d; - } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; - var __decorate = (this && this.__decorate) || function(decorators, target, key, desc) { - var c = arguments.length, - r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, - d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") - r = Reflect.decorate(decorators, target, key, desc); - else - for (var i = decorators.length - 1; i >= 0; i--) - if (d = decorators[i]) - r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; - }; - var __metadata = (this && this.__metadata) || function(k, v) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") - return Reflect.metadata(k, v); - }; - var proto_view_factory_1 = $__require('65'); - var di_1 = $__require('3d'); - var lang_1 = $__require('22'); - var exceptions_1 = $__require('40'); - var async_1 = $__require('67'); - var reflection_1 = $__require('85'); - var template_commands_1 = $__require('68'); - var Compiler = (function() { - function Compiler() {} - return Compiler; - })(); - exports.Compiler = Compiler; - function _isCompiledHostTemplate(type) { - return type instanceof template_commands_1.CompiledHostTemplate; - } - var Compiler_ = (function(_super) { - __extends(Compiler_, _super); - function Compiler_(_protoViewFactory) { - _super.call(this); - this._protoViewFactory = _protoViewFactory; - } - Compiler_.prototype.compileInHost = function(componentType) { - var metadatas = reflection_1.reflector.annotations(componentType); - var compiledHostTemplate = metadatas.find(_isCompiledHostTemplate); - if (lang_1.isBlank(compiledHostTemplate)) { - throw new exceptions_1.BaseException("No precompiled template for component " + lang_1.stringify(componentType) + " found"); - } - return async_1.PromiseWrapper.resolve(this._createProtoView(compiledHostTemplate)); - }; - Compiler_.prototype._createProtoView = function(compiledHostTemplate) { - return this._protoViewFactory.createHost(compiledHostTemplate).ref; - }; - Compiler_.prototype.clearCache = function() { - this._protoViewFactory.clearCache(); - }; - Compiler_ = __decorate([di_1.Injectable(), __metadata('design:paramtypes', [proto_view_factory_1.ProtoViewFactory])], Compiler_); - return Compiler_; - })(Compiler); - exports.Compiler_ = Compiler_; - function internalCreateProtoView(compiler, compiledHostTemplate) { - return compiler._createProtoView(compiledHostTemplate); - } - exports.internalCreateProtoView = internalCreateProtoView; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("1d5", ["3d", "3b", "1d6", "22", "1d3", "1d0", "1d1", "1d7"], true, function($__require, exports, module) { +$__System.registerDynamic("6f", ["3c", "2b", "8e", "81", "1c5", "82"], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -43152,214 +42445,45 @@ $__System.registerDynamic("1d5", ["3d", "3b", "1d6", "22", "1d3", "1d0", "1d1", if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; - var di_1 = $__require('3d'); - var collection_1 = $__require('3b'); - var eli = $__require('1d6'); - var lang_1 = $__require('22'); - var viewModule = $__require('1d3'); - var element_ref_1 = $__require('1d0'); - var template_ref_1 = $__require('1d1'); - var pipes_1 = $__require('1d7'); - var AppViewManagerUtils = (function() { - function AppViewManagerUtils() {} - AppViewManagerUtils.prototype.getComponentInstance = function(parentView, boundElementIndex) { - var eli = parentView.elementInjectors[boundElementIndex]; - return eli.getComponent(); - }; - AppViewManagerUtils.prototype.createView = function(mergedParentViewProto, renderViewWithFragments, viewManager, renderer) { - var renderFragments = renderViewWithFragments.fragmentRefs; - var renderView = renderViewWithFragments.viewRef; - var elementCount = mergedParentViewProto.mergeInfo.elementCount; - var viewCount = mergedParentViewProto.mergeInfo.viewCount; - var elementRefs = collection_1.ListWrapper.createFixedSize(elementCount); - var viewContainers = collection_1.ListWrapper.createFixedSize(elementCount); - var preBuiltObjects = collection_1.ListWrapper.createFixedSize(elementCount); - var elementInjectors = collection_1.ListWrapper.createFixedSize(elementCount); - var views = collection_1.ListWrapper.createFixedSize(viewCount); - var elementOffset = 0; - var textOffset = 0; - var fragmentIdx = 0; - var containerElementIndicesByViewIndex = collection_1.ListWrapper.createFixedSize(viewCount); - for (var viewOffset = 0; viewOffset < viewCount; viewOffset++) { - var containerElementIndex = containerElementIndicesByViewIndex[viewOffset]; - var containerElementInjector = lang_1.isPresent(containerElementIndex) ? elementInjectors[containerElementIndex] : null; - var parentView = lang_1.isPresent(containerElementInjector) ? preBuiltObjects[containerElementIndex].view : null; - var protoView = lang_1.isPresent(containerElementIndex) ? parentView.proto.elementBinders[containerElementIndex - parentView.elementOffset].nestedProtoView : mergedParentViewProto; - var renderFragment = null; - if (viewOffset === 0 || protoView.type === viewModule.ViewType.EMBEDDED) { - renderFragment = renderFragments[fragmentIdx++]; - } - var currentView = new viewModule.AppView(renderer, protoView, viewOffset, elementOffset, textOffset, protoView.protoLocals, renderView, renderFragment, containerElementInjector); - views[viewOffset] = currentView; - if (lang_1.isPresent(containerElementIndex)) { - preBuiltObjects[containerElementIndex].nestedView = currentView; - } - var rootElementInjectors = []; - var nestedViewOffset = viewOffset + 1; - for (var binderIdx = 0; binderIdx < protoView.elementBinders.length; binderIdx++) { - var binder = protoView.elementBinders[binderIdx]; - var boundElementIndex = elementOffset + binderIdx; - var elementInjector = null; - if (lang_1.isPresent(binder.nestedProtoView) && binder.nestedProtoView.isMergable) { - containerElementIndicesByViewIndex[nestedViewOffset] = boundElementIndex; - nestedViewOffset += binder.nestedProtoView.mergeInfo.viewCount; - } - var protoElementInjector = binder.protoElementInjector; - if (lang_1.isPresent(protoElementInjector)) { - if (lang_1.isPresent(protoElementInjector.parent)) { - var parentElementInjector = elementInjectors[elementOffset + protoElementInjector.parent.index]; - elementInjector = protoElementInjector.instantiate(parentElementInjector); - } else { - elementInjector = protoElementInjector.instantiate(null); - rootElementInjectors.push(elementInjector); - } - } - elementInjectors[boundElementIndex] = elementInjector; - var el = new element_ref_1.ElementRef_(currentView.ref, boundElementIndex, renderer); - elementRefs[el.boundElementIndex] = el; - if (lang_1.isPresent(elementInjector)) { - var templateRef = lang_1.isPresent(binder.nestedProtoView) && binder.nestedProtoView.type === viewModule.ViewType.EMBEDDED ? new template_ref_1.TemplateRef_(el) : null; - preBuiltObjects[boundElementIndex] = new eli.PreBuiltObjects(viewManager, currentView, el, templateRef); - } - } - currentView.init(protoView.changeDetectorFactory(currentView), elementInjectors, rootElementInjectors, preBuiltObjects, views, elementRefs, viewContainers); - if (lang_1.isPresent(parentView) && protoView.type === viewModule.ViewType.COMPONENT) { - parentView.changeDetector.addViewChild(currentView.changeDetector); - } - elementOffset += protoView.elementBinders.length; - textOffset += protoView.textBindingCount; + var di_1 = $__require('3c'); + var lang_1 = $__require('2b'); + var element_1 = $__require('8e'); + var directive_resolver_1 = $__require('81'); + var pipe_provider_1 = $__require('1c5'); + var pipe_resolver_1 = $__require('82'); + var ResolvedMetadataCache = (function() { + function ResolvedMetadataCache(_directiveResolver, _pipeResolver) { + this._directiveResolver = _directiveResolver; + this._pipeResolver = _pipeResolver; + this._directiveCache = new Map(); + this._pipeCache = new Map(); + } + ResolvedMetadataCache.prototype.getResolvedDirectiveMetadata = function(type) { + var result = this._directiveCache.get(type); + if (lang_1.isBlank(result)) { + result = element_1.DirectiveProvider.createFromType(type, this._directiveResolver.resolve(type)); + this._directiveCache.set(type, result); } - return views[0]; + return result; }; - AppViewManagerUtils.prototype.hydrateRootHostView = function(hostView, injector) { - this._hydrateView(hostView, injector, null, new Object(), null); + ResolvedMetadataCache.prototype.getResolvedPipeMetadata = function(type) { + var result = this._pipeCache.get(type); + if (lang_1.isBlank(result)) { + result = pipe_provider_1.PipeProvider.createFromType(type, this._pipeResolver.resolve(type)); + this._pipeCache.set(type, result); + } + return result; }; - AppViewManagerUtils.prototype.attachViewInContainer = function(parentView, boundElementIndex, contextView, contextBoundElementIndex, index, view) { - if (lang_1.isBlank(contextView)) { - contextView = parentView; - contextBoundElementIndex = boundElementIndex; - } - parentView.changeDetector.addContentChild(view.changeDetector); - var viewContainer = parentView.viewContainers[boundElementIndex]; - if (lang_1.isBlank(viewContainer)) { - viewContainer = new viewModule.AppViewContainer(); - parentView.viewContainers[boundElementIndex] = viewContainer; - } - collection_1.ListWrapper.insert(viewContainer.views, index, view); - var elementInjector = contextView.elementInjectors[contextBoundElementIndex]; - for (var i = view.rootElementInjectors.length - 1; i >= 0; i--) { - if (lang_1.isPresent(elementInjector.parent)) { - view.rootElementInjectors[i].link(elementInjector.parent); - } - } - elementInjector.traverseAndSetQueriesAsDirty(); - }; - AppViewManagerUtils.prototype.detachViewInContainer = function(parentView, boundElementIndex, index) { - var viewContainer = parentView.viewContainers[boundElementIndex]; - var view = viewContainer.views[index]; - parentView.elementInjectors[boundElementIndex].traverseAndSetQueriesAsDirty(); - view.changeDetector.remove(); - collection_1.ListWrapper.removeAt(viewContainer.views, index); - for (var i = 0; i < view.rootElementInjectors.length; ++i) { - var inj = view.rootElementInjectors[i]; - inj.unlink(); - } - }; - AppViewManagerUtils.prototype.hydrateViewInContainer = function(parentView, boundElementIndex, contextView, contextBoundElementIndex, index, imperativelyCreatedProviders) { - if (lang_1.isBlank(contextView)) { - contextView = parentView; - contextBoundElementIndex = boundElementIndex; - } - var viewContainer = parentView.viewContainers[boundElementIndex]; - var view = viewContainer.views[index]; - var elementInjector = contextView.elementInjectors[contextBoundElementIndex]; - var injector = lang_1.isPresent(imperativelyCreatedProviders) ? di_1.Injector.fromResolvedProviders(imperativelyCreatedProviders) : null; - this._hydrateView(view, injector, elementInjector.getHost(), contextView.context, contextView.locals); - }; - AppViewManagerUtils.prototype._hydrateView = function(initView, imperativelyCreatedInjector, hostElementInjector, context, parentLocals) { - var viewIdx = initView.viewOffset; - var endViewOffset = viewIdx + initView.proto.mergeInfo.viewCount - 1; - while (viewIdx <= endViewOffset) { - var currView = initView.views[viewIdx]; - var currProtoView = currView.proto; - if (currView !== initView && currView.proto.type === viewModule.ViewType.EMBEDDED) { - viewIdx += currView.proto.mergeInfo.viewCount; - } else { - if (currView !== initView) { - imperativelyCreatedInjector = null; - parentLocals = null; - hostElementInjector = currView.containerElementInjector; - context = hostElementInjector.getComponent(); - } - currView.context = context; - currView.locals.parent = parentLocals; - var binders = currProtoView.elementBinders; - for (var binderIdx = 0; binderIdx < binders.length; binderIdx++) { - var boundElementIndex = binderIdx + currView.elementOffset; - var elementInjector = initView.elementInjectors[boundElementIndex]; - if (lang_1.isPresent(elementInjector)) { - elementInjector.hydrate(imperativelyCreatedInjector, hostElementInjector, currView.preBuiltObjects[boundElementIndex]); - this._populateViewLocals(currView, elementInjector, boundElementIndex); - this._setUpEventEmitters(currView, elementInjector, boundElementIndex); - } - } - var pipes = lang_1.isPresent(hostElementInjector) ? new pipes_1.Pipes(currView.proto.pipes, hostElementInjector.getInjector()) : null; - currView.changeDetector.hydrate(currView.context, currView.locals, currView, pipes); - viewIdx++; - } - } - }; - AppViewManagerUtils.prototype._populateViewLocals = function(view, elementInjector, boundElementIdx) { - if (lang_1.isPresent(elementInjector.getDirectiveVariableBindings())) { - elementInjector.getDirectiveVariableBindings().forEach(function(directiveIndex, name) { - if (lang_1.isBlank(directiveIndex)) { - view.locals.set(name, view.elementRefs[boundElementIdx].nativeElement); - } else { - view.locals.set(name, elementInjector.getDirectiveAtIndex(directiveIndex)); - } - }); - } - }; - AppViewManagerUtils.prototype._setUpEventEmitters = function(view, elementInjector, boundElementIndex) { - var emitters = elementInjector.getEventEmitterAccessors(); - for (var directiveIndex = 0; directiveIndex < emitters.length; ++directiveIndex) { - var directiveEmitters = emitters[directiveIndex]; - var directive = elementInjector.getDirectiveAtIndex(directiveIndex); - for (var eventIndex = 0; eventIndex < directiveEmitters.length; ++eventIndex) { - var eventEmitterAccessor = directiveEmitters[eventIndex]; - eventEmitterAccessor.subscribe(view, boundElementIndex, directive); - } - } - }; - AppViewManagerUtils.prototype.dehydrateView = function(initView) { - var endViewOffset = initView.viewOffset + initView.proto.mergeInfo.viewCount - 1; - for (var viewIdx = initView.viewOffset; viewIdx <= endViewOffset; viewIdx++) { - var currView = initView.views[viewIdx]; - if (currView.hydrated()) { - if (lang_1.isPresent(currView.locals)) { - currView.locals.clearValues(); - } - currView.context = null; - currView.changeDetector.dehydrate(); - var binders = currView.proto.elementBinders; - for (var binderIdx = 0; binderIdx < binders.length; binderIdx++) { - var eli = initView.elementInjectors[currView.elementOffset + binderIdx]; - if (lang_1.isPresent(eli)) { - eli.dehydrate(); - } - } - } - } - }; - AppViewManagerUtils = __decorate([di_1.Injectable(), __metadata('design:paramtypes', [])], AppViewManagerUtils); - return AppViewManagerUtils; + ResolvedMetadataCache = __decorate([di_1.Injectable(), __metadata('design:paramtypes', [directive_resolver_1.DirectiveResolver, pipe_resolver_1.PipeResolver])], ResolvedMetadataCache); + return ResolvedMetadataCache; })(); - exports.AppViewManagerUtils = AppViewManagerUtils; + exports.ResolvedMetadataCache = ResolvedMetadataCache; + exports.CODEGEN_RESOLVED_METADATA_CACHE = new ResolvedMetadataCache(directive_resolver_1.CODEGEN_DIRECTIVE_RESOLVER, pipe_resolver_1.CODEGEN_PIPE_RESOLVER); global.define = __define; return module.exports; }); -$__System.registerDynamic("1d8", ["3d", "22", "3b"], true, function($__require, exports, module) { +$__System.registerDynamic("83", ["3c", "7d", "80", "2b", "3f", "3a", "84"], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -43381,3372 +42505,13 @@ $__System.registerDynamic("1d8", ["3d", "22", "3b"], true, function($__require, if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; - var __param = (this && this.__param) || function(paramIndex, decorator) { - return function(target, key) { - decorator(target, key, paramIndex); - }; - }; - var di_1 = $__require('3d'); - var lang_1 = $__require('22'); - var collection_1 = $__require('3b'); - exports.APP_VIEW_POOL_CAPACITY = lang_1.CONST_EXPR(new di_1.OpaqueToken('AppViewPool.viewPoolCapacity')); - var AppViewPool = (function() { - function AppViewPool(poolCapacityPerProtoView) { - this._pooledViewsPerProtoView = new collection_1.Map(); - this._poolCapacityPerProtoView = poolCapacityPerProtoView; - } - AppViewPool.prototype.getView = function(protoView) { - var pooledViews = this._pooledViewsPerProtoView.get(protoView); - if (lang_1.isPresent(pooledViews) && pooledViews.length > 0) { - return pooledViews.pop(); - } - return null; - }; - AppViewPool.prototype.returnView = function(view) { - var protoView = view.proto; - var pooledViews = this._pooledViewsPerProtoView.get(protoView); - if (lang_1.isBlank(pooledViews)) { - pooledViews = []; - this._pooledViewsPerProtoView.set(protoView, pooledViews); - } - var haveRemainingCapacity = pooledViews.length < this._poolCapacityPerProtoView; - if (haveRemainingCapacity) { - pooledViews.push(view); - } - return haveRemainingCapacity; - }; - AppViewPool = __decorate([di_1.Injectable(), __param(0, di_1.Inject(exports.APP_VIEW_POOL_CAPACITY)), __metadata('design:paramtypes', [Object])], AppViewPool); - return AppViewPool; - })(); - exports.AppViewPool = AppViewPool; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("59", ["3d"], true, function($__require, exports, module) { - "use strict"; - ; - var global = this, - __define = global.define; - global.define = undefined; - var __decorate = (this && this.__decorate) || function(decorators, target, key, desc) { - var c = arguments.length, - r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, - d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") - r = Reflect.decorate(decorators, target, key, desc); - else - for (var i = decorators.length - 1; i >= 0; i--) - if (d = decorators[i]) - r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; - }; - var __metadata = (this && this.__metadata) || function(k, v) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") - return Reflect.metadata(k, v); - }; - var di_1 = $__require('3d'); - var AppViewListener = (function() { - function AppViewListener() {} - AppViewListener.prototype.onViewCreated = function(view) {}; - AppViewListener.prototype.onViewDestroyed = function(view) {}; - AppViewListener = __decorate([di_1.Injectable(), __metadata('design:paramtypes', [])], AppViewListener); - return AppViewListener; - })(); - exports.AppViewListener = AppViewListener; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("1d9", [], true, function($__require, exports, module) { - "use strict"; - ; - var global = this, - __define = global.define; - global.define = undefined; - var SelectedPipe = (function() { - function SelectedPipe(pipe, pure) { - this.pipe = pipe; - this.pure = pure; - } - return SelectedPipe; - })(); - exports.SelectedPipe = SelectedPipe; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("1d7", ["22", "40", "3b", "1d9"], true, function($__require, exports, module) { - "use strict"; - ; - var global = this, - __define = global.define; - global.define = undefined; - var lang_1 = $__require('22'); - var exceptions_1 = $__require('40'); - var collection_1 = $__require('3b'); - var cd = $__require('1d9'); - var ProtoPipes = (function() { - function ProtoPipes(config) { - this.config = config; - this.config = config; - } - ProtoPipes.fromProviders = function(providers) { - var config = {}; - providers.forEach(function(b) { - return config[b.name] = b; - }); - return new ProtoPipes(config); - }; - ProtoPipes.prototype.get = function(name) { - var provider = this.config[name]; - if (lang_1.isBlank(provider)) - throw new exceptions_1.BaseException("Cannot find pipe '" + name + "'."); - return provider; - }; - return ProtoPipes; - })(); - exports.ProtoPipes = ProtoPipes; - var Pipes = (function() { - function Pipes(proto, injector) { - this.proto = proto; - this.injector = injector; - this._config = {}; - } - Pipes.prototype.get = function(name) { - var cached = collection_1.StringMapWrapper.get(this._config, name); - if (lang_1.isPresent(cached)) - return cached; - var p = this.proto.get(name); - var transform = this.injector.instantiateResolved(p); - var res = new cd.SelectedPipe(transform, p.pure); - if (p.pure) { - collection_1.StringMapWrapper.set(this._config, name, res); - } - return res; - }; - return Pipes; - })(); - exports.Pipes = Pipes; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("1da", ["22"], true, function($__require, exports, module) { - "use strict"; - ; - var global = this, - __define = global.define; - global.define = undefined; - var lang_1 = $__require('22'); - var CAMEL_CASE_REGEXP = /([A-Z])/g; - var DASH_CASE_REGEXP = /-([a-z])/g; - function camelCaseToDashCase(input) { - return lang_1.StringWrapper.replaceAllMapped(input, CAMEL_CASE_REGEXP, function(m) { - return '-' + m[1].toLowerCase(); - }); - } - exports.camelCaseToDashCase = camelCaseToDashCase; - function dashCaseToCamelCase(input) { - return lang_1.StringWrapper.replaceAllMapped(input, DASH_CASE_REGEXP, function(m) { - return m[1].toUpperCase(); - }); - } - exports.dashCaseToCamelCase = dashCaseToCamelCase; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("1d3", ["3b", "72", "1db", "22", "40", "1c9", "1da"], true, function($__require, exports, module) { - "use strict"; - ; - var global = this, - __define = global.define; - global.define = undefined; - var __extends = (this && this.__extends) || function(d, b) { - for (var p in b) - if (b.hasOwnProperty(p)) - d[p] = b[p]; - function __() { - this.constructor = d; - } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; - var collection_1 = $__require('3b'); - var change_detection_1 = $__require('72'); - var interfaces_1 = $__require('1db'); - var lang_1 = $__require('22'); - var exceptions_1 = $__require('40'); - var view_ref_1 = $__require('1c9'); - var util_1 = $__require('1da'); - var view_ref_2 = $__require('1c9'); - var interfaces_2 = $__require('1db'); - exports.DebugContext = interfaces_2.DebugContext; - var REFLECT_PREFIX = 'ng-reflect-'; - (function(ViewType) { - ViewType[ViewType["HOST"] = 0] = "HOST"; - ViewType[ViewType["COMPONENT"] = 1] = "COMPONENT"; - ViewType[ViewType["EMBEDDED"] = 2] = "EMBEDDED"; - })(exports.ViewType || (exports.ViewType = {})); - var ViewType = exports.ViewType; - var AppViewContainer = (function() { - function AppViewContainer() { - this.views = []; - } - return AppViewContainer; - })(); - exports.AppViewContainer = AppViewContainer; - var AppView = (function() { - function AppView(renderer, proto, viewOffset, elementOffset, textOffset, protoLocals, render, renderFragment, containerElementInjector) { - this.renderer = renderer; - this.proto = proto; - this.viewOffset = viewOffset; - this.elementOffset = elementOffset; - this.textOffset = textOffset; - this.render = render; - this.renderFragment = renderFragment; - this.containerElementInjector = containerElementInjector; - this.views = null; - this.elementInjectors = null; - this.viewContainers = null; - this.preBuiltObjects = null; - this.changeDetector = null; - this.context = null; - this.ref = new view_ref_2.ViewRef_(this); - this.locals = new change_detection_1.Locals(null, collection_1.MapWrapper.clone(protoLocals)); - } - AppView.prototype.init = function(changeDetector, elementInjectors, rootElementInjectors, preBuiltObjects, views, elementRefs, viewContainers) { - this.changeDetector = changeDetector; - this.elementInjectors = elementInjectors; - this.rootElementInjectors = rootElementInjectors; - this.preBuiltObjects = preBuiltObjects; - this.views = views; - this.elementRefs = elementRefs; - this.viewContainers = viewContainers; - }; - AppView.prototype.setLocal = function(contextName, value) { - if (!this.hydrated()) - throw new exceptions_1.BaseException('Cannot set locals on dehydrated view.'); - if (!this.proto.templateVariableBindings.has(contextName)) { - return; - } - var templateName = this.proto.templateVariableBindings.get(contextName); - this.locals.set(templateName, value); - }; - AppView.prototype.hydrated = function() { - return lang_1.isPresent(this.context); - }; - AppView.prototype.triggerEventHandlers = function(eventName, eventObj, boundElementIndex) { - var locals = new collection_1.Map(); - locals.set('$event', eventObj); - this.dispatchEvent(boundElementIndex, eventName, locals); - }; - AppView.prototype.notifyOnBinding = function(b, currentValue) { - if (b.isTextNode()) { - this.renderer.setText(this.render, b.elementIndex + this.textOffset, currentValue); - } else { - var elementRef = this.elementRefs[this.elementOffset + b.elementIndex]; - if (b.isElementProperty()) { - this.renderer.setElementProperty(elementRef, b.name, currentValue); - } else if (b.isElementAttribute()) { - this.renderer.setElementAttribute(elementRef, b.name, lang_1.isPresent(currentValue) ? "" + currentValue : null); - } else if (b.isElementClass()) { - this.renderer.setElementClass(elementRef, b.name, currentValue); - } else if (b.isElementStyle()) { - var unit = lang_1.isPresent(b.unit) ? b.unit : ''; - this.renderer.setElementStyle(elementRef, b.name, lang_1.isPresent(currentValue) ? "" + currentValue + unit : null); - } else { - throw new exceptions_1.BaseException('Unsupported directive record'); - } - } - }; - AppView.prototype.logBindingUpdate = function(b, value) { - if (b.isDirective() || b.isElementProperty()) { - var elementRef = this.elementRefs[this.elementOffset + b.elementIndex]; - this.renderer.setBindingDebugInfo(elementRef, "" + REFLECT_PREFIX + util_1.camelCaseToDashCase(b.name), "" + value); - } - }; - AppView.prototype.notifyAfterContentChecked = function() { - var eiCount = this.proto.elementBinders.length; - var ei = this.elementInjectors; - for (var i = eiCount - 1; i >= 0; i--) { - if (lang_1.isPresent(ei[i + this.elementOffset])) - ei[i + this.elementOffset].ngAfterContentChecked(); - } - }; - AppView.prototype.notifyAfterViewChecked = function() { - var eiCount = this.proto.elementBinders.length; - var ei = this.elementInjectors; - for (var i = eiCount - 1; i >= 0; i--) { - if (lang_1.isPresent(ei[i + this.elementOffset])) - ei[i + this.elementOffset].ngAfterViewChecked(); - } - }; - AppView.prototype.getDirectiveFor = function(directive) { - var elementInjector = this.elementInjectors[this.elementOffset + directive.elementIndex]; - return elementInjector.getDirectiveAtIndex(directive.directiveIndex); - }; - AppView.prototype.getNestedView = function(boundElementIndex) { - var eli = this.elementInjectors[boundElementIndex]; - return lang_1.isPresent(eli) ? eli.getNestedView() : null; - }; - AppView.prototype.getContainerElement = function() { - return lang_1.isPresent(this.containerElementInjector) ? this.containerElementInjector.getElementRef() : null; - }; - AppView.prototype.getDebugContext = function(elementIndex, directiveIndex) { - try { - var offsettedIndex = this.elementOffset + elementIndex; - var hasRefForIndex = offsettedIndex < this.elementRefs.length; - var elementRef = hasRefForIndex ? this.elementRefs[this.elementOffset + elementIndex] : null; - var container = this.getContainerElement(); - var ei = hasRefForIndex ? this.elementInjectors[this.elementOffset + elementIndex] : null; - var element = lang_1.isPresent(elementRef) ? elementRef.nativeElement : null; - var componentElement = lang_1.isPresent(container) ? container.nativeElement : null; - var directive = lang_1.isPresent(directiveIndex) ? this.getDirectiveFor(directiveIndex) : null; - var injector = lang_1.isPresent(ei) ? ei.getInjector() : null; - return new interfaces_1.DebugContext(element, componentElement, directive, this.context, _localsToStringMap(this.locals), injector); - } catch (e) { - return null; - } - }; - AppView.prototype.getDetectorFor = function(directive) { - var childView = this.getNestedView(this.elementOffset + directive.elementIndex); - return lang_1.isPresent(childView) ? childView.changeDetector : null; - }; - AppView.prototype.invokeElementMethod = function(elementIndex, methodName, args) { - this.renderer.invokeElementMethod(this.elementRefs[elementIndex], methodName, args); - }; - AppView.prototype.dispatchRenderEvent = function(boundElementIndex, eventName, locals) { - var elementRef = this.elementRefs[boundElementIndex]; - var view = view_ref_1.internalView(elementRef.parentView); - return view.dispatchEvent(elementRef.boundElementIndex, eventName, locals); - }; - AppView.prototype.dispatchEvent = function(boundElementIndex, eventName, locals) { - try { - if (this.hydrated()) { - return !this.changeDetector.handleEvent(eventName, boundElementIndex - this.elementOffset, new change_detection_1.Locals(this.locals, locals)); - } else { - return true; - } - } catch (e) { - var c = this.getDebugContext(boundElementIndex - this.elementOffset, null); - var context = lang_1.isPresent(c) ? new _Context(c.element, c.componentElement, c.context, c.locals, c.injector) : null; - throw new EventEvaluationError(eventName, e, e.stack, context); - } - }; - Object.defineProperty(AppView.prototype, "ownBindersCount", { - get: function() { - return this.proto.elementBinders.length; - }, - enumerable: true, - configurable: true - }); - return AppView; - })(); - exports.AppView = AppView; - function _localsToStringMap(locals) { - var res = {}; - var c = locals; - while (lang_1.isPresent(c)) { - res = collection_1.StringMapWrapper.merge(res, collection_1.MapWrapper.toStringMap(c.current)); - c = c.parent; - } - return res; - } - var _Context = (function() { - function _Context(element, componentElement, context, locals, injector) { - this.element = element; - this.componentElement = componentElement; - this.context = context; - this.locals = locals; - this.injector = injector; - } - return _Context; - })(); - var EventEvaluationError = (function(_super) { - __extends(EventEvaluationError, _super); - function EventEvaluationError(eventName, originalException, originalStack, context) { - _super.call(this, "Error during evaluation of \"" + eventName + "\"", originalException, originalStack, context); - } - return EventEvaluationError; - })(exceptions_1.WrappedException); - var AppProtoViewMergeInfo = (function() { - function AppProtoViewMergeInfo(embeddedViewCount, elementCount, viewCount) { - this.embeddedViewCount = embeddedViewCount; - this.elementCount = elementCount; - this.viewCount = viewCount; - } - return AppProtoViewMergeInfo; - })(); - exports.AppProtoViewMergeInfo = AppProtoViewMergeInfo; - var AppProtoView = (function() { - function AppProtoView(templateId, templateCmds, type, isMergable, changeDetectorFactory, templateVariableBindings, pipes) { - this.templateId = templateId; - this.templateCmds = templateCmds; - this.type = type; - this.isMergable = isMergable; - this.changeDetectorFactory = changeDetectorFactory; - this.templateVariableBindings = templateVariableBindings; - this.pipes = pipes; - this.elementBinders = null; - this.mergeInfo = null; - this.variableLocations = null; - this.textBindingCount = null; - this.render = null; - this.ref = new view_ref_2.ProtoViewRef_(this); - } - AppProtoView.prototype.init = function(render, elementBinders, textBindingCount, mergeInfo, variableLocations) { - var _this = this; - this.render = render; - this.elementBinders = elementBinders; - this.textBindingCount = textBindingCount; - this.mergeInfo = mergeInfo; - this.variableLocations = variableLocations; - this.protoLocals = new collection_1.Map(); - if (lang_1.isPresent(this.templateVariableBindings)) { - this.templateVariableBindings.forEach(function(templateName, _) { - _this.protoLocals.set(templateName, null); - }); - } - if (lang_1.isPresent(variableLocations)) { - variableLocations.forEach(function(_, templateName) { - _this.protoLocals.set(templateName, null); - }); - } - }; - AppProtoView.prototype.isInitialized = function() { - return lang_1.isPresent(this.elementBinders); - }; - return AppProtoView; - })(); - exports.AppProtoView = AppProtoView; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("1dc", ["22", "40"], true, function($__require, exports, module) { - "use strict"; - ; - var global = this, - __define = global.define; - global.define = undefined; - var lang_1 = $__require('22'); - var exceptions_1 = $__require('40'); - var ElementBinder = (function() { - function ElementBinder(index, parent, distanceToParent, protoElementInjector, componentDirective, nestedProtoView) { - this.index = index; - this.parent = parent; - this.distanceToParent = distanceToParent; - this.protoElementInjector = protoElementInjector; - this.componentDirective = componentDirective; - this.nestedProtoView = nestedProtoView; - if (lang_1.isBlank(index)) { - throw new exceptions_1.BaseException('null index not allowed.'); - } - } - return ElementBinder; - })(); - exports.ElementBinder = ElementBinder; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("1d2", ["3b", "40", "22", "1c9"], true, function($__require, exports, module) { - "use strict"; - ; - var global = this, - __define = global.define; - global.define = undefined; - var __extends = (this && this.__extends) || function(d, b) { - for (var p in b) - if (b.hasOwnProperty(p)) - d[p] = b[p]; - function __() { - this.constructor = d; - } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; - var collection_1 = $__require('3b'); - var exceptions_1 = $__require('40'); - var lang_1 = $__require('22'); - var view_ref_1 = $__require('1c9'); - var ViewContainerRef = (function() { - function ViewContainerRef() {} - ViewContainerRef.prototype.clear = function() { - for (var i = this.length - 1; i >= 0; i--) { - this.remove(i); - } - }; - Object.defineProperty(ViewContainerRef.prototype, "length", { - get: function() { - return exceptions_1.unimplemented(); - }, - enumerable: true, - configurable: true - }); - ; - return ViewContainerRef; - })(); - exports.ViewContainerRef = ViewContainerRef; - var ViewContainerRef_ = (function(_super) { - __extends(ViewContainerRef_, _super); - function ViewContainerRef_(viewManager, element) { - _super.call(this); - this.viewManager = viewManager; - this.element = element; - } - ViewContainerRef_.prototype._getViews = function() { - var element = this.element; - var vc = view_ref_1.internalView(element.parentView).viewContainers[element.boundElementIndex]; - return lang_1.isPresent(vc) ? vc.views : []; - }; - ViewContainerRef_.prototype.get = function(index) { - return this._getViews()[index].ref; - }; - Object.defineProperty(ViewContainerRef_.prototype, "length", { - get: function() { - return this._getViews().length; - }, - enumerable: true, - configurable: true - }); - ViewContainerRef_.prototype.createEmbeddedView = function(templateRef, index) { - if (index === void 0) { - index = -1; - } - if (index == -1) - index = this.length; - return this.viewManager.createEmbeddedViewInContainer(this.element, index, templateRef); - }; - ViewContainerRef_.prototype.createHostView = function(protoViewRef, index, dynamicallyCreatedProviders) { - if (protoViewRef === void 0) { - protoViewRef = null; - } - if (index === void 0) { - index = -1; - } - if (dynamicallyCreatedProviders === void 0) { - dynamicallyCreatedProviders = null; - } - if (index == -1) - index = this.length; - return this.viewManager.createHostViewInContainer(this.element, index, protoViewRef, dynamicallyCreatedProviders); - }; - ViewContainerRef_.prototype.insert = function(viewRef, index) { - if (index === void 0) { - index = -1; - } - if (index == -1) - index = this.length; - return this.viewManager.attachViewInContainer(this.element, index, viewRef); - }; - ViewContainerRef_.prototype.indexOf = function(viewRef) { - return collection_1.ListWrapper.indexOf(this._getViews(), view_ref_1.internalView(viewRef)); - }; - ViewContainerRef_.prototype.remove = function(index) { - if (index === void 0) { - index = -1; - } - if (index == -1) - index = this.length - 1; - this.viewManager.destroyViewInContainer(this.element, index); - }; - ViewContainerRef_.prototype.detach = function(index) { - if (index === void 0) { - index = -1; - } - if (index == -1) - index = this.length - 1; - return this.viewManager.detachViewInContainer(this.element, index); - }; - return ViewContainerRef_; - })(ViewContainerRef); - exports.ViewContainerRef_ = ViewContainerRef_; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("1d0", ["40"], true, function($__require, exports, module) { - "use strict"; - ; - var global = this, - __define = global.define; - global.define = undefined; - var __extends = (this && this.__extends) || function(d, b) { - for (var p in b) - if (b.hasOwnProperty(p)) - d[p] = b[p]; - function __() { - this.constructor = d; - } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; - var exceptions_1 = $__require('40'); - var ElementRef = (function() { - function ElementRef() {} - Object.defineProperty(ElementRef.prototype, "nativeElement", { - get: function() { - return exceptions_1.unimplemented(); - }, - enumerable: true, - configurable: true - }); - ; - Object.defineProperty(ElementRef.prototype, "renderView", { - get: function() { - return exceptions_1.unimplemented(); - }, - enumerable: true, - configurable: true - }); - return ElementRef; - })(); - exports.ElementRef = ElementRef; - var ElementRef_ = (function(_super) { - __extends(ElementRef_, _super); - function ElementRef_(parentView, boundElementIndex, _renderer) { - _super.call(this); - this.parentView = parentView; - this.boundElementIndex = boundElementIndex; - this._renderer = _renderer; - } - Object.defineProperty(ElementRef_.prototype, "renderView", { - get: function() { - return this.parentView.render; - }, - set: function(value) { - exceptions_1.unimplemented(); - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(ElementRef_.prototype, "nativeElement", { - get: function() { - return this._renderer.getNativeElementSync(this); - }, - enumerable: true, - configurable: true - }); - return ElementRef_; - })(ElementRef); - exports.ElementRef_ = ElementRef_; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("1c9", ["22", "40"], true, function($__require, exports, module) { - "use strict"; - ; - var global = this, - __define = global.define; - global.define = undefined; - var __extends = (this && this.__extends) || function(d, b) { - for (var p in b) - if (b.hasOwnProperty(p)) - d[p] = b[p]; - function __() { - this.constructor = d; - } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; - var lang_1 = $__require('22'); - var exceptions_1 = $__require('40'); - function internalView(viewRef) { - return viewRef._view; - } - exports.internalView = internalView; - function internalProtoView(protoViewRef) { - return lang_1.isPresent(protoViewRef) ? protoViewRef._protoView : null; - } - exports.internalProtoView = internalProtoView; - var ViewRef = (function() { - function ViewRef() {} - Object.defineProperty(ViewRef.prototype, "changeDetectorRef", { - get: function() { - return exceptions_1.unimplemented(); - }, - set: function(value) { - exceptions_1.unimplemented(); - }, - enumerable: true, - configurable: true - }); - return ViewRef; - })(); - exports.ViewRef = ViewRef; - var ViewRef_ = (function(_super) { - __extends(ViewRef_, _super); - function ViewRef_(_view) { - _super.call(this); - this._changeDetectorRef = null; - this._view = _view; - } - Object.defineProperty(ViewRef_.prototype, "render", { - get: function() { - return this._view.render; - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(ViewRef_.prototype, "renderFragment", { - get: function() { - return this._view.renderFragment; - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(ViewRef_.prototype, "changeDetectorRef", { - get: function() { - if (this._changeDetectorRef === null) { - this._changeDetectorRef = this._view.changeDetector.ref; - } - return this._changeDetectorRef; - }, - enumerable: true, - configurable: true - }); - ViewRef_.prototype.setLocal = function(variableName, value) { - this._view.setLocal(variableName, value); - }; - return ViewRef_; - })(ViewRef); - exports.ViewRef_ = ViewRef_; - var ProtoViewRef = (function() { - function ProtoViewRef() {} - return ProtoViewRef; - })(); - exports.ProtoViewRef = ProtoViewRef; - var ProtoViewRef_ = (function(_super) { - __extends(ProtoViewRef_, _super); - function ProtoViewRef_(_protoView) { - _super.call(this); - this._protoView = _protoView; - } - return ProtoViewRef_; - })(ProtoViewRef); - exports.ProtoViewRef_ = ProtoViewRef_; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("1d1", ["1c9"], true, function($__require, exports, module) { - "use strict"; - ; - var global = this, - __define = global.define; - global.define = undefined; - var __extends = (this && this.__extends) || function(d, b) { - for (var p in b) - if (b.hasOwnProperty(p)) - d[p] = b[p]; - function __() { - this.constructor = d; - } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; - var view_ref_1 = $__require('1c9'); - var TemplateRef = (function() { - function TemplateRef() {} - return TemplateRef; - })(); - exports.TemplateRef = TemplateRef; - var TemplateRef_ = (function(_super) { - __extends(TemplateRef_, _super); - function TemplateRef_(elementRef) { - _super.call(this); - this.elementRef = elementRef; - } - TemplateRef_.prototype._getProtoView = function() { - var elementRef = this.elementRef; - var parentView = view_ref_1.internalView(elementRef.parentView); - return parentView.proto.elementBinders[elementRef.boundElementIndex - parentView.elementOffset].nestedProtoView; - }; - Object.defineProperty(TemplateRef_.prototype, "protoViewRef", { - get: function() { - return this._getProtoView().ref; - }, - enumerable: true, - configurable: true - }); - TemplateRef_.prototype.hasLocal = function(name) { - return this._getProtoView().templateVariableBindings.has(name); - }; - return TemplateRef_; - })(TemplateRef); - exports.TemplateRef_ = TemplateRef_; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("84", ["22", "80"], true, function($__require, exports, module) { - "use strict"; - ; - var global = this, - __define = global.define; - global.define = undefined; - var lang_1 = $__require('22'); - var interfaces_1 = $__require('80'); - function hasLifecycleHook(lcInterface, token) { - if (!(token instanceof lang_1.Type)) - return false; - var proto = token.prototype; - switch (lcInterface) { - case interfaces_1.LifecycleHooks.AfterContentInit: - return !!proto.ngAfterContentInit; - case interfaces_1.LifecycleHooks.AfterContentChecked: - return !!proto.ngAfterContentChecked; - case interfaces_1.LifecycleHooks.AfterViewInit: - return !!proto.ngAfterViewInit; - case interfaces_1.LifecycleHooks.AfterViewChecked: - return !!proto.ngAfterViewChecked; - case interfaces_1.LifecycleHooks.OnChanges: - return !!proto.ngOnChanges; - case interfaces_1.LifecycleHooks.DoCheck: - return !!proto.ngDoCheck; - case interfaces_1.LifecycleHooks.OnDestroy: - return !!proto.ngOnDestroy; - case interfaces_1.LifecycleHooks.OnInit: - return !!proto.ngOnInit; - default: - return false; - } - } - exports.hasLifecycleHook = hasLifecycleHook; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("8f", [], true, function($__require, exports, module) { - "use strict"; - ; - var global = this, - __define = global.define; - global.define = undefined; - var PromiseWrapper = (function() { - function PromiseWrapper() {} - PromiseWrapper.resolve = function(obj) { - return Promise.resolve(obj); - }; - PromiseWrapper.reject = function(obj, _) { - return Promise.reject(obj); - }; - PromiseWrapper.catchError = function(promise, onError) { - return promise.catch(onError); - }; - PromiseWrapper.all = function(promises) { - if (promises.length == 0) - return Promise.resolve([]); - return Promise.all(promises); - }; - PromiseWrapper.then = function(promise, success, rejection) { - return promise.then(success, rejection); - }; - PromiseWrapper.wrap = function(computation) { - return new Promise(function(res, rej) { - try { - res(computation()); - } catch (e) { - rej(e); - } - }); - }; - PromiseWrapper.scheduleMicrotask = function(computation) { - PromiseWrapper.then(PromiseWrapper.resolve(null), computation, function(_) {}); - }; - PromiseWrapper.isPromise = function(obj) { - return obj instanceof Promise; - }; - PromiseWrapper.completer = function() { - var resolve; - var reject; - var p = new Promise(function(res, rej) { - resolve = res; - reject = rej; - }); - return { - promise: p, - resolve: resolve, - reject: reject - }; - }; - return PromiseWrapper; - })(); - exports.PromiseWrapper = PromiseWrapper; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("1dd", ["1de", "1df"], true, function($__require, exports, module) { - ; - var global = this, - __define = global.define; - global.define = undefined; - var __extends = (this && this.__extends) || function(d, b) { - for (var p in b) - if (b.hasOwnProperty(p)) - d[p] = b[p]; - function __() { - this.constructor = d; - } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; - var Subscription_1 = $__require('1de'); - var Subscriber_1 = $__require('1df'); - var SubjectSubscription = (function(_super) { - __extends(SubjectSubscription, _super); - function SubjectSubscription(subject, observer) { - _super.call(this); - this.subject = subject; - this.observer = observer; - this.isUnsubscribed = false; - } - SubjectSubscription.prototype.unsubscribe = function() { - if (this.isUnsubscribed) { - return; - } - this.isUnsubscribed = true; - var subject = this.subject; - var observers = subject.observers; - this.subject = void 0; - if (!observers || observers.length === 0 || subject.isUnsubscribed) { - return; - } - if (this.observer instanceof Subscriber_1.Subscriber) { - this.observer.unsubscribe(); - } - var subscriberIndex = observers.indexOf(this.observer); - if (subscriberIndex !== -1) { - observers.splice(subscriberIndex, 1); - } - }; - return SubjectSubscription; - })(Subscription_1.Subscription); - exports.SubjectSubscription = SubjectSubscription; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("1e0", ["1e1", "1df", "1de", "1dd", "1e2"], true, function($__require, exports, module) { - ; - var global = this, - __define = global.define; - global.define = undefined; - var __extends = (this && this.__extends) || function(d, b) { - for (var p in b) - if (b.hasOwnProperty(p)) - d[p] = b[p]; - function __() { - this.constructor = d; - } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; - var Observable_1 = $__require('1e1'); - var Subscriber_1 = $__require('1df'); - var Subscription_1 = $__require('1de'); - var SubjectSubscription_1 = $__require('1dd'); - var rxSubscriber_1 = $__require('1e2'); - var subscriptionAdd = Subscription_1.Subscription.prototype.add; - var subscriptionRemove = Subscription_1.Subscription.prototype.remove; - var subscriptionUnsubscribe = Subscription_1.Subscription.prototype.unsubscribe; - var subscriberNext = Subscriber_1.Subscriber.prototype.next; - var subscriberError = Subscriber_1.Subscriber.prototype.error; - var subscriberComplete = Subscriber_1.Subscriber.prototype.complete; - var _subscriberNext = Subscriber_1.Subscriber.prototype._next; - var _subscriberError = Subscriber_1.Subscriber.prototype._error; - var _subscriberComplete = Subscriber_1.Subscriber.prototype._complete; - var Subject = (function(_super) { - __extends(Subject, _super); - function Subject() { - _super.apply(this, arguments); - this.observers = []; - this.isUnsubscribed = false; - this.dispatching = false; - this.errorSignal = false; - this.completeSignal = false; - } - Subject.prototype[rxSubscriber_1.rxSubscriber] = function() { - return this; - }; - Subject.create = function(source, destination) { - return new BidirectionalSubject(source, destination); - }; - Subject.prototype.lift = function(operator) { - var subject = new BidirectionalSubject(this, this.destination || this); - subject.operator = operator; - return subject; - }; - Subject.prototype._subscribe = function(subscriber) { - if (subscriber.isUnsubscribed) { - return; - } else if (this.errorSignal) { - subscriber.error(this.errorInstance); - return; - } else if (this.completeSignal) { - subscriber.complete(); - return; - } else if (this.isUnsubscribed) { - throw new Error('Cannot subscribe to a disposed Subject.'); - } - this.observers.push(subscriber); - return new SubjectSubscription_1.SubjectSubscription(this, subscriber); - }; - Subject.prototype.add = function(subscription) { - subscriptionAdd.call(this, subscription); - }; - Subject.prototype.remove = function(subscription) { - subscriptionRemove.call(this, subscription); - }; - Subject.prototype.unsubscribe = function() { - this.observers = void 0; - subscriptionUnsubscribe.call(this); - }; - Subject.prototype.next = function(value) { - if (this.isUnsubscribed) { - return; - } - this.dispatching = true; - this._next(value); - this.dispatching = false; - if (this.errorSignal) { - this.error(this.errorInstance); - } else if (this.completeSignal) { - this.complete(); - } - }; - Subject.prototype.error = function(err) { - if (this.isUnsubscribed || this.completeSignal) { - return; - } - this.errorSignal = true; - this.errorInstance = err; - if (this.dispatching) { - return; - } - this._error(err); - this.unsubscribe(); - }; - Subject.prototype.complete = function() { - if (this.isUnsubscribed || this.errorSignal) { - return; - } - this.completeSignal = true; - if (this.dispatching) { - return; - } - this._complete(); - this.unsubscribe(); - }; - Subject.prototype._next = function(value) { - var index = -1; - var observers = this.observers.slice(0); - var len = observers.length; - while (++index < len) { - observers[index].next(value); - } - }; - Subject.prototype._error = function(err) { - var index = -1; - var observers = this.observers; - var len = observers.length; - this.observers = void 0; - this.isUnsubscribed = true; - while (++index < len) { - observers[index].error(err); - } - this.isUnsubscribed = false; - }; - Subject.prototype._complete = function() { - var index = -1; - var observers = this.observers; - var len = observers.length; - this.observers = void 0; - this.isUnsubscribed = true; - while (++index < len) { - observers[index].complete(); - } - this.isUnsubscribed = false; - }; - return Subject; - })(Observable_1.Observable); - exports.Subject = Subject; - var BidirectionalSubject = (function(_super) { - __extends(BidirectionalSubject, _super); - function BidirectionalSubject(source, destination) { - _super.call(this); - this.source = source; - this.destination = destination; - } - BidirectionalSubject.prototype._subscribe = function(subscriber) { - var operator = this.operator; - return this.source._subscribe.call(this.source, operator ? operator.call(subscriber) : subscriber); - }; - BidirectionalSubject.prototype.next = function(value) { - subscriberNext.call(this, value); - }; - BidirectionalSubject.prototype.error = function(err) { - subscriberError.call(this, err); - }; - BidirectionalSubject.prototype.complete = function() { - subscriberComplete.call(this); - }; - BidirectionalSubject.prototype._next = function(value) { - _subscriberNext.call(this, value); - }; - BidirectionalSubject.prototype._error = function(err) { - _subscriberError.call(this, err); - }; - BidirectionalSubject.prototype._complete = function() { - _subscriberComplete.call(this); - }; - return BidirectionalSubject; - })(Subject); - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("1e3", ["1de"], true, function($__require, exports, module) { - ; - var global = this, - __define = global.define; - global.define = undefined; - var __extends = (this && this.__extends) || function(d, b) { - for (var p in b) - if (b.hasOwnProperty(p)) - d[p] = b[p]; - function __() { - this.constructor = d; - } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; - var Subscription_1 = $__require('1de'); - var QueueAction = (function(_super) { - __extends(QueueAction, _super); - function QueueAction(scheduler, work) { - _super.call(this); - this.scheduler = scheduler; - this.work = work; - } - QueueAction.prototype.schedule = function(state) { - if (this.isUnsubscribed) { - return this; - } - this.state = state; - var scheduler = this.scheduler; - scheduler.actions.push(this); - scheduler.flush(); - return this; - }; - QueueAction.prototype.execute = function() { - if (this.isUnsubscribed) { - throw new Error('How did did we execute a canceled Action?'); - } - this.work(this.state); - }; - QueueAction.prototype.unsubscribe = function() { - var scheduler = this.scheduler; - var actions = scheduler.actions; - var index = actions.indexOf(this); - this.work = void 0; - this.state = void 0; - this.scheduler = void 0; - if (index !== -1) { - actions.splice(index, 1); - } - _super.prototype.unsubscribe.call(this); - }; - return QueueAction; - })(Subscription_1.Subscription); - exports.QueueAction = QueueAction; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("1e4", ["1e3"], true, function($__require, exports, module) { - ; - var global = this, - __define = global.define; - global.define = undefined; - var __extends = (this && this.__extends) || function(d, b) { - for (var p in b) - if (b.hasOwnProperty(p)) - d[p] = b[p]; - function __() { - this.constructor = d; - } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; - var QueueAction_1 = $__require('1e3'); - var FutureAction = (function(_super) { - __extends(FutureAction, _super); - function FutureAction(scheduler, work) { - _super.call(this, scheduler, work); - this.scheduler = scheduler; - this.work = work; - } - FutureAction.prototype.schedule = function(state, delay) { - var _this = this; - if (delay === void 0) { - delay = 0; - } - if (this.isUnsubscribed) { - return this; - } - this.delay = delay; - this.state = state; - var id = this.id; - if (id != null) { - this.id = undefined; - clearTimeout(id); - } - var scheduler = this.scheduler; - this.id = setTimeout(function() { - _this.id = void 0; - scheduler.actions.push(_this); - scheduler.flush(); - }, this.delay); - return this; - }; - FutureAction.prototype.unsubscribe = function() { - var id = this.id; - if (id != null) { - this.id = void 0; - clearTimeout(id); - } - _super.prototype.unsubscribe.call(this); - }; - return FutureAction; - })(QueueAction_1.QueueAction); - exports.FutureAction = FutureAction; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("1e5", ["1e3", "1e4"], true, function($__require, exports, module) { - ; - var global = this, - __define = global.define; - global.define = undefined; - var QueueAction_1 = $__require('1e3'); - var FutureAction_1 = $__require('1e4'); - var QueueScheduler = (function() { - function QueueScheduler() { - this.actions = []; - this.active = false; - this.scheduled = false; - } - QueueScheduler.prototype.now = function() { - return Date.now(); - }; - QueueScheduler.prototype.flush = function() { - if (this.active || this.scheduled) { - return; - } - this.active = true; - var actions = this.actions; - for (var action = void 0; action = actions.shift(); ) { - action.execute(); - } - this.active = false; - }; - QueueScheduler.prototype.schedule = function(work, delay, state) { - if (delay === void 0) { - delay = 0; - } - return (delay <= 0) ? this.scheduleNow(work, state) : this.scheduleLater(work, delay, state); - }; - QueueScheduler.prototype.scheduleNow = function(work, state) { - return new QueueAction_1.QueueAction(this, work).schedule(state); - }; - QueueScheduler.prototype.scheduleLater = function(work, delay, state) { - return new FutureAction_1.FutureAction(this, work).schedule(state, delay); - }; - return QueueScheduler; - })(); - exports.QueueScheduler = QueueScheduler; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("1e6", ["1e5"], true, function($__require, exports, module) { - ; - var global = this, - __define = global.define; - global.define = undefined; - var QueueScheduler_1 = $__require('1e5'); - exports.queue = new QueueScheduler_1.QueueScheduler(); - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("1e7", ["1e1", "1de", "1e6"], true, function($__require, exports, module) { - ; - var global = this, - __define = global.define; - global.define = undefined; - var __extends = (this && this.__extends) || function(d, b) { - for (var p in b) - if (b.hasOwnProperty(p)) - d[p] = b[p]; - function __() { - this.constructor = d; - } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; - var Observable_1 = $__require('1e1'); - var Subscription_1 = $__require('1de'); - var queue_1 = $__require('1e6'); - var PromiseObservable = (function(_super) { - __extends(PromiseObservable, _super); - function PromiseObservable(promise, scheduler) { - if (scheduler === void 0) { - scheduler = queue_1.queue; - } - _super.call(this); - this.promise = promise; - this.scheduler = scheduler; - this._isScalar = false; - } - PromiseObservable.create = function(promise, scheduler) { - if (scheduler === void 0) { - scheduler = queue_1.queue; - } - return new PromiseObservable(promise, scheduler); - }; - PromiseObservable.prototype._subscribe = function(subscriber) { - var _this = this; - var scheduler = this.scheduler; - var promise = this.promise; - if (scheduler === queue_1.queue) { - if (this._isScalar) { - subscriber.next(this.value); - subscriber.complete(); - } else { - promise.then(function(value) { - _this._isScalar = true; - _this.value = value; - subscriber.next(value); - subscriber.complete(); - }, function(err) { - return subscriber.error(err); - }).then(null, function(err) { - setTimeout(function() { - throw err; - }); - }); - } - } else { - var subscription = new Subscription_1.Subscription(); - if (this._isScalar) { - var value = this.value; - subscription.add(scheduler.schedule(dispatchNext, 0, { - value: value, - subscriber: subscriber - })); - } else { - promise.then(function(value) { - _this._isScalar = true; - _this.value = value; - subscription.add(scheduler.schedule(dispatchNext, 0, { - value: value, - subscriber: subscriber - })); - }, function(err) { - return subscription.add(scheduler.schedule(dispatchError, 0, { - err: err, - subscriber: subscriber - })); - }).then(null, function(err) { - scheduler.schedule(function() { - throw err; - }); - }); - } - return subscription; - } - }; - return PromiseObservable; - })(Observable_1.Observable); - exports.PromiseObservable = PromiseObservable; - function dispatchNext(_a) { - var value = _a.value, - subscriber = _a.subscriber; - subscriber.next(value); - subscriber.complete(); - } - function dispatchError(_a) { - var err = _a.err, - subscriber = _a.subscriber; - subscriber.error(err); - } - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("1e8", ["1e9"], true, function($__require, exports, module) { - ; - var global = this, - __define = global.define; - global.define = undefined; - var root_1 = $__require('1e9'); - function toPromise(PromiseCtor) { - var _this = this; - if (!PromiseCtor) { - if (root_1.root.Rx && root_1.root.Rx.config && root_1.root.Rx.config.Promise) { - PromiseCtor = root_1.root.Rx.config.Promise; - } else if (root_1.root.Promise) { - PromiseCtor = root_1.root.Promise; - } - } - if (!PromiseCtor) { - throw new Error('no Promise impl found'); - } - return new PromiseCtor(function(resolve, reject) { - var value; - _this.subscribe(function(x) { - return value = x; - }, function(err) { - return reject(err); - }, function() { - return resolve(value); - }); - }); - } - exports.toPromise = toPromise; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("1ea", [], true, function($__require, exports, module) { - ; - var global = this, - __define = global.define; - global.define = undefined; - function throwError(e) { - throw e; - } - exports.throwError = throwError; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("1eb", [], true, function($__require, exports, module) { - ; - var global = this, - __define = global.define; - global.define = undefined; - function tryOrOnError(target) { - function tryCatcher() { - try { - tryCatcher.target.apply(this, arguments); - } catch (e) { - this.error(e); - } - } - tryCatcher.target = target; - return tryCatcher; - } - exports.tryOrOnError = tryOrOnError; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("1ec", [], true, function($__require, exports, module) { - ; - var global = this, - __define = global.define; - global.define = undefined; - function noop() {} - exports.noop = noop; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("1de", ["1ec"], true, function($__require, exports, module) { - ; - var global = this, - __define = global.define; - global.define = undefined; - var noop_1 = $__require('1ec'); - var Subscription = (function() { - function Subscription(_unsubscribe) { - this.isUnsubscribed = false; - if (_unsubscribe) { - this._unsubscribe = _unsubscribe; - } - } - Subscription.prototype._unsubscribe = function() { - noop_1.noop(); - }; - Subscription.prototype.unsubscribe = function() { - if (this.isUnsubscribed) { - return; - } - this.isUnsubscribed = true; - var unsubscribe = this._unsubscribe; - var subscriptions = this._subscriptions; - this._subscriptions = void 0; - if (unsubscribe) { - unsubscribe.call(this); - } - if (subscriptions != null) { - var index = -1; - var len = subscriptions.length; - while (++index < len) { - subscriptions[index].unsubscribe(); - } - } - }; - Subscription.prototype.add = function(subscription) { - if (!subscription || (subscription === this) || (subscription === Subscription.EMPTY)) { - return; - } - var sub = subscription; - switch (typeof subscription) { - case 'function': - sub = new Subscription(subscription); - case 'object': - if (sub.isUnsubscribed || typeof sub.unsubscribe !== 'function') { - break; - } else if (this.isUnsubscribed) { - sub.unsubscribe(); - } else { - var subscriptions = this._subscriptions || (this._subscriptions = []); - subscriptions.push(sub); - } - break; - default: - throw new Error('Unrecognized subscription ' + subscription + ' added to Subscription.'); - } - }; - Subscription.prototype.remove = function(subscription) { - if (subscription == null || (subscription === this) || (subscription === Subscription.EMPTY)) { - return; - } - var subscriptions = this._subscriptions; - if (subscriptions) { - var subscriptionIndex = subscriptions.indexOf(subscription); - if (subscriptionIndex !== -1) { - subscriptions.splice(subscriptionIndex, 1); - } - } - }; - Subscription.EMPTY = (function(empty) { - empty.isUnsubscribed = true; - return empty; - }(new Subscription())); - return Subscription; - })(); - exports.Subscription = Subscription; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("1df", ["1ec", "1ea", "1eb", "1de", "1e2"], true, function($__require, exports, module) { - ; - var global = this, - __define = global.define; - global.define = undefined; - var __extends = (this && this.__extends) || function(d, b) { - for (var p in b) - if (b.hasOwnProperty(p)) - d[p] = b[p]; - function __() { - this.constructor = d; - } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; - var noop_1 = $__require('1ec'); - var throwError_1 = $__require('1ea'); - var tryOrOnError_1 = $__require('1eb'); - var Subscription_1 = $__require('1de'); - var rxSubscriber_1 = $__require('1e2'); - var Subscriber = (function(_super) { - __extends(Subscriber, _super); - function Subscriber(destination) { - _super.call(this); - this.destination = destination; - this._isUnsubscribed = false; - if (!this.destination) { - return; - } - var subscription = destination._subscription; - if (subscription) { - this._subscription = subscription; - } else if (destination instanceof Subscriber) { - this._subscription = destination; - } - } - Subscriber.prototype[rxSubscriber_1.rxSubscriber] = function() { - return this; - }; - Object.defineProperty(Subscriber.prototype, "isUnsubscribed", { - get: function() { - var subscription = this._subscription; - if (subscription) { - return this._isUnsubscribed || subscription.isUnsubscribed; - } else { - return this._isUnsubscribed; - } - }, - set: function(value) { - var subscription = this._subscription; - if (subscription) { - subscription.isUnsubscribed = Boolean(value); - } else { - this._isUnsubscribed = Boolean(value); - } - }, - enumerable: true, - configurable: true - }); - Subscriber.create = function(next, error, complete) { - var subscriber = new Subscriber(); - subscriber._next = (typeof next === 'function') && tryOrOnError_1.tryOrOnError(next) || noop_1.noop; - subscriber._error = (typeof error === 'function') && error || throwError_1.throwError; - subscriber._complete = (typeof complete === 'function') && complete || noop_1.noop; - return subscriber; - }; - Subscriber.prototype.add = function(sub) { - var _subscription = this._subscription; - if (_subscription) { - _subscription.add(sub); - } else { - _super.prototype.add.call(this, sub); - } - }; - Subscriber.prototype.remove = function(sub) { - if (this._subscription) { - this._subscription.remove(sub); - } else { - _super.prototype.remove.call(this, sub); - } - }; - Subscriber.prototype.unsubscribe = function() { - if (this._isUnsubscribed) { - return; - } else if (this._subscription) { - this._isUnsubscribed = true; - } else { - _super.prototype.unsubscribe.call(this); - } - }; - Subscriber.prototype._next = function(value) { - var destination = this.destination; - if (destination.next) { - destination.next(value); - } - }; - Subscriber.prototype._error = function(err) { - var destination = this.destination; - if (destination.error) { - destination.error(err); - } - }; - Subscriber.prototype._complete = function() { - var destination = this.destination; - if (destination.complete) { - destination.complete(); - } - }; - Subscriber.prototype.next = function(value) { - if (!this.isUnsubscribed) { - this._next(value); - } - }; - Subscriber.prototype.error = function(err) { - if (!this.isUnsubscribed) { - this._error(err); - this.unsubscribe(); - } - }; - Subscriber.prototype.complete = function() { - if (!this.isUnsubscribed) { - this._complete(); - this.unsubscribe(); - } - }; - return Subscriber; - })(Subscription_1.Subscription); - exports.Subscriber = Subscriber; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("1e9", [], true, function($__require, exports, module) { - ; - var global = this, - __define = global.define; - global.define = undefined; - var objectTypes = { - 'boolean': false, - 'function': true, - 'object': true, - 'number': false, - 'string': false, - 'undefined': false - }; - exports.root = (objectTypes[typeof self] && self) || (objectTypes[typeof window] && window); - var freeExports = objectTypes[typeof exports] && exports && !exports.nodeType && exports; - var freeModule = objectTypes[typeof module] && module && !module.nodeType && module; - var freeGlobal = objectTypes[typeof global] && global; - if (freeGlobal && (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal)) { - exports.root = freeGlobal; - } - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("1ed", ["1e9"], true, function($__require, exports, module) { - ; - var global = this, - __define = global.define; - global.define = undefined; - var root_1 = $__require('1e9'); - function polyfillSymbol(root) { - var Symbol = ensureSymbol(root); - ensureIterator(Symbol, root); - ensureObservable(Symbol); - ensureFor(Symbol); - return Symbol; - } - exports.polyfillSymbol = polyfillSymbol; - function ensureFor(Symbol) { - if (!Symbol.for) { - Symbol.for = symbolForPolyfill; - } - } - exports.ensureFor = ensureFor; - var id = 0; - function ensureSymbol(root) { - if (!root.Symbol) { - root.Symbol = function symbolFuncPolyfill(description) { - return "@@Symbol(" + description + "):" + id++; - }; - } - return root.Symbol; - } - exports.ensureSymbol = ensureSymbol; - function symbolForPolyfill(key) { - return '@@' + key; - } - exports.symbolForPolyfill = symbolForPolyfill; - function ensureIterator(Symbol, root) { - if (!Symbol.iterator) { - if (typeof Symbol.for === 'function') { - Symbol.iterator = Symbol.for('iterator'); - } else if (root.Set && typeof new root.Set()['@@iterator'] === 'function') { - Symbol.iterator = '@@iterator'; - } else if (root.Map) { - var keys = Object.getOwnPropertyNames(root.Map.prototype); - for (var i = 0; i < keys.length; ++i) { - var key = keys[i]; - if (key !== 'entries' && key !== 'size' && root.Map.prototype[key] === root.Map.prototype['entries']) { - Symbol.iterator = key; - break; - } - } - } else { - Symbol.iterator = '@@iterator'; - } - } - } - exports.ensureIterator = ensureIterator; - function ensureObservable(Symbol) { - if (!Symbol.observable) { - if (typeof Symbol.for === 'function') { - Symbol.observable = Symbol.for('observable'); - } else { - Symbol.observable = '@@observable'; - } - } - } - exports.ensureObservable = ensureObservable; - exports.SymbolShim = polyfillSymbol(root_1.root); - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("1e2", ["1ed"], true, function($__require, exports, module) { - ; - var global = this, - __define = global.define; - global.define = undefined; - var SymbolShim_1 = $__require('1ed'); - exports.rxSubscriber = SymbolShim_1.SymbolShim.for('rxSubscriber'); - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("1e1", ["1df", "1e9", "1ed", "1e2"], true, function($__require, exports, module) { - ; - var global = this, - __define = global.define; - global.define = undefined; - var Subscriber_1 = $__require('1df'); - var root_1 = $__require('1e9'); - var SymbolShim_1 = $__require('1ed'); - var rxSubscriber_1 = $__require('1e2'); - var Observable = (function() { - function Observable(subscribe) { - this._isScalar = false; - if (subscribe) { - this._subscribe = subscribe; - } - } - Observable.prototype.lift = function(operator) { - var observable = new Observable(); - observable.source = this; - observable.operator = operator; - return observable; - }; - Observable.prototype[SymbolShim_1.SymbolShim.observable] = function() { - return this; - }; - Observable.prototype.subscribe = function(observerOrNext, error, complete) { - var subscriber; - if (observerOrNext && typeof observerOrNext === 'object') { - if (observerOrNext instanceof Subscriber_1.Subscriber) { - subscriber = observerOrNext; - } else if (observerOrNext[rxSubscriber_1.rxSubscriber]) { - subscriber = observerOrNext[rxSubscriber_1.rxSubscriber](); - } else { - subscriber = new Subscriber_1.Subscriber(observerOrNext); - } - } else { - var next = observerOrNext; - subscriber = Subscriber_1.Subscriber.create(next, error, complete); - } - subscriber.add(this._subscribe(subscriber)); - return subscriber; - }; - Observable.prototype.forEach = function(next, thisArg, PromiseCtor) { - if (!PromiseCtor) { - if (root_1.root.Rx && root_1.root.Rx.config && root_1.root.Rx.config.Promise) { - PromiseCtor = root_1.root.Rx.config.Promise; - } else if (root_1.root.Promise) { - PromiseCtor = root_1.root.Promise; - } - } - if (!PromiseCtor) { - throw new Error('no Promise impl found'); - } - var nextHandler; - if (thisArg) { - nextHandler = function nextHandlerFn(value) { - var _a = nextHandlerFn, - thisArg = _a.thisArg, - next = _a.next; - return next.call(thisArg, value); - }; - nextHandler.thisArg = thisArg; - nextHandler.next = next; - } else { - nextHandler = next; - } - var promiseCallback = function promiseCallbackFn(resolve, reject) { - var _a = promiseCallbackFn, - source = _a.source, - nextHandler = _a.nextHandler; - source.subscribe(nextHandler, reject, resolve); - }; - promiseCallback.source = this; - promiseCallback.nextHandler = nextHandler; - return new PromiseCtor(promiseCallback); - }; - Observable.prototype._subscribe = function(subscriber) { - return this.source._subscribe(this.operator.call(subscriber)); - }; - Observable.create = function(subscribe) { - return new Observable(subscribe); - }; - return Observable; - })(); - exports.Observable = Observable; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("67", ["22", "8f", "1e0", "1e7", "1e8", "1e1"], true, function($__require, exports, module) { - "use strict"; - ; - var global = this, - __define = global.define; - global.define = undefined; - var __extends = (this && this.__extends) || function(d, b) { - for (var p in b) - if (b.hasOwnProperty(p)) - d[p] = b[p]; - function __() { - this.constructor = d; - } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; - var lang_1 = $__require('22'); - var promise_1 = $__require('8f'); - exports.PromiseWrapper = promise_1.PromiseWrapper; - exports.Promise = promise_1.Promise; - var Subject_1 = $__require('1e0'); - var fromPromise_1 = $__require('1e7'); - var toPromise_1 = $__require('1e8'); - var Observable_1 = $__require('1e1'); - exports.Observable = Observable_1.Observable; - var Subject_2 = $__require('1e0'); - exports.Subject = Subject_2.Subject; - var TimerWrapper = (function() { - function TimerWrapper() {} - TimerWrapper.setTimeout = function(fn, millis) { - return lang_1.global.setTimeout(fn, millis); - }; - TimerWrapper.clearTimeout = function(id) { - lang_1.global.clearTimeout(id); - }; - TimerWrapper.setInterval = function(fn, millis) { - return lang_1.global.setInterval(fn, millis); - }; - TimerWrapper.clearInterval = function(id) { - lang_1.global.clearInterval(id); - }; - return TimerWrapper; - })(); - exports.TimerWrapper = TimerWrapper; - var ObservableWrapper = (function() { - function ObservableWrapper() {} - ObservableWrapper.subscribe = function(emitter, onNext, onError, onComplete) { - if (onComplete === void 0) { - onComplete = function() {}; - } - onError = (typeof onError === "function") && onError || lang_1.noop; - onComplete = (typeof onComplete === "function") && onComplete || lang_1.noop; - return emitter.subscribe({ - next: onNext, - error: onError, - complete: onComplete - }); - }; - ObservableWrapper.isObservable = function(obs) { - return !!obs.subscribe; - }; - ObservableWrapper.hasSubscribers = function(obs) { - return obs.observers.length > 0; - }; - ObservableWrapper.dispose = function(subscription) { - subscription.unsubscribe(); - }; - ObservableWrapper.callNext = function(emitter, value) { - emitter.next(value); - }; - ObservableWrapper.callEmit = function(emitter, value) { - emitter.emit(value); - }; - ObservableWrapper.callError = function(emitter, error) { - emitter.error(error); - }; - ObservableWrapper.callComplete = function(emitter) { - emitter.complete(); - }; - ObservableWrapper.fromPromise = function(promise) { - return fromPromise_1.PromiseObservable.create(promise); - }; - ObservableWrapper.toPromise = function(obj) { - return toPromise_1.toPromise.call(obj); - }; - return ObservableWrapper; - })(); - exports.ObservableWrapper = ObservableWrapper; - var EventEmitter = (function(_super) { - __extends(EventEmitter, _super); - function EventEmitter(isAsync) { - if (isAsync === void 0) { - isAsync = true; - } - _super.call(this); - this._isAsync = isAsync; - } - EventEmitter.prototype.emit = function(value) { - _super.prototype.next.call(this, value); - }; - EventEmitter.prototype.next = function(value) { - _super.prototype.next.call(this, value); - }; - EventEmitter.prototype.subscribe = function(generatorOrNext, error, complete) { - var schedulerFn; - var errorFn = function(err) { - return null; - }; - var completeFn = function() { - return null; - }; - if (generatorOrNext && typeof generatorOrNext === 'object') { - schedulerFn = this._isAsync ? function(value) { - setTimeout(function() { - return generatorOrNext.next(value); - }); - } : function(value) { - generatorOrNext.next(value); - }; - if (generatorOrNext.error) { - errorFn = this._isAsync ? function(err) { - setTimeout(function() { - return generatorOrNext.error(err); - }); - } : function(err) { - generatorOrNext.error(err); - }; - } - if (generatorOrNext.complete) { - completeFn = this._isAsync ? function() { - setTimeout(function() { - return generatorOrNext.complete(); - }); - } : function() { - generatorOrNext.complete(); - }; - } - } else { - schedulerFn = this._isAsync ? function(value) { - setTimeout(function() { - return generatorOrNext(value); - }); - } : function(value) { - generatorOrNext(value); - }; - if (error) { - errorFn = this._isAsync ? function(err) { - setTimeout(function() { - return error(err); - }); - } : function(err) { - error(err); - }; - } - if (complete) { - completeFn = this._isAsync ? function() { - setTimeout(function() { - return complete(); - }); - } : function() { - complete(); - }; - } - } - return _super.prototype.subscribe.call(this, schedulerFn, errorFn, completeFn); - }; - return EventEmitter; - })(Subject_1.Subject); - exports.EventEmitter = EventEmitter; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("1cf", ["3b", "22", "67"], true, function($__require, exports, module) { - "use strict"; - ; - var global = this, - __define = global.define; - global.define = undefined; - var collection_1 = $__require('3b'); - var lang_1 = $__require('22'); - var async_1 = $__require('67'); - var QueryList = (function() { - function QueryList() { - this._results = []; - this._emitter = new async_1.EventEmitter(); - } - Object.defineProperty(QueryList.prototype, "changes", { - get: function() { - return this._emitter; - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(QueryList.prototype, "length", { - get: function() { - return this._results.length; - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(QueryList.prototype, "first", { - get: function() { - return collection_1.ListWrapper.first(this._results); - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(QueryList.prototype, "last", { - get: function() { - return collection_1.ListWrapper.last(this._results); - }, - enumerable: true, - configurable: true - }); - QueryList.prototype.map = function(fn) { - return this._results.map(fn); - }; - QueryList.prototype.filter = function(fn) { - return this._results.filter(fn); - }; - QueryList.prototype.reduce = function(fn, init) { - return this._results.reduce(fn, init); - }; - QueryList.prototype.toArray = function() { - return collection_1.ListWrapper.clone(this._results); - }; - QueryList.prototype[lang_1.getSymbolIterator()] = function() { - return this._results[lang_1.getSymbolIterator()](); - }; - QueryList.prototype.toString = function() { - return this._results.toString(); - }; - QueryList.prototype.reset = function(res) { - this._results = res; - }; - QueryList.prototype.notifyOnChanges = function() { - this._emitter.emit(this); - }; - return QueryList; - })(); - exports.QueryList = QueryList; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("1ee", [], true, function($__require, exports, module) { - "use strict"; - ; - var global = this, - __define = global.define; - global.define = undefined; - exports.EVENT_TARGET_SEPARATOR = ':'; - var EventConfig = (function() { - function EventConfig(fieldName, eventName, isLongForm) { - this.fieldName = fieldName; - this.eventName = eventName; - this.isLongForm = isLongForm; - } - EventConfig.parse = function(eventConfig) { - var fieldName = eventConfig, - eventName = eventConfig, - isLongForm = false; - var separatorIdx = eventConfig.indexOf(exports.EVENT_TARGET_SEPARATOR); - if (separatorIdx > -1) { - fieldName = eventConfig.substring(0, separatorIdx).trim(); - eventName = eventConfig.substring(separatorIdx + 1).trim(); - isLongForm = true; - } - return new EventConfig(fieldName, eventName, isLongForm); - }; - EventConfig.prototype.getFullName = function() { - return this.isLongForm ? "" + this.fieldName + exports.EVENT_TARGET_SEPARATOR + this.eventName : this.eventName; - }; - return EventConfig; - })(); - exports.EventConfig = EventConfig; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("1ef", ["1f0", "3d"], true, function($__require, exports, module) { - "use strict"; - ; - var global = this, - __define = global.define; - global.define = undefined; - var __extends = (this && this.__extends) || function(d, b) { - for (var p in b) - if (b.hasOwnProperty(p)) - d[p] = b[p]; - function __() { - this.constructor = d; - } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; - var provider_1 = $__require('1f0'); - var di_1 = $__require('3d'); - var PipeProvider = (function(_super) { - __extends(PipeProvider, _super); - function PipeProvider(name, pure, key, resolvedFactories, multiBinding) { - _super.call(this, key, resolvedFactories, multiBinding); - this.name = name; - this.pure = pure; - } - PipeProvider.createFromType = function(type, metadata) { - var provider = new di_1.Provider(type, {useClass: type}); - var rb = provider_1.resolveProvider(provider); - return new PipeProvider(metadata.name, metadata.pure, rb.key, rb.resolvedFactories, rb.multiProvider); - }; - return PipeProvider; - })(provider_1.ResolvedProvider_); - exports.PipeProvider = PipeProvider; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("80", [], true, function($__require, exports, module) { - "use strict"; - ; - var global = this, - __define = global.define; - global.define = undefined; - (function(LifecycleHooks) { - LifecycleHooks[LifecycleHooks["OnInit"] = 0] = "OnInit"; - LifecycleHooks[LifecycleHooks["OnDestroy"] = 1] = "OnDestroy"; - LifecycleHooks[LifecycleHooks["DoCheck"] = 2] = "DoCheck"; - LifecycleHooks[LifecycleHooks["OnChanges"] = 3] = "OnChanges"; - LifecycleHooks[LifecycleHooks["AfterContentInit"] = 4] = "AfterContentInit"; - LifecycleHooks[LifecycleHooks["AfterContentChecked"] = 5] = "AfterContentChecked"; - LifecycleHooks[LifecycleHooks["AfterViewInit"] = 6] = "AfterViewInit"; - LifecycleHooks[LifecycleHooks["AfterViewChecked"] = 7] = "AfterViewChecked"; - })(exports.LifecycleHooks || (exports.LifecycleHooks = {})); - var LifecycleHooks = exports.LifecycleHooks; - exports.LIFECYCLE_HOOKS_VALUES = [LifecycleHooks.OnInit, LifecycleHooks.OnDestroy, LifecycleHooks.DoCheck, LifecycleHooks.OnChanges, LifecycleHooks.AfterContentInit, LifecycleHooks.AfterContentChecked, LifecycleHooks.AfterViewInit, LifecycleHooks.AfterViewChecked]; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("1d6", ["22", "40", "67", "3b", "3d", "1f1", "1f0", "1f2", "1ce", "1d2", "1d0", "1d1", "81", "84", "72", "1cf", "85", "1ee", "1ef", "80"], true, function($__require, exports, module) { - "use strict"; - ; - var global = this, - __define = global.define; - global.define = undefined; - var __extends = (this && this.__extends) || function(d, b) { - for (var p in b) - if (b.hasOwnProperty(p)) - d[p] = b[p]; - function __() { - this.constructor = d; - } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; - var lang_1 = $__require('22'); - var exceptions_1 = $__require('40'); - var async_1 = $__require('67'); - var collection_1 = $__require('3b'); - var di_1 = $__require('3d'); - var injector_1 = $__require('1f1'); - var provider_1 = $__require('1f0'); - var di_2 = $__require('1f2'); - var avmModule = $__require('1ce'); - var view_container_ref_1 = $__require('1d2'); - var element_ref_1 = $__require('1d0'); - var template_ref_1 = $__require('1d1'); - var directives_1 = $__require('81'); - var directive_lifecycle_reflector_1 = $__require('84'); - var change_detection_1 = $__require('72'); - var query_list_1 = $__require('1cf'); - var reflection_1 = $__require('85'); - var event_config_1 = $__require('1ee'); - var pipe_provider_1 = $__require('1ef'); - var interfaces_1 = $__require('80'); - var view_container_ref_2 = $__require('1d2'); - var _staticKeys; - var StaticKeys = (function() { - function StaticKeys() { - this.viewManagerId = di_1.Key.get(avmModule.AppViewManager).id; - this.templateRefId = di_1.Key.get(template_ref_1.TemplateRef).id; - this.viewContainerId = di_1.Key.get(view_container_ref_1.ViewContainerRef).id; - this.changeDetectorRefId = di_1.Key.get(change_detection_1.ChangeDetectorRef).id; - this.elementRefId = di_1.Key.get(element_ref_1.ElementRef).id; - } - StaticKeys.instance = function() { - if (lang_1.isBlank(_staticKeys)) - _staticKeys = new StaticKeys(); - return _staticKeys; - }; - return StaticKeys; - })(); - exports.StaticKeys = StaticKeys; - var TreeNode = (function() { - function TreeNode(parent) { - if (lang_1.isPresent(parent)) { - parent.addChild(this); - } else { - this._parent = null; - } - } - TreeNode.prototype.addChild = function(child) { - child._parent = this; - }; - TreeNode.prototype.remove = function() { - this._parent = null; - }; - Object.defineProperty(TreeNode.prototype, "parent", { - get: function() { - return this._parent; - }, - enumerable: true, - configurable: true - }); - return TreeNode; - })(); - exports.TreeNode = TreeNode; - var DirectiveDependency = (function(_super) { - __extends(DirectiveDependency, _super); - function DirectiveDependency(key, optional, lowerBoundVisibility, upperBoundVisibility, properties, attributeName, queryDecorator) { - _super.call(this, key, optional, lowerBoundVisibility, upperBoundVisibility, properties); - this.attributeName = attributeName; - this.queryDecorator = queryDecorator; - this._verify(); - } - DirectiveDependency.prototype._verify = function() { - var count = 0; - if (lang_1.isPresent(this.queryDecorator)) - count++; - if (lang_1.isPresent(this.attributeName)) - count++; - if (count > 1) - throw new exceptions_1.BaseException('A directive injectable can contain only one of the following @Attribute or @Query.'); - }; - DirectiveDependency.createFrom = function(d) { - return new DirectiveDependency(d.key, d.optional, d.lowerBoundVisibility, d.upperBoundVisibility, d.properties, DirectiveDependency._attributeName(d.properties), DirectiveDependency._query(d.properties)); - }; - DirectiveDependency._attributeName = function(properties) { - var p = properties.find(function(p) { - return p instanceof di_2.AttributeMetadata; - }); - return lang_1.isPresent(p) ? p.attributeName : null; - }; - DirectiveDependency._query = function(properties) { - return properties.find(function(p) { - return p instanceof di_2.QueryMetadata; - }); - }; - return DirectiveDependency; - })(di_1.Dependency); - exports.DirectiveDependency = DirectiveDependency; - var DirectiveProvider = (function(_super) { - __extends(DirectiveProvider, _super); - function DirectiveProvider(key, factory, deps, metadata, providers, viewProviders) { - _super.call(this, key, [new provider_1.ResolvedFactory(factory, deps)], false); - this.metadata = metadata; - this.providers = providers; - this.viewProviders = viewProviders; - this.callOnDestroy = directive_lifecycle_reflector_1.hasLifecycleHook(interfaces_1.LifecycleHooks.OnDestroy, key.token); - } - Object.defineProperty(DirectiveProvider.prototype, "displayName", { - get: function() { - return this.key.displayName; - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(DirectiveProvider.prototype, "queries", { - get: function() { - if (lang_1.isBlank(this.metadata.queries)) - return []; - var res = []; - collection_1.StringMapWrapper.forEach(this.metadata.queries, function(meta, fieldName) { - var setter = reflection_1.reflector.setter(fieldName); - res.push(new QueryMetadataWithSetter(setter, meta)); - }); - return res; - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(DirectiveProvider.prototype, "eventEmitters", { - get: function() { - return lang_1.isPresent(this.metadata) && lang_1.isPresent(this.metadata.outputs) ? this.metadata.outputs : []; - }, - enumerable: true, - configurable: true - }); - DirectiveProvider.createFromProvider = function(provider, meta) { - if (lang_1.isBlank(meta)) { - meta = new directives_1.DirectiveMetadata(); - } - var rb = provider_1.resolveProvider(provider); - var rf = rb.resolvedFactories[0]; - var deps = rf.dependencies.map(DirectiveDependency.createFrom); - var providers = lang_1.isPresent(meta.providers) ? meta.providers : []; - var viewBindigs = meta instanceof directives_1.ComponentMetadata && lang_1.isPresent(meta.viewProviders) ? meta.viewProviders : []; - return new DirectiveProvider(rb.key, rf.factory, deps, meta, providers, viewBindigs); - }; - DirectiveProvider.createFromType = function(type, annotation) { - var provider = new di_1.Provider(type, {useClass: type}); - return DirectiveProvider.createFromProvider(provider, annotation); - }; - return DirectiveProvider; - })(provider_1.ResolvedProvider_); - exports.DirectiveProvider = DirectiveProvider; - var PreBuiltObjects = (function() { - function PreBuiltObjects(viewManager, view, elementRef, templateRef) { - this.viewManager = viewManager; - this.view = view; - this.elementRef = elementRef; - this.templateRef = templateRef; - this.nestedView = null; - } - return PreBuiltObjects; - })(); - exports.PreBuiltObjects = PreBuiltObjects; - var QueryMetadataWithSetter = (function() { - function QueryMetadataWithSetter(setter, metadata) { - this.setter = setter; - this.metadata = metadata; - } - return QueryMetadataWithSetter; - })(); - exports.QueryMetadataWithSetter = QueryMetadataWithSetter; - var EventEmitterAccessor = (function() { - function EventEmitterAccessor(eventName, getter) { - this.eventName = eventName; - this.getter = getter; - } - EventEmitterAccessor.prototype.subscribe = function(view, boundElementIndex, directive) { - var _this = this; - var eventEmitter = this.getter(directive); - return async_1.ObservableWrapper.subscribe(eventEmitter, function(eventObj) { - return view.triggerEventHandlers(_this.eventName, eventObj, boundElementIndex); - }); - }; - return EventEmitterAccessor; - })(); - exports.EventEmitterAccessor = EventEmitterAccessor; - function _createEventEmitterAccessors(bwv) { - var provider = bwv.provider; - if (!(provider instanceof DirectiveProvider)) - return []; - var db = provider; - return db.eventEmitters.map(function(eventConfig) { - var parsedEvent = event_config_1.EventConfig.parse(eventConfig); - return new EventEmitterAccessor(parsedEvent.eventName, reflection_1.reflector.getter(parsedEvent.fieldName)); - }); - } - function _createProtoQueryRefs(providers) { - var res = []; - collection_1.ListWrapper.forEachWithIndex(providers, function(b, i) { - if (b.provider instanceof DirectiveProvider) { - var directiveProvider = b.provider; - var queries = directiveProvider.queries; - queries.forEach(function(q) { - return res.push(new ProtoQueryRef(i, q.setter, q.metadata)); - }); - var deps = directiveProvider.resolvedFactory.dependencies; - deps.forEach(function(d) { - if (lang_1.isPresent(d.queryDecorator)) - res.push(new ProtoQueryRef(i, null, d.queryDecorator)); - }); - } - }); - return res; - } - var ProtoElementInjector = (function() { - function ProtoElementInjector(parent, index, bwv, distanceToParent, _firstProviderIsComponent, directiveVariableBindings) { - this.parent = parent; - this.index = index; - this.distanceToParent = distanceToParent; - this.directiveVariableBindings = directiveVariableBindings; - this._firstProviderIsComponent = _firstProviderIsComponent; - var length = bwv.length; - this.protoInjector = new injector_1.ProtoInjector(bwv); - this.eventEmitterAccessors = collection_1.ListWrapper.createFixedSize(length); - for (var i = 0; i < length; ++i) { - this.eventEmitterAccessors[i] = _createEventEmitterAccessors(bwv[i]); - } - this.protoQueryRefs = _createProtoQueryRefs(bwv); - } - ProtoElementInjector.create = function(parent, index, providers, firstProviderIsComponent, distanceToParent, directiveVariableBindings) { - var bd = []; - ProtoElementInjector._createDirectiveProviderWithVisibility(providers, bd, firstProviderIsComponent); - if (firstProviderIsComponent) { - ProtoElementInjector._createViewProvidersWithVisibility(providers, bd); - } - ProtoElementInjector._createProvidersWithVisibility(providers, bd); - return new ProtoElementInjector(parent, index, bd, distanceToParent, firstProviderIsComponent, directiveVariableBindings); - }; - ProtoElementInjector._createDirectiveProviderWithVisibility = function(dirProviders, bd, firstProviderIsComponent) { - dirProviders.forEach(function(dirProvider) { - bd.push(ProtoElementInjector._createProviderWithVisibility(firstProviderIsComponent, dirProvider, dirProviders, dirProvider)); - }); - }; - ProtoElementInjector._createProvidersWithVisibility = function(dirProviders, bd) { - var providersFromAllDirectives = []; - dirProviders.forEach(function(dirProvider) { - providersFromAllDirectives = collection_1.ListWrapper.concat(providersFromAllDirectives, dirProvider.providers); - }); - var resolved = di_1.Injector.resolve(providersFromAllDirectives); - resolved.forEach(function(b) { - return bd.push(new injector_1.ProviderWithVisibility(b, injector_1.Visibility.Public)); - }); - }; - ProtoElementInjector._createProviderWithVisibility = function(firstProviderIsComponent, dirProvider, dirProviders, provider) { - var isComponent = firstProviderIsComponent && dirProviders[0] === dirProvider; - return new injector_1.ProviderWithVisibility(provider, isComponent ? injector_1.Visibility.PublicAndPrivate : injector_1.Visibility.Public); - }; - ProtoElementInjector._createViewProvidersWithVisibility = function(dirProviders, bd) { - var resolvedViewProviders = di_1.Injector.resolve(dirProviders[0].viewProviders); - resolvedViewProviders.forEach(function(b) { - return bd.push(new injector_1.ProviderWithVisibility(b, injector_1.Visibility.Private)); - }); - }; - ProtoElementInjector.prototype.instantiate = function(parent) { - return new ElementInjector(this, parent); - }; - ProtoElementInjector.prototype.directParent = function() { - return this.distanceToParent < 2 ? this.parent : null; - }; - Object.defineProperty(ProtoElementInjector.prototype, "hasBindings", { - get: function() { - return this.eventEmitterAccessors.length > 0; - }, - enumerable: true, - configurable: true - }); - ProtoElementInjector.prototype.getProviderAtIndex = function(index) { - return this.protoInjector.getProviderAtIndex(index); - }; - return ProtoElementInjector; - })(); - exports.ProtoElementInjector = ProtoElementInjector; - var _Context = (function() { - function _Context(element, componentElement, injector) { - this.element = element; - this.componentElement = componentElement; - this.injector = injector; - } - return _Context; - })(); - var ElementInjector = (function(_super) { - __extends(ElementInjector, _super); - function ElementInjector(_proto, parent) { - var _this = this; - _super.call(this, parent); - this._preBuiltObjects = null; - this._proto = _proto; - this._injector = new di_1.Injector(this._proto.protoInjector, null, this, function() { - return _this._debugContext(); - }); - var injectorStrategy = this._injector.internalStrategy; - this._strategy = injectorStrategy instanceof injector_1.InjectorInlineStrategy ? new ElementInjectorInlineStrategy(injectorStrategy, this) : new ElementInjectorDynamicStrategy(injectorStrategy, this); - this.hydrated = false; - this._queryStrategy = this._buildQueryStrategy(); - } - ElementInjector.prototype.dehydrate = function() { - this.hydrated = false; - this._host = null; - this._preBuiltObjects = null; - this._strategy.callOnDestroy(); - this._strategy.dehydrate(); - this._queryStrategy.dehydrate(); - }; - ElementInjector.prototype.hydrate = function(imperativelyCreatedInjector, host, preBuiltObjects) { - this._host = host; - this._preBuiltObjects = preBuiltObjects; - this._reattachInjectors(imperativelyCreatedInjector); - this._queryStrategy.hydrate(); - this._strategy.hydrate(); - this.hydrated = true; - }; - ElementInjector.prototype._debugContext = function() { - var p = this._preBuiltObjects; - var index = p.elementRef.boundElementIndex - p.view.elementOffset; - var c = this._preBuiltObjects.view.getDebugContext(index, null); - return lang_1.isPresent(c) ? new _Context(c.element, c.componentElement, c.injector) : null; - }; - ElementInjector.prototype._reattachInjectors = function(imperativelyCreatedInjector) { - if (lang_1.isPresent(this._parent)) { - if (lang_1.isPresent(imperativelyCreatedInjector)) { - this._reattachInjector(this._injector, imperativelyCreatedInjector, false); - this._reattachInjector(imperativelyCreatedInjector, this._parent._injector, false); - } else { - this._reattachInjector(this._injector, this._parent._injector, false); - } - } else if (lang_1.isPresent(this._host)) { - if (lang_1.isPresent(imperativelyCreatedInjector)) { - this._reattachInjector(this._injector, imperativelyCreatedInjector, false); - this._reattachInjector(imperativelyCreatedInjector, this._host._injector, true); - } else { - this._reattachInjector(this._injector, this._host._injector, true); - } - } else { - if (lang_1.isPresent(imperativelyCreatedInjector)) { - this._reattachInjector(this._injector, imperativelyCreatedInjector, true); - } - } - }; - ElementInjector.prototype._reattachInjector = function(injector, parentInjector, isBoundary) { - injector.internalStrategy.attach(parentInjector, isBoundary); - }; - ElementInjector.prototype.hasVariableBinding = function(name) { - var vb = this._proto.directiveVariableBindings; - return lang_1.isPresent(vb) && vb.has(name); - }; - ElementInjector.prototype.getVariableBinding = function(name) { - var index = this._proto.directiveVariableBindings.get(name); - return lang_1.isPresent(index) ? this.getDirectiveAtIndex(index) : this.getElementRef(); - }; - ElementInjector.prototype.get = function(token) { - return this._injector.get(token); - }; - ElementInjector.prototype.hasDirective = function(type) { - return lang_1.isPresent(this._injector.getOptional(type)); - }; - ElementInjector.prototype.getEventEmitterAccessors = function() { - return this._proto.eventEmitterAccessors; - }; - ElementInjector.prototype.getDirectiveVariableBindings = function() { - return this._proto.directiveVariableBindings; - }; - ElementInjector.prototype.getComponent = function() { - return this._strategy.getComponent(); - }; - ElementInjector.prototype.getInjector = function() { - return this._injector; - }; - ElementInjector.prototype.getElementRef = function() { - return this._preBuiltObjects.elementRef; - }; - ElementInjector.prototype.getViewContainerRef = function() { - return new view_container_ref_2.ViewContainerRef_(this._preBuiltObjects.viewManager, this.getElementRef()); - }; - ElementInjector.prototype.getNestedView = function() { - return this._preBuiltObjects.nestedView; - }; - ElementInjector.prototype.getView = function() { - return this._preBuiltObjects.view; - }; - ElementInjector.prototype.directParent = function() { - return this._proto.distanceToParent < 2 ? this.parent : null; - }; - ElementInjector.prototype.isComponentKey = function(key) { - return this._strategy.isComponentKey(key); - }; - ElementInjector.prototype.getDependency = function(injector, provider, dep) { - var key = dep.key; - if (provider instanceof DirectiveProvider) { - var dirDep = dep; - var dirProvider = provider; - var staticKeys = StaticKeys.instance(); - if (key.id === staticKeys.viewManagerId) - return this._preBuiltObjects.viewManager; - if (lang_1.isPresent(dirDep.attributeName)) - return this._buildAttribute(dirDep); - if (lang_1.isPresent(dirDep.queryDecorator)) - return this._queryStrategy.findQuery(dirDep.queryDecorator).list; - if (dirDep.key.id === StaticKeys.instance().changeDetectorRefId) { - if (dirProvider.metadata instanceof directives_1.ComponentMetadata) { - var componentView = this._preBuiltObjects.view.getNestedView(this._preBuiltObjects.elementRef.boundElementIndex); - return componentView.changeDetector.ref; - } else { - return this._preBuiltObjects.view.changeDetector.ref; - } - } - if (dirDep.key.id === StaticKeys.instance().elementRefId) { - return this.getElementRef(); - } - if (dirDep.key.id === StaticKeys.instance().viewContainerId) { - return this.getViewContainerRef(); - } - if (dirDep.key.id === StaticKeys.instance().templateRefId) { - if (lang_1.isBlank(this._preBuiltObjects.templateRef)) { - if (dirDep.optional) { - return null; - } - throw new di_1.NoProviderError(null, dirDep.key); - } - return this._preBuiltObjects.templateRef; - } - } else if (provider instanceof pipe_provider_1.PipeProvider) { - if (dep.key.id === StaticKeys.instance().changeDetectorRefId) { - var componentView = this._preBuiltObjects.view.getNestedView(this._preBuiltObjects.elementRef.boundElementIndex); - return componentView.changeDetector.ref; - } - } - return injector_1.UNDEFINED; - }; - ElementInjector.prototype._buildAttribute = function(dep) { - var attributes = this._proto.attributes; - if (lang_1.isPresent(attributes) && attributes.has(dep.attributeName)) { - return attributes.get(dep.attributeName); - } else { - return null; - } - }; - ElementInjector.prototype.addDirectivesMatchingQuery = function(query, list) { - var templateRef = lang_1.isBlank(this._preBuiltObjects) ? null : this._preBuiltObjects.templateRef; - if (query.selector === template_ref_1.TemplateRef && lang_1.isPresent(templateRef)) { - list.push(templateRef); - } - this._strategy.addDirectivesMatchingQuery(query, list); - }; - ElementInjector.prototype._buildQueryStrategy = function() { - if (this._proto.protoQueryRefs.length === 0) { - return _emptyQueryStrategy; - } else if (this._proto.protoQueryRefs.length <= InlineQueryStrategy.NUMBER_OF_SUPPORTED_QUERIES) { - return new InlineQueryStrategy(this); - } else { - return new DynamicQueryStrategy(this); - } - }; - ElementInjector.prototype.link = function(parent) { - parent.addChild(this); - }; - ElementInjector.prototype.unlink = function() { - this.remove(); - }; - ElementInjector.prototype.getDirectiveAtIndex = function(index) { - return this._injector.getAt(index); - }; - ElementInjector.prototype.hasInstances = function() { - return this._proto.hasBindings && this.hydrated; - }; - ElementInjector.prototype.getHost = function() { - return this._host; - }; - ElementInjector.prototype.getBoundElementIndex = function() { - return this._proto.index; - }; - ElementInjector.prototype.getRootViewInjectors = function() { - if (!this.hydrated) - return []; - var view = this._preBuiltObjects.view; - var nestedView = view.getNestedView(view.elementOffset + this.getBoundElementIndex()); - return lang_1.isPresent(nestedView) ? nestedView.rootElementInjectors : []; - }; - ElementInjector.prototype.ngAfterViewChecked = function() { - this._queryStrategy.updateViewQueries(); - }; - ElementInjector.prototype.ngAfterContentChecked = function() { - this._queryStrategy.updateContentQueries(); - }; - ElementInjector.prototype.traverseAndSetQueriesAsDirty = function() { - var inj = this; - while (lang_1.isPresent(inj)) { - inj._setQueriesAsDirty(); - inj = inj.parent; - } - }; - ElementInjector.prototype._setQueriesAsDirty = function() { - this._queryStrategy.setContentQueriesAsDirty(); - if (lang_1.isPresent(this._host)) - this._host._queryStrategy.setViewQueriesAsDirty(); - }; - return ElementInjector; - })(TreeNode); - exports.ElementInjector = ElementInjector; - var _EmptyQueryStrategy = (function() { - function _EmptyQueryStrategy() {} - _EmptyQueryStrategy.prototype.setContentQueriesAsDirty = function() {}; - _EmptyQueryStrategy.prototype.setViewQueriesAsDirty = function() {}; - _EmptyQueryStrategy.prototype.hydrate = function() {}; - _EmptyQueryStrategy.prototype.dehydrate = function() {}; - _EmptyQueryStrategy.prototype.updateContentQueries = function() {}; - _EmptyQueryStrategy.prototype.updateViewQueries = function() {}; - _EmptyQueryStrategy.prototype.findQuery = function(query) { - throw new exceptions_1.BaseException("Cannot find query for directive " + query + "."); - }; - return _EmptyQueryStrategy; - })(); - var _emptyQueryStrategy = new _EmptyQueryStrategy(); - var InlineQueryStrategy = (function() { - function InlineQueryStrategy(ei) { - var protoRefs = ei._proto.protoQueryRefs; - if (protoRefs.length > 0) - this.query0 = new QueryRef(protoRefs[0], ei); - if (protoRefs.length > 1) - this.query1 = new QueryRef(protoRefs[1], ei); - if (protoRefs.length > 2) - this.query2 = new QueryRef(protoRefs[2], ei); - } - InlineQueryStrategy.prototype.setContentQueriesAsDirty = function() { - if (lang_1.isPresent(this.query0) && !this.query0.isViewQuery) - this.query0.dirty = true; - if (lang_1.isPresent(this.query1) && !this.query1.isViewQuery) - this.query1.dirty = true; - if (lang_1.isPresent(this.query2) && !this.query2.isViewQuery) - this.query2.dirty = true; - }; - InlineQueryStrategy.prototype.setViewQueriesAsDirty = function() { - if (lang_1.isPresent(this.query0) && this.query0.isViewQuery) - this.query0.dirty = true; - if (lang_1.isPresent(this.query1) && this.query1.isViewQuery) - this.query1.dirty = true; - if (lang_1.isPresent(this.query2) && this.query2.isViewQuery) - this.query2.dirty = true; - }; - InlineQueryStrategy.prototype.hydrate = function() { - if (lang_1.isPresent(this.query0)) - this.query0.hydrate(); - if (lang_1.isPresent(this.query1)) - this.query1.hydrate(); - if (lang_1.isPresent(this.query2)) - this.query2.hydrate(); - }; - InlineQueryStrategy.prototype.dehydrate = function() { - if (lang_1.isPresent(this.query0)) - this.query0.dehydrate(); - if (lang_1.isPresent(this.query1)) - this.query1.dehydrate(); - if (lang_1.isPresent(this.query2)) - this.query2.dehydrate(); - }; - InlineQueryStrategy.prototype.updateContentQueries = function() { - if (lang_1.isPresent(this.query0) && !this.query0.isViewQuery) { - this.query0.update(); - } - if (lang_1.isPresent(this.query1) && !this.query1.isViewQuery) { - this.query1.update(); - } - if (lang_1.isPresent(this.query2) && !this.query2.isViewQuery) { - this.query2.update(); - } - }; - InlineQueryStrategy.prototype.updateViewQueries = function() { - if (lang_1.isPresent(this.query0) && this.query0.isViewQuery) { - this.query0.update(); - } - if (lang_1.isPresent(this.query1) && this.query1.isViewQuery) { - this.query1.update(); - } - if (lang_1.isPresent(this.query2) && this.query2.isViewQuery) { - this.query2.update(); - } - }; - InlineQueryStrategy.prototype.findQuery = function(query) { - if (lang_1.isPresent(this.query0) && this.query0.protoQueryRef.query === query) { - return this.query0; - } - if (lang_1.isPresent(this.query1) && this.query1.protoQueryRef.query === query) { - return this.query1; - } - if (lang_1.isPresent(this.query2) && this.query2.protoQueryRef.query === query) { - return this.query2; - } - throw new exceptions_1.BaseException("Cannot find query for directive " + query + "."); - }; - InlineQueryStrategy.NUMBER_OF_SUPPORTED_QUERIES = 3; - return InlineQueryStrategy; - })(); - var DynamicQueryStrategy = (function() { - function DynamicQueryStrategy(ei) { - this.queries = ei._proto.protoQueryRefs.map(function(p) { - return new QueryRef(p, ei); - }); - } - DynamicQueryStrategy.prototype.setContentQueriesAsDirty = function() { - for (var i = 0; i < this.queries.length; ++i) { - var q = this.queries[i]; - if (!q.isViewQuery) - q.dirty = true; - } - }; - DynamicQueryStrategy.prototype.setViewQueriesAsDirty = function() { - for (var i = 0; i < this.queries.length; ++i) { - var q = this.queries[i]; - if (q.isViewQuery) - q.dirty = true; - } - }; - DynamicQueryStrategy.prototype.hydrate = function() { - for (var i = 0; i < this.queries.length; ++i) { - var q = this.queries[i]; - q.hydrate(); - } - }; - DynamicQueryStrategy.prototype.dehydrate = function() { - for (var i = 0; i < this.queries.length; ++i) { - var q = this.queries[i]; - q.dehydrate(); - } - }; - DynamicQueryStrategy.prototype.updateContentQueries = function() { - for (var i = 0; i < this.queries.length; ++i) { - var q = this.queries[i]; - if (!q.isViewQuery) { - q.update(); - } - } - }; - DynamicQueryStrategy.prototype.updateViewQueries = function() { - for (var i = 0; i < this.queries.length; ++i) { - var q = this.queries[i]; - if (q.isViewQuery) { - q.update(); - } - } - }; - DynamicQueryStrategy.prototype.findQuery = function(query) { - for (var i = 0; i < this.queries.length; ++i) { - var q = this.queries[i]; - if (q.protoQueryRef.query === query) { - return q; - } - } - throw new exceptions_1.BaseException("Cannot find query for directive " + query + "."); - }; - return DynamicQueryStrategy; - })(); - var ElementInjectorInlineStrategy = (function() { - function ElementInjectorInlineStrategy(injectorStrategy, _ei) { - this.injectorStrategy = injectorStrategy; - this._ei = _ei; - } - ElementInjectorInlineStrategy.prototype.hydrate = function() { - var i = this.injectorStrategy; - var p = i.protoStrategy; - i.resetConstructionCounter(); - if (p.provider0 instanceof DirectiveProvider && lang_1.isPresent(p.keyId0) && i.obj0 === injector_1.UNDEFINED) - i.obj0 = i.instantiateProvider(p.provider0, p.visibility0); - if (p.provider1 instanceof DirectiveProvider && lang_1.isPresent(p.keyId1) && i.obj1 === injector_1.UNDEFINED) - i.obj1 = i.instantiateProvider(p.provider1, p.visibility1); - if (p.provider2 instanceof DirectiveProvider && lang_1.isPresent(p.keyId2) && i.obj2 === injector_1.UNDEFINED) - i.obj2 = i.instantiateProvider(p.provider2, p.visibility2); - if (p.provider3 instanceof DirectiveProvider && lang_1.isPresent(p.keyId3) && i.obj3 === injector_1.UNDEFINED) - i.obj3 = i.instantiateProvider(p.provider3, p.visibility3); - if (p.provider4 instanceof DirectiveProvider && lang_1.isPresent(p.keyId4) && i.obj4 === injector_1.UNDEFINED) - i.obj4 = i.instantiateProvider(p.provider4, p.visibility4); - if (p.provider5 instanceof DirectiveProvider && lang_1.isPresent(p.keyId5) && i.obj5 === injector_1.UNDEFINED) - i.obj5 = i.instantiateProvider(p.provider5, p.visibility5); - if (p.provider6 instanceof DirectiveProvider && lang_1.isPresent(p.keyId6) && i.obj6 === injector_1.UNDEFINED) - i.obj6 = i.instantiateProvider(p.provider6, p.visibility6); - if (p.provider7 instanceof DirectiveProvider && lang_1.isPresent(p.keyId7) && i.obj7 === injector_1.UNDEFINED) - i.obj7 = i.instantiateProvider(p.provider7, p.visibility7); - if (p.provider8 instanceof DirectiveProvider && lang_1.isPresent(p.keyId8) && i.obj8 === injector_1.UNDEFINED) - i.obj8 = i.instantiateProvider(p.provider8, p.visibility8); - if (p.provider9 instanceof DirectiveProvider && lang_1.isPresent(p.keyId9) && i.obj9 === injector_1.UNDEFINED) - i.obj9 = i.instantiateProvider(p.provider9, p.visibility9); - }; - ElementInjectorInlineStrategy.prototype.dehydrate = function() { - var i = this.injectorStrategy; - i.obj0 = injector_1.UNDEFINED; - i.obj1 = injector_1.UNDEFINED; - i.obj2 = injector_1.UNDEFINED; - i.obj3 = injector_1.UNDEFINED; - i.obj4 = injector_1.UNDEFINED; - i.obj5 = injector_1.UNDEFINED; - i.obj6 = injector_1.UNDEFINED; - i.obj7 = injector_1.UNDEFINED; - i.obj8 = injector_1.UNDEFINED; - i.obj9 = injector_1.UNDEFINED; - }; - ElementInjectorInlineStrategy.prototype.callOnDestroy = function() { - var i = this.injectorStrategy; - var p = i.protoStrategy; - if (p.provider0 instanceof DirectiveProvider && p.provider0.callOnDestroy) { - i.obj0.ngOnDestroy(); - } - if (p.provider1 instanceof DirectiveProvider && p.provider1.callOnDestroy) { - i.obj1.ngOnDestroy(); - } - if (p.provider2 instanceof DirectiveProvider && p.provider2.callOnDestroy) { - i.obj2.ngOnDestroy(); - } - if (p.provider3 instanceof DirectiveProvider && p.provider3.callOnDestroy) { - i.obj3.ngOnDestroy(); - } - if (p.provider4 instanceof DirectiveProvider && p.provider4.callOnDestroy) { - i.obj4.ngOnDestroy(); - } - if (p.provider5 instanceof DirectiveProvider && p.provider5.callOnDestroy) { - i.obj5.ngOnDestroy(); - } - if (p.provider6 instanceof DirectiveProvider && p.provider6.callOnDestroy) { - i.obj6.ngOnDestroy(); - } - if (p.provider7 instanceof DirectiveProvider && p.provider7.callOnDestroy) { - i.obj7.ngOnDestroy(); - } - if (p.provider8 instanceof DirectiveProvider && p.provider8.callOnDestroy) { - i.obj8.ngOnDestroy(); - } - if (p.provider9 instanceof DirectiveProvider && p.provider9.callOnDestroy) { - i.obj9.ngOnDestroy(); - } - }; - ElementInjectorInlineStrategy.prototype.getComponent = function() { - return this.injectorStrategy.obj0; - }; - ElementInjectorInlineStrategy.prototype.isComponentKey = function(key) { - return this._ei._proto._firstProviderIsComponent && lang_1.isPresent(key) && key.id === this.injectorStrategy.protoStrategy.keyId0; - }; - ElementInjectorInlineStrategy.prototype.addDirectivesMatchingQuery = function(query, list) { - var i = this.injectorStrategy; - var p = i.protoStrategy; - if (lang_1.isPresent(p.provider0) && p.provider0.key.token === query.selector) { - if (i.obj0 === injector_1.UNDEFINED) - i.obj0 = i.instantiateProvider(p.provider0, p.visibility0); - list.push(i.obj0); - } - if (lang_1.isPresent(p.provider1) && p.provider1.key.token === query.selector) { - if (i.obj1 === injector_1.UNDEFINED) - i.obj1 = i.instantiateProvider(p.provider1, p.visibility1); - list.push(i.obj1); - } - if (lang_1.isPresent(p.provider2) && p.provider2.key.token === query.selector) { - if (i.obj2 === injector_1.UNDEFINED) - i.obj2 = i.instantiateProvider(p.provider2, p.visibility2); - list.push(i.obj2); - } - if (lang_1.isPresent(p.provider3) && p.provider3.key.token === query.selector) { - if (i.obj3 === injector_1.UNDEFINED) - i.obj3 = i.instantiateProvider(p.provider3, p.visibility3); - list.push(i.obj3); - } - if (lang_1.isPresent(p.provider4) && p.provider4.key.token === query.selector) { - if (i.obj4 === injector_1.UNDEFINED) - i.obj4 = i.instantiateProvider(p.provider4, p.visibility4); - list.push(i.obj4); - } - if (lang_1.isPresent(p.provider5) && p.provider5.key.token === query.selector) { - if (i.obj5 === injector_1.UNDEFINED) - i.obj5 = i.instantiateProvider(p.provider5, p.visibility5); - list.push(i.obj5); - } - if (lang_1.isPresent(p.provider6) && p.provider6.key.token === query.selector) { - if (i.obj6 === injector_1.UNDEFINED) - i.obj6 = i.instantiateProvider(p.provider6, p.visibility6); - list.push(i.obj6); - } - if (lang_1.isPresent(p.provider7) && p.provider7.key.token === query.selector) { - if (i.obj7 === injector_1.UNDEFINED) - i.obj7 = i.instantiateProvider(p.provider7, p.visibility7); - list.push(i.obj7); - } - if (lang_1.isPresent(p.provider8) && p.provider8.key.token === query.selector) { - if (i.obj8 === injector_1.UNDEFINED) - i.obj8 = i.instantiateProvider(p.provider8, p.visibility8); - list.push(i.obj8); - } - if (lang_1.isPresent(p.provider9) && p.provider9.key.token === query.selector) { - if (i.obj9 === injector_1.UNDEFINED) - i.obj9 = i.instantiateProvider(p.provider9, p.visibility9); - list.push(i.obj9); - } - }; - return ElementInjectorInlineStrategy; - })(); - var ElementInjectorDynamicStrategy = (function() { - function ElementInjectorDynamicStrategy(injectorStrategy, _ei) { - this.injectorStrategy = injectorStrategy; - this._ei = _ei; - } - ElementInjectorDynamicStrategy.prototype.hydrate = function() { - var inj = this.injectorStrategy; - var p = inj.protoStrategy; - inj.resetConstructionCounter(); - for (var i = 0; i < p.keyIds.length; i++) { - if (p.providers[i] instanceof DirectiveProvider && lang_1.isPresent(p.keyIds[i]) && inj.objs[i] === injector_1.UNDEFINED) { - inj.objs[i] = inj.instantiateProvider(p.providers[i], p.visibilities[i]); - } - } - }; - ElementInjectorDynamicStrategy.prototype.dehydrate = function() { - var inj = this.injectorStrategy; - collection_1.ListWrapper.fill(inj.objs, injector_1.UNDEFINED); - }; - ElementInjectorDynamicStrategy.prototype.callOnDestroy = function() { - var ist = this.injectorStrategy; - var p = ist.protoStrategy; - for (var i = 0; i < p.providers.length; i++) { - if (p.providers[i] instanceof DirectiveProvider && p.providers[i].callOnDestroy) { - ist.objs[i].ngOnDestroy(); - } - } - }; - ElementInjectorDynamicStrategy.prototype.getComponent = function() { - return this.injectorStrategy.objs[0]; - }; - ElementInjectorDynamicStrategy.prototype.isComponentKey = function(key) { - var p = this.injectorStrategy.protoStrategy; - return this._ei._proto._firstProviderIsComponent && lang_1.isPresent(key) && key.id === p.keyIds[0]; - }; - ElementInjectorDynamicStrategy.prototype.addDirectivesMatchingQuery = function(query, list) { - var ist = this.injectorStrategy; - var p = ist.protoStrategy; - for (var i = 0; i < p.providers.length; i++) { - if (p.providers[i].key.token === query.selector) { - if (ist.objs[i] === injector_1.UNDEFINED) { - ist.objs[i] = ist.instantiateProvider(p.providers[i], p.visibilities[i]); - } - list.push(ist.objs[i]); - } - } - }; - return ElementInjectorDynamicStrategy; - })(); - var ProtoQueryRef = (function() { - function ProtoQueryRef(dirIndex, setter, query) { - this.dirIndex = dirIndex; - this.setter = setter; - this.query = query; - } - Object.defineProperty(ProtoQueryRef.prototype, "usesPropertySyntax", { - get: function() { - return lang_1.isPresent(this.setter); - }, - enumerable: true, - configurable: true - }); - return ProtoQueryRef; - })(); - exports.ProtoQueryRef = ProtoQueryRef; - var QueryRef = (function() { - function QueryRef(protoQueryRef, originator) { - this.protoQueryRef = protoQueryRef; - this.originator = originator; - } - Object.defineProperty(QueryRef.prototype, "isViewQuery", { - get: function() { - return this.protoQueryRef.query.isViewQuery; - }, - enumerable: true, - configurable: true - }); - QueryRef.prototype.update = function() { - if (!this.dirty) - return; - this._update(); - this.dirty = false; - if (this.protoQueryRef.usesPropertySyntax) { - var dir = this.originator.getDirectiveAtIndex(this.protoQueryRef.dirIndex); - if (this.protoQueryRef.query.first) { - this.protoQueryRef.setter(dir, this.list.length > 0 ? this.list.first : null); - } else { - this.protoQueryRef.setter(dir, this.list); - } - } - this.list.notifyOnChanges(); - }; - QueryRef.prototype._update = function() { - var aggregator = []; - if (this.protoQueryRef.query.isViewQuery) { - var view = this.originator.getView(); - var nestedView = view.getNestedView(view.elementOffset + this.originator.getBoundElementIndex()); - if (lang_1.isPresent(nestedView)) - this._visitView(nestedView, aggregator); - } else { - this._visit(this.originator, aggregator); - } - this.list.reset(aggregator); - }; - ; - QueryRef.prototype._visit = function(inj, aggregator) { - var view = inj.getView(); - var startIdx = view.elementOffset + inj._proto.index; - for (var i = startIdx; i < view.elementOffset + view.ownBindersCount; i++) { - var curInj = view.elementInjectors[i]; - if (lang_1.isBlank(curInj)) - continue; - if (i > startIdx && (lang_1.isBlank(curInj) || lang_1.isBlank(curInj.parent) || view.elementOffset + curInj.parent._proto.index < startIdx)) { - break; - } - if (!this.protoQueryRef.query.descendants && !(curInj.parent == this.originator || curInj == this.originator)) - continue; - this._visitInjector(curInj, aggregator); - var vc = view.viewContainers[i]; - if (lang_1.isPresent(vc)) - this._visitViewContainer(vc, aggregator); - } - }; - QueryRef.prototype._visitInjector = function(inj, aggregator) { - if (this.protoQueryRef.query.isVarBindingQuery) { - this._aggregateVariableBinding(inj, aggregator); - } else { - this._aggregateDirective(inj, aggregator); - } - }; - QueryRef.prototype._visitViewContainer = function(vc, aggregator) { - for (var j = 0; j < vc.views.length; j++) { - this._visitView(vc.views[j], aggregator); - } - }; - QueryRef.prototype._visitView = function(view, aggregator) { - for (var i = view.elementOffset; i < view.elementOffset + view.ownBindersCount; i++) { - var inj = view.elementInjectors[i]; - if (lang_1.isBlank(inj)) - continue; - this._visitInjector(inj, aggregator); - var vc = view.viewContainers[i]; - if (lang_1.isPresent(vc)) - this._visitViewContainer(vc, aggregator); - } - }; - QueryRef.prototype._aggregateVariableBinding = function(inj, aggregator) { - var vb = this.protoQueryRef.query.varBindings; - for (var i = 0; i < vb.length; ++i) { - if (inj.hasVariableBinding(vb[i])) { - aggregator.push(inj.getVariableBinding(vb[i])); - } - } - }; - QueryRef.prototype._aggregateDirective = function(inj, aggregator) { - inj.addDirectivesMatchingQuery(this.protoQueryRef.query, aggregator); - }; - QueryRef.prototype.dehydrate = function() { - this.list = null; - }; - QueryRef.prototype.hydrate = function() { - this.list = new query_list_1.QueryList(); - this.dirty = true; - }; - return QueryRef; - })(); - exports.QueryRef = QueryRef; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("82", ["3d", "22", "40", "3b", "54", "85"], true, function($__require, exports, module) { - "use strict"; - ; - var global = this, - __define = global.define; - global.define = undefined; - var __decorate = (this && this.__decorate) || function(decorators, target, key, desc) { - var c = arguments.length, - r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, - d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") - r = Reflect.decorate(decorators, target, key, desc); - else - for (var i = decorators.length - 1; i >= 0; i--) - if (d = decorators[i]) - r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; - }; - var __metadata = (this && this.__metadata) || function(k, v) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") - return Reflect.metadata(k, v); - }; - var di_1 = $__require('3d'); - var lang_1 = $__require('22'); - var exceptions_1 = $__require('40'); - var collection_1 = $__require('3b'); - var metadata_1 = $__require('54'); - var reflection_1 = $__require('85'); - function _isDirectiveMetadata(type) { - return type instanceof metadata_1.DirectiveMetadata; - } - var DirectiveResolver = (function() { - function DirectiveResolver() {} - DirectiveResolver.prototype.resolve = function(type) { - var typeMetadata = reflection_1.reflector.annotations(di_1.resolveForwardRef(type)); - if (lang_1.isPresent(typeMetadata)) { - var metadata = typeMetadata.find(_isDirectiveMetadata); - if (lang_1.isPresent(metadata)) { - var propertyMetadata = reflection_1.reflector.propMetadata(type); - return this._mergeWithPropertyMetadata(metadata, propertyMetadata); - } - } - throw new exceptions_1.BaseException("No Directive annotation found on " + lang_1.stringify(type)); - }; - DirectiveResolver.prototype._mergeWithPropertyMetadata = function(dm, propertyMetadata) { - var inputs = []; - var outputs = []; - var host = {}; - var queries = {}; - collection_1.StringMapWrapper.forEach(propertyMetadata, function(metadata, propName) { - metadata.forEach(function(a) { - if (a instanceof metadata_1.InputMetadata) { - if (lang_1.isPresent(a.bindingPropertyName)) { - inputs.push(propName + ": " + a.bindingPropertyName); - } else { - inputs.push(propName); - } - } - if (a instanceof metadata_1.OutputMetadata) { - if (lang_1.isPresent(a.bindingPropertyName)) { - outputs.push(propName + ": " + a.bindingPropertyName); - } else { - outputs.push(propName); - } - } - if (a instanceof metadata_1.HostBindingMetadata) { - if (lang_1.isPresent(a.hostPropertyName)) { - host[("[" + a.hostPropertyName + "]")] = propName; - } else { - host[("[" + propName + "]")] = propName; - } - } - if (a instanceof metadata_1.HostListenerMetadata) { - var args = lang_1.isPresent(a.args) ? a.args.join(', ') : ''; - host[("(" + a.eventName + ")")] = propName + "(" + args + ")"; - } - if (a instanceof metadata_1.ContentChildrenMetadata) { - queries[propName] = a; - } - if (a instanceof metadata_1.ViewChildrenMetadata) { - queries[propName] = a; - } - if (a instanceof metadata_1.ContentChildMetadata) { - queries[propName] = a; - } - if (a instanceof metadata_1.ViewChildMetadata) { - queries[propName] = a; - } - }); - }); - return this._merge(dm, inputs, outputs, host, queries); - }; - DirectiveResolver.prototype._merge = function(dm, inputs, outputs, host, queries) { - var mergedInputs = lang_1.isPresent(dm.inputs) ? collection_1.ListWrapper.concat(dm.inputs, inputs) : inputs; - var mergedOutputs = lang_1.isPresent(dm.outputs) ? collection_1.ListWrapper.concat(dm.outputs, outputs) : outputs; - var mergedHost = lang_1.isPresent(dm.host) ? collection_1.StringMapWrapper.merge(dm.host, host) : host; - var mergedQueries = lang_1.isPresent(dm.queries) ? collection_1.StringMapWrapper.merge(dm.queries, queries) : queries; - if (dm instanceof metadata_1.ComponentMetadata) { - return new metadata_1.ComponentMetadata({ - selector: dm.selector, - inputs: mergedInputs, - outputs: mergedOutputs, - host: mergedHost, - exportAs: dm.exportAs, - moduleId: dm.moduleId, - queries: mergedQueries, - changeDetection: dm.changeDetection, - providers: dm.providers, - viewProviders: dm.viewProviders - }); - } else { - return new metadata_1.DirectiveMetadata({ - selector: dm.selector, - inputs: mergedInputs, - outputs: mergedOutputs, - host: mergedHost, - exportAs: dm.exportAs, - queries: mergedQueries, - providers: dm.providers - }); - } - }; - DirectiveResolver = __decorate([di_1.Injectable(), __metadata('design:paramtypes', [])], DirectiveResolver); - return DirectiveResolver; - })(); - exports.DirectiveResolver = DirectiveResolver; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("83", ["3d", "7f", "81", "22", "40", "3b", "85"], true, function($__require, exports, module) { - "use strict"; - ; - var global = this, - __define = global.define; - global.define = undefined; - var __decorate = (this && this.__decorate) || function(decorators, target, key, desc) { - var c = arguments.length, - r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, - d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") - r = Reflect.decorate(decorators, target, key, desc); - else - for (var i = decorators.length - 1; i >= 0; i--) - if (d = decorators[i]) - r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; - }; - var __metadata = (this && this.__metadata) || function(k, v) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") - return Reflect.metadata(k, v); - }; - var di_1 = $__require('3d'); - var view_1 = $__require('7f'); - var directives_1 = $__require('81'); - var lang_1 = $__require('22'); - var exceptions_1 = $__require('40'); - var collection_1 = $__require('3b'); - var reflection_1 = $__require('85'); + var di_1 = $__require('3c'); + var view_1 = $__require('7d'); + var directives_1 = $__require('80'); + var lang_1 = $__require('2b'); + var exceptions_1 = $__require('3f'); + var collection_1 = $__require('3a'); + var reflection_1 = $__require('84'); var ViewResolver = (function() { function ViewResolver() { this._cache = new collection_1.Map(); @@ -46820,7 +42585,7 @@ $__System.registerDynamic("83", ["3d", "7f", "81", "22", "40", "3b", "85"], true return module.exports; }); -$__System.registerDynamic("1f3", ["3d", "22", "40", "54", "85"], true, function($__require, exports, module) { +$__System.registerDynamic("81", ["3c", "2b", "3f", "3a", "52", "84"], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -46842,11 +42607,262 @@ $__System.registerDynamic("1f3", ["3d", "22", "40", "54", "85"], true, function( if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; - var di_1 = $__require('3d'); - var lang_1 = $__require('22'); - var exceptions_1 = $__require('40'); - var metadata_1 = $__require('54'); - var reflection_1 = $__require('85'); + var di_1 = $__require('3c'); + var lang_1 = $__require('2b'); + var exceptions_1 = $__require('3f'); + var collection_1 = $__require('3a'); + var metadata_1 = $__require('52'); + var reflection_1 = $__require('84'); + function _isDirectiveMetadata(type) { + return type instanceof metadata_1.DirectiveMetadata; + } + var DirectiveResolver = (function() { + function DirectiveResolver() {} + DirectiveResolver.prototype.resolve = function(type) { + var typeMetadata = reflection_1.reflector.annotations(di_1.resolveForwardRef(type)); + if (lang_1.isPresent(typeMetadata)) { + var metadata = typeMetadata.find(_isDirectiveMetadata); + if (lang_1.isPresent(metadata)) { + var propertyMetadata = reflection_1.reflector.propMetadata(type); + return this._mergeWithPropertyMetadata(metadata, propertyMetadata, type); + } + } + throw new exceptions_1.BaseException("No Directive annotation found on " + lang_1.stringify(type)); + }; + DirectiveResolver.prototype._mergeWithPropertyMetadata = function(dm, propertyMetadata, directiveType) { + var inputs = []; + var outputs = []; + var host = {}; + var queries = {}; + collection_1.StringMapWrapper.forEach(propertyMetadata, function(metadata, propName) { + metadata.forEach(function(a) { + if (a instanceof metadata_1.InputMetadata) { + if (lang_1.isPresent(a.bindingPropertyName)) { + inputs.push(propName + ": " + a.bindingPropertyName); + } else { + inputs.push(propName); + } + } + if (a instanceof metadata_1.OutputMetadata) { + if (lang_1.isPresent(a.bindingPropertyName)) { + outputs.push(propName + ": " + a.bindingPropertyName); + } else { + outputs.push(propName); + } + } + if (a instanceof metadata_1.HostBindingMetadata) { + if (lang_1.isPresent(a.hostPropertyName)) { + host[("[" + a.hostPropertyName + "]")] = propName; + } else { + host[("[" + propName + "]")] = propName; + } + } + if (a instanceof metadata_1.HostListenerMetadata) { + var args = lang_1.isPresent(a.args) ? a.args.join(', ') : ''; + host[("(" + a.eventName + ")")] = propName + "(" + args + ")"; + } + if (a instanceof metadata_1.ContentChildrenMetadata) { + queries[propName] = a; + } + if (a instanceof metadata_1.ViewChildrenMetadata) { + queries[propName] = a; + } + if (a instanceof metadata_1.ContentChildMetadata) { + queries[propName] = a; + } + if (a instanceof metadata_1.ViewChildMetadata) { + queries[propName] = a; + } + }); + }); + return this._merge(dm, inputs, outputs, host, queries, directiveType); + }; + DirectiveResolver.prototype._merge = function(dm, inputs, outputs, host, queries, directiveType) { + var mergedInputs = lang_1.isPresent(dm.inputs) ? collection_1.ListWrapper.concat(dm.inputs, inputs) : inputs; + var mergedOutputs; + if (lang_1.isPresent(dm.outputs)) { + dm.outputs.forEach(function(propName) { + if (collection_1.ListWrapper.contains(outputs, propName)) { + throw new exceptions_1.BaseException("Output event '" + propName + "' defined multiple times in '" + lang_1.stringify(directiveType) + "'"); + } + }); + mergedOutputs = collection_1.ListWrapper.concat(dm.outputs, outputs); + } else { + mergedOutputs = outputs; + } + var mergedHost = lang_1.isPresent(dm.host) ? collection_1.StringMapWrapper.merge(dm.host, host) : host; + var mergedQueries = lang_1.isPresent(dm.queries) ? collection_1.StringMapWrapper.merge(dm.queries, queries) : queries; + if (dm instanceof metadata_1.ComponentMetadata) { + return new metadata_1.ComponentMetadata({ + selector: dm.selector, + inputs: mergedInputs, + outputs: mergedOutputs, + host: mergedHost, + exportAs: dm.exportAs, + moduleId: dm.moduleId, + queries: mergedQueries, + changeDetection: dm.changeDetection, + providers: dm.providers, + viewProviders: dm.viewProviders + }); + } else { + return new metadata_1.DirectiveMetadata({ + selector: dm.selector, + inputs: mergedInputs, + outputs: mergedOutputs, + host: mergedHost, + exportAs: dm.exportAs, + queries: mergedQueries, + providers: dm.providers + }); + } + }; + DirectiveResolver = __decorate([di_1.Injectable(), __metadata('design:paramtypes', [])], DirectiveResolver); + return DirectiveResolver; + })(); + exports.DirectiveResolver = DirectiveResolver; + exports.CODEGEN_DIRECTIVE_RESOLVER = new DirectiveResolver(); + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("7d", ["2b", "37"], true, function($__require, exports, module) { + ; + var global = this, + __define = global.define; + global.define = undefined; + (function(process) { + 'use strict'; + var __decorate = (this && this.__decorate) || function(decorators, target, key, desc) { + var c = arguments.length, + r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, + d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") + r = Reflect.decorate(decorators, target, key, desc); + else + for (var i = decorators.length - 1; i >= 0; i--) + if (d = decorators[i]) + r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; + var __metadata = (this && this.__metadata) || function(k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") + return Reflect.metadata(k, v); + }; + var lang_1 = $__require('2b'); + (function(ViewEncapsulation) { + ViewEncapsulation[ViewEncapsulation["Emulated"] = 0] = "Emulated"; + ViewEncapsulation[ViewEncapsulation["Native"] = 1] = "Native"; + ViewEncapsulation[ViewEncapsulation["None"] = 2] = "None"; + })(exports.ViewEncapsulation || (exports.ViewEncapsulation = {})); + var ViewEncapsulation = exports.ViewEncapsulation; + exports.VIEW_ENCAPSULATION_VALUES = [ViewEncapsulation.Emulated, ViewEncapsulation.Native, ViewEncapsulation.None]; + var ViewMetadata = (function() { + function ViewMetadata(_a) { + var _b = _a === void 0 ? {} : _a, + templateUrl = _b.templateUrl, + template = _b.template, + directives = _b.directives, + pipes = _b.pipes, + encapsulation = _b.encapsulation, + styles = _b.styles, + styleUrls = _b.styleUrls; + this.templateUrl = templateUrl; + this.template = template; + this.styleUrls = styleUrls; + this.styles = styles; + this.directives = directives; + this.pipes = pipes; + this.encapsulation = encapsulation; + } + ViewMetadata = __decorate([lang_1.CONST(), __metadata('design:paramtypes', [Object])], ViewMetadata); + return ViewMetadata; + })(); + exports.ViewMetadata = ViewMetadata; + })($__require('37')); + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("52", ["1c6", "80", "7d", "1b5"], true, function($__require, exports, module) { + "use strict"; + ; + var global = this, + __define = global.define; + global.define = undefined; + var di_1 = $__require('1c6'); + exports.QueryMetadata = di_1.QueryMetadata; + exports.ContentChildrenMetadata = di_1.ContentChildrenMetadata; + exports.ContentChildMetadata = di_1.ContentChildMetadata; + exports.ViewChildrenMetadata = di_1.ViewChildrenMetadata; + exports.ViewQueryMetadata = di_1.ViewQueryMetadata; + exports.ViewChildMetadata = di_1.ViewChildMetadata; + exports.AttributeMetadata = di_1.AttributeMetadata; + var directives_1 = $__require('80'); + exports.ComponentMetadata = directives_1.ComponentMetadata; + exports.DirectiveMetadata = directives_1.DirectiveMetadata; + exports.PipeMetadata = directives_1.PipeMetadata; + exports.InputMetadata = directives_1.InputMetadata; + exports.OutputMetadata = directives_1.OutputMetadata; + exports.HostBindingMetadata = directives_1.HostBindingMetadata; + exports.HostListenerMetadata = directives_1.HostListenerMetadata; + var view_1 = $__require('7d'); + exports.ViewMetadata = view_1.ViewMetadata; + exports.ViewEncapsulation = view_1.ViewEncapsulation; + var di_2 = $__require('1c6'); + var directives_2 = $__require('80'); + var view_2 = $__require('7d'); + var decorators_1 = $__require('1b5'); + exports.Component = decorators_1.makeDecorator(directives_2.ComponentMetadata, function(fn) { + return fn.View = exports.View; + }); + exports.Directive = decorators_1.makeDecorator(directives_2.DirectiveMetadata); + exports.View = decorators_1.makeDecorator(view_2.ViewMetadata, function(fn) { + return fn.View = exports.View; + }); + exports.Attribute = decorators_1.makeParamDecorator(di_2.AttributeMetadata); + exports.Query = decorators_1.makeParamDecorator(di_2.QueryMetadata); + exports.ContentChildren = decorators_1.makePropDecorator(di_2.ContentChildrenMetadata); + exports.ContentChild = decorators_1.makePropDecorator(di_2.ContentChildMetadata); + exports.ViewChildren = decorators_1.makePropDecorator(di_2.ViewChildrenMetadata); + exports.ViewChild = decorators_1.makePropDecorator(di_2.ViewChildMetadata); + exports.ViewQuery = decorators_1.makeParamDecorator(di_2.ViewQueryMetadata); + exports.Pipe = decorators_1.makeDecorator(directives_2.PipeMetadata); + exports.Input = decorators_1.makePropDecorator(directives_2.InputMetadata); + exports.Output = decorators_1.makePropDecorator(directives_2.OutputMetadata); + exports.HostBinding = decorators_1.makePropDecorator(directives_2.HostBindingMetadata); + exports.HostListener = decorators_1.makePropDecorator(directives_2.HostListenerMetadata); + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("82", ["3c", "2b", "3f", "52", "84"], true, function($__require, exports, module) { + "use strict"; + ; + var global = this, + __define = global.define; + global.define = undefined; + var __decorate = (this && this.__decorate) || function(decorators, target, key, desc) { + var c = arguments.length, + r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, + d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") + r = Reflect.decorate(decorators, target, key, desc); + else + for (var i = decorators.length - 1; i >= 0; i--) + if (d = decorators[i]) + r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; + var __metadata = (this && this.__metadata) || function(k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") + return Reflect.metadata(k, v); + }; + var di_1 = $__require('3c'); + var lang_1 = $__require('2b'); + var exceptions_1 = $__require('3f'); + var metadata_1 = $__require('52'); + var reflection_1 = $__require('84'); function _isPipeMetadata(type) { return type instanceof metadata_1.PipeMetadata; } @@ -46866,225 +42882,12 @@ $__System.registerDynamic("1f3", ["3d", "22", "40", "54", "85"], true, function( return PipeResolver; })(); exports.PipeResolver = PipeResolver; + exports.CODEGEN_PIPE_RESOLVER = new PipeResolver(); global.define = __define; return module.exports; }); -$__System.registerDynamic("86", ["3d", "22"], true, function($__require, exports, module) { - "use strict"; - ; - var global = this, - __define = global.define; - global.define = undefined; - var di_1 = $__require('3d'); - var lang_1 = $__require('22'); - exports.PLATFORM_DIRECTIVES = lang_1.CONST_EXPR(new di_1.OpaqueToken("Platform Directives")); - exports.PLATFORM_PIPES = lang_1.CONST_EXPR(new di_1.OpaqueToken("Platform Pipes")); - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("5a", ["40"], true, function($__require, exports, module) { - "use strict"; - ; - var global = this, - __define = global.define; - global.define = undefined; - var __extends = (this && this.__extends) || function(d, b) { - for (var p in b) - if (b.hasOwnProperty(p)) - d[p] = b[p]; - function __() { - this.constructor = d; - } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; - var exceptions_1 = $__require('40'); - var RenderProtoViewRef = (function() { - function RenderProtoViewRef() {} - return RenderProtoViewRef; - })(); - exports.RenderProtoViewRef = RenderProtoViewRef; - var RenderFragmentRef = (function() { - function RenderFragmentRef() {} - return RenderFragmentRef; - })(); - exports.RenderFragmentRef = RenderFragmentRef; - var RenderViewRef = (function() { - function RenderViewRef() {} - return RenderViewRef; - })(); - exports.RenderViewRef = RenderViewRef; - var RenderTemplateCmd = (function() { - function RenderTemplateCmd() {} - return RenderTemplateCmd; - })(); - exports.RenderTemplateCmd = RenderTemplateCmd; - var RenderBeginCmd = (function(_super) { - __extends(RenderBeginCmd, _super); - function RenderBeginCmd() { - _super.apply(this, arguments); - } - Object.defineProperty(RenderBeginCmd.prototype, "ngContentIndex", { - get: function() { - return exceptions_1.unimplemented(); - }, - enumerable: true, - configurable: true - }); - ; - Object.defineProperty(RenderBeginCmd.prototype, "isBound", { - get: function() { - return exceptions_1.unimplemented(); - }, - enumerable: true, - configurable: true - }); - ; - return RenderBeginCmd; - })(RenderTemplateCmd); - exports.RenderBeginCmd = RenderBeginCmd; - var RenderTextCmd = (function(_super) { - __extends(RenderTextCmd, _super); - function RenderTextCmd() { - _super.apply(this, arguments); - } - Object.defineProperty(RenderTextCmd.prototype, "value", { - get: function() { - return exceptions_1.unimplemented(); - }, - enumerable: true, - configurable: true - }); - ; - return RenderTextCmd; - })(RenderBeginCmd); - exports.RenderTextCmd = RenderTextCmd; - var RenderNgContentCmd = (function(_super) { - __extends(RenderNgContentCmd, _super); - function RenderNgContentCmd() { - _super.apply(this, arguments); - } - Object.defineProperty(RenderNgContentCmd.prototype, "index", { - get: function() { - return exceptions_1.unimplemented(); - }, - enumerable: true, - configurable: true - }); - ; - Object.defineProperty(RenderNgContentCmd.prototype, "ngContentIndex", { - get: function() { - return exceptions_1.unimplemented(); - }, - enumerable: true, - configurable: true - }); - ; - return RenderNgContentCmd; - })(RenderTemplateCmd); - exports.RenderNgContentCmd = RenderNgContentCmd; - var RenderBeginElementCmd = (function(_super) { - __extends(RenderBeginElementCmd, _super); - function RenderBeginElementCmd() { - _super.apply(this, arguments); - } - Object.defineProperty(RenderBeginElementCmd.prototype, "name", { - get: function() { - return exceptions_1.unimplemented(); - }, - enumerable: true, - configurable: true - }); - ; - Object.defineProperty(RenderBeginElementCmd.prototype, "attrNameAndValues", { - get: function() { - return exceptions_1.unimplemented(); - }, - enumerable: true, - configurable: true - }); - ; - Object.defineProperty(RenderBeginElementCmd.prototype, "eventTargetAndNames", { - get: function() { - return exceptions_1.unimplemented(); - }, - enumerable: true, - configurable: true - }); - ; - return RenderBeginElementCmd; - })(RenderBeginCmd); - exports.RenderBeginElementCmd = RenderBeginElementCmd; - var RenderBeginComponentCmd = (function(_super) { - __extends(RenderBeginComponentCmd, _super); - function RenderBeginComponentCmd() { - _super.apply(this, arguments); - } - Object.defineProperty(RenderBeginComponentCmd.prototype, "templateId", { - get: function() { - return exceptions_1.unimplemented(); - }, - enumerable: true, - configurable: true - }); - ; - return RenderBeginComponentCmd; - })(RenderBeginElementCmd); - exports.RenderBeginComponentCmd = RenderBeginComponentCmd; - var RenderEmbeddedTemplateCmd = (function(_super) { - __extends(RenderEmbeddedTemplateCmd, _super); - function RenderEmbeddedTemplateCmd() { - _super.apply(this, arguments); - } - Object.defineProperty(RenderEmbeddedTemplateCmd.prototype, "isMerged", { - get: function() { - return exceptions_1.unimplemented(); - }, - enumerable: true, - configurable: true - }); - ; - Object.defineProperty(RenderEmbeddedTemplateCmd.prototype, "children", { - get: function() { - return exceptions_1.unimplemented(); - }, - enumerable: true, - configurable: true - }); - ; - return RenderEmbeddedTemplateCmd; - })(RenderBeginElementCmd); - exports.RenderEmbeddedTemplateCmd = RenderEmbeddedTemplateCmd; - var RenderViewWithFragments = (function() { - function RenderViewWithFragments(viewRef, fragmentRefs) { - this.viewRef = viewRef; - this.fragmentRefs = fragmentRefs; - } - return RenderViewWithFragments; - })(); - exports.RenderViewWithFragments = RenderViewWithFragments; - var RenderComponentTemplate = (function() { - function RenderComponentTemplate(id, shortId, encapsulation, commands, styles) { - this.id = id; - this.shortId = shortId; - this.encapsulation = encapsulation; - this.commands = commands; - this.styles = styles; - } - return RenderComponentTemplate; - })(); - exports.RenderComponentTemplate = RenderComponentTemplate; - var Renderer = (function() { - function Renderer() {} - return Renderer; - })(); - exports.Renderer = Renderer; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("1f2", ["22", "3d", "1f4"], true, function($__require, exports, module) { +$__System.registerDynamic("5f", ["3c", "2b", "3f", "62", "84", "6d", "60"], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -47115,9 +42918,592 @@ $__System.registerDynamic("1f2", ["22", "3d", "1f4"], true, function($__require, if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; - var lang_1 = $__require('22'); - var di_1 = $__require('3d'); - var metadata_1 = $__require('1f4'); + var di_1 = $__require('3c'); + var lang_1 = $__require('2b'); + var exceptions_1 = $__require('3f'); + var async_1 = $__require('62'); + var reflection_1 = $__require('84'); + var view_1 = $__require('6d'); + var view_ref_1 = $__require('60'); + var Compiler = (function() { + function Compiler() {} + return Compiler; + })(); + exports.Compiler = Compiler; + function isHostViewFactory(type) { + return type instanceof view_1.HostViewFactory; + } + var Compiler_ = (function(_super) { + __extends(Compiler_, _super); + function Compiler_() { + _super.apply(this, arguments); + } + Compiler_.prototype.compileInHost = function(componentType) { + var metadatas = reflection_1.reflector.annotations(componentType); + var hostViewFactory = metadatas.find(isHostViewFactory); + if (lang_1.isBlank(hostViewFactory)) { + throw new exceptions_1.BaseException("No precompiled component " + lang_1.stringify(componentType) + " found"); + } + return async_1.PromiseWrapper.resolve(new view_ref_1.HostViewFactoryRef_(hostViewFactory)); + }; + Compiler_.prototype.clearCache = function() {}; + Compiler_ = __decorate([di_1.Injectable(), __metadata('design:paramtypes', [])], Compiler_); + return Compiler_; + })(Compiler); + exports.Compiler_ = Compiler_; + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("60", ["3f"], true, function($__require, exports, module) { + "use strict"; + ; + var global = this, + __define = global.define; + global.define = undefined; + var __extends = (this && this.__extends) || function(d, b) { + for (var p in b) + if (b.hasOwnProperty(p)) + d[p] = b[p]; + function __() { + this.constructor = d; + } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; + var exceptions_1 = $__require('3f'); + var ViewRef = (function() { + function ViewRef() {} + Object.defineProperty(ViewRef.prototype, "changeDetectorRef", { + get: function() { + return exceptions_1.unimplemented(); + }, + enumerable: true, + configurable: true + }); + ; + Object.defineProperty(ViewRef.prototype, "destroyed", { + get: function() { + return exceptions_1.unimplemented(); + }, + enumerable: true, + configurable: true + }); + return ViewRef; + })(); + exports.ViewRef = ViewRef; + var HostViewRef = (function(_super) { + __extends(HostViewRef, _super); + function HostViewRef() { + _super.apply(this, arguments); + } + Object.defineProperty(HostViewRef.prototype, "rootNodes", { + get: function() { + return exceptions_1.unimplemented(); + }, + enumerable: true, + configurable: true + }); + ; + return HostViewRef; + })(ViewRef); + exports.HostViewRef = HostViewRef; + var EmbeddedViewRef = (function(_super) { + __extends(EmbeddedViewRef, _super); + function EmbeddedViewRef() { + _super.apply(this, arguments); + } + Object.defineProperty(EmbeddedViewRef.prototype, "rootNodes", { + get: function() { + return exceptions_1.unimplemented(); + }, + enumerable: true, + configurable: true + }); + ; + return EmbeddedViewRef; + })(ViewRef); + exports.EmbeddedViewRef = EmbeddedViewRef; + var ViewRef_ = (function() { + function ViewRef_(_view) { + this._view = _view; + this._view = _view; + } + Object.defineProperty(ViewRef_.prototype, "internalView", { + get: function() { + return this._view; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(ViewRef_.prototype, "changeDetectorRef", { + get: function() { + return this._view.changeDetector.ref; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(ViewRef_.prototype, "rootNodes", { + get: function() { + return this._view.flatRootNodes; + }, + enumerable: true, + configurable: true + }); + ViewRef_.prototype.setLocal = function(variableName, value) { + this._view.setLocal(variableName, value); + }; + ViewRef_.prototype.hasLocal = function(variableName) { + return this._view.hasLocal(variableName); + }; + Object.defineProperty(ViewRef_.prototype, "destroyed", { + get: function() { + return this._view.destroyed; + }, + enumerable: true, + configurable: true + }); + return ViewRef_; + })(); + exports.ViewRef_ = ViewRef_; + var HostViewFactoryRef = (function() { + function HostViewFactoryRef() {} + return HostViewFactoryRef; + })(); + exports.HostViewFactoryRef = HostViewFactoryRef; + var HostViewFactoryRef_ = (function() { + function HostViewFactoryRef_(_hostViewFactory) { + this._hostViewFactory = _hostViewFactory; + } + Object.defineProperty(HostViewFactoryRef_.prototype, "internalHostViewFactory", { + get: function() { + return this._hostViewFactory; + }, + enumerable: true, + configurable: true + }); + return HostViewFactoryRef_; + })(); + exports.HostViewFactoryRef_ = HostViewFactoryRef_; + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("1c7", [], true, function($__require, exports, module) { + "use strict"; + ; + var global = this, + __define = global.define; + global.define = undefined; + var SelectedPipe = (function() { + function SelectedPipe(pipe, pure) { + this.pipe = pipe; + this.pure = pure; + } + return SelectedPipe; + })(); + exports.SelectedPipe = SelectedPipe; + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("1c8", ["2b", "3f", "3a", "1c7"], true, function($__require, exports, module) { + "use strict"; + ; + var global = this, + __define = global.define; + global.define = undefined; + var lang_1 = $__require('2b'); + var exceptions_1 = $__require('3f'); + var collection_1 = $__require('3a'); + var cd = $__require('1c7'); + var ProtoPipes = (function() { + function ProtoPipes(config) { + this.config = config; + this.config = config; + } + ProtoPipes.fromProviders = function(providers) { + var config = {}; + providers.forEach(function(b) { + return config[b.name] = b; + }); + return new ProtoPipes(config); + }; + ProtoPipes.prototype.get = function(name) { + var provider = this.config[name]; + if (lang_1.isBlank(provider)) + throw new exceptions_1.BaseException("Cannot find pipe '" + name + "'."); + return provider; + }; + return ProtoPipes; + })(); + exports.ProtoPipes = ProtoPipes; + var Pipes = (function() { + function Pipes(proto, injector) { + this.proto = proto; + this.injector = injector; + this._config = {}; + } + Pipes.prototype.get = function(name) { + var cached = collection_1.StringMapWrapper.get(this._config, name); + if (lang_1.isPresent(cached)) + return cached; + var p = this.proto.get(name); + var transform = this.injector.instantiateResolved(p); + var res = new cd.SelectedPipe(transform, p.pure); + if (p.pure) { + collection_1.StringMapWrapper.set(this._config, name, res); + } + return res; + }; + return Pipes; + })(); + exports.Pipes = Pipes; + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("1c9", ["2b"], true, function($__require, exports, module) { + "use strict"; + ; + var global = this, + __define = global.define; + global.define = undefined; + var lang_1 = $__require('2b'); + var CAMEL_CASE_REGEXP = /([A-Z])/g; + var DASH_CASE_REGEXP = /-([a-z])/g; + function camelCaseToDashCase(input) { + return lang_1.StringWrapper.replaceAllMapped(input, CAMEL_CASE_REGEXP, function(m) { + return '-' + m[1].toLowerCase(); + }); + } + exports.camelCaseToDashCase = camelCaseToDashCase; + function dashCaseToCamelCase(input) { + return lang_1.StringWrapper.replaceAllMapped(input, DASH_CASE_REGEXP, function(m) { + return m[1].toUpperCase(); + }); + } + exports.dashCaseToCamelCase = dashCaseToCamelCase; + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("6d", ["3a", "6e", "1ca", "8e", "2b", "3f", "1bd", "60", "1c8", "1c9", "8d"], true, function($__require, exports, module) { + "use strict"; + ; + var global = this, + __define = global.define; + global.define = undefined; + var __decorate = (this && this.__decorate) || function(decorators, target, key, desc) { + var c = arguments.length, + r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, + d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") + r = Reflect.decorate(decorators, target, key, desc); + else + for (var i = decorators.length - 1; i >= 0; i--) + if (d = decorators[i]) + r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; + var __metadata = (this && this.__metadata) || function(k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") + return Reflect.metadata(k, v); + }; + var collection_1 = $__require('3a'); + var change_detection_1 = $__require('6e'); + var interfaces_1 = $__require('1ca'); + var element_1 = $__require('8e'); + var lang_1 = $__require('2b'); + var exceptions_1 = $__require('3f'); + var api_1 = $__require('1bd'); + var view_ref_1 = $__require('60'); + var pipes_1 = $__require('1c8'); + var util_1 = $__require('1c9'); + var interfaces_2 = $__require('1ca'); + exports.DebugContext = interfaces_2.DebugContext; + var pipes_2 = $__require('1c8'); + var view_type_1 = $__require('8d'); + var REFLECT_PREFIX = 'ng-reflect-'; + var EMPTY_CONTEXT = lang_1.CONST_EXPR(new Object()); + var AppView = (function() { + function AppView(proto, renderer, viewManager, projectableNodes, containerAppElement, imperativelyCreatedProviders, rootInjector, changeDetector) { + this.proto = proto; + this.renderer = renderer; + this.viewManager = viewManager; + this.projectableNodes = projectableNodes; + this.containerAppElement = containerAppElement; + this.changeDetector = changeDetector; + this.context = null; + this.destroyed = false; + this.ref = new view_ref_1.ViewRef_(this); + var injectorWithHostBoundary = element_1.AppElement.getViewParentInjector(this.proto.type, containerAppElement, imperativelyCreatedProviders, rootInjector); + this.parentInjector = injectorWithHostBoundary.injector; + this.hostInjectorBoundary = injectorWithHostBoundary.hostInjectorBoundary; + var pipes; + var context; + switch (proto.type) { + case view_type_1.ViewType.COMPONENT: + pipes = new pipes_2.Pipes(proto.protoPipes, containerAppElement.getInjector()); + context = containerAppElement.getComponent(); + break; + case view_type_1.ViewType.EMBEDDED: + pipes = containerAppElement.parentView.pipes; + context = containerAppElement.parentView.context; + break; + case view_type_1.ViewType.HOST: + pipes = null; + context = EMPTY_CONTEXT; + break; + } + this.pipes = pipes; + this.context = context; + } + AppView.prototype.init = function(rootNodesOrAppElements, allNodes, disposables, appElements) { + this.rootNodesOrAppElements = rootNodesOrAppElements; + this.allNodes = allNodes; + this.disposables = disposables; + this.appElements = appElements; + var localsMap = new collection_1.Map(); + collection_1.StringMapWrapper.forEach(this.proto.templateVariableBindings, function(templateName, _) { + localsMap.set(templateName, null); + }); + for (var i = 0; i < appElements.length; i++) { + var appEl = appElements[i]; + var providerTokens = []; + if (lang_1.isPresent(appEl.proto.protoInjector)) { + for (var j = 0; j < appEl.proto.protoInjector.numberOfProviders; j++) { + providerTokens.push(appEl.proto.protoInjector.getProviderAtIndex(j).key.token); + } + } + collection_1.StringMapWrapper.forEach(appEl.proto.directiveVariableBindings, function(directiveIndex, name) { + if (lang_1.isBlank(directiveIndex)) { + localsMap.set(name, appEl.nativeElement); + } else { + localsMap.set(name, appEl.getDirectiveAtIndex(directiveIndex)); + } + }); + this.renderer.setElementDebugInfo(appEl.nativeElement, new api_1.RenderDebugInfo(appEl.getInjector(), appEl.getComponent(), providerTokens, localsMap)); + } + var parentLocals = null; + if (this.proto.type !== view_type_1.ViewType.COMPONENT) { + parentLocals = lang_1.isPresent(this.containerAppElement) ? this.containerAppElement.parentView.locals : null; + } + if (this.proto.type === view_type_1.ViewType.COMPONENT) { + this.containerAppElement.attachComponentView(this); + this.containerAppElement.parentView.changeDetector.addViewChild(this.changeDetector); + } + this.locals = new change_detection_1.Locals(parentLocals, localsMap); + this.changeDetector.hydrate(this.context, this.locals, this, this.pipes); + this.viewManager.onViewCreated(this); + }; + AppView.prototype.destroy = function() { + if (this.destroyed) { + throw new exceptions_1.BaseException('This view has already been destroyed!'); + } + this.changeDetector.destroyRecursive(); + }; + AppView.prototype.notifyOnDestroy = function() { + this.destroyed = true; + var hostElement = this.proto.type === view_type_1.ViewType.COMPONENT ? this.containerAppElement.nativeElement : null; + this.renderer.destroyView(hostElement, this.allNodes); + for (var i = 0; i < this.disposables.length; i++) { + this.disposables[i](); + } + this.viewManager.onViewDestroyed(this); + }; + Object.defineProperty(AppView.prototype, "changeDetectorRef", { + get: function() { + return this.changeDetector.ref; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(AppView.prototype, "flatRootNodes", { + get: function() { + return flattenNestedViewRenderNodes(this.rootNodesOrAppElements); + }, + enumerable: true, + configurable: true + }); + AppView.prototype.hasLocal = function(contextName) { + return collection_1.StringMapWrapper.contains(this.proto.templateVariableBindings, contextName); + }; + AppView.prototype.setLocal = function(contextName, value) { + if (!this.hasLocal(contextName)) { + return; + } + var templateName = this.proto.templateVariableBindings[contextName]; + this.locals.set(templateName, value); + }; + AppView.prototype.notifyOnBinding = function(b, currentValue) { + if (b.isTextNode()) { + this.renderer.setText(this.allNodes[b.elementIndex], currentValue); + } else { + var nativeElement = this.appElements[b.elementIndex].nativeElement; + if (b.isElementProperty()) { + this.renderer.setElementProperty(nativeElement, b.name, currentValue); + } else if (b.isElementAttribute()) { + this.renderer.setElementAttribute(nativeElement, b.name, lang_1.isPresent(currentValue) ? "" + currentValue : null); + } else if (b.isElementClass()) { + this.renderer.setElementClass(nativeElement, b.name, currentValue); + } else if (b.isElementStyle()) { + var unit = lang_1.isPresent(b.unit) ? b.unit : ''; + this.renderer.setElementStyle(nativeElement, b.name, lang_1.isPresent(currentValue) ? "" + currentValue + unit : null); + } else { + throw new exceptions_1.BaseException('Unsupported directive record'); + } + } + }; + AppView.prototype.logBindingUpdate = function(b, value) { + if (b.isDirective() || b.isElementProperty()) { + var nativeElement = this.appElements[b.elementIndex].nativeElement; + this.renderer.setBindingDebugInfo(nativeElement, "" + REFLECT_PREFIX + util_1.camelCaseToDashCase(b.name), "" + value); + } + }; + AppView.prototype.notifyAfterContentChecked = function() { + var count = this.appElements.length; + for (var i = count - 1; i >= 0; i--) { + this.appElements[i].ngAfterContentChecked(); + } + }; + AppView.prototype.notifyAfterViewChecked = function() { + var count = this.appElements.length; + for (var i = count - 1; i >= 0; i--) { + this.appElements[i].ngAfterViewChecked(); + } + }; + AppView.prototype.getDebugContext = function(appElement, elementIndex, directiveIndex) { + try { + if (lang_1.isBlank(appElement) && elementIndex < this.appElements.length) { + appElement = this.appElements[elementIndex]; + } + var container = this.containerAppElement; + var element = lang_1.isPresent(appElement) ? appElement.nativeElement : null; + var componentElement = lang_1.isPresent(container) ? container.nativeElement : null; + var directive = lang_1.isPresent(directiveIndex) ? appElement.getDirectiveAtIndex(directiveIndex) : null; + var injector = lang_1.isPresent(appElement) ? appElement.getInjector() : null; + return new interfaces_1.DebugContext(element, componentElement, directive, this.context, _localsToStringMap(this.locals), injector); + } catch (e) { + return null; + } + }; + AppView.prototype.getDirectiveFor = function(directive) { + return this.appElements[directive.elementIndex].getDirectiveAtIndex(directive.directiveIndex); + }; + AppView.prototype.getDetectorFor = function(directive) { + var componentView = this.appElements[directive.elementIndex].componentView; + return lang_1.isPresent(componentView) ? componentView.changeDetector : null; + }; + AppView.prototype.triggerEventHandlers = function(eventName, eventObj, boundElementIndex) { + return this.changeDetector.handleEvent(eventName, boundElementIndex, eventObj); + }; + return AppView; + })(); + exports.AppView = AppView; + function _localsToStringMap(locals) { + var res = {}; + var c = locals; + while (lang_1.isPresent(c)) { + res = collection_1.StringMapWrapper.merge(res, collection_1.MapWrapper.toStringMap(c.current)); + c = c.parent; + } + return res; + } + var AppProtoView = (function() { + function AppProtoView(type, protoPipes, templateVariableBindings) { + this.type = type; + this.protoPipes = protoPipes; + this.templateVariableBindings = templateVariableBindings; + } + AppProtoView.create = function(metadataCache, type, pipes, templateVariableBindings) { + var protoPipes = null; + if (lang_1.isPresent(pipes) && pipes.length > 0) { + var boundPipes = collection_1.ListWrapper.createFixedSize(pipes.length); + for (var i = 0; i < pipes.length; i++) { + boundPipes[i] = metadataCache.getResolvedPipeMetadata(pipes[i]); + } + protoPipes = pipes_1.ProtoPipes.fromProviders(boundPipes); + } + return new AppProtoView(type, protoPipes, templateVariableBindings); + }; + return AppProtoView; + })(); + exports.AppProtoView = AppProtoView; + var HostViewFactory = (function() { + function HostViewFactory(selector, viewFactory) { + this.selector = selector; + this.viewFactory = viewFactory; + } + HostViewFactory = __decorate([lang_1.CONST(), __metadata('design:paramtypes', [String, Function])], HostViewFactory); + return HostViewFactory; + })(); + exports.HostViewFactory = HostViewFactory; + function flattenNestedViewRenderNodes(nodes) { + return _flattenNestedViewRenderNodes(nodes, []); + } + exports.flattenNestedViewRenderNodes = flattenNestedViewRenderNodes; + function _flattenNestedViewRenderNodes(nodes, renderNodes) { + for (var i = 0; i < nodes.length; i++) { + var node = nodes[i]; + if (node instanceof element_1.AppElement) { + var appEl = node; + renderNodes.push(appEl.nativeElement); + if (lang_1.isPresent(appEl.nestedViews)) { + for (var k = 0; k < appEl.nestedViews.length; k++) { + _flattenNestedViewRenderNodes(appEl.nestedViews[k].rootNodesOrAppElements, renderNodes); + } + } + } else { + renderNodes.push(node); + } + } + return renderNodes; + } + function checkSlotCount(componentName, expectedSlotCount, projectableNodes) { + var givenSlotCount = lang_1.isPresent(projectableNodes) ? projectableNodes.length : 0; + if (givenSlotCount < expectedSlotCount) { + throw new exceptions_1.BaseException(("The component " + componentName + " has " + expectedSlotCount + " elements,") + (" but only " + givenSlotCount + " slots were provided.")); + } + } + exports.checkSlotCount = checkSlotCount; + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("1c6", ["2b", "3c", "1cb"], true, function($__require, exports, module) { + "use strict"; + ; + var global = this, + __define = global.define; + global.define = undefined; + var __extends = (this && this.__extends) || function(d, b) { + for (var p in b) + if (b.hasOwnProperty(p)) + d[p] = b[p]; + function __() { + this.constructor = d; + } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; + var __decorate = (this && this.__decorate) || function(decorators, target, key, desc) { + var c = arguments.length, + r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, + d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") + r = Reflect.decorate(decorators, target, key, desc); + else + for (var i = decorators.length - 1; i >= 0; i--) + if (d = decorators[i]) + r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; + var __metadata = (this && this.__metadata) || function(k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") + return Reflect.metadata(k, v); + }; + var lang_1 = $__require('2b'); + var di_1 = $__require('3c'); + var metadata_1 = $__require('1cb'); var AttributeMetadata = (function(_super) { __extends(AttributeMetadata, _super); function AttributeMetadata(attributeName) { @@ -47261,7 +43647,476 @@ $__System.registerDynamic("1f2", ["22", "3d", "1f4"], true, function($__require, return module.exports; }); -$__System.registerDynamic("1f5", ["22", "40", "3b", "3d"], true, function($__require, exports, module) { +$__System.registerDynamic("1c1", ["3f"], true, function($__require, exports, module) { + "use strict"; + ; + var global = this, + __define = global.define; + global.define = undefined; + var exceptions_1 = $__require('3f'); + var ElementRef = (function() { + function ElementRef() {} + Object.defineProperty(ElementRef.prototype, "nativeElement", { + get: function() { + return exceptions_1.unimplemented(); + }, + enumerable: true, + configurable: true + }); + return ElementRef; + })(); + exports.ElementRef = ElementRef; + var ElementRef_ = (function() { + function ElementRef_(_appElement) { + this._appElement = _appElement; + } + Object.defineProperty(ElementRef_.prototype, "internalElement", { + get: function() { + return this._appElement; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(ElementRef_.prototype, "nativeElement", { + get: function() { + return this._appElement.nativeElement; + }, + enumerable: true, + configurable: true + }); + return ElementRef_; + })(); + exports.ElementRef_ = ElementRef_; + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("1c3", ["3a", "3f", "2b"], true, function($__require, exports, module) { + "use strict"; + ; + var global = this, + __define = global.define; + global.define = undefined; + var __extends = (this && this.__extends) || function(d, b) { + for (var p in b) + if (b.hasOwnProperty(p)) + d[p] = b[p]; + function __() { + this.constructor = d; + } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; + var collection_1 = $__require('3a'); + var exceptions_1 = $__require('3f'); + var lang_1 = $__require('2b'); + var ViewContainerRef = (function() { + function ViewContainerRef() {} + Object.defineProperty(ViewContainerRef.prototype, "element", { + get: function() { + return exceptions_1.unimplemented(); + }, + enumerable: true, + configurable: true + }); + ViewContainerRef.prototype.clear = function() { + for (var i = this.length - 1; i >= 0; i--) { + this.remove(i); + } + }; + Object.defineProperty(ViewContainerRef.prototype, "length", { + get: function() { + return exceptions_1.unimplemented(); + }, + enumerable: true, + configurable: true + }); + ; + return ViewContainerRef; + })(); + exports.ViewContainerRef = ViewContainerRef; + var ViewContainerRef_ = (function(_super) { + __extends(ViewContainerRef_, _super); + function ViewContainerRef_(_element) { + _super.call(this); + this._element = _element; + } + ViewContainerRef_.prototype.get = function(index) { + return this._element.nestedViews[index].ref; + }; + Object.defineProperty(ViewContainerRef_.prototype, "length", { + get: function() { + var views = this._element.nestedViews; + return lang_1.isPresent(views) ? views.length : 0; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(ViewContainerRef_.prototype, "element", { + get: function() { + return this._element.ref; + }, + enumerable: true, + configurable: true + }); + ViewContainerRef_.prototype.createEmbeddedView = function(templateRef, index) { + if (index === void 0) { + index = -1; + } + if (index == -1) + index = this.length; + var vm = this._element.parentView.viewManager; + return vm.createEmbeddedViewInContainer(this._element.ref, index, templateRef); + }; + ViewContainerRef_.prototype.createHostView = function(hostViewFactoryRef, index, dynamicallyCreatedProviders, projectableNodes) { + if (index === void 0) { + index = -1; + } + if (dynamicallyCreatedProviders === void 0) { + dynamicallyCreatedProviders = null; + } + if (projectableNodes === void 0) { + projectableNodes = null; + } + if (index == -1) + index = this.length; + var vm = this._element.parentView.viewManager; + return vm.createHostViewInContainer(this._element.ref, index, hostViewFactoryRef, dynamicallyCreatedProviders, projectableNodes); + }; + ViewContainerRef_.prototype.insert = function(viewRef, index) { + if (index === void 0) { + index = -1; + } + if (index == -1) + index = this.length; + var vm = this._element.parentView.viewManager; + return vm.attachViewInContainer(this._element.ref, index, viewRef); + }; + ViewContainerRef_.prototype.indexOf = function(viewRef) { + return collection_1.ListWrapper.indexOf(this._element.nestedViews, viewRef.internalView); + }; + ViewContainerRef_.prototype.remove = function(index) { + if (index === void 0) { + index = -1; + } + if (index == -1) + index = this.length - 1; + var vm = this._element.parentView.viewManager; + return vm.destroyViewInContainer(this._element.ref, index); + }; + ViewContainerRef_.prototype.detach = function(index) { + if (index === void 0) { + index = -1; + } + if (index == -1) + index = this.length - 1; + var vm = this._element.parentView.viewManager; + return vm.detachViewInContainer(this._element.ref, index); + }; + return ViewContainerRef_; + })(ViewContainerRef); + exports.ViewContainerRef_ = ViewContainerRef_; + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("1c2", [], true, function($__require, exports, module) { + "use strict"; + ; + var global = this, + __define = global.define; + global.define = undefined; + var __extends = (this && this.__extends) || function(d, b) { + for (var p in b) + if (b.hasOwnProperty(p)) + d[p] = b[p]; + function __() { + this.constructor = d; + } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; + var TemplateRef = (function() { + function TemplateRef() {} + Object.defineProperty(TemplateRef.prototype, "elementRef", { + get: function() { + return null; + }, + enumerable: true, + configurable: true + }); + return TemplateRef; + })(); + exports.TemplateRef = TemplateRef; + var TemplateRef_ = (function(_super) { + __extends(TemplateRef_, _super); + function TemplateRef_(_elementRef) { + _super.call(this); + this._elementRef = _elementRef; + } + Object.defineProperty(TemplateRef_.prototype, "elementRef", { + get: function() { + return this._elementRef; + }, + enumerable: true, + configurable: true + }); + return TemplateRef_; + })(TemplateRef); + exports.TemplateRef_ = TemplateRef_; + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("1cc", ["6e"], true, function($__require, exports, module) { + "use strict"; + ; + var global = this, + __define = global.define; + global.define = undefined; + var change_detection_1 = $__require('6e'); + exports.ChangeDetectionStrategy = change_detection_1.ChangeDetectionStrategy; + exports.ExpressionChangedAfterItHasBeenCheckedException = change_detection_1.ExpressionChangedAfterItHasBeenCheckedException; + exports.ChangeDetectionError = change_detection_1.ChangeDetectionError; + exports.ChangeDetectorRef = change_detection_1.ChangeDetectorRef; + exports.WrappedValue = change_detection_1.WrappedValue; + exports.SimpleChange = change_detection_1.SimpleChange; + exports.IterableDiffers = change_detection_1.IterableDiffers; + exports.KeyValueDiffers = change_detection_1.KeyValueDiffers; + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("80", ["2b", "1cb", "1cc"], true, function($__require, exports, module) { + "use strict"; + ; + var global = this, + __define = global.define; + global.define = undefined; + var __extends = (this && this.__extends) || function(d, b) { + for (var p in b) + if (b.hasOwnProperty(p)) + d[p] = b[p]; + function __() { + this.constructor = d; + } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; + var __decorate = (this && this.__decorate) || function(decorators, target, key, desc) { + var c = arguments.length, + r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, + d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") + r = Reflect.decorate(decorators, target, key, desc); + else + for (var i = decorators.length - 1; i >= 0; i--) + if (d = decorators[i]) + r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; + var __metadata = (this && this.__metadata) || function(k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") + return Reflect.metadata(k, v); + }; + var lang_1 = $__require('2b'); + var metadata_1 = $__require('1cb'); + var change_detection_1 = $__require('1cc'); + var DirectiveMetadata = (function(_super) { + __extends(DirectiveMetadata, _super); + function DirectiveMetadata(_a) { + var _b = _a === void 0 ? {} : _a, + selector = _b.selector, + inputs = _b.inputs, + outputs = _b.outputs, + properties = _b.properties, + events = _b.events, + host = _b.host, + bindings = _b.bindings, + providers = _b.providers, + exportAs = _b.exportAs, + queries = _b.queries; + _super.call(this); + this.selector = selector; + this._inputs = inputs; + this._properties = properties; + this._outputs = outputs; + this._events = events; + this.host = host; + this.exportAs = exportAs; + this.queries = queries; + this._providers = providers; + this._bindings = bindings; + } + Object.defineProperty(DirectiveMetadata.prototype, "inputs", { + get: function() { + return lang_1.isPresent(this._properties) && this._properties.length > 0 ? this._properties : this._inputs; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(DirectiveMetadata.prototype, "properties", { + get: function() { + return this.inputs; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(DirectiveMetadata.prototype, "outputs", { + get: function() { + return lang_1.isPresent(this._events) && this._events.length > 0 ? this._events : this._outputs; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(DirectiveMetadata.prototype, "events", { + get: function() { + return this.outputs; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(DirectiveMetadata.prototype, "providers", { + get: function() { + return lang_1.isPresent(this._bindings) && this._bindings.length > 0 ? this._bindings : this._providers; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(DirectiveMetadata.prototype, "bindings", { + get: function() { + return this.providers; + }, + enumerable: true, + configurable: true + }); + DirectiveMetadata = __decorate([lang_1.CONST(), __metadata('design:paramtypes', [Object])], DirectiveMetadata); + return DirectiveMetadata; + })(metadata_1.InjectableMetadata); + exports.DirectiveMetadata = DirectiveMetadata; + var ComponentMetadata = (function(_super) { + __extends(ComponentMetadata, _super); + function ComponentMetadata(_a) { + var _b = _a === void 0 ? {} : _a, + selector = _b.selector, + inputs = _b.inputs, + outputs = _b.outputs, + properties = _b.properties, + events = _b.events, + host = _b.host, + exportAs = _b.exportAs, + moduleId = _b.moduleId, + bindings = _b.bindings, + providers = _b.providers, + viewBindings = _b.viewBindings, + viewProviders = _b.viewProviders, + _c = _b.changeDetection, + changeDetection = _c === void 0 ? change_detection_1.ChangeDetectionStrategy.Default : _c, + queries = _b.queries, + templateUrl = _b.templateUrl, + template = _b.template, + styleUrls = _b.styleUrls, + styles = _b.styles, + directives = _b.directives, + pipes = _b.pipes, + encapsulation = _b.encapsulation; + _super.call(this, { + selector: selector, + inputs: inputs, + outputs: outputs, + properties: properties, + events: events, + host: host, + exportAs: exportAs, + bindings: bindings, + providers: providers, + queries: queries + }); + this.changeDetection = changeDetection; + this._viewProviders = viewProviders; + this._viewBindings = viewBindings; + this.templateUrl = templateUrl; + this.template = template; + this.styleUrls = styleUrls; + this.styles = styles; + this.directives = directives; + this.pipes = pipes; + this.encapsulation = encapsulation; + this.moduleId = moduleId; + } + Object.defineProperty(ComponentMetadata.prototype, "viewProviders", { + get: function() { + return lang_1.isPresent(this._viewBindings) && this._viewBindings.length > 0 ? this._viewBindings : this._viewProviders; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(ComponentMetadata.prototype, "viewBindings", { + get: function() { + return this.viewProviders; + }, + enumerable: true, + configurable: true + }); + ComponentMetadata = __decorate([lang_1.CONST(), __metadata('design:paramtypes', [Object])], ComponentMetadata); + return ComponentMetadata; + })(DirectiveMetadata); + exports.ComponentMetadata = ComponentMetadata; + var PipeMetadata = (function(_super) { + __extends(PipeMetadata, _super); + function PipeMetadata(_a) { + var name = _a.name, + pure = _a.pure; + _super.call(this); + this.name = name; + this._pure = pure; + } + Object.defineProperty(PipeMetadata.prototype, "pure", { + get: function() { + return lang_1.isPresent(this._pure) ? this._pure : true; + }, + enumerable: true, + configurable: true + }); + PipeMetadata = __decorate([lang_1.CONST(), __metadata('design:paramtypes', [Object])], PipeMetadata); + return PipeMetadata; + })(metadata_1.InjectableMetadata); + exports.PipeMetadata = PipeMetadata; + var InputMetadata = (function() { + function InputMetadata(bindingPropertyName) { + this.bindingPropertyName = bindingPropertyName; + } + InputMetadata = __decorate([lang_1.CONST(), __metadata('design:paramtypes', [String])], InputMetadata); + return InputMetadata; + })(); + exports.InputMetadata = InputMetadata; + var OutputMetadata = (function() { + function OutputMetadata(bindingPropertyName) { + this.bindingPropertyName = bindingPropertyName; + } + OutputMetadata = __decorate([lang_1.CONST(), __metadata('design:paramtypes', [String])], OutputMetadata); + return OutputMetadata; + })(); + exports.OutputMetadata = OutputMetadata; + var HostBindingMetadata = (function() { + function HostBindingMetadata(hostPropertyName) { + this.hostPropertyName = hostPropertyName; + } + HostBindingMetadata = __decorate([lang_1.CONST(), __metadata('design:paramtypes', [String])], HostBindingMetadata); + return HostBindingMetadata; + })(); + exports.HostBindingMetadata = HostBindingMetadata; + var HostListenerMetadata = (function() { + function HostListenerMetadata(eventName, args) { + this.eventName = eventName; + this.args = args; + } + HostListenerMetadata = __decorate([lang_1.CONST(), __metadata('design:paramtypes', [String, Array])], HostListenerMetadata); + return HostListenerMetadata; + })(); + exports.HostListenerMetadata = HostListenerMetadata; + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("1cd", ["2b", "3f", "3a", "3c"], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -47283,10 +44138,10 @@ $__System.registerDynamic("1f5", ["22", "40", "3b", "3d"], true, function($__req if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; - var lang_1 = $__require('22'); - var exceptions_1 = $__require('40'); - var collection_1 = $__require('3b'); - var di_1 = $__require('3d'); + var lang_1 = $__require('2b'); + var exceptions_1 = $__require('3f'); + var collection_1 = $__require('3a'); + var di_1 = $__require('3c'); var IterableDiffers = (function() { function IterableDiffers(factories) { this.factories = factories; @@ -47329,7 +44184,7 @@ $__System.registerDynamic("1f5", ["22", "40", "3b", "3d"], true, function($__req return module.exports; }); -$__System.registerDynamic("1f6", ["22", "40", "3b"], true, function($__require, exports, module) { +$__System.registerDynamic("1ce", ["2b", "3f", "3a"], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -47351,26 +44206,30 @@ $__System.registerDynamic("1f6", ["22", "40", "3b"], true, function($__require, if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; - var lang_1 = $__require('22'); - var exceptions_1 = $__require('40'); - var collection_1 = $__require('3b'); - var lang_2 = $__require('22'); + var lang_1 = $__require('2b'); + var exceptions_1 = $__require('3f'); + var collection_1 = $__require('3a'); + var lang_2 = $__require('2b'); var DefaultIterableDifferFactory = (function() { function DefaultIterableDifferFactory() {} DefaultIterableDifferFactory.prototype.supports = function(obj) { return collection_1.isListLikeIterable(obj); }; - DefaultIterableDifferFactory.prototype.create = function(cdRef) { - return new DefaultIterableDiffer(); + DefaultIterableDifferFactory.prototype.create = function(cdRef, trackByFn) { + return new DefaultIterableDiffer(trackByFn); }; DefaultIterableDifferFactory = __decorate([lang_1.CONST(), __metadata('design:paramtypes', [])], DefaultIterableDifferFactory); return DefaultIterableDifferFactory; })(); exports.DefaultIterableDifferFactory = DefaultIterableDifferFactory; + var trackByIdentity = function(index, item) { + return item; + }; var DefaultIterableDiffer = (function() { - function DefaultIterableDiffer() { - this._collection = null; + function DefaultIterableDiffer(_trackByFn) { + this._trackByFn = _trackByFn; this._length = null; + this._collection = null; this._linkedRecords = null; this._unlinkedRecords = null; this._previousItHead = null; @@ -47382,6 +44241,9 @@ $__System.registerDynamic("1f6", ["22", "40", "3b"], true, function($__require, this._movesTail = null; this._removalsHead = null; this._removalsTail = null; + this._identityChangesHead = null; + this._identityChangesTail = null; + this._trackByFn = lang_2.isPresent(this._trackByFn) ? this._trackByFn : trackByIdentity; } Object.defineProperty(DefaultIterableDiffer.prototype, "collection", { get: function() { @@ -47427,6 +44289,12 @@ $__System.registerDynamic("1f6", ["22", "40", "3b"], true, function($__require, fn(record); } }; + DefaultIterableDiffer.prototype.forEachIdentityChange = function(fn) { + var record; + for (record = this._identityChangesHead; record !== null; record = record._nextIdentityChange) { + fn(record); + } + }; DefaultIterableDiffer.prototype.diff = function(collection) { if (lang_2.isBlank(collection)) collection = []; @@ -47447,27 +44315,38 @@ $__System.registerDynamic("1f6", ["22", "40", "3b"], true, function($__require, var mayBeDirty = false; var index; var item; + var itemTrackBy; if (lang_2.isArray(collection)) { var list = collection; this._length = collection.length; for (index = 0; index < this._length; index++) { item = list[index]; - if (record === null || !lang_2.looseIdentical(record.item, item)) { - record = this._mismatch(record, item, index); + itemTrackBy = this._trackByFn(index, item); + if (record === null || !lang_2.looseIdentical(record.trackById, itemTrackBy)) { + record = this._mismatch(record, item, itemTrackBy, index); mayBeDirty = true; - } else if (mayBeDirty) { - record = this._verifyReinsertion(record, item, index); + } else { + if (mayBeDirty) { + record = this._verifyReinsertion(record, item, itemTrackBy, index); + } + if (!lang_2.looseIdentical(record.item, item)) + this._addIdentityChange(record, item); } record = record._next; } } else { index = 0; collection_1.iterateListLike(collection, function(item) { - if (record === null || !lang_2.looseIdentical(record.item, item)) { - record = _this._mismatch(record, item, index); + itemTrackBy = _this._trackByFn(index, item); + if (record === null || !lang_2.looseIdentical(record.trackById, itemTrackBy)) { + record = _this._mismatch(record, item, itemTrackBy, index); mayBeDirty = true; - } else if (mayBeDirty) { - record = _this._verifyReinsertion(record, item, index); + } else { + if (mayBeDirty) { + record = _this._verifyReinsertion(record, item, itemTrackBy, index); + } + if (!lang_2.looseIdentical(record.item, item)) + _this._addIdentityChange(record, item); } record = record._next; index++; @@ -47480,7 +44359,7 @@ $__System.registerDynamic("1f6", ["22", "40", "3b"], true, function($__require, }; Object.defineProperty(DefaultIterableDiffer.prototype, "isDirty", { get: function() { - return this._additionsHead !== null || this._movesHead !== null || this._removalsHead !== null; + return this._additionsHead !== null || this._movesHead !== null || this._removalsHead !== null || this._identityChangesHead !== null; }, enumerable: true, configurable: true @@ -47502,9 +44381,10 @@ $__System.registerDynamic("1f6", ["22", "40", "3b"], true, function($__require, } this._movesHead = this._movesTail = null; this._removalsHead = this._removalsTail = null; + this._identityChangesHead = this._identityChangesTail = null; } }; - DefaultIterableDiffer.prototype._mismatch = function(record, item, index) { + DefaultIterableDiffer.prototype._mismatch = function(record, item, itemTrackBy, index) { var previousRecord; if (record === null) { previousRecord = this._itTail; @@ -47512,21 +44392,25 @@ $__System.registerDynamic("1f6", ["22", "40", "3b"], true, function($__require, previousRecord = record._prev; this._remove(record); } - record = this._linkedRecords === null ? null : this._linkedRecords.get(item, index); + record = this._linkedRecords === null ? null : this._linkedRecords.get(itemTrackBy, index); if (record !== null) { + if (!lang_2.looseIdentical(record.item, item)) + this._addIdentityChange(record, item); this._moveAfter(record, previousRecord, index); } else { - record = this._unlinkedRecords === null ? null : this._unlinkedRecords.get(item); + record = this._unlinkedRecords === null ? null : this._unlinkedRecords.get(itemTrackBy); if (record !== null) { + if (!lang_2.looseIdentical(record.item, item)) + this._addIdentityChange(record, item); this._reinsertAfter(record, previousRecord, index); } else { - record = this._addAfter(new CollectionChangeRecord(item), previousRecord, index); + record = this._addAfter(new CollectionChangeRecord(item, itemTrackBy), previousRecord, index); } } return record; }; - DefaultIterableDiffer.prototype._verifyReinsertion = function(record, item, index) { - var reinsertRecord = this._unlinkedRecords === null ? null : this._unlinkedRecords.get(item); + DefaultIterableDiffer.prototype._verifyReinsertion = function(record, item, itemTrackBy, index) { + var reinsertRecord = this._unlinkedRecords === null ? null : this._unlinkedRecords.get(itemTrackBy); if (reinsertRecord !== null) { record = this._reinsertAfter(reinsertRecord, record._prev, index); } else if (record.currentIndex != index) { @@ -47661,36 +44545,49 @@ $__System.registerDynamic("1f6", ["22", "40", "3b"], true, function($__require, } return record; }; + DefaultIterableDiffer.prototype._addIdentityChange = function(record, item) { + record.item = item; + if (this._identityChangesTail === null) { + this._identityChangesTail = this._identityChangesHead = record; + } else { + this._identityChangesTail = this._identityChangesTail._nextIdentityChange = record; + } + return record; + }; DefaultIterableDiffer.prototype.toString = function() { - var record; var list = []; - for (record = this._itHead; record !== null; record = record._next) { - list.push(record); - } + this.forEachItem(function(record) { + return list.push(record); + }); var previous = []; - for (record = this._previousItHead; record !== null; record = record._nextPrevious) { - previous.push(record); - } + this.forEachPreviousItem(function(record) { + return previous.push(record); + }); var additions = []; - for (record = this._additionsHead; record !== null; record = record._nextAdded) { - additions.push(record); - } + this.forEachAddedItem(function(record) { + return additions.push(record); + }); var moves = []; - for (record = this._movesHead; record !== null; record = record._nextMoved) { - moves.push(record); - } + this.forEachMovedItem(function(record) { + return moves.push(record); + }); var removals = []; - for (record = this._removalsHead; record !== null; record = record._nextRemoved) { - removals.push(record); - } - return "collection: " + list.join(', ') + "\n" + "previous: " + previous.join(', ') + "\n" + "additions: " + additions.join(', ') + "\n" + "moves: " + moves.join(', ') + "\n" + "removals: " + removals.join(', ') + "\n"; + this.forEachRemovedItem(function(record) { + return removals.push(record); + }); + var identityChanges = []; + this.forEachIdentityChange(function(record) { + return identityChanges.push(record); + }); + return "collection: " + list.join(', ') + "\n" + "previous: " + previous.join(', ') + "\n" + "additions: " + additions.join(', ') + "\n" + "moves: " + moves.join(', ') + "\n" + "removals: " + removals.join(', ') + "\n" + "identityChanges: " + identityChanges.join(', ') + "\n"; }; return DefaultIterableDiffer; })(); exports.DefaultIterableDiffer = DefaultIterableDiffer; var CollectionChangeRecord = (function() { - function CollectionChangeRecord(item) { + function CollectionChangeRecord(item, trackById) { this.item = item; + this.trackById = trackById; this.currentIndex = null; this.previousIndex = null; this._nextPrevious = null; @@ -47702,6 +44599,7 @@ $__System.registerDynamic("1f6", ["22", "40", "3b"], true, function($__require, this._nextRemoved = null; this._nextAdded = null; this._nextMoved = null; + this._nextIdentityChange = null; } CollectionChangeRecord.prototype.toString = function() { return this.previousIndex === this.currentIndex ? lang_2.stringify(this.item) : lang_2.stringify(this.item) + '[' + lang_2.stringify(this.previousIndex) + '->' + lang_2.stringify(this.currentIndex) + ']'; @@ -47726,10 +44624,10 @@ $__System.registerDynamic("1f6", ["22", "40", "3b"], true, function($__require, this._tail = record; } }; - _DuplicateItemRecordList.prototype.get = function(item, afterIndex) { + _DuplicateItemRecordList.prototype.get = function(trackById, afterIndex) { var record; for (record = this._head; record !== null; record = record._nextDup) { - if ((afterIndex === null || afterIndex < record.currentIndex) && lang_2.looseIdentical(record.item, item)) { + if ((afterIndex === null || afterIndex < record.currentIndex) && lang_2.looseIdentical(record.trackById, trackById)) { return record; } } @@ -47757,7 +44655,7 @@ $__System.registerDynamic("1f6", ["22", "40", "3b"], true, function($__require, this.map = new Map(); } _DuplicateMap.prototype.put = function(record) { - var key = lang_2.getMapKey(record.item); + var key = lang_2.getMapKey(record.trackById); var duplicates = this.map.get(key); if (!lang_2.isPresent(duplicates)) { duplicates = new _DuplicateItemRecordList(); @@ -47765,16 +44663,16 @@ $__System.registerDynamic("1f6", ["22", "40", "3b"], true, function($__require, } duplicates.add(record); }; - _DuplicateMap.prototype.get = function(value, afterIndex) { + _DuplicateMap.prototype.get = function(trackById, afterIndex) { if (afterIndex === void 0) { afterIndex = null; } - var key = lang_2.getMapKey(value); + var key = lang_2.getMapKey(trackById); var recordList = this.map.get(key); - return lang_2.isBlank(recordList) ? null : recordList.get(value, afterIndex); + return lang_2.isBlank(recordList) ? null : recordList.get(trackById, afterIndex); }; _DuplicateMap.prototype.remove = function(record) { - var key = lang_2.getMapKey(record.item); + var key = lang_2.getMapKey(record.trackById); var recordList = this.map.get(key); if (recordList.remove(record)) { this.map.delete(key); @@ -47800,7 +44698,7 @@ $__System.registerDynamic("1f6", ["22", "40", "3b"], true, function($__require, return module.exports; }); -$__System.registerDynamic("1f7", ["22", "40", "3b", "3d"], true, function($__require, exports, module) { +$__System.registerDynamic("1cf", ["2b", "3f", "3a", "3c"], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -47822,10 +44720,10 @@ $__System.registerDynamic("1f7", ["22", "40", "3b", "3d"], true, function($__req if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; - var lang_1 = $__require('22'); - var exceptions_1 = $__require('40'); - var collection_1 = $__require('3b'); - var di_1 = $__require('3d'); + var lang_1 = $__require('2b'); + var exceptions_1 = $__require('3f'); + var collection_1 = $__require('3a'); + var di_1 = $__require('3c'); var KeyValueDiffers = (function() { function KeyValueDiffers(factories) { this.factories = factories; @@ -47868,7 +44766,7 @@ $__System.registerDynamic("1f7", ["22", "40", "3b", "3d"], true, function($__req return module.exports; }); -$__System.registerDynamic("1f8", ["3b", "22", "40"], true, function($__require, exports, module) { +$__System.registerDynamic("1d0", ["3a", "2b", "3f"], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -47890,9 +44788,9 @@ $__System.registerDynamic("1f8", ["3b", "22", "40"], true, function($__require, if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; - var collection_1 = $__require('3b'); - var lang_1 = $__require('22'); - var exceptions_1 = $__require('40'); + var collection_1 = $__require('3a'); + var lang_1 = $__require('2b'); + var exceptions_1 = $__require('3f'); var DefaultKeyValueDifferFactory = (function() { function DefaultKeyValueDifferFactory() {} DefaultKeyValueDifferFactory.prototype.supports = function(obj) { @@ -48159,7 +45057,7 @@ $__System.registerDynamic("1f8", ["3b", "22", "40"], true, function($__require, return module.exports; }); -$__System.registerDynamic("1f9", ["1fa", "3b", "22", "40"], true, function($__require, exports, module) { +$__System.registerDynamic("1d1", ["1d2", "3a", "2b", "3f"], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -48190,10 +45088,10 @@ $__System.registerDynamic("1f9", ["1fa", "3b", "22", "40"], true, function($__re if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; - var decorators_1 = $__require('1fa'); - var collection_1 = $__require('3b'); - var lang_1 = $__require('22'); - var exceptions_1 = $__require('40'); + var decorators_1 = $__require('1d2'); + var collection_1 = $__require('3a'); + var lang_1 = $__require('2b'); + var exceptions_1 = $__require('3f'); (function(TokenType) { TokenType[TokenType["Character"] = 0] = "Character"; TokenType[TokenType["Identifier"] = 1] = "Identifier"; @@ -48441,18 +45339,14 @@ $__System.registerDynamic("1f9", ["1fa", "3b", "22", "40"], true, function($__re return null; }; _Scanner.prototype.scanCharacter = function(start, code) { - assert(this.peek == code); this.advance(); return newCharacterToken(start, code); }; _Scanner.prototype.scanOperator = function(start, str) { - assert(this.peek == lang_1.StringWrapper.charCodeAt(str, 0)); - assert(collection_1.SetWrapper.has(OPERATORS, str)); this.advance(); return newOperatorToken(start, str); }; _Scanner.prototype.scanComplexOperator = function(start, one, twoCode, two, threeCode, three) { - assert(this.peek == lang_1.StringWrapper.charCodeAt(one, 0)); this.advance(); var str = one; if (this.peek == twoCode) { @@ -48463,11 +45357,9 @@ $__System.registerDynamic("1f9", ["1fa", "3b", "22", "40"], true, function($__re this.advance(); str += three; } - assert(collection_1.SetWrapper.has(OPERATORS, str)); return newOperatorToken(start, str); }; _Scanner.prototype.scanIdentifier = function() { - assert(isIdentifierStart(this.peek)); var start = this.index; this.advance(); while (isIdentifierPart(this.peek)) @@ -48480,7 +45372,6 @@ $__System.registerDynamic("1f9", ["1fa", "3b", "22", "40"], true, function($__re } }; _Scanner.prototype.scanNumber = function(start) { - assert(isDigit(this.peek)); var simple = (this.index === start); this.advance(); while (true) { @@ -48503,7 +45394,6 @@ $__System.registerDynamic("1f9", ["1fa", "3b", "22", "40"], true, function($__re return newNumberToken(start, value); }; _Scanner.prototype.scanString = function() { - assert(this.peek == exports.$SQ || this.peek == exports.$DQ); var start = this.index; var quote = this.peek; this.advance(); @@ -48609,7 +45499,7 @@ $__System.registerDynamic("1f9", ["1fa", "3b", "22", "40"], true, function($__re return module.exports; }); -$__System.registerDynamic("1fb", ["1fa", "22", "40", "3b", "1f9", "85", "1fc"], true, function($__require, exports, module) { +$__System.registerDynamic("1d3", ["1d2", "2b", "3f", "3a", "1d1", "84", "74"], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -48640,15 +45530,15 @@ $__System.registerDynamic("1fb", ["1fa", "22", "40", "3b", "1f9", "85", "1fc"], if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; - var decorators_1 = $__require('1fa'); - var lang_1 = $__require('22'); - var exceptions_1 = $__require('40'); - var collection_1 = $__require('3b'); - var lexer_1 = $__require('1f9'); - var reflection_1 = $__require('85'); - var ast_1 = $__require('1fc'); + var decorators_1 = $__require('1d2'); + var lang_1 = $__require('2b'); + var exceptions_1 = $__require('3f'); + var collection_1 = $__require('3a'); + var lexer_1 = $__require('1d1'); + var reflection_1 = $__require('84'); + var ast_1 = $__require('74'); var _implicitReceiver = new ast_1.ImplicitReceiver(); - var INTERPOLATION_REGEXP = /\{\{(.*?)\}\}/g; + var INTERPOLATION_REGEXP = /\{\{([\s\S]*?)\}\}/g; var ParseException = (function(_super) { __extends(ParseException, _super); function ParseException(message, input, errLocation, ctxLocation) { @@ -49245,56 +46135,7 @@ $__System.registerDynamic("1fb", ["1fa", "22", "40", "3b", "1f9", "85", "1fc"], return module.exports; }); -$__System.registerDynamic("1fd", ["22", "40", "3b"], true, function($__require, exports, module) { - "use strict"; - ; - var global = this, - __define = global.define; - global.define = undefined; - var lang_1 = $__require('22'); - var exceptions_1 = $__require('40'); - var collection_1 = $__require('3b'); - var Locals = (function() { - function Locals(parent, current) { - this.parent = parent; - this.current = current; - } - Locals.prototype.contains = function(name) { - if (this.current.has(name)) { - return true; - } - if (lang_1.isPresent(this.parent)) { - return this.parent.contains(name); - } - return false; - }; - Locals.prototype.get = function(name) { - if (this.current.has(name)) { - return this.current.get(name); - } - if (lang_1.isPresent(this.parent)) { - return this.parent.get(name); - } - throw new exceptions_1.BaseException("Cannot find '" + name + "'"); - }; - Locals.prototype.set = function(name, value) { - if (this.current.has(name)) { - this.current.set(name, value); - } else { - throw new exceptions_1.BaseException("Setting of new keys post-construction is not supported. Key: " + name + "."); - } - }; - Locals.prototype.clearValues = function() { - collection_1.MapWrapper.clearValues(this.current); - }; - return Locals; - })(); - exports.Locals = Locals; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("1db", [], true, function($__require, exports, module) { +$__System.registerDynamic("1ca", [], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -49338,14 +46179,14 @@ $__System.registerDynamic("1db", [], true, function($__require, exports, module) return module.exports; }); -$__System.registerDynamic("1fe", ["22", "3b"], true, function($__require, exports, module) { +$__System.registerDynamic("1d4", ["2b", "3a"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var lang_1 = $__require('22'); - var collection_1 = $__require('3b'); + var lang_1 = $__require('2b'); + var collection_1 = $__require('3a'); var _STATE_ACCESSOR = "state"; var _CONTEXT_ACCESSOR = "context"; var _PROP_BINDING_INDEX = "propertyBindingIndex"; @@ -49521,17 +46362,17 @@ $__System.registerDynamic("1fe", ["22", "3b"], true, function($__require, export return module.exports; }); -$__System.registerDynamic("1ff", ["22", "200", "201", "202", "40"], true, function($__require, exports, module) { +$__System.registerDynamic("1d5", ["2b", "1d6", "1d7", "8b", "3f"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var lang_1 = $__require('22'); - var codegen_facade_1 = $__require('200'); - var proto_record_1 = $__require('201'); - var constants_1 = $__require('202'); - var exceptions_1 = $__require('40'); + var lang_1 = $__require('2b'); + var codegen_facade_1 = $__require('1d6'); + var proto_record_1 = $__require('1d7'); + var constants_1 = $__require('8b'); + var exceptions_1 = $__require('3f'); var CodegenLogicUtil = (function() { function CodegenLogicUtil(_names, _utilName, _changeDetectorStateName, _changeDetection) { this._names = _names; @@ -49603,7 +46444,7 @@ $__System.registerDynamic("1ff", ["22", "200", "201", "202", "40"], true, functi rhs = context + "[" + getLocalName(protoRec.args[0]) + "] = " + getLocalName(protoRec.args[1]); break; case proto_record_1.RecordType.Chain: - rhs = 'null'; + rhs = "" + getLocalName(protoRec.args[protoRec.args.length - 1]); break; default: throw new exceptions_1.BaseException("Unknown operation " + protoRec.mode); @@ -49644,18 +46485,59 @@ $__System.registerDynamic("1ff", ["22", "200", "201", "202", "40"], true, functi return codegen_facade_1.combineGeneratedStrings(iVals); }; CodegenLogicUtil.prototype.genHydrateDirectives = function(directiveRecords) { + var _this = this; var res = []; + var outputCount = 0; for (var i = 0; i < directiveRecords.length; ++i) { var r = directiveRecords[i]; - res.push(this._names.getDirectiveName(r.directiveIndex) + " = " + this._genReadDirective(i) + ";"); + var dirVarName = this._names.getDirectiveName(r.directiveIndex); + res.push(dirVarName + " = " + this._genReadDirective(i) + ";"); + if (lang_1.isPresent(r.outputs)) { + r.outputs.forEach(function(output) { + var eventHandlerExpr = _this._genEventHandler(r.directiveIndex.elementIndex, output[1]); + var statementStart = "this.outputSubscriptions[" + outputCount++ + "] = " + dirVarName + "." + output[0]; + if (lang_1.IS_DART) { + res.push(statementStart + ".listen(" + eventHandlerExpr + ");"); + } else { + res.push(statementStart + ".subscribe({next: " + eventHandlerExpr + "});"); + } + }); + } + } + if (outputCount > 0) { + var statementStart = 'this.outputSubscriptions'; + if (lang_1.IS_DART) { + res.unshift(statementStart + " = new List(" + outputCount + ");"); + } else { + res.unshift(statementStart + " = new Array(" + outputCount + ");"); + } } return res.join("\n"); }; - CodegenLogicUtil.prototype._genReadDirective = function(index) { - if (this._changeDetection === constants_1.ChangeDetectionStrategy.OnPushObserve) { - return "this.observeDirective(this.getDirectiveFor(directives, " + index + "), " + index + ")"; + CodegenLogicUtil.prototype.genDirectivesOnDestroy = function(directiveRecords) { + var res = []; + for (var i = 0; i < directiveRecords.length; ++i) { + var r = directiveRecords[i]; + if (r.callOnDestroy) { + var dirVarName = this._names.getDirectiveName(r.directiveIndex); + res.push(dirVarName + ".ngOnDestroy();"); + } + } + return res.join("\n"); + }; + CodegenLogicUtil.prototype._genEventHandler = function(boundElementIndex, eventName) { + if (lang_1.IS_DART) { + return "(event) => this.handleEvent('" + eventName + "', " + boundElementIndex + ", event)"; } else { - return "this.getDirectiveFor(directives, " + index + ")"; + return "(function(event) { return this.handleEvent('" + eventName + "', " + boundElementIndex + ", event); }).bind(this)"; + } + }; + CodegenLogicUtil.prototype._genReadDirective = function(index) { + var directiveExpr = "this.getDirectiveFor(directives, " + index + ")"; + if (this._changeDetection === constants_1.ChangeDetectionStrategy.OnPushObserve) { + return "this.observeDirective(" + directiveExpr + ", " + index + ")"; + } else { + return directiveExpr; } }; CodegenLogicUtil.prototype.genHydrateDetectors = function(directiveRecords) { @@ -49703,7 +46585,7 @@ $__System.registerDynamic("1ff", ["22", "200", "201", "202", "40"], true, functi return module.exports; }); -$__System.registerDynamic("200", [], true, function($__require, exports, module) { +$__System.registerDynamic("1d6", [], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -49725,7 +46607,7 @@ $__System.registerDynamic("200", [], true, function($__require, exports, module) return module.exports; }); -$__System.registerDynamic("1fc", ["3b", "38"], true, function($__require, exports, module) { +$__System.registerDynamic("74", ["3a", "37"], true, function($__require, exports, module) { ; var global = this, __define = global.define; @@ -49741,7 +46623,7 @@ $__System.registerDynamic("1fc", ["3b", "38"], true, function($__require, export } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; - var collection_1 = $__require('3b'); + var collection_1 = $__require('3a'); var AST = (function() { function AST() {} AST.prototype.visit = function(visitor) { @@ -50205,12 +47087,12 @@ $__System.registerDynamic("1fc", ["3b", "38"], true, function($__require, export return AstTransformer; })(); exports.AstTransformer = AstTransformer; - })($__require('38')); + })($__require('37')); global.define = __define; return module.exports; }); -$__System.registerDynamic("203", [], true, function($__require, exports, module) { +$__System.registerDynamic("1d8", [], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -50230,15 +47112,15 @@ $__System.registerDynamic("203", [], true, function($__require, exports, module) return module.exports; }); -$__System.registerDynamic("204", ["22", "3b", "201"], true, function($__require, exports, module) { +$__System.registerDynamic("1d9", ["2b", "3a", "1d7"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var lang_1 = $__require('22'); - var collection_1 = $__require('3b'); - var proto_record_1 = $__require('201'); + var lang_1 = $__require('2b'); + var collection_1 = $__require('3a'); + var proto_record_1 = $__require('1d7'); function coalesce(srcRecords) { var dstRecords = []; var excludedIdxs = []; @@ -50344,22 +47226,22 @@ $__System.registerDynamic("204", ["22", "3b", "201"], true, function($__require, return module.exports; }); -$__System.registerDynamic("205", ["22", "40", "3b", "1fc", "206", "207", "208", "203", "204", "201"], true, function($__require, exports, module) { +$__System.registerDynamic("1da", ["2b", "3f", "3a", "74", "8a", "1db", "1dc", "1d8", "1d9", "1d7"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var lang_1 = $__require('22'); - var exceptions_1 = $__require('40'); - var collection_1 = $__require('3b'); - var ast_1 = $__require('1fc'); - var change_detection_util_1 = $__require('206'); - var dynamic_change_detector_1 = $__require('207'); - var directive_record_1 = $__require('208'); - var event_binding_1 = $__require('203'); - var coalesce_1 = $__require('204'); - var proto_record_1 = $__require('201'); + var lang_1 = $__require('2b'); + var exceptions_1 = $__require('3f'); + var collection_1 = $__require('3a'); + var ast_1 = $__require('74'); + var change_detection_util_1 = $__require('8a'); + var dynamic_change_detector_1 = $__require('1db'); + var directive_record_1 = $__require('1dc'); + var event_binding_1 = $__require('1d8'); + var coalesce_1 = $__require('1d9'); + var proto_record_1 = $__require('1d7'); var DynamicProtoChangeDetector = (function() { function DynamicProtoChangeDetector(_definition) { this._definition = _definition; @@ -50372,8 +47254,8 @@ $__System.registerDynamic("205", ["22", "40", "3b", "1fc", "206", "207", "208", return d.directiveIndex; }); } - DynamicProtoChangeDetector.prototype.instantiate = function(dispatcher) { - return new dynamic_change_detector_1.DynamicChangeDetector(this._definition.id, dispatcher, this._propertyBindingRecords.length, this._propertyBindingTargets, this._directiveIndices, this._definition.strategy, this._propertyBindingRecords, this._eventBindingRecords, this._definition.directiveRecords, this._definition.genConfig); + DynamicProtoChangeDetector.prototype.instantiate = function() { + return new dynamic_change_detector_1.DynamicChangeDetector(this._definition.id, this._propertyBindingRecords.length, this._propertyBindingTargets, this._directiveIndices, this._definition.strategy, this._propertyBindingRecords, this._eventBindingRecords, this._definition.directiveRecords, this._definition.genConfig); }; return DynamicProtoChangeDetector; })(); @@ -50751,23 +47633,23 @@ $__System.registerDynamic("205", ["22", "40", "3b", "1fc", "206", "207", "208", return module.exports; }); -$__System.registerDynamic("89", ["22", "40", "3b", "209", "206", "201", "1fe", "1ff", "200", "202", "205"], true, function($__require, exports, module) { +$__System.registerDynamic("88", ["2b", "3f", "3a", "89", "8a", "1d7", "1d4", "1d5", "1d6", "8b", "1da"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var lang_1 = $__require('22'); - var exceptions_1 = $__require('40'); - var collection_1 = $__require('3b'); - var abstract_change_detector_1 = $__require('209'); - var change_detection_util_1 = $__require('206'); - var proto_record_1 = $__require('201'); - var codegen_name_util_1 = $__require('1fe'); - var codegen_logic_util_1 = $__require('1ff'); - var codegen_facade_1 = $__require('200'); - var constants_1 = $__require('202'); - var proto_change_detector_1 = $__require('205'); + var lang_1 = $__require('2b'); + var exceptions_1 = $__require('3f'); + var collection_1 = $__require('3a'); + var abstract_change_detector_1 = $__require('89'); + var change_detection_util_1 = $__require('8a'); + var proto_record_1 = $__require('1d7'); + var codegen_name_util_1 = $__require('1d4'); + var codegen_logic_util_1 = $__require('1d5'); + var codegen_facade_1 = $__require('1d6'); + var constants_1 = $__require('8b'); + var proto_change_detector_1 = $__require('1da'); var IS_CHANGED_LOCAL = "isChanged"; var CHANGES_LOCAL = "changes"; var ChangeDetectorJITGenerator = (function() { @@ -50792,11 +47674,11 @@ $__System.registerDynamic("89", ["22", "40", "3b", "209", "206", "201", "1fe", " this.typeName = codegen_name_util_1.sanitizeName("ChangeDetector_" + this.id); } ChangeDetectorJITGenerator.prototype.generate = function() { - var factorySource = "\n " + this.generateSource() + "\n return function(dispatcher) {\n return new " + this.typeName + "(dispatcher);\n }\n "; + var factorySource = "\n " + this.generateSource() + "\n return function() {\n return new " + this.typeName + "();\n }\n "; return new Function(this.abstractChangeDetectorVarName, this.changeDetectionUtilVarName, this.changeDetectorStateVarName, factorySource)(abstract_change_detector_1.AbstractChangeDetector, change_detection_util_1.ChangeDetectionUtil, constants_1.ChangeDetectorState); }; ChangeDetectorJITGenerator.prototype.generateSource = function() { - return "\n var " + this.typeName + " = function " + this.typeName + "(dispatcher) {\n " + this.abstractChangeDetectorVarName + ".call(\n this, " + JSON.stringify(this.id) + ", dispatcher, " + this.records.length + ",\n " + this.typeName + ".gen_propertyBindingTargets, " + this.typeName + ".gen_directiveIndices,\n " + codegen_facade_1.codify(this.changeDetectionStrategy) + ");\n this.dehydrateDirectives(false);\n }\n\n " + this.typeName + ".prototype = Object.create(" + this.abstractChangeDetectorVarName + ".prototype);\n\n " + this.typeName + ".prototype.detectChangesInRecordsInternal = function(throwOnChange) {\n " + this._names.genInitLocals() + "\n var " + IS_CHANGED_LOCAL + " = false;\n var " + CHANGES_LOCAL + " = null;\n\n " + this._genAllRecords(this.records) + "\n }\n\n " + this._maybeGenHandleEventInternal() + "\n\n " + this._maybeGenAfterContentLifecycleCallbacks() + "\n\n " + this._maybeGenAfterViewLifecycleCallbacks() + "\n\n " + this._maybeGenHydrateDirectives() + "\n\n " + this._maybeGenDehydrateDirectives() + "\n\n " + this._genPropertyBindingTargets() + "\n\n " + this._genDirectiveIndices() + "\n "; + return "\n var " + this.typeName + " = function " + this.typeName + "() {\n " + this.abstractChangeDetectorVarName + ".call(\n this, " + JSON.stringify(this.id) + ", " + this.records.length + ",\n " + this.typeName + ".gen_propertyBindingTargets, " + this.typeName + ".gen_directiveIndices,\n " + codegen_facade_1.codify(this.changeDetectionStrategy) + ");\n this.dehydrateDirectives(false);\n }\n\n " + this.typeName + ".prototype = Object.create(" + this.abstractChangeDetectorVarName + ".prototype);\n\n " + this.typeName + ".prototype.detectChangesInRecordsInternal = function(throwOnChange) {\n " + this._names.genInitLocals() + "\n var " + IS_CHANGED_LOCAL + " = false;\n var " + CHANGES_LOCAL + " = null;\n\n " + this._genAllRecords(this.records) + "\n }\n\n " + this._maybeGenHandleEventInternal() + "\n\n " + this._maybeGenAfterContentLifecycleCallbacks() + "\n\n " + this._maybeGenAfterViewLifecycleCallbacks() + "\n\n " + this._maybeGenHydrateDirectives() + "\n\n " + this._maybeGenDehydrateDirectives() + "\n\n " + this._genPropertyBindingTargets() + "\n\n " + this._genDirectiveIndices() + "\n "; }; ChangeDetectorJITGenerator.prototype._genPropertyBindingTargets = function() { var targets = this._logic.genPropertyBindingTargets(this.propertyBindingTargets, this.genConfig.genDebugInfo); @@ -50859,13 +47741,11 @@ $__System.registerDynamic("89", ["22", "40", "3b", "209", "206", "201", "1fe", " }; ChangeDetectorJITGenerator.prototype._maybeGenDehydrateDirectives = function() { var destroyPipesCode = this._names.genPipeOnDestroy(); - if (destroyPipesCode) { - destroyPipesCode = "if (destroyPipes) { " + destroyPipesCode + " }"; - } + var destroyDirectivesCode = this._logic.genDirectivesOnDestroy(this.directiveRecords); var dehydrateFieldsCode = this._names.genDehydrateFields(); - if (!destroyPipesCode && !dehydrateFieldsCode) + if (!destroyPipesCode && !destroyDirectivesCode && !dehydrateFieldsCode) return ''; - return this.typeName + ".prototype.dehydrateDirectives = function(destroyPipes) {\n " + destroyPipesCode + "\n " + dehydrateFieldsCode + "\n }"; + return this.typeName + ".prototype.dehydrateDirectives = function(destroyPipes) {\n if (destroyPipes) {\n " + destroyPipesCode + "\n " + destroyDirectivesCode + "\n }\n " + dehydrateFieldsCode + "\n }"; }; ChangeDetectorJITGenerator.prototype._maybeGenHydrateDirectives = function() { var hydrateDirectivesCode = this._logic.genHydrateDirectives(this.directiveRecords); @@ -50962,7 +47842,7 @@ $__System.registerDynamic("89", ["22", "40", "3b", "209", "206", "201", "1fe", " }); contexOrArgCheck.push(this._names.getChangeName(r.contextIndex)); var condition = "!" + pipe + ".pure || (" + contexOrArgCheck.join(" || ") + ")"; - var check = "\n if (" + this.changeDetectionUtilVarName + ".looseNotIdentical(" + oldValue + ", " + newValue + ")) {\n " + newValue + " = " + this.changeDetectionUtilVarName + ".unwrapValue(" + newValue + ")\n " + this._genChangeMarker(r) + "\n " + this._genUpdateDirectiveOrElement(r) + "\n " + this._genAddToChanges(r) + "\n " + oldValue + " = " + newValue + ";\n }\n "; + var check = "\n " + this._genThrowOnChangeCheck(oldValue, newValue) + "\n if (" + this.changeDetectionUtilVarName + ".looseNotIdentical(" + oldValue + ", " + newValue + ")) {\n " + newValue + " = " + this.changeDetectionUtilVarName + ".unwrapValue(" + newValue + ")\n " + this._genChangeMarker(r) + "\n " + this._genUpdateDirectiveOrElement(r) + "\n " + this._genAddToChanges(r) + "\n " + oldValue + " = " + newValue + ";\n }\n "; var genCode = r.shouldBeChecked() ? "" + read + check : read; if (r.isUsedByOtherRecord()) { return init + " if (" + condition + ") { " + genCode + " } else { " + newValue + " = " + oldValue + "; }"; @@ -50975,7 +47855,7 @@ $__System.registerDynamic("89", ["22", "40", "3b", "209", "206", "201", "1fe", " var oldValue = this._names.getFieldName(r.selfIndex); var newValue = this._names.getLocalName(r.selfIndex); var read = "\n " + this._logic.genPropertyBindingEvalValue(r) + "\n "; - var check = "\n if (" + this.changeDetectionUtilVarName + ".looseNotIdentical(" + oldValue + ", " + newValue + ")) {\n " + this._genChangeMarker(r) + "\n " + this._genUpdateDirectiveOrElement(r) + "\n " + this._genAddToChanges(r) + "\n " + oldValue + " = " + newValue + ";\n }\n "; + var check = "\n " + this._genThrowOnChangeCheck(oldValue, newValue) + "\n if (" + this.changeDetectionUtilVarName + ".looseNotIdentical(" + oldValue + ", " + newValue + ")) {\n " + this._genChangeMarker(r) + "\n " + this._genUpdateDirectiveOrElement(r) + "\n " + this._genAddToChanges(r) + "\n " + oldValue + " = " + newValue + ";\n }\n "; var genCode = r.shouldBeChecked() ? "" + read + check : read; if (r.isPureFunction()) { var condition = r.args.map(function(a) { @@ -50997,19 +47877,18 @@ $__System.registerDynamic("89", ["22", "40", "3b", "209", "206", "201", "1fe", " if (!r.lastInBinding) return ""; var newValue = this._names.getLocalName(r.selfIndex); - var oldValue = this._names.getFieldName(r.selfIndex); var notifyDebug = this.genConfig.logBindingUpdate ? "this.logBindingUpdate(" + newValue + ");" : ""; var br = r.bindingRecord; if (br.target.isDirective()) { var directiveProperty = this._names.getDirectiveName(br.directiveRecord.directiveIndex) + "." + br.target.name; - return "\n " + this._genThrowOnChangeCheck(oldValue, newValue) + "\n " + directiveProperty + " = " + newValue + ";\n " + notifyDebug + "\n " + IS_CHANGED_LOCAL + " = true;\n "; + return "\n " + directiveProperty + " = " + newValue + ";\n " + notifyDebug + "\n " + IS_CHANGED_LOCAL + " = true;\n "; } else { - return "\n " + this._genThrowOnChangeCheck(oldValue, newValue) + "\n this.notifyDispatcher(" + newValue + ");\n " + notifyDebug + "\n "; + return "\n this.notifyDispatcher(" + newValue + ");\n " + notifyDebug + "\n "; } }; ChangeDetectorJITGenerator.prototype._genThrowOnChangeCheck = function(oldValue, newValue) { if (lang_1.assertionsEnabled()) { - return "\n if(throwOnChange) {\n this.throwOnChangeError(" + oldValue + ", " + newValue + ");\n }\n "; + return "\n if (throwOnChange && !" + this.changeDetectionUtilVarName + ".devModeEqual(" + oldValue + ", " + newValue + ")) {\n this.throwOnChangeError(" + oldValue + ", " + newValue + ");\n }\n "; } else { return ''; } @@ -51057,13 +47936,13 @@ $__System.registerDynamic("89", ["22", "40", "3b", "209", "206", "201", "1fe", " return module.exports; }); -$__System.registerDynamic("20a", ["89"], true, function($__require, exports, module) { +$__System.registerDynamic("1dd", ["88"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var change_detection_jit_generator_1 = $__require('89'); + var change_detection_jit_generator_1 = $__require('88'); var JitProtoChangeDetector = (function() { function JitProtoChangeDetector(definition) { this.definition = definition; @@ -51072,8 +47951,8 @@ $__System.registerDynamic("20a", ["89"], true, function($__require, exports, mod JitProtoChangeDetector.isSupported = function() { return true; }; - JitProtoChangeDetector.prototype.instantiate = function(dispatcher) { - return this._factory(dispatcher); + JitProtoChangeDetector.prototype.instantiate = function() { + return this._factory(); }; JitProtoChangeDetector.prototype._createFactory = function(definition) { return new change_detection_jit_generator_1.ChangeDetectorJITGenerator(definition, 'util', 'AbstractChangeDetector', 'ChangeDetectorStatus').generate(); @@ -51085,7 +47964,7 @@ $__System.registerDynamic("20a", ["89"], true, function($__require, exports, mod return module.exports; }); -$__System.registerDynamic("20b", ["40"], true, function($__require, exports, module) { +$__System.registerDynamic("1de", ["3f"], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -51100,7 +47979,7 @@ $__System.registerDynamic("20b", ["40"], true, function($__require, exports, mod } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; - var exceptions_1 = $__require('40'); + var exceptions_1 = $__require('3f'); var ExpressionChangedAfterItHasBeenCheckedException = (function(_super) { __extends(ExpressionChangedAfterItHasBeenCheckedException, _super); function ExpressionChangedAfterItHasBeenCheckedException(exp, oldValue, currValue, context) { @@ -51120,89 +47999,85 @@ $__System.registerDynamic("20b", ["40"], true, function($__require, exports, mod exports.ChangeDetectionError = ChangeDetectionError; var DehydratedException = (function(_super) { __extends(DehydratedException, _super); - function DehydratedException() { - _super.call(this, 'Attempt to detect changes on a dehydrated detector.'); + function DehydratedException(details) { + _super.call(this, "Attempt to use a dehydrated detector: " + details); } return DehydratedException; })(exceptions_1.BaseException); exports.DehydratedException = DehydratedException; + var EventEvaluationError = (function(_super) { + __extends(EventEvaluationError, _super); + function EventEvaluationError(eventName, originalException, originalStack, context) { + _super.call(this, "Error during evaluation of \"" + eventName + "\"", originalException, originalStack, context); + } + return EventEvaluationError; + })(exceptions_1.WrappedException); + exports.EventEvaluationError = EventEvaluationError; + var EventEvaluationErrorContext = (function() { + function EventEvaluationErrorContext(element, componentElement, context, locals, injector) { + this.element = element; + this.componentElement = componentElement; + this.context = context; + this.locals = locals; + this.injector = injector; + } + return EventEvaluationErrorContext; + })(); + exports.EventEvaluationErrorContext = EventEvaluationErrorContext; global.define = __define; return module.exports; }); -$__System.registerDynamic("20c", ["22"], true, function($__require, exports, module) { +$__System.registerDynamic("1df", ["2b", "3f", "3a"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var lang_1 = $__require('22'); - var trace; - var events; - function detectWTF() { - var wtf = lang_1.global['wtf']; - if (wtf) { - trace = wtf['trace']; - if (trace) { - events = trace['events']; + var lang_1 = $__require('2b'); + var exceptions_1 = $__require('3f'); + var collection_1 = $__require('3a'); + var Locals = (function() { + function Locals(parent, current) { + this.parent = parent; + this.current = current; + } + Locals.prototype.contains = function(name) { + if (this.current.has(name)) { return true; } - } - return false; - } - exports.detectWTF = detectWTF; - function createScope(signature, flags) { - if (flags === void 0) { - flags = null; - } - return events.createScope(signature, flags); - } - exports.createScope = createScope; - function leave(scope, returnValue) { - trace.leaveScope(scope, returnValue); - return returnValue; - } - exports.leave = leave; - function startTimeRange(rangeType, action) { - return trace.beginTimeRange(rangeType, action); - } - exports.startTimeRange = startTimeRange; - function endTimeRange(range) { - trace.endTimeRange(range); - } - exports.endTimeRange = endTimeRange; + if (lang_1.isPresent(this.parent)) { + return this.parent.contains(name); + } + return false; + }; + Locals.prototype.get = function(name) { + if (this.current.has(name)) { + return this.current.get(name); + } + if (lang_1.isPresent(this.parent)) { + return this.parent.get(name); + } + throw new exceptions_1.BaseException("Cannot find '" + name + "'"); + }; + Locals.prototype.set = function(name, value) { + if (this.current.has(name)) { + this.current.set(name, value); + } else { + throw new exceptions_1.BaseException("Setting of new keys post-construction is not supported. Key: " + name + "."); + } + }; + Locals.prototype.clearLocalValues = function() { + collection_1.MapWrapper.clearValues(this.current); + }; + return Locals; + })(); + exports.Locals = Locals; global.define = __define; return module.exports; }); -$__System.registerDynamic("50", ["20c"], true, function($__require, exports, module) { - "use strict"; - ; - var global = this, - __define = global.define; - global.define = undefined; - var impl = $__require('20c'); - exports.wtfEnabled = impl.detectWTF(); - function noopScope(arg0, arg1) { - return null; - } - exports.wtfCreateScope = exports.wtfEnabled ? impl.createScope : function(signature, flags) { - return noopScope; - }; - exports.wtfLeave = exports.wtfEnabled ? impl.leave : function(s, r) { - return r; - }; - exports.wtfStartTimeRange = exports.wtfEnabled ? impl.startTimeRange : function(rangeType, action) { - return null; - }; - exports.wtfEndTimeRange = exports.wtfEnabled ? impl.endTimeRange : function(r) { - return null; - }; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("20d", [], true, function($__require, exports, module) { +$__System.registerDynamic("1e0", [], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -51216,20 +48091,22 @@ $__System.registerDynamic("20d", [], true, function($__require, exports, module) return module.exports; }); -$__System.registerDynamic("209", ["22", "3b", "206", "20e", "20b", "202", "50", "20d"], true, function($__require, exports, module) { +$__System.registerDynamic("89", ["2b", "3a", "8a", "1e1", "1de", "1df", "8b", "1ba", "1e0", "62"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var lang_1 = $__require('22'); - var collection_1 = $__require('3b'); - var change_detection_util_1 = $__require('206'); - var change_detector_ref_1 = $__require('20e'); - var exceptions_1 = $__require('20b'); - var constants_1 = $__require('202'); - var profile_1 = $__require('50'); - var observable_facade_1 = $__require('20d'); + var lang_1 = $__require('2b'); + var collection_1 = $__require('3a'); + var change_detection_util_1 = $__require('8a'); + var change_detector_ref_1 = $__require('1e1'); + var exceptions_1 = $__require('1de'); + var locals_1 = $__require('1df'); + var constants_1 = $__require('8b'); + var profile_1 = $__require('1ba'); + var observable_facade_1 = $__require('1e0'); + var async_1 = $__require('62'); var _scope_check = profile_1.wtfCreateScope("ChangeDetector#check(ascii id, bool throwOnChange)"); var _Context = (function() { function _Context(element, componentElement, context, locals, injector, expression) { @@ -51243,9 +48120,8 @@ $__System.registerDynamic("209", ["22", "3b", "206", "20e", "20b", "202", "50", return _Context; })(); var AbstractChangeDetector = (function() { - function AbstractChangeDetector(id, dispatcher, numberOfPropertyProtoRecords, bindingTargets, directiveIndices, strategy) { + function AbstractChangeDetector(id, numberOfPropertyProtoRecords, bindingTargets, directiveIndices, strategy) { this.id = id; - this.dispatcher = dispatcher; this.numberOfPropertyProtoRecords = numberOfPropertyProtoRecords; this.bindingTargets = bindingTargets; this.directiveIndices = directiveIndices; @@ -51275,10 +48151,21 @@ $__System.registerDynamic("209", ["22", "3b", "206", "20e", "20b", "202", "50", AbstractChangeDetector.prototype.remove = function() { this.parent.removeContentChild(this); }; - AbstractChangeDetector.prototype.handleEvent = function(eventName, elIndex, locals) { - var res = this.handleEventInternal(eventName, elIndex, locals); - this.markPathToRootAsCheckOnce(); - return res; + AbstractChangeDetector.prototype.handleEvent = function(eventName, elIndex, event) { + if (!this.hydrated()) { + this.throwDehydratedError(this.id + " -> " + eventName); + } + try { + var locals = new Map(); + locals.set('$event', event); + var res = !this.handleEventInternal(eventName, elIndex, new locals_1.Locals(this.locals, locals)); + this.markPathToRootAsCheckOnce(); + return res; + } catch (e) { + var c = this.dispatcher.getDebugContext(null, elIndex, null); + var context = lang_1.isPresent(c) ? new exceptions_1.EventEvaluationErrorContext(c.element, c.componentElement, c.context, c.locals, c.injector) : null; + throw new exceptions_1.EventEvaluationError(eventName, e, e.stack, context); + } }; AbstractChangeDetector.prototype.handleEventInternal = function(eventName, elIndex, locals) { return false; @@ -51309,7 +48196,7 @@ $__System.registerDynamic("209", ["22", "3b", "206", "20e", "20b", "202", "50", }; AbstractChangeDetector.prototype.detectChangesInRecords = function(throwOnChange) { if (!this.hydrated()) { - this.throwDehydratedError(); + this.throwDehydratedError(this.id); } try { this.detectChangesInRecordsInternal(throwOnChange); @@ -51321,7 +48208,8 @@ $__System.registerDynamic("209", ["22", "3b", "206", "20e", "20b", "202", "50", } }; AbstractChangeDetector.prototype.detectChangesInRecordsInternal = function(throwOnChange) {}; - AbstractChangeDetector.prototype.hydrate = function(context, locals, directives, pipes) { + AbstractChangeDetector.prototype.hydrate = function(context, locals, dispatcher, pipes) { + this.dispatcher = dispatcher; this.mode = change_detection_util_1.ChangeDetectionUtil.changeDetectionMode(this.strategy); this.context = context; if (this.strategy === constants_1.ChangeDetectionStrategy.OnPushObserve) { @@ -51329,15 +48217,17 @@ $__System.registerDynamic("209", ["22", "3b", "206", "20e", "20b", "202", "50", } this.locals = locals; this.pipes = pipes; - this.hydrateDirectives(directives); + this.hydrateDirectives(dispatcher); this.state = constants_1.ChangeDetectorState.NeverChecked; }; - AbstractChangeDetector.prototype.hydrateDirectives = function(directives) {}; + AbstractChangeDetector.prototype.hydrateDirectives = function(dispatcher) {}; AbstractChangeDetector.prototype.dehydrate = function() { this.dehydrateDirectives(true); if (this.strategy === constants_1.ChangeDetectionStrategy.OnPushObserve) { this._unsubsribeFromObservables(); } + this._unsubscribeFromOutputs(); + this.dispatcher = null; this.context = null; this.locals = null; this.pipes = null; @@ -51346,6 +48236,18 @@ $__System.registerDynamic("209", ["22", "3b", "206", "20e", "20b", "202", "50", AbstractChangeDetector.prototype.hydrated = function() { return lang_1.isPresent(this.context); }; + AbstractChangeDetector.prototype.destroyRecursive = function() { + this.dispatcher.notifyOnDestroy(); + this.dehydrate(); + var children = this.contentChildren; + for (var i = 0; i < children.length; i++) { + children[i].destroyRecursive(); + } + children = this.viewChildren; + for (var i = 0; i < children.length; i++) { + children[i].destroyRecursive(); + } + }; AbstractChangeDetector.prototype.afterContentLifecycleCallbacks = function() { this.dispatcher.notifyAfterContentChecked(); this.afterContentLifecycleCallbacksInternal(); @@ -51390,6 +48292,14 @@ $__System.registerDynamic("209", ["22", "3b", "206", "20e", "20b", "202", "50", } } }; + AbstractChangeDetector.prototype._unsubscribeFromOutputs = function() { + if (lang_1.isPresent(this.outputSubscriptions)) { + for (var i = 0; i < this.outputSubscriptions.length; ++i) { + async_1.ObservableWrapper.dispose(this.outputSubscriptions[i]); + this.outputSubscriptions[i] = null; + } + } + }; AbstractChangeDetector.prototype.observeValue = function(value, index) { var _this = this; if (observable_facade_1.isObservable(value)) { @@ -51461,7 +48371,7 @@ $__System.registerDynamic("209", ["22", "3b", "206", "20e", "20b", "202", "50", AbstractChangeDetector.prototype._throwError = function(exception, stack) { var error; try { - var c = this.dispatcher.getDebugContext(this._currentBinding().elementIndex, null); + var c = this.dispatcher.getDebugContext(null, this._currentBinding().elementIndex, null); var context = lang_1.isPresent(c) ? new _Context(c.element, c.componentElement, c.context, c.locals, c.injector, this._currentBinding().debug) : null; error = new exceptions_1.ChangeDetectionError(this._currentBinding().debug, exception, stack, context); } catch (e) { @@ -51472,8 +48382,8 @@ $__System.registerDynamic("209", ["22", "3b", "206", "20e", "20b", "202", "50", AbstractChangeDetector.prototype.throwOnChangeError = function(oldValue, newValue) { throw new exceptions_1.ExpressionChangedAfterItHasBeenCheckedException(this._currentBinding().debug, oldValue, newValue, null); }; - AbstractChangeDetector.prototype.throwDehydratedError = function() { - throw new exceptions_1.DehydratedException(); + AbstractChangeDetector.prototype.throwDehydratedError = function(detail) { + throw new exceptions_1.DehydratedException(detail); }; AbstractChangeDetector.prototype._currentBinding = function() { return this.bindingTargets[this.propertyBindingIndex]; @@ -51485,7 +48395,7 @@ $__System.registerDynamic("209", ["22", "3b", "206", "20e", "20b", "202", "50", return module.exports; }); -$__System.registerDynamic("201", [], true, function($__require, exports, module) { +$__System.registerDynamic("1d7", [], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -51562,7 +48472,7 @@ $__System.registerDynamic("201", [], true, function($__require, exports, module) return module.exports; }); -$__System.registerDynamic("207", ["22", "40", "3b", "209", "206", "202", "201"], true, function($__require, exports, module) { +$__System.registerDynamic("1db", ["2b", "3f", "3a", "89", "8a", "8b", "1d7", "84", "62"], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -51577,22 +48487,23 @@ $__System.registerDynamic("207", ["22", "40", "3b", "209", "206", "202", "201"], } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; - var lang_1 = $__require('22'); - var exceptions_1 = $__require('40'); - var collection_1 = $__require('3b'); - var abstract_change_detector_1 = $__require('209'); - var change_detection_util_1 = $__require('206'); - var constants_1 = $__require('202'); - var proto_record_1 = $__require('201'); + var lang_1 = $__require('2b'); + var exceptions_1 = $__require('3f'); + var collection_1 = $__require('3a'); + var abstract_change_detector_1 = $__require('89'); + var change_detection_util_1 = $__require('8a'); + var constants_1 = $__require('8b'); + var proto_record_1 = $__require('1d7'); + var reflection_1 = $__require('84'); + var async_1 = $__require('62'); var DynamicChangeDetector = (function(_super) { __extends(DynamicChangeDetector, _super); - function DynamicChangeDetector(id, dispatcher, numberOfPropertyProtoRecords, propertyBindingTargets, directiveIndices, strategy, _records, _eventBindings, _directiveRecords, _genConfig) { - _super.call(this, id, dispatcher, numberOfPropertyProtoRecords, propertyBindingTargets, directiveIndices, strategy); + function DynamicChangeDetector(id, numberOfPropertyProtoRecords, propertyBindingTargets, directiveIndices, strategy, _records, _eventBindings, _directiveRecords, _genConfig) { + _super.call(this, id, numberOfPropertyProtoRecords, propertyBindingTargets, directiveIndices, strategy); this._records = _records; this._eventBindings = _eventBindings; this._directiveRecords = _directiveRecords; this._genConfig = _genConfig; - this.directives = null; var len = _records.length + 1; this.values = collection_1.ListWrapper.createFixedSize(len); this.localPipes = collection_1.ListWrapper.createFixedSize(len); @@ -51655,22 +48566,41 @@ $__System.registerDynamic("207", ["22", "40", "3b", "209", "206", "202", "201"], return eb.eventName == eventName && eb.elIndex === elIndex; }); }; - DynamicChangeDetector.prototype.hydrateDirectives = function(directives) { + DynamicChangeDetector.prototype.hydrateDirectives = function(dispatcher) { + var _this = this; this.values[0] = this.context; - this.directives = directives; + this.dispatcher = dispatcher; if (this.strategy === constants_1.ChangeDetectionStrategy.OnPushObserve) { for (var i = 0; i < this.directiveIndices.length; ++i) { var index = this.directiveIndices[i]; - _super.prototype.observeDirective.call(this, directives.getDirectiveFor(index), i); + _super.prototype.observeDirective.call(this, this._getDirectiveFor(index), i); } } + this.outputSubscriptions = []; + for (var i = 0; i < this._directiveRecords.length; ++i) { + var r = this._directiveRecords[i]; + if (lang_1.isPresent(r.outputs)) { + r.outputs.forEach(function(output) { + var eventHandler = _this._createEventHandler(r.directiveIndex.elementIndex, output[1]); + var directive = _this._getDirectiveFor(r.directiveIndex); + var getter = reflection_1.reflector.getter(output[0]); + _this.outputSubscriptions.push(async_1.ObservableWrapper.subscribe(getter(directive), eventHandler)); + }); + } + } + }; + DynamicChangeDetector.prototype._createEventHandler = function(boundElementIndex, eventName) { + var _this = this; + return function(event) { + return _this.handleEvent(eventName, boundElementIndex, event); + }; }; DynamicChangeDetector.prototype.dehydrateDirectives = function(destroyPipes) { if (destroyPipes) { this._destroyPipes(); + this._destroyDirectives(); } this.values[0] = null; - this.directives = null; collection_1.ListWrapper.fill(this.values, change_detection_util_1.ChangeDetectionUtil.uninitialized, 1); collection_1.ListWrapper.fill(this.changes, false); collection_1.ListWrapper.fill(this.localPipes, null); @@ -51683,6 +48613,14 @@ $__System.registerDynamic("207", ["22", "40", "3b", "209", "206", "202", "201"], } } }; + DynamicChangeDetector.prototype._destroyDirectives = function() { + for (var i = 0; i < this._directiveRecords.length; ++i) { + var record = this._directiveRecords[i]; + if (record.callOnDestroy) { + this._getDirectiveFor(record.directiveIndex).ngOnDestroy(); + } + } + }; DynamicChangeDetector.prototype.checkNoChanges = function() { this.runDetectChanges(true); }; @@ -51771,10 +48709,10 @@ $__System.registerDynamic("207", ["22", "40", "3b", "209", "206", "202", "201"], } }; DynamicChangeDetector.prototype._getDirectiveFor = function(directiveIndex) { - return this.directives.getDirectiveFor(directiveIndex); + return this.dispatcher.getDirectiveFor(directiveIndex); }; DynamicChangeDetector.prototype._getDetectorFor = function(directiveIndex) { - return this.directives.getDetectorFor(directiveIndex); + return this.dispatcher.getDetectorFor(directiveIndex); }; DynamicChangeDetector.prototype._check = function(proto, throwOnChange, values, locals) { if (proto.isPipeRecord()) { @@ -51794,7 +48732,8 @@ $__System.registerDynamic("207", ["22", "40", "3b", "209", "206", "202", "201"], } if (proto.shouldBeChecked()) { var prevValue = this._readSelf(proto, values); - if (change_detection_util_1.ChangeDetectionUtil.looseNotIdentical(prevValue, currValue)) { + var detectedChange = throwOnChange ? !change_detection_util_1.ChangeDetectionUtil.devModeEqual(prevValue, currValue) : change_detection_util_1.ChangeDetectionUtil.looseNotIdentical(prevValue, currValue); + if (detectedChange) { if (proto.lastInBinding) { var change = change_detection_util_1.ChangeDetectionUtil.simpleChange(prevValue, currValue); if (throwOnChange) @@ -51877,7 +48816,8 @@ $__System.registerDynamic("207", ["22", "40", "3b", "209", "206", "202", "201"], var currValue = selectedPipe.pipe.transform(context, args); if (proto.shouldBeChecked()) { var prevValue = this._readSelf(proto, values); - if (change_detection_util_1.ChangeDetectionUtil.looseNotIdentical(prevValue, currValue)) { + var detectedChange = throwOnChange ? !change_detection_util_1.ChangeDetectionUtil.devModeEqual(prevValue, currValue) : change_detection_util_1.ChangeDetectionUtil.looseNotIdentical(prevValue, currValue); + if (detectedChange) { currValue = change_detection_util_1.ChangeDetectionUtil.unwrapValue(currValue); if (proto.lastInBinding) { var change = change_detection_util_1.ChangeDetectionUtil.simpleChange(prevValue, currValue); @@ -51962,7 +48902,7 @@ $__System.registerDynamic("207", ["22", "40", "3b", "209", "206", "202", "201"], return module.exports; }); -$__System.registerDynamic("20e", ["202"], true, function($__require, exports, module) { +$__System.registerDynamic("1e1", ["8b"], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -51977,7 +48917,7 @@ $__System.registerDynamic("20e", ["202"], true, function($__require, exports, mo } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; - var constants_1 = $__require('202'); + var constants_1 = $__require('8b'); var ChangeDetectorRef = (function() { function ChangeDetectorRef() {} return ChangeDetectorRef; @@ -52012,7 +48952,7 @@ $__System.registerDynamic("20e", ["202"], true, function($__require, exports, mo return module.exports; }); -$__System.registerDynamic("20f", [], true, function($__require, exports, module) { +$__System.registerDynamic("1e2", [], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -52026,13 +48966,13 @@ $__System.registerDynamic("20f", [], true, function($__require, exports, module) return module.exports; }); -$__System.registerDynamic("210", ["22"], true, function($__require, exports, module) { +$__System.registerDynamic("1e3", ["2b"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var lang_1 = $__require('22'); + var lang_1 = $__require('2b'); var DIRECTIVE_LIFECYCLE = "directiveLifecycle"; var BINDING = "native"; var DIRECTIVE = "directive"; @@ -52157,13 +49097,13 @@ $__System.registerDynamic("210", ["22"], true, function($__require, exports, mod return module.exports; }); -$__System.registerDynamic("202", ["22"], true, function($__require, exports, module) { +$__System.registerDynamic("8b", ["2b"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var lang_1 = $__require('22'); + var lang_1 = $__require('2b'); (function(ChangeDetectorState) { ChangeDetectorState[ChangeDetectorState["NeverChecked"] = 0] = "NeverChecked"; ChangeDetectorState[ChangeDetectorState["CheckedBefore"] = 1] = "CheckedBefore"; @@ -52190,14 +49130,14 @@ $__System.registerDynamic("202", ["22"], true, function($__require, exports, mod return module.exports; }); -$__System.registerDynamic("208", ["22", "202"], true, function($__require, exports, module) { +$__System.registerDynamic("1dc", ["2b", "8b"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var lang_1 = $__require('22'); - var constants_1 = $__require('202'); + var lang_1 = $__require('2b'); + var constants_1 = $__require('8b'); var DirectiveIndex = (function() { function DirectiveIndex(elementIndex, directiveIndex) { this.elementIndex = elementIndex; @@ -52224,7 +49164,9 @@ $__System.registerDynamic("208", ["22", "202"], true, function($__require, expor callOnChanges = _b.callOnChanges, callDoCheck = _b.callDoCheck, callOnInit = _b.callOnInit, - changeDetection = _b.changeDetection; + callOnDestroy = _b.callOnDestroy, + changeDetection = _b.changeDetection, + outputs = _b.outputs; this.directiveIndex = directiveIndex; this.callAfterContentInit = lang_1.normalizeBool(callAfterContentInit); this.callAfterContentChecked = lang_1.normalizeBool(callAfterContentChecked); @@ -52233,7 +49175,9 @@ $__System.registerDynamic("208", ["22", "202"], true, function($__require, expor this.callAfterViewChecked = lang_1.normalizeBool(callAfterViewChecked); this.callDoCheck = lang_1.normalizeBool(callDoCheck); this.callOnInit = lang_1.normalizeBool(callOnInit); + this.callOnDestroy = lang_1.normalizeBool(callOnDestroy); this.changeDetection = changeDetection; + this.outputs = outputs; } DirectiveRecord.prototype.isDefaultChangeDetection = function() { return constants_1.isDefaultChangeDetectionStrategy(this.changeDetection); @@ -52245,19 +49189,19 @@ $__System.registerDynamic("208", ["22", "202"], true, function($__require, expor return module.exports; }); -$__System.registerDynamic("206", ["22", "40", "3b", "202", "20f", "210", "208"], true, function($__require, exports, module) { +$__System.registerDynamic("8a", ["2b", "3f", "3a", "8b", "1e2", "1e3", "1dc"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var lang_1 = $__require('22'); - var exceptions_1 = $__require('40'); - var collection_1 = $__require('3b'); - var constants_1 = $__require('202'); - var pipe_lifecycle_reflector_1 = $__require('20f'); - var binding_record_1 = $__require('210'); - var directive_record_1 = $__require('208'); + var lang_1 = $__require('2b'); + var exceptions_1 = $__require('3f'); + var collection_1 = $__require('3a'); + var constants_1 = $__require('8b'); + var pipe_lifecycle_reflector_1 = $__require('1e2'); + var binding_record_1 = $__require('1e3'); + var directive_record_1 = $__require('1dc'); var WrappedValue = (function() { function WrappedValue(wrapped) { this.wrapped = wrapped; @@ -52461,6 +49405,15 @@ $__System.registerDynamic("206", ["22", "40", "3b", "202", "20f", "210", "208"], ChangeDetectionUtil.looseNotIdentical = function(a, b) { return !lang_1.looseIdentical(a, b); }; + ChangeDetectionUtil.devModeEqual = function(a, b) { + if (collection_1.isListLikeIterable(a) && collection_1.isListLikeIterable(b)) { + return collection_1.areIterablesEqual(a, b, ChangeDetectionUtil.devModeEqual); + } else if (!collection_1.isListLikeIterable(a) && !lang_1.isPrimitive(a) && !collection_1.isListLikeIterable(b) && !lang_1.isPrimitive(b)) { + return true; + } else { + return lang_1.looseIdentical(a, b); + } + }; ChangeDetectionUtil.uninitialized = lang_1.CONST_EXPR(new Object()); return ChangeDetectionUtil; })(); @@ -52469,60 +49422,60 @@ $__System.registerDynamic("206", ["22", "40", "3b", "202", "20f", "210", "208"], return module.exports; }); -$__System.registerDynamic("72", ["1f5", "1f6", "1f7", "1f8", "22", "1fc", "1f9", "1fb", "1fd", "20b", "1db", "202", "205", "20a", "210", "208", "207", "20e", "206"], true, function($__require, exports, module) { +$__System.registerDynamic("6e", ["1cd", "1ce", "1cf", "1d0", "2b", "74", "1d1", "1d3", "1df", "1de", "1ca", "8b", "1da", "1dd", "1e3", "1dc", "1db", "1e1", "8a"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var iterable_differs_1 = $__require('1f5'); - var default_iterable_differ_1 = $__require('1f6'); - var keyvalue_differs_1 = $__require('1f7'); - var default_keyvalue_differ_1 = $__require('1f8'); - var lang_1 = $__require('22'); - var ast_1 = $__require('1fc'); + var iterable_differs_1 = $__require('1cd'); + var default_iterable_differ_1 = $__require('1ce'); + var keyvalue_differs_1 = $__require('1cf'); + var default_keyvalue_differ_1 = $__require('1d0'); + var lang_1 = $__require('2b'); + var ast_1 = $__require('74'); exports.ASTWithSource = ast_1.ASTWithSource; exports.AST = ast_1.AST; exports.AstTransformer = ast_1.AstTransformer; exports.PropertyRead = ast_1.PropertyRead; exports.LiteralArray = ast_1.LiteralArray; exports.ImplicitReceiver = ast_1.ImplicitReceiver; - var lexer_1 = $__require('1f9'); + var lexer_1 = $__require('1d1'); exports.Lexer = lexer_1.Lexer; - var parser_1 = $__require('1fb'); + var parser_1 = $__require('1d3'); exports.Parser = parser_1.Parser; - var locals_1 = $__require('1fd'); + var locals_1 = $__require('1df'); exports.Locals = locals_1.Locals; - var exceptions_1 = $__require('20b'); + var exceptions_1 = $__require('1de'); exports.DehydratedException = exceptions_1.DehydratedException; exports.ExpressionChangedAfterItHasBeenCheckedException = exceptions_1.ExpressionChangedAfterItHasBeenCheckedException; exports.ChangeDetectionError = exceptions_1.ChangeDetectionError; - var interfaces_1 = $__require('1db'); + var interfaces_1 = $__require('1ca'); exports.ChangeDetectorDefinition = interfaces_1.ChangeDetectorDefinition; exports.DebugContext = interfaces_1.DebugContext; exports.ChangeDetectorGenConfig = interfaces_1.ChangeDetectorGenConfig; - var constants_1 = $__require('202'); + var constants_1 = $__require('8b'); exports.ChangeDetectionStrategy = constants_1.ChangeDetectionStrategy; exports.CHANGE_DETECTION_STRATEGY_VALUES = constants_1.CHANGE_DETECTION_STRATEGY_VALUES; - var proto_change_detector_1 = $__require('205'); + var proto_change_detector_1 = $__require('1da'); exports.DynamicProtoChangeDetector = proto_change_detector_1.DynamicProtoChangeDetector; - var jit_proto_change_detector_1 = $__require('20a'); + var jit_proto_change_detector_1 = $__require('1dd'); exports.JitProtoChangeDetector = jit_proto_change_detector_1.JitProtoChangeDetector; - var binding_record_1 = $__require('210'); + var binding_record_1 = $__require('1e3'); exports.BindingRecord = binding_record_1.BindingRecord; exports.BindingTarget = binding_record_1.BindingTarget; - var directive_record_1 = $__require('208'); + var directive_record_1 = $__require('1dc'); exports.DirectiveIndex = directive_record_1.DirectiveIndex; exports.DirectiveRecord = directive_record_1.DirectiveRecord; - var dynamic_change_detector_1 = $__require('207'); + var dynamic_change_detector_1 = $__require('1db'); exports.DynamicChangeDetector = dynamic_change_detector_1.DynamicChangeDetector; - var change_detector_ref_1 = $__require('20e'); + var change_detector_ref_1 = $__require('1e1'); exports.ChangeDetectorRef = change_detector_ref_1.ChangeDetectorRef; - var iterable_differs_2 = $__require('1f5'); + var iterable_differs_2 = $__require('1cd'); exports.IterableDiffers = iterable_differs_2.IterableDiffers; - var keyvalue_differs_2 = $__require('1f7'); + var keyvalue_differs_2 = $__require('1cf'); exports.KeyValueDiffers = keyvalue_differs_2.KeyValueDiffers; - var change_detection_util_1 = $__require('206'); + var change_detection_util_1 = $__require('8a'); exports.WrappedValue = change_detection_util_1.WrappedValue; exports.SimpleChange = change_detection_util_1.SimpleChange; exports.keyValDiff = lang_1.CONST_EXPR([lang_1.CONST_EXPR(new default_keyvalue_differ_1.DefaultKeyValueDifferFactory())]); @@ -52533,368 +49486,67 @@ $__System.registerDynamic("72", ["1f5", "1f6", "1f7", "1f8", "22", "1fc", "1f9", return module.exports; }); -$__System.registerDynamic("211", ["72"], true, function($__require, exports, module) { +$__System.registerDynamic("93", [], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var change_detection_1 = $__require('72'); - exports.ChangeDetectionStrategy = change_detection_1.ChangeDetectionStrategy; - exports.ExpressionChangedAfterItHasBeenCheckedException = change_detection_1.ExpressionChangedAfterItHasBeenCheckedException; - exports.ChangeDetectionError = change_detection_1.ChangeDetectionError; - exports.ChangeDetectorRef = change_detection_1.ChangeDetectorRef; - exports.WrappedValue = change_detection_1.WrappedValue; - exports.SimpleChange = change_detection_1.SimpleChange; - exports.IterableDiffers = change_detection_1.IterableDiffers; - exports.KeyValueDiffers = change_detection_1.KeyValueDiffers; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("81", ["22", "1f4", "211"], true, function($__require, exports, module) { - "use strict"; - ; - var global = this, - __define = global.define; - global.define = undefined; - var __extends = (this && this.__extends) || function(d, b) { - for (var p in b) - if (b.hasOwnProperty(p)) - d[p] = b[p]; - function __() { - this.constructor = d; - } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; - var __decorate = (this && this.__decorate) || function(decorators, target, key, desc) { - var c = arguments.length, - r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, - d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") - r = Reflect.decorate(decorators, target, key, desc); - else - for (var i = decorators.length - 1; i >= 0; i--) - if (d = decorators[i]) - r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; - }; - var __metadata = (this && this.__metadata) || function(k, v) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") - return Reflect.metadata(k, v); - }; - var lang_1 = $__require('22'); - var metadata_1 = $__require('1f4'); - var change_detection_1 = $__require('211'); - var DirectiveMetadata = (function(_super) { - __extends(DirectiveMetadata, _super); - function DirectiveMetadata(_a) { - var _b = _a === void 0 ? {} : _a, - selector = _b.selector, - inputs = _b.inputs, - outputs = _b.outputs, - properties = _b.properties, - events = _b.events, - host = _b.host, - bindings = _b.bindings, - providers = _b.providers, - exportAs = _b.exportAs, - queries = _b.queries; - _super.call(this); - this.selector = selector; - this._inputs = inputs; - this._properties = properties; - this._outputs = outputs; - this._events = events; - this.host = host; - this.exportAs = exportAs; - this.queries = queries; - this._providers = providers; - this._bindings = bindings; - } - Object.defineProperty(DirectiveMetadata.prototype, "inputs", { - get: function() { - return lang_1.isPresent(this._properties) && this._properties.length > 0 ? this._properties : this._inputs; - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(DirectiveMetadata.prototype, "properties", { - get: function() { - return this.inputs; - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(DirectiveMetadata.prototype, "outputs", { - get: function() { - return lang_1.isPresent(this._events) && this._events.length > 0 ? this._events : this._outputs; - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(DirectiveMetadata.prototype, "events", { - get: function() { - return this.outputs; - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(DirectiveMetadata.prototype, "providers", { - get: function() { - return lang_1.isPresent(this._bindings) && this._bindings.length > 0 ? this._bindings : this._providers; - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(DirectiveMetadata.prototype, "bindings", { - get: function() { - return this.providers; - }, - enumerable: true, - configurable: true - }); - DirectiveMetadata = __decorate([lang_1.CONST(), __metadata('design:paramtypes', [Object])], DirectiveMetadata); - return DirectiveMetadata; - })(metadata_1.InjectableMetadata); - exports.DirectiveMetadata = DirectiveMetadata; - var ComponentMetadata = (function(_super) { - __extends(ComponentMetadata, _super); - function ComponentMetadata(_a) { - var _b = _a === void 0 ? {} : _a, - selector = _b.selector, - inputs = _b.inputs, - outputs = _b.outputs, - properties = _b.properties, - events = _b.events, - host = _b.host, - exportAs = _b.exportAs, - moduleId = _b.moduleId, - bindings = _b.bindings, - providers = _b.providers, - viewBindings = _b.viewBindings, - viewProviders = _b.viewProviders, - _c = _b.changeDetection, - changeDetection = _c === void 0 ? change_detection_1.ChangeDetectionStrategy.Default : _c, - queries = _b.queries, - templateUrl = _b.templateUrl, - template = _b.template, - styleUrls = _b.styleUrls, - styles = _b.styles, - directives = _b.directives, - pipes = _b.pipes, - encapsulation = _b.encapsulation; - _super.call(this, { - selector: selector, - inputs: inputs, - outputs: outputs, - properties: properties, - events: events, - host: host, - exportAs: exportAs, - bindings: bindings, - providers: providers, - queries: queries + var PromiseWrapper = (function() { + function PromiseWrapper() {} + PromiseWrapper.resolve = function(obj) { + return Promise.resolve(obj); + }; + PromiseWrapper.reject = function(obj, _) { + return Promise.reject(obj); + }; + PromiseWrapper.catchError = function(promise, onError) { + return promise.catch(onError); + }; + PromiseWrapper.all = function(promises) { + if (promises.length == 0) + return Promise.resolve([]); + return Promise.all(promises); + }; + PromiseWrapper.then = function(promise, success, rejection) { + return promise.then(success, rejection); + }; + PromiseWrapper.wrap = function(computation) { + return new Promise(function(res, rej) { + try { + res(computation()); + } catch (e) { + rej(e); + } }); - this.changeDetection = changeDetection; - this._viewProviders = viewProviders; - this._viewBindings = viewBindings; - this.templateUrl = templateUrl; - this.template = template; - this.styleUrls = styleUrls; - this.styles = styles; - this.directives = directives; - this.pipes = pipes; - this.encapsulation = encapsulation; - this.moduleId = moduleId; - } - Object.defineProperty(ComponentMetadata.prototype, "viewProviders", { - get: function() { - return lang_1.isPresent(this._viewBindings) && this._viewBindings.length > 0 ? this._viewBindings : this._viewProviders; - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(ComponentMetadata.prototype, "viewBindings", { - get: function() { - return this.viewProviders; - }, - enumerable: true, - configurable: true - }); - ComponentMetadata = __decorate([lang_1.CONST(), __metadata('design:paramtypes', [Object])], ComponentMetadata); - return ComponentMetadata; - })(DirectiveMetadata); - exports.ComponentMetadata = ComponentMetadata; - var PipeMetadata = (function(_super) { - __extends(PipeMetadata, _super); - function PipeMetadata(_a) { - var name = _a.name, - pure = _a.pure; - _super.call(this); - this.name = name; - this._pure = pure; - } - Object.defineProperty(PipeMetadata.prototype, "pure", { - get: function() { - return lang_1.isPresent(this._pure) ? this._pure : true; - }, - enumerable: true, - configurable: true - }); - PipeMetadata = __decorate([lang_1.CONST(), __metadata('design:paramtypes', [Object])], PipeMetadata); - return PipeMetadata; - })(metadata_1.InjectableMetadata); - exports.PipeMetadata = PipeMetadata; - var InputMetadata = (function() { - function InputMetadata(bindingPropertyName) { - this.bindingPropertyName = bindingPropertyName; - } - InputMetadata = __decorate([lang_1.CONST(), __metadata('design:paramtypes', [String])], InputMetadata); - return InputMetadata; - })(); - exports.InputMetadata = InputMetadata; - var OutputMetadata = (function() { - function OutputMetadata(bindingPropertyName) { - this.bindingPropertyName = bindingPropertyName; - } - OutputMetadata = __decorate([lang_1.CONST(), __metadata('design:paramtypes', [String])], OutputMetadata); - return OutputMetadata; - })(); - exports.OutputMetadata = OutputMetadata; - var HostBindingMetadata = (function() { - function HostBindingMetadata(hostPropertyName) { - this.hostPropertyName = hostPropertyName; - } - HostBindingMetadata = __decorate([lang_1.CONST(), __metadata('design:paramtypes', [String])], HostBindingMetadata); - return HostBindingMetadata; - })(); - exports.HostBindingMetadata = HostBindingMetadata; - var HostListenerMetadata = (function() { - function HostListenerMetadata(eventName, args) { - this.eventName = eventName; - this.args = args; - } - HostListenerMetadata = __decorate([lang_1.CONST(), __metadata('design:paramtypes', [String, Array])], HostListenerMetadata); - return HostListenerMetadata; - })(); - exports.HostListenerMetadata = HostListenerMetadata; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("7f", ["22", "38"], true, function($__require, exports, module) { - ; - var global = this, - __define = global.define; - global.define = undefined; - (function(process) { - 'use strict'; - var __decorate = (this && this.__decorate) || function(decorators, target, key, desc) { - var c = arguments.length, - r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, - d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") - r = Reflect.decorate(decorators, target, key, desc); - else - for (var i = decorators.length - 1; i >= 0; i--) - if (d = decorators[i]) - r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; }; - var __metadata = (this && this.__metadata) || function(k, v) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") - return Reflect.metadata(k, v); + PromiseWrapper.scheduleMicrotask = function(computation) { + PromiseWrapper.then(PromiseWrapper.resolve(null), computation, function(_) {}); }; - var lang_1 = $__require('22'); - (function(ViewEncapsulation) { - ViewEncapsulation[ViewEncapsulation["Emulated"] = 0] = "Emulated"; - ViewEncapsulation[ViewEncapsulation["Native"] = 1] = "Native"; - ViewEncapsulation[ViewEncapsulation["None"] = 2] = "None"; - })(exports.ViewEncapsulation || (exports.ViewEncapsulation = {})); - var ViewEncapsulation = exports.ViewEncapsulation; - exports.VIEW_ENCAPSULATION_VALUES = [ViewEncapsulation.Emulated, ViewEncapsulation.Native, ViewEncapsulation.None]; - var ViewMetadata = (function() { - function ViewMetadata(_a) { - var _b = _a === void 0 ? {} : _a, - templateUrl = _b.templateUrl, - template = _b.template, - directives = _b.directives, - pipes = _b.pipes, - encapsulation = _b.encapsulation, - styles = _b.styles, - styleUrls = _b.styleUrls; - this.templateUrl = templateUrl; - this.template = template; - this.styleUrls = styleUrls; - this.styles = styles; - this.directives = directives; - this.pipes = pipes; - this.encapsulation = encapsulation; - } - ViewMetadata = __decorate([lang_1.CONST(), __metadata('design:paramtypes', [Object])], ViewMetadata); - return ViewMetadata; - })(); - exports.ViewMetadata = ViewMetadata; - })($__require('38')); + PromiseWrapper.isPromise = function(obj) { + return obj instanceof Promise; + }; + PromiseWrapper.completer = function() { + var resolve; + var reject; + var p = new Promise(function(res, rej) { + resolve = res; + reject = rej; + }); + return { + promise: p, + resolve: resolve, + reject: reject + }; + }; + return PromiseWrapper; + })(); + exports.PromiseWrapper = PromiseWrapper; global.define = __define; return module.exports; }); -$__System.registerDynamic("54", ["1f2", "81", "7f", "1c5"], true, function($__require, exports, module) { - "use strict"; - ; - var global = this, - __define = global.define; - global.define = undefined; - var di_1 = $__require('1f2'); - exports.QueryMetadata = di_1.QueryMetadata; - exports.ContentChildrenMetadata = di_1.ContentChildrenMetadata; - exports.ContentChildMetadata = di_1.ContentChildMetadata; - exports.ViewChildrenMetadata = di_1.ViewChildrenMetadata; - exports.ViewQueryMetadata = di_1.ViewQueryMetadata; - exports.ViewChildMetadata = di_1.ViewChildMetadata; - exports.AttributeMetadata = di_1.AttributeMetadata; - var directives_1 = $__require('81'); - exports.ComponentMetadata = directives_1.ComponentMetadata; - exports.DirectiveMetadata = directives_1.DirectiveMetadata; - exports.PipeMetadata = directives_1.PipeMetadata; - exports.InputMetadata = directives_1.InputMetadata; - exports.OutputMetadata = directives_1.OutputMetadata; - exports.HostBindingMetadata = directives_1.HostBindingMetadata; - exports.HostListenerMetadata = directives_1.HostListenerMetadata; - var view_1 = $__require('7f'); - exports.ViewMetadata = view_1.ViewMetadata; - exports.ViewEncapsulation = view_1.ViewEncapsulation; - var di_2 = $__require('1f2'); - var directives_2 = $__require('81'); - var view_2 = $__require('7f'); - var decorators_1 = $__require('1c5'); - exports.Component = decorators_1.makeDecorator(directives_2.ComponentMetadata, function(fn) { - return fn.View = exports.View; - }); - exports.Directive = decorators_1.makeDecorator(directives_2.DirectiveMetadata); - exports.View = decorators_1.makeDecorator(view_2.ViewMetadata, function(fn) { - return fn.View = exports.View; - }); - exports.Attribute = decorators_1.makeParamDecorator(di_2.AttributeMetadata); - exports.Query = decorators_1.makeParamDecorator(di_2.QueryMetadata); - exports.ContentChildren = decorators_1.makePropDecorator(di_2.ContentChildrenMetadata); - exports.ContentChild = decorators_1.makePropDecorator(di_2.ContentChildMetadata); - exports.ViewChildren = decorators_1.makePropDecorator(di_2.ViewChildrenMetadata); - exports.ViewChild = decorators_1.makePropDecorator(di_2.ViewChildMetadata); - exports.ViewQuery = decorators_1.makeParamDecorator(di_2.ViewQueryMetadata); - exports.Pipe = decorators_1.makeDecorator(directives_2.PipeMetadata); - exports.Input = decorators_1.makePropDecorator(directives_2.InputMetadata); - exports.Output = decorators_1.makePropDecorator(directives_2.OutputMetadata); - exports.HostBinding = decorators_1.makePropDecorator(directives_2.HostBindingMetadata); - exports.HostListener = decorators_1.makePropDecorator(directives_2.HostListenerMetadata); - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("68", ["22", "40", "5a", "54"], true, function($__require, exports, module) { - "use strict"; +$__System.registerDynamic("1e4", ["1e5", "1e6"], true, function($__require, exports, module) { ; var global = this, __define = global.define; @@ -52908,204 +49560,2183 @@ $__System.registerDynamic("68", ["22", "40", "5a", "54"], true, function($__requ } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; - var __decorate = (this && this.__decorate) || function(decorators, target, key, desc) { - var c = arguments.length, - r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, - d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") - r = Reflect.decorate(decorators, target, key, desc); - else - for (var i = decorators.length - 1; i >= 0; i--) - if (d = decorators[i]) - r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; - }; - var __metadata = (this && this.__metadata) || function(k, v) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") - return Reflect.metadata(k, v); - }; - var lang_1 = $__require('22'); - var exceptions_1 = $__require('40'); - var api_1 = $__require('5a'); - var metadata_1 = $__require('54'); - var metadata_2 = $__require('54'); - exports.ViewEncapsulation = metadata_2.ViewEncapsulation; - var CompiledHostTemplate = (function() { - function CompiledHostTemplate(template) { - this.template = template; + var Subscription_1 = $__require('1e5'); + var Subscriber_1 = $__require('1e6'); + var SubjectSubscription = (function(_super) { + __extends(SubjectSubscription, _super); + function SubjectSubscription(subject, observer) { + _super.call(this); + this.subject = subject; + this.observer = observer; + this.isUnsubscribed = false; } - CompiledHostTemplate = __decorate([lang_1.CONST(), __metadata('design:paramtypes', [CompiledComponentTemplate])], CompiledHostTemplate); - return CompiledHostTemplate; - })(); - exports.CompiledHostTemplate = CompiledHostTemplate; - var CompiledComponentTemplate = (function() { - function CompiledComponentTemplate(id, changeDetectorFactory, commands, styles) { - this.id = id; - this.changeDetectorFactory = changeDetectorFactory; - this.commands = commands; - this.styles = styles; - } - CompiledComponentTemplate = __decorate([lang_1.CONST(), __metadata('design:paramtypes', [String, Function, Array, Array])], CompiledComponentTemplate); - return CompiledComponentTemplate; - })(); - exports.CompiledComponentTemplate = CompiledComponentTemplate; - var EMPTY_ARR = lang_1.CONST_EXPR([]); - var TextCmd = (function() { - function TextCmd(value, isBound, ngContentIndex) { - this.value = value; - this.isBound = isBound; - this.ngContentIndex = ngContentIndex; - } - TextCmd.prototype.visit = function(visitor, context) { - return visitor.visitText(this, context); + SubjectSubscription.prototype.unsubscribe = function() { + if (this.isUnsubscribed) { + return; + } + this.isUnsubscribed = true; + var subject = this.subject; + var observers = subject.observers; + this.subject = void 0; + if (!observers || observers.length === 0 || subject.isUnsubscribed) { + return; + } + if (this.observer instanceof Subscriber_1.Subscriber) { + this.observer.unsubscribe(); + } + var subscriberIndex = observers.indexOf(this.observer); + if (subscriberIndex !== -1) { + observers.splice(subscriberIndex, 1); + } }; - TextCmd = __decorate([lang_1.CONST(), __metadata('design:paramtypes', [String, Boolean, Number])], TextCmd); - return TextCmd; - })(); - exports.TextCmd = TextCmd; - var NgContentCmd = (function() { - function NgContentCmd(index, ngContentIndex) { - this.index = index; - this.ngContentIndex = ngContentIndex; - this.isBound = false; + return SubjectSubscription; + })(Subscription_1.Subscription); + exports.SubjectSubscription = SubjectSubscription; + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("1e7", ["1e8", "1e6", "1e5", "1e4", "1e9"], true, function($__require, exports, module) { + ; + var global = this, + __define = global.define; + global.define = undefined; + var __extends = (this && this.__extends) || function(d, b) { + for (var p in b) + if (b.hasOwnProperty(p)) + d[p] = b[p]; + function __() { + this.constructor = d; } - NgContentCmd.prototype.visit = function(visitor, context) { - return visitor.visitNgContent(this, context); - }; - NgContentCmd = __decorate([lang_1.CONST(), __metadata('design:paramtypes', [Number, Number])], NgContentCmd); - return NgContentCmd; - })(); - exports.NgContentCmd = NgContentCmd; - var IBeginElementCmd = (function(_super) { - __extends(IBeginElementCmd, _super); - function IBeginElementCmd() { + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; + var Observable_1 = $__require('1e8'); + var Subscriber_1 = $__require('1e6'); + var Subscription_1 = $__require('1e5'); + var SubjectSubscription_1 = $__require('1e4'); + var rxSubscriber_1 = $__require('1e9'); + var subscriptionAdd = Subscription_1.Subscription.prototype.add; + var subscriptionRemove = Subscription_1.Subscription.prototype.remove; + var subscriptionUnsubscribe = Subscription_1.Subscription.prototype.unsubscribe; + var subscriberNext = Subscriber_1.Subscriber.prototype.next; + var subscriberError = Subscriber_1.Subscriber.prototype.error; + var subscriberComplete = Subscriber_1.Subscriber.prototype.complete; + var _subscriberNext = Subscriber_1.Subscriber.prototype._next; + var _subscriberError = Subscriber_1.Subscriber.prototype._error; + var _subscriberComplete = Subscriber_1.Subscriber.prototype._complete; + var Subject = (function(_super) { + __extends(Subject, _super); + function Subject() { _super.apply(this, arguments); + this.observers = []; + this.isUnsubscribed = false; + this.dispatching = false; + this.errorSignal = false; + this.completeSignal = false; } - Object.defineProperty(IBeginElementCmd.prototype, "variableNameAndValues", { + Subject.prototype[rxSubscriber_1.rxSubscriber] = function() { + return this; + }; + Subject.create = function(source, destination) { + return new BidirectionalSubject(source, destination); + }; + Subject.prototype.lift = function(operator) { + var subject = new BidirectionalSubject(this, this.destination || this); + subject.operator = operator; + return subject; + }; + Subject.prototype._subscribe = function(subscriber) { + if (subscriber.isUnsubscribed) { + return; + } else if (this.errorSignal) { + subscriber.error(this.errorInstance); + return; + } else if (this.completeSignal) { + subscriber.complete(); + return; + } else if (this.isUnsubscribed) { + throw new Error('Cannot subscribe to a disposed Subject.'); + } + this.observers.push(subscriber); + return new SubjectSubscription_1.SubjectSubscription(this, subscriber); + }; + Subject.prototype.add = function(subscription) { + subscriptionAdd.call(this, subscription); + }; + Subject.prototype.remove = function(subscription) { + subscriptionRemove.call(this, subscription); + }; + Subject.prototype.unsubscribe = function() { + this.observers = void 0; + subscriptionUnsubscribe.call(this); + }; + Subject.prototype.next = function(value) { + if (this.isUnsubscribed) { + return; + } + this.dispatching = true; + this._next(value); + this.dispatching = false; + if (this.errorSignal) { + this.error(this.errorInstance); + } else if (this.completeSignal) { + this.complete(); + } + }; + Subject.prototype.error = function(err) { + if (this.isUnsubscribed || this.completeSignal) { + return; + } + this.errorSignal = true; + this.errorInstance = err; + if (this.dispatching) { + return; + } + this._error(err); + this.unsubscribe(); + }; + Subject.prototype.complete = function() { + if (this.isUnsubscribed || this.errorSignal) { + return; + } + this.completeSignal = true; + if (this.dispatching) { + return; + } + this._complete(); + this.unsubscribe(); + }; + Subject.prototype._next = function(value) { + var index = -1; + var observers = this.observers.slice(0); + var len = observers.length; + while (++index < len) { + observers[index].next(value); + } + }; + Subject.prototype._error = function(err) { + var index = -1; + var observers = this.observers; + var len = observers.length; + this.observers = void 0; + this.isUnsubscribed = true; + while (++index < len) { + observers[index].error(err); + } + this.isUnsubscribed = false; + }; + Subject.prototype._complete = function() { + var index = -1; + var observers = this.observers; + var len = observers.length; + this.observers = void 0; + this.isUnsubscribed = true; + while (++index < len) { + observers[index].complete(); + } + this.isUnsubscribed = false; + }; + return Subject; + })(Observable_1.Observable); + exports.Subject = Subject; + var BidirectionalSubject = (function(_super) { + __extends(BidirectionalSubject, _super); + function BidirectionalSubject(source, destination) { + _super.call(this); + this.source = source; + this.destination = destination; + } + BidirectionalSubject.prototype._subscribe = function(subscriber) { + var operator = this.operator; + return this.source._subscribe.call(this.source, operator ? operator.call(subscriber) : subscriber); + }; + BidirectionalSubject.prototype.next = function(value) { + subscriberNext.call(this, value); + }; + BidirectionalSubject.prototype.error = function(err) { + subscriberError.call(this, err); + }; + BidirectionalSubject.prototype.complete = function() { + subscriberComplete.call(this); + }; + BidirectionalSubject.prototype._next = function(value) { + _subscriberNext.call(this, value); + }; + BidirectionalSubject.prototype._error = function(err) { + _subscriberError.call(this, err); + }; + BidirectionalSubject.prototype._complete = function() { + _subscriberComplete.call(this); + }; + return BidirectionalSubject; + })(Subject); + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("1ea", ["1e5"], true, function($__require, exports, module) { + ; + var global = this, + __define = global.define; + global.define = undefined; + var __extends = (this && this.__extends) || function(d, b) { + for (var p in b) + if (b.hasOwnProperty(p)) + d[p] = b[p]; + function __() { + this.constructor = d; + } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; + var Subscription_1 = $__require('1e5'); + var QueueAction = (function(_super) { + __extends(QueueAction, _super); + function QueueAction(scheduler, work) { + _super.call(this); + this.scheduler = scheduler; + this.work = work; + } + QueueAction.prototype.schedule = function(state) { + if (this.isUnsubscribed) { + return this; + } + this.state = state; + var scheduler = this.scheduler; + scheduler.actions.push(this); + scheduler.flush(); + return this; + }; + QueueAction.prototype.execute = function() { + if (this.isUnsubscribed) { + throw new Error('How did did we execute a canceled Action?'); + } + this.work(this.state); + }; + QueueAction.prototype.unsubscribe = function() { + var scheduler = this.scheduler; + var actions = scheduler.actions; + var index = actions.indexOf(this); + this.work = void 0; + this.state = void 0; + this.scheduler = void 0; + if (index !== -1) { + actions.splice(index, 1); + } + _super.prototype.unsubscribe.call(this); + }; + return QueueAction; + })(Subscription_1.Subscription); + exports.QueueAction = QueueAction; + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("1eb", ["1ea"], true, function($__require, exports, module) { + ; + var global = this, + __define = global.define; + global.define = undefined; + var __extends = (this && this.__extends) || function(d, b) { + for (var p in b) + if (b.hasOwnProperty(p)) + d[p] = b[p]; + function __() { + this.constructor = d; + } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; + var QueueAction_1 = $__require('1ea'); + var FutureAction = (function(_super) { + __extends(FutureAction, _super); + function FutureAction(scheduler, work) { + _super.call(this, scheduler, work); + this.scheduler = scheduler; + this.work = work; + } + FutureAction.prototype.schedule = function(state, delay) { + var _this = this; + if (delay === void 0) { + delay = 0; + } + if (this.isUnsubscribed) { + return this; + } + this.delay = delay; + this.state = state; + var id = this.id; + if (id != null) { + this.id = undefined; + clearTimeout(id); + } + var scheduler = this.scheduler; + this.id = setTimeout(function() { + _this.id = void 0; + scheduler.actions.push(_this); + scheduler.flush(); + }, this.delay); + return this; + }; + FutureAction.prototype.unsubscribe = function() { + var id = this.id; + if (id != null) { + this.id = void 0; + clearTimeout(id); + } + _super.prototype.unsubscribe.call(this); + }; + return FutureAction; + })(QueueAction_1.QueueAction); + exports.FutureAction = FutureAction; + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("1ec", ["1ea", "1eb"], true, function($__require, exports, module) { + ; + var global = this, + __define = global.define; + global.define = undefined; + var QueueAction_1 = $__require('1ea'); + var FutureAction_1 = $__require('1eb'); + var QueueScheduler = (function() { + function QueueScheduler() { + this.actions = []; + this.active = false; + this.scheduled = false; + } + QueueScheduler.prototype.now = function() { + return Date.now(); + }; + QueueScheduler.prototype.flush = function() { + if (this.active || this.scheduled) { + return; + } + this.active = true; + var actions = this.actions; + for (var action = void 0; action = actions.shift(); ) { + action.execute(); + } + this.active = false; + }; + QueueScheduler.prototype.schedule = function(work, delay, state) { + if (delay === void 0) { + delay = 0; + } + return (delay <= 0) ? this.scheduleNow(work, state) : this.scheduleLater(work, delay, state); + }; + QueueScheduler.prototype.scheduleNow = function(work, state) { + return new QueueAction_1.QueueAction(this, work).schedule(state); + }; + QueueScheduler.prototype.scheduleLater = function(work, delay, state) { + return new FutureAction_1.FutureAction(this, work).schedule(state, delay); + }; + return QueueScheduler; + })(); + exports.QueueScheduler = QueueScheduler; + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("1ed", ["1ec"], true, function($__require, exports, module) { + ; + var global = this, + __define = global.define; + global.define = undefined; + var QueueScheduler_1 = $__require('1ec'); + exports.queue = new QueueScheduler_1.QueueScheduler(); + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("1ee", ["1e8", "1e5", "1ed"], true, function($__require, exports, module) { + ; + var global = this, + __define = global.define; + global.define = undefined; + var __extends = (this && this.__extends) || function(d, b) { + for (var p in b) + if (b.hasOwnProperty(p)) + d[p] = b[p]; + function __() { + this.constructor = d; + } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; + var Observable_1 = $__require('1e8'); + var Subscription_1 = $__require('1e5'); + var queue_1 = $__require('1ed'); + var PromiseObservable = (function(_super) { + __extends(PromiseObservable, _super); + function PromiseObservable(promise, scheduler) { + if (scheduler === void 0) { + scheduler = queue_1.queue; + } + _super.call(this); + this.promise = promise; + this.scheduler = scheduler; + this._isScalar = false; + } + PromiseObservable.create = function(promise, scheduler) { + if (scheduler === void 0) { + scheduler = queue_1.queue; + } + return new PromiseObservable(promise, scheduler); + }; + PromiseObservable.prototype._subscribe = function(subscriber) { + var _this = this; + var scheduler = this.scheduler; + var promise = this.promise; + if (scheduler === queue_1.queue) { + if (this._isScalar) { + subscriber.next(this.value); + subscriber.complete(); + } else { + promise.then(function(value) { + _this._isScalar = true; + _this.value = value; + subscriber.next(value); + subscriber.complete(); + }, function(err) { + return subscriber.error(err); + }).then(null, function(err) { + setTimeout(function() { + throw err; + }); + }); + } + } else { + var subscription = new Subscription_1.Subscription(); + if (this._isScalar) { + var value = this.value; + subscription.add(scheduler.schedule(dispatchNext, 0, { + value: value, + subscriber: subscriber + })); + } else { + promise.then(function(value) { + _this._isScalar = true; + _this.value = value; + subscription.add(scheduler.schedule(dispatchNext, 0, { + value: value, + subscriber: subscriber + })); + }, function(err) { + return subscription.add(scheduler.schedule(dispatchError, 0, { + err: err, + subscriber: subscriber + })); + }).then(null, function(err) { + scheduler.schedule(function() { + throw err; + }); + }); + } + return subscription; + } + }; + return PromiseObservable; + })(Observable_1.Observable); + exports.PromiseObservable = PromiseObservable; + function dispatchNext(_a) { + var value = _a.value, + subscriber = _a.subscriber; + subscriber.next(value); + subscriber.complete(); + } + function dispatchError(_a) { + var err = _a.err, + subscriber = _a.subscriber; + subscriber.error(err); + } + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("1ef", ["1f0"], true, function($__require, exports, module) { + ; + var global = this, + __define = global.define; + global.define = undefined; + var root_1 = $__require('1f0'); + function toPromise(PromiseCtor) { + var _this = this; + if (!PromiseCtor) { + if (root_1.root.Rx && root_1.root.Rx.config && root_1.root.Rx.config.Promise) { + PromiseCtor = root_1.root.Rx.config.Promise; + } else if (root_1.root.Promise) { + PromiseCtor = root_1.root.Promise; + } + } + if (!PromiseCtor) { + throw new Error('no Promise impl found'); + } + return new PromiseCtor(function(resolve, reject) { + var value; + _this.subscribe(function(x) { + return value = x; + }, function(err) { + return reject(err); + }, function() { + return resolve(value); + }); + }); + } + exports.toPromise = toPromise; + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("1f1", [], true, function($__require, exports, module) { + ; + var global = this, + __define = global.define; + global.define = undefined; + function throwError(e) { + throw e; + } + exports.throwError = throwError; + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("1f2", [], true, function($__require, exports, module) { + ; + var global = this, + __define = global.define; + global.define = undefined; + function tryOrOnError(target) { + function tryCatcher() { + try { + tryCatcher.target.apply(this, arguments); + } catch (e) { + this.error(e); + } + } + tryCatcher.target = target; + return tryCatcher; + } + exports.tryOrOnError = tryOrOnError; + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("1f3", [], true, function($__require, exports, module) { + ; + var global = this, + __define = global.define; + global.define = undefined; + function noop() {} + exports.noop = noop; + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("1e5", ["1f3"], true, function($__require, exports, module) { + ; + var global = this, + __define = global.define; + global.define = undefined; + var noop_1 = $__require('1f3'); + var Subscription = (function() { + function Subscription(_unsubscribe) { + this.isUnsubscribed = false; + if (_unsubscribe) { + this._unsubscribe = _unsubscribe; + } + } + Subscription.prototype._unsubscribe = function() { + noop_1.noop(); + }; + Subscription.prototype.unsubscribe = function() { + if (this.isUnsubscribed) { + return; + } + this.isUnsubscribed = true; + var unsubscribe = this._unsubscribe; + var subscriptions = this._subscriptions; + this._subscriptions = void 0; + if (unsubscribe) { + unsubscribe.call(this); + } + if (subscriptions != null) { + var index = -1; + var len = subscriptions.length; + while (++index < len) { + subscriptions[index].unsubscribe(); + } + } + }; + Subscription.prototype.add = function(subscription) { + if (!subscription || (subscription === this) || (subscription === Subscription.EMPTY)) { + return; + } + var sub = subscription; + switch (typeof subscription) { + case 'function': + sub = new Subscription(subscription); + case 'object': + if (sub.isUnsubscribed || typeof sub.unsubscribe !== 'function') { + break; + } else if (this.isUnsubscribed) { + sub.unsubscribe(); + } else { + var subscriptions = this._subscriptions || (this._subscriptions = []); + subscriptions.push(sub); + } + break; + default: + throw new Error('Unrecognized subscription ' + subscription + ' added to Subscription.'); + } + }; + Subscription.prototype.remove = function(subscription) { + if (subscription == null || (subscription === this) || (subscription === Subscription.EMPTY)) { + return; + } + var subscriptions = this._subscriptions; + if (subscriptions) { + var subscriptionIndex = subscriptions.indexOf(subscription); + if (subscriptionIndex !== -1) { + subscriptions.splice(subscriptionIndex, 1); + } + } + }; + Subscription.EMPTY = (function(empty) { + empty.isUnsubscribed = true; + return empty; + }(new Subscription())); + return Subscription; + })(); + exports.Subscription = Subscription; + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("1e6", ["1f3", "1f1", "1f2", "1e5", "1e9"], true, function($__require, exports, module) { + ; + var global = this, + __define = global.define; + global.define = undefined; + var __extends = (this && this.__extends) || function(d, b) { + for (var p in b) + if (b.hasOwnProperty(p)) + d[p] = b[p]; + function __() { + this.constructor = d; + } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; + var noop_1 = $__require('1f3'); + var throwError_1 = $__require('1f1'); + var tryOrOnError_1 = $__require('1f2'); + var Subscription_1 = $__require('1e5'); + var rxSubscriber_1 = $__require('1e9'); + var Subscriber = (function(_super) { + __extends(Subscriber, _super); + function Subscriber(destination) { + _super.call(this); + this.destination = destination; + this._isUnsubscribed = false; + if (!this.destination) { + return; + } + var subscription = destination._subscription; + if (subscription) { + this._subscription = subscription; + } else if (destination instanceof Subscriber) { + this._subscription = destination; + } + } + Subscriber.prototype[rxSubscriber_1.rxSubscriber] = function() { + return this; + }; + Object.defineProperty(Subscriber.prototype, "isUnsubscribed", { get: function() { - return exceptions_1.unimplemented(); + var subscription = this._subscription; + if (subscription) { + return this._isUnsubscribed || subscription.isUnsubscribed; + } else { + return this._isUnsubscribed; + } + }, + set: function(value) { + var subscription = this._subscription; + if (subscription) { + subscription.isUnsubscribed = Boolean(value); + } else { + this._isUnsubscribed = Boolean(value); + } }, enumerable: true, configurable: true }); - Object.defineProperty(IBeginElementCmd.prototype, "eventTargetAndNames", { - get: function() { - return exceptions_1.unimplemented(); - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(IBeginElementCmd.prototype, "directives", { - get: function() { - return exceptions_1.unimplemented(); - }, - enumerable: true, - configurable: true - }); - return IBeginElementCmd; - })(api_1.RenderBeginElementCmd); - exports.IBeginElementCmd = IBeginElementCmd; - var BeginElementCmd = (function() { - function BeginElementCmd(name, attrNameAndValues, eventTargetAndNames, variableNameAndValues, directives, isBound, ngContentIndex) { - this.name = name; - this.attrNameAndValues = attrNameAndValues; - this.eventTargetAndNames = eventTargetAndNames; - this.variableNameAndValues = variableNameAndValues; - this.directives = directives; - this.isBound = isBound; - this.ngContentIndex = ngContentIndex; - } - BeginElementCmd.prototype.visit = function(visitor, context) { - return visitor.visitBeginElement(this, context); + Subscriber.create = function(next, error, complete) { + var subscriber = new Subscriber(); + subscriber._next = (typeof next === 'function') && tryOrOnError_1.tryOrOnError(next) || noop_1.noop; + subscriber._error = (typeof error === 'function') && error || throwError_1.throwError; + subscriber._complete = (typeof complete === 'function') && complete || noop_1.noop; + return subscriber; }; - BeginElementCmd = __decorate([lang_1.CONST(), __metadata('design:paramtypes', [String, Array, Array, Array, Array, Boolean, Number])], BeginElementCmd); - return BeginElementCmd; - })(); - exports.BeginElementCmd = BeginElementCmd; - var EndElementCmd = (function() { - function EndElementCmd() {} - EndElementCmd.prototype.visit = function(visitor, context) { - return visitor.visitEndElement(context); + Subscriber.prototype.add = function(sub) { + var _subscription = this._subscription; + if (_subscription) { + _subscription.add(sub); + } else { + _super.prototype.add.call(this, sub); + } }; - EndElementCmd = __decorate([lang_1.CONST(), __metadata('design:paramtypes', [])], EndElementCmd); - return EndElementCmd; - })(); - exports.EndElementCmd = EndElementCmd; - var BeginComponentCmd = (function() { - function BeginComponentCmd(name, attrNameAndValues, eventTargetAndNames, variableNameAndValues, directives, encapsulation, ngContentIndex, templateGetter) { - this.name = name; - this.attrNameAndValues = attrNameAndValues; - this.eventTargetAndNames = eventTargetAndNames; - this.variableNameAndValues = variableNameAndValues; - this.directives = directives; - this.encapsulation = encapsulation; - this.ngContentIndex = ngContentIndex; - this.templateGetter = templateGetter; - this.isBound = true; - } - Object.defineProperty(BeginComponentCmd.prototype, "templateId", { - get: function() { - return this.templateGetter().id; - }, - enumerable: true, - configurable: true - }); - BeginComponentCmd.prototype.visit = function(visitor, context) { - return visitor.visitBeginComponent(this, context); + Subscriber.prototype.remove = function(sub) { + if (this._subscription) { + this._subscription.remove(sub); + } else { + _super.prototype.remove.call(this, sub); + } }; - BeginComponentCmd = __decorate([lang_1.CONST(), __metadata('design:paramtypes', [String, Array, Array, Array, Array, Number, Number, Function])], BeginComponentCmd); - return BeginComponentCmd; - })(); - exports.BeginComponentCmd = BeginComponentCmd; - var EndComponentCmd = (function() { - function EndComponentCmd() {} - EndComponentCmd.prototype.visit = function(visitor, context) { - return visitor.visitEndComponent(context); + Subscriber.prototype.unsubscribe = function() { + if (this._isUnsubscribed) { + return; + } else if (this._subscription) { + this._isUnsubscribed = true; + } else { + _super.prototype.unsubscribe.call(this); + } }; - EndComponentCmd = __decorate([lang_1.CONST(), __metadata('design:paramtypes', [])], EndComponentCmd); - return EndComponentCmd; - })(); - exports.EndComponentCmd = EndComponentCmd; - var EmbeddedTemplateCmd = (function() { - function EmbeddedTemplateCmd(attrNameAndValues, variableNameAndValues, directives, isMerged, ngContentIndex, changeDetectorFactory, children) { - this.attrNameAndValues = attrNameAndValues; - this.variableNameAndValues = variableNameAndValues; - this.directives = directives; - this.isMerged = isMerged; - this.ngContentIndex = ngContentIndex; - this.changeDetectorFactory = changeDetectorFactory; - this.children = children; - this.isBound = true; - this.name = null; - this.eventTargetAndNames = EMPTY_ARR; - } - EmbeddedTemplateCmd.prototype.visit = function(visitor, context) { - return visitor.visitEmbeddedTemplate(this, context); + Subscriber.prototype._next = function(value) { + var destination = this.destination; + if (destination.next) { + destination.next(value); + } }; - EmbeddedTemplateCmd = __decorate([lang_1.CONST(), __metadata('design:paramtypes', [Array, Array, Array, Boolean, Number, Function, Array])], EmbeddedTemplateCmd); - return EmbeddedTemplateCmd; - })(); - exports.EmbeddedTemplateCmd = EmbeddedTemplateCmd; - function visitAllCommands(visitor, cmds, context) { - if (context === void 0) { - context = null; - } - for (var i = 0; i < cmds.length; i++) { - cmds[i].visit(visitor, context); + Subscriber.prototype._error = function(err) { + var destination = this.destination; + if (destination.error) { + destination.error(err); + } + }; + Subscriber.prototype._complete = function() { + var destination = this.destination; + if (destination.complete) { + destination.complete(); + } + }; + Subscriber.prototype.next = function(value) { + if (!this.isUnsubscribed) { + this._next(value); + } + }; + Subscriber.prototype.error = function(err) { + if (!this.isUnsubscribed) { + this._error(err); + this.unsubscribe(); + } + }; + Subscriber.prototype.complete = function() { + if (!this.isUnsubscribed) { + this._complete(); + this.unsubscribe(); + } + }; + return Subscriber; + })(Subscription_1.Subscription); + exports.Subscriber = Subscriber; + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("1f0", [], true, function($__require, exports, module) { + ; + var global = this, + __define = global.define; + global.define = undefined; + var objectTypes = { + 'boolean': false, + 'function': true, + 'object': true, + 'number': false, + 'string': false, + 'undefined': false + }; + exports.root = (objectTypes[typeof self] && self) || (objectTypes[typeof window] && window); + var freeExports = objectTypes[typeof exports] && exports && !exports.nodeType && exports; + var freeModule = objectTypes[typeof module] && module && !module.nodeType && module; + var freeGlobal = objectTypes[typeof global] && global; + if (freeGlobal && (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal)) { + exports.root = freeGlobal; + } + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("1f4", ["1f0"], true, function($__require, exports, module) { + ; + var global = this, + __define = global.define; + global.define = undefined; + var root_1 = $__require('1f0'); + function polyfillSymbol(root) { + var Symbol = ensureSymbol(root); + ensureIterator(Symbol, root); + ensureObservable(Symbol); + ensureFor(Symbol); + return Symbol; + } + exports.polyfillSymbol = polyfillSymbol; + function ensureFor(Symbol) { + if (!Symbol.for) { + Symbol.for = symbolForPolyfill; } } - exports.visitAllCommands = visitAllCommands; + exports.ensureFor = ensureFor; + var id = 0; + function ensureSymbol(root) { + if (!root.Symbol) { + root.Symbol = function symbolFuncPolyfill(description) { + return "@@Symbol(" + description + "):" + id++; + }; + } + return root.Symbol; + } + exports.ensureSymbol = ensureSymbol; + function symbolForPolyfill(key) { + return '@@' + key; + } + exports.symbolForPolyfill = symbolForPolyfill; + function ensureIterator(Symbol, root) { + if (!Symbol.iterator) { + if (typeof Symbol.for === 'function') { + Symbol.iterator = Symbol.for('iterator'); + } else if (root.Set && typeof new root.Set()['@@iterator'] === 'function') { + Symbol.iterator = '@@iterator'; + } else if (root.Map) { + var keys = Object.getOwnPropertyNames(root.Map.prototype); + for (var i = 0; i < keys.length; ++i) { + var key = keys[i]; + if (key !== 'entries' && key !== 'size' && root.Map.prototype[key] === root.Map.prototype['entries']) { + Symbol.iterator = key; + break; + } + } + } else { + Symbol.iterator = '@@iterator'; + } + } + } + exports.ensureIterator = ensureIterator; + function ensureObservable(Symbol) { + if (!Symbol.observable) { + if (typeof Symbol.for === 'function') { + Symbol.observable = Symbol.for('observable'); + } else { + Symbol.observable = '@@observable'; + } + } + } + exports.ensureObservable = ensureObservable; + exports.SymbolShim = polyfillSymbol(root_1.root); global.define = __define; return module.exports; }); -$__System.registerDynamic("1c5", ["22"], true, function($__require, exports, module) { +$__System.registerDynamic("1e9", ["1f4"], true, function($__require, exports, module) { + ; + var global = this, + __define = global.define; + global.define = undefined; + var SymbolShim_1 = $__require('1f4'); + exports.rxSubscriber = SymbolShim_1.SymbolShim.for('rxSubscriber'); + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("1e8", ["1e6", "1f0", "1f4", "1e9"], true, function($__require, exports, module) { + ; + var global = this, + __define = global.define; + global.define = undefined; + var Subscriber_1 = $__require('1e6'); + var root_1 = $__require('1f0'); + var SymbolShim_1 = $__require('1f4'); + var rxSubscriber_1 = $__require('1e9'); + var Observable = (function() { + function Observable(subscribe) { + this._isScalar = false; + if (subscribe) { + this._subscribe = subscribe; + } + } + Observable.prototype.lift = function(operator) { + var observable = new Observable(); + observable.source = this; + observable.operator = operator; + return observable; + }; + Observable.prototype[SymbolShim_1.SymbolShim.observable] = function() { + return this; + }; + Observable.prototype.subscribe = function(observerOrNext, error, complete) { + var subscriber; + if (observerOrNext && typeof observerOrNext === 'object') { + if (observerOrNext instanceof Subscriber_1.Subscriber) { + subscriber = observerOrNext; + } else if (observerOrNext[rxSubscriber_1.rxSubscriber]) { + subscriber = observerOrNext[rxSubscriber_1.rxSubscriber](); + } else { + subscriber = new Subscriber_1.Subscriber(observerOrNext); + } + } else { + var next = observerOrNext; + subscriber = Subscriber_1.Subscriber.create(next, error, complete); + } + subscriber.add(this._subscribe(subscriber)); + return subscriber; + }; + Observable.prototype.forEach = function(next, thisArg, PromiseCtor) { + if (!PromiseCtor) { + if (root_1.root.Rx && root_1.root.Rx.config && root_1.root.Rx.config.Promise) { + PromiseCtor = root_1.root.Rx.config.Promise; + } else if (root_1.root.Promise) { + PromiseCtor = root_1.root.Promise; + } + } + if (!PromiseCtor) { + throw new Error('no Promise impl found'); + } + var nextHandler; + if (thisArg) { + nextHandler = function nextHandlerFn(value) { + var _a = nextHandlerFn, + thisArg = _a.thisArg, + next = _a.next; + return next.call(thisArg, value); + }; + nextHandler.thisArg = thisArg; + nextHandler.next = next; + } else { + nextHandler = next; + } + var promiseCallback = function promiseCallbackFn(resolve, reject) { + var _a = promiseCallbackFn, + source = _a.source, + nextHandler = _a.nextHandler; + source.subscribe(nextHandler, reject, resolve); + }; + promiseCallback.source = this; + promiseCallback.nextHandler = nextHandler; + return new PromiseCtor(promiseCallback); + }; + Observable.prototype._subscribe = function(subscriber) { + return this.source._subscribe(this.operator.call(subscriber)); + }; + Observable.create = function(subscribe) { + return new Observable(subscribe); + }; + return Observable; + })(); + exports.Observable = Observable; + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("62", ["2b", "93", "1e7", "1ee", "1ef", "1e8"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var lang_1 = $__require('22'); + var __extends = (this && this.__extends) || function(d, b) { + for (var p in b) + if (b.hasOwnProperty(p)) + d[p] = b[p]; + function __() { + this.constructor = d; + } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; + var lang_1 = $__require('2b'); + var promise_1 = $__require('93'); + exports.PromiseWrapper = promise_1.PromiseWrapper; + exports.Promise = promise_1.Promise; + var Subject_1 = $__require('1e7'); + var fromPromise_1 = $__require('1ee'); + var toPromise_1 = $__require('1ef'); + var Observable_1 = $__require('1e8'); + exports.Observable = Observable_1.Observable; + var Subject_2 = $__require('1e7'); + exports.Subject = Subject_2.Subject; + var TimerWrapper = (function() { + function TimerWrapper() {} + TimerWrapper.setTimeout = function(fn, millis) { + return lang_1.global.setTimeout(fn, millis); + }; + TimerWrapper.clearTimeout = function(id) { + lang_1.global.clearTimeout(id); + }; + TimerWrapper.setInterval = function(fn, millis) { + return lang_1.global.setInterval(fn, millis); + }; + TimerWrapper.clearInterval = function(id) { + lang_1.global.clearInterval(id); + }; + return TimerWrapper; + })(); + exports.TimerWrapper = TimerWrapper; + var ObservableWrapper = (function() { + function ObservableWrapper() {} + ObservableWrapper.subscribe = function(emitter, onNext, onError, onComplete) { + if (onComplete === void 0) { + onComplete = function() {}; + } + onError = (typeof onError === "function") && onError || lang_1.noop; + onComplete = (typeof onComplete === "function") && onComplete || lang_1.noop; + return emitter.subscribe({ + next: onNext, + error: onError, + complete: onComplete + }); + }; + ObservableWrapper.isObservable = function(obs) { + return !!obs.subscribe; + }; + ObservableWrapper.hasSubscribers = function(obs) { + return obs.observers.length > 0; + }; + ObservableWrapper.dispose = function(subscription) { + subscription.unsubscribe(); + }; + ObservableWrapper.callNext = function(emitter, value) { + emitter.next(value); + }; + ObservableWrapper.callEmit = function(emitter, value) { + emitter.emit(value); + }; + ObservableWrapper.callError = function(emitter, error) { + emitter.error(error); + }; + ObservableWrapper.callComplete = function(emitter) { + emitter.complete(); + }; + ObservableWrapper.fromPromise = function(promise) { + return fromPromise_1.PromiseObservable.create(promise); + }; + ObservableWrapper.toPromise = function(obj) { + return toPromise_1.toPromise.call(obj); + }; + return ObservableWrapper; + })(); + exports.ObservableWrapper = ObservableWrapper; + var EventEmitter = (function(_super) { + __extends(EventEmitter, _super); + function EventEmitter(isAsync) { + if (isAsync === void 0) { + isAsync = true; + } + _super.call(this); + this._isAsync = isAsync; + } + EventEmitter.prototype.emit = function(value) { + _super.prototype.next.call(this, value); + }; + EventEmitter.prototype.next = function(value) { + _super.prototype.next.call(this, value); + }; + EventEmitter.prototype.subscribe = function(generatorOrNext, error, complete) { + var schedulerFn; + var errorFn = function(err) { + return null; + }; + var completeFn = function() { + return null; + }; + if (generatorOrNext && typeof generatorOrNext === 'object') { + schedulerFn = this._isAsync ? function(value) { + setTimeout(function() { + return generatorOrNext.next(value); + }); + } : function(value) { + generatorOrNext.next(value); + }; + if (generatorOrNext.error) { + errorFn = this._isAsync ? function(err) { + setTimeout(function() { + return generatorOrNext.error(err); + }); + } : function(err) { + generatorOrNext.error(err); + }; + } + if (generatorOrNext.complete) { + completeFn = this._isAsync ? function() { + setTimeout(function() { + return generatorOrNext.complete(); + }); + } : function() { + generatorOrNext.complete(); + }; + } + } else { + schedulerFn = this._isAsync ? function(value) { + setTimeout(function() { + return generatorOrNext(value); + }); + } : function(value) { + generatorOrNext(value); + }; + if (error) { + errorFn = this._isAsync ? function(err) { + setTimeout(function() { + return error(err); + }); + } : function(err) { + error(err); + }; + } + if (complete) { + completeFn = this._isAsync ? function() { + setTimeout(function() { + return complete(); + }); + } : function() { + complete(); + }; + } + } + return _super.prototype.subscribe.call(this, schedulerFn, errorFn, completeFn); + }; + return EventEmitter; + })(Subject_1.Subject); + exports.EventEmitter = EventEmitter; + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("1c0", ["3a", "2b", "62"], true, function($__require, exports, module) { + "use strict"; + ; + var global = this, + __define = global.define; + global.define = undefined; + var collection_1 = $__require('3a'); + var lang_1 = $__require('2b'); + var async_1 = $__require('62'); + var QueryList = (function() { + function QueryList() { + this._results = []; + this._emitter = new async_1.EventEmitter(); + } + Object.defineProperty(QueryList.prototype, "changes", { + get: function() { + return this._emitter; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(QueryList.prototype, "length", { + get: function() { + return this._results.length; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(QueryList.prototype, "first", { + get: function() { + return collection_1.ListWrapper.first(this._results); + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(QueryList.prototype, "last", { + get: function() { + return collection_1.ListWrapper.last(this._results); + }, + enumerable: true, + configurable: true + }); + QueryList.prototype.map = function(fn) { + return this._results.map(fn); + }; + QueryList.prototype.filter = function(fn) { + return this._results.filter(fn); + }; + QueryList.prototype.reduce = function(fn, init) { + return this._results.reduce(fn, init); + }; + QueryList.prototype.toArray = function() { + return collection_1.ListWrapper.clone(this._results); + }; + QueryList.prototype[lang_1.getSymbolIterator()] = function() { + return this._results[lang_1.getSymbolIterator()](); + }; + QueryList.prototype.toString = function() { + return this._results.toString(); + }; + QueryList.prototype.reset = function(res) { + this._results = res; + }; + QueryList.prototype.notifyOnChanges = function() { + this._emitter.emit(this); + }; + return QueryList; + })(); + exports.QueryList = QueryList; + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("1c5", ["1f5", "3c"], true, function($__require, exports, module) { + "use strict"; + ; + var global = this, + __define = global.define; + global.define = undefined; + var __extends = (this && this.__extends) || function(d, b) { + for (var p in b) + if (b.hasOwnProperty(p)) + d[p] = b[p]; + function __() { + this.constructor = d; + } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; + var provider_1 = $__require('1f5'); + var di_1 = $__require('3c'); + var PipeProvider = (function(_super) { + __extends(PipeProvider, _super); + function PipeProvider(name, pure, key, resolvedFactories, multiBinding) { + _super.call(this, key, resolvedFactories, multiBinding); + this.name = name; + this.pure = pure; + } + PipeProvider.createFromType = function(type, metadata) { + var provider = new di_1.Provider(type, {useClass: type}); + var rb = provider_1.resolveProvider(provider); + return new PipeProvider(metadata.name, metadata.pure, rb.key, rb.resolvedFactories, rb.multiProvider); + }; + return PipeProvider; + })(provider_1.ResolvedProvider_); + exports.PipeProvider = PipeProvider; + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("8e", ["2b", "3f", "3a", "3c", "1f5", "1f6", "1c6", "8d", "1c1", "1c3", "1bd", "1c2", "80", "6e", "1c0", "84", "1c5"], true, function($__require, exports, module) { + "use strict"; + ; + var global = this, + __define = global.define; + global.define = undefined; + var __extends = (this && this.__extends) || function(d, b) { + for (var p in b) + if (b.hasOwnProperty(p)) + d[p] = b[p]; + function __() { + this.constructor = d; + } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; + var lang_1 = $__require('2b'); + var exceptions_1 = $__require('3f'); + var collection_1 = $__require('3a'); + var di_1 = $__require('3c'); + var provider_1 = $__require('1f5'); + var injector_1 = $__require('1f6'); + var provider_2 = $__require('1f5'); + var di_2 = $__require('1c6'); + var view_type_1 = $__require('8d'); + var element_ref_1 = $__require('1c1'); + var view_container_ref_1 = $__require('1c3'); + var element_ref_2 = $__require('1c1'); + var api_1 = $__require('1bd'); + var template_ref_1 = $__require('1c2'); + var directives_1 = $__require('80'); + var change_detection_1 = $__require('6e'); + var query_list_1 = $__require('1c0'); + var reflection_1 = $__require('84'); + var pipe_provider_1 = $__require('1c5'); + var view_container_ref_2 = $__require('1c3'); + var _staticKeys; + var StaticKeys = (function() { + function StaticKeys() { + this.templateRefId = di_1.Key.get(template_ref_1.TemplateRef).id; + this.viewContainerId = di_1.Key.get(view_container_ref_1.ViewContainerRef).id; + this.changeDetectorRefId = di_1.Key.get(change_detection_1.ChangeDetectorRef).id; + this.elementRefId = di_1.Key.get(element_ref_2.ElementRef).id; + this.rendererId = di_1.Key.get(api_1.Renderer).id; + } + StaticKeys.instance = function() { + if (lang_1.isBlank(_staticKeys)) + _staticKeys = new StaticKeys(); + return _staticKeys; + }; + return StaticKeys; + })(); + exports.StaticKeys = StaticKeys; + var DirectiveDependency = (function(_super) { + __extends(DirectiveDependency, _super); + function DirectiveDependency(key, optional, lowerBoundVisibility, upperBoundVisibility, properties, attributeName, queryDecorator) { + _super.call(this, key, optional, lowerBoundVisibility, upperBoundVisibility, properties); + this.attributeName = attributeName; + this.queryDecorator = queryDecorator; + this._verify(); + } + DirectiveDependency.prototype._verify = function() { + var count = 0; + if (lang_1.isPresent(this.queryDecorator)) + count++; + if (lang_1.isPresent(this.attributeName)) + count++; + if (count > 1) + throw new exceptions_1.BaseException('A directive injectable can contain only one of the following @Attribute or @Query.'); + }; + DirectiveDependency.createFrom = function(d) { + return new DirectiveDependency(d.key, d.optional, d.lowerBoundVisibility, d.upperBoundVisibility, d.properties, DirectiveDependency._attributeName(d.properties), DirectiveDependency._query(d.properties)); + }; + DirectiveDependency._attributeName = function(properties) { + var p = properties.find(function(p) { + return p instanceof di_2.AttributeMetadata; + }); + return lang_1.isPresent(p) ? p.attributeName : null; + }; + DirectiveDependency._query = function(properties) { + return properties.find(function(p) { + return p instanceof di_2.QueryMetadata; + }); + }; + return DirectiveDependency; + })(di_1.Dependency); + exports.DirectiveDependency = DirectiveDependency; + var DirectiveProvider = (function(_super) { + __extends(DirectiveProvider, _super); + function DirectiveProvider(key, factory, deps, isComponent, providers, viewProviders, queries) { + _super.call(this, key, [new provider_2.ResolvedFactory(factory, deps)], false); + this.isComponent = isComponent; + this.providers = providers; + this.viewProviders = viewProviders; + this.queries = queries; + } + Object.defineProperty(DirectiveProvider.prototype, "displayName", { + get: function() { + return this.key.displayName; + }, + enumerable: true, + configurable: true + }); + DirectiveProvider.createFromType = function(type, meta) { + var provider = new di_1.Provider(type, {useClass: type}); + if (lang_1.isBlank(meta)) { + meta = new directives_1.DirectiveMetadata(); + } + var rb = provider_2.resolveProvider(provider); + var rf = rb.resolvedFactories[0]; + var deps = rf.dependencies.map(DirectiveDependency.createFrom); + var isComponent = meta instanceof directives_1.ComponentMetadata; + var resolvedProviders = lang_1.isPresent(meta.providers) ? di_1.Injector.resolve(meta.providers) : null; + var resolvedViewProviders = meta instanceof directives_1.ComponentMetadata && lang_1.isPresent(meta.viewProviders) ? di_1.Injector.resolve(meta.viewProviders) : null; + var queries = []; + if (lang_1.isPresent(meta.queries)) { + collection_1.StringMapWrapper.forEach(meta.queries, function(meta, fieldName) { + var setter = reflection_1.reflector.setter(fieldName); + queries.push(new QueryMetadataWithSetter(setter, meta)); + }); + } + deps.forEach(function(d) { + if (lang_1.isPresent(d.queryDecorator)) { + queries.push(new QueryMetadataWithSetter(null, d.queryDecorator)); + } + }); + return new DirectiveProvider(rb.key, rf.factory, deps, isComponent, resolvedProviders, resolvedViewProviders, queries); + }; + return DirectiveProvider; + })(provider_2.ResolvedProvider_); + exports.DirectiveProvider = DirectiveProvider; + var QueryMetadataWithSetter = (function() { + function QueryMetadataWithSetter(setter, metadata) { + this.setter = setter; + this.metadata = metadata; + } + return QueryMetadataWithSetter; + })(); + exports.QueryMetadataWithSetter = QueryMetadataWithSetter; + function setProvidersVisibility(providers, visibility, result) { + for (var i = 0; i < providers.length; i++) { + result.set(providers[i].key.id, visibility); + } + } + var AppProtoElement = (function() { + function AppProtoElement(firstProviderIsComponent, index, attributes, pwvs, protoQueryRefs, directiveVariableBindings) { + this.firstProviderIsComponent = firstProviderIsComponent; + this.index = index; + this.attributes = attributes; + this.protoQueryRefs = protoQueryRefs; + this.directiveVariableBindings = directiveVariableBindings; + var length = pwvs.length; + if (length > 0) { + this.protoInjector = new injector_1.ProtoInjector(pwvs); + } else { + this.protoInjector = null; + this.protoQueryRefs = []; + } + } + AppProtoElement.create = function(metadataCache, index, attributes, directiveTypes, directiveVariableBindings) { + var componentDirProvider = null; + var mergedProvidersMap = new Map(); + var providerVisibilityMap = new Map(); + var providers = collection_1.ListWrapper.createGrowableSize(directiveTypes.length); + var protoQueryRefs = []; + for (var i = 0; i < directiveTypes.length; i++) { + var dirProvider = metadataCache.getResolvedDirectiveMetadata(directiveTypes[i]); + providers[i] = new injector_1.ProviderWithVisibility(dirProvider, dirProvider.isComponent ? injector_1.Visibility.PublicAndPrivate : injector_1.Visibility.Public); + if (dirProvider.isComponent) { + componentDirProvider = dirProvider; + } else { + if (lang_1.isPresent(dirProvider.providers)) { + provider_1.mergeResolvedProviders(dirProvider.providers, mergedProvidersMap); + setProvidersVisibility(dirProvider.providers, injector_1.Visibility.Public, providerVisibilityMap); + } + } + if (lang_1.isPresent(dirProvider.viewProviders)) { + provider_1.mergeResolvedProviders(dirProvider.viewProviders, mergedProvidersMap); + setProvidersVisibility(dirProvider.viewProviders, injector_1.Visibility.Private, providerVisibilityMap); + } + for (var queryIdx = 0; queryIdx < dirProvider.queries.length; queryIdx++) { + var q = dirProvider.queries[queryIdx]; + protoQueryRefs.push(new ProtoQueryRef(i, q.setter, q.metadata)); + } + } + if (lang_1.isPresent(componentDirProvider) && lang_1.isPresent(componentDirProvider.providers)) { + provider_1.mergeResolvedProviders(componentDirProvider.providers, mergedProvidersMap); + setProvidersVisibility(componentDirProvider.providers, injector_1.Visibility.Public, providerVisibilityMap); + } + mergedProvidersMap.forEach(function(provider, _) { + providers.push(new injector_1.ProviderWithVisibility(provider, providerVisibilityMap.get(provider.key.id))); + }); + return new AppProtoElement(lang_1.isPresent(componentDirProvider), index, attributes, providers, protoQueryRefs, directiveVariableBindings); + }; + AppProtoElement.prototype.getProviderAtIndex = function(index) { + return this.protoInjector.getProviderAtIndex(index); + }; + return AppProtoElement; + })(); + exports.AppProtoElement = AppProtoElement; + var _Context = (function() { + function _Context(element, componentElement, injector) { + this.element = element; + this.componentElement = componentElement; + this.injector = injector; + } + return _Context; + })(); + var InjectorWithHostBoundary = (function() { + function InjectorWithHostBoundary(injector, hostInjectorBoundary) { + this.injector = injector; + this.hostInjectorBoundary = hostInjectorBoundary; + } + return InjectorWithHostBoundary; + })(); + exports.InjectorWithHostBoundary = InjectorWithHostBoundary; + var AppElement = (function() { + function AppElement(proto, parentView, parent, nativeElement, embeddedViewFactory) { + var _this = this; + this.proto = proto; + this.parentView = parentView; + this.parent = parent; + this.nativeElement = nativeElement; + this.embeddedViewFactory = embeddedViewFactory; + this.nestedViews = null; + this.componentView = null; + this.ref = new element_ref_1.ElementRef_(this); + var parentInjector = lang_1.isPresent(parent) ? parent._injector : parentView.parentInjector; + if (lang_1.isPresent(this.proto.protoInjector)) { + var isBoundary; + if (lang_1.isPresent(parent) && lang_1.isPresent(parent.proto.protoInjector)) { + isBoundary = false; + } else { + isBoundary = parentView.hostInjectorBoundary; + } + this._queryStrategy = this._buildQueryStrategy(); + this._injector = new di_1.Injector(this.proto.protoInjector, parentInjector, isBoundary, this, function() { + return _this._debugContext(); + }); + var injectorStrategy = this._injector.internalStrategy; + this._strategy = injectorStrategy instanceof injector_1.InjectorInlineStrategy ? new ElementDirectiveInlineStrategy(injectorStrategy, this) : new ElementDirectiveDynamicStrategy(injectorStrategy, this); + this._strategy.init(); + } else { + this._queryStrategy = null; + this._injector = parentInjector; + this._strategy = null; + } + } + AppElement.getViewParentInjector = function(parentViewType, containerAppElement, imperativelyCreatedProviders, rootInjector) { + var parentInjector; + var hostInjectorBoundary; + switch (parentViewType) { + case view_type_1.ViewType.COMPONENT: + parentInjector = containerAppElement._injector; + hostInjectorBoundary = true; + break; + case view_type_1.ViewType.EMBEDDED: + parentInjector = lang_1.isPresent(containerAppElement.proto.protoInjector) ? containerAppElement._injector.parent : containerAppElement._injector; + hostInjectorBoundary = containerAppElement._injector.hostBoundary; + break; + case view_type_1.ViewType.HOST: + if (lang_1.isPresent(containerAppElement)) { + parentInjector = lang_1.isPresent(containerAppElement.proto.protoInjector) ? containerAppElement._injector.parent : containerAppElement._injector; + if (lang_1.isPresent(imperativelyCreatedProviders)) { + var imperativeProvidersWithVisibility = imperativelyCreatedProviders.map(function(p) { + return new injector_1.ProviderWithVisibility(p, injector_1.Visibility.Public); + }); + parentInjector = new di_1.Injector(new injector_1.ProtoInjector(imperativeProvidersWithVisibility), parentInjector, true, null, null); + hostInjectorBoundary = false; + } else { + hostInjectorBoundary = containerAppElement._injector.hostBoundary; + } + } else { + parentInjector = rootInjector; + hostInjectorBoundary = true; + } + break; + } + return new InjectorWithHostBoundary(parentInjector, hostInjectorBoundary); + }; + AppElement.prototype.attachComponentView = function(componentView) { + this.componentView = componentView; + }; + AppElement.prototype._debugContext = function() { + var c = this.parentView.getDebugContext(this, null, null); + return lang_1.isPresent(c) ? new _Context(c.element, c.componentElement, c.injector) : null; + }; + AppElement.prototype.hasVariableBinding = function(name) { + var vb = this.proto.directiveVariableBindings; + return lang_1.isPresent(vb) && collection_1.StringMapWrapper.contains(vb, name); + }; + AppElement.prototype.getVariableBinding = function(name) { + var index = this.proto.directiveVariableBindings[name]; + return lang_1.isPresent(index) ? this.getDirectiveAtIndex(index) : this.getElementRef(); + }; + AppElement.prototype.get = function(token) { + return this._injector.get(token); + }; + AppElement.prototype.hasDirective = function(type) { + return lang_1.isPresent(this._injector.getOptional(type)); + }; + AppElement.prototype.getComponent = function() { + return lang_1.isPresent(this._strategy) ? this._strategy.getComponent() : null; + }; + AppElement.prototype.getInjector = function() { + return this._injector; + }; + AppElement.prototype.getElementRef = function() { + return this.ref; + }; + AppElement.prototype.getViewContainerRef = function() { + return new view_container_ref_2.ViewContainerRef_(this); + }; + AppElement.prototype.getTemplateRef = function() { + if (lang_1.isPresent(this.embeddedViewFactory)) { + return new template_ref_1.TemplateRef_(this.ref); + } + return null; + }; + AppElement.prototype.getDependency = function(injector, provider, dep) { + if (provider instanceof DirectiveProvider) { + var dirDep = dep; + if (lang_1.isPresent(dirDep.attributeName)) + return this._buildAttribute(dirDep); + if (lang_1.isPresent(dirDep.queryDecorator)) + return this._queryStrategy.findQuery(dirDep.queryDecorator).list; + if (dirDep.key.id === StaticKeys.instance().changeDetectorRefId) { + if (this.proto.firstProviderIsComponent) { + return new _ComponentViewChangeDetectorRef(this); + } else { + return this.parentView.changeDetector.ref; + } + } + if (dirDep.key.id === StaticKeys.instance().elementRefId) { + return this.getElementRef(); + } + if (dirDep.key.id === StaticKeys.instance().viewContainerId) { + return this.getViewContainerRef(); + } + if (dirDep.key.id === StaticKeys.instance().templateRefId) { + var tr = this.getTemplateRef(); + if (lang_1.isBlank(tr) && !dirDep.optional) { + throw new di_1.NoProviderError(null, dirDep.key); + } + return tr; + } + if (dirDep.key.id === StaticKeys.instance().rendererId) { + return this.parentView.renderer; + } + } else if (provider instanceof pipe_provider_1.PipeProvider) { + if (dep.key.id === StaticKeys.instance().changeDetectorRefId) { + if (this.proto.firstProviderIsComponent) { + return new _ComponentViewChangeDetectorRef(this); + } else { + return this.parentView.changeDetector; + } + } + } + return injector_1.UNDEFINED; + }; + AppElement.prototype._buildAttribute = function(dep) { + var attributes = this.proto.attributes; + if (lang_1.isPresent(attributes) && collection_1.StringMapWrapper.contains(attributes, dep.attributeName)) { + return attributes[dep.attributeName]; + } else { + return null; + } + }; + AppElement.prototype.addDirectivesMatchingQuery = function(query, list) { + var templateRef = this.getTemplateRef(); + if (query.selector === template_ref_1.TemplateRef && lang_1.isPresent(templateRef)) { + list.push(templateRef); + } + if (this._strategy != null) { + this._strategy.addDirectivesMatchingQuery(query, list); + } + }; + AppElement.prototype._buildQueryStrategy = function() { + if (this.proto.protoQueryRefs.length === 0) { + return _emptyQueryStrategy; + } else if (this.proto.protoQueryRefs.length <= InlineQueryStrategy.NUMBER_OF_SUPPORTED_QUERIES) { + return new InlineQueryStrategy(this); + } else { + return new DynamicQueryStrategy(this); + } + }; + AppElement.prototype.getDirectiveAtIndex = function(index) { + return this._injector.getAt(index); + }; + AppElement.prototype.ngAfterViewChecked = function() { + if (lang_1.isPresent(this._queryStrategy)) + this._queryStrategy.updateViewQueries(); + }; + AppElement.prototype.ngAfterContentChecked = function() { + if (lang_1.isPresent(this._queryStrategy)) + this._queryStrategy.updateContentQueries(); + }; + AppElement.prototype.traverseAndSetQueriesAsDirty = function() { + var inj = this; + while (lang_1.isPresent(inj)) { + inj._setQueriesAsDirty(); + if (lang_1.isBlank(inj.parent) && inj.parentView.proto.type === view_type_1.ViewType.EMBEDDED) { + inj = inj.parentView.containerAppElement; + } else { + inj = inj.parent; + } + } + }; + AppElement.prototype._setQueriesAsDirty = function() { + if (lang_1.isPresent(this._queryStrategy)) { + this._queryStrategy.setContentQueriesAsDirty(); + } + if (this.parentView.proto.type === view_type_1.ViewType.COMPONENT) { + this.parentView.containerAppElement._queryStrategy.setViewQueriesAsDirty(); + } + }; + return AppElement; + })(); + exports.AppElement = AppElement; + var _EmptyQueryStrategy = (function() { + function _EmptyQueryStrategy() {} + _EmptyQueryStrategy.prototype.setContentQueriesAsDirty = function() {}; + _EmptyQueryStrategy.prototype.setViewQueriesAsDirty = function() {}; + _EmptyQueryStrategy.prototype.updateContentQueries = function() {}; + _EmptyQueryStrategy.prototype.updateViewQueries = function() {}; + _EmptyQueryStrategy.prototype.findQuery = function(query) { + throw new exceptions_1.BaseException("Cannot find query for directive " + query + "."); + }; + return _EmptyQueryStrategy; + })(); + var _emptyQueryStrategy = new _EmptyQueryStrategy(); + var InlineQueryStrategy = (function() { + function InlineQueryStrategy(ei) { + var protoRefs = ei.proto.protoQueryRefs; + if (protoRefs.length > 0) + this.query0 = new QueryRef(protoRefs[0], ei); + if (protoRefs.length > 1) + this.query1 = new QueryRef(protoRefs[1], ei); + if (protoRefs.length > 2) + this.query2 = new QueryRef(protoRefs[2], ei); + } + InlineQueryStrategy.prototype.setContentQueriesAsDirty = function() { + if (lang_1.isPresent(this.query0) && !this.query0.isViewQuery) + this.query0.dirty = true; + if (lang_1.isPresent(this.query1) && !this.query1.isViewQuery) + this.query1.dirty = true; + if (lang_1.isPresent(this.query2) && !this.query2.isViewQuery) + this.query2.dirty = true; + }; + InlineQueryStrategy.prototype.setViewQueriesAsDirty = function() { + if (lang_1.isPresent(this.query0) && this.query0.isViewQuery) + this.query0.dirty = true; + if (lang_1.isPresent(this.query1) && this.query1.isViewQuery) + this.query1.dirty = true; + if (lang_1.isPresent(this.query2) && this.query2.isViewQuery) + this.query2.dirty = true; + }; + InlineQueryStrategy.prototype.updateContentQueries = function() { + if (lang_1.isPresent(this.query0) && !this.query0.isViewQuery) { + this.query0.update(); + } + if (lang_1.isPresent(this.query1) && !this.query1.isViewQuery) { + this.query1.update(); + } + if (lang_1.isPresent(this.query2) && !this.query2.isViewQuery) { + this.query2.update(); + } + }; + InlineQueryStrategy.prototype.updateViewQueries = function() { + if (lang_1.isPresent(this.query0) && this.query0.isViewQuery) { + this.query0.update(); + } + if (lang_1.isPresent(this.query1) && this.query1.isViewQuery) { + this.query1.update(); + } + if (lang_1.isPresent(this.query2) && this.query2.isViewQuery) { + this.query2.update(); + } + }; + InlineQueryStrategy.prototype.findQuery = function(query) { + if (lang_1.isPresent(this.query0) && this.query0.protoQueryRef.query === query) { + return this.query0; + } + if (lang_1.isPresent(this.query1) && this.query1.protoQueryRef.query === query) { + return this.query1; + } + if (lang_1.isPresent(this.query2) && this.query2.protoQueryRef.query === query) { + return this.query2; + } + throw new exceptions_1.BaseException("Cannot find query for directive " + query + "."); + }; + InlineQueryStrategy.NUMBER_OF_SUPPORTED_QUERIES = 3; + return InlineQueryStrategy; + })(); + var DynamicQueryStrategy = (function() { + function DynamicQueryStrategy(ei) { + this.queries = ei.proto.protoQueryRefs.map(function(p) { + return new QueryRef(p, ei); + }); + } + DynamicQueryStrategy.prototype.setContentQueriesAsDirty = function() { + for (var i = 0; i < this.queries.length; ++i) { + var q = this.queries[i]; + if (!q.isViewQuery) + q.dirty = true; + } + }; + DynamicQueryStrategy.prototype.setViewQueriesAsDirty = function() { + for (var i = 0; i < this.queries.length; ++i) { + var q = this.queries[i]; + if (q.isViewQuery) + q.dirty = true; + } + }; + DynamicQueryStrategy.prototype.updateContentQueries = function() { + for (var i = 0; i < this.queries.length; ++i) { + var q = this.queries[i]; + if (!q.isViewQuery) { + q.update(); + } + } + }; + DynamicQueryStrategy.prototype.updateViewQueries = function() { + for (var i = 0; i < this.queries.length; ++i) { + var q = this.queries[i]; + if (q.isViewQuery) { + q.update(); + } + } + }; + DynamicQueryStrategy.prototype.findQuery = function(query) { + for (var i = 0; i < this.queries.length; ++i) { + var q = this.queries[i]; + if (q.protoQueryRef.query === query) { + return q; + } + } + throw new exceptions_1.BaseException("Cannot find query for directive " + query + "."); + }; + return DynamicQueryStrategy; + })(); + var ElementDirectiveInlineStrategy = (function() { + function ElementDirectiveInlineStrategy(injectorStrategy, _ei) { + this.injectorStrategy = injectorStrategy; + this._ei = _ei; + } + ElementDirectiveInlineStrategy.prototype.init = function() { + var i = this.injectorStrategy; + var p = i.protoStrategy; + i.resetConstructionCounter(); + if (p.provider0 instanceof DirectiveProvider && lang_1.isPresent(p.keyId0) && i.obj0 === injector_1.UNDEFINED) + i.obj0 = i.instantiateProvider(p.provider0, p.visibility0); + if (p.provider1 instanceof DirectiveProvider && lang_1.isPresent(p.keyId1) && i.obj1 === injector_1.UNDEFINED) + i.obj1 = i.instantiateProvider(p.provider1, p.visibility1); + if (p.provider2 instanceof DirectiveProvider && lang_1.isPresent(p.keyId2) && i.obj2 === injector_1.UNDEFINED) + i.obj2 = i.instantiateProvider(p.provider2, p.visibility2); + if (p.provider3 instanceof DirectiveProvider && lang_1.isPresent(p.keyId3) && i.obj3 === injector_1.UNDEFINED) + i.obj3 = i.instantiateProvider(p.provider3, p.visibility3); + if (p.provider4 instanceof DirectiveProvider && lang_1.isPresent(p.keyId4) && i.obj4 === injector_1.UNDEFINED) + i.obj4 = i.instantiateProvider(p.provider4, p.visibility4); + if (p.provider5 instanceof DirectiveProvider && lang_1.isPresent(p.keyId5) && i.obj5 === injector_1.UNDEFINED) + i.obj5 = i.instantiateProvider(p.provider5, p.visibility5); + if (p.provider6 instanceof DirectiveProvider && lang_1.isPresent(p.keyId6) && i.obj6 === injector_1.UNDEFINED) + i.obj6 = i.instantiateProvider(p.provider6, p.visibility6); + if (p.provider7 instanceof DirectiveProvider && lang_1.isPresent(p.keyId7) && i.obj7 === injector_1.UNDEFINED) + i.obj7 = i.instantiateProvider(p.provider7, p.visibility7); + if (p.provider8 instanceof DirectiveProvider && lang_1.isPresent(p.keyId8) && i.obj8 === injector_1.UNDEFINED) + i.obj8 = i.instantiateProvider(p.provider8, p.visibility8); + if (p.provider9 instanceof DirectiveProvider && lang_1.isPresent(p.keyId9) && i.obj9 === injector_1.UNDEFINED) + i.obj9 = i.instantiateProvider(p.provider9, p.visibility9); + }; + ElementDirectiveInlineStrategy.prototype.getComponent = function() { + return this.injectorStrategy.obj0; + }; + ElementDirectiveInlineStrategy.prototype.isComponentKey = function(key) { + return this._ei.proto.firstProviderIsComponent && lang_1.isPresent(key) && key.id === this.injectorStrategy.protoStrategy.keyId0; + }; + ElementDirectiveInlineStrategy.prototype.addDirectivesMatchingQuery = function(query, list) { + var i = this.injectorStrategy; + var p = i.protoStrategy; + if (lang_1.isPresent(p.provider0) && p.provider0.key.token === query.selector) { + if (i.obj0 === injector_1.UNDEFINED) + i.obj0 = i.instantiateProvider(p.provider0, p.visibility0); + list.push(i.obj0); + } + if (lang_1.isPresent(p.provider1) && p.provider1.key.token === query.selector) { + if (i.obj1 === injector_1.UNDEFINED) + i.obj1 = i.instantiateProvider(p.provider1, p.visibility1); + list.push(i.obj1); + } + if (lang_1.isPresent(p.provider2) && p.provider2.key.token === query.selector) { + if (i.obj2 === injector_1.UNDEFINED) + i.obj2 = i.instantiateProvider(p.provider2, p.visibility2); + list.push(i.obj2); + } + if (lang_1.isPresent(p.provider3) && p.provider3.key.token === query.selector) { + if (i.obj3 === injector_1.UNDEFINED) + i.obj3 = i.instantiateProvider(p.provider3, p.visibility3); + list.push(i.obj3); + } + if (lang_1.isPresent(p.provider4) && p.provider4.key.token === query.selector) { + if (i.obj4 === injector_1.UNDEFINED) + i.obj4 = i.instantiateProvider(p.provider4, p.visibility4); + list.push(i.obj4); + } + if (lang_1.isPresent(p.provider5) && p.provider5.key.token === query.selector) { + if (i.obj5 === injector_1.UNDEFINED) + i.obj5 = i.instantiateProvider(p.provider5, p.visibility5); + list.push(i.obj5); + } + if (lang_1.isPresent(p.provider6) && p.provider6.key.token === query.selector) { + if (i.obj6 === injector_1.UNDEFINED) + i.obj6 = i.instantiateProvider(p.provider6, p.visibility6); + list.push(i.obj6); + } + if (lang_1.isPresent(p.provider7) && p.provider7.key.token === query.selector) { + if (i.obj7 === injector_1.UNDEFINED) + i.obj7 = i.instantiateProvider(p.provider7, p.visibility7); + list.push(i.obj7); + } + if (lang_1.isPresent(p.provider8) && p.provider8.key.token === query.selector) { + if (i.obj8 === injector_1.UNDEFINED) + i.obj8 = i.instantiateProvider(p.provider8, p.visibility8); + list.push(i.obj8); + } + if (lang_1.isPresent(p.provider9) && p.provider9.key.token === query.selector) { + if (i.obj9 === injector_1.UNDEFINED) + i.obj9 = i.instantiateProvider(p.provider9, p.visibility9); + list.push(i.obj9); + } + }; + return ElementDirectiveInlineStrategy; + })(); + var ElementDirectiveDynamicStrategy = (function() { + function ElementDirectiveDynamicStrategy(injectorStrategy, _ei) { + this.injectorStrategy = injectorStrategy; + this._ei = _ei; + } + ElementDirectiveDynamicStrategy.prototype.init = function() { + var inj = this.injectorStrategy; + var p = inj.protoStrategy; + inj.resetConstructionCounter(); + for (var i = 0; i < p.keyIds.length; i++) { + if (p.providers[i] instanceof DirectiveProvider && lang_1.isPresent(p.keyIds[i]) && inj.objs[i] === injector_1.UNDEFINED) { + inj.objs[i] = inj.instantiateProvider(p.providers[i], p.visibilities[i]); + } + } + }; + ElementDirectiveDynamicStrategy.prototype.getComponent = function() { + return this.injectorStrategy.objs[0]; + }; + ElementDirectiveDynamicStrategy.prototype.isComponentKey = function(key) { + var p = this.injectorStrategy.protoStrategy; + return this._ei.proto.firstProviderIsComponent && lang_1.isPresent(key) && key.id === p.keyIds[0]; + }; + ElementDirectiveDynamicStrategy.prototype.addDirectivesMatchingQuery = function(query, list) { + var ist = this.injectorStrategy; + var p = ist.protoStrategy; + for (var i = 0; i < p.providers.length; i++) { + if (p.providers[i].key.token === query.selector) { + if (ist.objs[i] === injector_1.UNDEFINED) { + ist.objs[i] = ist.instantiateProvider(p.providers[i], p.visibilities[i]); + } + list.push(ist.objs[i]); + } + } + }; + return ElementDirectiveDynamicStrategy; + })(); + var ProtoQueryRef = (function() { + function ProtoQueryRef(dirIndex, setter, query) { + this.dirIndex = dirIndex; + this.setter = setter; + this.query = query; + } + Object.defineProperty(ProtoQueryRef.prototype, "usesPropertySyntax", { + get: function() { + return lang_1.isPresent(this.setter); + }, + enumerable: true, + configurable: true + }); + return ProtoQueryRef; + })(); + exports.ProtoQueryRef = ProtoQueryRef; + var QueryRef = (function() { + function QueryRef(protoQueryRef, originator) { + this.protoQueryRef = protoQueryRef; + this.originator = originator; + this.list = new query_list_1.QueryList(); + this.dirty = true; + } + Object.defineProperty(QueryRef.prototype, "isViewQuery", { + get: function() { + return this.protoQueryRef.query.isViewQuery; + }, + enumerable: true, + configurable: true + }); + QueryRef.prototype.update = function() { + if (!this.dirty) + return; + this._update(); + this.dirty = false; + if (this.protoQueryRef.usesPropertySyntax) { + var dir = this.originator.getDirectiveAtIndex(this.protoQueryRef.dirIndex); + if (this.protoQueryRef.query.first) { + this.protoQueryRef.setter(dir, this.list.length > 0 ? this.list.first : null); + } else { + this.protoQueryRef.setter(dir, this.list); + } + } + this.list.notifyOnChanges(); + }; + QueryRef.prototype._update = function() { + var aggregator = []; + if (this.protoQueryRef.query.isViewQuery) { + var nestedView = this.originator.componentView; + if (lang_1.isPresent(nestedView)) + this._visitView(nestedView, aggregator); + } else { + this._visit(this.originator, aggregator); + } + this.list.reset(aggregator); + }; + ; + QueryRef.prototype._visit = function(inj, aggregator) { + var view = inj.parentView; + var startIdx = inj.proto.index; + for (var i = startIdx; i < view.appElements.length; i++) { + var curInj = view.appElements[i]; + if (i > startIdx && (lang_1.isBlank(curInj.parent) || curInj.parent.proto.index < startIdx)) { + break; + } + if (!this.protoQueryRef.query.descendants && !(curInj.parent == this.originator || curInj == this.originator)) + continue; + this._visitInjector(curInj, aggregator); + this._visitViewContainerViews(curInj.nestedViews, aggregator); + } + }; + QueryRef.prototype._visitInjector = function(inj, aggregator) { + if (this.protoQueryRef.query.isVarBindingQuery) { + this._aggregateVariableBinding(inj, aggregator); + } else { + this._aggregateDirective(inj, aggregator); + } + }; + QueryRef.prototype._visitViewContainerViews = function(views, aggregator) { + if (lang_1.isPresent(views)) { + for (var j = 0; j < views.length; j++) { + this._visitView(views[j], aggregator); + } + } + }; + QueryRef.prototype._visitView = function(view, aggregator) { + for (var i = 0; i < view.appElements.length; i++) { + var inj = view.appElements[i]; + this._visitInjector(inj, aggregator); + this._visitViewContainerViews(inj.nestedViews, aggregator); + } + }; + QueryRef.prototype._aggregateVariableBinding = function(inj, aggregator) { + var vb = this.protoQueryRef.query.varBindings; + for (var i = 0; i < vb.length; ++i) { + if (inj.hasVariableBinding(vb[i])) { + aggregator.push(inj.getVariableBinding(vb[i])); + } + } + }; + QueryRef.prototype._aggregateDirective = function(inj, aggregator) { + inj.addDirectivesMatchingQuery(this.protoQueryRef.query, aggregator); + }; + return QueryRef; + })(); + exports.QueryRef = QueryRef; + var _ComponentViewChangeDetectorRef = (function(_super) { + __extends(_ComponentViewChangeDetectorRef, _super); + function _ComponentViewChangeDetectorRef(_appElement) { + _super.call(this); + this._appElement = _appElement; + } + _ComponentViewChangeDetectorRef.prototype.markForCheck = function() { + this._appElement.componentView.changeDetector.ref.markForCheck(); + }; + _ComponentViewChangeDetectorRef.prototype.detach = function() { + this._appElement.componentView.changeDetector.ref.detach(); + }; + _ComponentViewChangeDetectorRef.prototype.detectChanges = function() { + this._appElement.componentView.changeDetector.ref.detectChanges(); + }; + _ComponentViewChangeDetectorRef.prototype.checkNoChanges = function() { + this._appElement.componentView.changeDetector.ref.checkNoChanges(); + }; + _ComponentViewChangeDetectorRef.prototype.reattach = function() { + this._appElement.componentView.changeDetector.ref.reattach(); + }; + return _ComponentViewChangeDetectorRef; + })(change_detection_1.ChangeDetectorRef); + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("1bd", [], true, function($__require, exports, module) { + "use strict"; + ; + var global = this, + __define = global.define; + global.define = undefined; + var RenderComponentType = (function() { + function RenderComponentType(id, encapsulation, styles) { + this.id = id; + this.encapsulation = encapsulation; + this.styles = styles; + } + return RenderComponentType; + })(); + exports.RenderComponentType = RenderComponentType; + var RenderDebugInfo = (function() { + function RenderDebugInfo(injector, component, providerTokens, locals) { + this.injector = injector; + this.component = component; + this.providerTokens = providerTokens; + this.locals = locals; + } + return RenderDebugInfo; + })(); + exports.RenderDebugInfo = RenderDebugInfo; + var Renderer = (function() { + function Renderer() {} + return Renderer; + })(); + exports.Renderer = Renderer; + var RootRenderer = (function() { + function RootRenderer() {} + return RootRenderer; + })(); + exports.RootRenderer = RootRenderer; + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("1f7", ["2b"], true, function($__require, exports, module) { + "use strict"; + ; + var global = this, + __define = global.define; + global.define = undefined; + var lang_1 = $__require('2b'); + var trace; + var events; + function detectWTF() { + var wtf = lang_1.global['wtf']; + if (wtf) { + trace = wtf['trace']; + if (trace) { + events = trace['events']; + return true; + } + } + return false; + } + exports.detectWTF = detectWTF; + function createScope(signature, flags) { + if (flags === void 0) { + flags = null; + } + return events.createScope(signature, flags); + } + exports.createScope = createScope; + function leave(scope, returnValue) { + trace.leaveScope(scope, returnValue); + return returnValue; + } + exports.leave = leave; + function startTimeRange(rangeType, action) { + return trace.beginTimeRange(rangeType, action); + } + exports.startTimeRange = startTimeRange; + function endTimeRange(range) { + trace.endTimeRange(range); + } + exports.endTimeRange = endTimeRange; + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("1ba", ["1f7"], true, function($__require, exports, module) { + "use strict"; + ; + var global = this, + __define = global.define; + global.define = undefined; + var impl = $__require('1f7'); + exports.wtfEnabled = impl.detectWTF(); + function noopScope(arg0, arg1) { + return null; + } + exports.wtfCreateScope = exports.wtfEnabled ? impl.createScope : function(signature, flags) { + return noopScope; + }; + exports.wtfLeave = exports.wtfEnabled ? impl.leave : function(s, r) { + return r; + }; + exports.wtfStartTimeRange = exports.wtfEnabled ? impl.startTimeRange : function(rangeType, action) { + return null; + }; + exports.wtfEndTimeRange = exports.wtfEnabled ? impl.endTimeRange : function(r) { + return null; + }; + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("1b5", ["2b"], true, function($__require, exports, module) { + "use strict"; + ; + var global = this, + __define = global.define; + global.define = undefined; + var lang_1 = $__require('2b'); + var _nextClassId = 0; function extractAnnotation(annotation) { if (lang_1.isFunction(annotation) && annotation.hasOwnProperty('annotation')) { annotation = annotation.annotation; @@ -53168,6 +51799,9 @@ $__System.registerDynamic("1c5", ["22"], true, function($__require, exports, mod if (this && this.annotations instanceof Array) { Reflect.defineMetadata('annotations', this.annotations, constructor); } + if (!constructor['name']) { + constructor['overriddenName'] = "class" + _nextClassId++; + } return constructor; } exports.Class = Class; @@ -53263,14 +51897,14 @@ $__System.registerDynamic("1c5", ["22"], true, function($__require, exports, mod return module.exports; }); -$__System.registerDynamic("1fa", ["1f4", "1c5"], true, function($__require, exports, module) { +$__System.registerDynamic("1d2", ["1cb", "1b5"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var metadata_1 = $__require('1f4'); - var decorators_1 = $__require('1c5'); + var metadata_1 = $__require('1cb'); + var decorators_1 = $__require('1b5'); exports.Inject = decorators_1.makeParamDecorator(metadata_1.InjectMetadata); exports.Optional = decorators_1.makeParamDecorator(metadata_1.OptionalMetadata); exports.Injectable = decorators_1.makeDecorator(metadata_1.InjectableMetadata); @@ -53281,7 +51915,7 @@ $__System.registerDynamic("1fa", ["1f4", "1c5"], true, function($__require, expo return module.exports; }); -$__System.registerDynamic("212", [], true, function($__require, exports, module) { +$__System.registerDynamic("1f8", [], true, function($__require, exports, module) { ; var global = this, __define = global.define; @@ -53373,49 +52007,50 @@ $__System.registerDynamic("212", [], true, function($__require, exports, module) return module.exports; }); -$__System.registerDynamic("213", ["212"], true, function($__require, exports, module) { +$__System.registerDynamic("1f9", ["1f8"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; - module.exports = $__require('212'); + module.exports = $__require('1f8'); global.define = __define; return module.exports; }); -$__System.registerDynamic("214", ["213"], true, function($__require, exports, module) { +$__System.registerDynamic("1fa", ["1f9"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; - module.exports = $__System._nodeRequire ? process : $__require('213'); + module.exports = $__System._nodeRequire ? process : $__require('1f9'); global.define = __define; return module.exports; }); -$__System.registerDynamic("38", ["214"], true, function($__require, exports, module) { +$__System.registerDynamic("37", ["1fa"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; - module.exports = $__require('214'); + module.exports = $__require('1fa'); global.define = __define; return module.exports; }); -$__System.registerDynamic("1f1", ["3b", "1f0", "215", "22", "216", "1f4", "38"], true, function($__require, exports, module) { +$__System.registerDynamic("1f6", ["3a", "1f5", "1fb", "2b", "3f", "1fc", "1cb", "37"], true, function($__require, exports, module) { ; var global = this, __define = global.define; global.define = undefined; (function(process) { 'use strict'; - var collection_1 = $__require('3b'); - var provider_1 = $__require('1f0'); - var exceptions_1 = $__require('215'); - var lang_1 = $__require('22'); - var key_1 = $__require('216'); - var metadata_1 = $__require('1f4'); + var collection_1 = $__require('3a'); + var provider_1 = $__require('1f5'); + var exceptions_1 = $__require('1fb'); + var lang_1 = $__require('2b'); + var exceptions_2 = $__require('3f'); + var key_1 = $__require('1fc'); + var metadata_1 = $__require('1cb'); var _MAX_CONSTRUCTION_COUNTER = 10; exports.UNDEFINED = lang_1.CONST_EXPR(new Object()); (function(Visibility) { @@ -53569,6 +52204,12 @@ $__System.registerDynamic("1f1", ["3b", "1f0", "215", "22", "216", "1f4", "38"], this.numberOfProviders = bwv.length; this._strategy = bwv.length > _MAX_CONSTRUCTION_COUNTER ? new ProtoInjectorDynamicStrategy(this, bwv) : new ProtoInjectorInlineStrategy(this, bwv); } + ProtoInjector.fromResolvedProviders = function(providers) { + var bd = providers.map(function(b) { + return new ProviderWithVisibility(b, Visibility.Public); + }); + return new ProtoInjector(bd); + }; ProtoInjector.prototype.getProviderAtIndex = function(index) { return this._strategy.getProviderAtIndex(index); }; @@ -53596,11 +52237,6 @@ $__System.registerDynamic("1f1", ["3b", "1f0", "215", "22", "216", "1f4", "38"], InjectorInlineStrategy.prototype.instantiateProvider = function(provider, visibility) { return this.injector._new(provider, visibility); }; - InjectorInlineStrategy.prototype.attach = function(parent, isHost) { - var inj = this.injector; - inj._parent = parent; - inj._isHost = isHost; - }; InjectorInlineStrategy.prototype.getObjByKeyId = function(keyId, visibility) { var p = this.protoStrategy; var inj = this.injector; @@ -53708,11 +52344,6 @@ $__System.registerDynamic("1f1", ["3b", "1f0", "215", "22", "216", "1f4", "38"], InjectorDynamicStrategy.prototype.instantiateProvider = function(provider, visibility) { return this.injector._new(provider, visibility); }; - InjectorDynamicStrategy.prototype.attach = function(parent, isHost) { - var inj = this.injector; - inj._parent = parent; - inj._isHost = isHost; - }; InjectorDynamicStrategy.prototype.getObjByKeyId = function(keyId, visibility) { var p = this.protoStrategy; for (var i = 0; i < p.keyIds.length; i++) { @@ -53750,19 +52381,22 @@ $__System.registerDynamic("1f1", ["3b", "1f0", "215", "22", "216", "1f4", "38"], })(); exports.ProviderWithVisibility = ProviderWithVisibility; var Injector = (function() { - function Injector(_proto, _parent, _depProvider, _debugContext) { + function Injector(_proto, _parent, _isHostBoundary, _depProvider, _debugContext) { if (_parent === void 0) { _parent = null; } + if (_isHostBoundary === void 0) { + _isHostBoundary = false; + } if (_depProvider === void 0) { _depProvider = null; } if (_debugContext === void 0) { _debugContext = null; } + this._isHostBoundary = _isHostBoundary; this._depProvider = _depProvider; this._debugContext = _debugContext; - this._isHost = false; this._constructionCounter = 0; this._proto = _proto; this._parent = _parent; @@ -53776,15 +52410,18 @@ $__System.registerDynamic("1f1", ["3b", "1f0", "215", "22", "216", "1f4", "38"], return Injector.fromResolvedProviders(resolvedProviders); }; Injector.fromResolvedProviders = function(providers) { - var bd = providers.map(function(b) { - return new ProviderWithVisibility(b, Visibility.Public); - }); - var proto = new ProtoInjector(bd); - return new Injector(proto, null, null); + return new Injector(ProtoInjector.fromResolvedProviders(providers)); }; Injector.fromResolvedBindings = function(providers) { return Injector.fromResolvedProviders(providers); }; + Object.defineProperty(Injector.prototype, "hostBoundary", { + get: function() { + return this._isHostBoundary; + }, + enumerable: true, + configurable: true + }); Injector.prototype.debugContext = function() { return this._debugContext(); }; @@ -53820,7 +52457,7 @@ $__System.registerDynamic("1f1", ["3b", "1f0", "215", "22", "216", "1f4", "38"], return new ProviderWithVisibility(b, Visibility.Public); }); var proto = new ProtoInjector(bd); - var inj = new Injector(proto, null, null); + var inj = new Injector(proto); inj._parent = this; return inj; }; @@ -53964,6 +52601,8 @@ $__System.registerDynamic("1f1", ["3b", "1f0", "215", "22", "216", "1f4", "38"], case 20: obj = factory(d0, d1, d2, d3, d4, d5, d6, d7, d8, d9, d10, d11, d12, d13, d14, d15, d16, d17, d18, d19); break; + default: + throw new exceptions_2.BaseException("Cannot instantiate '" + provider.key.displayName + "' because it has more than 20 dependencies"); } } catch (e) { throw new exceptions_1.InstantiationError(this, e, e.stack, provider.key); @@ -54004,7 +52643,7 @@ $__System.registerDynamic("1f1", ["3b", "1f0", "215", "22", "216", "1f4", "38"], Injector.prototype._getByKeyHost = function(key, optional, providerVisibility, lowerBoundVisibility) { var inj = this; if (lowerBoundVisibility instanceof metadata_1.SkipSelfMetadata) { - if (inj._isHost) { + if (inj._isHostBoundary) { return this._getPrivateDependency(key, optional, inj); } else { inj = inj._parent; @@ -54014,7 +52653,7 @@ $__System.registerDynamic("1f1", ["3b", "1f0", "215", "22", "216", "1f4", "38"], var obj = inj._strategy.getObjByKeyId(key.id, providerVisibility); if (obj !== exports.UNDEFINED) return obj; - if (lang_1.isPresent(inj._parent) && inj._isHost) { + if (lang_1.isPresent(inj._parent) && inj._isHostBoundary) { return this._getPrivateDependency(key, optional, inj); } else { inj = inj._parent; @@ -54029,14 +52668,14 @@ $__System.registerDynamic("1f1", ["3b", "1f0", "215", "22", "216", "1f4", "38"], Injector.prototype._getByKeyDefault = function(key, optional, providerVisibility, lowerBoundVisibility) { var inj = this; if (lowerBoundVisibility instanceof metadata_1.SkipSelfMetadata) { - providerVisibility = inj._isHost ? Visibility.PublicAndPrivate : Visibility.Public; + providerVisibility = inj._isHostBoundary ? Visibility.PublicAndPrivate : Visibility.Public; inj = inj._parent; } while (inj != null) { var obj = inj._strategy.getObjByKeyId(key.id, providerVisibility); if (obj !== exports.UNDEFINED) return obj; - providerVisibility = inj._isHost ? Visibility.PublicAndPrivate : Visibility.Public; + providerVisibility = inj._isHostBoundary ? Visibility.PublicAndPrivate : Visibility.Public; inj = inj._parent; } return this._throwOrNull(key, optional); @@ -54064,12 +52703,12 @@ $__System.registerDynamic("1f1", ["3b", "1f0", "215", "22", "216", "1f4", "38"], } return res; } - })($__require('38')); + })($__require('37')); global.define = __define; return module.exports; }); -$__System.registerDynamic("1f4", ["22"], true, function($__require, exports, module) { +$__System.registerDynamic("1cb", ["2b"], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -54091,7 +52730,7 @@ $__System.registerDynamic("1f4", ["22"], true, function($__require, exports, mod if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; - var lang_1 = $__require('22'); + var lang_1 = $__require('2b'); var InjectMetadata = (function() { function InjectMetadata(token) { this.token = token; @@ -54162,7 +52801,7 @@ $__System.registerDynamic("1f4", ["22"], true, function($__require, exports, mod return module.exports; }); -$__System.registerDynamic("1f0", ["22", "40", "3b", "85", "216", "1f4", "215", "217"], true, function($__require, exports, module) { +$__System.registerDynamic("1f5", ["2b", "3f", "3a", "84", "1fc", "1cb", "1fb", "1fd"], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -54193,14 +52832,14 @@ $__System.registerDynamic("1f0", ["22", "40", "3b", "85", "216", "1f4", "215", " if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; - var lang_1 = $__require('22'); - var exceptions_1 = $__require('40'); - var collection_1 = $__require('3b'); - var reflection_1 = $__require('85'); - var key_1 = $__require('216'); - var metadata_1 = $__require('1f4'); - var exceptions_2 = $__require('215'); - var forward_ref_1 = $__require('217'); + var lang_1 = $__require('2b'); + var exceptions_1 = $__require('3f'); + var collection_1 = $__require('3a'); + var reflection_1 = $__require('84'); + var key_1 = $__require('1fc'); + var metadata_1 = $__require('1cb'); + var exceptions_2 = $__require('1fb'); + var forward_ref_1 = $__require('1fd'); var Dependency = (function() { function Dependency(key, optional, lowerBoundVisibility, upperBoundVisibility, properties) { this.key = key; @@ -54394,39 +53033,49 @@ $__System.registerDynamic("1f0", ["22", "40", "3b", "85", "216", "1f4", "215", " } exports.resolveFactory = resolveFactory; function resolveProvider(provider) { - return new ResolvedProvider_(key_1.Key.get(provider.token), [resolveFactory(provider)], false); + return new ResolvedProvider_(key_1.Key.get(provider.token), [resolveFactory(provider)], provider.multi); } exports.resolveProvider = resolveProvider; function resolveProviders(providers) { - var normalized = _createListOfProviders(_normalizeProviders(providers, new Map())); - return normalized.map(function(b) { - if (b instanceof _NormalizedProvider) { - return new ResolvedProvider_(b.key, [b.resolvedFactory], false); - } else { - var arr = b; - return new ResolvedProvider_(arr[0].key, arr.map(function(_) { - return _.resolvedFactory; - }), true); - } - }); + var normalized = _normalizeProviders(providers, []); + var resolved = normalized.map(resolveProvider); + return collection_1.MapWrapper.values(mergeResolvedProviders(resolved, new Map())); } exports.resolveProviders = resolveProviders; - var _NormalizedProvider = (function() { - function _NormalizedProvider(key, resolvedFactory) { - this.key = key; - this.resolvedFactory = resolvedFactory; + function mergeResolvedProviders(providers, normalizedProvidersMap) { + for (var i = 0; i < providers.length; i++) { + var provider = providers[i]; + var existing = normalizedProvidersMap.get(provider.key.id); + if (lang_1.isPresent(existing)) { + if (provider.multiProvider !== existing.multiProvider) { + throw new exceptions_2.MixingMultiProvidersWithRegularProvidersError(existing, provider); + } + if (provider.multiProvider) { + for (var j = 0; j < provider.resolvedFactories.length; j++) { + existing.resolvedFactories.push(provider.resolvedFactories[j]); + } + } else { + normalizedProvidersMap.set(provider.key.id, provider); + } + } else { + var resolvedProvider; + if (provider.multiProvider) { + resolvedProvider = new ResolvedProvider_(provider.key, collection_1.ListWrapper.clone(provider.resolvedFactories), provider.multiProvider); + } else { + resolvedProvider = provider; + } + normalizedProvidersMap.set(provider.key.id, resolvedProvider); + } } - return _NormalizedProvider; - })(); - function _createListOfProviders(flattenedProviders) { - return collection_1.MapWrapper.values(flattenedProviders); + return normalizedProvidersMap; } + exports.mergeResolvedProviders = mergeResolvedProviders; function _normalizeProviders(providers, res) { providers.forEach(function(b) { if (b instanceof lang_1.Type) { - _normalizeProvider(provide(b, {useClass: b}), res); + res.push(provide(b, {useClass: b})); } else if (b instanceof Provider) { - _normalizeProvider(b, res); + res.push(b); } else if (b instanceof Array) { _normalizeProviders(b, res); } else if (b instanceof ProviderBuilder) { @@ -54437,27 +53086,6 @@ $__System.registerDynamic("1f0", ["22", "40", "3b", "85", "216", "1f4", "215", " }); return res; } - function _normalizeProvider(b, res) { - var key = key_1.Key.get(b.token); - var factory = resolveFactory(b); - var normalized = new _NormalizedProvider(key, factory); - if (b.multi) { - var existingProvider = res.get(key.id); - if (existingProvider instanceof Array) { - existingProvider.push(normalized); - } else if (lang_1.isBlank(existingProvider)) { - res.set(key.id, [normalized]); - } else { - throw new exceptions_2.MixingMultiProvidersWithRegularProvidersError(existingProvider, b); - } - } else { - var existingProvider = res.get(key.id); - if (existingProvider instanceof Array) { - throw new exceptions_2.MixingMultiProvidersWithRegularProvidersError(existingProvider, b); - } - res.set(key.id, normalized); - } - } function _constructDependencies(factoryFunction, dependencies) { if (lang_1.isBlank(dependencies)) { return _dependenciesFor(factoryFunction); @@ -54529,7 +53157,7 @@ $__System.registerDynamic("1f0", ["22", "40", "3b", "85", "216", "1f4", "215", " return module.exports; }); -$__System.registerDynamic("218", [], true, function($__require, exports, module) { +$__System.registerDynamic("1fe", [], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -54551,13 +53179,13 @@ $__System.registerDynamic("218", [], true, function($__require, exports, module) return module.exports; }); -$__System.registerDynamic("217", ["22"], true, function($__require, exports, module) { +$__System.registerDynamic("1fd", ["2b"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var lang_1 = $__require('22'); + var lang_1 = $__require('2b'); function forwardRef(forwardRefFn) { forwardRefFn.__forward_ref__ = forwardRef; forwardRefFn.toString = function() { @@ -54578,17 +53206,17 @@ $__System.registerDynamic("217", ["22"], true, function($__require, exports, mod return module.exports; }); -$__System.registerDynamic("216", ["22", "40", "218", "217"], true, function($__require, exports, module) { +$__System.registerDynamic("1fc", ["2b", "3f", "1fe", "1fd"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var lang_1 = $__require('22'); - var exceptions_1 = $__require('40'); - var type_literal_1 = $__require('218'); - var forward_ref_1 = $__require('217'); - var type_literal_2 = $__require('218'); + var lang_1 = $__require('2b'); + var exceptions_1 = $__require('3f'); + var type_literal_1 = $__require('1fe'); + var forward_ref_1 = $__require('1fd'); + var type_literal_2 = $__require('1fe'); exports.TypeLiteral = type_literal_2.TypeLiteral; var Key = (function() { function Key(token, id) { @@ -54652,7 +53280,7 @@ $__System.registerDynamic("216", ["22", "40", "218", "217"], true, function($__r return module.exports; }); -$__System.registerDynamic("215", ["3b", "22", "40"], true, function($__require, exports, module) { +$__System.registerDynamic("1fb", ["3a", "2b", "3f"], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -54667,9 +53295,9 @@ $__System.registerDynamic("215", ["3b", "22", "40"], true, function($__require, } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; - var collection_1 = $__require('3b'); - var lang_1 = $__require('22'); - var exceptions_1 = $__require('40'); + var collection_1 = $__require('3a'); + var lang_1 = $__require('2b'); + var exceptions_1 = $__require('3f'); function findFirstClosedCycle(keys) { var res = []; for (var i = 0; i < keys.length; ++i) { @@ -54798,7 +53426,7 @@ $__System.registerDynamic("215", ["3b", "22", "40"], true, function($__require, signature.push(parameter.map(lang_1.stringify).join(' ')); } } - return "Cannot resolve all parameters for " + lang_1.stringify(typeOrFunc) + "(" + signature.join(', ') + "). " + 'Make sure they all have valid type or annotations.'; + return "Cannot resolve all parameters for '" + lang_1.stringify(typeOrFunc) + "'(" + signature.join(', ') + "). " + "Make sure that all the parameters are decorated with Inject or have valid type annotations and that '" + lang_1.stringify(typeOrFunc) + "' is decorated with Injectable."; }; return NoAnnotationError; })(exceptions_1.BaseException); @@ -54823,7 +53451,7 @@ $__System.registerDynamic("215", ["3b", "22", "40"], true, function($__require, return module.exports; }); -$__System.registerDynamic("219", ["22"], true, function($__require, exports, module) { +$__System.registerDynamic("1ff", ["2b"], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -54845,7 +53473,7 @@ $__System.registerDynamic("219", ["22"], true, function($__require, exports, mod if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; - var lang_1 = $__require('22'); + var lang_1 = $__require('2b'); var OpaqueToken = (function() { function OpaqueToken(_desc) { this._desc = _desc; @@ -54861,7 +53489,7 @@ $__System.registerDynamic("219", ["22"], true, function($__require, exports, mod return module.exports; }); -$__System.registerDynamic("3d", ["1f4", "1fa", "217", "1f1", "1f0", "216", "215", "219"], true, function($__require, exports, module) { +$__System.registerDynamic("3c", ["1cb", "1d2", "1fd", "1f6", "1f5", "1fc", "1fb", "1ff"], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -54872,7 +53500,7 @@ $__System.registerDynamic("3d", ["1f4", "1fa", "217", "1f1", "1f0", "216", "215" if (!exports.hasOwnProperty(p)) exports[p] = m[p]; } - var metadata_1 = $__require('1f4'); + var metadata_1 = $__require('1cb'); exports.InjectMetadata = metadata_1.InjectMetadata; exports.OptionalMetadata = metadata_1.OptionalMetadata; exports.InjectableMetadata = metadata_1.InjectableMetadata; @@ -54880,13 +53508,13 @@ $__System.registerDynamic("3d", ["1f4", "1fa", "217", "1f1", "1f0", "216", "215" exports.HostMetadata = metadata_1.HostMetadata; exports.SkipSelfMetadata = metadata_1.SkipSelfMetadata; exports.DependencyMetadata = metadata_1.DependencyMetadata; - __export($__require('1fa')); - var forward_ref_1 = $__require('217'); + __export($__require('1d2')); + var forward_ref_1 = $__require('1fd'); exports.forwardRef = forward_ref_1.forwardRef; exports.resolveForwardRef = forward_ref_1.resolveForwardRef; - var injector_1 = $__require('1f1'); + var injector_1 = $__require('1f6'); exports.Injector = injector_1.Injector; - var provider_1 = $__require('1f0'); + var provider_1 = $__require('1f5'); exports.Binding = provider_1.Binding; exports.ProviderBuilder = provider_1.ProviderBuilder; exports.ResolvedFactory = provider_1.ResolvedFactory; @@ -54894,10 +53522,10 @@ $__System.registerDynamic("3d", ["1f4", "1fa", "217", "1f1", "1f0", "216", "215" exports.bind = provider_1.bind; exports.Provider = provider_1.Provider; exports.provide = provider_1.provide; - var key_1 = $__require('216'); + var key_1 = $__require('1fc'); exports.Key = key_1.Key; exports.TypeLiteral = key_1.TypeLiteral; - var exceptions_1 = $__require('215'); + var exceptions_1 = $__require('1fb'); exports.NoProviderError = exceptions_1.NoProviderError; exports.AbstractProviderError = exceptions_1.AbstractProviderError; exports.CyclicDependencyError = exceptions_1.CyclicDependencyError; @@ -54905,20 +53533,20 @@ $__System.registerDynamic("3d", ["1f4", "1fa", "217", "1f1", "1f0", "216", "215" exports.InvalidProviderError = exceptions_1.InvalidProviderError; exports.NoAnnotationError = exceptions_1.NoAnnotationError; exports.OutOfBoundsError = exceptions_1.OutOfBoundsError; - var opaque_token_1 = $__require('219'); + var opaque_token_1 = $__require('1ff'); exports.OpaqueToken = opaque_token_1.OpaqueToken; global.define = __define; return module.exports; }); -$__System.registerDynamic("8c", ["3d", "22"], true, function($__require, exports, module) { +$__System.registerDynamic("90", ["3c", "2b"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var di_1 = $__require('3d'); - var lang_1 = $__require('22'); + var di_1 = $__require('3c'); + var lang_1 = $__require('2b'); exports.APP_COMPONENT_REF_PROMISE = lang_1.CONST_EXPR(new di_1.OpaqueToken('Promise')); exports.APP_COMPONENT = lang_1.CONST_EXPR(new di_1.OpaqueToken('AppComponent')); exports.APP_ID = lang_1.CONST_EXPR(new di_1.OpaqueToken('AppId')); @@ -54939,314 +53567,23 @@ $__System.registerDynamic("8c", ["3d", "22"], true, function($__require, exports return module.exports; }); -$__System.registerDynamic("65", ["22", "5a", "3d", "1ef", "1d7", "1d3", "1dc", "1d6", "82", "83", "1f3", "7f", "86", "68", "8c"], true, function($__require, exports, module) { +$__System.registerDynamic("8d", [], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var __decorate = (this && this.__decorate) || function(decorators, target, key, desc) { - var c = arguments.length, - r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, - d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") - r = Reflect.decorate(decorators, target, key, desc); - else - for (var i = decorators.length - 1; i >= 0; i--) - if (d = decorators[i]) - r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; - }; - var __metadata = (this && this.__metadata) || function(k, v) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") - return Reflect.metadata(k, v); - }; - var __param = (this && this.__param) || function(paramIndex, decorator) { - return function(target, key) { - decorator(target, key, paramIndex); - }; - }; - var lang_1 = $__require('22'); - var api_1 = $__require('5a'); - var di_1 = $__require('3d'); - var pipe_provider_1 = $__require('1ef'); - var pipes_1 = $__require('1d7'); - var view_1 = $__require('1d3'); - var element_binder_1 = $__require('1dc'); - var element_injector_1 = $__require('1d6'); - var directive_resolver_1 = $__require('82'); - var view_resolver_1 = $__require('83'); - var pipe_resolver_1 = $__require('1f3'); - var view_2 = $__require('7f'); - var platform_directives_and_pipes_1 = $__require('86'); - var template_commands_1 = $__require('68'); - var api_2 = $__require('5a'); - var application_tokens_1 = $__require('8c'); - var ProtoViewFactory = (function() { - function ProtoViewFactory(_renderer, _platformPipes, _directiveResolver, _viewResolver, _pipeResolver, _appId) { - this._renderer = _renderer; - this._platformPipes = _platformPipes; - this._directiveResolver = _directiveResolver; - this._viewResolver = _viewResolver; - this._pipeResolver = _pipeResolver; - this._appId = _appId; - this._cache = new Map(); - this._nextTemplateId = 0; - } - ProtoViewFactory.prototype.clearCache = function() { - this._cache.clear(); - }; - ProtoViewFactory.prototype.createHost = function(compiledHostTemplate) { - var compiledTemplate = compiledHostTemplate.template; - var result = this._cache.get(compiledTemplate.id); - if (lang_1.isBlank(result)) { - var emptyMap = {}; - var shortId = this._appId + "-" + this._nextTemplateId++; - this._renderer.registerComponentTemplate(new api_1.RenderComponentTemplate(compiledTemplate.id, shortId, view_2.ViewEncapsulation.None, compiledTemplate.commands, [])); - result = new view_1.AppProtoView(compiledTemplate.id, compiledTemplate.commands, view_1.ViewType.HOST, true, compiledTemplate.changeDetectorFactory, null, new pipes_1.ProtoPipes(emptyMap)); - this._cache.set(compiledTemplate.id, result); - } - return result; - }; - ProtoViewFactory.prototype._createComponent = function(cmd) { - var _this = this; - var nestedProtoView = this._cache.get(cmd.templateId); - if (lang_1.isBlank(nestedProtoView)) { - var component = cmd.directives[0]; - var view = this._viewResolver.resolve(component); - var compiledTemplate = cmd.templateGetter(); - var styles = _flattenStyleArr(compiledTemplate.styles, []); - var shortId = this._appId + "-" + this._nextTemplateId++; - this._renderer.registerComponentTemplate(new api_1.RenderComponentTemplate(compiledTemplate.id, shortId, cmd.encapsulation, compiledTemplate.commands, styles)); - var boundPipes = this._flattenPipes(view).map(function(pipe) { - return _this._bindPipe(pipe); - }); - nestedProtoView = new view_1.AppProtoView(compiledTemplate.id, compiledTemplate.commands, view_1.ViewType.COMPONENT, true, compiledTemplate.changeDetectorFactory, null, pipes_1.ProtoPipes.fromProviders(boundPipes)); - this._cache.set(compiledTemplate.id, nestedProtoView); - this._initializeProtoView(nestedProtoView, null); - } - return nestedProtoView; - }; - ProtoViewFactory.prototype._createEmbeddedTemplate = function(cmd, parent) { - var nestedProtoView = new view_1.AppProtoView(parent.templateId, cmd.children, view_1.ViewType.EMBEDDED, cmd.isMerged, cmd.changeDetectorFactory, arrayToMap(cmd.variableNameAndValues, true), new pipes_1.ProtoPipes(parent.pipes.config)); - if (cmd.isMerged) { - this.initializeProtoViewIfNeeded(nestedProtoView); - } - return nestedProtoView; - }; - ProtoViewFactory.prototype.initializeProtoViewIfNeeded = function(protoView) { - if (!protoView.isInitialized()) { - var render = this._renderer.createProtoView(protoView.templateId, protoView.templateCmds); - this._initializeProtoView(protoView, render); - } - }; - ProtoViewFactory.prototype._initializeProtoView = function(protoView, render) { - var initializer = new _ProtoViewInitializer(protoView, this._directiveResolver, this); - template_commands_1.visitAllCommands(initializer, protoView.templateCmds); - var mergeInfo = new view_1.AppProtoViewMergeInfo(initializer.mergeEmbeddedViewCount, initializer.mergeElementCount, initializer.mergeViewCount); - protoView.init(render, initializer.elementBinders, initializer.boundTextCount, mergeInfo, initializer.variableLocations); - }; - ProtoViewFactory.prototype._bindPipe = function(typeOrProvider) { - var meta = this._pipeResolver.resolve(typeOrProvider); - return pipe_provider_1.PipeProvider.createFromType(typeOrProvider, meta); - }; - ProtoViewFactory.prototype._flattenPipes = function(view) { - var pipes = []; - if (lang_1.isPresent(this._platformPipes)) { - _flattenArray(this._platformPipes, pipes); - } - if (lang_1.isPresent(view.pipes)) { - _flattenArray(view.pipes, pipes); - } - return pipes; - }; - ProtoViewFactory = __decorate([di_1.Injectable(), __param(1, di_1.Optional()), __param(1, di_1.Inject(platform_directives_and_pipes_1.PLATFORM_PIPES)), __param(5, di_1.Inject(application_tokens_1.APP_ID)), __metadata('design:paramtypes', [api_2.Renderer, Array, directive_resolver_1.DirectiveResolver, view_resolver_1.ViewResolver, pipe_resolver_1.PipeResolver, String])], ProtoViewFactory); - return ProtoViewFactory; - })(); - exports.ProtoViewFactory = ProtoViewFactory; - function createComponent(protoViewFactory, cmd) { - return protoViewFactory._createComponent(cmd); - } - function createEmbeddedTemplate(protoViewFactory, cmd, parent) { - return protoViewFactory._createEmbeddedTemplate(cmd, parent); - } - var _ProtoViewInitializer = (function() { - function _ProtoViewInitializer(_protoView, _directiveResolver, _protoViewFactory) { - this._protoView = _protoView; - this._directiveResolver = _directiveResolver; - this._protoViewFactory = _protoViewFactory; - this.variableLocations = new Map(); - this.boundTextCount = 0; - this.boundElementIndex = 0; - this.elementBinderStack = []; - this.distanceToParentElementBinder = 0; - this.distanceToParentProtoElementInjector = 0; - this.elementBinders = []; - this.mergeEmbeddedViewCount = 0; - this.mergeElementCount = 0; - this.mergeViewCount = 1; - } - _ProtoViewInitializer.prototype.visitText = function(cmd, context) { - if (cmd.isBound) { - this.boundTextCount++; - } - return null; - }; - _ProtoViewInitializer.prototype.visitNgContent = function(cmd, context) { - return null; - }; - _ProtoViewInitializer.prototype.visitBeginElement = function(cmd, context) { - if (cmd.isBound) { - this._visitBeginBoundElement(cmd, null); - } else { - this._visitBeginElement(cmd, null, null); - } - return null; - }; - _ProtoViewInitializer.prototype.visitEndElement = function(context) { - return this._visitEndElement(); - }; - _ProtoViewInitializer.prototype.visitBeginComponent = function(cmd, context) { - var nestedProtoView = createComponent(this._protoViewFactory, cmd); - return this._visitBeginBoundElement(cmd, nestedProtoView); - }; - _ProtoViewInitializer.prototype.visitEndComponent = function(context) { - return this._visitEndElement(); - }; - _ProtoViewInitializer.prototype.visitEmbeddedTemplate = function(cmd, context) { - var nestedProtoView = createEmbeddedTemplate(this._protoViewFactory, cmd, this._protoView); - if (cmd.isMerged) { - this.mergeEmbeddedViewCount++; - } - this._visitBeginBoundElement(cmd, nestedProtoView); - return this._visitEndElement(); - }; - _ProtoViewInitializer.prototype._visitBeginBoundElement = function(cmd, nestedProtoView) { - if (lang_1.isPresent(nestedProtoView) && nestedProtoView.isMergable) { - this.mergeElementCount += nestedProtoView.mergeInfo.elementCount; - this.mergeViewCount += nestedProtoView.mergeInfo.viewCount; - this.mergeEmbeddedViewCount += nestedProtoView.mergeInfo.embeddedViewCount; - } - var elementBinder = _createElementBinder(this._directiveResolver, nestedProtoView, this.elementBinderStack, this.boundElementIndex, this.distanceToParentElementBinder, this.distanceToParentProtoElementInjector, cmd); - this.elementBinders.push(elementBinder); - var protoElementInjector = elementBinder.protoElementInjector; - for (var i = 0; i < cmd.variableNameAndValues.length; i += 2) { - this.variableLocations.set(cmd.variableNameAndValues[i], this.boundElementIndex); - } - this.boundElementIndex++; - this.mergeElementCount++; - return this._visitBeginElement(cmd, elementBinder, protoElementInjector); - }; - _ProtoViewInitializer.prototype._visitBeginElement = function(cmd, elementBinder, protoElementInjector) { - this.distanceToParentElementBinder = lang_1.isPresent(elementBinder) ? 1 : this.distanceToParentElementBinder + 1; - this.distanceToParentProtoElementInjector = lang_1.isPresent(protoElementInjector) ? 1 : this.distanceToParentProtoElementInjector + 1; - this.elementBinderStack.push(elementBinder); - return null; - }; - _ProtoViewInitializer.prototype._visitEndElement = function() { - var parentElementBinder = this.elementBinderStack.pop(); - var parentProtoElementInjector = lang_1.isPresent(parentElementBinder) ? parentElementBinder.protoElementInjector : null; - this.distanceToParentElementBinder = lang_1.isPresent(parentElementBinder) ? parentElementBinder.distanceToParent : this.distanceToParentElementBinder - 1; - this.distanceToParentProtoElementInjector = lang_1.isPresent(parentProtoElementInjector) ? parentProtoElementInjector.distanceToParent : this.distanceToParentProtoElementInjector - 1; - return null; - }; - return _ProtoViewInitializer; - })(); - function _createElementBinder(directiveResolver, nestedProtoView, elementBinderStack, boundElementIndex, distanceToParentBinder, distanceToParentPei, beginElementCmd) { - var parentElementBinder = null; - var parentProtoElementInjector = null; - if (distanceToParentBinder > 0) { - parentElementBinder = elementBinderStack[elementBinderStack.length - distanceToParentBinder]; - } - if (lang_1.isBlank(parentElementBinder)) { - distanceToParentBinder = -1; - } - if (distanceToParentPei > 0) { - var peiBinder = elementBinderStack[elementBinderStack.length - distanceToParentPei]; - if (lang_1.isPresent(peiBinder)) { - parentProtoElementInjector = peiBinder.protoElementInjector; - } - } - if (lang_1.isBlank(parentProtoElementInjector)) { - distanceToParentPei = -1; - } - var componentDirectiveProvider = null; - var isEmbeddedTemplate = false; - var directiveProviders = beginElementCmd.directives.map(function(type) { - return provideDirective(directiveResolver, type); - }); - if (beginElementCmd instanceof template_commands_1.BeginComponentCmd) { - componentDirectiveProvider = directiveProviders[0]; - } else if (beginElementCmd instanceof template_commands_1.EmbeddedTemplateCmd) { - isEmbeddedTemplate = true; - } - var protoElementInjector = null; - var hasVariables = beginElementCmd.variableNameAndValues.length > 0; - if (directiveProviders.length > 0 || hasVariables || isEmbeddedTemplate) { - var directiveVariableBindings = new Map(); - if (!isEmbeddedTemplate) { - directiveVariableBindings = createDirectiveVariableBindings(beginElementCmd.variableNameAndValues, directiveProviders); - } - protoElementInjector = element_injector_1.ProtoElementInjector.create(parentProtoElementInjector, boundElementIndex, directiveProviders, lang_1.isPresent(componentDirectiveProvider), distanceToParentPei, directiveVariableBindings); - protoElementInjector.attributes = arrayToMap(beginElementCmd.attrNameAndValues, false); - } - return new element_binder_1.ElementBinder(boundElementIndex, parentElementBinder, distanceToParentBinder, protoElementInjector, componentDirectiveProvider, nestedProtoView); - } - function provideDirective(directiveResolver, type) { - var annotation = directiveResolver.resolve(type); - return element_injector_1.DirectiveProvider.createFromType(type, annotation); - } - function createDirectiveVariableBindings(variableNameAndValues, directiveProviders) { - var directiveVariableBindings = new Map(); - for (var i = 0; i < variableNameAndValues.length; i += 2) { - var templateName = variableNameAndValues[i]; - var dirIndex = variableNameAndValues[i + 1]; - if (lang_1.isNumber(dirIndex)) { - directiveVariableBindings.set(templateName, dirIndex); - } else { - directiveVariableBindings.set(templateName, null); - } - } - return directiveVariableBindings; - } - exports.createDirectiveVariableBindings = createDirectiveVariableBindings; - function arrayToMap(arr, inverse) { - var result = new Map(); - for (var i = 0; i < arr.length; i += 2) { - if (inverse) { - result.set(arr[i + 1], arr[i]); - } else { - result.set(arr[i], arr[i + 1]); - } - } - return result; - } - function _flattenArray(tree, out) { - for (var i = 0; i < tree.length; i++) { - var item = di_1.resolveForwardRef(tree[i]); - if (lang_1.isArray(item)) { - _flattenArray(item, out); - } else { - out.push(item); - } - } - } - function _flattenStyleArr(arr, out) { - for (var i = 0; i < arr.length; i++) { - var entry = arr[i]; - if (lang_1.isArray(entry)) { - _flattenStyleArr(entry, out); - } else { - out.push(entry); - } - } - return out; - } + (function(ViewType) { + ViewType[ViewType["HOST"] = 0] = "HOST"; + ViewType[ViewType["COMPONENT"] = 1] = "COMPONENT"; + ViewType[ViewType["EMBEDDED"] = 2] = "EMBEDDED"; + })(exports.ViewType || (exports.ViewType = {})); + var ViewType = exports.ViewType; global.define = __define; return module.exports; }); -$__System.registerDynamic("1ce", ["3d", "22", "40", "1d3", "1c9", "5a", "1d5", "1d8", "59", "50", "65"], true, function($__require, exports, module) { +$__System.registerDynamic("1bf", ["3c", "2b", "3a", "3f", "6d", "8e", "1bd", "1ba", "90", "8d"], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -55282,37 +53619,28 @@ $__System.registerDynamic("1ce", ["3d", "22", "40", "1d3", "1c9", "5a", "1d5", " decorator(target, key, paramIndex); }; }; - var di_1 = $__require('3d'); - var lang_1 = $__require('22'); - var exceptions_1 = $__require('40'); - var viewModule = $__require('1d3'); - var view_ref_1 = $__require('1c9'); - var api_1 = $__require('5a'); - var view_manager_utils_1 = $__require('1d5'); - var view_pool_1 = $__require('1d8'); - var view_listener_1 = $__require('59'); - var profile_1 = $__require('50'); - var proto_view_factory_1 = $__require('65'); + var di_1 = $__require('3c'); + var lang_1 = $__require('2b'); + var collection_1 = $__require('3a'); + var exceptions_1 = $__require('3f'); + var view_1 = $__require('6d'); + var element_1 = $__require('8e'); + var api_1 = $__require('1bd'); + var profile_1 = $__require('1ba'); + var application_tokens_1 = $__require('90'); + var view_type_1 = $__require('8d'); var AppViewManager = (function() { function AppViewManager() {} - AppViewManager.prototype.getHostElement = function(hostViewRef) { - var hostView = view_ref_1.internalView(hostViewRef); - if (hostView.proto.type !== viewModule.ViewType.HOST) { - throw new exceptions_1.BaseException('This operation is only allowed on host views'); - } - return hostView.elementRefs[hostView.elementOffset]; - }; return AppViewManager; })(); exports.AppViewManager = AppViewManager; var AppViewManager_ = (function(_super) { __extends(AppViewManager_, _super); - function AppViewManager_(_viewPool, _viewListener, _utils, _renderer, _protoViewFactory) { + function AppViewManager_(_renderer, _appId) { _super.call(this); - this._viewPool = _viewPool; - this._viewListener = _viewListener; - this._utils = _utils; this._renderer = _renderer; + this._appId = _appId; + this._nextCompTypeId = 0; this._createRootHostViewScope = profile_1.wtfCreateScope('AppViewManager#createRootHostView()'); this._destroyRootHostViewScope = profile_1.wtfCreateScope('AppViewManager#destroyRootHostView()'); this._createEmbeddedViewInContainerScope = profile_1.wtfCreateScope('AppViewManager#createEmbeddedViewInContainer()'); @@ -55320,187 +53648,129 @@ $__System.registerDynamic("1ce", ["3d", "22", "40", "1d3", "1c9", "5a", "1d5", " this._destroyViewInContainerScope = profile_1.wtfCreateScope('AppViewMananger#destroyViewInContainer()'); this._attachViewInContainerScope = profile_1.wtfCreateScope('AppViewMananger#attachViewInContainer()'); this._detachViewInContainerScope = profile_1.wtfCreateScope('AppViewMananger#detachViewInContainer()'); - this._protoViewFactory = _protoViewFactory; } AppViewManager_.prototype.getViewContainer = function(location) { - var hostView = view_ref_1.internalView(location.parentView); - return hostView.elementInjectors[location.boundElementIndex].getViewContainerRef(); + return location.internalElement.getViewContainerRef(); + }; + AppViewManager_.prototype.getHostElement = function(hostViewRef) { + var hostView = hostViewRef.internalView; + if (hostView.proto.type !== view_type_1.ViewType.HOST) { + throw new exceptions_1.BaseException('This operation is only allowed on host views'); + } + return hostView.appElements[0].ref; }; AppViewManager_.prototype.getNamedElementInComponentView = function(hostLocation, variableName) { - var hostView = view_ref_1.internalView(hostLocation.parentView); - var boundElementIndex = hostLocation.boundElementIndex; - var componentView = hostView.getNestedView(boundElementIndex); + var appEl = hostLocation.internalElement; + var componentView = appEl.componentView; if (lang_1.isBlank(componentView)) { - throw new exceptions_1.BaseException("There is no component directive at element " + boundElementIndex); + throw new exceptions_1.BaseException("There is no component directive at element " + hostLocation); } - var binderIdx = componentView.proto.variableLocations.get(variableName); - if (lang_1.isBlank(binderIdx)) { - throw new exceptions_1.BaseException("Could not find variable " + variableName); + for (var i = 0; i < componentView.appElements.length; i++) { + var compAppEl = componentView.appElements[i]; + if (collection_1.StringMapWrapper.contains(compAppEl.proto.directiveVariableBindings, variableName)) { + return compAppEl.ref; + } } - return componentView.elementRefs[componentView.elementOffset + binderIdx]; + throw new exceptions_1.BaseException("Could not find variable " + variableName); }; AppViewManager_.prototype.getComponent = function(hostLocation) { - var hostView = view_ref_1.internalView(hostLocation.parentView); - var boundElementIndex = hostLocation.boundElementIndex; - return this._utils.getComponentInstance(hostView, boundElementIndex); + return hostLocation.internalElement.getComponent(); }; - AppViewManager_.prototype.createRootHostView = function(hostProtoViewRef, overrideSelector, injector) { - var s = this._createRootHostViewScope(); - var hostProtoView = view_ref_1.internalProtoView(hostProtoViewRef); - this._protoViewFactory.initializeProtoViewIfNeeded(hostProtoView); - var hostElementSelector = overrideSelector; - if (lang_1.isBlank(hostElementSelector)) { - hostElementSelector = hostProtoView.elementBinders[0].componentDirective.metadata.selector; + AppViewManager_.prototype.createRootHostView = function(hostViewFactoryRef, overrideSelector, injector, projectableNodes) { + if (projectableNodes === void 0) { + projectableNodes = null; } - var renderViewWithFragments = this._renderer.createRootHostView(hostProtoView.render, hostProtoView.mergeInfo.embeddedViewCount + 1, hostElementSelector); - var hostView = this._createMainView(hostProtoView, renderViewWithFragments); - this._renderer.hydrateView(hostView.render); - this._utils.hydrateRootHostView(hostView, injector); - return profile_1.wtfLeave(s, hostView.ref); + var s = this._createRootHostViewScope(); + var hostViewFactory = hostViewFactoryRef.internalHostViewFactory; + var selector = lang_1.isPresent(overrideSelector) ? overrideSelector : hostViewFactory.selector; + var view = hostViewFactory.viewFactory(this._renderer, this, null, projectableNodes, selector, null, injector); + return profile_1.wtfLeave(s, view.ref); }; AppViewManager_.prototype.destroyRootHostView = function(hostViewRef) { var s = this._destroyRootHostViewScope(); - var hostView = view_ref_1.internalView(hostViewRef); - this._renderer.detachFragment(hostView.renderFragment); - this._renderer.dehydrateView(hostView.render); - this._viewDehydrateRecurse(hostView); - this._viewListener.onViewDestroyed(hostView); - this._renderer.destroyView(hostView.render); + var hostView = hostViewRef.internalView; + hostView.renderer.detachView(view_1.flattenNestedViewRenderNodes(hostView.rootNodesOrAppElements)); + hostView.destroy(); profile_1.wtfLeave(s); }; AppViewManager_.prototype.createEmbeddedViewInContainer = function(viewContainerLocation, index, templateRef) { var s = this._createEmbeddedViewInContainerScope(); - var protoView = view_ref_1.internalProtoView(templateRef.protoViewRef); - if (protoView.type !== viewModule.ViewType.EMBEDDED) { - throw new exceptions_1.BaseException('This method can only be called with embedded ProtoViews!'); - } - this._protoViewFactory.initializeProtoViewIfNeeded(protoView); - return profile_1.wtfLeave(s, this._createViewInContainer(viewContainerLocation, index, protoView, templateRef.elementRef, null)); + var contextEl = templateRef.elementRef.internalElement; + var view = contextEl.embeddedViewFactory(contextEl.parentView.renderer, this, contextEl, contextEl.parentView.projectableNodes, null, null, null); + this._attachViewToContainer(view, viewContainerLocation.internalElement, index); + return profile_1.wtfLeave(s, view.ref); }; - AppViewManager_.prototype.createHostViewInContainer = function(viewContainerLocation, index, protoViewRef, imperativelyCreatedInjector) { + AppViewManager_.prototype.createHostViewInContainer = function(viewContainerLocation, index, hostViewFactoryRef, dynamicallyCreatedProviders, projectableNodes) { var s = this._createHostViewInContainerScope(); - var protoView = view_ref_1.internalProtoView(protoViewRef); - if (protoView.type !== viewModule.ViewType.HOST) { - throw new exceptions_1.BaseException('This method can only be called with host ProtoViews!'); - } - this._protoViewFactory.initializeProtoViewIfNeeded(protoView); - return profile_1.wtfLeave(s, this._createViewInContainer(viewContainerLocation, index, protoView, viewContainerLocation, imperativelyCreatedInjector)); - }; - AppViewManager_.prototype._createViewInContainer = function(viewContainerLocation, index, protoView, context, imperativelyCreatedInjector) { - var parentView = view_ref_1.internalView(viewContainerLocation.parentView); - var boundElementIndex = viewContainerLocation.boundElementIndex; - var contextView = view_ref_1.internalView(context.parentView); - var contextBoundElementIndex = context.boundElementIndex; - var embeddedFragmentView = contextView.getNestedView(contextBoundElementIndex); - var view; - if (protoView.type === viewModule.ViewType.EMBEDDED && lang_1.isPresent(embeddedFragmentView) && !embeddedFragmentView.hydrated()) { - view = embeddedFragmentView; - this._attachRenderView(parentView, boundElementIndex, index, view); - } else { - view = this._createPooledView(protoView); - this._attachRenderView(parentView, boundElementIndex, index, view); - this._renderer.hydrateView(view.render); - } - this._utils.attachViewInContainer(parentView, boundElementIndex, contextView, contextBoundElementIndex, index, view); - try { - this._utils.hydrateViewInContainer(parentView, boundElementIndex, contextView, contextBoundElementIndex, index, imperativelyCreatedInjector); - } catch (e) { - this._utils.detachViewInContainer(parentView, boundElementIndex, index); - throw e; - } - return view.ref; - }; - AppViewManager_.prototype._attachRenderView = function(parentView, boundElementIndex, index, view) { - var elementRef = parentView.elementRefs[boundElementIndex]; - if (index === 0) { - this._renderer.attachFragmentAfterElement(elementRef, view.renderFragment); - } else { - var prevView = parentView.viewContainers[boundElementIndex].views[index - 1]; - this._renderer.attachFragmentAfterFragment(prevView.renderFragment, view.renderFragment); - } + var viewContainerLocation_ = viewContainerLocation; + var contextEl = viewContainerLocation_.internalElement; + var hostViewFactory = hostViewFactoryRef.internalHostViewFactory; + var view = hostViewFactory.viewFactory(contextEl.parentView.renderer, contextEl.parentView.viewManager, contextEl, projectableNodes, null, dynamicallyCreatedProviders, null); + this._attachViewToContainer(view, viewContainerLocation_.internalElement, index); + return profile_1.wtfLeave(s, view.ref); }; AppViewManager_.prototype.destroyViewInContainer = function(viewContainerLocation, index) { var s = this._destroyViewInContainerScope(); - var parentView = view_ref_1.internalView(viewContainerLocation.parentView); - var boundElementIndex = viewContainerLocation.boundElementIndex; - this._destroyViewInContainer(parentView, boundElementIndex, index); + var view = this._detachViewInContainer(viewContainerLocation.internalElement, index); + view.destroy(); profile_1.wtfLeave(s); }; AppViewManager_.prototype.attachViewInContainer = function(viewContainerLocation, index, viewRef) { + var viewRef_ = viewRef; var s = this._attachViewInContainerScope(); - var view = view_ref_1.internalView(viewRef); - var parentView = view_ref_1.internalView(viewContainerLocation.parentView); - var boundElementIndex = viewContainerLocation.boundElementIndex; - this._utils.attachViewInContainer(parentView, boundElementIndex, null, null, index, view); - this._attachRenderView(parentView, boundElementIndex, index, view); - return profile_1.wtfLeave(s, viewRef); + this._attachViewToContainer(viewRef_.internalView, viewContainerLocation.internalElement, index); + return profile_1.wtfLeave(s, viewRef_); }; AppViewManager_.prototype.detachViewInContainer = function(viewContainerLocation, index) { var s = this._detachViewInContainerScope(); - var parentView = view_ref_1.internalView(viewContainerLocation.parentView); - var boundElementIndex = viewContainerLocation.boundElementIndex; - var viewContainer = parentView.viewContainers[boundElementIndex]; - var view = viewContainer.views[index]; - this._utils.detachViewInContainer(parentView, boundElementIndex, index); - this._renderer.detachFragment(view.renderFragment); + var view = this._detachViewInContainer(viewContainerLocation.internalElement, index); return profile_1.wtfLeave(s, view.ref); }; - AppViewManager_.prototype._createMainView = function(protoView, renderViewWithFragments) { - var mergedParentView = this._utils.createView(protoView, renderViewWithFragments, this, this._renderer); - this._renderer.setEventDispatcher(mergedParentView.render, mergedParentView); - this._viewListener.onViewCreated(mergedParentView); - return mergedParentView; + AppViewManager_.prototype.onViewCreated = function(view) {}; + AppViewManager_.prototype.onViewDestroyed = function(view) {}; + AppViewManager_.prototype.createRenderComponentType = function(encapsulation, styles) { + return new api_1.RenderComponentType(this._appId + "-" + this._nextCompTypeId++, encapsulation, styles); }; - AppViewManager_.prototype._createPooledView = function(protoView) { - var view = this._viewPool.getView(protoView); - if (lang_1.isBlank(view)) { - view = this._createMainView(protoView, this._renderer.createView(protoView.render, protoView.mergeInfo.embeddedViewCount + 1)); + AppViewManager_.prototype._attachViewToContainer = function(view, vcAppElement, viewIndex) { + if (view.proto.type === view_type_1.ViewType.COMPONENT) { + throw new exceptions_1.BaseException("Component views can't be moved!"); } + var nestedViews = vcAppElement.nestedViews; + if (nestedViews == null) { + nestedViews = []; + vcAppElement.nestedViews = nestedViews; + } + collection_1.ListWrapper.insert(nestedViews, viewIndex, view); + var refNode; + if (viewIndex > 0) { + var prevView = nestedViews[viewIndex - 1]; + refNode = prevView.rootNodesOrAppElements.length > 0 ? prevView.rootNodesOrAppElements[prevView.rootNodesOrAppElements.length - 1] : null; + } else { + refNode = vcAppElement.nativeElement; + } + if (lang_1.isPresent(refNode)) { + var refRenderNode; + if (refNode instanceof element_1.AppElement) { + refRenderNode = refNode.nativeElement; + } else { + refRenderNode = refNode; + } + view.renderer.attachViewAfter(refRenderNode, view_1.flattenNestedViewRenderNodes(view.rootNodesOrAppElements)); + } + vcAppElement.parentView.changeDetector.addContentChild(view.changeDetector); + vcAppElement.traverseAndSetQueriesAsDirty(); + }; + AppViewManager_.prototype._detachViewInContainer = function(vcAppElement, viewIndex) { + var view = collection_1.ListWrapper.removeAt(vcAppElement.nestedViews, viewIndex); + if (view.proto.type === view_type_1.ViewType.COMPONENT) { + throw new exceptions_1.BaseException("Component views can't be moved!"); + } + vcAppElement.traverseAndSetQueriesAsDirty(); + view.renderer.detachView(view_1.flattenNestedViewRenderNodes(view.rootNodesOrAppElements)); + view.changeDetector.remove(); return view; }; - AppViewManager_.prototype._destroyPooledView = function(view) { - var wasReturned = this._viewPool.returnView(view); - if (!wasReturned) { - this._viewListener.onViewDestroyed(view); - this._renderer.destroyView(view.render); - } - }; - AppViewManager_.prototype._destroyViewInContainer = function(parentView, boundElementIndex, index) { - var viewContainer = parentView.viewContainers[boundElementIndex]; - var view = viewContainer.views[index]; - this._viewDehydrateRecurse(view); - this._utils.detachViewInContainer(parentView, boundElementIndex, index); - if (view.viewOffset > 0) { - this._renderer.detachFragment(view.renderFragment); - } else { - this._renderer.dehydrateView(view.render); - this._renderer.detachFragment(view.renderFragment); - this._destroyPooledView(view); - } - }; - AppViewManager_.prototype._viewDehydrateRecurse = function(view) { - if (view.hydrated()) { - this._utils.dehydrateView(view); - } - var viewContainers = view.viewContainers; - var startViewOffset = view.viewOffset; - var endViewOffset = view.viewOffset + view.proto.mergeInfo.viewCount - 1; - var elementOffset = view.elementOffset; - for (var viewIdx = startViewOffset; viewIdx <= endViewOffset; viewIdx++) { - var currView = view.views[viewIdx]; - for (var binderIdx = 0; binderIdx < currView.proto.elementBinders.length; binderIdx++, elementOffset++) { - var vc = viewContainers[elementOffset]; - if (lang_1.isPresent(vc)) { - for (var j = vc.views.length - 1; j >= 0; j--) { - this._destroyViewInContainer(currView, elementOffset, j); - } - } - } - } - }; - AppViewManager_ = __decorate([di_1.Injectable(), __param(4, di_1.Inject(di_1.forwardRef(function() { - return proto_view_factory_1.ProtoViewFactory; - }))), __metadata('design:paramtypes', [view_pool_1.AppViewPool, view_listener_1.AppViewListener, view_manager_utils_1.AppViewManagerUtils, api_1.Renderer, Object])], AppViewManager_); + AppViewManager_ = __decorate([di_1.Injectable(), __param(1, di_1.Inject(application_tokens_1.APP_ID)), __metadata('design:paramtypes', [api_1.RootRenderer, String])], AppViewManager_); return AppViewManager_; })(AppViewManager); exports.AppViewManager_ = AppViewManager_; @@ -55508,7 +53778,7 @@ $__System.registerDynamic("1ce", ["3d", "22", "40", "1d3", "1c9", "5a", "1d5", " return module.exports; }); -$__System.registerDynamic("25", ["3d", "64", "22", "1ce"], true, function($__require, exports, module) { +$__System.registerDynamic("23", ["3c", "5f", "2b", "1bf"], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -55539,15 +53809,15 @@ $__System.registerDynamic("25", ["3d", "64", "22", "1ce"], true, function($__req if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; - var di_1 = $__require('3d'); - var compiler_1 = $__require('64'); - var lang_1 = $__require('22'); - var view_manager_1 = $__require('1ce'); + var di_1 = $__require('3c'); + var compiler_1 = $__require('5f'); + var lang_1 = $__require('2b'); + var view_manager_1 = $__require('1bf'); var ComponentRef = (function() { function ComponentRef() {} Object.defineProperty(ComponentRef.prototype, "hostView", { get: function() { - return this.location.parentView; + return this.location.internalElement.parentView.ref; }, enumerable: true, configurable: true @@ -55597,10 +53867,10 @@ $__System.registerDynamic("25", ["3d", "64", "22", "1ce"], true, function($__req this._compiler = _compiler; this._viewManager = _viewManager; } - DynamicComponentLoader_.prototype.loadAsRoot = function(type, overrideSelector, injector, onDispose) { + DynamicComponentLoader_.prototype.loadAsRoot = function(type, overrideSelector, injector, onDispose, projectableNodes) { var _this = this; return this._compiler.compileInHost(type).then(function(hostProtoViewRef) { - var hostViewRef = _this._viewManager.createRootHostView(hostProtoViewRef, overrideSelector, injector); + var hostViewRef = _this._viewManager.createRootHostView(hostProtoViewRef, overrideSelector, injector, projectableNodes); var newLocation = _this._viewManager.getHostElement(hostViewRef); var component = _this._viewManager.getComponent(newLocation); var dispose = function() { @@ -55612,25 +53882,31 @@ $__System.registerDynamic("25", ["3d", "64", "22", "1ce"], true, function($__req return new ComponentRef_(newLocation, component, type, injector, dispose); }); }; - DynamicComponentLoader_.prototype.loadIntoLocation = function(type, hostLocation, anchorName, providers) { + DynamicComponentLoader_.prototype.loadIntoLocation = function(type, hostLocation, anchorName, providers, projectableNodes) { if (providers === void 0) { providers = null; } - return this.loadNextToLocation(type, this._viewManager.getNamedElementInComponentView(hostLocation, anchorName), providers); + if (projectableNodes === void 0) { + projectableNodes = null; + } + return this.loadNextToLocation(type, this._viewManager.getNamedElementInComponentView(hostLocation, anchorName), providers, projectableNodes); }; - DynamicComponentLoader_.prototype.loadNextToLocation = function(type, location, providers) { + DynamicComponentLoader_.prototype.loadNextToLocation = function(type, location, providers, projectableNodes) { var _this = this; if (providers === void 0) { providers = null; } + if (projectableNodes === void 0) { + projectableNodes = null; + } return this._compiler.compileInHost(type).then(function(hostProtoViewRef) { var viewContainer = _this._viewManager.getViewContainer(location); - var hostViewRef = viewContainer.createHostView(hostProtoViewRef, viewContainer.length, providers); + var hostViewRef = viewContainer.createHostView(hostProtoViewRef, viewContainer.length, providers, projectableNodes); var newLocation = _this._viewManager.getHostElement(hostViewRef); var component = _this._viewManager.getComponent(newLocation); var dispose = function() { var index = viewContainer.indexOf(hostViewRef); - if (index !== -1) { + if (!hostViewRef.destroyed && index !== -1) { viewContainer.remove(index); } }; @@ -55645,43 +53921,40 @@ $__System.registerDynamic("25", ["3d", "64", "22", "1ce"], true, function($__req return module.exports; }); -$__System.registerDynamic("21a", ["22", "3d", "8c", "72", "1d8", "1ce", "1d5", "83", "59", "65", "82", "1f3", "64", "25"], true, function($__require, exports, module) { +$__System.registerDynamic("200", ["2b", "3c", "90", "6e", "6f", "1bf", "83", "81", "82", "5f", "23"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var lang_1 = $__require('22'); - var di_1 = $__require('3d'); - var application_tokens_1 = $__require('8c'); - var change_detection_1 = $__require('72'); - var view_pool_1 = $__require('1d8'); - var view_manager_1 = $__require('1ce'); - var view_manager_2 = $__require('1ce'); - var view_manager_utils_1 = $__require('1d5'); + var lang_1 = $__require('2b'); + var di_1 = $__require('3c'); + var application_tokens_1 = $__require('90'); + var change_detection_1 = $__require('6e'); + var resolved_metadata_cache_1 = $__require('6f'); + var view_manager_1 = $__require('1bf'); + var view_manager_2 = $__require('1bf'); var view_resolver_1 = $__require('83'); - var view_listener_1 = $__require('59'); - var proto_view_factory_1 = $__require('65'); - var directive_resolver_1 = $__require('82'); - var pipe_resolver_1 = $__require('1f3'); - var compiler_1 = $__require('64'); - var compiler_2 = $__require('64'); - var dynamic_component_loader_1 = $__require('25'); - var dynamic_component_loader_2 = $__require('25'); - exports.APPLICATION_COMMON_PROVIDERS = lang_1.CONST_EXPR([new di_1.Provider(compiler_1.Compiler, {useClass: compiler_2.Compiler_}), application_tokens_1.APP_ID_RANDOM_PROVIDER, view_pool_1.AppViewPool, new di_1.Provider(view_pool_1.APP_VIEW_POOL_CAPACITY, {useValue: 10000}), new di_1.Provider(view_manager_1.AppViewManager, {useClass: view_manager_2.AppViewManager_}), view_manager_utils_1.AppViewManagerUtils, view_listener_1.AppViewListener, proto_view_factory_1.ProtoViewFactory, view_resolver_1.ViewResolver, new di_1.Provider(change_detection_1.IterableDiffers, {useValue: change_detection_1.defaultIterableDiffers}), new di_1.Provider(change_detection_1.KeyValueDiffers, {useValue: change_detection_1.defaultKeyValueDiffers}), directive_resolver_1.DirectiveResolver, pipe_resolver_1.PipeResolver, new di_1.Provider(dynamic_component_loader_1.DynamicComponentLoader, {useClass: dynamic_component_loader_2.DynamicComponentLoader_})]); + var directive_resolver_1 = $__require('81'); + var pipe_resolver_1 = $__require('82'); + var compiler_1 = $__require('5f'); + var compiler_2 = $__require('5f'); + var dynamic_component_loader_1 = $__require('23'); + var dynamic_component_loader_2 = $__require('23'); + exports.APPLICATION_COMMON_PROVIDERS = lang_1.CONST_EXPR([new di_1.Provider(compiler_1.Compiler, {useClass: compiler_2.Compiler_}), application_tokens_1.APP_ID_RANDOM_PROVIDER, resolved_metadata_cache_1.ResolvedMetadataCache, new di_1.Provider(view_manager_1.AppViewManager, {useClass: view_manager_2.AppViewManager_}), view_resolver_1.ViewResolver, new di_1.Provider(change_detection_1.IterableDiffers, {useValue: change_detection_1.defaultIterableDiffers}), new di_1.Provider(change_detection_1.KeyValueDiffers, {useValue: change_detection_1.defaultKeyValueDiffers}), directive_resolver_1.DirectiveResolver, pipe_resolver_1.PipeResolver, new di_1.Provider(dynamic_component_loader_1.DynamicComponentLoader, {useClass: dynamic_component_loader_2.DynamicComponentLoader_})]); global.define = __define; return module.exports; }); -$__System.registerDynamic("21b", ["22", "40", "3b"], true, function($__require, exports, module) { +$__System.registerDynamic("201", ["2b", "3f", "3a"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var lang_1 = $__require('22'); - var exceptions_1 = $__require('40'); - var collection_1 = $__require('3b'); + var lang_1 = $__require('2b'); + var exceptions_1 = $__require('3f'); + var collection_1 = $__require('3a'); var ReflectionInfo = (function() { function ReflectionInfo(annotations, parameters, factory, interfaces, propMetadata) { this.annotations = annotations; @@ -55818,7 +54091,490 @@ $__System.registerDynamic("21b", ["22", "40", "3b"], true, function($__require, return module.exports; }); -$__System.registerDynamic("22", [], true, function($__require, exports, module) { +$__System.registerDynamic("1b8", ["2b", "3f", "3a"], true, function($__require, exports, module) { + "use strict"; + ; + var global = this, + __define = global.define; + global.define = undefined; + var lang_1 = $__require('2b'); + var exceptions_1 = $__require('3f'); + var collection_1 = $__require('3a'); + var _ArrayLogger = (function() { + function _ArrayLogger() { + this.res = []; + } + _ArrayLogger.prototype.log = function(s) { + this.res.push(s); + }; + _ArrayLogger.prototype.logError = function(s) { + this.res.push(s); + }; + _ArrayLogger.prototype.logGroup = function(s) { + this.res.push(s); + }; + _ArrayLogger.prototype.logGroupEnd = function() {}; + ; + return _ArrayLogger; + })(); + var ExceptionHandler = (function() { + function ExceptionHandler(_logger, _rethrowException) { + if (_rethrowException === void 0) { + _rethrowException = true; + } + this._logger = _logger; + this._rethrowException = _rethrowException; + } + ExceptionHandler.exceptionToString = function(exception, stackTrace, reason) { + if (stackTrace === void 0) { + stackTrace = null; + } + if (reason === void 0) { + reason = null; + } + var l = new _ArrayLogger(); + var e = new ExceptionHandler(l, false); + e.call(exception, stackTrace, reason); + return l.res.join("\n"); + }; + ExceptionHandler.prototype.call = function(exception, stackTrace, reason) { + if (stackTrace === void 0) { + stackTrace = null; + } + if (reason === void 0) { + reason = null; + } + var originalException = this._findOriginalException(exception); + var originalStack = this._findOriginalStack(exception); + var context = this._findContext(exception); + this._logger.logGroup("EXCEPTION: " + this._extractMessage(exception)); + if (lang_1.isPresent(stackTrace) && lang_1.isBlank(originalStack)) { + this._logger.logError("STACKTRACE:"); + this._logger.logError(this._longStackTrace(stackTrace)); + } + if (lang_1.isPresent(reason)) { + this._logger.logError("REASON: " + reason); + } + if (lang_1.isPresent(originalException)) { + this._logger.logError("ORIGINAL EXCEPTION: " + this._extractMessage(originalException)); + } + if (lang_1.isPresent(originalStack)) { + this._logger.logError("ORIGINAL STACKTRACE:"); + this._logger.logError(this._longStackTrace(originalStack)); + } + if (lang_1.isPresent(context)) { + this._logger.logError("ERROR CONTEXT:"); + this._logger.logError(context); + } + this._logger.logGroupEnd(); + if (this._rethrowException) + throw exception; + }; + ExceptionHandler.prototype._extractMessage = function(exception) { + return exception instanceof exceptions_1.WrappedException ? exception.wrapperMessage : exception.toString(); + }; + ExceptionHandler.prototype._longStackTrace = function(stackTrace) { + return collection_1.isListLikeIterable(stackTrace) ? stackTrace.join("\n\n-----async gap-----\n") : stackTrace.toString(); + }; + ExceptionHandler.prototype._findContext = function(exception) { + try { + if (!(exception instanceof exceptions_1.WrappedException)) + return null; + return lang_1.isPresent(exception.context) ? exception.context : this._findContext(exception.originalException); + } catch (e) { + return null; + } + }; + ExceptionHandler.prototype._findOriginalException = function(exception) { + if (!(exception instanceof exceptions_1.WrappedException)) + return null; + var e = exception.originalException; + while (e instanceof exceptions_1.WrappedException && lang_1.isPresent(e.originalException)) { + e = e.originalException; + } + return e; + }; + ExceptionHandler.prototype._findOriginalStack = function(exception) { + if (!(exception instanceof exceptions_1.WrappedException)) + return null; + var e = exception; + var stack = exception.originalStack; + while (e instanceof exceptions_1.WrappedException && lang_1.isPresent(e.originalException)) { + e = e.originalException; + if (e instanceof exceptions_1.WrappedException && lang_1.isPresent(e.originalException)) { + stack = e.originalStack; + } + } + return stack; + }; + return ExceptionHandler; + })(); + exports.ExceptionHandler = ExceptionHandler; + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("3f", ["1b8"], true, function($__require, exports, module) { + "use strict"; + ; + var global = this, + __define = global.define; + global.define = undefined; + var __extends = (this && this.__extends) || function(d, b) { + for (var p in b) + if (b.hasOwnProperty(p)) + d[p] = b[p]; + function __() { + this.constructor = d; + } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; + var exception_handler_1 = $__require('1b8'); + var exception_handler_2 = $__require('1b8'); + exports.ExceptionHandler = exception_handler_2.ExceptionHandler; + var BaseException = (function(_super) { + __extends(BaseException, _super); + function BaseException(message) { + if (message === void 0) { + message = "--"; + } + _super.call(this, message); + this.message = message; + this.stack = (new Error(message)).stack; + } + BaseException.prototype.toString = function() { + return this.message; + }; + return BaseException; + })(Error); + exports.BaseException = BaseException; + var WrappedException = (function(_super) { + __extends(WrappedException, _super); + function WrappedException(_wrapperMessage, _originalException, _originalStack, _context) { + _super.call(this, _wrapperMessage); + this._wrapperMessage = _wrapperMessage; + this._originalException = _originalException; + this._originalStack = _originalStack; + this._context = _context; + this._wrapperStack = (new Error(_wrapperMessage)).stack; + } + Object.defineProperty(WrappedException.prototype, "wrapperMessage", { + get: function() { + return this._wrapperMessage; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(WrappedException.prototype, "wrapperStack", { + get: function() { + return this._wrapperStack; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(WrappedException.prototype, "originalException", { + get: function() { + return this._originalException; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(WrappedException.prototype, "originalStack", { + get: function() { + return this._originalStack; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(WrappedException.prototype, "context", { + get: function() { + return this._context; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(WrappedException.prototype, "message", { + get: function() { + return exception_handler_1.ExceptionHandler.exceptionToString(this); + }, + enumerable: true, + configurable: true + }); + WrappedException.prototype.toString = function() { + return this.message; + }; + return WrappedException; + })(Error); + exports.WrappedException = WrappedException; + function makeTypeError(message) { + return new TypeError(message); + } + exports.makeTypeError = makeTypeError; + function unimplemented() { + throw new BaseException('unimplemented'); + } + exports.unimplemented = unimplemented; + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("94", ["2b", "3f"], true, function($__require, exports, module) { + "use strict"; + ; + var global = this, + __define = global.define; + global.define = undefined; + var lang_1 = $__require('2b'); + var exceptions_1 = $__require('3f'); + var ReflectionCapabilities = (function() { + function ReflectionCapabilities(reflect) { + this._reflect = lang_1.isPresent(reflect) ? reflect : lang_1.global.Reflect; + } + ReflectionCapabilities.prototype.isReflectionEnabled = function() { + return true; + }; + ReflectionCapabilities.prototype.factory = function(t) { + switch (t.length) { + case 0: + return function() { + return new t(); + }; + case 1: + return function(a1) { + return new t(a1); + }; + case 2: + return function(a1, a2) { + return new t(a1, a2); + }; + case 3: + return function(a1, a2, a3) { + return new t(a1, a2, a3); + }; + case 4: + return function(a1, a2, a3, a4) { + return new t(a1, a2, a3, a4); + }; + case 5: + return function(a1, a2, a3, a4, a5) { + return new t(a1, a2, a3, a4, a5); + }; + case 6: + return function(a1, a2, a3, a4, a5, a6) { + return new t(a1, a2, a3, a4, a5, a6); + }; + case 7: + return function(a1, a2, a3, a4, a5, a6, a7) { + return new t(a1, a2, a3, a4, a5, a6, a7); + }; + case 8: + return function(a1, a2, a3, a4, a5, a6, a7, a8) { + return new t(a1, a2, a3, a4, a5, a6, a7, a8); + }; + case 9: + return function(a1, a2, a3, a4, a5, a6, a7, a8, a9) { + return new t(a1, a2, a3, a4, a5, a6, a7, a8, a9); + }; + case 10: + return function(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) { + return new t(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10); + }; + case 11: + return function(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11) { + return new t(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11); + }; + case 12: + return function(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12) { + return new t(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12); + }; + case 13: + return function(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13) { + return new t(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13); + }; + case 14: + return function(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14) { + return new t(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14); + }; + case 15: + return function(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15) { + return new t(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15); + }; + case 16: + return function(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16) { + return new t(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16); + }; + case 17: + return function(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17) { + return new t(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17); + }; + case 18: + return function(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18) { + return new t(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18); + }; + case 19: + return function(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19) { + return new t(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19); + }; + case 20: + return function(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20) { + return new t(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20); + }; + } + ; + throw new Error("Cannot create a factory for '" + lang_1.stringify(t) + "' because its constructor has more than 20 arguments"); + }; + ReflectionCapabilities.prototype._zipTypesAndAnnotations = function(paramTypes, paramAnnotations) { + var result; + if (typeof paramTypes === 'undefined') { + result = new Array(paramAnnotations.length); + } else { + result = new Array(paramTypes.length); + } + for (var i = 0; i < result.length; i++) { + if (typeof paramTypes === 'undefined') { + result[i] = []; + } else if (paramTypes[i] != Object) { + result[i] = [paramTypes[i]]; + } else { + result[i] = []; + } + if (lang_1.isPresent(paramAnnotations) && lang_1.isPresent(paramAnnotations[i])) { + result[i] = result[i].concat(paramAnnotations[i]); + } + } + return result; + }; + ReflectionCapabilities.prototype.parameters = function(typeOrFunc) { + if (lang_1.isPresent(typeOrFunc.parameters)) { + return typeOrFunc.parameters; + } + if (lang_1.isPresent(this._reflect) && lang_1.isPresent(this._reflect.getMetadata)) { + var paramAnnotations = this._reflect.getMetadata('parameters', typeOrFunc); + var paramTypes = this._reflect.getMetadata('design:paramtypes', typeOrFunc); + if (lang_1.isPresent(paramTypes) || lang_1.isPresent(paramAnnotations)) { + return this._zipTypesAndAnnotations(paramTypes, paramAnnotations); + } + } + var parameters = new Array(typeOrFunc.length); + parameters.fill(undefined); + return parameters; + }; + ReflectionCapabilities.prototype.annotations = function(typeOrFunc) { + if (lang_1.isPresent(typeOrFunc.annotations)) { + var annotations = typeOrFunc.annotations; + if (lang_1.isFunction(annotations) && annotations.annotations) { + annotations = annotations.annotations; + } + return annotations; + } + if (lang_1.isPresent(this._reflect) && lang_1.isPresent(this._reflect.getMetadata)) { + var annotations = this._reflect.getMetadata('annotations', typeOrFunc); + if (lang_1.isPresent(annotations)) + return annotations; + } + return []; + }; + ReflectionCapabilities.prototype.propMetadata = function(typeOrFunc) { + if (lang_1.isPresent(typeOrFunc.propMetadata)) { + var propMetadata = typeOrFunc.propMetadata; + if (lang_1.isFunction(propMetadata) && propMetadata.propMetadata) { + propMetadata = propMetadata.propMetadata; + } + return propMetadata; + } + if (lang_1.isPresent(this._reflect) && lang_1.isPresent(this._reflect.getMetadata)) { + var propMetadata = this._reflect.getMetadata('propMetadata', typeOrFunc); + if (lang_1.isPresent(propMetadata)) + return propMetadata; + } + return {}; + }; + ReflectionCapabilities.prototype.interfaces = function(type) { + throw new exceptions_1.BaseException("JavaScript does not support interfaces"); + }; + ReflectionCapabilities.prototype.getter = function(name) { + return new Function('o', 'return o.' + name + ';'); + }; + ReflectionCapabilities.prototype.setter = function(name) { + return new Function('o', 'v', 'return o.' + name + ' = v;'); + }; + ReflectionCapabilities.prototype.method = function(name) { + var functionBody = "if (!o." + name + ") throw new Error('\"" + name + "\" is undefined');\n return o." + name + ".apply(o, args);"; + return new Function('o', 'args', functionBody); + }; + ReflectionCapabilities.prototype.importUri = function(type) { + return './'; + }; + return ReflectionCapabilities; + })(); + exports.ReflectionCapabilities = ReflectionCapabilities; + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("84", ["201", "94"], true, function($__require, exports, module) { + "use strict"; + ; + var global = this, + __define = global.define; + global.define = undefined; + var reflector_1 = $__require('201'); + var reflector_2 = $__require('201'); + exports.Reflector = reflector_2.Reflector; + exports.ReflectionInfo = reflector_2.ReflectionInfo; + var reflection_capabilities_1 = $__require('94'); + exports.reflector = new reflector_1.Reflector(new reflection_capabilities_1.ReflectionCapabilities()); + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("14", ["52", "1b4", "1b6", "3c", "1b7", "2b", "5a", "90", "1bb", "1bc", "1be", "54", "5d", "1cc", "85", "1c4", "200", "84"], true, function($__require, exports, module) { + "use strict"; + ; + var global = this, + __define = global.define; + global.define = undefined; + function __export(m) { + for (var p in m) + if (!exports.hasOwnProperty(p)) + exports[p] = m[p]; + } + __export($__require('52')); + __export($__require('1b4')); + __export($__require('1b6')); + __export($__require('3c')); + __export($__require('1b7')); + var lang_1 = $__require('2b'); + exports.enableProdMode = lang_1.enableProdMode; + var application_ref_1 = $__require('5a'); + exports.platform = application_ref_1.platform; + exports.createNgZone = application_ref_1.createNgZone; + exports.PlatformRef = application_ref_1.PlatformRef; + exports.ApplicationRef = application_ref_1.ApplicationRef; + var application_tokens_1 = $__require('90'); + exports.APP_ID = application_tokens_1.APP_ID; + exports.APP_COMPONENT = application_tokens_1.APP_COMPONENT; + exports.APP_INITIALIZER = application_tokens_1.APP_INITIALIZER; + exports.PACKAGE_ROOT_URL = application_tokens_1.PACKAGE_ROOT_URL; + exports.PLATFORM_INITIALIZER = application_tokens_1.PLATFORM_INITIALIZER; + __export($__require('1bb')); + __export($__require('1bc')); + __export($__require('1be')); + var debug_node_1 = $__require('54'); + exports.DebugElement = debug_node_1.DebugElement; + exports.DebugNode = debug_node_1.DebugNode; + exports.asNativeElements = debug_node_1.asNativeElements; + __export($__require('5d')); + __export($__require('1cc')); + __export($__require('85')); + __export($__require('1c4')); + __export($__require('200')); + __export($__require('84')); + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("2b", [], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -55843,7 +54599,6 @@ $__System.registerDynamic("22", [], true, function($__require, exports, module) } else { globalScope = window; } - ; exports.IS_DART = false; var _global = globalScope; exports.global = _global; @@ -55934,6 +54689,9 @@ $__System.registerDynamic("22", [], true, function($__require, exports, module) if (token.name) { return token.name; } + if (token.overriddenName) { + return token.overriddenName; + } var res = token.toString(); var newLineIndex = res.indexOf("\n"); return (newLineIndex === -1) ? res : res.substring(0, newLineIndex); @@ -56259,17 +55017,36 @@ $__System.registerDynamic("22", [], true, function($__require, exports, module) return _symbolIterator; } exports.getSymbolIterator = getSymbolIterator; + function evalExpression(sourceUrl, expr, declarations, vars) { + var fnBody = declarations + "\nreturn " + expr + "\n//# sourceURL=" + sourceUrl; + var fnArgNames = []; + var fnArgValues = []; + for (var argName in vars) { + fnArgNames.push(argName); + fnArgValues.push(vars[argName]); + } + return new (Function.bind.apply(Function, [void 0].concat(fnArgNames.concat(fnBody))))().apply(void 0, fnArgValues); + } + exports.evalExpression = evalExpression; + function isPrimitive(obj) { + return !isJsObject(obj); + } + exports.isPrimitive = isPrimitive; + function hasConstructor(value, type) { + return value.constructor === type; + } + exports.hasConstructor = hasConstructor; global.define = __define; return module.exports; }); -$__System.registerDynamic("3b", ["22"], true, function($__require, exports, module) { +$__System.registerDynamic("3a", ["2b"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var lang_1 = $__require('22'); + var lang_1 = $__require('2b'); exports.Map = lang_1.global.Map; exports.Set = lang_1.global.Set; var createMapFromPairs = (function() { @@ -56583,6 +55360,21 @@ $__System.registerDynamic("3b", ["22"], true, function($__require, exports, modu return lang_1.isArray(obj) || (!(obj instanceof exports.Map) && lang_1.getSymbolIterator() in obj); } exports.isListLikeIterable = isListLikeIterable; + function areIterablesEqual(a, b, comparator) { + var iterator1 = a[lang_1.getSymbolIterator()](); + var iterator2 = b[lang_1.getSymbolIterator()](); + while (true) { + var item1 = iterator1.next(); + var item2 = iterator2.next(); + if (item1.done && item2.done) + return true; + if (item1.done || item2.done) + return false; + if (!comparator(item1.value, item2.value)) + return false; + } + } + exports.areIterablesEqual = areIterablesEqual; function iterateListLike(obj, fn) { if (lang_1.isArray(obj)) { for (var i = 0; i < obj.length; i++) { @@ -56633,444 +55425,182 @@ $__System.registerDynamic("3b", ["22"], true, function($__require, exports, modu return module.exports; }); -$__System.registerDynamic("1c8", ["22", "40", "3b"], true, function($__require, exports, module) { +$__System.registerDynamic("202", ["14", "2b", "3a"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var lang_1 = $__require('22'); - var exceptions_1 = $__require('40'); - var collection_1 = $__require('3b'); - var _ArrayLogger = (function() { - function _ArrayLogger() { - this.res = []; - } - _ArrayLogger.prototype.log = function(s) { - this.res.push(s); - }; - _ArrayLogger.prototype.logError = function(s) { - this.res.push(s); - }; - _ArrayLogger.prototype.logGroup = function(s) { - this.res.push(s); - }; - _ArrayLogger.prototype.logGroupEnd = function() {}; - ; - return _ArrayLogger; - })(); - var ExceptionHandler = (function() { - function ExceptionHandler(_logger, _rethrowException) { - if (_rethrowException === void 0) { - _rethrowException = true; - } - this._logger = _logger; - this._rethrowException = _rethrowException; - } - ExceptionHandler.exceptionToString = function(exception, stackTrace, reason) { - if (stackTrace === void 0) { - stackTrace = null; - } - if (reason === void 0) { - reason = null; - } - var l = new _ArrayLogger(); - var e = new ExceptionHandler(l, false); - e.call(exception, stackTrace, reason); - return l.res.join("\n"); - }; - ExceptionHandler.prototype.call = function(exception, stackTrace, reason) { - if (stackTrace === void 0) { - stackTrace = null; - } - if (reason === void 0) { - reason = null; - } - var originalException = this._findOriginalException(exception); - var originalStack = this._findOriginalStack(exception); - var context = this._findContext(exception); - this._logger.logGroup("EXCEPTION: " + this._extractMessage(exception)); - if (lang_1.isPresent(stackTrace) && lang_1.isBlank(originalStack)) { - this._logger.logError("STACKTRACE:"); - this._logger.logError(this._longStackTrace(stackTrace)); - } - if (lang_1.isPresent(reason)) { - this._logger.logError("REASON: " + reason); - } - if (lang_1.isPresent(originalException)) { - this._logger.logError("ORIGINAL EXCEPTION: " + this._extractMessage(originalException)); - } - if (lang_1.isPresent(originalStack)) { - this._logger.logError("ORIGINAL STACKTRACE:"); - this._logger.logError(this._longStackTrace(originalStack)); - } - if (lang_1.isPresent(context)) { - this._logger.logError("ERROR CONTEXT:"); - this._logger.logError(context); - } - this._logger.logGroupEnd(); - if (this._rethrowException) - throw exception; - }; - ExceptionHandler.prototype._extractMessage = function(exception) { - return exception instanceof exceptions_1.WrappedException ? exception.wrapperMessage : exception.toString(); - }; - ExceptionHandler.prototype._longStackTrace = function(stackTrace) { - return collection_1.isListLikeIterable(stackTrace) ? stackTrace.join("\n\n-----async gap-----\n") : stackTrace.toString(); - }; - ExceptionHandler.prototype._findContext = function(exception) { - try { - if (!(exception instanceof exceptions_1.WrappedException)) - return null; - return lang_1.isPresent(exception.context) ? exception.context : this._findContext(exception.originalException); - } catch (e) { - return null; - } - }; - ExceptionHandler.prototype._findOriginalException = function(exception) { - if (!(exception instanceof exceptions_1.WrappedException)) - return null; - var e = exception.originalException; - while (e instanceof exceptions_1.WrappedException && lang_1.isPresent(e.originalException)) { - e = e.originalException; - } - return e; - }; - ExceptionHandler.prototype._findOriginalStack = function(exception) { - if (!(exception instanceof exceptions_1.WrappedException)) - return null; - var e = exception; - var stack = exception.originalStack; - while (e instanceof exceptions_1.WrappedException && lang_1.isPresent(e.originalException)) { - e = e.originalException; - if (e instanceof exceptions_1.WrappedException && lang_1.isPresent(e.originalException)) { - stack = e.originalStack; - } - } - return stack; - }; - return ExceptionHandler; - })(); - exports.ExceptionHandler = ExceptionHandler; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("40", ["1c8"], true, function($__require, exports, module) { - "use strict"; - ; - var global = this, - __define = global.define; - global.define = undefined; - var __extends = (this && this.__extends) || function(d, b) { - for (var p in b) - if (b.hasOwnProperty(p)) - d[p] = b[p]; - function __() { - this.constructor = d; - } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + var __decorate = (this && this.__decorate) || function(decorators, target, key, desc) { + var c = arguments.length, + r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, + d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") + r = Reflect.decorate(decorators, target, key, desc); + else + for (var i = decorators.length - 1; i >= 0; i--) + if (d = decorators[i]) + r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; }; - var exception_handler_1 = $__require('1c8'); - var exception_handler_2 = $__require('1c8'); - exports.ExceptionHandler = exception_handler_2.ExceptionHandler; - var BaseException = (function(_super) { - __extends(BaseException, _super); - function BaseException(message) { - if (message === void 0) { - message = "--"; - } - _super.call(this, message); - this.message = message; - this.stack = (new Error(message)).stack; + var __metadata = (this && this.__metadata) || function(k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") + return Reflect.metadata(k, v); + }; + var __param = (this && this.__param) || function(paramIndex, decorator) { + return function(target, key) { + decorator(target, key, paramIndex); + }; + }; + var core_1 = $__require('14'); + var lang_1 = $__require('2b'); + var collection_1 = $__require('3a'); + var _WHEN_DEFAULT = lang_1.CONST_EXPR(new Object()); + var SwitchView = (function() { + function SwitchView(_viewContainerRef, _templateRef) { + this._viewContainerRef = _viewContainerRef; + this._templateRef = _templateRef; } - BaseException.prototype.toString = function() { - return this.message; + SwitchView.prototype.create = function() { + this._viewContainerRef.createEmbeddedView(this._templateRef); }; - return BaseException; - })(Error); - exports.BaseException = BaseException; - var WrappedException = (function(_super) { - __extends(WrappedException, _super); - function WrappedException(_wrapperMessage, _originalException, _originalStack, _context) { - _super.call(this, _wrapperMessage); - this._wrapperMessage = _wrapperMessage; - this._originalException = _originalException; - this._originalStack = _originalStack; - this._context = _context; - this._wrapperStack = (new Error(_wrapperMessage)).stack; - } - Object.defineProperty(WrappedException.prototype, "wrapperMessage", { - get: function() { - return this._wrapperMessage; - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(WrappedException.prototype, "wrapperStack", { - get: function() { - return this._wrapperStack; - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(WrappedException.prototype, "originalException", { - get: function() { - return this._originalException; - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(WrappedException.prototype, "originalStack", { - get: function() { - return this._originalStack; - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(WrappedException.prototype, "context", { - get: function() { - return this._context; - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(WrappedException.prototype, "message", { - get: function() { - return exception_handler_1.ExceptionHandler.exceptionToString(this); - }, - enumerable: true, - configurable: true - }); - WrappedException.prototype.toString = function() { - return this.message; + SwitchView.prototype.destroy = function() { + this._viewContainerRef.clear(); }; - return WrappedException; - })(Error); - exports.WrappedException = WrappedException; - function makeTypeError(message) { - return new TypeError(message); - } - exports.makeTypeError = makeTypeError; - function unimplemented() { - throw new BaseException('unimplemented'); - } - exports.unimplemented = unimplemented; - global.define = __define; - return module.exports; -}); - -$__System.registerDynamic("90", ["22", "40"], true, function($__require, exports, module) { - "use strict"; - ; - var global = this, - __define = global.define; - global.define = undefined; - var lang_1 = $__require('22'); - var exceptions_1 = $__require('40'); - var ReflectionCapabilities = (function() { - function ReflectionCapabilities(reflect) { - this._reflect = lang_1.isPresent(reflect) ? reflect : lang_1.global.Reflect; - } - ReflectionCapabilities.prototype.isReflectionEnabled = function() { - return true; - }; - ReflectionCapabilities.prototype.factory = function(t) { - switch (t.length) { - case 0: - return function() { - return new t(); - }; - case 1: - return function(a1) { - return new t(a1); - }; - case 2: - return function(a1, a2) { - return new t(a1, a2); - }; - case 3: - return function(a1, a2, a3) { - return new t(a1, a2, a3); - }; - case 4: - return function(a1, a2, a3, a4) { - return new t(a1, a2, a3, a4); - }; - case 5: - return function(a1, a2, a3, a4, a5) { - return new t(a1, a2, a3, a4, a5); - }; - case 6: - return function(a1, a2, a3, a4, a5, a6) { - return new t(a1, a2, a3, a4, a5, a6); - }; - case 7: - return function(a1, a2, a3, a4, a5, a6, a7) { - return new t(a1, a2, a3, a4, a5, a6, a7); - }; - case 8: - return function(a1, a2, a3, a4, a5, a6, a7, a8) { - return new t(a1, a2, a3, a4, a5, a6, a7, a8); - }; - case 9: - return function(a1, a2, a3, a4, a5, a6, a7, a8, a9) { - return new t(a1, a2, a3, a4, a5, a6, a7, a8, a9); - }; - case 10: - return function(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) { - return new t(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10); - }; - case 11: - return function(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11) { - return new t(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11); - }; - case 12: - return function(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12) { - return new t(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12); - }; - case 13: - return function(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13) { - return new t(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13); - }; - case 14: - return function(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14) { - return new t(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14); - }; - case 15: - return function(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15) { - return new t(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15); - }; - case 16: - return function(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16) { - return new t(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16); - }; - case 17: - return function(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17) { - return new t(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17); - }; - case 18: - return function(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18) { - return new t(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18); - }; - case 19: - return function(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19) { - return new t(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19); - }; - case 20: - return function(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20) { - return new t(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20); - }; - } - ; - throw new Error("Cannot create a factory for '" + lang_1.stringify(t) + "' because its constructor has more than 20 arguments"); - }; - ReflectionCapabilities.prototype._zipTypesAndAnnotaions = function(paramTypes, paramAnnotations) { - var result; - if (typeof paramTypes === 'undefined') { - result = new Array(paramAnnotations.length); - } else { - result = new Array(paramTypes.length); - } - for (var i = 0; i < result.length; i++) { - if (typeof paramTypes === 'undefined') { - result[i] = []; - } else if (paramTypes[i] != Object) { - result[i] = [paramTypes[i]]; - } else { - result[i] = []; - } - if (lang_1.isPresent(paramAnnotations) && lang_1.isPresent(paramAnnotations[i])) { - result[i] = result[i].concat(paramAnnotations[i]); - } - } - return result; - }; - ReflectionCapabilities.prototype.parameters = function(typeOrFunc) { - if (lang_1.isPresent(typeOrFunc.parameters)) { - return typeOrFunc.parameters; - } - if (lang_1.isPresent(this._reflect) && lang_1.isPresent(this._reflect.getMetadata)) { - var paramAnnotations = this._reflect.getMetadata('parameters', typeOrFunc); - var paramTypes = this._reflect.getMetadata('design:paramtypes', typeOrFunc); - if (lang_1.isPresent(paramTypes) || lang_1.isPresent(paramAnnotations)) { - return this._zipTypesAndAnnotaions(paramTypes, paramAnnotations); - } - } - var parameters = new Array(typeOrFunc.length); - parameters.fill(undefined); - return parameters; - }; - ReflectionCapabilities.prototype.annotations = function(typeOrFunc) { - if (lang_1.isPresent(typeOrFunc.annotations)) { - var annotations = typeOrFunc.annotations; - if (lang_1.isFunction(annotations) && annotations.annotations) { - annotations = annotations.annotations; - } - return annotations; - } - if (lang_1.isPresent(this._reflect) && lang_1.isPresent(this._reflect.getMetadata)) { - var annotations = this._reflect.getMetadata('annotations', typeOrFunc); - if (lang_1.isPresent(annotations)) - return annotations; - } - return []; - }; - ReflectionCapabilities.prototype.propMetadata = function(typeOrFunc) { - if (lang_1.isPresent(typeOrFunc.propMetadata)) { - var propMetadata = typeOrFunc.propMetadata; - if (lang_1.isFunction(propMetadata) && propMetadata.propMetadata) { - propMetadata = propMetadata.propMetadata; - } - return propMetadata; - } - if (lang_1.isPresent(this._reflect) && lang_1.isPresent(this._reflect.getMetadata)) { - var propMetadata = this._reflect.getMetadata('propMetadata', typeOrFunc); - if (lang_1.isPresent(propMetadata)) - return propMetadata; - } - return {}; - }; - ReflectionCapabilities.prototype.interfaces = function(type) { - throw new exceptions_1.BaseException("JavaScript does not support interfaces"); - }; - ReflectionCapabilities.prototype.getter = function(name) { - return new Function('o', 'return o.' + name + ';'); - }; - ReflectionCapabilities.prototype.setter = function(name) { - return new Function('o', 'v', 'return o.' + name + ' = v;'); - }; - ReflectionCapabilities.prototype.method = function(name) { - var functionBody = "if (!o." + name + ") throw new Error('\"" + name + "\" is undefined');\n return o." + name + ".apply(o, args);"; - return new Function('o', 'args', functionBody); - }; - ReflectionCapabilities.prototype.importUri = function(type) { - return './'; - }; - return ReflectionCapabilities; + return SwitchView; })(); - exports.ReflectionCapabilities = ReflectionCapabilities; + exports.SwitchView = SwitchView; + var NgSwitch = (function() { + function NgSwitch() { + this._useDefault = false; + this._valueViews = new collection_1.Map(); + this._activeViews = []; + } + Object.defineProperty(NgSwitch.prototype, "ngSwitch", { + set: function(value) { + this._emptyAllActiveViews(); + this._useDefault = false; + var views = this._valueViews.get(value); + if (lang_1.isBlank(views)) { + this._useDefault = true; + views = lang_1.normalizeBlank(this._valueViews.get(_WHEN_DEFAULT)); + } + this._activateViews(views); + this._switchValue = value; + }, + enumerable: true, + configurable: true + }); + NgSwitch.prototype._onWhenValueChanged = function(oldWhen, newWhen, view) { + this._deregisterView(oldWhen, view); + this._registerView(newWhen, view); + if (oldWhen === this._switchValue) { + view.destroy(); + collection_1.ListWrapper.remove(this._activeViews, view); + } else if (newWhen === this._switchValue) { + if (this._useDefault) { + this._useDefault = false; + this._emptyAllActiveViews(); + } + view.create(); + this._activeViews.push(view); + } + if (this._activeViews.length === 0 && !this._useDefault) { + this._useDefault = true; + this._activateViews(this._valueViews.get(_WHEN_DEFAULT)); + } + }; + NgSwitch.prototype._emptyAllActiveViews = function() { + var activeContainers = this._activeViews; + for (var i = 0; i < activeContainers.length; i++) { + activeContainers[i].destroy(); + } + this._activeViews = []; + }; + NgSwitch.prototype._activateViews = function(views) { + if (lang_1.isPresent(views)) { + for (var i = 0; i < views.length; i++) { + views[i].create(); + } + this._activeViews = views; + } + }; + NgSwitch.prototype._registerView = function(value, view) { + var views = this._valueViews.get(value); + if (lang_1.isBlank(views)) { + views = []; + this._valueViews.set(value, views); + } + views.push(view); + }; + NgSwitch.prototype._deregisterView = function(value, view) { + if (value === _WHEN_DEFAULT) + return; + var views = this._valueViews.get(value); + if (views.length == 1) { + this._valueViews.delete(value); + } else { + collection_1.ListWrapper.remove(views, view); + } + }; + NgSwitch = __decorate([core_1.Directive({ + selector: '[ngSwitch]', + inputs: ['ngSwitch'] + }), __metadata('design:paramtypes', [])], NgSwitch); + return NgSwitch; + })(); + exports.NgSwitch = NgSwitch; + var NgSwitchWhen = (function() { + function NgSwitchWhen(viewContainer, templateRef, ngSwitch) { + this._value = _WHEN_DEFAULT; + this._switch = ngSwitch; + this._view = new SwitchView(viewContainer, templateRef); + } + Object.defineProperty(NgSwitchWhen.prototype, "ngSwitchWhen", { + set: function(value) { + this._switch._onWhenValueChanged(this._value, value, this._view); + this._value = value; + }, + enumerable: true, + configurable: true + }); + NgSwitchWhen = __decorate([core_1.Directive({ + selector: '[ngSwitchWhen]', + inputs: ['ngSwitchWhen'] + }), __param(2, core_1.Host()), __metadata('design:paramtypes', [core_1.ViewContainerRef, core_1.TemplateRef, NgSwitch])], NgSwitchWhen); + return NgSwitchWhen; + })(); + exports.NgSwitchWhen = NgSwitchWhen; + var NgSwitchDefault = (function() { + function NgSwitchDefault(viewContainer, templateRef, sswitch) { + sswitch._registerView(_WHEN_DEFAULT, new SwitchView(viewContainer, templateRef)); + } + NgSwitchDefault = __decorate([core_1.Directive({selector: '[ngSwitchDefault]'}), __param(2, core_1.Host()), __metadata('design:paramtypes', [core_1.ViewContainerRef, core_1.TemplateRef, NgSwitch])], NgSwitchDefault); + return NgSwitchDefault; + })(); + exports.NgSwitchDefault = NgSwitchDefault; global.define = __define; return module.exports; }); -$__System.registerDynamic("85", ["21b", "90"], true, function($__require, exports, module) { +$__System.registerDynamic("203", ["2b", "1b0", "1b1", "1b2", "1b3", "202"], true, function($__require, exports, module) { "use strict"; ; var global = this, __define = global.define; global.define = undefined; - var reflector_1 = $__require('21b'); - var reflector_2 = $__require('21b'); - exports.Reflector = reflector_2.Reflector; - exports.ReflectionInfo = reflector_2.ReflectionInfo; - var reflection_capabilities_1 = $__require('90'); - exports.reflector = new reflector_1.Reflector(new reflection_capabilities_1.ReflectionCapabilities()); + var lang_1 = $__require('2b'); + var ng_class_1 = $__require('1b0'); + var ng_for_1 = $__require('1b1'); + var ng_if_1 = $__require('1b2'); + var ng_style_1 = $__require('1b3'); + var ng_switch_1 = $__require('202'); + exports.CORE_DIRECTIVES = lang_1.CONST_EXPR([ng_class_1.NgClass, ng_for_1.NgFor, ng_if_1.NgIf, ng_style_1.NgStyle, ng_switch_1.NgSwitch, ng_switch_1.NgSwitchWhen, ng_switch_1.NgSwitchDefault]); global.define = __define; return module.exports; }); -$__System.registerDynamic("11", ["54", "1c4", "1c6", "3d", "1c7", "22", "5f", "8c", "1cb", "1cc", "1cd", "5b", "62", "211", "86", "1d4", "21a", "85"], true, function($__require, exports, module) { +$__System.registerDynamic("204", ["1b0", "1b1", "1b2", "1b3", "202", "1af", "203"], true, function($__require, exports, module) { "use strict"; ; var global = this, @@ -57081,51 +55611,1356 @@ $__System.registerDynamic("11", ["54", "1c4", "1c6", "3d", "1c7", "22", "5f", "8 if (!exports.hasOwnProperty(p)) exports[p] = m[p]; } - __export($__require('54')); - __export($__require('1c4')); - __export($__require('1c6')); - __export($__require('3d')); - __export($__require('1c7')); - var lang_1 = $__require('22'); - exports.enableProdMode = lang_1.enableProdMode; - var application_ref_1 = $__require('5f'); - exports.platform = application_ref_1.platform; - exports.createNgZone = application_ref_1.createNgZone; - exports.PlatformRef = application_ref_1.PlatformRef; - exports.ApplicationRef = application_ref_1.ApplicationRef; - var application_tokens_1 = $__require('8c'); - exports.APP_ID = application_tokens_1.APP_ID; - exports.APP_COMPONENT = application_tokens_1.APP_COMPONENT; - exports.APP_INITIALIZER = application_tokens_1.APP_INITIALIZER; - exports.PACKAGE_ROOT_URL = application_tokens_1.PACKAGE_ROOT_URL; - exports.PLATFORM_INITIALIZER = application_tokens_1.PLATFORM_INITIALIZER; - __export($__require('1cb')); - __export($__require('1cc')); - __export($__require('1cd')); - var debug_element_1 = $__require('5b'); - exports.DebugElement = debug_element_1.DebugElement; - exports.Scope = debug_element_1.Scope; - exports.inspectElement = debug_element_1.inspectElement; - exports.asNativeElements = debug_element_1.asNativeElements; - __export($__require('62')); - __export($__require('211')); - __export($__require('86')); - __export($__require('1d4')); - __export($__require('21a')); - __export($__require('85')); + var ng_class_1 = $__require('1b0'); + exports.NgClass = ng_class_1.NgClass; + var ng_for_1 = $__require('1b1'); + exports.NgFor = ng_for_1.NgFor; + var ng_if_1 = $__require('1b2'); + exports.NgIf = ng_if_1.NgIf; + var ng_style_1 = $__require('1b3'); + exports.NgStyle = ng_style_1.NgStyle; + var ng_switch_1 = $__require('202'); + exports.NgSwitch = ng_switch_1.NgSwitch; + exports.NgSwitchWhen = ng_switch_1.NgSwitchWhen; + exports.NgSwitchDefault = ng_switch_1.NgSwitchDefault; + __export($__require('1af')); + var core_directives_1 = $__require('203'); + exports.CORE_DIRECTIVES = core_directives_1.CORE_DIRECTIVES; global.define = __define; return module.exports; }); -$__System.register('1', ['11', '1c3'], function (_export) { - 'use strict'; +$__System.registerDynamic("205", ["2b", "1ae", "204"], true, function($__require, exports, module) { + "use strict"; + ; + var global = this, + __define = global.define; + global.define = undefined; + var lang_1 = $__require('2b'); + var forms_1 = $__require('1ae'); + var directives_1 = $__require('204'); + exports.COMMON_DIRECTIVES = lang_1.CONST_EXPR([directives_1.CORE_DIRECTIVES, forms_1.FORM_DIRECTIVES]); + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("22", ["196", "204", "1ae", "205"], true, function($__require, exports, module) { + "use strict"; + ; + var global = this, + __define = global.define; + global.define = undefined; + function __export(m) { + for (var p in m) + if (!exports.hasOwnProperty(p)) + exports[p] = m[p]; + } + __export($__require('196')); + __export($__require('204')); + __export($__require('1ae')); + __export($__require('205')); + global.define = __define; + return module.exports; +}); + +$__System.register('10', ['8', '9', '14', '22'], function (_export) { + var _createClass, _classCallCheck, Component, View, EventEmitter, CORE_DIRECTIVES, Tabs, Tab; - var enableProdMode, Redoc, init; return { setters: [function (_) { - enableProdMode = _.enableProdMode; - }, function (_c3) { - Redoc = _c3.Redoc; + _createClass = _['default']; + }, function (_2) { + _classCallCheck = _2['default']; + }, function (_3) { + Component = _3.Component; + View = _3.View; + EventEmitter = _3.EventEmitter; + }, function (_4) { + CORE_DIRECTIVES = _4.CORE_DIRECTIVES; + }], + execute: function () { + 'use strict'; + + Tabs = (function () { + function Tabs() { + _classCallCheck(this, _Tabs); + + this.tabs = []; + this.change = new EventEmitter(); + } + + _createClass(Tabs, [{ + key: 'selectTab', + value: function selectTab(tab) { + var notify = arguments.length <= 1 || arguments[1] === undefined ? true : arguments[1]; + + if (tab.active) return; + this.tabs.forEach(function (tab) { + tab.active = false; + }); + tab.active = true; + notify && this.change.next(tab.tabTitle); + } + }, { + key: 'selectyByTitle', + value: function selectyByTitle(tabTitle) { + var notify = arguments.length <= 1 || arguments[1] === undefined ? false : arguments[1]; + + var prevActive = undefined; + var newActive = undefined; + this.tabs.forEach(function (tab) { + if (tab.active) prevActive = tab; + tab.active = false; + if (tab.tabTitle === tabTitle) { + newActive = tab; + } + }); + if (newActive) { + newActive.active = true; + } else { + prevActive.active = true; + } + notify && this.change.next(tabTitle); + } + }, { + key: 'addTab', + value: function addTab(tab) { + if (this.tabs.length === 0) { + tab.active = true; + } + this.tabs.push(tab); + } + }]); + + var _Tabs = Tabs; + Tabs = View({ + template: '\n
      \n
    • {{tab.tabTitle}}
    • \n
    \n \n ', + directives: [CORE_DIRECTIVES], + styles: ['\n ul{display:block;margin:0;padding:0}li{list-style:none;display:inline-block;cursor:pointer}.tab-success:before,.tab-error:before,.tab-redirect:before,.tab-info:before{content:"";display:inline-block;vertical-align:middle;height:6px;width:6px;border-radius:50%;margin-right:0.5em}.tab-success:before{box-shadow:0 0 3px 0 #00aa11;background-color:#00aa11}.tab-error:before{box-shadow:0 0 3px 0 #E53935;background-color:#E53935}.tab-redirect:before{box-shadow:0 0 3px 0 #F88F00;background-color:#F88F00}.tab-info:before{box-shadow:0 0 3px 0 #66C2FF;background-color:#66C2FF}\n '] + })(Tabs) || Tabs; + Tabs = Component({ + selector: 'tabs', + events: ['change'] + })(Tabs) || Tabs; + return Tabs; + })(); + + _export('Tabs', Tabs); + + Tab = (function () { + function Tab(tabs) { + _classCallCheck(this, _Tab); + + this.active = false; + tabs.addTab(this); + } + + var _Tab = Tab; + Tab = Reflect.metadata('parameters', [[Tabs]])(Tab) || Tab; + Tab = View({ + template: '\n
    \n \n
    \n ', + directives: [CORE_DIRECTIVES], + styles: ['\n .tab-wrap {\n display: none;\n }\n\n .tab-wrap.active {\n display: block;\n }'] + })(Tab) || Tab; + Tab = Component({ + selector: 'tab', + inputs: ['tabTitle', 'tabStatus'] + })(Tab) || Tab; + return Tab; + })(); + + _export('Tab', Tab); + } + }; +}); +$__System.registerDynamic("165", ["206", "160"], true, function($__require, exports, module) { + ; + var global = this, + __define = global.define; + global.define = undefined; + var IObject = $__require('206'), + defined = $__require('160'); + module.exports = function(it) { + return IObject(defined(it)); + }; + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("173", ["99", "30", "16c"], true, function($__require, exports, module) { + ; + var global = this, + __define = global.define; + global.define = undefined; + var $export = $__require('99'), + core = $__require('30'), + fails = $__require('16c'); + module.exports = function(KEY, exec) { + var fn = (core.Object || {})[KEY] || Object[KEY], + exp = {}; + exp[KEY] = exec(fn); + $export($export.S + $export.F * fails(function() { + fn(1); + }), 'Object', exp); + }; + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("207", ["165", "173"], true, function($__require, exports, module) { + ; + var global = this, + __define = global.define; + global.define = undefined; + var toIObject = $__require('165'); + $__require('173')('getOwnPropertyDescriptor', function($getOwnPropertyDescriptor) { + return function getOwnPropertyDescriptor(it, key) { + return $getOwnPropertyDescriptor(toIObject(it), key); + }; + }); + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("208", ["af", "207"], true, function($__require, exports, module) { + ; + var global = this, + __define = global.define; + global.define = undefined; + var $ = $__require('af'); + $__require('207'); + module.exports = function getOwnPropertyDescriptor(it, key) { + return $.getDesc(it, key); + }; + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("209", ["208"], true, function($__require, exports, module) { + ; + var global = this, + __define = global.define; + global.define = undefined; + module.exports = { + "default": $__require('208'), + __esModule: true + }; + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("6", ["209"], true, function($__require, exports, module) { + "use strict"; + ; + var global = this, + __define = global.define; + global.define = undefined; + var _Object$getOwnPropertyDescriptor = $__require('209')["default"]; + exports["default"] = function get(_x, _x2, _x3) { + var _again = true; + _function: while (_again) { + var object = _x, + property = _x2, + receiver = _x3; + _again = false; + if (object === null) + object = Function.prototype; + var desc = _Object$getOwnPropertyDescriptor(object, property); + if (desc === undefined) { + var parent = Object.getPrototypeOf(object); + if (parent === null) { + return undefined; + } else { + _x = parent; + _x2 = property; + _x3 = receiver; + _again = true; + desc = parent = undefined; + continue _function; + } + } else if ("value" in desc) { + return desc.value; + } else { + var getter = desc.get; + if (getter === undefined) { + return undefined; + } + return getter.call(receiver); + } + } + }; + exports.__esModule = true; + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("20a", ["af"], true, function($__require, exports, module) { + ; + var global = this, + __define = global.define; + global.define = undefined; + var $ = $__require('af'); + module.exports = function create(P, D) { + return $.create(P, D); + }; + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("20b", ["20a"], true, function($__require, exports, module) { + ; + var global = this, + __define = global.define; + global.define = undefined; + module.exports = { + "default": $__require('20a'), + __esModule: true + }; + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("aa", [], true, function($__require, exports, module) { + ; + var global = this, + __define = global.define; + global.define = undefined; + module.exports = function(it) { + return typeof it === 'object' ? it !== null : typeof it === 'function'; + }; + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("a4", ["aa"], true, function($__require, exports, module) { + ; + var global = this, + __define = global.define; + global.define = undefined; + var isObject = $__require('aa'); + module.exports = function(it) { + if (!isObject(it)) + throw TypeError(it + ' is not an object!'); + return it; + }; + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("b3", ["af", "aa", "a4", "98"], true, function($__require, exports, module) { + ; + var global = this, + __define = global.define; + global.define = undefined; + var getDesc = $__require('af').getDesc, + isObject = $__require('aa'), + anObject = $__require('a4'); + var check = function(O, proto) { + anObject(O); + if (!isObject(proto) && proto !== null) + throw TypeError(proto + ": can't set as prototype!"); + }; + module.exports = { + set: Object.setPrototypeOf || ('__proto__' in {} ? function(test, buggy, set) { + try { + set = $__require('98')(Function.call, getDesc(Object.prototype, '__proto__').set, 2); + set(test, []); + buggy = !(test instanceof Array); + } catch (e) { + buggy = true; + } + return function setPrototypeOf(O, proto) { + check(O, proto); + if (buggy) + O.__proto__ = proto; + else + set(O, proto); + return O; + }; + }({}, false) : undefined), + check: check + }; + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("20c", ["99", "b3"], true, function($__require, exports, module) { + ; + var global = this, + __define = global.define; + global.define = undefined; + var $export = $__require('99'); + $export($export.S, 'Object', {setPrototypeOf: $__require('b3').set}); + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("20d", ["20c", "30"], true, function($__require, exports, module) { + ; + var global = this, + __define = global.define; + global.define = undefined; + $__require('20c'); + module.exports = $__require('30').Object.setPrototypeOf; + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("20e", ["20d"], true, function($__require, exports, module) { + ; + var global = this, + __define = global.define; + global.define = undefined; + module.exports = { + "default": $__require('20d'), + __esModule: true + }; + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("7", ["20b", "20e"], true, function($__require, exports, module) { + "use strict"; + ; + var global = this, + __define = global.define; + global.define = undefined; + var _Object$create = $__require('20b')["default"]; + var _Object$setPrototypeOf = $__require('20e')["default"]; + exports["default"] = function(subClass, superClass) { + if (typeof superClass !== "function" && superClass !== null) { + throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); + } + subClass.prototype = _Object$create(superClass && superClass.prototype, {constructor: { + value: subClass, + enumerable: false, + writable: true, + configurable: true + }}); + if (superClass) + _Object$setPrototypeOf ? _Object$setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; + }; + exports.__esModule = true; + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("20f", ["af"], true, function($__require, exports, module) { + ; + var global = this, + __define = global.define; + global.define = undefined; + var $ = $__require('af'); + module.exports = function defineProperty(it, key, desc) { + return $.setDesc(it, key, desc); + }; + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("210", ["20f"], true, function($__require, exports, module) { + ; + var global = this, + __define = global.define; + global.define = undefined; + module.exports = { + "default": $__require('20f'), + __esModule: true + }; + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("8", ["210"], true, function($__require, exports, module) { + "use strict"; + ; + var global = this, + __define = global.define; + global.define = undefined; + var _Object$defineProperty = $__require('210')["default"]; + exports["default"] = (function() { + function defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + if ("value" in descriptor) + descriptor.writable = true; + _Object$defineProperty(target, descriptor.key, descriptor); + } + } + return function(Constructor, protoProps, staticProps) { + if (protoProps) + defineProperties(Constructor.prototype, protoProps); + if (staticProps) + defineProperties(Constructor, staticProps); + return Constructor; + }; + })(); + exports.__esModule = true; + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("9", [], true, function($__require, exports, module) { + "use strict"; + ; + var global = this, + __define = global.define; + global.define = undefined; + exports["default"] = function(instance, Constructor) { + if (!(instance instanceof Constructor)) { + throw new TypeError("Cannot call a class as a function"); + } + }; + exports.__esModule = true; + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("a8", [], true, function($__require, exports, module) { + ; + var global = this, + __define = global.define; + global.define = undefined; + var global = module.exports = typeof window != 'undefined' && window.Math == Math ? window : typeof self != 'undefined' && self.Math == Math ? self : Function('return this')(); + if (typeof __g == 'number') + __g = global; + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("a5", [], true, function($__require, exports, module) { + ; + var global = this, + __define = global.define; + global.define = undefined; + module.exports = function(it) { + if (typeof it != 'function') + throw TypeError(it + ' is not a function!'); + return it; + }; + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("98", ["a5"], true, function($__require, exports, module) { + ; + var global = this, + __define = global.define; + global.define = undefined; + var aFunction = $__require('a5'); + module.exports = function(fn, that, length) { + aFunction(fn); + if (that === undefined) + return fn; + switch (length) { + case 1: + return function(a) { + return fn.call(that, a); + }; + case 2: + return function(a, b) { + return fn.call(that, a, b); + }; + case 3: + return function(a, b, c) { + return fn.call(that, a, b, c); + }; + } + return function() { + return fn.apply(that, arguments); + }; + }; + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("99", ["a8", "30", "98"], true, function($__require, exports, module) { + ; + var global = this, + __define = global.define; + global.define = undefined; + var global = $__require('a8'), + core = $__require('30'), + ctx = $__require('98'), + PROTOTYPE = 'prototype'; + var $export = function(type, name, source) { + var IS_FORCED = type & $export.F, + IS_GLOBAL = type & $export.G, + IS_STATIC = type & $export.S, + IS_PROTO = type & $export.P, + IS_BIND = type & $export.B, + IS_WRAP = type & $export.W, + exports = IS_GLOBAL ? core : core[name] || (core[name] = {}), + target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE], + key, + own, + out; + if (IS_GLOBAL) + source = name; + for (key in source) { + own = !IS_FORCED && target && key in target; + if (own && key in exports) + continue; + out = own ? target[key] : source[key]; + exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key] : IS_BIND && own ? ctx(out, global) : IS_WRAP && target[key] == out ? (function(C) { + var F = function(param) { + return this instanceof C ? new C(param) : C(param); + }; + F[PROTOTYPE] = C[PROTOTYPE]; + return F; + })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out; + if (IS_PROTO) + (exports[PROTOTYPE] || (exports[PROTOTYPE] = {}))[key] = out; + } + }; + $export.F = 1; + $export.G = 2; + $export.S = 4; + $export.P = 8; + $export.B = 16; + $export.W = 32; + module.exports = $export; + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("af", [], true, function($__require, exports, module) { + ; + var global = this, + __define = global.define; + global.define = undefined; + var $Object = Object; + module.exports = { + create: $Object.create, + getProto: $Object.getPrototypeOf, + isEnum: {}.propertyIsEnumerable, + getDesc: $Object.getOwnPropertyDescriptor, + setDesc: $Object.defineProperty, + setDescs: $Object.defineProperties, + getKeys: $Object.keys, + getNames: $Object.getOwnPropertyNames, + getSymbols: $Object.getOwnPropertySymbols, + each: [].forEach + }; + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("160", [], true, function($__require, exports, module) { + ; + var global = this, + __define = global.define; + global.define = undefined; + module.exports = function(it) { + if (it == undefined) + throw TypeError("Can't call method on " + it); + return it; + }; + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("9a", ["160"], true, function($__require, exports, module) { + ; + var global = this, + __define = global.define; + global.define = undefined; + var defined = $__require('160'); + module.exports = function(it) { + return Object(defined(it)); + }; + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("ac", [], true, function($__require, exports, module) { + ; + var global = this, + __define = global.define; + global.define = undefined; + var toString = {}.toString; + module.exports = function(it) { + return toString.call(it).slice(8, -1); + }; + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("206", ["ac"], true, function($__require, exports, module) { + ; + var global = this, + __define = global.define; + global.define = undefined; + var cof = $__require('ac'); + module.exports = Object('z').propertyIsEnumerable(0) ? Object : function(it) { + return cof(it) == 'String' ? it.split('') : Object(it); + }; + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("16c", [], true, function($__require, exports, module) { + ; + var global = this, + __define = global.define; + global.define = undefined; + module.exports = function(exec) { + try { + return !!exec(); + } catch (e) { + return true; + } + }; + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("211", ["af", "9a", "206", "16c"], true, function($__require, exports, module) { + ; + var global = this, + __define = global.define; + global.define = undefined; + var $ = $__require('af'), + toObject = $__require('9a'), + IObject = $__require('206'); + module.exports = $__require('16c')(function() { + var a = Object.assign, + A = {}, + B = {}, + S = Symbol(), + K = 'abcdefghijklmnopqrst'; + A[S] = 7; + K.split('').forEach(function(k) { + B[k] = k; + }); + return a({}, A)[S] != 7 || Object.keys(a({}, B)).join('') != K; + }) ? function assign(target, source) { + var T = toObject(target), + $$ = arguments, + $$len = $$.length, + index = 1, + getKeys = $.getKeys, + getSymbols = $.getSymbols, + isEnum = $.isEnum; + while ($$len > index) { + var S = IObject($$[index++]), + keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S), + length = keys.length, + j = 0, + key; + while (length > j) + if (isEnum.call(S, key = keys[j++])) + T[key] = S[key]; + } + return T; + } : Object.assign; + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("212", ["99", "211"], true, function($__require, exports, module) { + ; + var global = this, + __define = global.define; + global.define = undefined; + var $export = $__require('99'); + $export($export.S + $export.F, 'Object', {assign: $__require('211')}); + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("30", [], true, function($__require, exports, module) { + ; + var global = this, + __define = global.define; + global.define = undefined; + var core = module.exports = {version: '1.2.6'}; + if (typeof __e == 'number') + __e = core; + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("213", ["212", "30"], true, function($__require, exports, module) { + ; + var global = this, + __define = global.define; + global.define = undefined; + $__require('212'); + module.exports = $__require('30').Object.assign; + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("96", ["213"], true, function($__require, exports, module) { + ; + var global = this, + __define = global.define; + global.define = undefined; + module.exports = { + "default": $__require('213'), + __esModule: true + }; + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("214", [], true, function($__require, exports, module) { + ; + var global = this, + __define = global.define; + global.define = undefined; + var hasOwn = Object.prototype.hasOwnProperty; + var toString = Object.prototype.toString; + module.exports = function forEach(obj, fn, ctx) { + if (toString.call(fn) !== '[object Function]') { + throw new TypeError('iterator must be a function'); + } + var l = obj.length; + if (l === +l) { + for (var i = 0; i < l; i++) { + fn.call(ctx, obj[i], i, obj); + } + } else { + for (var k in obj) { + if (hasOwn.call(obj, k)) { + fn.call(ctx, obj[k], k, obj); + } + } + } + }; + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("215", ["214"], true, function($__require, exports, module) { + ; + var global = this, + __define = global.define; + global.define = undefined; + module.exports = $__require('214'); + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("216", ["215"], true, function($__require, exports, module) { + "use strict"; + ; + var global = this, + __define = global.define; + global.define = undefined; + var each = $__require('215'); + module.exports = api; + function api(obj, pointer, value) { + if (arguments.length === 3) { + return api.set(obj, pointer, value); + } + if (arguments.length === 2) { + return api.get(obj, pointer); + } + var wrapped = api.bind(api, obj); + for (var name in api) { + if (api.hasOwnProperty(name)) { + wrapped[name] = api[name].bind(wrapped, obj); + } + } + return wrapped; + } + api.get = function get(obj, pointer) { + var tok, + refTokens = api.parse(pointer); + while (refTokens.length) { + tok = refTokens.shift(); + if (!(tok in obj)) { + throw new Error('Invalid reference token: ' + tok); + } + obj = obj[tok]; + } + return obj; + }; + api.set = function set(obj, pointer, value) { + var refTokens = api.parse(pointer), + tok, + nextTok = refTokens[0]; + while (refTokens.length > 1) { + tok = refTokens.shift(); + if (tok === '-' && Array.isArray(obj)) { + tok = obj.length; + } + nextTok = refTokens[0]; + if (!(tok in obj)) { + if (nextTok.match(/^(\d+|-)$/)) { + obj[tok] = []; + } else { + obj[tok] = {}; + } + } + obj = obj[tok]; + } + if (nextTok === '-' && Array.isArray(obj)) { + nextTok = obj.length; + } + obj[nextTok] = value; + return this; + }; + api.remove = function(obj, pointer) { + var refTokens = api.parse(pointer); + var finalToken = refTokens.pop(); + if (finalToken === undefined) { + throw new Error('Invalid JSON pointer for remove: "' + pointer + '"'); + } + delete api.get(obj, api.compile(refTokens))[finalToken]; + }; + api.dict = function dict(obj, descend) { + var results = {}; + api.walk(obj, function(value, pointer) { + results[pointer] = value; + }, descend); + return results; + }; + api.walk = function walk(obj, iterator, descend) { + var refTokens = []; + descend = descend || function(value) { + var type = Object.prototype.toString.call(value); + return type === '[object Object]' || type === '[object Array]'; + }; + (function next(cur) { + each(cur, function(value, key) { + refTokens.push(String(key)); + if (descend(value)) { + next(value); + } else { + iterator(value, api.compile(refTokens)); + } + refTokens.pop(); + }); + }(obj)); + }; + api.has = function has(obj, pointer) { + try { + api.get(obj, pointer); + } catch (e) { + return false; + } + return true; + }; + api.escape = function escape(str) { + return str.toString().replace(/~/g, '~0').replace(/\//g, '~1'); + }; + api.unescape = function unescape(str) { + return str.replace(/~1/g, '/').replace(/~0/g, '~'); + }; + api.parse = function parse(pointer) { + if (pointer === '') { + return []; + } + if (pointer.charAt(0) !== '/') { + throw new Error('Invalid JSON pointer: ' + pointer); + } + return pointer.substring(1).split(/\//).map(api.unescape); + }; + api.compile = function compile(refTokens) { + if (refTokens.length === 0) { + return ''; + } + return '/' + refTokens.map(api.escape).join('/'); + }; + global.define = __define; + return module.exports; +}); + +$__System.registerDynamic("217", ["216"], true, function($__require, exports, module) { + ; + var global = this, + __define = global.define; + global.define = undefined; + module.exports = $__require('216'); + global.define = __define; + return module.exports; +}); + +$__System.register('f', ['6', '7', '8', '9', '96', '217'], function (_export) { + var _get, _inherits, _createClass, _classCallCheck, _Object$assign, JsonPointerLib, JsonPointer; + + return { + setters: [function (_) { + _get = _['default']; + }, function (_2) { + _inherits = _2['default']; + }, function (_3) { + _createClass = _3['default']; + }, function (_4) { + _classCallCheck = _4['default']; + }, function (_5) { + _Object$assign = _5['default']; + }, function (_6) { + JsonPointerLib = _6['default']; + }], + execute: function () { + + /** + * Wrapper for JsonPointer. Provides common operations + */ + 'use strict'; + + JsonPointer = (function (_JsonPointerLib) { + _inherits(JsonPointer, _JsonPointerLib); + + function JsonPointer() { + _classCallCheck(this, JsonPointer); + + _get(Object.getPrototypeOf(JsonPointer.prototype), 'constructor', this).apply(this, arguments); + } + + _createClass(JsonPointer, null, [{ + key: 'baseName', + + /** + * returns last JsonPointer token + * if level > 1 returns levels last (second last/third last) + * @example + * // returns subpath + * JsonPointerHelper.baseName('/path/0/subpath') + * // returns foo + * JsonPointerHelper.baseName('/path/foo/subpath', 2) + */ + value: function baseName(pointer) { + var level = arguments.length <= 1 || arguments[1] === undefined ? 1 : arguments[1]; + + var tokens = JsonPointer.parse(pointer); + return tokens[tokens.length - level]; + } + + /** + * returns dirname of pointer + * if level > 1 returns corresponding dirname in the hierarchy + * @example + * // returns /path/0 + * JsonPointerHelper.dirName('/path/0/subpath') + * // returns /path + * JsonPointerHelper.dirName('/path/foo/subpath', 2) + */ + }, { + key: 'dirName', + value: function dirName(pointer) { + var level = arguments.length <= 1 || arguments[1] === undefined ? 1 : arguments[1]; + + var tokens = JsonPointer.parse(pointer); + return JsonPointer.compile(tokens.slice(0, tokens.length - level)); + } + + /** + * overridden JsonPointer original parse to take care of prefixing '#' symbol + * that is not valid JsonPointer + */ + }, { + key: 'parse', + value: function parse(pointer) { + var ptr = pointer; + if (ptr.charAt(0) === '#') { + ptr = ptr.substring(1); + } + return JsonPointerLib._origParse(ptr); + } + + /** + * Creates a JSON pointer path, by joining one or more tokens to a base path. + * + * @param {string} base - The base path + * @param {string|string[]} tokens - The token(s) to append (e.g. ["name", "first"]) + * @returns {string} + */ + }, { + key: 'join', + value: function join(base, tokens) { + // TODO: optimize + var baseTokens = JsonPointer.parse(base); + var resTokens = baseTokens.concat(tokens); + return JsonPointer.compile(resTokens); + } + }]); + + return JsonPointer; + })(JsonPointerLib); + + _export('JsonPointer', JsonPointer); + + JsonPointerLib._origParse = JsonPointerLib.parse; + JsonPointerLib.parse = JsonPointer.parse; + + _Object$assign(JsonPointer, JsonPointerLib); + + _export('default', JsonPointer); + } + }; +}); +$__System.register('c', ['5', '6', '7', '8', '9', '10', '14', '26', '96', 'f'], function (_export) { + var RedocComponent, BaseComponent, SchemaManager, _get, _inherits, _createClass, _classCallCheck, Tabs, Tab, ElementRef, _Object$keys, _Object$assign, JsonPointer, JsonSchema; + + return { + setters: [function (_8) { + RedocComponent = _8.RedocComponent; + BaseComponent = _8.BaseComponent; + SchemaManager = _8.SchemaManager; + }, function (_) { + _get = _['default']; + }, function (_2) { + _inherits = _2['default']; + }, function (_3) { + _createClass = _3['default']; + }, function (_4) { + _classCallCheck = _4['default']; + }, function (_9) { + Tabs = _9.Tabs; + Tab = _9.Tab; + }, function (_7) { + ElementRef = _7.ElementRef; + }, function (_5) { + _Object$keys = _5['default']; + }, function (_6) { + _Object$assign = _6['default']; + }, function (_f) { + JsonPointer = _f['default']; + }], + execute: function () { + 'use strict'; + + JsonSchema = (function (_BaseComponent) { + _inherits(JsonSchema, _BaseComponent); + + function JsonSchema(schemaMgr, elementRef) { + _classCallCheck(this, _JsonSchema); + + _get(Object.getPrototypeOf(_JsonSchema.prototype), 'constructor', this).call(this, schemaMgr); + this.$element = elementRef.nativeElement; + this.final = false; + } + + _createClass(JsonSchema, [{ + key: 'prepareModel', + value: function prepareModel() { + var _this = this; + + this.data = {}; + this.data.properties = []; + this.data.derived = []; + + if (!this.componentSchema) { + throw new Error('Can\'t load component schema at ' + this.pointer); + } + + this.dereference(); + var schema = this.componentSchema; + + if (schema.type === 'array') { + this.isArray = true; + if (schema._pointer) { + this.pointer = JsonPointer.join(schema._pointer, 'items'); + } + schema = schema.items; + } + var normPtr = schema._pointer || this.pointer; + var derived = this.schemaMgr.findDerivedDefinitions(normPtr); + if (!this.final && derived.length) { + this.data.derived = derived; + this.data.discriminator = schema.discriminator; + } + + this.joinAllOf(schema, { omitParent: true }); + + if (schema.type !== 'object') { + this.isTrivial = true; + this._displayType = schema.type; + if (schema.format) this._displayType = this.displayType + ' <' + schema.format + '>'; + return; + } + + this.pointer = schema._pointer || this.pointer; + + this.requiredMap = {}; + if (this.schema.required) { + this.schema.required.forEach(function (prop) { + return _this.requiredMap[prop] = true; + }); + } + + if (!schema.properties) { + this.isTrivial = true; + this._displayType = schema.type; + this._displayTypeHint = 'This field may contain data of any type'; + return; + } + + var discriminatorFieldIdx = -1; + var props = _Object$keys(schema.properties).map(function (prop, idx) { + var propData = schema.properties[prop]; + var propPointer = JsonPointer.join(_this.pointer, ['properties', prop]); + propData = JsonSchema.injectPropData(propData, prop, propPointer, _this.requiredMap, schema); + if (propData.isDiscriminator) discriminatorFieldIdx = idx; + return propData; + }); + // Move discriminator field to the end of properties list + if (discriminatorFieldIdx > -1) { + var discrProp = props.splice(discriminatorFieldIdx, 1); + props.push(discrProp[0]); + } + this.data.properties = props; + } + }, { + key: 'ngAfterViewInit', + value: function ngAfterViewInit() { + // adjust widht only on parent level + var $el = this.$element.parentElement; + while ($el && $el.tagName !== 'JSON-SCHEMA' && $el.tagName !== 'REDOC') { + $el = $el.parentElement; + } + if ($el && $el.tagName === 'REDOC') { + this.adjustNameColumnWidth(); + } + } + }, { + key: 'adjustNameColumnWidth', + value: function adjustNameColumnWidth() { + // TODO handle internal schemes differently + + var names = [].slice.call(this.$element.querySelectorAll('.param-name-content')); + var widths = [144]; //names.map(el => el.offsetWidth); + var maxWidth = Math.max.apply(Math, widths); + if (!maxWidth) return; + names.forEach(function (el) { + el.parentNode.style.minWidth = maxWidth + 'px'; + }); + + var discrValues = this.$element.querySelector('tabs ul'); + if (discrValues) discrValues.style.paddingLeft = maxWidth + 'px'; + } + }], [{ + key: 'injectPropData', + value: function injectPropData(propData, propName, propPointer, requiredMap, schema) { + var propEnum = undefined; + + propData = _Object$assign({}, propData); + propData._name = propName; + propData.required = propData.required || requiredMap && requiredMap[propName]; + propData._displayType = propData.type; + propData.isDiscriminator = schema && schema.discriminator === propName; + propEnum = propData['enum']; + if (propData.type === 'array') { + var itemType = propData.items.type; + var itemFormat = propData.items.format; + propEnum = propData.items['enum']; + if (itemType === 'object' || !itemType) { + itemType = propData.items.title || 'object'; + propData._pointer = propData.items._pointer || JsonPointer.join(propPointer, ['items']); + } + propData._displayType = '' + itemType; + propData.format = itemFormat; + propData._isArray = true; + propData.type = 'array ' + propData.items.type; + } + + if (propData.type === 'object') { + propData._displayType = propData.title || 'object'; + } + + if (!propData.type) { + propData._displayType = '< * >'; + propData._displayTypeHint = 'This field may contain data of any type'; + } + + if (propData.format) propData._displayFormat = '<' + propData.format + '>'; + if (propEnum) { + propData['enum'] = propEnum.map(function (value) { + return { val: value, type: typeof value }; + }); + } + + return propData; + } + }]); + + var _JsonSchema = JsonSchema; + JsonSchema = Reflect.metadata('parameters', [[SchemaManager], [ElementRef]])(JsonSchema) || JsonSchema; + JsonSchema = RedocComponent({ + selector: 'json-schema', + template: '\n \n {{_displayType}}\n \n
    \n
    \n
    \n
    \n {{prop._name}}\n
    \n
    \n
    \n {{prop._displayType}} {{prop._displayFormat}}\n Required\n
    \n {{enumItem.val | json}} \n
    \n
    \n
    \n
    This field value determines the exact schema:
    \n
    \n
    \n
    \n \n \n
    \n
    \n
    \n \n \n \n \n \n \n
    \n
    \n ', + styles: ['\n .param-schema{padding-left:12.5px;border-left:1px solid #7D97CE}.param-wrap{position:relative}.param-schema:before{content:"";position:absolute;left:13.5px;top:20px;bottom:0;border-left:1px solid #7D97CE}.param-name{flex-grow:0;-ms-flex-grow:0;display:inline-block;font-size:14px;padding:10px 0 10px 0;font-weight:bold;box-sizing:border-box;line-height:20px;border-left:1px solid #7D97CE;white-space:nowrap;position:relative}.param-name-content{padding-right:25px;display:inline-block}.param-info{flex-grow:1;-ms-flex-grow:1;padding:10px 0;box-sizing:border-box;border-bottom:1px solid #ccc;display:inline-block}.param{display:flex;display:-ms-flexbox}.param-required{color:red;font-weight:bold;font-size:12px;line-height:20px;vertical-align:middle}.param-type{color:#999;font-size:12px;line-height:20px;vertical-align:middle;font-weight:bold}.param-type.array:before{content:"Array of ";color:#999}.param-type.string,.enum-value.string{color:rgba(0,80,0,0.7)}.param-type.integer,.param-type.number,.enum-value.number{color:rgba(74,139,179,0.8)}.param-type.object{color:rgba(0,50,159,0.7)}.param-type.boolean,.enum-value.boolean{color:firebrick}.param-type.with-hint{background-color:rgba(0,50,159,0.1);padding:0.2em 0;font-size:0.85em;border-radius:3px;cursor:help}.param-type.with-hint:before,.param-type.with-hint:after{content:"\\00a0"}.param-type-trivial{margin:10px 10px 0;display:inline-block}.param-name>span:before{content:"";display:inline-block;width:7px;height:7px;background-color:#7D97CE;margin:0 10px;vertical-align:middle}.param-name>span:after{content:"";position:absolute;border-top:1px solid #7D97CE;width:10px;left:0;top:20px}.param-wrap:first-of-type>.param>.param-name:before{content:"";display:block;position:absolute;left:-1px;top:0;border-left:2px solid #fff;height:20px}.param-wrap:last-of-type>.param>.param-name{position:static}.param-wrap:last-of-type>.param>.param-name:after{content:"";display:block;position:absolute;left:-1px;border-left:2px solid #fff;top:21px;background-color:white;bottom:0}.param-wrap:last-of-type>.param-schema{border-left-color:transparent}.param-schema .param-wrap:first-of-type .param-name:before{display:none !important}.param-enum{color:#666}.param-enum:before{content:"Values: {"}.param-enum:after{content:"}"}.param-enum>.enum-value:after{content:", "}.param-enum>.enum-value:last-of-type:after{content:none}:host{display:block}.params-wrap.params-array:before,.params-wrap.params-array:after{display:block;font-weight:bold;color:#999;font-size:12px;line-height:1.5}.params-wrap.params-array:after{content:"]"}.params-wrap.params-array:before{content:"Array [";padding-top:1em}.params-wrap.params-array{padding-left:10px}.param-schema.param-array:before{bottom:9px;width:10px;border-left-style:dashed;border-bottom:1px dashed #7D97CE}.params-wrap.params-array>.param-wrap:first-of-type>.param>.param-name:after{content:"";display:block;position:absolute;left:-1px;top:0;border-left:2px solid #fff;height:20px}.params-wrap>.param>.param-schema.param-array{border-left-color:transparent}.param.discriminator>div{padding-bottom:0;border-bottom:0}.discriminator-info{font-weight:bold}:host tabs{display:block;border-left:1px solid #7D97CE}:host tabs li{margin:0.2em 0.5em 0.2em 0;font-size:14px;border:0;color:white;padding:0 15px;border-radius:10px;background-color:#8A9094}:host tabs li:last-of-type{margin:0}:host tabs li.active{background-color:#00329F}tabs .params-wrap>.param-wrap:first-of-type .param-name{border-left:0}tabs .params-wrap>.param-wrap:first-of-type .param-name:before{display:none}\n '], + directives: [JsonSchema, Tabs, Tab], + inputs: ['isArray', 'final'] + })(JsonSchema) || JsonSchema; + return JsonSchema; + })(BaseComponent); + + _export('default', JsonSchema); + } + }; +}); +$__System.register('218', ['4', '11', '15', '16', '17', '18', '20', 'a', 'b', '1e', 'c'], function (_export) { + 'use strict'; + + var ApiInfo, SchemaSample, Method, ResponsesList, ResponsesSamples, MethodsList, SideMenu, ApiLogo, ParamsList, Redoc, JsonSchema, REDOC_COMPONENTS; + return { + setters: [function (_) { + ApiInfo = _['default']; + }, function (_6) { + SchemaSample = _6['default']; + }, function (_2) { + Method = _2['default']; + }, function (_4) { + ResponsesList = _4['default']; + }, function (_5) { + ResponsesSamples = _5['default']; + }, function (_3) { + MethodsList = _3['default']; + }, function (_7) { + SideMenu = _7['default']; + }, function (_a) { + ApiLogo = _a['default']; + }, function (_b) { + ParamsList = _b['default']; + }, function (_e) { + Redoc = _e['default']; + }, function (_c) { + JsonSchema = _c['default']; + }], + execute: function () { + REDOC_COMPONENTS = [ApiInfo, ApiLogo, JsonSchema, Method, MethodsList, ParamsList, Redoc, ResponsesList, ResponsesSamples, SchemaSample, SideMenu]; + + _export('ApiInfo', ApiInfo); + + _export('ApiLogo', ApiLogo); + + _export('JsonSchema', JsonSchema); + + _export('Method', Method); + + _export('MethodsList', MethodsList); + + _export('ParamsList', ParamsList); + + _export('Redoc', Redoc); + + _export('ResponsesList', ResponsesList); + + _export('ResponsesSamples', ResponsesSamples); + + _export('SchemaSample', SchemaSample); + + _export('SideMenu', SideMenu); + + _export('REDOC_COMPONENTS', REDOC_COMPONENTS); + } + }; +}); +$__System.register('1', ['218'], function (_export) { + 'use strict'; + + var Redoc, init; + return { + setters: [function (_) { + Redoc = _.Redoc; }], execute: function () { init = Redoc.init; @@ -57133,14 +56968,14 @@ $__System.register('1', ['11', '1c3'], function (_export) { _export('init', init); window.Redoc = Redoc; - enableProdMode(); Redoc.autoInit(); } }; }); +$__System.register('.tmp/lib/components/Redoc/redoc-loading-styles.css!github:systemjs/plugin-css@0.1.18', [], false, function() {}); $__System.register('npm:prismjs@1.3.0/themes/prism-dark.css!github:systemjs/plugin-css@0.1.18', [], false, function() {}); (function(c){if (typeof document == 'undefined') return; var d=document,a='appendChild',i='styleSheet',s=d.createElement('style');s.type='text/css';d.getElementsByTagName('head')[0][a](s);s[i]?s[i].cssText=c:s[a](d.createTextNode(c));}) -("code[class*=language-],pre[class*=language-]{color:#fff;text-shadow:0 -.1em .2em #000;font-family:Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace;direction:ltr;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}@media print{code[class*=language-],pre[class*=language-]{text-shadow:none}}:not(pre)>code[class*=language-],pre[class*=language-]{background:#4c3f33}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto;border:.3em solid #7a6651;border-radius:.5em;box-shadow:1px 1px .5em #000 inset}:not(pre)>code[class*=language-]{padding:.15em .2em .05em;border-radius:.3em;border:.13em solid #7a6651;box-shadow:1px 1px .3em -.1em #000 inset}.token.cdata,.token.comment,.token.doctype,.token.prolog{color:#997f66}.token.punctuation{opacity:.7}.namespace{opacity:.7}.token.boolean,.token.constant,.token.number,.token.property,.token.symbol,.token.tag{color:#d1939e}.token.attr-name,.token.builtin,.token.char,.token.inserted,.token.selector,.token.string{color:#bce051}.language-css .token.string,.style .token.string,.token.entity,.token.operator,.token.url,.token.variable{color:#f4b73d}.token.atrule,.token.attr-value,.token.keyword{color:#d1939e}.token.important,.token.regex{color:#e90}.token.bold,.token.important{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}.token.deleted{color:red}"); +("redoc.loading{position:relative;display:block;min-height:350px}@keyframes move{0%{transform:translateY(10px)}25%{transform:translateY(0)}50%{transform:translateY(10px)}75%{transform:translateY(20px)}100%{transform:translateY(10px)}}redoc.loading:before{content:\"Loading...\";font-size:28px;text-align:center;padding-top:40px;color:#3F5C9C;font-weight:700;display:block;position:absolute;top:0;bottom:0;left:0;right:0;background-color:#fff;z-index:9999;opacity:1;transition:all .6s ease-out;animation:2s move linear infinite}redoc.loading-remove:before{opacity:0}code[class*=language-],pre[class*=language-]{color:#fff;text-shadow:0 -.1em .2em #000;font-family:Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace;direction:ltr;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}@media print{code[class*=language-],pre[class*=language-]{text-shadow:none}}:not(pre)>code[class*=language-],pre[class*=language-]{background:#4c3f33}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto;border:.3em solid #7a6651;border-radius:.5em;box-shadow:1px 1px .5em #000 inset}:not(pre)>code[class*=language-]{padding:.15em .2em .05em;border-radius:.3em;border:.13em solid #7a6651;box-shadow:1px 1px .3em -.1em #000 inset}.token.cdata,.token.comment,.token.doctype,.token.prolog{color:#997f66}.token.punctuation{opacity:.7}.namespace{opacity:.7}.token.boolean,.token.constant,.token.number,.token.property,.token.symbol,.token.tag{color:#d1939e}.token.attr-name,.token.builtin,.token.char,.token.inserted,.token.selector,.token.string{color:#bce051}.language-css .token.string,.style .token.string,.token.entity,.token.operator,.token.url,.token.variable{color:#f4b73d}.token.atrule,.token.attr-value,.token.keyword{color:#d1939e}.token.important,.token.regex{color:#e90}.token.bold,.token.important{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}.token.deleted{color:red}"); }) (function(factory) { diff --git a/dist/redoc.js.map b/dist/redoc.js.map index 98184b77..4a45502a 100644 --- a/dist/redoc.js.map +++ b/dist/redoc.js.map @@ -1 +1 @@ -{"version":3,"sources":["zone-microtask.js","Reflect.ts","polyfill.js","../.tmp/lib/components/ApiInfo/api-info.js","../.tmp/lib/components/ApiLogo/api-logo.js","../.tmp/lib/components/ParamsList/params-list.js","../.tmp/lib/components/RequestSamples/request-samples.js","../.tmp/lib/components/Method/method.js","../.tmp/lib/components/MethodsList/methods-list.js","../.tmp/lib/common/components/StickySidebar/sticky-sidebar.js","../jspm_packages/npm/scrollparent@0.1.0/scrollparent.js","../jspm_packages/npm/scrollparent@0.1.0.js","../.tmp/lib/components/Redoc/redoc.js","../.tmp/lib/components/JsonSchema/json-schema-lazy.js","../.tmp/lib/common/components/Zippy/zippy.js","../.tmp/lib/options.js","../.tmp/lib/components/ResponsesList/responses-list.js","../.tmp/lib/utils/helpers.js","../.tmp/lib/components/ResponsesSamples/responses-samples.js","../jspm_packages/npm/json-schema-instantiator@0.3.0/src/instantiator.js","../jspm_packages/npm/json-schema-instantiator@0.3.0/index.js","../jspm_packages/npm/json-schema-instantiator@0.3.0.js","../.tmp/lib/utils/JsonFormatterPipe.js","../.tmp/lib/components/SchemaSample/schema-sample.js","../jspm_packages/npm/core-js@1.2.6/library/modules/core.is-iterable.js","../jspm_packages/npm/core-js@1.2.6/library/fn/is-iterable.js","../jspm_packages/npm/babel-runtime@5.8.34/core-js/is-iterable.js","../jspm_packages/npm/babel-runtime@5.8.34/helpers/sliced-to-array.js","../.tmp/lib/events.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/angular_entrypoint.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/platform/dom/events/key_events.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/platform/dom/events/hammer_common.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/platform/dom/events/hammer_gestures.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/platform/browser/generic_browser_adapter.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/platform/browser/browser_adapter.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/platform/browser/testability.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/profile/wtf_init.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/platform/browser/title.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/animate/css_animation_options.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/animate/animation.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/animate/css_animation_builder.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/facade/math.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/animate/browser_details.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/animate/animation_builder.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/platform/dom/util.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/platform/dom/dom_renderer.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/platform/dom/dom_tokens.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/platform/dom/shared_styles_host.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/platform/dom/events/dom_events.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/platform/dom/events/event_manager.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/platform/dom/debug/by.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/platform/dom/debug/debug_element_view_listener.js","../jspm_packages/npm/angular2@2.0.0-beta.0/platform/common_dom.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/facade/browser.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/platform/browser/tools/common_tools.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/platform/browser/tools/tools.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/platform/browser_common.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/compiler/runtime_compiler.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/compiler/template_compiler.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/compiler/template_parser.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/compiler/html_ast.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/compiler/html_lexer.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/compiler/parse_util.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/compiler/html_parser.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/compiler/template_preparser.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/compiler/template_normalizer.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/compiler/selector.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/compiler/directive_metadata.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/compiler/runtime_metadata.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/compiler/change_definition_factory.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/transform/template_compiler/change_detector_codegen.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/compiler/change_detector_compiler.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/compiler/shadow_css.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/compiler/style_url_resolver.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/render/view.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/render/view_factory.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/compiler/style_compiler.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/compiler/template_ast.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/compiler/source_module.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/compiler/util.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/compiler/command_compiler.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/platform/dom/dom_adapter.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/compiler/html_tags.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/compiler/schema/element_schema_registry.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/compiler/schema/dom_element_schema_registry.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/compiler/url_resolver.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/compiler/compiler.js","../jspm_packages/npm/angular2@2.0.0-beta.0/compiler.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/compiler/xhr.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/platform/browser/xhr_impl.js","../jspm_packages/npm/angular2@2.0.0-beta.0/platform/browser.js","../.tmp/lib/components/SideMenu/side-menu.js","../jspm_packages/npm/core-js@1.2.6/library/modules/es6.array.from.js","../jspm_packages/npm/core-js@1.2.6/library/fn/array/from.js","../jspm_packages/npm/babel-runtime@5.8.34/core-js/array/from.js","../jspm_packages/npm/babel-runtime@5.8.34/helpers/to-consumable-array.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.object-assign.js","../jspm_packages/npm/core-js@1.2.6/library/modules/es6.object.assign.js","../jspm_packages/npm/core-js@1.2.6/library/fn/object/assign.js","../jspm_packages/npm/babel-runtime@5.8.34/core-js/object/assign.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.same-value.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.species-constructor.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.invoke.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.html.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.dom-create.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.task.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.microtask.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.iter-detect.js","../jspm_packages/npm/core-js@1.2.6/library/modules/es6.promise.js","../jspm_packages/npm/core-js@1.2.6/library/fn/promise.js","../jspm_packages/npm/babel-runtime@5.8.34/core-js/promise.js","../jspm_packages/npm/core-js@1.2.6/library/modules/core.get-iterator.js","../jspm_packages/npm/core-js@1.2.6/library/fn/get-iterator.js","../jspm_packages/npm/babel-runtime@5.8.34/core-js/get-iterator.js","../jspm_packages/npm/core-js@1.2.6/library/modules/es6.map.js","../jspm_packages/npm/core-js@1.2.6/library/modules/es7.map.to-json.js","../jspm_packages/npm/core-js@1.2.6/library/fn/map.js","../jspm_packages/npm/babel-runtime@5.8.34/core-js/map.js","../jspm_packages/npm/z-schema@3.16.1/src/Polyfills.js","../jspm_packages/npm/z-schema@3.16.1/src/SchemaCache.js","../jspm_packages/npm/z-schema@3.16.1/src/SchemaCompilation.js","../jspm_packages/npm/validator@4.5.0/validator.js","../jspm_packages/npm/validator@4.5.0.js","../jspm_packages/npm/z-schema@3.16.1/src/FormatValidators.js","../jspm_packages/npm/z-schema@3.16.1/src/JsonValidation.js","../jspm_packages/npm/lodash._baseget@3.7.2/index.js","../jspm_packages/npm/lodash._baseget@3.7.2.js","../jspm_packages/npm/lodash.isarray@3.0.4/index.js","../jspm_packages/npm/lodash.isarray@3.0.4.js","../jspm_packages/npm/lodash._topath@3.8.1/index.js","../jspm_packages/npm/lodash._topath@3.8.1.js","../jspm_packages/npm/lodash.get@3.7.0/index.js","../jspm_packages/npm/lodash.get@3.7.0.js","../jspm_packages/npm/z-schema@3.16.1/src/Errors.js","../jspm_packages/npm/z-schema@3.16.1/src/Report.js","../jspm_packages/npm/z-schema@3.16.1/src/SchemaValidation.js","../jspm_packages/npm/z-schema@3.16.1/src/Utils.js","../jspm_packages/npm/z-schema@3.16.1/src/schemas/schema.json","../jspm_packages/npm/z-schema@3.16.1/src/schemas/hyper-schema.json","../jspm_packages/npm/z-schema@3.16.1/src/ZSchema.js","../jspm_packages/npm/z-schema@3.16.1.js","../jspm_packages/npm/swagger-schema-official@2.0.0-bab6bed/schema.json","../jspm_packages/npm/swagger-parser@3.4.0/lib/validate-schema.js","../jspm_packages/npm/swagger-methods@1.0.0/lib/index.js","../jspm_packages/npm/swagger-methods@1.0.0.js","../jspm_packages/npm/swagger-parser@3.4.0/lib/validate-spec.js","../jspm_packages/npm/swagger-parser@3.4.0/lib/util.js","../jspm_packages/npm/swagger-parser@3.4.0/lib/options.js","../jspm_packages/npm/swagger-parser@3.4.0/lib/promise.js","../jspm_packages/npm/json-schema-ref-parser@2.2.0/lib/options.js","../jspm_packages/npm/json-schema-ref-parser@2.2.0/lib/refs.js","../jspm_packages/github/jspm/nodelibs-fs@0.1.2/index.js","../jspm_packages/github/jspm/nodelibs-fs@0.1.2.js","../jspm_packages/npm/readable-stream@1.1.13/readable.js","../jspm_packages/npm/readable-stream@1.1.13/writable.js","../jspm_packages/npm/readable-stream@1.1.13/duplex.js","../jspm_packages/npm/readable-stream@1.1.13/transform.js","../jspm_packages/npm/isarray@0.0.1/index.js","../jspm_packages/npm/isarray@0.0.1.js","../jspm_packages/npm/events@1.0.2/events.js","../jspm_packages/npm/events@1.0.2.js","../jspm_packages/github/jspm/nodelibs-events@0.1.1/index.js","../jspm_packages/github/jspm/nodelibs-events@0.1.1.js","../jspm_packages/npm/string_decoder@0.10.31/index.js","../jspm_packages/npm/string_decoder@0.10.31.js","../jspm_packages/npm/readable-stream@1.1.13/lib/_stream_readable.js","../jspm_packages/npm/readable-stream@1.1.13/lib/_stream_writable.js","../jspm_packages/npm/readable-stream@1.1.13/lib/_stream_duplex.js","../jspm_packages/npm/readable-stream@1.1.13/lib/_stream_transform.js","../jspm_packages/npm/core-util-is@1.0.2/lib/util.js","../jspm_packages/npm/core-util-is@1.0.2.js","../jspm_packages/npm/readable-stream@1.1.13/lib/_stream_passthrough.js","../jspm_packages/npm/readable-stream@1.1.13/passthrough.js","../jspm_packages/npm/stream-browserify@1.0.0/index.js","../jspm_packages/npm/stream-browserify@1.0.0.js","../jspm_packages/github/jspm/nodelibs-stream@0.1.0/index.js","../jspm_packages/github/jspm/nodelibs-stream@0.1.0.js","../jspm_packages/github/jspm/nodelibs-http@1.7.1/lib/response.js","../jspm_packages/npm/Base64@0.2.1/base64.js","../jspm_packages/npm/Base64@0.2.1.js","../jspm_packages/github/jspm/nodelibs-http@1.7.1/lib/request.js","../jspm_packages/github/jspm/nodelibs-http@1.7.1/index.js","../jspm_packages/github/jspm/nodelibs-http@1.7.1.js","../jspm_packages/npm/https-browserify@0.0.0/index.js","../jspm_packages/npm/https-browserify@0.0.0.js","../jspm_packages/github/jspm/nodelibs-https@0.1.0/index.js","../jspm_packages/github/jspm/nodelibs-https@0.1.0.js","../jspm_packages/npm/json-schema-ref-parser@2.2.0/lib/download.js","../jspm_packages/npm/json-schema-ref-parser@2.2.0/lib/parse.js","../jspm_packages/npm/es6-promise@3.0.2/dist/es6-promise.js","../jspm_packages/npm/es6-promise@3.0.2.js","../jspm_packages/npm/json-schema-ref-parser@2.2.0/lib/promise.js","../jspm_packages/npm/json-schema-ref-parser@2.2.0/lib/read.js","../jspm_packages/npm/json-schema-ref-parser@2.2.0/lib/resolve.js","../jspm_packages/npm/json-schema-ref-parser@2.2.0/lib/bundle.js","../jspm_packages/npm/call-me-maybe@1.0.1/index.js","../jspm_packages/npm/call-me-maybe@1.0.1.js","../jspm_packages/npm/js-yaml@3.5.2/lib/js-yaml/mark.js","../jspm_packages/npm/js-yaml@3.5.2/lib/js-yaml/loader.js","../jspm_packages/npm/js-yaml@3.5.2/lib/js-yaml/dumper.js","../jspm_packages/npm/js-yaml@3.5.2/lib/js-yaml/schema.js","../jspm_packages/npm/js-yaml@3.5.2/lib/js-yaml/type/str.js","../jspm_packages/npm/js-yaml@3.5.2/lib/js-yaml/type/seq.js","../jspm_packages/npm/js-yaml@3.5.2/lib/js-yaml/type/map.js","../jspm_packages/npm/js-yaml@3.5.2/lib/js-yaml/schema/failsafe.js","../jspm_packages/npm/js-yaml@3.5.2/lib/js-yaml/type/null.js","../jspm_packages/npm/js-yaml@3.5.2/lib/js-yaml/type/bool.js","../jspm_packages/npm/js-yaml@3.5.2/lib/js-yaml/type/int.js","../jspm_packages/npm/js-yaml@3.5.2/lib/js-yaml/common.js","../jspm_packages/npm/js-yaml@3.5.2/lib/js-yaml/type/float.js","../jspm_packages/npm/js-yaml@3.5.2/lib/js-yaml/schema/json.js","../jspm_packages/npm/js-yaml@3.5.2/lib/js-yaml/schema/core.js","../jspm_packages/npm/js-yaml@3.5.2/lib/js-yaml/type/timestamp.js","../jspm_packages/npm/js-yaml@3.5.2/lib/js-yaml/type/merge.js","../jspm_packages/npm/js-yaml@3.5.2/lib/js-yaml/type/binary.js","../jspm_packages/npm/js-yaml@3.5.2/lib/js-yaml/type/omap.js","../jspm_packages/npm/js-yaml@3.5.2/lib/js-yaml/type/pairs.js","../jspm_packages/npm/js-yaml@3.5.2/lib/js-yaml/type/set.js","../jspm_packages/npm/js-yaml@3.5.2/lib/js-yaml/schema/default_safe.js","../jspm_packages/npm/js-yaml@3.5.2/lib/js-yaml/type/js/undefined.js","../jspm_packages/npm/js-yaml@3.5.2/lib/js-yaml/type/js/regexp.js","../jspm_packages/npm/js-yaml@3.5.2/lib/js-yaml/type.js","../jspm_packages/npm/js-yaml@3.5.2/lib/js-yaml/type/js/function.js","../jspm_packages/npm/js-yaml@3.5.2/lib/js-yaml/schema/default_full.js","../jspm_packages/npm/js-yaml@3.5.2/lib/js-yaml/exception.js","../jspm_packages/npm/js-yaml@3.5.2/lib/js-yaml.js","../jspm_packages/npm/js-yaml@3.5.2/index.js","../jspm_packages/npm/js-yaml@3.5.2.js","../jspm_packages/npm/json-schema-ref-parser@2.2.0/lib/yaml.js","../jspm_packages/npm/json-schema-ref-parser@2.2.0/lib/index.js","../jspm_packages/npm/json-schema-ref-parser@2.2.0.js","../jspm_packages/npm/json-schema-ref-parser@2.2.0/lib/ref.js","../jspm_packages/npm/base64-js@0.0.8/lib/b64.js","../jspm_packages/npm/base64-js@0.0.8.js","../jspm_packages/npm/ieee754@1.1.6/index.js","../jspm_packages/npm/ieee754@1.1.6.js","../jspm_packages/npm/isarray@1.0.0/index.js","../jspm_packages/npm/isarray@1.0.0.js","../jspm_packages/npm/buffer@3.6.0/index.js","../jspm_packages/npm/buffer@3.6.0.js","../jspm_packages/github/jspm/nodelibs-buffer@0.1.0/index.js","../jspm_packages/github/jspm/nodelibs-buffer@0.1.0.js","../jspm_packages/npm/json-schema-ref-parser@2.2.0/lib/pointer.js","../jspm_packages/npm/ms@0.7.1/index.js","../jspm_packages/npm/ms@0.7.1.js","../jspm_packages/npm/debug@2.2.0/debug.js","../jspm_packages/npm/debug@2.2.0/browser.js","../jspm_packages/npm/debug@2.2.0.js","../jspm_packages/npm/json-schema-ref-parser@2.2.0/lib/path.js","../jspm_packages/npm/json-schema-ref-parser@2.2.0/lib/util.js","../jspm_packages/npm/util@0.10.3/support/isBufferBrowser.js","../jspm_packages/npm/inherits@2.0.1/inherits_browser.js","../jspm_packages/npm/inherits@2.0.1.js","../jspm_packages/npm/util@0.10.3/util.js","../jspm_packages/npm/util@0.10.3.js","../jspm_packages/github/jspm/nodelibs-util@0.1.0/index.js","../jspm_packages/github/jspm/nodelibs-util@0.1.0.js","../jspm_packages/npm/ono@2.0.1/lib/index.js","../jspm_packages/npm/ono@2.0.1.js","../jspm_packages/npm/punycode@1.3.2/punycode.js","../jspm_packages/npm/punycode@1.3.2.js","../jspm_packages/npm/querystring@0.2.0/decode.js","../jspm_packages/npm/querystring@0.2.0/encode.js","../jspm_packages/npm/querystring@0.2.0/index.js","../jspm_packages/npm/querystring@0.2.0.js","../jspm_packages/npm/url@0.10.3/url.js","../jspm_packages/npm/url@0.10.3.js","../jspm_packages/github/jspm/nodelibs-url@0.1.0/index.js","../jspm_packages/github/jspm/nodelibs-url@0.1.0.js","../jspm_packages/npm/json-schema-ref-parser@2.2.0/lib/dereference.js","../jspm_packages/npm/swagger-parser@3.4.0/lib/index.js","../jspm_packages/npm/swagger-parser@3.4.0.js","../jspm_packages/npm/core-js@1.2.6/library/modules/es6.object.to-string.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.string-at.js","../jspm_packages/npm/core-js@1.2.6/library/modules/es6.string.iterator.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.add-to-unscopables.js","../jspm_packages/npm/core-js@1.2.6/library/modules/es6.array.iterator.js","../jspm_packages/npm/core-js@1.2.6/library/modules/web.dom.iterable.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.library.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.iter-create.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.iter-define.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.iter-step.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.set-species.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.collection-strong.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.property-desc.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.hide.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.redefine.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.redefine-all.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.strict-new.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.has.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.set-to-string-tag.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.descriptors.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.collection.js","../jspm_packages/npm/core-js@1.2.6/library/modules/es6.set.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.iter-call.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.is-array-iter.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.to-integer.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.to-length.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.iterators.js","../jspm_packages/npm/core-js@1.2.6/library/modules/core.get-iterator-method.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.for-of.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.shared.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.uid.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.wks.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.classof.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.collection-to-json.js","../jspm_packages/npm/core-js@1.2.6/library/modules/es7.set.to-json.js","../jspm_packages/npm/core-js@1.2.6/library/fn/set.js","../jspm_packages/npm/babel-runtime@5.8.34/core-js/set.js","../.tmp/lib/utils/swagger-defs.js","../.tmp/lib/utils/SchemaManager.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.to-object.js","../jspm_packages/npm/core-js@1.2.6/library/modules/es6.object.keys.js","../jspm_packages/npm/core-js@1.2.6/library/fn/object/keys.js","../jspm_packages/npm/babel-runtime@5.8.34/core-js/object/keys.js","../jspm_packages/npm/marked@0.3.5/lib/marked.js","../jspm_packages/npm/marked@0.3.5.js","../jspm_packages/npm/prismjs@1.3.0/prism.js","../jspm_packages/npm/prismjs@1.3.0.js","../jspm_packages/npm/prismjs@1.3.0/components/prism-actionscript.js","../jspm_packages/npm/prismjs@1.3.0/components/prism-c.js","../jspm_packages/npm/prismjs@1.3.0/components/prism-cpp.js","../jspm_packages/npm/prismjs@1.3.0/components/prism-csharp.js","../jspm_packages/npm/prismjs@1.3.0/components/prism-php.js","../jspm_packages/npm/prismjs@1.3.0/components/prism-coffeescript.js","../jspm_packages/npm/prismjs@1.3.0/components/prism-go.js","../jspm_packages/npm/prismjs@1.3.0/components/prism-haskell.js","../jspm_packages/npm/prismjs@1.3.0/components/prism-java.js","../jspm_packages/npm/prismjs@1.3.0/components/prism-lua.js","../jspm_packages/npm/prismjs@1.3.0/components/prism-matlab.js","../jspm_packages/npm/prismjs@1.3.0/components/prism-objectivec.js","../jspm_packages/npm/prismjs@1.3.0/components/prism-perl.js","../jspm_packages/npm/prismjs@1.3.0/components/prism-python.js","../jspm_packages/npm/prismjs@1.3.0/components/prism-r.js","../jspm_packages/npm/prismjs@1.3.0/components/prism-ruby.js","../jspm_packages/npm/prismjs@1.3.0/components/prism-bash.js","../jspm_packages/npm/prismjs@1.3.0/components/prism-swift.js","../jspm_packages/npm/prismjs@1.3.0/components/prism-vim.js","../.tmp/lib/utils/pipes.js","../.tmp/lib/components/base.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/common/pipes/async_pipe.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/common/pipes/uppercase_pipe.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/common/pipes/lowercase_pipe.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/common/pipes/json_pipe.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/common/pipes/slice_pipe.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/common/pipes/date_pipe.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/facade/intl.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/common/pipes/invalid_pipe_argument_exception.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/common/pipes/number_pipe.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/common/pipes.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/common/forms/directives/ng_control_name.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/common/forms/directives/ng_form_control.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/common/forms/directives/ng_model.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/common/forms/directives/ng_control_group.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/common/forms/directives/ng_form_model.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/common/forms/directives/control_container.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/common/forms/directives/normalize_validator.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/common/forms/directives/shared.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/common/forms/directives/ng_form.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/common/forms/directives/default_value_accessor.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/common/forms/directives/checkbox_value_accessor.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/common/forms/directives/number_value_accessor.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/common/forms/directives/ng_control_status.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/common/forms/directives/control_value_accessor.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/common/forms/directives/select_control_value_accessor.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/common/forms/directives/abstract_control_directive.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/common/forms/directives/ng_control.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/common/forms/directives.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/common/forms/validators.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/common/forms/directives/validators.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/common/forms/model.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/common/forms/form_builder.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/common/forms.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/common/directives/observable_list_diff.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/common/directives/ng_class.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/common/directives/ng_for.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/common/directives/ng_if.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/common/directives/ng_style.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/common/directives/ng_switch.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/common/directives/core_directives.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/common/directives.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/common/common_directives.js","../jspm_packages/npm/angular2@2.0.0-beta.0/common.js","../.tmp/lib/common/components/Tabs/tabs.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.cof.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.iobject.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.defined.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.to-iobject.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.fails.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.object-sap.js","../jspm_packages/npm/core-js@1.2.6/library/modules/es6.object.get-own-property-descriptor.js","../jspm_packages/npm/core-js@1.2.6/library/fn/object/get-own-property-descriptor.js","../jspm_packages/npm/babel-runtime@5.8.34/core-js/object/get-own-property-descriptor.js","../jspm_packages/npm/babel-runtime@5.8.34/helpers/get.js","../jspm_packages/npm/core-js@1.2.6/library/fn/object/create.js","../jspm_packages/npm/babel-runtime@5.8.34/core-js/object/create.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.global.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.export.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.is-object.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.an-object.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.a-function.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.ctx.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.set-proto.js","../jspm_packages/npm/core-js@1.2.6/library/modules/es6.object.set-prototype-of.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.core.js","../jspm_packages/npm/core-js@1.2.6/library/fn/object/set-prototype-of.js","../jspm_packages/npm/babel-runtime@5.8.34/core-js/object/set-prototype-of.js","../jspm_packages/npm/babel-runtime@5.8.34/helpers/inherits.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.js","../jspm_packages/npm/core-js@1.2.6/library/fn/object/define-property.js","../jspm_packages/npm/babel-runtime@5.8.34/core-js/object/define-property.js","../jspm_packages/npm/babel-runtime@5.8.34/helpers/create-class.js","../jspm_packages/npm/babel-runtime@5.8.34/helpers/class-call-check.js","../jspm_packages/npm/foreach@2.0.5/index.js","../jspm_packages/npm/foreach@2.0.5.js","../jspm_packages/npm/json-pointer@0.3.0/index.js","../jspm_packages/npm/json-pointer@0.3.0.js","../.tmp/lib/utils/JsonPointer.js","../.tmp/lib/components/JsonSchema/json-schema.js","../.tmp/lib/components/index.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/util.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/prod_mode.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/facade/facade.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/application_ref.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/zone.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/render.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/linker.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/debug/debug_element.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/console.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/zone/ng_zone.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/testability/testability.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/platform_common_providers.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/linker/compiler.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/linker/view_manager_utils.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/linker/view_pool.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/linker/view_listener.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/change_detection/pipes.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/pipes/pipes.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/render/util.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/linker/view.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/linker/element_binder.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/linker/view_container_ref.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/linker/element_ref.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/linker/view_ref.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/linker/template_ref.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/linker/directive_lifecycle_reflector.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/facade/promise.js","../jspm_packages/npm/rxjs@5.0.0-beta.0/subject/SubjectSubscription.js","../jspm_packages/npm/rxjs@5.0.0-beta.0/Subject.js","../jspm_packages/npm/rxjs@5.0.0-beta.0/scheduler/QueueAction.js","../jspm_packages/npm/rxjs@5.0.0-beta.0/scheduler/FutureAction.js","../jspm_packages/npm/rxjs@5.0.0-beta.0/scheduler/QueueScheduler.js","../jspm_packages/npm/rxjs@5.0.0-beta.0/scheduler/queue.js","../jspm_packages/npm/rxjs@5.0.0-beta.0/observable/fromPromise.js","../jspm_packages/npm/rxjs@5.0.0-beta.0/operator/toPromise.js","../jspm_packages/npm/rxjs@5.0.0-beta.0/util/throwError.js","../jspm_packages/npm/rxjs@5.0.0-beta.0/util/tryOrOnError.js","../jspm_packages/npm/rxjs@5.0.0-beta.0/util/noop.js","../jspm_packages/npm/rxjs@5.0.0-beta.0/Subscription.js","../jspm_packages/npm/rxjs@5.0.0-beta.0/Subscriber.js","../jspm_packages/npm/rxjs@5.0.0-beta.0/util/root.js","../jspm_packages/npm/rxjs@5.0.0-beta.0/util/SymbolShim.js","../jspm_packages/npm/rxjs@5.0.0-beta.0/symbol/rxSubscriber.js","../jspm_packages/npm/rxjs@5.0.0-beta.0/Observable.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/facade/async.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/linker/query_list.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/linker/event_config.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/pipes/pipe_provider.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/linker/interfaces.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/linker/element_injector.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/linker/directive_resolver.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/linker/view_resolver.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/linker/pipe_resolver.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/platform_directives_and_pipes.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/render/api.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/metadata/di.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/change_detection/differs/iterable_differs.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/change_detection/differs/default_iterable_differ.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/change_detection/differs/keyvalue_differs.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/change_detection/differs/default_keyvalue_differ.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/change_detection/parser/lexer.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/change_detection/parser/parser.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/change_detection/parser/locals.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/change_detection/interfaces.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/change_detection/codegen_name_util.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/change_detection/codegen_logic_util.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/change_detection/codegen_facade.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/change_detection/parser/ast.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/change_detection/event_binding.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/change_detection/coalesce.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/change_detection/proto_change_detector.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/change_detection/change_detection_jit_generator.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/change_detection/jit_proto_change_detector.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/change_detection/exceptions.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/profile/wtf_impl.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/profile/profile.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/change_detection/observable_facade.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/change_detection/abstract_change_detector.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/change_detection/proto_record.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/change_detection/dynamic_change_detector.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/change_detection/change_detector_ref.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/change_detection/pipe_lifecycle_reflector.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/change_detection/binding_record.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/change_detection/constants.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/change_detection/directive_record.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/change_detection/change_detection_util.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/change_detection/change_detection.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/change_detection.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/metadata/directives.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/metadata/view.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/metadata.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/linker/template_commands.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/util/decorators.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/di/decorators.js","../jspm_packages/npm/process@0.11.2/browser.js","../jspm_packages/npm/process@0.11.2.js","../jspm_packages/github/jspm/nodelibs-process@0.1.2/index.js","../jspm_packages/github/jspm/nodelibs-process@0.1.2.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/di/injector.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/di/metadata.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/di/provider.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/di/type_literal.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/di/forward_ref.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/di/key.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/di/exceptions.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/di/opaque_token.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/di.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/application_tokens.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/linker/proto_view_factory.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/linker/view_manager.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/linker/dynamic_component_loader.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/application_common_providers.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/reflection/reflector.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/facade/lang.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/facade/collection.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/facade/exception_handler.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/facade/exceptions.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/reflection/reflection_capabilities.js","../jspm_packages/npm/angular2@2.0.0-beta.0/src/core/reflection/reflection.js","../jspm_packages/npm/angular2@2.0.0-beta.0/core.js","../.tmp/lib/index.js"],"names":["Reflect","Reflect.decorate","Reflect.metadata","Reflect.metadata.decorator","Reflect.defineMetadata","Reflect.hasMetadata","Reflect.hasOwnMetadata","Reflect.getMetadata","Reflect.getOwnMetadata","Reflect.getMetadataKeys","Reflect.getOwnMetadataKeys","Reflect.deleteMetadata","Reflect.DecorateConstructor","Reflect.DecoratePropertyWithDescriptor","Reflect.DecoratePropertyWithoutDescriptor","Reflect.GetOrCreateMetadataMap","Reflect.OrdinaryHasMetadata","Reflect.OrdinaryHasOwnMetadata","Reflect.OrdinaryGetMetadata","Reflect.OrdinaryGetOwnMetadata","Reflect.OrdinaryDefineOwnMetadata","Reflect.OrdinaryMetadataKeys","Reflect.OrdinaryOwnMetadataKeys","Reflect.IsUndefined","Reflect.IsArray","Reflect.IsObject","Reflect.IsConstructor","Reflect.IsSymbol","Reflect.ToPropertyKey","Reflect.GetPrototypeOf","Reflect.CreateMapPolyfill","Reflect.CreateMapPolyfill.Map","Reflect.CreateMapPolyfill.size","Reflect.CreateMapPolyfill.has","Reflect.CreateMapPolyfill.get","Reflect.CreateMapPolyfill.set","Reflect.CreateMapPolyfill.delete","Reflect.CreateMapPolyfill.clear","Reflect.CreateMapPolyfill.forEach","Reflect.CreateMapPolyfill._find","Reflect.CreateSetPolyfill","Reflect.CreateSetPolyfill.Set","Reflect.CreateSetPolyfill.size","Reflect.CreateSetPolyfill.has","Reflect.CreateSetPolyfill.add","Reflect.CreateSetPolyfill.delete","Reflect.CreateSetPolyfill.clear","Reflect.CreateSetPolyfill.forEach","Reflect.CreateWeakMapPolyfill","Reflect.CreateWeakMapPolyfill.WeakMap","Reflect.CreateWeakMapPolyfill.has","Reflect.CreateWeakMapPolyfill.get","Reflect.CreateWeakMapPolyfill.set","Reflect.CreateWeakMapPolyfill.delete","Reflect.CreateWeakMapPolyfill.clear","Reflect.CreateWeakMapPolyfill.FillRandomBytes","Reflect.CreateWeakMapPolyfill.GenRandomBytes","Reflect.CreateWeakMapPolyfill.CreateUUID","Reflect.CreateWeakMapPolyfill.CreateUniqueKey","Reflect.CreateWeakMapPolyfill.GetOrCreateWeakMapTable"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACzlEA,AAcA;;;;;;;;;;;;;gFADgF;AAChF,YAAY,CAAC;AAEb,IAAO,OAAO,CAg8Cb;AAh8CD,WAAO,OAAO,EAAC,CAAC;IAOZA,AACAA,wD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CA,CAACA,WAAWA,CAACA,SAASA,CAACA,CAACA,CAACA,CAACA;YAC/BA,SAASA,GAAGA,aAAaA,CAACA,SAASA,CAACA,CAACA;QACzCA,CAACA;QAEDA,MAAMA,CAACA,uBAAuBA,CAACA,MAAMA,EAAEA,SAASA,CAACA,CAACA;IACtDA,CAACA;IATeV,0BAAkBA,qBASjCA,CAAAA;IAkDDA,AAkCAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QADIA;4BAC2BA,WAAgBA,EAAEA,MAAcA,EAAEA,SAA2BA;QACxFW,EAAEA,CAACA,CAACA,CAACA,QAAQA,CAACA,MAAMA,CAACA,CAACA,CAACA,CAACA;YACpBA,MAAMA,IAAIA,SAASA,EAAEA,CAACA;QAC1BA,CAACA;QACDA,IAAIA,CAACA,EAAEA,CAACA,CAACA,CAACA,WAAWA,CAACA,SAASA,CAACA,CAACA,CAACA,CAACA;YAC/BA,SAASA,GAAGA,aAAaA,CAACA,SAASA,CAACA,CAACA;QACzCA,CAACA;QAEDA,AACAA,4GAD4GA;YACxGA,WAAWA,GAAGA,sBAAsBA,CAACA,MAAMA,EAAEA,SAASA,EAAaA,KAAKA,CAACA,CAACA;QAC9EA,EAAEA,CAACA,CAACA,WAAWA,CAACA,WAAWA,CAACA,CAACA,CAACA,CAACA;YAC3BA,MAAMA,CAACA,KAAKA,CAACA;QACjBA,CAACA;QAEDA,EAAEA,CAACA,CAACA,CAACA,WAAWA,CAACA,MAAMA,CAACA,WAAWA,CAACA,CAACA,CAACA,CAACA;YACnCA,MAAMA,CAACA,KAAKA,CAACA;QACjBA,CAACA;QAEDA,EAAEA,CAACA,CAACA,WAAWA,CAACA,IAAIA,GAAGA,CAACA,CAACA,CAACA,CAACA;YACvBA,MAAMA,CAACA,IAAIA,CAACA;QAChBA,CAACA;QAEDA,IAAIA,cAAcA,GAAGA,YAAYA,CAACA,GAAGA,CAACA,MAAMA,CAACA,CAACA;QAC9CA,cAAcA,CAACA,MAAMA,CAACA,SAASA,CAACA,CAACA;QACjCA,EAAEA,CAACA,CAACA,cAAcA,CAACA,IAAIA,GAAGA,CAACA,CAA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ACh9CD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAC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AACI;AACA;AACJ;AACE;AACA;EACF;AAPA;AACI;AAAa;AAOjB;ACRA;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AACA;AAHA;AACI;AAAa;AAGjB;ACJA;AAAA;AACI;AAAmB;AACnB;AADJ;AAAmB;AAAsD;AAAe;AADxF;AACI;AAAa;AAA0E;ACD3F;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AACE;AACI;AACF;AACA;AACE;AAAK;AACT;AAEA;AACA;MACF;AACE;AACE;AACE;AAAc;AAEhB;AACE;AAAQ;AACZ;AACF;IAEF;AAAA;AAEE;AACE;MACF;AACE;MACF;AACE;MACF;AAAA;EAEJ;AACA;AAzCA;AACI;AAAa;AAyCjB;;AC1CA,cAAY,CAAC;;oBAIT,aAAa,EACb,WAAW,EACJ,WAAW;;;uBAJd,YAAY;;;AAEhB,mBAAa,GAAG,IAAI,YAAY,EAAE;AAClC,iBAAW,GAAG,IAAI,YAAY,EAAE;AACzB,iBAAW,GAAG;AACvB,oBAAY,EAAE,aAAa;AAC3B,8BAAsB,EAAE,WAAW;OACpC;;;;;;ACTD;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACA;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;IAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACE;AACE;MACF;AAAA;AAEA;IACF;AACA;EACF;AA5BA;AACI;AAAa;AA4BjB;AC7BA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACA;AACE;AACE;AACE;AAAW;AAEb;MACF;AAAA;IAEF;AACA;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;IAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;MACF;AACA;AACE;MACF;AACA;AACE;MACF;AACA;AACE;MACF;AAAA;AAEF;AACE;AACA;AACE;MACF;AAAA;AAEE;MACF;AACA;AACE;AACA;AACA;AACE;QACF;MACF;AACA;AACE;AACA;AACA;AACE;QACF;AAAA;AAEA;AACA;AACE;AACE;AACA;UACF;AAAA;AAEF;AACA;AACE;QACF;AAAA;AAEA;AACA;AACA;MACF;AACA;AACE;AACA;AACA;AACA;AACE;QACF;AACE;QACF;AAAA;AAEE;AACE;AACA;AACE;YACF;AAAA;AACF;AAEF;AACA;MACF;AACA;AACE;AACE;AACE;AACE;YACF;UACF;AAAA;MAEJ;AACA;AACE;AACE;AACE;AAAe;AAEf;AADK;MAGX;AACA;AACA;IACF;AACA;EACF;AA/HA;AACI;AAAa;AA+HjB;AChIA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACA;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAU;AAEZ;AACE;AACA;AACE;IACF;AAAA;AAEE;AACA;IACF;AACA;EACF;AACA;AAvDA;AACI;AAAa;AAuDjB;ACxDA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACA;AACE;AACA;AACE;IACF;AAAA;AAEE;AACE;AAAY;AAEZ;MACF;AAAA;IAEF;AACA;AACE;AACA;AACA;AACE;AACA;AACA;AACA;AACE;AACE;UACF;QACF;MACF;IACF;AACA;AACA;EACF;AACA;AA7DA;AACI;AAAa;AA6DjB;AC9DA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACE;AACA;AACA;AACA;AACA;AACE;AACA;AACE;QACF;AACE;AACA;AACE;AACE;AACA;YACF;AAAA;AACF;AACF;AAEE;AACA;AACA;AACA;AAA0B;AAE5B;AACE;AACE;UACF;AAAA;MAEJ;AACE;AACA;MACF;AAAA;AACF;AAEE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;EACF;AACA;AA7EA;AACI;AAAa;AA6EjB;AC9EA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACA;AACA;AAAqB;AAEvB;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAU;AAEZ;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAgB;AAElB;AACE;AACA;AACE;IACF;AAAA;AAEE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;IACF;AACA;AACE;AACE;AACA;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACE;MACF;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACA;IACF;AACA;AACE;AACA;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACA;AACE;MACF;AAAA;IAEF;AACA;AACE;AACE;MACF;AAAA;AAEF;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACE;MACF;AAAA;IAEF;AACA;AACE;IACF;AACA;AACE;AACE;MACF;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACA;IACF;AACA;AACE;AACE;MACF;AAAA;IAEF;AACA;AACE;AACE;MACF;AAAA;IAEF;AACA;AACE;AACE;MACF;AAAA;IAEF;AACA;AACE;AACE;MACF;AAAA;AAEA;AACA;IACF;AACA;AACE;AACE;MACF;AAAA;AAEA;AACA;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACE;MACF;AAAA;AAEA;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACA;AACE;AACA;MACF;AAAA;IAEF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACE;MACF;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AAAQ;MAEZ;AAAA;AAEF;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACE;AACE;QACF;AACE;QACF;AACE;QACF;AAAA;AACF;IAEF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACE;MACF;AAAA;IAEF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACE;AACA;AACE;QACF;AAAA;AAEE;AACA;AACE;UACF;AAAA;AACF;AACF;AAEE;MACF;AAAA;IAEF;AACA;AACE;AACE;MACF;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACE;MACF;AAAA;IAEF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACE;MACF;AACE;MACF;AAAA;AAEF;EACF;AACA;AACA;AACA;AACE;AACE;AACA;AACE;MACF;AAAA;AACF;EAEF;AAAA;AAEA;AACE;AACE;IACF;AAAA;AAEA;EACF;AAAA;AAvgBI;AAAa;AAwgBjB;ACzgBA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACE;AACE;IACF;AAAA;AAEE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;EACF;AACA;AACE;AAAkC;AAEhC;IACF;AACA;AACE;AACE;AACE;QACF;AAAA;AAEA;AACE;QACF;AAAA;MAEF;AACA;AACE;AACA;AACE;QACF;MACF;IACF;AACA;AACE;AACE;MACF;AAAA;AAEA;AACE;MACF;AACE;MACF;AAAA;AAEE;MACF;AAAA;IAEF;AACA;EACF;AACA;AA/DA;AACI;AAAa;AA+DjB;AChEA;;AAAA;AACI;AAAmB;AACnB;AAEJ;AAAqB;AAJrB;AACI;AAAa;AAK4b;ACN7c;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACE;AAAkB;AAEhB;IACF;AACA;AACE;IACF;AACA;EACF;AACA;AAbA;AACI;AAAa;AAajB;ACdA;;AAAA;AACI;AAAmB;AACnB;AADS;AACT;AAEI;AAEA;AAEA;IACJ;AAAA;EAEJ;AACA;AAZA;AACI;AAAa;AAYw8C;ACbz9C;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;MACF;IACF;AAAA;AAEE;AACE;AACA;AACA;MACF;AACA;AACA;AAAiB;AAEnB;AACE;IACF;AACA;AACE;AACE;AAAsC;AAEtC;AAA8E;AAE9E;AAAwE;AAE5E;AACE;AACA;AACA;AACA;AACE;AAAoC;AAEtC;AACA;AACA;IACF;AACA;AACE;AACA;AACE;AACA;AACE;QACF;AACE;QACF;AAAA;IAEJ;AACA;AACE;AACI;AACF;AAAoD;AAExD;AACE;AACI;AACF;AAAuD;AAE3D;AACE;AACA;AACE;AACE;QACF;MACF;AACE;MACF;AAAA;AAEF;AACE;AACA;AACE;AAAiC;AAEnC;AACE;AAA+B;AAEnC;AACE;AACA;AACE;MACF;AACA;AACA;AACE;MACF;AACA;AACA;IACF;AACA;AACE;AACE;MACF;AACE;MACF;AAAA;IAEF;AACA;AACE;AACA;AACE;MACF;AACE;AACA;AACE;AAAgB;AAElB;AACA;AACA;AACE;AAAgB;AACpB;IAEF;AACA;AACE;IACF;AACA;EACF;AACA;AAvIA;AACI;AAAa;AAuIjB;ACxIA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACE;AACE;AACA;IACF;AAAA;AAEE;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;IACF;AACA;EACF;AACA;AA7CA;AACI;AAAa;AA6CjB;AC9CA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AAJA;AACI;AAAa;AAIjB;ACLA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACE;AACE;AACA;IACF;AAAA;AAEE;AACA;AACA;AACA;AACE;AACE;AACA;AACA;QACF;AACA;MACF;IACF;AACA;AACE;AACE;MACF;AAAA;AAEA;AACE;MACF;IACF;AACA;AACA;EACF;AACA;AACA;AACE;AACE;AACA;AACA;IACF;AAAA;AAEE;AACA;AACE;MACF;IACF;AACA;AACE;AACA;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACA;IACF;AACA;EACF;AA7EA;AACI;AAAa;AA6EjB;AC9EA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACE;AACE;IACF;AAAA;AAEE;IACF;AACA;AACA;EACF;AACA;AA/BA;AACI;AAAa;AA+BjB;AChCA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACE;AACE;IACF;EACF;AAAA;AAEA;AACE;AACE;IACF;EACF;AAAA;AAfA;AACI;AAAa;AAgBjB;ACjBA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACE;AACE;IACF;EACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AAAkC;AAEpC;AACA;AACA;AACE;AACA;AACE;IACF;AAAA;AAEE;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACE;AACA;AACA;AACA;MACF;AAAA;AAEF;AACE;AACE;AAA+B;AAEnC;AACE;AACA;AACA;AACA;AACA;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;AACA;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACA;AACA;AACA;AACE;AACA;AACA;AACA;MACF;AACE;MACF;AAAA;AAEF;AACE;AACA;AACA;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACA;AACA;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACA;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;IACF;AACA;EACF;AACA;AACA;AACE;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACA;AACE;AACA;MACF;AAAA;AAEF;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACA;AACE;AACA;MACF;AAAA;IAEF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;AACA;AACA;AACE;MACF;AAAA;IAEF;AACA;AACE;AACA;AACA;AACE;MACF;AAAA;AAEF;AACE;AACE;AACA;AACE;QACF;MACF;AAAA;AAEF;AACE;AACE;AACA;AACE;AACA;QACF;MACF;AACE;MACF;AAAA;AAEF;AACE;AACA;AACA;AACE;MACF;AAAA;IAEF;AACA;AACE;AACA;AACA;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACE;AACA;AACA;AACA;AACE;AACA;QACF;AAAA;AAEA;AACE;QACF;AACE;QACF;AAAA;AACF;AAEF;AACE;IACF;AACA;AACE;AACA;AACA;AACE;MACF;AAAA;IAEF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACA;EACF;AACA;AACA;AACE;EACF;AAAA;AAEE;EACF;AAAA;AAEE;AACA;AACE;AACA;AACE;AACE;QACF;AAAA;AAEA;AACE;QACF;AAAA;AACF;AACF;AACF;AAEE;AACE;AACA;AACE;MACF;AAAA;EAEJ;AAAA;AAEA;AACE;AACE;IACF;AAAA;AAEA;EACF;AAAA;AAlUI;AAAa;AAmUjB;ACpUA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AAJA;AACI;AAAa;AAIjB;ACLA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACE;AACE;IACF;EACF;AACA;AACA;AACA;AACA;AACA;AACE;AACE;AACA;IACF;AAAA;AAEE;AACA;AACA;AACE;AACE;AACA;AACA;QACF;AAAA;AAEF;IACF;AACA;AACA;AACE;IACF;AACA;AACA;EACF;AACA;AACA;AACE;AACA;AACE;AACA;AACA;IACF;AAAA;AAEE;AACE;AACA;MACF;AAAA;AAEF;AACE;AACA;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACE;MACF;IACF;AACA;AACA;EACF;AACA;AA1FA;AACI;AAAa;AA0FjB;AC3FA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACE;AACA;AACE;IACF;AAAA;AAEE;IACF;AACA;AACE;AACA;AACE;AACE;QACF;MACF;AACA;AACE;MACF;IACF;AACA;AACE;AACA;AACA;AACE;AACE;QACF;MACF;AACA;AACE;MACF;IACF;AACA;AACA;EACF;AACA;AAhEA;AACI;AAAa;AAgEjB;ACjEA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACE;AACE;IACF;EACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;AACA;AACA;AACE;MACF;AACA;IACF;AAAA;AAEE;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACE;AACA;AACE;QACF;AAAA;AACF;IAEF;AACA;AACA;EACF;AACA;AACA;AACE;AAA+B;AAE7B;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;EACF;AACA;AA5EA;AACI;AAAa;AA4EjB;AC7EA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACE;AAAe;AAEb;AACE;MACF;IACF;AACA;AACE;AACE;MACF;IACF;AACA;AACE;AACE;MACF;IACF;AACA;EACF;AACA;AAvBA;AACI;AAAa;AAuBjB;ACxBA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;IACF;AAAA;AACF;AAEE;AACA;AACE;AACE;MACF;IACF;AACE;IACF;AAAA;AACF;AAEE;AACA;AACE;AACA;AACE;MACF;AAAA;AACF;EAEF;AAAA;AAEA;AACE;AACE;AACA;IACF;AAAA;AAEE;AACA;AACA;AACA;AACE;AACA;MACF;AAAA;AAEF;AACE;AACA;AACA;IACF;AACA;AACA;EACF;AACA;AACA;AACA;AAjFA;AACI;AAAa;AAiFjB;AClFA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAiB;AACvB;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAzBA;AACI;AAAa;AAyBjB;AC1BA;;AAAA;AACI;AAAmB;AACnB;AAEJ;AACA;AACA;AACA;AACA;AAA0C;EAAuB;AAAkB;EAAa;AAChG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAhBA;AACI;AAAa;AAgB46D;ACjB77D;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACA;AACE;AACE;IACF;AAAA;EAEF;AACA;AACA;AACE;AACE;IACF;AAAA;AAEE;AACA;AACA;AACA;AACE;MACF;AAAA;AAEA;AACA;AACE;AACA;MACF;AAAA;AAEA;AACE;MACF;AAAA;AAEA;AACA;IACF;AACA;EACF;AACA;AAxCA;AACI;AAAa;AAwCjB;ACzCA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACE;EACF;AAAA;AAEA;AACE;EACF;AAAA;AAXA;AACI;AAAa;AAYjB;ACbA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AAAU;AAEZ;AACE;EACF;AAAA;AAEE;EACF;AAAA;AAEE;AACA;AAAU;AAEV;AACA;AAAU;AAEV;AACA;AAAO;AAEP;AACA;AAAO;AAEP;AACA;AAAU;AAEV;AACA;AAAU;AAEV;AACA;AAAU;AAEZ;AACE;AACA;AACA;EACF;AAAA;AAxEA;AACI;AAAa;AAyEjB;AC1EA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACA;AACE;AACA;AACE;IACF;AAAA;EAEF;AACA;AACA;AACE;AACA;AACE;AACA;IACF;AAAA;AAEE;AACA;AACE;MACF;IACF;AACA;AACE;AACA;IACF;AACA;AACA;EACF;AACA;AA1DA;AACI;AAAa;AA0DjB;AC3DA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACE;MACF;AAAA;AAEE;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAA2B;MAE/B;IACF;AACA;AACE;AACA;AACE;AACA;AACA;AACA;AACA;AACA;MACF;AAAA;AAEE;MACF;IACF;AACA;AACE;AACA;AACA;AACA;IACF;AACA;AACE;AACA;AACA;AACA;AACA;AACE;AACA;AACA;AACA;AACA;AACE;QACF;AACA;AACA;AACA;AACE;QACF;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACE;UACF;AACA;AACA;AACE;UACF;AACA;QACF;AACE;AACA;QACF;AACA;MACF;AAAA;IAEF;AACA;AACE;AACA;AACE;AACA;AACA;AACA;AACA;AACE;QACF;AAAA;AAEE;QACF;MACF;AACA;AACE;AACE;QACF;AAAA;AAEF;IACF;AACA;AACE;AACA;AACE;MACF;AAAA;AAEA;AACA;AACA;AACE;AACA;AACA;AACA;AACA;AACE;AACA;AACA;QACF;AAAA;AAEF;AACE;AACA;AACA;AACA;AACA;AACE;QACF;AACE;QACF;AAAA;AAEA;AACA;MACF;AACA;AACA;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AACA;AACA;EACF;AACA;AACA;AACE;AACE;AACA;IACF;AAAA;EAEF;AACA;AACA;AACE;AACE;IACF;AAAA;AACF;AAEE;EACF;AAAA;AAEE;EACF;AAAA;AAEE;AACA;EACF;AAAA;AAEE;AACE;IACF;AAAA;AACF;AAEE;EACF;AAAA;AAEE;AACA;AACE;AACE;MACF;AACA;AACE;MACF;AAAA;AAEF;EACF;AAAA;AArPI;AAAa;AAsPjB;ACvPA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACA;AACE;AACE;AACE;AAAW;AAEb;MACF;AAAA;IAEF;AACA;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;IAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACE;AACE;MACF;IACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACE;MACF;AAAA;IAEF;AACA;AACA;AACE;AACE;AACA;AACA;AACA;MACF;AAAA;AAEE;AACA;AACA;AACA;AACA;AACE;AACA;QACF;AAAA;AAEE;AACE;UACF;QACF;AAAA;MAEF;AACA;AACA;IACF;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACA;QACF;MACF;AAAA;AAEE;MACF;AACA;AACE;AACA;AACE;QACF;AACE;AACA;QACF;AAAA;AAEF;AACE;AACA;AACE;QACF;AACE;AACA;QACF;AAAA;AAEF;AACE;AACA;AACE;QACF;AACE;AACA;QACF;AAAA;AAEF;AACE;AACA;AACE;QACF;AACE;AACA;QACF;AAAA;AAEF;AACE;AACA;AACA;AACE;QACF;AACE;QACF;AAAA;AAEF;AACE;MACF;AACA;AACE;AACA;AACA;AACA;AACE;QACF;AAAA;AAEE;QACF;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACA;AACA;AACE;UACF;AAAA;AAEE;UACF;AAAA;AAEF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;UACF;AAAA;QAEF;AACE;AACA;AACA;QACF;AACE;AACA;AACE;UACF;AACA;QACF;AAAA;AAEE;AACA;AACA;AACA;AACA;QACF;AAAA;MAEF;AACA;AACE;AACA;AACE;QACF;AACE;AACA;QACF;AAAA;AAEE;AACA;AACE;AACA;AACE;AACA;YACF;AACE;YACF;AACE;AACA;YACF;AAAA;AACF;QAEF;AAAA;MAEF;AACA;AACE;AACA;AACA;AACA;AACA;AACE;AACA;AACE;UACF;AACE;AACA;UACF;AACE;UACF;AACE;AACA;UACF;AACE;AACA;UACF;AACE;UACF;AACE;UACF;AAAA;AAEA;QACF;AAAA;AAEE;QACF;AAAA;MAEF;AACA;AACE;MACF;AACA;AACE;AACE;QACF;AAAA;MAEF;AACA;AACE;MACF;AACA;AACE;AACA;AACE;AACA;QACF;AAAA;MAEF;AACA;AACE;AACA;MACF;AACA;AACE;MACF;AACA;AACE;AACA;AACA;AACA;MACF;AACA;AACE;MACF;AACA;AACE;AACA;AACA;AACE;QACF;AACA;AACE;AACA;AACA;AACE;UACF;AACE;UACF;AACE;UACF;AAAA;AAEF;MACF;AACA;AACE;AACA;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;AACA;YACF;AAAA;AAEF;QACF;AACA;AACE;AACE;UACF;AAAA;AAEF;MACF;AACA;AACE;AACA;AACE;AACE;AACA;UACF;QACF;AAAA;AAEF;AACE;AACA;AACE;AACE;UACF;QACF;AAAA;AAEF;AACE;AACE;AACA;AACE;AACA;AACE;YACF;AAAA;AAEF;AACE;AACA;AACE;YACF;AAAA;QAEJ;AAAA;AAEF;AACE;AACA;AACA;AACA;AACE;AACE;UACF;QACF;AACA;AACE;AACE;UACF;AAAA;AAEF;MACF;AACA;AACE;AACA;AACA;AACA;AACA;AACE;AACA;AACA;AACE;UACF;AAAA;AAEA;AACE;AACA;UACF;AACE;AACA;UACF;AACE;AACA;AACA;UACF;AACE;AACA;UACF;AAAA;AACF;MAEF;AACA;AACE;AACA;AACE;AACA;AACE;UACF;AAAA;AAEF;MACF;AACA;AACE;AACA;AACE;QACF;AAAA;AAEF;AACE;AACA;AACA;AACE;QACF;AAAA;AAEE;QACF;MACF;AACA;AACE;AACA;AACA;AACE;AACE;UACF;QACF;AACA;AACE;AACE;UACF;AAAA;MAEJ;AACA;IACF;AACA;AACE;AAA+B;AAE7B;AACA;AACE;QACF;AAAA;AAEE;QACF;AACA;AACA;AACA;AACA;MACF;AACA;AACE;MACF;AACA;AACE;AACA;MACF;AACA;IACF;AACA;AACE;AACE;AACA;AACA;AACA;MACF;AAAA;IAEF;AACA;AACE;IACF;AAAA;AAEA;AACE;AACE;AACA;MACF;AAAA;AAEE;AACE;QACF;AAAA;AAEA;AACA;AACA;AACE;AACA;AACE;UACF;AACE;UACF;AAAA;AACF;MAEF;AACA;AACE;AACA;AACE;QACF;AACA;AACA;AACE;QACF;AAAA;MAEF;AACA;IACF;AACA;AACE;AACA;AACA;AACA;AACE;AACA;AACA;AACA;AACA;AACE;AACA;AACE;UACF;QACF;AAAA;AACF;IAEF;AAAA;AAEA;EACF;AAjkBA;AACI;AAAa;AAikBjB;AClkBA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACE;AACE;AACA;IACF;AAAA;AAEE;IACF;AACA;EACF;AACA;AACA;AACE;AACE;AACA;AACA;IACF;AAAA;AAEE;IACF;AACA;EACF;AACA;AACA;AACE;AACE;AACA;AACA;AACA;IACF;AAAA;AAEE;IACF;AACA;EACF;AACA;AACA;AACE;AACE;IACF;AAAA;AAEA;AACE;AACA;AACE;MACF;AAAA;AAEF;EACF;AAAA;AAnDA;AACI;AAAa;AAoDjB;ACrDA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACA;AACE;AACE;AACE;AAAW;AAEb;MACF;AAAA;IAEF;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AACA;AACA;AACE;AACE;AACA;AACA;MACF;AAAA;IAEF;AACA;AACA;AACE;AACA;AACE;AACA;MACF;AAAA;IAEF;AACA;AACA;AACE;AACE;AACA;MACF;AAAA;IAEF;AACA;AACA;AACE;IACF;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;IACF;AAAA;AAEE;IACF;AAAA;AAEE;AACE;MACF;AAAA;IAEF;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;MACF;AAAA;AAEE;MACF;AACA;AACE;AACE;AACA;AACE;AACE;AACE;AACE;gBACF;AACE;gBACF;AACE;gBACF;AAAA;AAEA;cACF;AACE;cACF;AAAA;AAEA;YACF;AAAA;AAEA;AACE;YACF;AACE;YACF;AAAA;AACF;AACF;AAEA;AACA;MACF;AACA;AACE;MACF;AACA;AACE;AACE;QACF;AAAA;AAEE;QACF;AAAA;AAEA;MACF;AACA;AACE;AACE;QACF;AAAA;AAEE;QACF;AAAA;AAEA;AACA;AACA;AACA;MACF;AACA;AACE;AACA;AACA;AACA;MACF;AACA;AACE;AACE;QACF;AAAA;AAEE;AACA;QACF;AACE;QACF;AAAA;AAEA;MACF;AACA;AACE;AACE;AACA;QACF;AAAA;MAEF;AACA;AACE;AACA;AACE;QACF;AAAA;AAEF;AACE;AACE;AACE;UACF;AAAA;AACF;MAEF;AACA;AACE;AACA;AACE;QACF;AAAA;AAEF;AACE;AACE;QACF;AAAA;AAEF;AACE;AACA;AACA;AACE;QACF;AAAA;AAEF;AACE;AACE;QACF;AAAA;AAEF;AACE;AACE;QACF;AACE;AACA;AACA;QACF;AAAA;AAEF;AACE;AACA;AACA;AACE;AACA;AACA;AACA;AACE;UACF;AAAA;AAEA;AACA;AACE;AACA;UACF;AACE;AACA;UACF;AAAA;AAEA;AACA;AACA;AACE;AACA;UACF;AAAA;AAEA;AACA;AACA;AACE;UACF;AAAA;QAEF;AAAA;AAEF;AACE;AACA;AACA;AACA;AACA;AACE;AACA;AACE;UACF;AAAA;AAEE;UACF;AAAA;AAEE;UACF;AAAA;AACF;MAEF;AACA;AACE;AACA;AACA;AACA;AACA;AACE;QACF;AACA;AACA;MACF;AACA;AACE;AACA;AACA;AACA;AACA;AACE;QACF;AACA;AACA;MACF;AACA;AACE;AACA;AACA;AACA;MACF;AACA;AACE;AACA;AACA;AACE;QACF;AAAA;AAEA;AACE;AACA;AACA;QACF;AACE;QACF;AAAA;AAEA;AACA;MACF;AACA;AACE;AACA;AACA;AACE;AACE;UACF;AAAA;AAEA;AACA;AACA;AACA;AACE;AACA;AACA;AACE;AACA;YACF;AAAA;UAEF;AAAA;QAEF;AACE;AACE;AACA;AACA;AACA;UACF;AAAA;QAEF;AAAA;AAEA;AACE;QACF;AACE;QACF;AAAA;AAEF;AACE;AACA;AACE;AACE;AAAY;AAEd;AACE;AAAY;AAEd;AACE;AAAY;QAEhB;AACA;AACA;MACF;AACA;AACE;AACA;AACA;MACF;AACA;AACE;AACA;AACA;MACF;AACA;AACE;AACA;AACA;AACE;AACA;AACA;AACA;AACE;UACF;AAAA;AAEA;QACF;AACE;AACA;AACA;QACF;AAAA;MAEF;AACA;AACE;AACA;AACA;AACA;MACF;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;MACF;AACA;AACE;AACA;AACA;AACA;AACE;QACF;AAAA;MAEF;AACA;AACE;MACF;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACE;QACF;AAAA;AAEF;IACF;AACA;AACE;IACF;AAAA;AAEE;IACF;AAAA;AAEE;IACF;AAAA;AAEE;IACF;AAAA;AAEE;IACF;AAAA;AAEE;IACF;AAAA;AAEE;IACF;AAAA;AAEE;IACF;AAAA;AAEE;IACF;AAAA;AAEE;AACA;AACA;AACE;AACA;AACE;AACA;QACF;AACE;AACA;QACF;AAAA;AACF;IAEF;AAAA;AAvgBF;AACI;AAAa;AAwgBjB;ACzgBA;;AAAA;AACI;AAAmB;AACnB;AADS;AACT;AACI;AACA;AACA;AACA;IACJ;AAAA;AACiD;IAAyD;AAC1G;EACJ;AACA;AACA;AACI;AACI;AACA;IACJ;AAAA;EAEJ;AACA;AACA;AACI;AACI;AACA;IACJ;AAAA;AAEI;AACA;AACA;AACI;MACJ;AAAA;AAEA;AACA;AACA;AACI;AACA;AACA;AACI;AACI;UACJ;AAAA;AACJ;AACJ;AAEA;AACA;AACI;AACA;AACA;AACI;AACI;UACJ;AAAA;AACJ;AACJ;AAGA;IACJ;AACA;EACJ;AACA;AACA;AACI;AACI;AACA;IACJ;AAAA;AAEI;IACJ;AACA;EACJ;AACA;AAvEA;AACI;AAAa;AAuE48L;ACxE79L;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACE;AACA;IACF;AAAA;AAEE;IACF;AACA;EACF;AACA;AACA;AACE;AACE;AACA;IACF;AAAA;EAEF;AACA;AACA;AACE;AAAuB;AAErB;AACA;AACA;IACF;AACA;AACA;EACF;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACE;AACE;QACF;AACE;QACF;AACE;AACA;QACF;AACE;AACA;QACF;AACE;AACA;QACF;AACE;QACF;AAAA;AACF;IAEF;AACA;AACE;AACA;AACE;MACF;AAAA;AAEA;IACF;AACA;AACE;AACE;MACF;AAAA;IAEF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;AACE;AACA;AACE;QACF;AAAA;AACF;AAEE;MACF;AAAA;AAEF;AACE;AACE;AACA;AACE;QACF;AAAA;AACF;AAEF;AACE;AACA;AACA;AACA;AACE;MACF;AAAA;AAEA;AACA;AACE;AACA;AACA;AACE;QACF;AAAA;AAEA;AACA;MACF;AAAA;AAEA;AACA;AACA;AACE;MACF;AAAA;AAEF;AACE;AACE;AACA;AACE;QACF;AAAA;AACF;AAEA;AACA;AACE;AACA;AACA;AACA;MACF;AACE;AACA;MACF;AAAA;AAEF;AACE;AACA;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;AACA;AACE;AACA;QACF;AAAA;AAEE;QACF;AAAA;AACF;IAEF;AACA;AACE;AACA;AACA;AACA;AACE;AACA;AACA;MACF;AAAA;IAEF;AACA;AACE;IACF;AACA;AACE;AACA;AACE;MACF;AACE;MACF;AAAA;AAEF;EACF;AACA;AACE;EACF;AAAA;AAEE;AACE;AACA;AACE;MACF;AAAA;AACF;EAEF;AAAA;AA7OI;AAAa;AA8OjB;AC/OA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACA;AACA;AACA;AACE;AACA;AACE;MACF;AACE;MACF;AACE;MACF;AACE;MACF;AAAA;AAEF;AACA;AACA;AACA;AACE;IACF;AACE;IACF;AACE;IACF;AACE;IACF;AAAA;EAEF;AAAA;AAEA;AACE;AACA;AACA;AACA;AACA;EACF;AACA;AACA;AACE;AACE;AACA;AACA;AACA;IACF;AAAA;EAEF;AACA;AACA;AACE;AACE;IACF;AAAA;EAEF;AAAA;AAnEI;AAAa;AAoEjB;ACrEA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;AACA;AACA;IACF;AAAA;AAEE;AACA;AACE;MACF;AACE;AACA;AACE;QACF;MACF;AACE;MACF;AAAA;AAEF;AACE;AACA;AACA;AACE;AACA;MACF;AAAA;AAEA;AACA;AACA;AACE;MACF;AACE;MACF;AACA;AACE;AACA;AACE;QACF;AACA;MACF;AACA;AACA;AACE;MACF;AAAA;AAEE;AACA;AACA;AACA;AACA;AACA;AAA6C;IAEjD;AACA;AACA;EACF;AACA;AACA;AACE;AACE;AACA;AACA;AACA;IACF;AAAA;AAEE;AACA;AACE;AACE;AACE;UACF;AAAA;AACK;AAEL;AACA;AACE;AACE;YACF;AAAA;AAEF;AACA;AAAK;AAEL;AACA;AAAK;AAET;AACE;MACF;AAAA;AAEA;AACE;MACF;AAAA;IAEF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;EACF;AApIA;AACI;AAAa;AAoIjB;ACrIA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;AACA;AACA;AACA;MACF;AAAA;AAEE;AACA;AACE;AACE;UACF;AAAA;QAEF;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;AACE;YACF;AAAA;AAEA;AACA;UACF;AAAA;AAEE;UACF;AAAA;AAEE;UACF;AAAA;AAEE;UACF;AAAA;AAEE;AACA;UACF;AAAA;AAEE;AACE;YACF;AAAA;AAEA;UACF;AAAA;AACF;AAEA;MACF;AACA;AACE;MACF;AACA;AACE;AACE;QACF;AAAA;MAEF;AACA;AACE;AACA;AACA;AACA;AACE;AACA;AACA;QACF;AAAA;MAEF;AACA;AACE;AACE;QACF;AAAA;AAEA;AACE;QACF;AACE;QACF;AAAA;MAEF;AACA;AACE;MACF;AACA;AACE;AACA;AACE;QACF;AAAA;AAEE;AACE;UACF;AAAA;AACF;AAEE;AACE;AACA;AACA;AACA;AACE;YACF;AAAA;UAEF;AAAA;AACF;AAEE;QACF;AACA;MACF;AACA;IACF;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AACA;MACF;AAAA;AAEE;AACA;AACA;MACF;AACA;AACE;AACA;AACE;AACA;QACF;AAAA;AAEE;QACF;AAAA;AAEF;AACE;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACE;UACF;AACE;UACF;AAAA;AACF;AAEE;AACE;AACA;AACA;AACE;YACF;AACE;YACF;AAAA;AACF;AACF;AAEE;AACE;AACA;AACA;AACA;AACE;AACA;AACA;AACE;AACA;cACF;AAAA;YAEF;AACE;AACA;AACA;AACE;AACA;cACF;AAAA;YAEF;AAAA;AACF;AACF;AAEF;AACE;AACA;AACE;AACA;QACF;AAAA;MAEF;AACA;AACE;AACA;AACE;AACA;QACF;AAAA;MAEF;AACA;AACE;AACA;AACA;AACA;AACA;AACE;QACF;AAAA;AAEA;AACA;AACE;AACE;AACA;AACA;UACF;AAAA;AACF;AAEE;AACE;AACA;AACA;AACA;AACE;YACF;AAAA;AAEA;AACA;AACE;YACF;AAAA;UAEF;AAAA;AACF;MAEF;AACA;AACE;AACE;QACF;AAAA;AAEA;AACA;AACE;QACF;AAAA;AAEE;QACF;AAAA;AAEA;AACA;AACE;AACA;QACF;AAAA;MAEF;AACA;AACE;AACE;QACF;AAAA;AAEA;AACE;QACF;AAAA;MAEF;AACA;IACF;AACA;AACA;AACE;AACE;AACA;MACF;AAAA;IAEF;AACA;AACA;AACE;AACE;AACA;AACA;AACA;MACF;AAAA;AAEE;AACA;AACE;AACA;QACF;AAAA;AAEE;AACE;UACF;AAAA;QAEF;AAAA;MAEF;AACA;IACF;AACA;EACF;AA5TA;AACI;AAAa;AA4TjB;AC7TA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;AACI;AACA;AACA;AACA;AACJ;AACA;AACA;AACA;IACF;AAAA;AAEE;AACE;AACA;AACA;AAAqB;IAEzB;AACA;AACE;AACE;AACA;AACA;AAAoB;IAExB;AACA;EACF;AACA;AACA;AACE;AACE;AACI;AACA;AACA;AACA;AACA;AACA;AACJ;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACE;AACA;AACA;AACA;AACA;AACA;AAA6C;IAEjD;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AAA4C;IAEhD;AACA;EACF;AACA;AACA;AACE;AACE;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACA;AACA;AACA;AACE;AACE;AACA;AACE;UACF;AACE;UACF;AACE;UACF;AAAA;MAEJ;AAAA;AAEA;AACE;AACE;AACA;QACF;MACF;AAAA;AAEA;AACE;AACE;AACA;QACF;MACF;AAAA;AAEE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAiB;IAErB;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;QACF;AACA;AAAmH;IAEvH;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;QACF;AACA;AAAmF;IAEvF;AACA;EACF;AACA;AACA;AACE;AACA;AACE;AACE;AACA;AACA;AACA;AAAW;AAEb;AACE;AACA;AACA;AACA;AACA;AAAqB;AAEvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAY;EAEhB;AAAA;AAxOA;AACI;AAAa;AAyOjB;AC1OA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACE;AACE;IACF;EACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;AACA;AACA;AACA;IACF;AAAA;AAEE;AACA;AACE;AACA;AACA;AACA;AACA;AACE;AACA;AACA;AACA;AACE;AACA;AACA;AACA;AACA;AAA4B;AAE9B;QACF;AAAA;AAEE;AACA;AACA;AACA;AACA;AACE;AACA;AACA;AAAqB;AAEvB;AACA;AACA;AACA;AACA;AACA;AACE;UACF;AAAC;AAEH;MACF;AAAA;IAEF;AACA;AACE;AACA;AACA;AACA;AACE;AACE;QACF;AAAA;AACF;AAEE;MACF;IACF;AACA;AACA;EACF;AACA;AACA;AACE;AACA;AACE;IACF;AAAA;AAEE;IACF;AAAA;EAEF;AAAA;AAEE;AACE;AACA;AACE;MACF;AACE;MACF;AAAA;AACF;AACF;AAEE;EACF;AAAA;AAEE;AACA;AACE;AACA;IACF;AACE;IACF;AAAA;AACF;AAtII;AAAa;AAuIjB;ACxIA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACA;AACA;EACF;AAAA;AAEA;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACA;AACA;AACE;MACF;AAAA;AAEA;AACA;AACA;IACF;AACA;AACE;AACE;MACF;AAAA;AAEA;AACA;AACA;AACE;MACF;AAAA;AAEA;IACF;AACA;AACE;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;AACA;IACF;AACA;AACE;AACA;AACA;AACA;AACE;MACF;AACE;MACF;AACE;MACF;AACE;MACF;AAAA;AAEA;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACA;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAiD;AAEnD;AACA;AACA;AACA;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;AAEA;AACA;AACA;IACF;AACA;AACE;AACA;AACA;IACF;AACA;EACF;AACA;AACE;AACA;AACE;AACA;IACF;EACF;AAAA;AAEE;AACA;AACE;AACA;IACF;AACA;EACF;AAAA;AA/II;AAAa;AAgJjB;ACjJA;;AAAA;AACI;AAAmB;AACnB;AAGJ;AACI;AACA;AAEI;IACJ;AACA;AAA2C;IAA+B;AAC1E;EACJ;AACA;AAdA;AACI;AAAa;AAcglD;ACfjmD;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;IACF;AAAA;AAEE;AACA;AACA;AACE;MACF;IACF;AACA;AACE;AACE;AACA;AACE;QACF;MACF;AACE;MACF;AAAA;AAEF;AACE;AACA;AACA;AACA;AACE;AACA;AACA;AACE;AACA;AACA;AACA;AACA;AACA;QACF;AACE;AACA;AACA;QACF;AAAA;AAEA;MACF;AACA;IACF;AACA;AACA;EACF;AACA;AAjFA;AACI;AAAa;AAiFjB;AClFA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACA;AACA;AACA;AACE;AACE;MACF;AAAA;AAEE;AACE;QACF;AAAA;AAEA;AACA;MACF;AACA;AACE;AACA;MACF;AACA;AACE;AACE;QACF;MACF;AACA;AACE;AACE;AACA;AACA;AACA;QACF;MACF;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACE;QACF;AAAA;AAEA;MACF;AACA;AACE;AACI;AACJ;AACA;AACE;AACA;AACA;AACA;QACF;AAAA;MAEF;AACA;AACE;MACF;AACA;AACE;MACF;AACA;AACE;AACE;AACE;AACI;AACJ;AACE;AACA;AACE;AAAK;AAEP;YACF;AAAA;UAEF;AACE;UACF;AAAA;MAEJ;AACA;AACE;AACE;QACF;AACE;QACF;AAAA;AAEF;AACE;MACF;AACA;AACE;AACE;QACF;AAAA;MAEF;AACA;AACE;AACA;AACE;AACA;AACA;AACE;UACF;AACE;UACF;AAAA;QAEF;MACF;AACA;AACE;AACI;AACJ;AACE;AACA;AACA;AACE;UACF;AAAA;QAEF;AAAA;MAEF;AACA;AACE;AACA;MACF;AACA;AACE;AACA;AACA;AACA;AACA;MACF;AACA;AACE;MACF;AACA;AACE;AACE;AACA;AACA;QACF;AACE;QACF;AAAA;AAEF;AACE;AACA;AACE;QACF;AACA;AACI;AACA;AACJ;AACE;AACA;AACA;AACE;AACA;AACE;AACA;AACA;AACE;cACF;AAAA;AACF;UAEF;QACF;AAAA;MAEF;AACA;AACE;AACA;AACA;MACF;AACA;IACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;MACF;IACF;AAAA;AAEA;AACA;AACA;AACA;AACA;AACE;AACE;AACA;MACF;AAAA;IAEF;AACA;AACA;AACE;AACA;AACA;AACE;AACA;AACA;AACA;AACA;AACE;AACA;AACA;QACF;AAAA;AAEA;MACF;IACF;AAAA;AAEA;AACE;AACE;AACA;MACF;AAAA;IAEF;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACE;QACF;AAAA;AAEE;QACF;AACE;AACE;AACA;AACA;UACF;AAAA;QAEF;AAAA;AAEE;QACF;AAAA;AACF;AAEE;AACA;MACF;AAAA;IAEF;AAAA;AA5QF;AACI;AAAa;AA6QjB;AC9QA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACE;AACE;AACA;IACF;AAAA;EAEF;AACA;AACA;AACE;AACE;AAAY;AAEd;EACF;AAAA;AAEA;AACE;AACA;AACE;AACA;AACE;MACF;AAAA;AAEA;IACF;AACA;EACF;AAAA;AAEA;AACA;AAhCA;AACI;AAAa;AAgCjB;ACjCA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACE;AACA;AACA;IACF;AAAA;EAEF;AACA;AACA;AACE;AACA;AACE;AACA;IACF;AAAA;EAEF;AACA;AACA;AACE;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACE;AAAqE;AAEvE;AACA;AACE;MACF;AAAA;AAEF;AACE;AACE;AAAuE;AAEvE;MACF;AAAA;AAEA;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACE;AACA;AACA;MACF;AAAA;IAEF;AACA;EACF;AACA;AAhFA;AACI;AAAa;AAgFjB;ACjFA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACE;AACA;AACE;QACF;AAAA;AACF;IAEF;AAAA;AAEA;AACE;AACA;AACE;MACF;AACA;AACA;AACA;AACA;AACE;MACF;AAAA;AAEA;IACF;AAAA;AAEA;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;MACF;AAAA;AAEE;AACA;MACF;AACA;AACE;AACA;AACA;AACA;AACE;QACF;AAAA;AAEF;AACE;AACA;MACF;AACA;AACE;AACA;AACA;MACF;AACA;AACE;AACA;AACA;MACF;AACA;AACE;AACA;AACA;MACF;AACA;AACE;AACE;AACA;QACF;AACE;AACA;QACF;AAAA;AAEF;IACF;AACA;AACE;AACE;MACF;IACF;AAAA;AAEE;AACE;MACF;IACF;AAAA;AAEE;AACE;AACA;AACA;AACA;AACA;AACA;MACF;AAAA;AAEE;AACA;AACE;QACF;AAAA;AAEF;AACE;AACE;QACF;AACA;AACA;AAAiB;AAEnB;AACE;AACA;AACA;AACE;QACF;AAAA;MAEF;AACA;AACE;AACE;AACE;AACA;AACE;YACF;AACE;YACF;AAAA;UAEF;AACE;AACA;AACE;AACA;YACF;AAAA;AACF;AACF;MAEF;AACA;AACE;AACA;MACF;AACA;AACE;AACA;MACF;AACA;AACE;AACA;AACA;AACA;AACA;AACE;AACA;QACF;AAAA;AAEA;AACA;AACA;AACA;MACF;AACA;AACE;AACA;MACF;AACA;AACE;AACA;AACA;AACA;AACE;QACF;AAAA;MAEF;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACA;AACE;UACF;AAAA;AAEE;AACA;UACF;AAAA;AAEE;AACA;UACF;AAAA;QAEF;AAAA;AAEE;AACA;QACF;AACE;AACA;QACF;AAAA;AAEE;AACA;AACA;AACE;AACA;AACA;UACF;AAAA;AACF;MAEF;AACA;AACE;MACF;AACA;AACE;AACA;AACE;AACE;UACF;AACE;UACF;AAAA;AAEA;QACF;AAAA;AAEF;IACF;AACA;AACE;AACE;AACA;AACA;AACA;AACA;MACF;AAAA;AAEE;AACE;AACE;UACF;AAAA;AAEA;AACE;UACF;AAAA;QAEF;AAAA;AAEF;AACE;MACF;AACA;IACF;AACA;AACA;AACA;AACA;AACA;AACE;IACF;AAAA;AAEE;IACF;AAAA;AArRF;AACI;AAAa;AAsRjB;ACvRA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;AACA;AACA;AACA;IACF;AAAA;AAEE;AACA;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACE;AACA;AACA;AACE;AACE;AACA;UACF;AACA;QACF;AAAA;MAEF;AACA;AACE;AACE;QACF;AACA;AACE;QACF;AACA;MACF;IACF;AACA;AACE;AACA;AACA;AACE;MACF;AACA;AACE;AACA;MACF;AAAA;AAEA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACA;EACF;AACA;AAtGA;AACI;AAAa;AAsGjB;ACvGA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACE;AACE;AACA;AACA;IACF;AAAA;AAEE;IACF;AACA;EACF;AACA;AACA;AACE;AACE;AACA;AACA;IACF;AAAA;AAEE;IACF;AACA;EACF;AACA;AACA;AACE;AACE;AACA;AACA;IACF;AAAA;AAEE;IACF;AACA;EACF;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;IACF;AACA;EACF;AACA;AACA;AACE;AACE;AACA;AACA;AACA;IACF;AAAA;AAEE;IACF;AACA;AACE;AACE;AACE;QACF;AACE;QACF;AAAA;AAEF;AACA;AAAiB;AAEnB;EACF;AACA;AACA;AACE;AACE;AACA;AACA;IACF;AAAA;AAEE;IACF;AACA;EACF;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;EACF;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;IACF;AACA;EACF;AACA;AACA;AACE;AACE;AACA;AACA;AACA;IACF;AAAA;AAEE;IACF;AACA;EACF;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;IACF;AACA;EACF;AACA;AACA;AACE;AACE;AACA;AACA;IACF;AAAA;AAEE;IACF;AACA;EACF;AACA;AACA;AACE;AACA;AACA;AACA;EACF;AACA;AACA;AACE;AACE;IACF;AAAA;AAEA;AACE;AACA;AACE;MACF;AAAA;AAEF;EACF;AAAA;AA5LA;AACI;AAAa;AA6LjB;AC9LA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACE;EACF;AAAA;AAEA;AACE;AACE;AACA;IACF;AAAA;AAEE;AACA;AACA;AACA;AACE;AACA;AACA;AACE;AACE;UACF;AACE;AACA;UACF;AAAA;QAEF;AAAA;MAEF;AACA;IACF;AACA;EACF;AACA;AACA;AACE;AACE;AACA;IACF;AAAA;EAEF;AACA;AACA;AACE;AACE;AACA;IACF;AAAA;EAEF;AACA;AACA;AACE;AACE;AACA;IACF;AAAA;EAEF;AACA;AA3DA;AACI;AAAa;AA2DjB;AC5DA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;IACF;EACF;AAAA;AAEA;AACE;AACE;IACF;EACF;AAAA;AAEA;AACE;AACE;IACF;AAAA;EAEF;AAAA;AAEA;AACE;AACE;IACF;AAAA;EAEF;AAAA;AAEA;AACE;AACE;AACE;MACF;AACE;MACF;AACE;MACF;AACE;MACF;AAAA;EAEJ;AAAA;AAEE;AACE;IACF;AACE;IACF;AAAA;AACF;AAEA;AACE;AACE;IACF;AACE;IACF;AAAA;AACF;AAEA;AACE;AACE;IACF;AAAA;AAEE;IACF;AACE;IACF;AAAA;AACF;AAEA;AACE;AACE;IACF;AACE;IACF;AAAA;AACF;AAEA;AACE;AACA;AACE;IACF;AACE;IACF;AAAA;AACF;AAzFA;AACI;AAAa;AA0FjB;AC3FA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AAA4B;AAE1B;AACA;AACA;IACF;AACA;AACE;AACA;AACA;IACF;AACA;AACA;EACF;AACA;AACA;AACE;AACE;AACA;AACA;IACF;AAAA;AAEE;AACE;MACF;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACA;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;EACF;AACA;AACE;AACE;AACA;AACA;IACF;AAAA;AAEE;IACF;AACA;AACE;IACF;AACA;AACE;AACA;IACF;AACA;AACE;IACF;AACA;AACE;AACA;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;EACF;AACA;AACE;AACA;EACF;AAAA;AAEE;AACE;AACA;AACA;AACA;IACF;AAAA;AAEE;AACA;AACE;AACE;AACA;QACF;MACF;AACA;IACF;AACA;AACE;AACA;AACA;IACF;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;MACF;AACA;AACA;AACE;MACF;AACA;AACA;AACA;AACA;IACF;AACA;AACE;AACA;AACA;AACA;AACA;AACE;AACE;AACA;QACF;MACF;AAAA;AAEA;AACE;MACF;AACA;AACA;AACA;AACE;AACA;AACA;MACF;AACE;AACA;AACA;MACF;AAAA;IAEF;AACA;AACE;IACF;AACA;AACE;AACA;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;AACA;AACE;AACA;MACF;AACA;IACF;AACA;AACE;AACA;AACA;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;EACF;AACA;AACE;AACA;AACA;AACE;AACA;AACA;AACA;AACE;AACA;AACA;MACF;AAAA;AACF;EAEF;AAAA;AAEE;AACA;AACE;IACF;AAAA;EAEF;AAAA;AAEE;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACA;AACE;AACA;IACF;AACA;EACF;AAAA;AAEE;AACE;IACF;AACE;IACF;AAAA;AACF;AAEE;AACE;AACA;AACA;AACA;IACF;AAAA;EAEF;AACA;AACE;AACE;IACF;AAAA;EAEF;AACA;AACE;AACE;IACF;AACE;IACF;AACE;IACF;AACE;IACF;AAAA;AACF;AAEE;AACA;EACF;AAAA;AAEE;AACE;IACF;AACA;AACA;EACF;AAAA;AAEE;AACE;IACF;AACE;IACF;AAAA;AACF;AArTI;AAAa;AAsTjB;ACvTA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACE;AACE;IACF;AAAA;AACF;AAEA;AACE;AAAuB;EAEzB;AACA;AAdA;AACI;AAAa;AAcjB;ACfA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAe;AAEjB;AACE;AACA;AACA;EACF;AACA;AACA;AACE;AACE;AACA;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACA;AACA;AACE;AACE;QACF;MACF;AAAA;AAEA;AACA;AACE;AACA;AACA;AACE;QACF;MACF;AAAA;AAEA;AACA;IACF;AAAA;AAEE;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEA;IACF;AACA;AACE;IACF;AACA;EACF;AACA;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AAAmB;AAErB;AACA;AACE;AACA;AAAmB;AAErB;AACE;AACA;AAAmB;AAErB;AACE;AACA;AACA;AAAmB;AAErB;AACE;AACA;AAAmB;AAErB;AACE;AACA;AAAmB;AAErB;AACE;AACA;AAAW;AAEb;AACA;AACA;AACE;AACA;AAAmB;AAErB;AACA;AACE;AACA;AAAmB;AAErB;AACE;AACA;AAAmB;AAErB;AACE;AACA;AAAmB;AAErB;AACE;AACA;AAAmB;AAErB;AACE;AACA;AAAmB;AAErB;AACE;AACA;AAAmB;AAErB;AACE;AACA;AAAmB;AAErB;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AAAkB;AACnB;AAEH;AACA;AACE;AACA;EACF;AAAA;AAEA;AACA;AACE;AACE;IACF;AAAA;AAEA;EACF;AAAA;AAEA;AACE;EACF;AAAA;AA9ZA;AACI;AAAa;AA+ZjB;AChaA;;AAAA;AACI;AAAmB;AACnB;AADS;AACT;AACA;AAC6E;IAAa;AAC1F;AAA0E;IAAiB;AAC3F;EACJ;AACA;AARA;AACI;AAAa;AAQwgC;ACTzhC;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AAAkC;AAEpC;AACE;AACA;AACE;AACA;IACF;AAAA;AAEE;AACA;AACE;AACA;AACA;MACF;AAAA;IAEF;AACA;AACE;AACE;MACF;AACE;AACA;MACF;AAAA;AAEF;AACE;AACA;IACF;AACA;AACA;EACF;AACA;AAnEA;AACI;AAAa;AAmEjB;ACpEA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACE;AACE;IACF;EACF;AACA;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEA;AACA;AACE;AACE;AACE;MACF;AAAA;AAEE;MACF;AAAA;AACF;AAEE;AACA;AACE;MACF;AAAA;AAEE;MACF;AAAA;IAEF;AACA;AACA;EACF;AACA;AACA;AACE;AACA;EACF;AAAA;AAEA;AACE;AACA;AACE;IACF;AAAA;AAEE;AACA;AACE;MACF;AAAA;AAEA;AACE;MACF;AAAA;AACF;AAEE;IACF;AAAA;AAEE;IACF;AAAA;AAEE;IACF;AAAA;EAEF;AAAA;AAEA;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;EACF;AACA;AACE;EACF;AAAA;AAEE;AACE;AAAU;AAEZ;AACA;AACA;AACA;AACA;AACE;AACA;AACE;AACA;AACE;AAAK;AAEL;AACE;UACF;AACE;UACF;AAAA;AACK;AAEL;AADK;IAGX;AAAA;AAEE;AACE;MACF;AAAA;AAEE;AAAa;AACjB;EAEF;AAAA;AAEE;AACA;AACA;AACA;EACF;AAAA;AAEE;AACA;AACA;AACE;IACF;AACE;IACF;AAAA;AAEE;AACE;MACF;AAAA;AACF;AAEE;IACF;AAAA;AAEA;AACE;AAAU;AAEZ;AACA;AACA;EACF;AAAA;AAlKI;AAAa;AAmKjB;ACpKA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAiB;AACvB;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEE;AACA;AAAO;AA7CT;AACI;AAAa;AA8CjB;AC/CA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAiB;AACvB;AAEA;AACA;AATA;AACI;AAAa;AASjB;ACVA;;AAAA;AACI;AAAmB;AACnB;AAIJ;AACI;AACA;AACqC;IAAa;AAClD;EACJ;AACA;AAZA;AACI;AAAa;AAYw2B;ACbz3B;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACA;AACA;AACA;AACE;AACA;AACE;IACF;AAAA;AAEE;AACA;AACA;AACA;AACA;AACE;AACA;AACA;AACE;QACF;AAAA;AAEE;QACF;AACE;QACF;AAAA;AAEF;AACE;MACF;AACA;AACA;IACF;AACA;EACF;AACA;AA5CA;AACI;AAAa;AA4CjB;AC7CA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA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B;AACnB;AAAJ;AACA;AACE;AACE;AACI;AACF;AAAgB;IAEpB;AACE;IACF;AAAA;AAEF;AAbA;AACI;AAAa;AAajB;ACdA;AAAA;AACI;AAAmB;AACnB;AADJ;AACI;AACA;AACJ;AACE;AACI;AACA;AACA;AACA;AACJ;AACA;AACE;IACF;AACA;EACF;AACE;AACI;AACA;AACA;AACA;AACA;AACA;AACJ;AACE;AACI;AACA;AACA;AACA;AACJ;AACE;AACE;AAAe;AACrB;EAEF;AAlCA;AACI;AAAa;AAkCjB;ACnCA;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AAFA;AACI;AAAa;AAEjB;ACHA;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AAFA;AACI;AAAa;AAEjB;ACHA;AAAA;AACI;AAAmB;AACnB;AADJ;AAAmB;AAAwD;AAAe;AAD1F;AACI;AAAa;AAA4E;ACD7F;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;EACF;AAHA;AACI;AAAa;AAEhB;ACHD;AAAA;AACI;AAAmB;AACnB;AADJ;AACI;AACA;AACJ;AACE;AACI;AACJ;EACF;AARA;AACI;AAAa;AAQjB;ACTA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACA;AACE;AAAQ;AACyB;AACzB;AACkC;AAClC;AAC2C;AAC3C;AACoD;AACpD;AAC6D;AACrE;EACJ;AAfA;AACI;AAAa;AAchB;ACfD;AAAA;AACI;AAAmB;AACnB;AADJ;AADA;AACI;AAAa;AACjB;ACFA;AAAA;AACI;AAAmB;AACnB;AADJ;AACI;AACA;AACJ;AACE;EACF;AANA;AACI;AAAa;AAMjB;ACPA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACE;AACA;AACE;AACA;AACA;MACF;AAAA;AAEF;AACE;IACF;AACA;AACE;AACE;AACI;AACJ;AACE;AAAyB;AAEzB;QACF;AACA;AACA;MACF;AACA;AACE;MACF;AACA;AACE;AACE;QACF;MACF;AACE;AACA;AACA;AACA;MACF;AACE;AACE;QACF;AACA;MACF;AACE;AACE;AACE;AACA;UACF;QACF;MACF;AACE;AACE;QACF;MACF;AAAA;AACF;AAEE;AACA;AAAe;EAEnB;AA1EA;AACI;AAAa;AA0EjB;AC3EA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACE;AACI;AACA;AACJ;AACE;AACA;MACF;AAAA;AAEE;AACA;AACA;AACE;AAAc;AAEhB;AACE;AAAa;MAEjB;AAAA;AAEA;AACE;AAAc;AAElB;AACE;AACE;MACF;IACF;AACE;AACI;AACJ;AACA;AACE;MACF;IACF;AACE;AACE;MACF;IACF;AACE;AACE;MACF;IACF;AAAA;AAEE;AACE;AACA;AACA;AAA+B;AAEjC;AACE;AAAgB;AAEhB;AACA;MACF;AAAA;IAEF;EACF;AAnEA;AACI;AAAa;AAmEjB;ACpEA;AAAA;AACI;AAAmB;AACnB;AADJ;AACI;AACJ;AACE;AACA;AACE;IACF;AACA;AACE;IACF;EACF;AAAa;AAEX;AACE;AAAY;AAEd;AACE;AACI;AACJ;AACE;MACF;AACA;AACE;MACF;AACA;IACF;AAAa;EAEf;AA5BA;AACI;AAAa;AA4BjB;AC7BA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACA;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACE;AACA;AACE;AAAyB;IAE7B;AACA;AACE;AACA;AACE;AACA;AACA;MACF;AAAA;AAEE;AACA;AACA;AACA;AACE;QACF;AAAA;AAEE;AACA;AACI;YACF;AACF;QACF;AAAA;AAEA;MACF;AAAA;IAEF;AACA;AACE;AACE;AAAW;IAEf;AACA;AACE;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACI;AACJ;AACE;AACE;AAA0C;AAE5C;MACF;AACA;IACF;AACA;AACE;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;AAAM;AAER;AACA;AACE;AACI;AACA;AACJ;AACE;AACI;AACA;AACA;AACA;AACJ;AACE;AACE;AACE;AAAe;AAEjB;AACE;cACF;AACE;cACF;AACE;AAAe;AAEjB;AAAa;AAEf;UACF;AAAA;AAEF;AACE;AAAe;AAEjB;AACA;AACE;AACE;AACI;AACA;AACJ;AACE;AACE;cACF;AACE;AACE;AACA;AAAY;cAEhB;AACE;cACF;AAAA;AACF;UAEF;AAAK;IAEX;AACA;AACE;AACI;AACA;AACA;AACJ;AACE;AAAY;AAEZ;AACA;AACE;AAAY;AAChB;IAEF;AACA;AACE;AACA;AACE;AAAM;AAER;AACA;AACA;AACA;AACA;IACF;AACA;AACE;AACI;AACJ;AACE;AAAM;AAER;AACA;AACE;AACE;AAAmD;AAEnD;AACE;AACE;AACA;AAAO;AAET;AACE;YACF;AACE;YACF;AAAA;QAEJ;AACE;AACA;AACA;QACF;AAAA;AAEA;AACE;AACA;AAAO;MAEX;AAAA;AAEF;AACE;AACE;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAO;AAET;AACE;QACF;AACE;QACF;AAAA;AAEF;AACE;AACE;AACI;AACA;AACJ;AACA;AACA;AACA;AACE;AAAuB;AAEvB;AAAqB;QAEzB;AACA;AACE;QACF;AAAA;IAEJ;AAAA;AAEA;AACA;AACA;AACA;AACI;AACI;AACJ;AACA;MACF;AACF;AACI;AACE;AAAQ;AAEN;AACJ;AACA;MACF;AACF;AACE;IACF;AACE;AACE;AACI;AACA;AACA;AACA;AACJ;AACE;AACA;AACI;AACJ;AACE;AACE;AACA;AACE;AACE;AAAM;AAER;AACA;cACF;YACF;;AAEA;AAAgB;AAEpB;AACE;AAAoB;MAExB;AACA;AACE;AACI;AACA;AACJ;AACE;AACE;UACF;QACF;AACA;AACE;AAAoB;MAExB;AAAA;EAEJ;AAhTA;AACI;AAAa;AAgTjB;ACjTA;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AACA;AACA;AACA;AALA;AACI;AAAa;AAKjB;ACNA;AAAA;AACI;AAAmB;AACnB;AADJ;AAAmB;AAAkD;AAAe;AADpF;AACI;AAAa;AAAsE;ACDvF;AAAA;AACI;AAAmB;AACnB;AADJ;AACI;AACJ;AACE;AACA;AACE;AAAyC;EAE7C;AARA;AACI;AAAa;AAQjB;ACTA;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AACA;AAHA;AACI;AAAa;AAGjB;ACJA;AAAA;AACI;AAAmB;AACnB;AADJ;AAAmB;AAAuD;AAAe;AADzF;AACI;AAAa;AAA2E;ACD5F;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACE;AACE;IACF;EACF;AACE;AACE;AACA;IACF;AACA;AACE;IACF;AAAA;AAdF;AACI;AAAa;AAejB;AChBA;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AAFA;AACI;AAAa;AAEjB;ACHA;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AACA;AACA;AACA;AACA;AANA;AACI;AAAa;AAMjB;ACPA;AAAA;AACI;AAAmB;AACnB;AADJ;AAAmB;AAA8C;AAAe;AADhF;AACI;AAAa;AAAkE;ACDnF;AAAA;AACI;AAAmB;AACnB;AADJ;AAGA;AACI;AAEI;AACI;MACJ;AAAA;AAGI;MACJ;AAAA;IAGJ;EACJ;AAAA;AAhBI;AAAa;AAiBjB;AClBA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACA;AACA;AACA;AACA;AACA;AACE;AACE;MACF;IACF;AAAA;AAEE;AACA;IACF;AAAA;AAEE;AACA;AACA;IACF;AAAA;AAEE;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;AACE;QACF;AAAA;AACF;AAEI;AACJ;AACE;AACA;AACE;AACA;AACE;UACF;AAAA;AACF;AAEA;AACA;AACA;AACE;AACA;AACE;UACF;AAAA;AAEA;AACE;UACF;AAAA;AACF;AACF;AACF;AAEE;AACA;AACE;MACF;AAAA;AAEF;AACE;AACA;AACE;MACF;AAAA;AAEF;AACE;AACA;IACF;AACA;AACE;AACE;MACF;AAAA;AAEE;MACF;AAAA;IAEF;AACA;AACE;AACA;AACE;AACE;QACF;AAAA;AACF;AAEA;AACA;IACF;AACA;AACE;AACI;AACA;AACJ;AACE;AACA;AACE;AACA;AACA;AACE;UACF;AAAA;AAEA;AACE;UACF;AAAA;AAEA;AACE;UACF;AAAA;AACF;AACF;AAEE;AACA;AACI;AACF;AACA;AACE;UACF;AACE;UACF;AAAA;AACF;AACF;IAEF;AACA;EACF;AAnIA;AACI;AAAa;AAmIjB;ACpIA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACE;AACE;IACF;AAAA;AAEI;AACA;AACA;AACA;AACJ;AACE;AACA;AACE;MACF;AAAA;AAEA;IACF;AACE;AACA;AACE;MACF;AAAA;AACF;AAEA;AACA;EACF;AAAA;AAEE;AACA;AACA;AACA;AACE;IACF;AAAA;AAEE;IACF;AAAA;AAEE;AACE;AACA;AACA;AACA;AAAkB;IAEtB;AAAA;AAEE;AACE;AACA;AACA;AACA;AAAkB;IAEtB;AAAA;AAEA;AACE;AACA;AACE;AACA;AACA;MACF;AAAA;AAEA;AACA;AACA;AACE;AACE;QACF;AAAA;AAEA;AACA;MACF;AAAA;AACF;AAEE;IACF;AAAA;EAEF;AAAA;AAEE;AACI;AACJ;AACE;AACA;AACA;AACE;MACF;AAAA;IAEF;AAAA;EAEF;AACA;AACE;AACA;AACE;AACE;MACF;AAAA;AACF;EAEF;AAAA;AAEE;AACI;AACJ;AACE;AACA;AACE;AACE;QACF;AAAA;AACF;AAEA;AACA;AACA;AACE;AACA;AACE;AACA;AACE;AACA;AACA;AACE;AACA;YACF;AAAA;AACF;AAEE;UACF;AAAA;AACF;AACF;AAEF;EACF;AACA;AACE;AACA;AACE;AACA;AACE;AACA;MACF;AAAA;IAEF;AAAA;AAEE;IACF;AAAA;AAEE;IACF;AAAA;AAEE;IACF;AAAA;AAEE;IACF;AAAA;AAEA;AACE;AACA;IACF;AAAA;AAEA;AACA;AACI;AACJ;AACE;AACA;AACA;AACE;AACA;AACE;AACA;AACE;AACA;AACA;AACE;YACF;AACE;YACF;AAAA;AACF;AACF;AACF;AAEE;AACA;A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AAA;AAEF;AACE;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEF;AACE;AACE;MACF;AAAA;AAEE;AACE;QACF;AAAA;AACF;AAEF;AACA;AACE;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEF;AACE;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEF;AACE;AACE;MACF;AAAA;AAEE;AACA;AACE;QACF;AAAA;AACF;AAEF;AACE;AACE;MACF;AAAA;AAEA;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AAAA;AAEA;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AAAA;AAEA;AACE;AACA;AACE;QACF;AAAA;AACF;AAEF;AACE;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AAAA;AAEA;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACE;AACI;AACJ;AACE;AACE;YACF;AAAA;AACF;AACF;AAEE;AACA;AACE;AACE;AACA;AACE;cACF;AAAA;AACF;AACF;AAEE;UACF;AAAA;AACF;AACF;AAEF;AACE;AACE;MACF;AAAA;AAEI;AACJ;AACE;AACA;AACE;AACA;AACE;UACF;AACE;AACA;AACE;AACA;AACE;cACF;AAAA;AACF;AACF;AACF;AACF;AAEF;AACE;AACI;AACJ;AACE;AACE;AACA;QACF;AAAA;AACF;AAEE;MACF;AAAA;AAEF;AACE;AACA;AACE;AACA;AACE;QACF;AAAA;AACF;AAEF;AACE;AACI;AACA;AACJ;AACE;AACA;AACA;MACF;AAAA;AAEE;MACF;AAAA;AAEF;AACE;AACI;AACA;AACJ;AACE;AACA;AACA;AACE;QACF;AAAA;AACF;AAEE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACA;AACE;MACF;AAAA;AAEF;AACA;AACE;AACA;AACE;AACE;AACE;AACE;YACF;AAAA;QAEJ;AACE;AACE;UACF;AAAA;AACF;AAEA;MACF;AAAA;AACF;AAEF;AACE;AACA;AACE;AACE;AACE;AACA;AACA;QACF;AACE;AACE;AACA;AACA;UACF;AAAA;AACF;AACF;AAEA;AACE;AACA;AACA;MACF;AAAA;AACF;AAEF;AACE;AACA;AACE;IACF;AAAA;AAEA;AACA;AACI;AACJ;AACE;AACI;AACJ;AACA;AACE;MACF;AAAA;AAEA;AACE;AACA;AACE;QACF;AAAA;AACF;AAEE;MACF;AAAA;AAEA;AACE;AACA;AACA;MACF;AAAA;AACF;AAEF;AACE;AACA;AACA;AACE;AACA;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;AACA;IACF;AAAA;AAEE;AACA;AACE;AACE;AACA;QACF;AACE;QACF;AACE;AACA;QACF;AAAA;MAEF;AAAA;AAEE;MACF;AAAA;AACF;AAEA;AACE;AACE;AACE;AACA;AACE;UACF;AAAA;AACF;AAEA;AACE;AACA;AACE;UACF;AAAA;AACF;AACF;AACF;AAEA;AACE;AACE;AACA;AACE;QACF;AAAA;AACF;AACF;AAEE;AACE;MACF;AACE;MACF;AAAA;AACF;AAEE;IACF;AAAA;EAEF;AA/ZA;AACI;AAAa;AA+ZjB;AChaA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACE;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEI;AACJ;AACE;MACF;AAAA;IAEF;AAAA;AAEE;IACF;AAAA;AAEE;AACA;IACF;AAAA;EAEF;AAxBA;AACI;AAAa;AAwBjB;ACzBA;AAAA;AACI;AAAmB;AACnB;AAFJ;AAAA;AACI;AAAa;AAD0C;ACA3D;AAAA;AACI;AAAmB;AACnB;AAQJ;AACI;AAGJ;AASA;AACE;EACF;AAAA;AAMA;AAGA;AAMA;AAGA;AAMA;AAMA;AAUA;AACE;AACA;EACF;AAAA;AAYE;EACF;AAAA;AAmBE;EACF;AAkBA;AAIE;EACF;AAAA;AAyBE;AACA;EACF;AAAA;AAmBE;AACE;IACF;AAAA;AAEE;IACF;AAAA;EAEF;AAAA;AAjLA;AACI;AAAa;AAmLjB;ACpLA;AAAA;AACI;AAAmB;AACnB;AAFJ;AAAA;AACI;AAAa;AADyC;ACA1D;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACA;AACA;AACA;AACE;IACF;AAAA;AAEE;AACE;MACF;AAAA;AAEA;AACE;MACF;AACA;IACF;AAAA;EAEF;AAnBA;AACI;AAAa;AAmBjB;ACpBA;AAAA;AACI;AAAmB;AACnB;AAFJ;AAAA;AACI;AAAa;AADyC;ACA1D;AAAA;AACI;AAAmB;AACnB;AAMJ;AACI;AA0BJ;AACE;AACA;EACF;AAAA;AAtCA;AACI;AAAa;AAwCjB;ACzCA;AAAA;AACI;AAAmB;AACnB;AAFJ;AAAA;AACI;AAAa;AADqC;ACAtD;;AAAA;AACI;AAAmB;AACnB;AACJ;AAEI;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAA0F;AAzD9F;AACI;AAAa;AA2DjB;AC5DA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACA;AACA;AACA;AACA;AACE;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACE;MACF;AAAA;IAEF;AACA;AACE;IACF;AACA;AACE;AACI;AACA;AACA;AACA;AACJ;AACE;AACE;AACI;AACJ;QACF;MACF;AAAA;AAEE;AACE;AACE;UACF;AAAA;AAEA;AACE;UACF;AAAA;MAEJ;AAAA;AAEE;AACA;MACF;AAAA;AAEE;AACA;MACF;AAAA;AAEE;AACE;AACA;AACA;QACF;AAAA;IAEJ;AACA;AACE;AACA;AACE;MACF;AAAA;AAEA;AACE;AACE;AACE;UACF;AAAA;QAEF;MACF;AAAA;IAEF;AACA;AACE;AACE;MACF;AAAA;AAEA;AACE;MACF;AAAA;AAEA;AACE;AACA;AACE;QACF;AAAA;MAEF;AAAA;IAEF;AACA;AACE;AACA;AACE;AACE;AACA;AACA;AACE;AACE;YACF;AAAA;AACF;AAEE;UACF;AAAA;AACF;AACF;IAEF;AACA;AACE;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;AAEA;AACI;AACJ;AACE;AACA;AACA;MACF;AAAA;AAEE;AACA;AACA;AACA;AACA;AAA2B;AAE7B;AACE;MACF;AAAA;AAEE;AACE;QACF;AAAA;AAEA;AACA;AACE;AACI;AACJ;AACE;UACF;AAAA;AACF;AAEE;QACF;AAAA;AACF;IAEF;AACA;EACF;AAnKA;AACI;AAAa;AAmKjB;ACpKA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACI;AACA;AACA;AACJ;AACE;AACE;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AACE;AACE;QACF;AACE;QACF;AAAA;AACF;AAEF;AACE;AACA;AACE;MACF;AACE;AACA;AACA;MACF;AAAA;AAEF;AACE;AACA;AACE;AACA;AACA;MACF;AACE;AACA;AACE;AACA;AACA;AACA;AACA;QACF;AAAA;AAEA;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;AAEF;AACE;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AACE;MACF;AACE;AACA;AACE;AACE;UACF;AAAA;AACF;AAEE;QACF;AAAA;AACF;AAEF;AACE;AACA;AACE;MACF;AACE;AACA;AACA;MACF;AAAA;AAEF;AACE;AACE;AACA;MACF;AAAA;AAEI;AACJ;AACE;AACI;AACJ;AACA;AACA;AACA;AACA;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;AAEF;AACE;AACE;AACA;MACF;AAAA;AAEI;AACJ;AACE;AACI;AACJ;AACE;QACF;AACE;QACF;AAAA;AAEA;AACA;AACA;AACA;MACF;AAAA;AAEE;MACF;AAAA;AAEF;AACE;AACE;MACF;AACE;AACI;AACJ;AACE;AACI;AACA;AACJ;AACE;AACA;AACA;AACA;AACA;UACF;AACE;AACA;AACE;YACF;AAAA;AAEE;AACE;cACF;AAAA;AACF;AAEE;YACF;AAAA;AAEA;UACF;AAAA;AACF;AACF;AAEF;AACE;AACE;MACF;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACI;AACA;AACJ;AACE;AACA;AACE;AACE;UACF;AAAA;AACF;AAEE;QACF;AAAA;AAEA;AACE;QACF;AAAA;AAEA;MACF;AAAA;AAEE;AACE;AACE;UACF;AAAA;AACF;AACF;AAEE;AACE;AACE;UACF;AAAA;AACF;AACF;AAEE;AACE;AACE;UACF;AAAA;AACF;AACF;AAEE;AACE;AACE;UACF;AAAA;AACF;AACF;AAEE;AACE;AACE;UACF;AAAA;AACF;AACF;AAEE;AACE;AACE;UACF;AAAA;AACF;AACF;AAEE;AACE;AACE;UACF;AAAA;AACF;AACF;AAEE;AACE;AACE;UACF;AAAA;AACF;AACF;AAEF;AACE;AACE;MACF;AACE;MACF;AACE;AACA;AACE;AACA;AACA;AACA;AACA;QACF;AAAA;AACF;AAEF;AACE;AACE;MACF;AACE;MACF;AACE;AACA;AACE;AACA;AACA;AACA;AACA;QACF;AAAA;AACF;AAEF;AACE;AACE;MACF;AACE;MACF;AACE;AACA;AACE;AACA;AACA;AACA;AACA;QACF;AAAA;AACF;AAEF;AACE;AACE;MACF;AACE;AACA;AACA;MACF;AAAA;AAEF;AACE;AACE;MACF;AACE;AACI;AACJ;AACE;AACI;AACJ;AACA;AACA;AACA;AACA;QACF;AAAA;AACF;AAEF;AACE;AACE;MACF;AACE;AACE;QACF;AAAA;AACF;AAEF;AACE;AACE;MACF;AAAA;AAEF;AACE;AACE;MA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AACI;AACA;AAEA;AAEJ;AACI;AACA;AACA;AACA;AACI;AACI;AACA;AAAe;AAEnB;AACI;AACA;AAAe;AAEnB;AACI;AACA;AAAe;AAEnB;AACI;AACA;AAAU;AAEd;AACI;AACA;AAAe;AAEnB;AACI;AACA;AAAe;AAEnB;AACI;AACA;AACA;AAA4B;AAEhC;AACI;AACA;AAAU;AACd;AACJ;AACJ;AACJ;AA3JJ;AACI;AAAa;AA6JjB;AC9JA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAA0B;AAE5B;AACE;AACA;AACA;AACA;AACA;AACE;AACI;AACA;AACJ;AACE;AACA;AACE;UACF;AAAA;AACF;AAEA;AACA;AACE;AACA;AACE;UACF;AAAA;AACF;MAEF;AACE;MACF;AAAA;AAEE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;MACF;AAAA;AACF;AAEE;AACA;AACA;AACA;AACA;IACF;AACA;AACE;AACE;MACF;AAAA;AAEA;AACA;AACA;AACE;MACF;AAAA;AAEA;IACF;AACA;AACE;AACE;AACA;MACF;AAAA;AAEE;MACF;AAAA;AAEA;AACE;AACA;AACE;AACE;UACF;AACA;QACF;AAAA;MAEF;AAAA;AAEA;AACA;AACE;AACA;AACA;AACE;QACF;AAAA;AAEA;MACF;AAAA;AAEA;AACE;MACF;AAAA;AAEE;AACA;MACF;AAAA;AAEA;AACE;MACF;AAAA;AAEE;AACA;MACF;AAAA;AAEE;AACA;AACA;AACE;QACF;AAAA;AACF;AAEE;MACF;AAAA;AAEE;AACA;MACF;AACE;MACF;AAAA;AAEA;IACF;AACA;AACE;AACE;MACF;AAAA;AAEA;AACA;AACA;AACA;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACI;AACJ;AACE;AACA;AACE;AACA;AACE;UACF;AAAA;AACF;AAEE;QACF;AAAA;AACF;IAEF;AACA;AACE;AACI;AACA;AACJ;AACE;AACA;AACE;QACF;AAAA;AACF;IAEF;AACA;AACE;AACE;MACF;AACE;MACF;AAAA;IAEF;AACA;AACE;AACA;AACA;AACA;AACA;AACE;AACI;AACJ;AACE;QACF;AAAA;AAEE;QACF;AAAA;AAEA;AACA;AACE;AACA;AACA;AACA;AACA;AACE;AACE;YACF;AAAA;AACF;AACF;AAEE;AACE;AACE;YACF;AACE;YACF;AAAA;AACF;AACF;AAEF;AACA;AACE;MACF;AACA;AACA;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;EACF;AAxRA;AACI;AAAa;AAwRjB;ACzRA;AAAA;AACI;AAAmB;AACnB;AAFJ;AAAA;AACI;AAAa;AAD6C;ACA9D;AAAA;AACI;AAAmB;AACnB;AAFJ;AACE;AACA;AACA;AACA;AACA;AAKA;AACA;AAKA;AACE;AACE;AACA;AAGA;AAAqD;AAEvD;AAGA;AACE;AACA;AACA;AAAuE;AAEzE;AACE;AACA;AACA;AAA0D;AAE5D;AAGA;AACE;AACA;AAAoC;AAEtC;AACE;AACA;AAAoC;AAEtC;AAGA;AAGA;AAGA;AAGA;AAGA;AAGA;AACE;AACA;AAGA;AAAkB;AAEpB;AAEA;AAEF;AACE;AACE;AACA;AACA;AAIA;AACA;AAKA;AACE;AACE;AACA;AAAsD;AAExD;AACE;AACA;AAAqD;AAEvD;AACE;AACA;AAA0H;AAE5H;AACE;AACA;AAAiD;AAEnD;AAGA;AAEA;AACF;AAEF;AACE;AACA;AACA;AACA;AACE;AACE;AACA;AAAwE;AAE1E;AACE;AACA;AACA;AAAc;AAEhB;AACE;AACA;AACA;AAAgB;AAClB;AAEF;AAIA;AAEF;AACE;AACA;AAGA;AACA;AACE;AACE;AACA;AAA+F;AAEjG;AACE;AACA;AACA;AAAc;AAChB;AAEF;AAIA;AAEF;AACE;AA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AGA;AAGA;AAGA;AAGA;AAGA;AAGA;AAGA;AAGA;AAGA;AAGA;AAGA;AAGA;AAGA;AAGA;AAGA;AACE;AACA;AAGA;AACA;AAIA;AACF;AACF;AArjDF;AACI;AAAa;AAqjDjB;ACtjDA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACI;AACA;AACA;AACJ;AACA;AACA;AACE;AACA;AACA;AACE;IACF;AACE;AACA;AACA;IACF;AAAA;AACF;AAEE;AACE;AACA;AACA;AACA;AAAsB;EAE1B;AAAA;AAEE;AACA;AACA;AACE;AACA;AACE;MACF;AAAA;AAEF;EACF;AAAA;AApCI;AAAa;AAqCjB;ACtCA;AAAA;AACI;AAAmB;AACnB;AADJ;AADA;AACI;AAAa;AACjB;ACFA;AAAA;AACI;AAAmB;AACnB;AAFJ;AAAA;AACI;AAAa;AAD8C;ACA/D;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACI;AACA;AACA;AACA;AACJ;AACA;AACE;AACA;AACA;AACE;AACA;AACA;AACE;MACF;AAAA;AAEF;EACF;AAAA;AAEE;AACE;AACA;AACA;AACE;AACA;AACA;AACE;AACA;AACA;QACF;MACF;AAAA;EAEJ;AAAA;AAEE;AACA;AACA;AACE;IACF;AACE;IACF;AAAA;AAEE;IACF;AACE;IACF;AAAA;AAEE;AACE;MACF;AACA;AACE;MACF;AAAA;IAEF;AACA;AACA;AACA;EACF;AAAA;AAEE;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACE;IACF;AAAA;AACF;AAEE;AACA;AACE;AACE;AACE;QACF;AAAA;AACF;AACF;AAEE;IACF;AACE;AACE;MACF;AAAA;AAEA;AACE;MACF;AAAA;IAEF;AACA;AACE;IACF;AAAA;AACF;AAEE;AACE;AACA;AACI;AACJ;AACE;AACE;AACA;AACA;AAAK;AAEL;AACA;AACA;AAAK;AAEL;AACA;AAFK;AAIT;AACA;AACE;AACA;AACE;QACF;AAAA;AACF;EAEJ;AAAA;AAEE;AACE;AACA;AACE;AACA;AACE;QACF;AAAA;AACF;AACF;AACF;AAEE;AACE;IACF;AAAA;AAEA;AACE;AACA;AACA;IACF;AACA;AACE;AACA;AACE;MACF;AAAA;AACF;AACF;AAEE;AACE;IACF;AAAA;AAEE;IACF;AAAA;AACF;AAhKI;AAAa;AAiKjB;AClKA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACI;AACJ;AACA;AACA;AACA;AAPA;AACI;AAAa;AAOjB;ACRA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACI;AACJ;AACA;AACE;AACE;AACA;AAAS;AAEX;EACF;AAAA;AAXA;AACI;AAAa;AAYjB;ACbA;;AAAA;AACI;AAAmB;AACnB;AAEJ;AAJA;AACI;AAAa;AAIjB;ACLA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AAAY;AAEd;AACE;AACA;AACA;AAAa;AAEf;AACE;AACA;AACA;AAAY;AAEd;AACE;AACA;AACA;AACA;AAAqB;AAEvB;IACF;AAAA;AAEE;AACE;AACA;AACE;AACA;AACA;AACE;UACF;AACE;AACA;AACE;AACA;AACA;AACE;cACF;AAAA;AACF;AACF;AACF;AACF;AACF;AAjDF;AACI;AAAa;AAkDjB;ACnDA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACI;AACA;AACA;AACJ;AACA;AACE;AACA;AACA;EACF;AAAA;AAEE;AACA;AACE;IACF;EACF;AACA;AACE;AACA;AACA;AACE;AACA;IACF;EACF;AACA;AACA;AACE;AACA;EACF;AACA;AACE;AACA;AACE;IACF;AAAA;AAEF;AACE;AACE;AACA;IACF;AACE;IACF;AAAA;AAEF;AACE;EACF;AACA;AACE;AACA;AACA;AACA;AACE;IACF;AAAA;AAEA;EACF;AACA;AACE;AACA;AACA;AACA;AACE;IACF;AAAA;AAEA;EACF;AACA;AACE;AACA;AACA;EACF;AACA;AACE;AACA;AACA;AACE;AACE;MACF;IACF;AAAA;AAEE;AACE;AACA;AAAmF;IAEvF;EACF;AAAA;AAtFI;AAAa;AAuFjB;ACxFA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;EACF;AAGE;AACE;AACA;AACA;AACA;AACE;AACE;AACA;AACE;UACF;AAEE;AAAyB;AAC7B;AAEF;AACA;IACF;EAEF;AAAA;AAvBI;AAAa;AAwBjB;ACzBA;AAAA;AACI;AAAmB;AACnB;AAFJ;AAAA;AACI;AAAa;AAD8C;ACA/D;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AACA;AACA;AACA;AACA;AACA;AAPA;AACI;AAAa;AAOjB;ACRA;AAAA;AACI;AAAmB;AACnB;AADJ;AADA;AACI;AAAa;AACjB;ACFA;AAAA;AACI;AAAmB;AACnB;AADJ;AADA;AACI;AAAa;AACjB;ACFA;AAAA;AACI;AAAmB;AACnB;AADJ;AADA;AACI;AAAa;AACjB;ACFA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;EACF;AAHA;AACI;AAAa;AAGjB;ACJA;AAAA;AACI;AAAmB;AACnB;AAFJ;AAAA;AACI;AAAa;AADkC;ACAnD;AAAA;AACI;AAAmB;AACnB;AAmBJ;AACE;AACA;EACF;AAAA;AAIA;AAEA;AACA;AAIA;AAIA;AACE;AACE;AAA8C;AAEhD;EACF;AAEA;AACE;AAAQ;AAAS;AAAK;AAAM;AAAG;AAE/B;AACE;AAAiB;AAIjB;AAEE;AACA;AACE;QACF;AAAA;MAEF;AAAA;AACF;AAIA;AACE;AAAY;AAGZ;AAEE;AACE;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAGL;AACA;AACA;AACE;AAA0B;AAJvB;IAOX;AACE;AACA;AACA;AACE;AAA0B;AAG5B;AACA;AACE;AAA8B;AAClC;EAGF;AAEA;AACE;AAEA;AACE;AAA8C;AAG9C;AAAiB;AAKjB;AAEuC;AAIvC;OACG;AAEH;;AAGA;AAAmD;AAInD;AACA;AACE;MACF;AACE;MACF;AAAA;AAGE;AACA;AAIA;AAEE;QACF;AAAA;AACF;AACF;EAGF;AAEA;AAEA;AACE;AACE;AAA8C;AAIhD;AACE;AAEA;AACE;AACA;MACF;AAAA;AACF;AAGA;AAEA;EACF;AAGA;AACE;AAAU;AAAU;AAAQ;AAE5B;AACE;AAA8C;AAG9C;AAAW;AAGb;AACA;AAEA;AAEE;AACA;AACE;AAA2C;AAG7C;AACE;AAEE;AACA;QACF;AAAA;AACF;AAGE;AAAW;AAGX;AACA;MACF;AACE;MACF;AAAA;AAGE;AAA2C;AAC/C;EAGF;AAEA;AACE;AAAS;AAET;AACE;AAAW;AAIX;AACE;SACG;AACH;AAAyB;IAE7B;AAAA;AAIE;AACE;AAA8B;AAAQ;MAExC;AAAA;AAEA;AACA;IACF;AAAA;AAIA;AACE;IACF;AAEE;AACE;AAA0D;AAC9D;AAGA;EACF;AAEA;AACE;AACA;AACE;OACG;AACH;;AAEA;AAAgC;EAEpC;AAEA;AACE;AACA;AACE;OACG;AACH;;AAEA;AAAkC;EAEtC;AAEA;AACE;EACF;AAAA;AAGE;EACF;AAAA;AAGE;EACF;AAAA;AAGE;EACF;AAAA;AA3SI;AAAa;AA4SjB;AC7SA;AAAA;AACI;AAAmB;AACnB;AAFJ;AAAA;AACI;AAAa;AADkC;ACAnD;AAAA;AACI;AAAmB;AACnB;AADJ;AADA;AACI;AAAa;AAAuE;ACDxF;AAAA;AACI;AAAmB;AACnB;AAFJ;AAAA;AACI;AAAa;AADkD;ACAnE;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AAAW;AAEX;AADK;IAGX;AACA;AACE;AACE;MACF;AAAA;AACF;AAEE;AACA;AACA;AACE;AACE;AACA;AAAK;AAEP;AACE;AACA;AACA;AAAK;AAEL;AACA;AACA;AAAK;AAEL;AACA;AAFK;AAIT;AACA;AACA;IACF;AACA;AACE;AACA;AACE;AACA;AACA;AACA;AACE;QACF;AAAA;AAEA;AACA;AACA;AACE;AACA;AACA;QACF;AAAA;AAEA;AACE;QACF;AAAA;MAEF;AAAA;AAEA;AACA;AACE;AACA;MACF;AAAA;AAEA;AACA;AACA;AACE;AACA;AACA;AACA;AACA;AACA;MACF;AAAA;IAEF;AACA;AACE;AACA;AACE;AACA;AACE;AACA;QACF;AAAA;AAEE;AACA;QACF;AAAA;AAEE;AACA;QACF;AAAA;AACF;IAEF;AACA;AACE;AACA;AACE;AAAwB;AAExB;AACA;AACA;AACA;MACF;AAAA;IAEF;AACA;AACE;IACF;AAAA;AAEE;AACA;IACF;AAAA;AAEE;AACA;IACF;AAAA;AArIF;AACI;AAAa;AAsIjB;ACvIA;AAAA;AACI;AAAmB;AACnB;AAFJ;AAAA;AACI;AAAa;AAD8C;ACA/D;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACA;AACA;AACA;AACA;AACA;AACE;AACE;MACF;AAAC;AAEH;AACA;AACA;AACA;AACA;AACE;IACF;AACE;IACF;AAAA;AAEA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AAAiE;AAEnE;AACA;AACA;AACA;AACA;AACA;AACE;AACE;AAAuD;AAEzD;MACF;AAAA;AACF;AAEE;AACA;AACE;AAA4B;AAE9B;AACA;IACF;AAAA;AAEE;AACA;AACE;AACA;AACE;AACA;QACF;AAAA;AACF;IAEF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;AACE;MACF;AACE;AACA;AACE;AAAyB;AAE3B;AACE;AACA;QACF;AACE;AACA;QACF;AACE;AACE;AAAkC;AAElC;AAAqB;AAErB;AACA;UACF;AACE;AACA;AACE;;AAEA;AAAwB;AAExB;AAAoB;AACxB;QAEF;AAAA;AAEA;MACF;AAAA;IAEF;AAAA;AAEE;IACF;AAAA;AAEE;AACE;AAAuD;AAEzD;AACA;IACF;AACA;AACA;AACE;AACE;MACF;AACE;AACA;AACE;AAAW;MAEf;AAAA;IAEF;AAAA;AAEE;AACE;AAAQ;AAER;AAAsB;AAEtB;AACE;;AAEA;AAAmB;AACvB;AAEE;AAAQ;AAER;AAA8C;AAE9C;AACE;AACA;QACF;AACE;AAAmB;AACvB;IAEF;AAAA;AAEE;AACA;AACA;AACA;AACE;AAA6B;AAE7B;AACA;AACE;;AAEA;AAAkB;MAEtB;AAAA;AAEA;AACE;AACE;AAAiB;MAErB;AAAA;AAEA;AACA;AACE;AACA;MACF;AAAA;AAEE;AACA;MACF;AAAA;AAEE;AACA;AACA;AACA;AACE;AAAyB;AAE3B;MACF;AAAA;AAEE;AAA+B;AAEjC;AACE;;AAEA;AAAU;AAEV;AACA;MACF;AAAA;AAEA;AACE;AAAyB;AAEzB;AAAiB;AAEjB;AAAsB;IAE1B;AACA;AACE;AACA;AACE;MACF;AAAA;IAEF;AAAA;AAEE;AACE;AACA;AACE;AACA;QACF;AAAA;AACF;AAEA;IACF;AAAA;AAEE;AACA;AACA;AACE;AACA;AACA;AACE;AACE;UACF;;AAEA;AAAqB;AACzB;AACF;AAEE;AACA;AACA;IACF;AAAA;AAEE;AACE;AACA;AACE;QACF;MACF;AAAA;AACF;AAEE;AACA;AACE;AACA;AACA;AACE;;AAEA;AAAkB;AACtB;IAEF;AAAA;AAEE;IACF;AACA;AACE;AACA;AACA;AACE;AACE;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAFK;AAIT;AACA;AACA;AACA;AACA;AACE;;AAEA;AAAsB;AAExB;AACE;AACA;AACE;QACF;AAAA;AACF;AAEE;AACA;MACF;AAAA;AAEA;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AAAS;AACb;AAEA;AACE;AACA;AACA;AACE;AACA;AACA;QACF;AAAA;AACF;AAEE;AACA;AACA;AACA;AACE;AAAsB;AAC1B;AAEE;SACG;AACH;;AAEA;AAAkD;AAElD;AACA;MACF;AAAA;AAEA;AACE;AACA;AACA;MACF;AAAA;AAEA;AACE;AACA;MACF;AAAA;AAEA;AACE;AACA;MACF;AAAA;IAEF;AACA;AACE;AACE;AACA;AACA;AACE;AAAkB;AAElB;AACA;QACF;AAAA;IAEJ;AAAA;AAEE;AACA;AACE;AAAW;AAEX;AACE;AAAW;AAEX;AAAkB;AAEpB;AACA;AACA;AACE;AAAyB;MAE7B;AAAA;AAEE;AACA;AACA;AACA;AACA;AACA;AACE;AAA6B;MAEjC;AAAA;AAEA;AACE;AAAW;AAEb;AACA;AACE;AAA4B;AAE9B;IACF;AACA;AACE;AACA;AACE;MACF;AAAA;AAEE;AACA;AACE;AACA;AACA;AACA;AACE;AACA;AACE;AACA;YACF;UACF;AACE;UACF;AAAA;AACF;AACF;IAEF;AACA;AACA;AACE;AACA;AACE;AACA;AACA;AACE;AACA;QACF;AAAA;MAEF;AAAA;IAEF;AACA;AACE;AACE;AACA;AACE;QACF;MACF;AAAA;AACF;AAEE;AACA;AACA;AACA;AACE;AAAc;AAClB;AAEE;AACA;AACE;AACA;AACA;MACF;AAAA;IAEF;AACA;AACE;AACA;AACA;AACE;AACE;QACF;MACF;AAAA;AACF;AAEE;AACA;AACA;AACA;AACE;AACA;AACE;AACA;AACE;AAAgB;AACpB;MAEF;AACA;AACE;AACA;AACE;AAAkC;AAElC;AAAM;AAER;AACE;AACA;QACF;AAAA;AAEF;AACE;AACE;AACE;AACE;YACF;UACF;QACF;AAAA;AACF;AAEA;AACE;MACF;AACA;AACE;AACA;AACE;AACA;QACF;AAAA;AAEF;IACF;AACA;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACE;AAAW;AAEX;SACG;AACH;SACG;AACH;AACE;;AAEA;AAAiC;MAErC;AACE;AACE;AACA;AACA;QACF;AACE;QACF;AACE;AACE;;AAEA;AAAmB;AAErB;AACI;AACF;AACA;AACA;AACE;;AAEA;AAAwB;AAExB;;AAEA;AAAY;UAEhB;AAAA;AACF;AACF;IAEF;AAAA;AAEE;AACA;AACE;AAAyD;AAEzD;AACA;AACE;AACE;AACA;AACA;UACF;AAAA;MAEJ;AAAA;AACF;AAEE;AACI;AACF;MACF;AAAA;AACF;AAEE;AACI;AACF;AACE;AAAQ;AACZ;IAEF;AAAA;AA7mBF;AACI;AAAa;AA8mBjB;AC/mBA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACA;IACF;AAAA;AAEE;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AAAiE;AAEnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;MACF;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACA;AACE;AAA4B;AAE9B;AACA;IACF;AAAA;AAEE;IACF;AACA;AACE;AACA;AACA;AACE;MACF;IACF;AAAA;AAEE;AACA;AACE;AACA;AACA;AACE;QACF;AACA;MACF;AAAA;IAEF;AAAA;AAEE;AACA;AACA;AACE;AACA;MACF;AAAA;AAEE;SACG;AACH;AAAgC;AAEhC;AAAkB;AAElB;SACG;AACH;AACA;MACF;AAAA;IAEF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;AACE;AACA;AACE;AAAwB;AAC5B;AAEF;AACE;AACE;MACF;AAAA;IAEF;AAAA;AAEE;AACA;AACE;AAAmB;AAErB;AACA;AACA;AACE;AAAsB;AAEtB;;AAEA;AAAuD;IAE3D;AAAA;AAEE;AACA;AACA;AACA;AACA;AACE;;AAEA;AAA6C;IAEjD;AAAA;AAEE;AACE;AACE;AACA;QACF;SACG;AACH;AACA;MACF;AAAA;AAEA;IACF;AAAA;AAEE;AACA;AACA;AACA;IACF;AAAA;AAEE;AACA;AACA;AACA;AACA;AACE;SACG;AACH;AACA;AACE;QACF;AAAA;AAEE;AACE;UACF;QACF;AACE;QACF;AAAA;AACF;AACF;AAEE;AACE;AAA2B;AAE7B;AACA;IACF;AAAA;AAEE;AACE;AACA;MACF;AAAA;AACF;AAEE;AACA;AACE;AACA;AACE;AAAkC;AAEpC;AACE;AACE;AACA;UACF;AAAA;AAEF;MACF;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;UACF;AAAA;AACF;AAEE;;AAEA;AAAuB;AAC3B;IAEF;AAAA;AAEE;IACF;AACA;AACA;AACE;AACA;AACE;AACA;AACA;MACF;AACE;AACA;MACF;AAAA;AAEE;AAA2B;AAE3B;AACA;MACF;AAAA;AAEE;AAA4B;AAEhC;AACE;IACF;AAAA;AAEE;AACE;AACA;MACF;AAAA;AACF;AAEE;AACA;AACE;AACE;AACA;AACA;QACF;AACE;AAAwB;AAC5B;IAEF;AAAA;AAEE;AACA;AACA;AACE;AACE;;AAEA;AAAyB;AAC7B;IAEF;AAAA;AA1RF;AACI;AAAa;AA2RjB;AC5RA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACA;AACE;AACA;AACE;AAAc;IAElB;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;AAAqD;AAEzD;AACE;AACE;AAA0B;AAE5B;AACA;AACE;AAAqB;AAErB;AAAqB;AAEvB;AACE;AAA0B;IAE9B;AAAA;AAEE;AACE;AAAM;IAEV;AAAA;AAEE;AACI;AACF;MACF;AAAA;AACF;AA1CF;AACI;AAAa;AA2CjB;AC5CA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACA;AACA;AACA;AACA;AACA;AACE;AACE;MACF;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACA;AACA;AACA;AACE;AAAuE;AAEzE;AACA;AACE;AAAiB;AAEjB;AAAM;AAER;AACA;AACE;MACF;AAAA;AACF;AAEE;AACE;AAA6B;AAE/B;AACA;AACA;AACA;AACA;AACE;AACE;AACE;UACF;;AAEA;AAAY;IAElB;AAAA;AAEE;AACA;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACA;AACA;AACA;AACE;AACA;AACE;AAA4B;AAChC;AAEF;AACE;AACA;AACE;AACA;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;AAA+B;AAEjC;AACA;AACE;AAA6D;AAE7D;AAAiE;IAErE;AAAA;AAxFF;AACI;AAAa;AAyFjB;AC1FA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACE;AACE;MACF;AAAA;IAEF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACA;AACE;IACF;AAAA;AAhEF;AACI;AAAa;AAiEjB;AClEA;AAAA;AACI;AAAmB;AACnB;AAFJ;AAAA;AACI;AAAa;AAD0C;ACA3D;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AACA;AACA;AACA;AACA;AACE;AACE;AAA+B;EAEnC;AAAA;AAEE;EACF;AAbA;AACI;AAAa;AAajB;ACdA;AAAA;AACI;AAAmB;AACnB;AADJ;AADA;AACI;AAAa;AACjB;ACFA;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEE;AACA;AACE;AACE;AACE;QACF;AAAA;AACF;AACF;AAEA;AACE;AACE;MACF;AAAA;AACF;AAEA;AACE;AACA;IACF;AAAA;AAEA;AACE;AACE;AAAM;AAER;IACF;AAAA;AAEE;AACE;AAAM;AAER;AACE;AAAc;AAClB;AAEE;AACA;AACE;MACF;AAAA;AACF;AAEA;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEA;AACA;AACA;AACA;EACF;AAxEA;AACI;AAAa;AAwEjB;ACzEA;AAAA;AACI;AAAmB;AACnB;AAFJ;AAAA;AACI;AAAa;AAD4C;ACA7D;AAAA;AACI;AAAmB;AACnB;AADJ;AADA;AACI;AAAa;AAAkF;ACDnG;AAAA;AACI;AAAmB;AACnB;AAFJ;AAAA;AACI;AAAa;AADkD;ACAnE;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AACA;AACE;AACA;EACF;AACA;AACA;AACE;AACA;AAAY;AAEd;AACE;AACA;AACA;AACE;AACA;AACE;AAAQ;AAEV;AACE;AACI;AACJ;AACE;AACE;UACF;AACE;UACF;AAAA;AAEA;QACF;AAAA;AAEA;MACF;AAAA;AACF;EAEF;AAAA;AAEE;AACA;AACE;AAAuC;AAEvC;AAAmB;EAEvB;AACA;AACE;EACF;AACA;AACE;AACE;AACE;AACA;MACF;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEA;AACE;AACE;AACA;AACA;QACF;AAAA;AACa;AAEb;MACF;AACE;MACF;AAAA;AAEA;AACE;AACA;MACF;AAAA;AAEA;AACE;MACF;AACE;AAAgB;IAEpB;AAAA;AAEF;AACE;AACA;AACE;AACA;AACA;IACF;AAAA;AAEE;AACA;IACF;AAAA;AAEF;AACE;EACF;AApGA;AACI;AAAa;AAoGjB;ACrGA;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AAAC;AAEC;AACA;AAEA;AACE;IACF;AAAA;AAEA;AAIA;AAEE;AAEa;AAAU;AAAS;AAAa;AAQ3C;AACA;AACE;QACF;AAAA;MAEF;AAAA;IAEF;AAIA;AAEE;AACA;AACE;MACF;AAAA;AAGc;AAAI;AAAQ;AAAS;AAUjC;MACF;AAAA;IAEF;EAEF;AA7DA;AACI;AAAa;AA6DjB;AC9DA;AAAA;AACI;AAAmB;AACnB;AAFJ;AAAA;AACI;AAAa;AADkC;ACAnD;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AACA;AACA;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACE;IACF;AAAA;AAEE;IACF;AAAa;AAEX;AACE;MACF;AAAa;AAEf;AACE;IACF;AACA;AACA;AACE;AACA;AACE;AACA;AACE;AAAQ;AAEV;MACF;AAAA;AACF;AAEE;IACF;AAAA;AAEA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACE;AAAM;IAEV;EACF;AACA;AACA;AACE;EACF;AACA;AACE;EACF;AACA;AACE;EACF;AACA;AACE;EACF;AACA;AACE;AACA;AACA;EACF;AACA;AACE;AACE;AAAiB;AAEnB;AACE;AACA;AACA;AACE;AACE;QACF;AAAA;AAEA;AAAqC;AACzC;AAEE;IACF;AACE;IACF;AACE;AACA;AACE;MACF;AAAA;IAEF;AACE;AACA;AACE;MACF;AAAA;AAEA;AACA;AACE;AACA;AACE;QACF;AAAA;AACF;IAEF;AACE;IACF;AACE;AACA;AACE;MACF;AAAA;IAEF;AAAA;AAEF;AACA;AACE;AACE;AAAY;EAEhB;AACA;AACE;AACA;AACE;AAAc;EAElB;AACA;AACE;EACF;AACA;AACE;AACE;AAAoB;AAEpB;AACE;AAAQ;AACZ;EAEF;AACA;AACE;AACE;AAAW;AAEX;AAAW;AAEX;AAAW;AAxJf;AACI;AAAa;AAyJjB;AC1JA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;EACF;AACE;AACA;AACA;AACA;AACA;AACE;AACE;MACF;AAAA;AAEE;AAAW;AAEX;MACF;AAAA;AAEE;MACF;AAAA;AAEE;AACE;QACF;AACE;QACF;AAAA;AACF;AAEE;MACF;AAAA;AAEE;AACE;QACF;AAAA;MAEF;AAAA;AAEE;AAAoD;AAEtD;AACE;AAAsB;IAE1B;AACA;AACE;AACA;AACA;AACA;IACF;AACA;AACA;AACA;AACE;AACE;MACF;AACE;MACF;AACE;AACA;AACE;AACE;AACA;AACE;AACE;AACA;AACA;cACF;AACE;cACF;AAAA;UAEJ;AAAa;AACf;MAEF;AACE;MACF;AAAA;AAEF;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAqC;EAEzC;AAAA;AAtII;AAAa;AAuIjB;ACxIA;AAAA;AACI;AAAmB;AACnB;AAFJ;AAAA;AACI;AAAa;AADgD;ACAjE;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AACA;AACE;AACE;AAAsB;AAC1B;AAEA;AACE;AACE;AAAW;AAEb;EACF;AAbA;AACI;AAAa;AAajB;ACdA;AAAA;AACI;AAAmB;AACnB;AAFJ;AAAA;AACI;AAAa;AAD2C;ACA5D;AAAA;AACI;AAAmB;AACnB;AADJ;AADA;AACI;AAAa;AAAgF;ACDjG;AAAA;AACI;AAAmB;AACnB;AAFJ;AAAA;AACI;AAAa;AADiD;ACAlE;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACA;AACI;AACA;AACA;AACA;AACA;AACJ;AACA;AACE;AACE;AACA;AACA;AACA;AACE;AACE;UACF;AACE;AACE;YACF;AACE;YACF;AACE;AACA;AACA;YACF;AAAA;AAEA;UACF;AACE;UACF;AAAA;AAEA;QACF;MACF;IACF;AAAA;AAEE;AACE;AACA;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AAA4C;AAE9C;AACE;QACF;AAAA;AAEE;QACF;AACA;AACA;AACE;AACA;AACE;UACF;AACA;AACA;AACE;UACF;QACF;MACF;IACF;AAAA;AApEF;AACI;AAAa;AAqEjB;ACtEA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACA;AACI;AACA;AACJ;AACA;AACE;AACA;AACE;AACE;AACA;AACA;QACF;AACE;AACA;AACA;QACF;AACE;QACF;AAAA;AAEA;AACA;AACE;AACA;QACF;AACE;QACF;AAAA;AACF;AAEE;MACF;AAAA;IAEF;AAAA;AAEE;IACF;AAAA;AArCF;AACI;AAAa;AAsCjB;ACvCA;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AACE;AACE;AACA;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;AAEA;AACE;AACE;QACF;MACF;AACE;MACF;AAAA;AAEA;AACA;AACA;AACA;AACA;AACE;AACA;AACA;AACA;AACE;AACE;UACF;AACE;UACF;AAAA;AACF;AAEF;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEA;AACA;AACA;AACA;AACA;AACE;AACE;QACF;MACF;AAAA;AAEE;AACE;QACF;MACF;AAAA;AAEE;AACA;AACA;AACA;AACA;AACE;QACF;MACF;AAAA;AAEE;AACA;AACA;AACE;QACF;MACF;AAAA;AAEE;AACE;QACF;MACF;AAAA;AAEA;AACE;AACE;AACA;AACA;AACA;AACA;QACF;AAAA;MAEF;AAAA;AAEE;AACE;AACA;AACA;AACA;QACF;AACE;QACF;AAAA;AACF;AAEA;AACE;MACF;AACE;MACF;AACE;MACF;AACE;MACF;AACE;MACF;AAAA;AAC4C;AAE5C;AACA;AACA;AACA;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;AACE;QACF;AACE;AACA;QACF;AAAA;AACF;AAEE;AACE;QACF;AACE;QACF;AAAA;AACF;AAEE;AACE;AACA;AACE;AACE;YACF;AAAA;AAEA;AACE;YACF;AACE;YACF;AAAA;AAEA;AACE;YACF;AAAA;AAEA;UACF;AACA;AACE;AACA;UACF;AAAA;MAEJ;AAAA;AAEE;AACE;QACF;AACE;QACF;AACE;AACE;UACF;AACE;UACF;QACF;AAAA;AACF;AAEE;AACE;QACF;AACE;AACA;AACE;UACF;AACE;UACF;AACE;UACF;AACE;UACF;AAAA;AACF;AACF;AAEE;AACE;QACF;AACE;QACF;AACE;QACF;AAAA;AACF;AAEE;AACE;QACF;AAAA;MAEF;AAAA;AAEE;AACE;QACF;AAAA;AAEA;AACA;AACE;QACF;AAAA;AACF;AAEE;AACE;QACF;AAAA;AAEA;AACA;MACF;AAAA;AAEE;AACA;AACA;AACA;AACA;AACA;AACA;AACE;QACF;AAAA;AACF;AAEE;AACA;AACA;AACE;QACF;AAAA;AAEI;AACA;AACJ;AACE;AACA;AACA;AACE;UACF;AACE;UACF;AAAA;AACF;MAEF;AAAA;AAEE;MACF;AAAA;AAEA;AACE;AACE;QACF;AACE;AACA;QACF;AAAA;AACF;AAEE;AACI;AACA;AACA;AACA;AACJ;AACE;AACA;AACE;AACA;AACA;UACF;AACE;UACF;AAAA;AAEE;AACA;UACF;AAAA;AAEA;AACA;QACF;AAAA;AAEE;QACF;AACE;QACF;AACE;QACF;AACE;QACF;AAAA;AACF;AAEE;AACE;AACE;UACF;AACE;UACF;QACF;AACE;QACF;AAAA;AACF;AAEE;AACA;AACA;AACA;AACE;AACA;AACA;AACA;AACA;AACE;UACF;AACE;AACA;AACA;AACE;YACF;AAAA;AACF;AAEA;QACF;AAAA;AACF;AAEE;MACF;AACA;AACE;MACF;AACA;AACE;MACF;AACA;AACA;AACE;AACA;AACA;AACA;AACA;AACE;QACF;AAAA;AAEF;AACE;AACA;AACA;AACE;AACE;AACA;UACF;AACE;UACF;AAAA;AAEA;AACA;QACF;AAAA;AAEF;AACE;AACA;AACA;AACE;AACA;AACE;UACF;AACE;UACF;AAAA;AACF;AAEE;QACF;AAAA;AAEF;AACE;AACA;AACE;QACF;AACE;QACF;MACF;AACA;AACE;MACF;AAAA;AAEA;AACE;AACA;AACA;AACE;AACA;QACF;AAAA;AAEA;AACE;QACF;AAAA;AAEE;QACF;AAAA;AAEE;QACF;AAAA;MAEF;AAAA;AAEA;AACE;AACA;AACE;QACF;AAAA;AAEA;AACA;MACF;AAAA;AAEA;AACE;AACA;AACA;AACA;MACF;AAAA;AAEA;AACA;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEA;AACE;AACA;AACA;AACA;AACA;AACE;AACE;UACF;AAAA;AAEE;UACF;AAAA;QAEF;AAAA;AACF;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACE;AACA;AACA;AACE;UACF;AAAA;AAEA;AACA;AACE;AACA;AACE;YACF;UACF;AACE;UACF;AAAA;QAEF;AACA;AACE;QACF;AAAA;AAEF;AACE;AACA;AACE;QACF;AACE;QACF;AACE;AACE;UACF;AACE;UACF;AAAA;AACF;AAEA;AACE;QACF;AAAA;MAEF;AAAA;AAEA;AACE;AACA;AAA4C;AAE9C;AACE;AACE;QACF;MACF;AACE;MACF;AACE;MACF;AAAA;IAEF;EACF;AA5gBA;AACI;AAAa;AA4gBjB;AC7gBA;AAAA;AACI;AAAmB;AACnB;AAFJ;AAAA;AACI;AAAa;AADiD;ACAlE;;AAAA;AACI;AAAmB;AACnB;AAEJ;AAJA;AACI;AAAa;AAIjB;ACLA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACA;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACA;AACE;AACE;AACA;AACA;AACA;AACE;AACA;AACE;AACA;AAAW;QAEf;AAAA;AAEA;MACF;AACE;MACF;AAAA;AACF;AAEE;AACE;AACA;AACE;AACE;AACA;AACA;AACE;AACA;AAAY;UAEhB;QACF;AACE;QACF;AAAA;AAEA;MACF;AAAA;AACF;AAEE;AACE;MACF;AAAA;AAEA;AACE;AACA;AACE;QACF;AACE;QACF;AAAA;AAEA;AACE;AACE;AACE;YACF;AACE;YACF;AAAA;QAEJ;AACE;QACF;AAAA;IAEJ;AAAA;AAEE;AACA;AACE;MACF;AAAA;AAEE;AACA;MACF;AACE;AACA;MACF;AAAA;AACF;AAvFF;AACI;AAAa;AAwFjB;ACzFA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACI;AACA;AACA;AACA;AACA;AACJ;AACA;AACE;AACE;AACE;MACF;AAAA;AAEA;AACA;IACF;AACE;IACF;AAAA;AACF;AAEE;AACA;AACE;AACE;AACA;AACA;AACE;AACA;QACF;AACE;QACF;AAAA;IAEJ;AAAA;EAEF;AAAA;AAEE;AACA;AACA;AACE;AACE;AACA;AACA;MACF;AAAA;EAEJ;AAAA;AA9CI;AAAa;AA+CjB;AChDA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACI;AACA;AACA;AACJ;AACA;AACE;AACA;AACA;AACA;EACF;AAAA;AAEE;AACE;AACA;AACA;AACE;MACF;AAAA;AAEE;AACA;AACA;AACA;AACE;AACE;UACF;AACE;UACF;AAAA;AAEA;QACF;AAAA;IAEJ;AAAA;AACF;AAEE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAiB;AAEnB;EACF;AAAA;AAEE;AACE;AACE;MACF;AACE;MACF;AACE;MACF;AACE;MACF;AACE;MACF;AACE;MACF;AAAA;AAEF;AACI;AACA;AACJ;AACE;AACA;AACE;MACF;AACE;AACA;AACA;AACA;AACA;AACE;QACF;AAAA;AAEA;MACF;AAAA;IAEF;EACF;AAAA;AA/FI;AAAa;AAgGjB;ACjGA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACA;AACE;IACF;AACA;AACE;AACE;AACE;AACE;UACF;QACF;AACE;AACE;UACF;QACF;AACA;MACF;AACE;MACF;AAAA;EAEJ;AAtBA;AACI;AAAa;AAsBjB;ACvBA;AAAA;AACI;AAAmB;AACnB;AAFJ;AAAA;AACI;AAAa;AADwC;ACAzD;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACE;AACA;AACA;AACA;AACA;EACF;AAAA;AAEE;AACI;AACA;AACA;AACA;AACJ;AACE;IACF;AAAA;AAEA;AACA;AACA;AACA;AACE;AACA;AACE;AACA;AACA;MACF;AAAA;AACF;AAEA;AACA;AACE;AACA;AACE;AACA;AACA;MACF;AAAA;AACF;AAEA;EACF;AACA;AACE;AACI;AACJ;AACE;IACF;AAAA;AAEA;AACE;AACA;AACE;MACF;AAAA;AACF;EAEF;AACA;AA3DA;AACI;AAAa;AA2DjB;AC5DA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEE;EACF;AAAA;AAEE;EACF;AAAA;AAEE;EACF;AAAA;AAEE;AACA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;EAEF;AAAA;AAEE;AACE;IACF;AAAA;AAEE;IACF;AAAA;AAEE;IACF;AAAA;EAEF;AAAA;AAEE;AACE;IACF;AAAA;EAEF;AAAA;AAEE;EACF;AAAA;AAEE;AACE;IACF;AAAA;EAEF;AAAA;AAEA;AACA;AACE;AACA;EACF;AAAA;AAEE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACF;AAAA;AAEE;EACF;AAAA;AAEE;EACF;AAAA;AAEE;AACE;IACF;AAAA;AACF;AAEE;AACE;AACI;AACA;AACJ;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEA;AACE;MACF;AAAA;AAEA;AACA;AACE;MACF;AAAA;AAEA;AACA;AACE;MACF;AAAA;AAEF;AACE;AACI;AACJ;AACE;MACF;AAAA;AAEA;AACA;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;IAEF;AAAA;AAEF;AACE;AACI;AACA;AACA;AACJ;AACE;AACA;AACE;AACE;AACA;AACE;UACF;AAAA;AACF;AAEA;MACF;AAAA;IAEF;AAAA;AACF;AAEE;AACI;AACA;AACA;AACJ;AACE;IACF;AAAA;AAEA;AACE;AACA;AACE;AACA;MACF;AAAA;AACF;AACF;AAEE;AACI;AACJ;AACA;AACE;IACF;AAAA;AAEE;AACE;AACE;QACF;AAAA;AAEA;MACF;AAAA;AAEA;AACE;MACF;AAAA;AAEA;IACF;AAAA;EAEF;AAAA;AAEE;AACA;AACA;AACE;IACF;AACE;AACA;AACE;MACF;AAAA;AAEA;IACF;AAAA;AAEA;EACF;AAAA;AAEE;AACI;AACJ;AACE;AACE;MACF;AAAA;AAEE;AACE;QACF;MACF;AAAA;AAEE;AACA;AACA;AACA;AACA;AACE;AACA;QACF;AAAA;AAEA;MACF;AAAA;AACF;AAEE;IACF;AAAA;EAEF;AAAA;AAEE;AACI;AACJ;AACA;AACE;AACA;AACA;AACE;MACF;AAAA;AACF;EAEF;AAAA;AAEE;AACE;IACF;AACE;IACF;AAAA;AACF;AAEE;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACA;AACE;IACF;AAAA;AAEE;AACA;AACE;MACF;AAAA;AACF;AAEA;AACA;AACA;AACA;AACE;AACE;AACA;AACE;QACF;AAAA;AAEA;AACA;AACE;QACF;AAAA;AAEA;MACF;AACE;AACA;AACA;AACA;AACA;AACE;AACA;AACA;QACF;AACE;AACA;AACA;AACA;AACA;QACF;AAAA;AACF;AAEE;AACA;AACA;AACA;MACF;AAAA;AAEE;MACF;AAAA;IAEF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACA;EACF;AAAA;AAEE;AACI;AACA;AACJ;AACA;AACE;IACF;AAAA;AAEA;AACA;AACA;AACA;AACE;AACE;AACA;AACA;AACE;AACA;QACF;AACE;QACF;AAAA;AAEA;AACA;AACA;MACF;AACE;MACF;AACE;AACA;MACF;AAAA;AACF;EAEF;AAAA;AAEE;AACI;AACA;AACA;AACA;AACA;AACJ;AACA;AACE;IACF;AAAA;AAEA;AACA;AACA;AACA;AACE;AACE;AACA;AACA;MACF;AACE;AACA;AACA;AACE;QACF;AACE;AACA;QACF;AACE;AACA;AACA;AACE;AACA;AACE;YACF;AACE;YACF;AAAA;AACF;AAEA;QACF;AACE;QACF;AAAA;MAEF;AACE;AACA;AACA;MACF;AACE;MACF;AACE;AACA;MACF;AAAA;AACF;EAEF;AAAA;AAEE;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACA;AACE;AACA;AACA;IACF;AACE;AACA;AACA;IACF;AACE;IACF;AAAA;AAEE;IACF;AAAA;AAEA;AACE;AACA;AACA;AACE;AACA;AACA;AACA;AACA;AACA;MACF;AACE;MACF;AAAA;AAEA;AACA;AACE;AACA;AACE;AACA;AACA;QACF;AAAA;AACF;AAEA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACA;AACA;AACA;MACF;AAAA;AAEE;MACF;AACE;MACF;AACE;MACF;AAAA;AAEA;AACA;AACE;AACA;MACF;AACE;MACF;AAAA;AACF;EAEF;AAAA;AAEE;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACA;AACE;IACF;AACE;IACF;AACE;IACF;AAAA;AAEA;AACA;AACE;AACA;AACE;AACE;QACF;AACE;QACF;AAAA;AAEA;AACE;QACF;AACE;AACA;QACF;AACE;QACF;AAAA;AAEA;MACF;AAAA;AACF;AAEE;AACE;MACF;AACA;AACE;AACE;QACF;MACF;AAAA;AACF;AAEE;AACA;AACA;AACA;AACE;AACA;MACF;AAAA;AAEE;MACF;AAAA;AAEE;AACA;MACF;AAAA;AAEE;AACE;QACF;AACE;AACE;UACF;AAAA;AACF;MAEF;AAAA;AAEE;AACE;AACA;QACF;AACE;AACA;QACF;AACE;AACE;UACF;AAAA;AAEA;QACF;AAAA;AAEA;MACF;AACE;MACF;AAAA;AAEA;AACA;AACA;AACE;MACF;AAAA;IAEF;AAAA;EAEF;AAAA;AAEE;AACI;AACA;AACA;AACA;AACA;AACA;AACJ;AACE;IACF;AAAA;AAEA;AACE;AACE;MACF;AAAA;AAEA;AACE;MACF;AAAA;AAEA;AACA;AACE;AACE;AACA;AACA;QACF;AAAA;AACF;AAEA;AACA;AACA;AACA;AACA;AACE;MACF;AACE;MACF;AAAA;AACF;AAEE;AACA;AACA;AACA;AACA;IACF;AAAA;EAEF;AAAA;AAEE;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACE;IACF;AAAA;AAEA;AACE;AACA;AACA;AACE;AACE;AACE;AACA;UACF;AAAA;AAEA;AACA;QACF;AACE;AACA;QACF;AACE;QACF;AAAA;AAEA;MACF;AACE;AACE;AACA;AACE;UACF;AAAA;AAEE;AACA;AACE;YACF;AAAA;AAEE;AACA;YACF;AAAA;AAEA;AACA;AACA;AACA;UACF;AACE;UACF;AACE;AACA;AACA;UACF;AAAA;AAEA;QACF;AACE;AACA;AACA;QACF;AAAA;AAEA;MACF;AAAA;AAEE;AACE;AACE;UACF;AACE;UACF;AAAA;AACF;AAEE;AACA;QACF;AAAA;AAEA;MACF;AAAA;AAEE;MACF;AACE;MACF;AAAA;AACF;AAEE;IACF;AAAA;AAEE;AACA;AACA;AACA;IACF;AAAA;EAEF;AAAA;AAEE;AACI;AACA;AACA;AACA;AACA;AACJ;AACA;AACE;IACF;AAAA;AAEE;IACF;AAAA;AAEA;AACE;AACA;IACF;AACE;AACA;AACA;IACF;AACE;IACF;AAAA;AAEA;AACE;AACE;MACF;AACA;AACE;AACA;MACF;AACE;MACF;AAAA;AAEA;AACE;AACE;AACE;AACA;AACE;YACF;AAAA;AAEA;UACF;AACE;UACF;AAAA;AACF;MAEF;AAAA;AAEA;AACE;MACF;AAAA;AACF;AAEE;IACF;AAAA;AAEE;IACF;AACE;IACF;AACE;IACF;AACE;IACF;AACE;IACF;AAAA;EAEF;AAAA;AAEE;AACI;AACJ;AACA;AACE;IACF;AAAA;AAEE;IACF;AAAA;AAEA;AACA;AACE;IACF;AAAA;AAEE;IACF;AAAA;AAEA;EACF;AAAA;AAEE;AACI;AACA;AACJ;AACA;AACE;IACF;AAAA;AAEA;AACA;AACE;IACF;AAAA;AAEE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACA;EACF;AAAA;AAEE;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACA;AACA;AACA;AACA;AACA;AACE;AACE;AACA;AACE;QACF;AACE;QACF;AACE;QACF;AAAA;AACF;AACF;AAEE;AACE;AACE;AACA;AACA;AACE;UACF;AACE;UACF;AACE;UACF;AAAA;AAEA;QACF;AAAA;AACF;AACF;AAEE;IACF;AAAA;AAEE;AACE;MACF;AACE;MACF;AAAA;AAEA;AACE;AACE;QACF;AACE;AACE;UACF;AACE;AACA;AACE;YACF;AAAA;AAEA;AACA;AACE;YACF;AAAA;AACF;AAEE;UACF;AAAA;AACF;AAEA;MACF;AAAA;AACF;AAEE;AACE;AACE;AACA;AACE;AACA;AACA;AACE;YACF;AAAA;UAEF;AAAA;AACF;AAEA;AACA;AACE;QACF;AAAA;AAEE;QACF;AACE;AACA;AACE;UACF;AAAA;AACF;AAEA;MACF;AAAA;AACF;EAEF;AAAA;AAEE;AACI;AACA;AACA;AACA;AACA;AACJ;AACA;AACA;AACA;AACA;AACE;AACA;AACA;AACE;MACF;AAAA;AAEA;AACA;AACA;AACE;MACF;AAAA;AAEA;AACA;AACE;MACF;AAAA;AAEE;AACE;QACF;AAAA;AAEE;AACE;UACF;AACA;QACF;AAAA;AAEE;QACF;AAAA;AAEA;AACE;QACF;AAAA;MAEF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AACE;MACF;AAAA;AACF;AAEA;AACE;AACA;IACF;AACE;IACF;AAAA;AAEA;AACA;AACE;IACF;AAAA;AAEA;AACE;AACE;AACA;MACF;AAAA;IAEF;AAAA;AAEE;IACF;AACE;IACF;AAAA;AACF;AAEE;AACA;AACA;AACE;AACE;MACF;AAAA;AAEE;MACF;AAAA;AACF;AAEA;AACA;AACE;AACA;IACF;AAAA;AAEE;IACF;AAAA;EAEF;AAAA;AAEE;AACI;AACA;AACJ;AACE;IACF;AAAA;AACF;AAEE;AACA;AACE;IACF;AACE;IACF;AAAA;EAEF;AAAA;AAEE;EACF;AAAA;AAEE;EACF;AAAA;AAEA;AACA;AACA;AAhoCA;AACI;AAAa;AAgoCjB;ACjoCA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACI;AACA;AACA;AACA;AACA;AACA;AACJ;AACE;IACF;AAAA;AAEA;AACA;AACE;AACA;AACA;AACE;MACF;AAAA;AAEA;AACE;MACF;AAAA;IAEF;AAAA;EAEF;AAAA;AAEE;AACI;AACA;AACJ;AACA;AACE;AACA;IACF;AACE;AACA;IACF;AACE;AACA;IACF;AACE;IACF;AAAA;EAEF;AAAA;AAEE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACF;AAAA;AAEE;AACI;AACA;AACA;AACA;AACA;AACJ;AACE;AACA;AACE;AACA;MACF;AACE;AACA;MACF;AAAA;AAEE;MACF;AAAA;IAEF;AAAA;EAEF;AAAA;AAEE;EACF;AAAA;AAEE;AACI;AACA;AACJ;AACE;AACA;AACE;MACF;AAAA;AACF;EAEF;AAAA;AAEE;AACA;AACA;EACF;AAAA;AAEE;AACA;AACE;AACA;AACA;AACA;IACF;AAAA;AAEA;AACA;EACF;AACA;AACE;AACI;AACJ;AACA;AACA;AACA;AACA;EACF;AACA;AACE;AACE;IACF;AAAA;AAEF;AACE;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACE;AACA;IACF;AAAA;AAEE;AACA;IACF;AAAA;AAEA;AACA;AACA;AACE;IACF;AAAA;AAEE;AACE;MACF;AAAA;AAEA;IACF;AACE;AACA;IACF;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;IACF;AAAA;AAEE;IACF;AACE;IACF;AAAA;AAEE;AACA;AACE;AACE;QACF;AACE;QACF;AAAA;AACF;AAEE;MACF;AAAA;AAEA;AACA;AACE;MACF;AAAA;AAEE;AACA;MACF;AACE;AACA;AACA;AACE;AACA;AACE;AACA;UACF;AAAA;AACF;AAEE;AACA;AACA;AACE;UACF;AAAA;AACF;AACF;AAEE;MACF;AAAA;AAEA;IACF;AAAA;AAEE;IACF;AAAA;AAEA;AACE;AACA;AACE;AACA;AACE;QACF;AAAA;AACF;AAEE;MACF;AACE;MACF;AAAA;AACF;AAEE;IACF;AAAA;AAEE;IACF;AAAA;AAEE;IACF;AACE;IACF;AACE;AACA;IACF;AACE;AACE;MACF;AAAA;IAEF;AACE;AACA;IACF;AACE;IACF;AAAA;EAEF;AAAA;AAEE;AACI;AACA;AACA;AACA;AACJ;AACE;IACF;AAAA;AAEE;AACA;AACE;AACE;QACF;AAAA;AAEA;MACF;AACE;AACE;QACF;AAAA;AAEA;MACF;AAAA;AACF;AAEE;IACF;AAAA;EAEF;AAAA;AAEE;AACE;IACF;AAAA;AAEI;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACE;AACA;AACE;AACE;QACF;AACE;QACF;AAAA;AAEE;QACF;AAAA;AAEA;AACA;MACF;AAAA;AAEA;IACF;AAAA;AAEE;IACF;AAAA;AAEE;IACF;AACE;IACF;AAAA;EAEF;AAAA;AAEE;EACF;AAAA;AAEE;EACF;AAAA;AAEE;AACI;AACA;AACA;AACJ;AACE;AACE;AACE;QACF;AAAA;MAEF;AAAA;AACF;AAEA;EACF;AAAA;AAEE;AACI;AACA;AACA;AACJ;AACE;AACE;AACE;QACF;AAAA;MAEF;AAAA;AACF;AAEA;EACF;AAAA;AAEE;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACE;AACA;AACE;MACF;AAAA;AAEA;AACA;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEA;AACE;MACF;AAAA;AAEA;IACF;AAAA;AAEA;EACF;AAAA;AAEE;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACE;IACF;AACE;IACF;AACE;IACF;AAAA;AAEE;AACA;AACE;MACF;AAAA;AAEA;AACA;AACE;MACF;AAAA;AAEA;AACE;AACE;QACF;AACE;QACF;AAAA;AACF;AAEA;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AACE;MACF;AAAA;AAEA;IACF;AAAA;AAEA;EACF;AAAA;AAEE;AACI;AACA;AACA;AACA;AACA;AACJ;AACA;AACE;AACA;AACE;AACA;AACE;AACA;AACE;UACF;AACE;UACF;AACE;UACF;AAAA;QAEF;AAAA;MAEF;AAAA;AACF;EAEF;AAAA;AAEE;AACA;AACA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEI;AACA;AACJ;AACE;AACA;IACF;AAAA;AAEE;IACF;AAAA;AAEE;IACF;AACE;AACE;MACF;AAAA;AAEE;AACE;AACA;AACE;UACF;AAAA;AAEA;AACA;AACE;UACF;AAAA;AACF;AAEA;AACE;AACA;AACE;UACF;AAAA;AAEA;AACA;AACE;UACF;AAAA;AACF;AAEA;AACE;QACF;AAAA;AAEA;AACE;QACF;AAAA;MAEF;AAAA;AAEE;MACF;AAAA;AACF;EAEF;AAAA;AAEE;AACI;AACA;AACA;AACJ;AACA;AACE;IACF;AAAA;EAEF;AAAA;AAEE;AACI;AACA;AACJ;AACE;AACA;AACE;AACE;QACF;AAAA;AAEA;AACA;AACE;AACE;UACF;AAAA;AAEA;AACA;AACE;UACF;AAAA;AACF;AACF;AACF;AACF;AAEE;AACA;AACA;AACE;IACF;AAAA;AAEE;IACF;AAAA;EAEF;AAAA;AAEE;EACF;AAAA;AAEA;AA1pBA;AACI;AAAa;AA0pBjB;AC3pBA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACE;AACA;AACE;IACF;AACA;AACE;AACE;AACE;QACF;AAAA;AAEF;IACF;AACA;AACE;IACF;EACF;AAAA;AAEE;AACI;AACA;AACJ;AACE;IACF;AAAA;AAEE;IACF;AAAA;EAEF;AAAA;AAEE;AACA;AACA;AACA;AACE;AACE;MACF;AAAA;AAEF;AACA;AACA;EACF;AAAA;AAEA;AACE;AACI;AACJ;AACE;AACE;AACA;AACA;AAAK;AAEL;AACA;AACA;AAAK;AAEL;AADK;AAGT;AACA;AACA;AACE;IACF;AACE;IACF;AAAA;AAEE;IACF;AACE;IACF;AAAA;AAEE;AACA;AAAc;EAElB;AACA;AAhFA;AACI;AAAa;AAgFjB;ACjFA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACE;AACA;AACE;IACF;AAAA;AAPF;AACI;AAAa;AAQjB;ACTA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACE;AACA;AACE;IACF;AAAA;AAPF;AACI;AAAa;AAQjB;ACTA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACE;AACA;AACE;IACF;AAAA;AAPF;AACI;AAAa;AAQjB;ACTA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AAHA;AACI;AAAa;AAGjB;ACJA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACE;AACE;IACF;AAAA;AAEA;EACF;AAAA;AAEE;EACF;AAAA;AAEE;EACF;AAAA;AAEE;AACA;AACA;AACA;AACA;AACE;AACE;MACF;AACA;AACE;MACF;AACA;AACE;MACF;AACA;AACE;MACF;AAAA;AAEF;AAAwB;AAnC1B;AACI;AAAa;AAoCjB;ACrCA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACE;AACE;IACF;AAAA;AAEA;EACF;AAAA;AAEE;EACF;AAAA;AAEE;EACF;AAAA;AAEE;AACA;AACA;AACA;AACA;AACE;AACE;MACF;AACA;AACE;MACF;AACA;AACE;MACF;AAAA;AAEF;AAAwB;AAhC1B;AACI;AAAa;AAiCjB;AClCA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACE;EACF;AAAA;AAEE;EACF;AAAA;AAEE;EACF;AAAA;AAEE;AACE;IACF;AAAA;AAEI;AACA;AACA;AACJ;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEE;AACE;MACF;AAAA;AAEA;AACE;AACA;AACE;AACA;AACE;UACF;AAAA;AAEE;UACF;AAAA;QAEF;AAAA;MAEF;AAAA;AAEE;AACA;AACE;AACA;AACE;UACF;AAAA;AAEE;UACF;AAAA;QAEF;AAAA;MAEF;AAAA;AAEE;AACA;AACE;QACF;AAAA;AAEE;QACF;AAAA;MAEF;AAAA;IAEF;AAAA;AAEE;AACA;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;IAEF;AAAA;AAEE;IACF;AAAA;AAEE;IACF;AAAA;EAEF;AAAA;AAEE;AACI;AACA;AACA;AACA;AACJ;AACE;IACF;AAAA;AAEA;AACE;AACE;MACF;AAAA;AAEA;IACF;AAAA;AAEE;IACF;AAAA;AAEE;AACE;MACF;AAAA;AAEE;MACF;AAAA;IAEF;AAAA;AAEE;AACE;MACF;AACA;AACA;AACA;AACE;AACA;MACF;AACA;IACF;AAAA;EAEF;AAAA;AAEE;EACF;AAAA;AAEE;AACA;AACA;AACA;AACA;AACE;AACE;MACF;AACA;AACE;MACF;AACA;AACE;MACF;AACA;AACE;MACF;AAAA;AAEF;AACA;AACE;AACA;AACA;AACA;AAAuB;AACzB;AArKF;AACI;AAAa;AAsKjB;ACvKA;;AAAA;AACI;AAAmB;AACnB;AAEJ;AACE;EACF;AAAA;AAIE;EACF;AAAA;AAIE;AACE;IACF;AACE;IACF;AAAA;EAEF;AAAA;AAIE;AAAW;AAAQ;AAAK;AAExB;AACE;AAEA;AACE;AACA;MACF;AAAA;AACF;EAGF;AAAA;AAIE;AAAiB;AAEjB;AACE;IACF;AAAA;EAGF;AAAA;AAIE;EACF;AAAA;AAIA;AACA;AACA;AACA;AACA;AA7DA;AACI;AAAa;AA6DjB;AC9DA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACE;AACE;IACF;AAAA;AAEE;IACF;AAAA;EAEF;AAAA;AAEE;AACI;AACA;AACA;AACJ;AACA;AACA;AACA;AACE;IACF;AAAA;AAEE;IACF;AACE;IACF;AACE;AACE;MACF;AACA;AACA;AACA;AACE;AACA;MACF;AACA;IACF;AAAA;EAEF;AAAA;AAEA;AACE;AACA;AACE;AACE;AACE;AAAa;AAEb;AAAa;AAEb;AAAa;IAEnB;AACE;AACE;AACE;AAAa;AAEb;AAAa;AAEb;AAAa;IAEnB;AACE;AACE;AACE;AAAc;AAEd;AAAc;AAEd;AAAc;IAEpB;AACE;IACF;AAAA;AAEA;EACF;AAAA;AAEE;EACF;AAAA;AAEE;AACA;AACA;AACA;AACA;AACA;AAAwB;AAxF1B;AACI;AAAa;AAyFjB;AC1FA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACE;AACA;AAA6G;AAL/G;AACI;AAAa;AAMjB;ACPA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AAHA;AACI;AAAa;AAGjB;ACJA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACE;AACE;IACF;AAAA;AAEE;IACF;AAAA;EAEF;AAAA;AAEE;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACA;AACE;IACF;AAAA;AAEA;AACA;AACA;AACE;IACF;AAAA;AAEA;AACA;AACA;AACE;AACA;AACE;MACF;AAAA;IAEF;AAAA;AAEE;AACA;AACA;AACA;AACE;MACF;AAAA;AACF;AAEA;AACE;IACF;AAAA;EAEF;AAAA;AAEE;EACF;AAAA;AAEE;AACA;AACA;AACA;AACA;AAAgC;AApElC;AACI;AAAa;AAqEjB;ACtEA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACE;EACF;AAAA;AAEE;AACA;AAAwB;AAR1B;AACI;AAAa;AASjB;ACVA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACA;AACA;AACA;AACA;AACE;AACE;MACF;AAAA;AAEI;AACA;AACA;AACA;AACJ;AACE;AACA;AACE;QACF;AAAA;AAEE;QACF;AAAA;MAEF;AAAA;IAEF;AAAA;AAEE;AACI;AACA;AACA;AACA;AACA;AACA;AACJ;AACE;AACE;AACA;AACA;QACF;AAAA;MAEF;AAAA;AAEA;AACE;AACA;AACA;MACF;AACE;AACA;MACF;AACE;MACF;AAAA;AAEE;MACF;AAAA;IAEF;AAAA;AAEE;AACI;AACA;AACA;AACA;AACA;AACJ;AACE;AACE;AACA;AACA;AACA;QACF;AAAA;MAEF;AAAA;AAEA;AACE;AACA;AACA;AACA;MACF;AACE;AACA;AACA;AACA;MACF;AACE;AACA;AACA;AACA;MACF;AAAA;IAEF;AAAA;AAEE;IACF;AAAA;AAEE;AACA;AACA;AACA;AACA;AAA6B;EAEjC;AAxGA;AACI;AAAa;AAwGjB;ACzGA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACE;AACE;IACF;AAAA;AAEI;AACA;AACA;AACA;AACA;AACA;AACJ;AACE;AACA;AACA;AACE;MACF;AAAA;AAEE;AACE;AACE;UACF;AACE;UACF;AAAA;AACF;AACF;AAEE;MACF;AAAA;AAEE;MACF;AACE;MACF;AAAA;AACF;EAEF;AAAA;AAEE;EACF;AAAA;AAEE;AACA;AACA;AAA2B;AAhD7B;AACI;AAAa;AAiDjB;AClDA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACE;AACE;IACF;AAAA;AAEI;AACA;AACA;AACA;AACA;AACJ;AACA;AACE;AACA;AACE;MACF;AAAA;AAEA;AACE;MACF;AAAA;IAEF;AAAA;EAEF;AAAA;AAEE;AACE;IACF;AAAA;AAEI;AACA;AACA;AACA;AACA;AACJ;AACA;AACE;AACA;AACA;IACF;AAAA;EAEF;AAAA;AAEE;AACA;AACA;AAA4B;AAjD9B;AACI;AAAa;AAkDjB;ACnDA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACE;AACE;IACF;AAAA;AAEI;AACJ;AACE;AACE;AACE;QACF;AAAA;AACF;AACF;EAEF;AAAA;AAEE;EACF;AAAA;AAEE;AACA;AACA;AAA0B;AAzB5B;AACI;AAAa;AA0BjB;AC3BA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACE;AACA;AACA;AAA+G;AANjH;AACI;AAAa;AAOjB;ACRA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACE;EACF;AAAA;AAEE;EACF;AAAA;AAEE;EACF;AAAA;AAEE;EACF;AAAA;AAEE;AACA;AACA;AACA;AACA;AAAsC;AApBxC;AACI;AAAa;AAqBjB;ACtBA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACE;AACE;IACF;AAAA;AAEE;IACF;AAAA;AAEI;AACA;AACJ;AACE;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;IAEF;AAAA;AAEE;IACF;AACE;IACF;AAAA;AACF;AAEE;AACI;AACA;AACJ;AACE;AACE;MACF;AAAA;IAEF;AAAA;EAEF;AAAA;AAEE;AACA;AACE;IACF;AAAA;AAEE;IACF;AAAA;AAEE;IACF;AAAA;EAEF;AAAA;AAEE;EACF;AAAA;AAEE;AACA;AACA;AACA;AACA;AAAmC;AAhErC;AACI;AAAa;AAiEjB;AClEA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACE;AACA;AACE;AACE;AACE;QACF;MACF;IACF;AAAA;EAEF;AAAA;AAEE;AACA;AACE;AACE;MACF;AAAA;AAEF;AACA;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACA;AACA;AACA;AACA;AACA;AACE;IACF;AAAA;AACF;AAvCA;AACI;AAAa;AAwCjB;ACzCA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACE;AACA;EACF;AACE;AACE;IACF;AAAA;AACF;AAEA;AACE;AACE;IACF;AAAA;AAEE;AACI;AACJ;AACE;MACF;AAAA;IAEF;AACE;IACF;AAAA;AACF;AAEE;AACI;AACA;AACA;AACJ;AACE;IACF;AAAA;AAEE;IACF;AACA;AACA;EACF;AAAA;AAEE;EACF;AAAA;AAEE;EACF;AAAA;AAEE;AACA;AACA;AACA;AACA;AAAqC;AApDvC;AACI;AAAa;AAqDjB;ACtDA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACE;AACA;AAAwG;AAL1G;AACI;AAAa;AAMjB;ACPA;;AAAA;AACI;AAAmB;AACnB;AAEJ;AAEE;AAGA;AAEE;IACF;AAEE;IACF;AAAA;AAGA;AACA;AACA;EACF;AAAA;AAKA;AAGA;AACE;AAEA;AAEA;AACE;IACF;AAAA;EAGF;AAGA;AA1CA;AACI;AAAa;AA0CjB;AC3CA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACE;AACE;IACF;EACF;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AA7BA;AACI;AAAa;AA6BjB;AC9BA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AAHA;AACI;AAAa;AAGjB;ACJA;AAAA;AACI;AAAmB;AACnB;AAFJ;AAAA;AACI;AAAa;AADkC;ACAnD;;AAAA;AACI;AAAmB;AACnB;AACJ;AACI;AAKJ;AAQE;AACE;AACE;MACF;AAEE;AACE;QACF;AAGE;QACF;AAAA;AACF;AAWF;AACE;AACE;AACA;MACF;AAEE;AACE;QACF;AAGE;QACF;AAAA;AACF;AACF;AAtDF;AACI;AAAa;AAuDjB;ACxDA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACA;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACA;AACA;AACE;AACA;IACF;AAAA;AAEE;AACA;IACF;AACA;AACE;AACA;AACE;AACA;AACA;AACA;AACA;MACF;AAAA;AAEE;AACA;MACF;AAAA;AAEA;AACA;AACA;AACA;AACE;AACA;AACE;QACF;AACE;AACA;QACF;AAAA;AAEA;MACF;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;AACA;AACE;MACF;AACE;MACF;AACE;MACF;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;AACA;AACE;AACA;MACF;AACE;MACF;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;AACA;AACE;AACA;MACF;AACE;MACF;IACF;AACA;AACE;AACI;AACJ;AACE;AACA;MACF;AAAA;AAEE;MACF;AAAA;AAEE;AACA;AACA;AAAiB;IAErB;AAAA;AAhHF;AACI;AAAa;AAiHjB;AClHA;AAAA;AACI;AAAmB;AACnB;AAFJ;AAAA;AACI;AAAa;AADwD;ACAzE;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACA;AACA;AACI;AACJ;AACE;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACA;AACE;AACA;MACF;AAAA;AAEF;AACE;AACE;AACA;MACF;AACE;MACF;AAAA;AAEF;AACE;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACE;AACE;AACE;UACF;AAAA;AAEA;QACF;AAAA;AACF;EAEJ;AAjEA;AACI;AAAa;AAiEjB;AClEA;AAAA;AACI;AAAmB;AACnB;AADJ;AAEA;AAAC;AACA;AAEC;AAID;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACC;AACA;AAEC;AAAQ;AAGR;AAAQ;AAER;AAAQ;AAER;AAA6B;AAE7B;AAAkB;AAElB;AAAuB;AACzB;AAGC;AAAO;AAAG;AAAG;AAAK;AAAc;AAEhC;AACC;MACD;AAAA;AAQA;AAGA;AAGA;AAEA;AAEA;AACC;MACD;AAAA;AAGC;AACA;AACA;AACA;MACD;AAAA;AAGC;AACA;MACD;AACC;AACA;AACA;MACD;AAAA;IAGD;AAAA;AAGC;AACC;AACA;AACA;AAAM;AAEP;AACC;MACD;AAAA;AAGC;MACD;AAAA;AAIC;AACA;MACD;AAAA;AAIC;AACC;AACA;AACA;AACA;AACA;AAAI;AAEJ;AACA;AACA;AACA;AACA;AACA;AAAI;AAGN;IACD;AAAA;AAGA;EACD;AA5HA;AACI;AAAa;AA4HjB;AC7HA;AAAA;AACI;AAAmB;AACnB;AA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A6C;AAC9C;AAAyC;AAC1E;AAGE;AACA;AACA;AACA;AAAe;AAAwE;AAGvF;AACA;AACA;AACE;IACF;AAAA;EAGF;AAEA;AACE;AACA;AACA;AACA;AAAe;AAAwE;AAGvF;AACA;AACA;AACE;IACF;AAAA;EAGF;AAEA;AACE;AACA;AACA;AAAe;AAAwC;AACtB;AAAwB;AAEzD;EACF;AAEA;AACE;AAAe;AAAyB;AACxB;AACd;IAEF;AAAA;AACF;AAGE;AACA;AACA;AAAe;AAA0C;AAEvD;AACA;IACF;AACE;IACF;AAAA;EAEF;AAEA;AACE;AACA;AACA;AAAe;AAA0C;AAEvD;AACA;IACF;AACE;IACF;AAAA;EAEF;AAEA;AACE;AAAe;AAA6B;AAC5B;AACd;IACF;AAAA;AACF;AAGE;AACA;AACA;AAAe;AAA8C;AAE3D;AACA;AACA;AACA;IACF;AACE;IACF;AAAA;EAEF;AAEA;AACE;AACA;AACA;AAAe;AAA8C;AAE3D;AACA;AACA;AACA;IACF;AACE;IACF;AAAA;EAEF;AAEA;AACE;AACA;AACA;AACE;AAEA;IACF;AAAA;AAGA;AACA;AACA;AACA;AACE;IACF;AAAA;EAGF;AAEA;AACE;AACA;AACA;AACE;AAEA;IACF;AAAA;AAGA;AACA;AACA;AACA;AACE;IACF;AAAA;EAGF;AAEA;AACE;AACA;AACA;AAAe;AAA4C;AAC1B;AAAwB;AAC1C;AAAuB;AAEtC;EACF;AAEA;AACE;AACA;AACA;AAAe;AAAgD;AAE7D;AACA;IACF;AACE;IACF;AAAA;EAEF;AAEA;AACE;AACA;AACA;AAAe;AAAgD;AAE7D;AACA;IACF;AACE;IACF;AAAA;EAEF;AAEA;AACE;AACA;AACA;AAAe;AAAwD;AAErE;AACA;AACA;AACA;IACF;AACE;IACF;AAAA;EAEF;AAEA;AACE;AACA;AACA;AAAe;AAAwD;AACxD;AAA6B;AAE1C;AACA;AACA;AACA;IACF;AACE;IACF;AAAA;EAEF;AAEA;AACE;AAAgC;AAA6C;AAC9C;AAAyC;AACxD;AAAyC;AAC3D;AAGE;AACE;IACF;AAAA;AAEA;EACF;AAAA;AAGE;EACF;AAEA;AACE;EACF;AAEA;AACE;AACE;IACF;AAAA;AAEA;EACF;AAAA;AAGE;EACF;AAEA;AACE;EACF;AAGA;AACE;AAAY;AAAQ;AACG;AAAgB;AACL;AAA0B;AAC1C;AAAc;AACJ;AAAU;AAGnB;AAAO;AACoB;AAAO;AAInD;IACF;AAAA;AACuC;AAAgD;AAC1E;AAA8C;AAGpC;AAAgB;AAErC;IACF;AAAA;AAGA;AAEA;AAEE;AACE;MACF;AAAA;AAGA;AACE;MACF;AAAA;AAEA;IACF;AAAA;EAGF;AAGA;AACE;AAAY;AAAQ;AACR;AAAQ;AACV;AAAgB;AAET;AAAkC;AAGhC;AAAK;AACD;AAAK;AAEW;AAA0C;AAC/C;AAAwC;AAG1E;AACE;AACE;MACF;AAAA;AAEA;AACA;AACA;AACE;MACF;AAAA;AACF;EAGF;AAMA;AACE;AACE;AACE;MACF;AACE;AACA;AAAgB;AACd;QACF;AAAA;MAEF;AAAA;AAEA;IACF;AAAA;AAMF;AAKA;AACE;AACA;AAGA;AAGA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;EACF;AAEA;AAEA;AAEE;AAEA;AAAoB;AAAQ;AAG1B;IACF;AAAA;EAEF;AAAA;AAGE;AAAc;AAAgB;EAEhC;AAAA;AAGE;AAAY;AAA0B;EAExC;AAAA;AAGE;AACA;AACA;AACA;AACA;AAEA;AACE;AAGA;AAEE;AAEE;AAEE;AAAuB;AAA2B;UAEpD;AAEE;AAAuB;AAA2B;UAEpD;AAAA;AAKA;QACF;AAAA;AAIE;AAAuB;AAA2B;AAElD;QACF;AAAA;MAIF;AAEE;AAAuB;AAA2B;AACpD;AAKA;AACE;AAAsB;AAAI;MAE5B;AACE;AAAsB;AAAI;MAK5B;AACE;AAAsB;AAAI;MAM5B;AACE;AAAsB;AAAI;MAO5B;AACE;MACF;AAAA;AACF;EAGF;AAAA;AAGE;AACA;AAEE;IACF;AAAA;EAEF;AAAA;AAGE;AAAO;AAAI;AACX;AACA;AACE;AAAsB;AAAI;AAG1B;AACA;AACA;AACA;IACF;AAAA;EAGF;AAAA;AAGE;EACF;AAAA;AAGE;AACE;AAAqD;AAAI;IAE3D;AAAA;EAEF;AAAA;AA1gDI;AAAa;AA2gDjB;AC5gDA;AAAA;AACI;AAAmB;AACnB;AAFJ;AAAA;AACI;AAAa;AADoC;ACArD;AAAA;AACI;AAAmB;AACnB;AADJ;AADA;AACI;AAAa;AAAuE;ACDxF;AAAA;AACI;AAAmB;AACnB;AAFJ;AAAA;AACI;AAAa;AADkD;ACAnE;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACA;AACA;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACE;AACA;AACA;AACA;IACF;AAAA;AAEE;AACA;AACA;AACE;AACE;QACF;AAAA;AAEA;AACE;QACF;AACE;QACF;AAAA;AACF;AAEA;IACF;AACA;AACE;AACA;AACA;AACE;AACA;MACF;AAAA;AAEA;AACE;AACA;AACA;AACE;QACF;AACE;QACF;AAAA;AACF;AAEA;AACA;AACA;IACF;AACA;AACE;AACA;AACE;MACF;AAAA;AAEA;AACE;MACF;AAAA;AAEE;MACF;AAAA;IAEF;AACA;AACE;AACE;MACF;AAAA;AAEA;AACE;AACA;MACF;AAAA;IAEF;AACA;AACE;AACE;AACA;AACE;QACF;AACE;AACA;AACE;AACA;AACA;UACF;AACE;UACF;AAAA;QAEF;AAAA;AACF;AACF;AAEE;AACE;AACE;QACF;AACE;QACF;AAAA;AAEA;MACF;AAAA;IAEF;AAAA;AA/GF;AACI;AAAa;AAgHjB;ACjHA;AAAA;AACI;AAAmB;AACnB;AAEJ;AACA;AACA;AACA;AACA;AAeA;AACE;AACA;AAA4B;AAAiB;EAI/C;AAUA;AACE;AACA;AAAwB;AAAM;AAE9B;AAAY;AAAM;AAElB;AACA;AACE;AACA;AACA;AACA;AACA;AACE;AAAY;AAEd;AACA;AACE;AAAY;AAEd;AACA;AACA;AACA;AACE;AAAY;AAEd;AACA;AACA;AACA;AACE;AAAY;AAEd;AACA;AACA;AACA;AACE;AAAY;AAEd;AACA;AACA;AACA;AACE;AAAQ;EAEd;AAAA;AAWE;AAAa;AAA+B;AAC/B;AAA+B;AAC/B;AAA+B;AAC/B;AAA+B;EAE9C;AAAA;AAWE;EAKF;AAAA;AAOE;AAAY;AAAM;AACA;AAAsC;EAE1D;AAAA;AA3HI;AAAa;AA4HjB;AC7HA;AAAA;AACI;AAAmB;AACnB;AAFJ;AAAA;AACI;AAAa;AAD6B;ACA9C;AAAA;AACI;AAAmB;AACnB;AAMJ;AACA;AACA;AACA;AACA;AACA;AAMA;AACA;AAQA;AAMA;AAMA;AASA;AACE;EACF;AAAA;AAaE;AACA;AAIA;AAEE;AAGA;AACA;AACA;AACA;AACA;AACA;AAGA;AAA4B;AAAoC;AACtB;AAA0B;AAIpE;AAEA;AAEE;MACF;AAAA;AAIA;AAEE;AAAoB;AAAY;AAEhC;AACA;AACE;AACA;AAGA;AACA;QACF;AAAA;MAEF;AAEA;AACE;MACF;AAAA;AAEA;IACF;AAAA;AAGA;AAEA;AAEA;EACF;AAAA;AAWE;AAEA;AACA;AAEA;AACE;AAAe;AAAQ;AAEvB;AACE;MACF;AACE;MACF;AAAA;AACF;AACF;AASE;EACF;AAAA;AAWE;AAAO;AACP;AACE;AACE;MACF;AAAA;AACF;AAEE;AACE;MACF;AAAA;AACF;EAEF;AAAA;AAWE;AAA0B;AAA+B;EAE3D;AAAA;AAnMI;AAAa;AAoMjB;ACrMA;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEE;EACF;AACA;AACE;AACA;AACA;AACA;AACE;AAAW;AAEb;AACA;AACA;AACA;AACE;AACE;AAAM;AAER;AACE;MACF;AAAA;AAEF;AACA;EACF;AAAA;AAEE;EACF;AAAA;AAEE;AACE;AACE;MACF;AACE;MACF;AAAA;AACW;AACf;AAEE;AACA;AACE;IACF;AAAa;EAEf;AAAA;AAEA;AACE;AACE;IACF;AAAa;AACf;AA3DI;AAAa;AA4DjB;AC7DA;AAAA;AACI;AAAmB;AACnB;AAFJ;AAAA;AACI;AAAa;AADkC;ACAnD;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACA;AACI;AACA;AACJ;AACA;AACA;AACE;IACF;AACA;AACE;AACA;AACE;AACA;MACF;AAAA;IAEF;AACA;AACE;AACE;AACE;QACF;AAAA;MAEF;AAAA;IAEF;AACA;AACE;AACA;AACE;MACF;AAAA;AAEA;AACE;AACA;AACA;AACE;QACF;AAAA;AAEE;QACF;AACE;AACA;QACF;AAAA;AACF;AAEE;MACF;AAAA;IAEF;AACA;AACE;AACA;AACE;MACF;AAAA;IAEF;AACA;AACE;AACA;AACE;MACF;AAAA;IAEF;AACA;AACE;AACA;AACE;MACF;AAAA;IAEF;EACF;AAzEA;AACI;AAAa;AAyEjB;AC1EA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACI;AACJ;AACA;AACA;AACE;AACE;AACA;AACE;AACE;QACF;AAAA;AAEF;AACE;AACE;QACF;AAAA;AAEF;IACF;AACE;IACF;AAAA;AAtBF;AACI;AAAa;AAuBjB;ACxBA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;EAIF;AANA;AACI;AAAa;AAKjB;ACNA;AAAA;AACI;AAAmB;AACnB;AADJ;AAEE;AACE;AACA;AAEI;AACA;AACA;AACA;AAAiB;IAGvB;EACF;AAEE;AACE;AACA;AACA;AACA;AACA;IACF;EACF;AAAA;AAtBI;AAAa;AAuBjB;ACxBA;AAAA;AACI;AAAmB;AACnB;AAFJ;AAAA;AACI;AAAa;AAD8C;ACA/D;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACA;AACE;AACE;AACA;AACE;QACF;AAAA;MAEF;AAAA;AAEA;AACA;AACA;AACE;AACE;AAAU;AAEV;AAAQ;AAER;AACE;AAAwB;AAExB;AAAwB;AAExB;AACE;YACF;AACE;YACF;AAAA;AAEA;AADK;MAGX;AACA;AACE;AACE;QACF;AACE;QACF;AAAA;AACF;IAEF;AACA;AACE;AACE;AACE;QACF;MACF;AAAA;AAEE;MACF;AAAA;AAEA;AACE;AACE;AACE;UACF;AACE;UACF;AACE;UACF;AAAA;QAEF;AAAA;MAEF;AAAA;IAEF;AACA;AACA;AACA;AACE;AACE;AAA2C;AAE7C;AACE;AACE;AACA;AACE;AACA;UACF;QACF;AACE;QACF;AAAA;AACF;IAEF;AACA;AACE;AACE;AACA;AAAsB;AAExB;AACE;AAAwB;AAExB;AAAyB;AAEzB;MACF;AACE;MACF;AAAA;AAEE;AAAsB;AAEtB;AAAa;AAEb;AAAkB;AAElB;AAAwB;AAExB;AAA8B;IAElC;AAAA;AAEA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAiB;AAEnB;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAc;AAEhB;AACE;AACA;AACE;MACF;AACE;MACF;AAAA;AACF;AAEE;IACF;AAAA;AAEE;AACA;AACE;MACF;AACA;IACF;AAAA;AAEE;AACE;AACA;AACE;QACF;AAAA;MAEF;AAAA;AAEA;AACE;MACF;AAAA;AAEA;AACA;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;AACE;AACA;QACF;AAAA;AAEE;QACF;AAAA;AAEE;QACF;AAAA;AAEE;QACF;AAAA;AACF;AAEI;AACA;AACJ;AACE;AACA;MACF;AAAA;AAEE;AACA;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;AACE;QACF;AACE;QACF;AAAA;AACF;AAEA;AACA;AACE;MACF;AACE;AACE;QACF;MACF;AAAA;AAEA;IACF;AAAA;AAEE;AACE;AAA4C;AAE5C;AACA;MACF;AAAA;AAEE;AAAwC;AAExC;AAAyC;AAEzC;AAAkC;AACtC;AAEE;IACF;AAAA;AAEE;AACA;AACI;AACF;AACE;QACF;AACE;QACF;AAAA;AACF;AAEE;AACE;QACF;AAAA;AAEF;IACF;AAAA;AAEE;AACI;AACA;AACJ;AACA;AACE;AACE;QACF;AACE;QACF;AAAA;AAEA;AACE;QACF;AAAA;AACF;AAEE;MACF;AAAA;AAEE;AACE;AACE;UACF;AACE;UACF;AAAA;AAEE;AACE;AACE;cACF;YACF;AACE;AACE;cACF;YACF;AAAA;AACF;AAEA;QACF;AAAA;AACF;AAEE;AACE;QACF;AAAA;AAEA;AACE;AACA;QACF;AACE;AACA;QACF;AAAA;AACF;IAEF;AAAA;AAEE;AACA;AACE;AACA;AACE;AAAa;MAEjB;AACA;AACE;MACF;AAAA;IAEF;AAAA;AAEE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACA;AACE;IACF;AAAA;AAEE;IACF;AAAA;AAEA;AACE;AACA;AACA;IACF;AAAA;AAEE;IACF;AACA;AACA;AACE;AACE;AAAa;AAEf;AACA;AACE;MACF;AAAA;IAEF;AACA;AACE;IACF;AAAA;AAtaF;AACI;AAAa;AAuajB;ACxaA;AAAA;AACI;AAAmB;AACnB;AAFJ;AAAA;AACI;AAAa;AADkC;ACAnD;AAAA;AACI;AAAmB;AACnB;AADJ;AADA;AACI;AAAa;AAAmE;ACDpF;AAAA;AACI;AAAmB;AACnB;AAFJ;AAAA;AACI;AAAa;AADgD;ACAjE;;AAAA;AACI;AAAmB;AACnB;AAMJ;AACI;AACA;AAKJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAQA;AAQE;AACE;AAAsB;AACtB;AAEA;AACE;AACA;MACF;AAEE;MACF;AAEE;MACF;AAAA;AAGE;AACA;MACF;AAAA;AAIE;MACF;AAAA;AAOA;AACA;AACA;AAEA;IACF;EACF;AAAA;AASE;AACE;AACA;AACE;MACF;AAAA;IAGF;AAAA;AACF;AAQE;AAGA;EACF;AAAA;AAUE;AACE;AACA;AACE;AAGA;AACE;QACF;AAAA;AAGE;QACF;AAGA;AACF;AACF;AACF;AAUE;AAGA;AAGA;AAEA;AACE;AACA;AACA;AACE;MACF;AAAA;AACF;EAGF;AAAA;AA9JI;AAAa;AA+JjB;AChKA;AAAA;AACI;AAAmB;AACnB;AAFJ;AAAA;AACI;AAAa;AADqC;ACAtD;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AACE;AACA;AACE;AACA;AACA;AACA;AACE;MACF;AAAA;AAEI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACA;AAA+B;AAEjC;AACA;AACA;AACA;AACJ;AACE;MACF;AAAA;AAEE;AACA;AACA;AACE;QACF;AAAA;MAEF;AAAA;AAEE;AACA;AACA;AACE;AACA;QACF;AAAA;AAEA;AACA;AACA;MACF;AAAA;AAEE;AACI;AACA;AACA;AACA;AACJ;AACE;AACA;AACE;AACA;AACE;YACF;AACE;AACA;YACF;AAAA;AAEA;UACF;AAAA;AACF;MAEF;AAAA;AAEE;AACE;AACA;AACE;AACA;AACA;UACF;AAAA;AAEA;QACF;MACF;AAAA;AAEE;AACE;QACF;AAAA;AAEE;QACF;AAAA;AAEE;QACF;AAAA;MAEF;AAAA;AAEE;MACF;AAAA;AAEE;AACA;AACA;AACA;AACE;QACF;AAAA;MAEF;AAAA;AAEE;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACA;AACE;QACF;AAAA;AAEE;AACE;UACF;AAAA;QAEF;AAAA;AAEE;AACE;AACE;YACF;AAAA;AAEA;AACE;YACF;AAAA;AAEA;AACA;AACE;YACF;AAAA;AAEA;AACE;YACF;AAAA;UAEF;AAAA;AAEA;AACA;AACE;UACF;AAAA;AAEA;AACA;QACF;AAAA;MAEF;AAAA;AAEE;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACE;UACF;AAAA;AACF;AAEA;AACE;QACF;AAAA;AAEE;AACE;AACA;AACE;YACF;AAAA;AACF;AAEA;AACE;UACF;AAAA;AAEA;AACA;AACE;AACA;AACE;YACF;AAAA;AAEE;AACE;AACA;AACE;gBACF;AAAA;AAEA;AACA;AACA;cACF;AAAA;AAEA;AACA;AACA;YACF;AAAA;AACF;AAEA;QACF;AAAA;MAEF;AAAA;AAEE;AACE;QACF;MACF;AAAA;AAEE;AACE;QACF;MACF;AAAA;AAEE;AACA;AACE;AACA;AAAmB;AAErB;AACA;AACA;AACA;AAAqB;AAEvB;AACE;AACE;QACF;MACF;AACE;AACE;QACF;AACE;AACE;UACF;AAAA;AACF;AAEA;MACF;AAAA;EAEJ;AAxRA;AACI;AAAa;AAwRjB;ACzRA;AAAA;AACI;AAAmB;AACnB;AAFJ;AAAA;AACI;AAAa;AADyC;ACA1D;;AAAA;AACI;AAAmB;AACnB;AAwBJ;AACE;EACF;AAAA;AAGE;AACA;AACA;AAEA;AACE;IACF;AAAA;AAGA;AAEA;AACA;AACE;IACF;AAAA;AAIA;AACE;IACF;AAAA;AAGE;AACI;AACA;AAAM;AAAM;AAAG;AAEnB;AACE;AACA;MACF;AACE;AACA;MACF;AAAA;AAGA;AAEA;AACE;MACF;AACE;MACF;AACE;MACF;AAAA;AACF;EAGF;AA/EA;AACI;AAAa;AA+EjB;AChFA;;AAAA;AACI;AAAmB;AACnB;AAqBJ;AACE;AACE;AACE;AAAQ;AAGR;AAA2B;AAG3B;AAA2B;AAG3B;AADK;EAGX;AAEA;AACE;AACA;AACA;AACE;IACF;AAAA;AAGE;AACE;AACA;AACE;AACE;UACF;QACF;AACE;QACF;AAAA;IAGJ;AAAA;AAEW;AAAS;EAGtB;AA/DA;AACI;AAAa;AA+DjB;AChEA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AAHA;AACI;AAAa;AAGjB;ACJA;AAAA;AACI;AAAmB;AACnB;AAFJ;AAAA;AACI;AAAa;AADsC;ACAvD;AAAA;AACI;AAAmB;AACnB;AAmBJ;AAEA;AACA;AACA;AACA;AAEA;AAEA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACF;AAAA;AAOI;AAIA;AAGA;AAGA;AAKA;AACA;AACA;AACA;AACA;AAEA;AACE;AACA;AAAkB;AAGpB;AACE;AACA;AAAkB;AAGpB;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAY;AAEd;AAEJ;AACE;AAAgD;AAAU;AAG1D;AACA;EACF;AAAA;AAGE;AACE;IACF;AAAA;AAMA;AAEA;AACA;AACE;AACA;AACA;AACA;IACF;AAAA;AAOE;AACA;AACE;AACA;MACF;AAAA;AACF;AAqBE;AACA;AACE;AACA;AACE;AAAa;AACjB;AAIU;AACV;AAEE;MACF;AAGE;MACF;AAAA;AAKE;AACA;AACA;MACF;AAAA;AAIA;AACE;AACA;AACE;AAAa;AACjB;AAGE;AAAqB;AAGvB;AAGA;AAIA;AAIA;AAIA;AACE;AACA;AAAgB;AACd;AACA;AAAW;AAAQ;AAEjB;AACA;AAAgB;AACd;AAIE;cACF;AACE;cACF;AAAA;AACF;AAGE;AACA;AACA;AACA;AACE;AACA;cACF;AAAA;AAEE;cACF;AAAA;AAEA;YACF;AAAA;AACF;AACF;AACF;AAGE;MACF;AAEE;MACF;AAAA;AAOE;AACA;AACA;AACE;AACA;QAEF;AAAA;MAEF;AAAA;AAGA;AACA;AACA;AAIA;AACE;AACA;AACE;QACF;AAAA;AACF;AACF;AASE;AAAgB;AACd;AACA;AACA;AACE;QACF;AAAA;MAEF;AAAA;AACF;AAKA;AAEE;AACA;IACF;AAAA;AAEA;AACE;AACA;AACA;AACE;MACF;AAAA;IAEF;AAEE;AACA;IACF;AAAA;AACU;AAAoB;AAG5B;IACF;AAAA;AAIE;AACA;AACA;IACF;AAAA;AAIA;EACF;AAGA;AAKE;AAAmB;AAAmB;AACX;AAAqC;EAElE;AAAA;AAGE;AACA;AACE;AACA;AACA;IACF;AAAA;AAGI;AACA;AACA;AACA;AAEJ;AACE;IACF;AACE;AAGA;AACE;MACF;AAAA;AACF;AAKE;IACF;AAAA;AAIA;AAA6C;AAAe;AAM1D;AACA;AAA4C;AAAyB;AAErE;IACF;AAAA;AAEoC;AAAiB;AACb;AAAqB;AAG3D;IACF;AACA;AAEA;EACF;AAEA;AACE;EACF;AAAA;AAGE;EACF;AAEA;AACE;AAAa;AAAe;EAE9B;AAAA;AAGE;AACE;AACA;AACA;IACF;AAAA;AAGA;AACE;IACF;AAIA;AAGA;AACE;AACA;IACF;AAAA;AAKE;AACE;AACE;AAAuB;AAI3B;AAEE;MACF;AAAA;AAGA;IACF;AAAA;AAWE;AACE;AACE;QACF;AACA;AACA;MACF;AAAA;AAGA;AACE;AACA;AAA4D;AAAA;AACxC;AAAkB;AACd;AAAsB;AACvB;AAAmB;AAClB;AAAmB;MAE7C;AACE;MACF;AAAA;AAEA;AACA;AACA;AACA;AACA;AAEA;AACE;AACA;AACA;MACF;AAAA;AAEA;AACA;IACF;AAAA;AAGI;AAIA;AAEA;AACA;AACA;AACA;AAOJ;AACE;AACA;AACA;AACE;AAAuB;;AAClB;AAA4B;AACnC;AAEA;AACE;AACA;AACA;AACE;AAAuB;;AAClB;AAA8B;AACrC;MAEF;AAAA;IAEF;AAAA;AAIE;AAEA;AAEA;AACA;AACA;IAEF;AAGE;AAAc;AAAY;AAE1B;AACA;AACA;IACF;AAIE;AACE;AAIA;AAEA;AACE;AACA;QACF;AAAA;AACF;AAEA;AAEA;AACE;MAEF;AAAA;AAEA;IACF;AAAA;AAKE;AAEA;AACE;MACF;AACE;MACF;AAAA;AAEA;IACF;AAAA;AAMA;AAMA;AACA;AACE;AACA;AACE;MACF;AACE;AACA;MACF;AACE;AACA;MACF;AAAA;AACF;AAIE;AACE;MACF;AAAA;AACF;AAIE;IACF;AAAA;AAGE;IACF;AAAA;AAMA;AACE;AAKA;AAEA;AACE;AACA;MACF;AAAA;AACF;AAIA;AACE;IACF;AAAA;AAGE;AACA;IACF;AACE;IACF;AAAA;AAIE;IAEF;AAAA;AAEA;AACA;AACA;EACF;AAEA;AACE;AACA;AACA;AACE;AACA;AACE;MACF;AAAA;IAEF;AAAA;AACU;AAAoB;AAGhC;AACE;EACF;AAAA;AAGE;EACF;AAAA;AAGE;EACF;AAAA;AAEE;EACF;AAAA;AAjsBI;AAAa;AAksBjB;ACnsBA;AAAA;AACI;AAAmB;AACnB;AAFJ;AAAA;AACI;AAAa;AAD6B;ACA9C;AAAA;AACI;AAAmB;AACnB;AADJ;AADA;AACI;AAAa;AAAiE;ACDlF;AAAA;AACI;AAAmB;AACnB;AAFJ;AAAA;AACI;AAAa;AAD+C;ACAhE;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACI;AACA;AACA;AACA;AACJ;AACA;AACE;AACA;AACA;EACF;AAAA;AAEE;AACA;AACE;AACA;AACE;AACA;AACA;AACA;AACA;AACE;AACA;AACA;QACF;AACE;AACE;UACF;AACE;UACF;AAAA;AACF;MAEF;AACA;IACF;AAAA;EAEF;AAAA;AAEE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;IACF;AAAA;AAEE;IACF;AAAA;AAEE;IACF;AAAA;AAEE;AACA;AAAuB;EAE3B;AAAA;AAEE;AACA;AACE;IACF;AAAA;EAEF;AAAA;AAlEI;AAAa;AAmEjB;ACpEA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACA;AACE;EACF;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACA;AACE;IACF;AAAA;AAEF;AACE;AACE;AACA;IACF;AAAA;AAEA;AACA;AACE;AACA;AACE;MACF;AACE;MACF;AACE;MACF;AACE;MACF;AAAA;IAEF;AACE;IACF;EACF;AACA;AACE;AACA;EACF;AACA;AACE;AACE;AACA;IACF;AAAA;AAEA;AACA;AACA;AACA;AACE;AACA;AACE;AACA;AACE;AACE;UACF;AACE;UACF;AAAA;AACF;AACF;AAEE;MACF;AAAA;IAEF;AACE;IACF;EACF;AAnFA;AACI;AAAa;AAmFjB;ACpFA;AAAA;AACI;AAAmB;AACnB;AAFJ;AAAA;AACI;AAAa;AADgD;ACAjE;AAAA;AACI;AAAmB;AACnB;AADJ;AADA;AACI;AAAa;AACjB;ACFA;AAAA;AACI;AAAmB;AACnB;AADJ;AACI;AACJ;AACE;AACE;AACI;AACA;AACA;AACA;AACJ;AACE;AAAiC;AAEnC;IACF;EACF;AAfA;AACI;AAAa;AAejB;AChBA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACE;AACA;EACF;AACE;AACI;AACA;AACJ;AACE;AACE;AACA;AAAS;AACV;AAEH;AACA;AACE;AACA;AAAU;EAEd;AArBA;AACI;AAAa;AAqBjB;ACtBA;AAAA;AACI;AAAmB;AACnB;AADJ;AADA;AACI;AAAa;AAAyB;ACD1C;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACI;AACA;AACA;AACJ;AACE;AACA;AACA;EACF;AACE;AACI;AACA;AACJ;AACE;AACA;IACF;AAAA;AAEE;AAAqB;AAErB;AAAwB;EAE5B;AACA;AACA;AACA;AACA;AA3BA;AACI;AAAa;AA2BjB;AC5BA;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AACA;AAHA;AACI;AAAa;AAGjB;ACJA;AAAA;AACI;AAAmB;AACnB;AADJ;AADA;AACI;AAAa;AAAI;ACDrB;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACI;AACA;AACA;AACJ;AACE;EACF;AACA;AACE;AACA;EACF;AAZA;AACI;AAAa;AAYjB;ACbA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACE;EACF;AACA;AACE;AACA;AACE;AACE;AAAkB;AAElB;AACE;AACE;UACF;AAAC;AAED;AACE;UACF;AAAC;AAEL;AACE;MACF;IACF;AACA;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACE;AACA;AACA;AACE;AAA6C;AAE7C;AACA;AACE;QACF;MACF;AAAA;AACF;AAEE;IACF;AAAA;AAEA;AACA;AACE;AACE;AACA;AACA;AAAqD;AAEvD;AACE;AACE;AACE;AAAkC;AACtC;AAEA;AAAqE;AACzE;EAEF;AA9EA;AACI;AAAa;AA8EjB;AC/EA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AAAQ;AAAc;AAAW;EACnC;AAHA;AACI;AAAa;AAEhB;ACHD;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACI;AACA;AACA;AACJ;AACE;AACA;AACE;AACE;AACA;AACE;QACF;AAAA;AACA;AAdN;AACI;AAAa;AAejB;AChBA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACE;AACE;AAA4E;AAE5E;AACE;AAAU;AAEV;AAAU;IAEd;AAAA;EAEF;AACA;AACE;AACI;AACJ;AACE;AAAqB;AAErB;AACE;AAAY;AAChB;AAEF;AACE;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AACE;AAA0C;AAE9C;AACE;AACE;AACI;AACA;AACF;AACA;AACE;AAA+B;UAEnC;AAAA;AAEA;QACF;AACA;AACE;AACI;AACJ;AACE;AACI;AACJ;AACA;AACA;AACE;AAAa;AAEb;AAAa;AAEb;AAAc;AAEd;AAAc;UAElB;AAAA;QAEF;AACA;AACE;AACI;AACJ;AACE;AACA;AACE;AAAe;AACnB;AAEF;AACE;QACF;AAAA;AAEF;AACE;AACI;UACF;AAAG;IAET;AACA;AACE;AACI;AACA;AACJ;AACE;MACF;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AAAO;AAET;AACE;AAAe;AAEf;AAAc;AAEhB;AACE;AAAsB;AAC1B;IAEF;AACA;AACA;AACE;AACE;AACA;AACA;MACF;AACE;AACI;AACA;AACJ;AACE;AAAe;AAEf;AACA;QACF;AAAA;AAEE;AAAuB;AAEvB;AAAuB;MAE3B;AACA;IACF;AAAA;AAxJF;AACI;AAAa;AAyJjB;AC1JA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACE;AACA;AACA;AACA;AAAkB;EAEtB;AARA;AACI;AAAa;AAOhB;ACRD;AAAA;AACI;AAAmB;AACnB;AADJ;AACI;AACJ;AACE;EACF;AACE;AACA;EACF;AARA;AACI;AAAa;AAQjB;ACTA;AAAA;AACI;AAAmB;AACnB;AADJ;AADA;AACI;AAAa;AACjB;ACFA;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AACE;AACE;AAA+B;EAEnC;AANA;AACI;AAAa;AAMjB;ACPA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AAAgC;AAAmD;EAErF;AAJA;AACI;AAAa;AAGhB;ACJD;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AACE;EACF;AAJA;AACI;AAAa;AAGhB;ACJD;AAAA;AACI;AAAmB;AACnB;AADJ;AACI;AACA;AACJ;AACE;AACE;AACE;AACA;AAAS;AACT;AATN;AACI;AAAa;AAUjB;ACXA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACI;MACF;EACJ;AALA;AACI;AAAa;AAKjB;ACNA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACE;AACI;AACA;AACA;AACA;AACJ;AACE;IACF;AACE;AACA;IACF;AACE;AACE;AACA;AACA;AACE;AAA8C;AAElD;AACE;AACA;AACE;AACE;AACE;AAAuC;AAEzC;UACF;AAAE;AAEN;AACE;AACI;UACF;AAAG;AACT;AAEA;AACA;AACA;AACE;AAAiC;EAErC;AApDA;AACI;AAAa;AAoDjB;ACrDA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACE;AACE;IACF;EACF;AACI;IACF;AATF;AACI;AAAa;AASjB;ACVA;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AACE;AACE;IACF;AACE;AACA;AACE;AAA4B;IAEhC;AAAA;AAVF;AACI;AAAa;AAWjB;ACZA;AAAA;AACI;AAAmB;AACnB;AADJ;AACI;AACA;AACJ;AACE;EACF;AANA;AACI;AAAa;AAMjB;ACPA;AAAA;AACI;AAAmB;AACnB;AADJ;AACI;AACJ;AACE;EACF;AALA;AACI;AAAa;AAIhB;ACLD;AAAA;AACI;AAAmB;AACnB;AADJ;AACI;AACJ;AACE;EACF;AALA;AACI;AAAa;AAKjB;ACNA;AAAA;AACI;AAAmB;AACnB;AADJ;AADA;AACI;AAAa;AAAE;ACDnB;AAAA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AAiB;AAEnB;QACF;AAAA;AAIE;AACA;AACE;AACA;AACA;AAAW;AAEb;QACF;AAAA;AAIE;AAEA;AACE;AACA;AACA;AACA;AAA2C;AAG7C;AACE;AACE;YACF;AACE;YACF;AACE;YACF;AACE;YACF;AAAA;AACF;AAGE;UACF;AAAA;AAIA;QACF;AAAA;AAIE;AACA;AACE;AACA;AACA;AAAW;AAEb;QACF;AAAA;AAIE;AACA;AAGA;QACF;AAAA;AAIE;AAEA;AAIA;AAKA;AAEA;AAIA;QACF;AAAA;AAIE;AACA;AAEA;AACE;AACA;AAAuB;AAIzB;AAEA;AACA;AACA;AAEA;AACE;AAIA;AACA;AAIA;AACE;AACA;YAGF;AAAA;AAKE;AACA;AACE;AACA;cACF;AAAA;AACF;AAMA;AACE;AACA;AAAY;AAAY;AAC1B;AASA;AAEA;UAGF;AAAA;AAMA;QACF;AAAA;AAIE;AACA;AACE;AAGA;AAEA;AAAW;AAEb;QACF;AAAA;AAIE;AACA;AACE;AACA;AAAY;AAEd;QACF;AAAA;AAIE;AAEA;AACE;AACA;AACA;AACA;AAAsD;AAGxD;AACE;AACE;YACF;AACE;YACF;AACE;YACF;AACE;YACF;AAAA;AACF;AAGE;UAGF;AAAA;AAIA;QACF;AAAA;AAIE;AACA;AACE;AACA;AAES;AAEX;QACF;AAAA;AAKE;AACA;AACE;AACA;AAAW;AAEb;QACF;AAAA;AAGE;QAEF;AAAA;AACF;IAGF;AAMA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAyC;AAG3C;AACA;AAEA;AAKA;AAQA;AAMA;AACE;AACA;AAA6D;AAO/D;AACE;AACA;AACA;AACA;AAGG;AAOL;AACE;AACA;AAA4C;AAO9C;AACE;AACA;AACA;AACA;AACA;AAEA;AACE;MAEF;AAAA;AAGE;AACE;QACF;AACE;QACF;AAAA;AAEA;MACF;AAAA;AACF;AAYA;AACE;AACA;IACF;AAMA;AACE;AACI;AACA;AACA;AACA;AAEJ;AAEE;AACE;AACA;AACA;QACF;AAAA;AAIE;AACA;AACE;AAGA;UACF;AACE;AACA;UACF;AAAA;AAEA;QACF;AAAA;AAIE;AACA;AACA;AACA;AACA;QACF;AAAA;AAIE;AACE;UACF;AACE;UACF;AAAA;AAEA;AAKA;QACF;AAAA;AAIE;AACA;AACA;AACE;AACA;AAAY;AAEd;AACA;QACF;AAAA;AAKE;AACA;AACA;AACA;AACE;AACA;AACA;UACF;AAAA;AAEA;AACA;AACA;QACF;AAAA;AAIE;AACA;AACA;QACF;AAAA;AAIE;AACA;AACA;QACF;AAAA;AAIE;AACA;AACA;QACF;AAAA;AAIE;AACA;AACA;QACF;AAAA;AAIE;AACA;AACA;QACF;AAAA;AAIE;AACA;AACA;QACF;AAAA;AAGE;QAEF;AAAA;AACF;IAGF;AAMA;AACE;AACI;AAEJ;IAGF;AAMA;AACE;AAA+B;AAAW;IAgB5C;AAMA;AACE;AAA0B;AAAW;AAEjC;AACA;AACA;AAEJ;AACE;AACA;AACE;QACF;AAAA;MAEF;AAAA;IAGF;AAMA;AACE;IACF;AAAA;AAGE;AACE;AACA;AACE;AACA;QACF;AAAA;AACF;AAGE;MAGF;AAAA;IAQF;AAEA;AACE;IACF;AAEA;AACE;IACF;AAEA;AACE;IAUF;AAEA;AACE;IACF;AAEA;AACE;AACA;IACF;AAEA;AACE;IACF;AAEA;AACE;IACF;AAEA;AACE;IAQF;AAEA;AACE;IACF;AAEA;AACE;AACA;AAGA;IACF;AAGA;AACE;IACF;AAEA;AACE;IACF;AAEA;AACE;IACF;AAEA;AACE;IACF;AAEA;AACE;IACF;AAEA;AACE;AACE;AACE;QAGF;AACE;QACF;AAAA;AAEE;QACF;AAAA;AACF;AAEA;AACE;MACF;AAAA;AAEA;IACF;AAEA;AACE;AACA;AACE;MACF;AAAA;AAEA;IACF;AAEA;AACE;IACF;AAMA;AACE;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAOE;AACA;IACF;AAMA;AACE;AACA;AAEA;AACA;AACE;MACF;AAAA;IAGF;AAMA;AACE;IACF;AAMA;AACE;IACF;AAMA;AACE;AAEA;AACE;MACF;AAAA;IAGF;AAMA;AACE;AACE;AAAc;AACZ;UACF;AAAA;AACW;AACT;UACF;AAAA;AACgB;AACd;UAIF;AAAA;AACa;AACX;UAGF;AAAA;AACc;AACZ;AACI;AACA;AACA;AACA;AACA;AACA;AAGJ;AACA;AACE;AAAU;AAAc;AAAyB;AACjD;AAEI;AAAc;AAAyB;YAE7C;AAAA;AAGA;AACE;AAEA;AACA;AACE;AAEI;AAAe;AAAyB;cAE9C;AAAA;YAGF;AAAA;UAEF;AAAA;AACyB;AACvB;AAEA;AACE;YACF;AAAA;UAGF;AAAA;AACmB;AACjB;AACI;AAEJ;AACE;YACF;AAAA;UAGF;AAAA;AACwB;AACtB;AAEA;AACE;YAGF;AAAA;UAGF;AAAA;AACyB;AACvB;AAEA;AACE;YACF;AAAA;UAGF;AAAA;AACa;AACX;AAGA;UACF;AAAA;AACkB;AAChB;UACF;AAAA;AACa;AACX;UACF;AAAA;IAEJ;AAMA;AACE;IAMF;AAAA;AAGE;AACE;AACA;AAAmB;AAAU;AAE3B;QAGF;AAAA;MAEF;IACF;AAAA;AAGE;AACA;AACA;AACE;AAAW;AAA6B;AAExC;AACA;AACA;MACF;IACF;AAAA;AAEiB;AAGjB;AACE;AACI;AACA;AAEJ;AACE;AACA;AACE;AACE;UACF;AAAA;AACF;AACF;IAGF;AAAA;AAQE;AACE;AACE;AACA;QACF;AAAA;AAIA;AACI;AACA;AACA;AAEJ;AACE;QACF;AACE;QACF;AAAA;AAIA;AACE;AACE;AACA;UACF;AAAA;AAIA;AACE;UACF;AACE;UACF;AAAA;AAIA;QAGF;AAEA;AACE;QACF;AAAA;AAIA;AAAc;AAAa;AAGzB;AACE;AACE;YACF;AAAA;AAEE;AAAS;AAAgB;AAEvB;cACF;AAAA;AAEA;AACA;YACF;UACF;QACF;AAAA;MAGF;AAAA;AAEE;AAAS;AAAqC;MAEhD;AACE;AACA;AACE;QAGF;AAAA;MAEF;AAAA;AACF;AAQE;AACA;IACF;AAEA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAW;AAOb;AACA;AAEA;AAEA;AACA;AAEA;AACA;AAEA;AAEA;AACE;IACF;AACE;AAAoB;MAAe;IACrC;AACE;IACF;AAAA;AAGE;EACF;AAtwCA;AACI;AAAa;AAswCjB;ACvwCA;AAAA;AACI;AAAmB;AACnB;AAFJ;AAAA;AACI;AAAa;AADsC;ACAvD;AAAA;AACI;AAAmB;AACnB;AAGJ;AAcA;AAGA;AAEA;AACC;AACC;AACC;AACC;UACD;AACC;UACD;AACC;UACD;AAAA;AAGD;AACC;QACD;AAGA;AACC;AAEA;AACC;AACC;AAEA;AACC;AACC;gBACD;AAAA;AACD;AAEY;AAIZ;AAAoC;cAAwB;AAAE;AAGhE;QACD;AAAA;AAGD;AACC;AACC;AAEA;AACC;UACD;AAAA;QAGD;AAWA;AACC;AACA;AAEA;AACC;AAEA;AACC;AACC;cACD;AAAA;AACD;UAGD;AAAA;AAIA;AAEC;AAEC;AAEC;AAEC;AACC;kBACD;AAAA;AACD;AACD;YAGD;AAAA;AACD;AAIC;AACC;YACD;AAAA;AAGD;QACD;AAGA;AACC;AACC;AACC;AAEA;AACC;cACD;AAEC;cACD;AAAA;AACD;AACD;AACD;AAED;AAEA;AACC;AAEA;AAAc;AACb;QACD;AAAA;AAGD;AAEC;AAAc;AAAS;AAEvB;AACC;QACD;AAAA;AAGC;AACA;QACD;AAAA;AAMA;AAEA;AACC;QACD;AAAA;AAIA;AACC;AACA;AACA;AACA;AAAS;AAGV;AACC;AACA;QACD;AAAA;AAIA;AACC;AAEA;AACC;AAEA;AAEA;AAEA;AACA;AACA;UACD;AAEA;AACC;AACA;AACA;AAAmB;QAErB;AAEC;AAEA;AAEA;AAEA;AAEA;AACA;QACD;AAAA;AAGD;AACC;AACA;MACD;AAEA;AACC;AAEA;AAEA;AAEA;AACC;AACC;UACD;AAAA;QAGD;AAAA;AAGC;AACC;UACD;AAAA;AAGA;AAEA;AACC;AACC;AACA;AACA;AACA;AAED;AAEA;AAEC;AAEA;AAEC;cACD;AAAA;AAGC;cACD;AAAA;AAIA;AAEA;AACC;AACC;gBACD;AAAA;AAGC;AACA;AACA;AACA;AACA;AAED;AAEA;AACC;gBACD;AAAA;AAIA;AAEA;AACC;gBACD;AAAA;cAGD;AAAA;AACD;AACD;AACD;MAGD;AAEA;AACC;AAEA;AACC;AAEA;AAEA;QACD;AAEA;AACC;AAEA;AACC;UACD;AAAA;AAEc;AACb;UACD;AAAA;AACD;AACD;AAGD;AACC;AACA;AACA;IACD;AAEA;AACC;AACC;MACD;AAAA;AAGC;AACC;QACD;MACD;AAAA;AAGC;AACA;AACA;AACA;AACA;AACA;AACA;AAAa;AAGd;AACC;MACD;AAAA;AAGC;AACA;MACD;AAAA;AAIA;AAEA;AACC;MACD;AAAA;IAID;AAEA;AACC;AAEC;MACD;AAAA;AAGC;AACI;AACA;AACA;AAEJ;AACA;AACC;QACD;AAAA;AAGD;IACD;AAAA;AAKA;AAEA;AACC;AAEA;AACC;MACD;AAAA;AACD;EAIA;AAEA;AACC;EACD;AAAA;AAIC;EACD;AAAA;AAQC;AACA;AACA;AACA;AACA;AACC;AACA;AACC;AACC;AACA;AACC;AACA;AAA0B;AAC3B;AAED;AACC;AACA;AAEA;AAED;AACA;AACC;AACA;AAEA;AACD;AAED;AAED;AAA4B;AAI7B;AAEC;AACC;IACD;AAAA;AAGD;AACA;AACA;AACA;AAOA;AACC;AACA;AACC;AACA;AAGA;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AAAwB;AAGzB;AAEA;AACC;AAEE;AACA;AACA;AACA;AAAoB;AAItB;AAEE;AACA;AACC;AACC;AACA;AAAwC;AAEzC;AACA;AACC;AACA;AAA0B;AAC3B;AAED;AAAoB;EAGvB;AAAA;AAOC;AAEE;AACA;AAAe;AAGf;AACA;AAAe;AAGjB;AACA;AACC;AACA;AACA;AAEA;AAED;AACA;AACA;AACA;AACA;AACA;AAA6B;AAQ9B;AACC;AACA;AAEA;AAAkE;AAGnE;AAEE;AACA;AAAe;AAIjB;AAEE;AACA;AACC;AACC;AACA;AACC;AACC;AACA;AAAmB;AAEpB;AAA+B;AAChC;AAED;AAAkB;AACnB;AAIF;AACC;AAEE;AACA;AACA;AACA;AAA2B;EAG9B;AAAA;AAQA;AACC;AACC;IACD;AAAA;AAIC;AACC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAmB;AAGpB;AACC;AACC;AAEA;AAAc;AACd;AACA;AACC;UACD;AAAA;AAGC;UACD;AAAA;AAGC;AACA;UACD;AAAA;AAGA;AAEA;AAEA;AAEA;AAEA;AAEA;AAEA;AACC;AAEC;AACC;AAEA;cACD;AAEC;cACD;AAEC;cACD;AAAA;AACD;AAGD;QACD;MACD;AAAA;AAID;EAED;AAnsBA;AACI;AAAa;AAmsBjB;ACpsBA;AAAA;AACI;AAAmB;AACnB;AAFJ;AAAA;AACI;AAAa;AADqC;ACAtD;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AACC;AACA;AAAsE;AAEvE;AAEA;AACC;AAEE;AACA;AACA;AAEA;EAGH;AAAA;AAjBI;AAAa;AAiBjB;AClBA;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AACC;AACA;AACA;AAA8D;AAG/D;AACC;AAGC;AACA;AACA;AACA;AAEC;AACC;AACA;AAAe;AAGhB;AACC;AACA;AACA;AAAe;AAChB;AACD;AAGD;AAA0G;AAG3G;AACA;AAlCA;AACI;AAAa;AAkCjB;ACnCA;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AACC;AACA;AACA;AAAwJ;AAGzJ;AAEE;AACA;AAAe;AAXjB;AACI;AAAa;AAYf;ACbF;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AACC;AACA;AAIA;AAA0C;AAG3C;AAEE;AACA;AACA;AACA;AAGE;AACA;AACA;AAAe;AAEjB;AAvBF;AACI;AAAa;AAyBjB;AC1BA;AAAA;AACI;AAAmB;AACnB;AADJ;AAcA;AACC;AACA;AACA;AACC;AACA;AAAe;AAChB;AAKD;AAEE;AACA;AACA;AAAe;AAIjB;AACC;AACA;AACA;AACC;AACA;AACA;AAEA;AACD;AAID;AAEE;AACA;AAAe;AAKjB;AAIC;AACC;AACC;MACD;AAAA;AAIA;AACA;AACC;AAEA;MACD;IACD;AAGA;AACC;AACC;AACA;MACD;AAAA;AAID;AACC;AACC;MACD;AAAA;AAEgB;AAEf;MACD;AAAA;IAGD;AAGA;AACC;AACC;MACD;AAAA;AAID;AACC;AACC;AACA;AAA6B;AAE9B;AAA6B;EAE/B;AAAA;AA9GI;AAAa;AA+GjB;AChHA;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AAGA;AACI;AACC;AACA;AAAgB;AAGrB;AACC;AACA;AAOE;AACA;AAEA;AAGF;AACA;AACC;AACA;AAAgB;AACjB;AAGD;AACC;AACC;AACA;AAAe;AAIhB;AACC;AACA;AACA;AACC;AACA;AAA6B;AAC9B;AACD;AAGD;AACC;AACC;AACA;AACC;AACC;AACA;AAAmB;AAEpB;AAA+B;AAChC;AAID;AAEE;AACA;AAAc;AAGd;AACA;AACA;AAEA;AAEF;AAID;EAKA;AApFA;AACI;AAAa;AAmFR;ACpFT;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AACC;AACA;AACA;AACA;AACA;AACA;AAAkC;AAEnC;AAVA;AACI;AAAa;AAUjB;ACXA;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AACC;AACC;AACA;AAAe;AAEhB;AACA;AACA;AACA;AAIC;AACA;AAEA;AAGD;AAEA;AAMA;AAEA;AACA;AACA;AAA8B;AAhC/B;AACI;AAAa;AAiCjB;AClCA;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AACC;AACA;AACA;AACC;AACA;AAAe;AAChB;AARD;AACI;AAAa;AAQf;ACTF;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AACC;AAEA;AACA;AACA;AACA;AACA;AAIE;AACA;AAAe;AAGjB;AAAmC;AAjBpC;AACI;AAAa;AAiBhB;AClBD;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AAEC;AACA;AAKA;AACA;AACA;AACA;AACA;AAAoC;AAdrC;AACI;AAAa;AAchB;ACfD;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AACC;AACA;AACA;AAAkE;AALnE;AACI;AAAa;AAMjB;ACPA;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AACC;AAGE;AACA;AAAe;AAGf;AACA;AAAe;AAIjB;AA0BA;AAuBE;AACA;AAAe;AAKf;AACA;AAAe;AAKf;AACA;AAAe;AAKf;AACA;A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ACA;AACE;IACF;AACA;EACF;AACA;AACE;AAA4B;AAE1B;IACF;AACA;AACA;AACA;EACF;AACA;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACE;MACF;AAAA;AAEF;AACE;AACE;AACE;QACF;AAAA;MAEF;AAAA;AAEE;AACA;MACF;AAAA;AAEE;MACF;AACE;AACA;MACF;AAAA;AAEF;AACE;AACA;AACA;AACA;AACE;MACF;IACF;AACA;AACE;AACE;MACF;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACA;AACA;AACA;AACA;IACF;AACA;AACE;AACE;AACA;MACF;AAAA;AAEF;AACE;AACA;AAAU;AAEZ;EACF;AACA;AApHA;AACI;AAAa;AAoHjB;ACrHA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACE;AAA0B;AAExB;AACE;MACF;AAAA;AAEE;AAAY;AAEZ;MACF;AAAA;IAEF;AACA;AACA;EACF;AACA;AArCA;AACI;AAAa;AAqCjB;ACtCA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACE;AAA0B;AAExB;AACE;MACF;AAAA;AAEE;AAAY;AAEZ;MACF;AAAA;IAEF;AACA;AACA;EACF;AACA;AArCA;AACI;AAAa;AAqCjB;ACtCA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACE;AAAqB;AAEnB;AACE;MACF;AAAA;IAEF;AACA;AACE;AACA;AAAU;AAEZ;EACF;AACA;AAlCA;AACI;AAAa;AAkCjB;ACnCA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACA;AACA;AACE;AAAsB;AAEpB;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;AAAY;AAEd;AACA;AACE;MACF;AAAA;IAEF;AACA;AACE;IACF;AACA;AACE;AACA;AAAU;AAEZ;EACF;AACA;AArDA;AACI;AAAa;AAqDjB;ACtDA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AAAqB;AAEnB;AACE;AAAW;AAEX;MACF;AAAA;AAEA;AACE;MACF;AAAA;AAEE;MACF;AAAA;IAEF;AACA;AACE;IACF;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAgB;AAElB;AACE;AACA;AAAS;AAEX;EACF;AACA;AA5DA;AACI;AAAa;AA4DjB;AC7DA;;AAAA;AACI;AAAmB;AACnB;AADS;AACT;AACA;AACA;EACJ;AACA;AACA;AACI;AACA;AAEI;AAAkC;AAA8B;AAA+C;AAA+B;AAAgD;AAA+B;AAAgD;AAAwB;AAA0B;AAC/T;AACI;AACA;AACA;AAA2C;AAE/C;AACA;AACI;AACA;MACJ;AAAA;IAEJ;AACA;EACJ;AACA;AACA;AACI;EACJ;AAAA;AAEI;EACJ;AAAA;AAEI;AACA;AAAW;AACX;AACI;AACA;AACI;AAAG;AAEP;AACI;AACI;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACI;;AAEA;AAA+B;AAC9B;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AACA;AAAK;AAEL;AACA;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEb;IACJ;AAAA;EAEJ;AAAA;AAEA;AACI;AACA;AAEI;AACA;AACI;MACJ;AAAA;AAEA;AACA;IACJ;AACA;EACJ;AACA;AAvGA;AACI;AAAa;AAuGo8V;ACxGr9V;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACA;AACA;AACE;AACA;AACE;IACF;AAAA;EAEF;AACA;AApBA;AACI;AAAa;AAoBjB;ACrBA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AAAuB;AAErB;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;AAAW;AAEX;MACF;AAAA;AAEI;AACA;AACJ;AACE;AACA;AACE;QACF;AAAA;AAEE;QACF;AAAA;AAEE;QACF;AAAA;AAEE;QACF;AAAA;AACF;AAEE;AACA;AACA;AACA;AACA;AAAiC;IAErC;AACA;AACA;EACF;AACA;AACA;AACE;AACA;AACE;IACF;AAAA;AAEE;AACA;IACF;AACA;AACA;EACF;AACA;AACA;AACE;AACA;AACE;IACF;AAAA;AAEE;AACA;IACF;AACA;AACA;EACF;AACA;AACA;AACE;AACA;AACE;IACF;AAAA;AAEE;AACA;AACA;AACA;IACF;AACA;AACA;EACF;AACA;AAvHA;AACI;AAAa;AAuHjB;ACxHA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AA3BA;AACI;AAAa;AA2BjB;AC5BA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACE;AACE;IACF;EACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACI;IACF;AACF;AACE;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACE;AACA;MACF;AAAA;AAEE;AACA;MACF;AAAA;AAEF;AACE;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACA;AACA;AACA;AACA;AAAiB;AAEnB;EACF;AACA;AAnHA;AACI;AAAa;AAmHjB;ACpHA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACE;AACE;IACF;EACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACI;IACF;AACF;AACE;AACA;AACE;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACE;AACA;MACF;AAAA;AAEE;AACA;MACF;AAAA;AAEF;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACA;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACA;AACA;AACA;AAAiB;AAEnB;EACF;AACA;AA1GA;AACI;AAAa;AA0GjB;AC3GA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACE;AACE;IACF;EACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACI;IACF;AACF;AACE;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACE;AACA;AACA;MACF;AAAA;AAEE;AACA;MACF;AAAA;AAEF;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACA;IACF;AACA;AACE;AACA;AACA;AACA;AACA;AAAiB;AAEnB;EACF;AACA;AA1GA;AACI;AAAa;AA0GjB;AC3GA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACE;AACE;IACF;EACF;AACA;AACA;AACA;AACA;AACA;AACA;AACI;IACF;AACF;AACE;AACA;AACE;AACA;AACA;AACA;IACF;AAAA;AAEE;IACF;AACA;AACE;IACF;AACA;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACA;AACA;AACA;AAAiB;AAEnB;EACF;AACA;AAjGA;AACI;AAAa;AAiGjB;AClGA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACE;AACE;IACF;EACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACI;IACF;AACF;AACE;AACA;AACE;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACE;AACA;AACA;AACA;AACA;AACE;AACA;AAAe;MAEnB;AAAA;IAEF;AACA;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACA;AACA;AACA;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACA;IACF;AACA;AACA;AACE;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;AACE;AACA;MACF;IACF;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AAAiB;AAEnB;EACF;AACA;AApIA;AACI;AAAa;AAoIjB;ACrIA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACA;AACE;AACA;AACE;IACF;AAAA;AAEE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;EACF;AACA;AAjCA;AACI;AAAa;AAiCjB;AClCA;;AAAA;AACI;AAAmB;AACnB;AADS;AACT;AACI;AAAsB;MAA8B;IACxD;AAEI;IACJ;AAAA;AACJ;AARA;AACI;AAAa;AASokC;ACVrlC;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACA;EACF;AAAA;AAEA;AACE;AACE;AAAuC;AAEvC;AAAyC;AAE3C;AACA;AACA;AACE;AACA;AACA;IACF;AACA;AACE;IACF;AACA;AACE;IACF;EACF;AAAA;AAEA;AACE;AACE;AAAuC;AAEzC;EACF;AAAA;AAEA;AACE;AACA;EACF;AAAA;AAEE;EACF;AAAA;AAEA;AACE;EACF;AAAA;AAEA;AACE;AACE;AAAY;AAEd;AACE;AAAW;EAEf;AAAA;AAEA;AACE;AACE;AAAW;AAEb;AACA;AACA;AACE;AACE;MACF;AACE;AACE;AAAiE;MAErE;AACE;AACE;AAA+D;MAEnE;AAAA;AAEF;AACE;AAAqB;AAErB;AAAsB;AAEtB;AAAsB;AAExB;EACF;AAAA;AA7FA;AACI;AAAa;AA8FjB;AC/FA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACE;AACE;IACF;EACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACI;IACF;AACF;AACE;AACA;AACE;AACA;AACA;IACF;AAAA;AAEE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACA;AACE;AACA;AACA;AACA;AACA;MACF;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACE;AACA;AACE;AACA;QACF;AAAA;IAEJ;AACA;AACE;AACA;AACE;AACA;AACA;AACA;AACA;MACF;IACF;AACA;AACE;AACA;AACE;AACA;AACE;AACA;QACF;AAAA;IAEJ;AACA;AACE;IACF;AACA;AACE;AACA;AACE;AACA;MACF;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;AACA;AACA;AACA;AAAiB;AAEnB;EACF;AACA;AApJA;AACI;AAAa;AAoJjB;ACrJA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACE;AACE;IACF;AACA;AAAU;AAEZ;AACE;AACE;AACA;AACA;AACA;IACF;AAAA;AAEE;AACA;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACE;AACA;AAAsB;AAExB;AAAiC;AAEnC;EACF;AACA;AAtDA;AACI;AAAa;AAsDjB;ACvDA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACE;AACE;IACF;AACA;AAAU;AAEZ;AACE;AACE;AACA;AACA;AACA;IACF;AAAA;AAEE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACE;AACA;AAAsB;AAExB;AAAkC;AAEpC;EACF;AACA;AArDA;AACI;AAAa;AAqDjB;ACtDA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACE;AACE;IACF;AACA;AAAU;AAEZ;AACE;AACE;AACA;AACA;AACA;IACF;AAAA;AAEE;IACF;AACA;AACE;AACE;MACF;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACE;AACA;AACA;AAAsB;AAExB;AAAgC;AAElC;EACF;AACA;AAxDA;AACI;AAAa;AAwDjB;ACzDA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACE;AACE;IACF;EACF;AACA;AACA;AACA;AACA;AACE;AACE;IACF;AAAA;AAEE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AAAqC;AACvC;AAEF;EACF;AACA;AArFA;AACI;AAAa;AAqFjB;ACtFA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AAJA;AACI;AAAa;AAIjB;ACLA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACE;AACE;IACF;EACF;AACA;AACA;AACA;AACA;AACA;AACE;AACE;IACF;AACA;AAAU;AAEZ;AACE;AAA2B;AAE3B;EACF;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACA;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACE;MACF;IACF;AACA;AACE;AACA;AACE;AACA;AACA;AAAsB;AAExB;AAAgC;AAElC;EACF;AACA;AA1EA;AACI;AAAa;AA0EjB;AC3EA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACE;AAAqC;AAEnC;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;EACF;AACA;AAvEA;AACI;AAAa;AAuEjB;ACxEA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACA;AACA;AACE;AACA;AACE;AACA;AACA;IACF;AAAA;AAEE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;EACF;AACA;AApCA;AACI;AAAa;AAoCjB;ACrCA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AA5CA;AACI;AAAa;AA4CjB;AC7CA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AAAuB;AAErB;MACF;AACA;AACE;AACE;AACE;AAAW;AAEb;AACI;AACA;AAAuB;QAE7B;MACF;AACA;AACE;AACE;AACE;AAAW;AAEb;AACI;AACA;AAAuB;QAE7B;MACF;AACA;AACE;MACF;AACA;AACE;AACE;AAAW;AAEb;AACE;AAAW;AAEX;QACF;MACF;AACA;AACE;AACE;AAAW;AAEb;AACE;AAAW;AAEX;AACA;QACF;MACF;AACA;IACF;AACA;AACA;AACE;IACF;AAAA;AAEE;AACE;MACF;IACF;AAAA;AAEE;AACE;MACF;AACA;IACF;AAAA;AA7EF;AACI;AAAa;AA8EjB;AC/EA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACE;AACE;IACF;EACF;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AAAU;AAEZ;AACE;AAA8B;AAE5B;AACA;AAA8B;AAEhC;EACF;AACA;AACA;AACE;AACE;IACF;AACA;AAAU;AAEZ;AACE;AACE;IACF;AAAA;AAEE;IACF;AACA;AACE;AACA;AAAgC;AAElC;EACF;AACA;AACA;AACE;AACE;IACF;AACA;AAAU;AAEZ;AACE;AACE;IACF;AAAA;AAEE;IACF;AACA;AACE;AACA;AAAgC;AAElC;EACF;AACA;AA/EA;AACI;AAAa;AA+EjB;AChFA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEA;AACE;AACE;AAAW;AAEX;IACF;AAAA;AAEE;AAAW;AAEX;AACE;MACF;AACE;AACA;MACF;AACE;MACF;AAAA;EAEJ;AAAA;AAEE;EACF;AAAA;AAEE;AACE;AACA;AACA;AACA;IACF;AAAA;AAEE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;IACF;AACA;AACE;AACA;AACA;AACA;AACE;MACF;AAAA;AAEF;AACE;AACA;AACA;AACA;AACE;MACF;AAAA;AAEF;AACE;IACF;AACA;AACE;AACI;AACA;AACJ;AACA;AACA;AACA;AACA;AACA;AACE;MACF;AAAA;AAEE;AACA;MACF;AAAA;AAEE;AACE;AACA;AAAmB;MAEvB;AAAA;AAEF;AACE;IACF;AACA;AACE;AACA;AACE;AACA;AACA;AACA;AACE;QACF;MACF;AAAA;AAEF;AACE;AACE;MACF;AAAA;AAEF;AACE;AACA;AACA;AACA;AACA;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEF;AACE;IACF;AACA;AACE;AACE;MACF;AAAA;AAEA;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AAAA;IAEF;AACA;AACE;AACA;AACE;MACF;AAAA;AAEF;AACE;AACA;IACF;AACA;AACE;AACE;AAAsB;AAEtB;AAAsB;AAEtB;AAAsB;IAE1B;AACA;EACF;AACA;AACA;AACE;AACA;AACE;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;AAEA;AACA;AACE;AACA;AAAe;AAEjB;IACF;AAAA;AAEE;AACI;AACA;AACA;AACJ;AACA;AACA;AACE;AAA2B;AAE3B;AACA;AAAmB;IAEvB;AACA;AACA;AACE;IACF;AACA;AACE;IACF;AACA;EACF;AACA;AACA;AACE;AACA;AACE;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;AAEA;AACA;AACA;AACA;AACA;AACE;AACA;AAAe;IAEnB;AAAA;AAEE;AACA;IACF;AACA;AACE;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;AACE;MACF;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACA;AACE;MACF;AACA;IACF;AACA;AACE;AACE;AACA;MACF;IACF;AACA;AACE;AACA;AACA;AACE;AACE;QACF;AAAA;AAEF;IACF;AACA;AACE;AACA;IACF;AACA;EACF;AACA;AACA;AACE;AACA;AACE;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEA;AACA;AACA;AACA;AACE;AACA;AAAe;IAEnB;AAAA;AAEE;IACF;AACA;AACE;AACA;AACA;IACF;AACA;AACE;AACA;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;IACF;AACA;AACE;AACE;MACF;IACF;AACA;AACE;AACA;AACE;MACF;IACF;AACA;EACF;AACA;AA/aA;AACI;AAAa;AA+ajB;AChbA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACA;AACE;AAAwB;AAEtB;AACE;MACF;AAAA;AAEA;AACA;AACA;AACA;IACF;AACA;AACE;AACE;MACF;AAAA;AAEE;MACF;AAAA;IAEF;AACA;AACE;AACA;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AACA;IACF;AACA;AACE;AACA;AACA;AACE;MACF;AACA;IACF;AACA;AACE;AACE;MACF;AACE;AACA;AACA;AACA;MACF;AACE;MACF;AAAA;AAEF;AACA;EACF;AACA;AACA;AACA;AAjFA;AACI;AAAa;AAiFjB;AClFA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAjDA;AACI;AAAa;AAiDjB;AClDA;;AAAA;AACI;AAAmB;AACnB;AADJ;AADA;AACI;AAAa;AAEovB;ACHrwB;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACE;AACA;AACA;AACA;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;AACA;AACE;QACF;AAAA;AAEA;AACE;AACE;AACA;UACF;AACE;AACA;UACF;AAAA;AAEA;QACF;AAAA;AAEF;AACA;AAAiB;AAEnB;AACE;AACE;AACA;AACE;AACE;UACF;AACE;UACF;AAAA;AACF;AACF;AAEF;AACE;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;AACE;MACF;AACA;AACE;MACF;AACA;AACE;AACE;QACF;AAAA;IAEJ;AACA;AACE;AACA;AACE;MACF;AACA;AACE;MACF;IACF;AACA;AACE;AACA;AACE;MACF;IACF;AACA;AACE;AACA;AACE;AACE;AACE;UACF;QACF;AACE;AACE;UACF;QACF;AACE;AACE;AACE;AAAyC;QAE/C;AAAA;AACF;AAEF;AACE;AACA;AACE;AACE;AACA;AACI;AACF;UACF;AAAA;AAEA;QACF;AAAA;AACF;AAEF;AACE;AACA;AAAqD;AAEvD;EACF;AACA;AApJA;AACI;AAAa;AAoJjB;ACrJA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACE;AACE;AACA;AACA;AACA;IACF;AAAA;AAEE;AACE;AACA;AACE;QACF;AAAA;AAEF;AACA;AAAiB;AAEnB;AACE;AACE;AACE;QACF;AAAA;AAEF;AACA;AAAiB;AAEnB;AACE;AACE;AACA;AACE;AAA2B;AAC/B;AAEF;AACE;AACA;AACE;MACF;AACA;AACE;MACF;AACA;AACA;AACE;MACF;AACA;AACA;AACE;MACF;AAAA;AAEI;AACF;MACF;AAAA;AAEF;AACE;AACA;AACA;AACA;IACF;AACA;AACE;AACE;MACF;AACA;AACA;AACE;AACA;AACE;AACA;QACF;AACE;QACF;AAAA;AACF;IAEF;AACA;AACE;AACE;MACF;AACA;AACE;AACA;AACE;QACF;AACE;QACF;AAAA;AACF;IAEF;AACA;AACE;AACA;AAAmC;AAErC;EACF;AACA;AACA;AACE;AACE;AACA;IACF;AAAA;EAEF;AA3HA;AACI;AAAa;AA2HjB;AC5HA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACE;AACE;AACA;AACA;IACF;AAAA;AAEE;AACE;AACE;AACA;QACF;AACE;AACA;QACF;AAAA;AAEF;AACA;AAAiB;AAEnB;AACE;AACA;AAAe;AAEjB;EACF;AACA;AA7CA;AACI;AAAa;AA6CjB;AC9CA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACE;AACE;AACA;AACA;IACF;AAAA;AAEE;AACE;AACA;AACE;QACF;AAAA;AAEF;AACA;AAAiB;AAEnB;AACE;AACE;AACA;AACE;QACF;AAAA;AACF;AAEF;AACE;AACA;AACE;MACF;AACA;AACE;MACF;AACA;AACE;MACF;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AAA4B;AAE9B;EACF;AACA;AAjEA;AACI;AAAa;AAiEjB;AClEA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACE;AACE;IACF;EACF;AACA;AACA;AACA;AACA;AACA;AACE;AACE;AACA;IACF;AAAA;AAEE;IACF;AACA;AACE;IACF;AACA;EACF;AACA;AACE;AACE;AACA;AACA;IACF;AAAA;AAEE;AACE;AACA;AACA;AACA;AACE;AACA;QACF;AAAA;AAEA;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACA;AACA;AACE;AACA;MACF;AACE;AACE;AACA;QACF;AAAA;AAEA;MACF;AAAA;AAEE;AACA;MACF;AAAA;AAEF;AACE;AACA;AACE;MACF;AAAA;IAEF;AACA;AACE;AACE;AACE;QACF;AAAA;MAEF;AAAA;AAEF;AACE;AACA;AACE;AACA;MACF;AAAA;IAEF;AACA;AACE;AACE;AAAM;AAER;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACA;AAAmB;AAErB;EACF;AACA;AACA;AACE;AACE;AACA;AACA;IACF;AAAA;AAEE;AACE;AACA;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACA;AAAuB;AAEzB;EACF;AACA;AACA;AACE;AACE;IACF;AAAA;AAEA;EACF;AACA;AApJA;AACI;AAAa;AAoJjB;ACrJA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACA;AACA;AACA;AARA;AACI;AAAa;AAQjB;ACTA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAiB;AACvB;AAEA;AACA;AACA;AACA;AACA;AA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jB;ACNA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACE;IACF;AACE;IACF;AAAA;AANF;AACI;AAAa;AAMhB;ACPD;AAAA;AACI;AAAmB;AACnB;AADJ;AACI;AACA;AACJ;AACE;AACI;AACJ;AACA;AACE;IACF;EACF;AAXA;AACI;AAAa;AAWjB;ACZA;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AACE;AACE;IACF;EACF;AANA;AACI;AAAa;AAMjB;ACPA;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AACA;AACE;EACF;AALA;AACI;AAAa;AAKjB;ACNA;AAAA;AACI;AAAmB;AACnB;AADJ;AAAmB;AAA6E;AAAe;AAD/G;AACI;AAAa;AAAiG;ACDlH;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACE;AACA;AACE;AACI;AACA;AACJ;AACA;AACE;AAA2B;AAE7B;AACE;AACA;AACE;QACF;AACE;AACA;AACA;AACA;AACA;AACA;QACF;AAAA;AAEA;MACF;AACE;AACA;AACE;QACF;AAAA;MAEF;AAAA;AACF;AAEF;AApCA;AACI;AAAa;AAoCjB;ACrCA;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AACE;EACF;AAJA;AACI;AAAa;AAIjB;ACLA;AAAA;AACI;AAAmB;AACnB;AADJ;AAAmB;AAAwD;AAAe;AAD1F;AACI;AAAa;AAA4E;ACD7F;AAAA;AACI;AAAmB;AACnB;AADJ;AAEA;AAA0B;AAAY;AAFlC;AAAa;AAEqD;ACHtE;AAAA;AACI;AAAmB;AACnB;AADJ;AACI;AACA;AACA;AACJ;AACE;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACE;AAAa;AAEb;AACA;AACE;AAAQ;AAEV;AACE;AACE;QACF;AACA;AACA;MACF;AACA;AACE;AAA4D;AAChE;AAEF;AACA;AACA;AACA;AACA;AACA;AACA;AAzCA;AACI;AAAa;AAyCjB;AC1CA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;EACF;AAHA;AACI;AAAa;AAEhB;ACHD;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AACE;AACE;AAA0C;EAE9C;AANA;AACI;AAAa;AAMjB;ACPA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AAA2B;AAA2C;EAExE;AAJA;AACI;AAAa;AAGhB;ACJD;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AACE;AACA;AACE;AAAS;AAET;AACE;AACE;QACF;AAAC;AAED;AACE;QACF;AAAC;AAED;AACE;QACF;AAAC;AAEL;AACE;IACF;EACF;AAvBA;AACI;AAAa;AAuBjB;ACxBA;AAAA;AACI;AAAmB;AACnB;AADJ;AACI;AACA;AACJ;AACE;AACA;AACE;AAAoD;AAExD;AACE;AACE;AACE;AACA;AACA;MACF;AACE;MACF;AAAA;AAEE;AACA;AACE;;AAEA;AAAa;MAEjB;IACF;AACA;AAAW;AA3Bb;AACI;AAAa;AA4BjB;AC7BA;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AAFA;AACI;AAAa;AAEjB;ACHA;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AAA0B;AAAU;AADhC;AAAa;AACmD;ACFpE;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AAFA;AACI;AAAa;AAEjB;ACHA;AAAA;AACI;AAAmB;AACnB;AADJ;AAAmB;AAAkE;AAAe;AADpG;AACI;AAAa;AAAsF;ACDvG;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACE;AACE;IACF;AAAA;AAEI;AACA;AACA;AACA;AAAiB;AAErB;AACE;AAAuG;AAE3G;AAjBA;AACI;AAAa;AAiBjB;AClBA;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAqB;AAZvB;AACI;AAAa;AAYhB;ACbD;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AACE;EACF;AAJA;AACI;AAAa;AAIjB;ACLA;AAAA;AACI;AAAmB;AACnB;AADJ;AAAmB;AAAiE;AAAe;AADnG;AACI;AAAa;AAAqF;ACDtG;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACE;AACE;AACE;AACA;AACA;AACA;AACE;AA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AgB;;;;ACxClB;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AAHA;AACI;AAAa;AAGjB;ACJA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AAHA;AACI;AAAa;AAGjB;ACJA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AATA;AACI;AAAa;AASjB;ACVA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;AACE;AACA;AACE;QACF;AACE;AACA;AACE;UACF;AAAA;QAEF;MACF;AACA;AAAuF;AAEvF;AACE;AACE;QACF;MACF;AACA;AAAqD;EAEzD;AAAA;AAEE;EACF;AAAA;AAEA;AACA;AACA;AACE;AACA;AACE;AACE;MACF;AACE;MACF;AAAA;AAEA;IACF;AAAA;AACF;AAEA;AACE;AACE;AACA;IACF;AAAA;AACF;AAEA;AACE;AACA;AACA;AACE;AACA;IACF;AACA;AACA;EACF;AAAA;AAEE;AACA;AACE;AACE;MACF;AAAE;AACN;AAEE;AAAwB;AAEtB;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACA;EACF;AACA;AACA;AACE;AACA;AACE;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;IACF;AACA;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACA;IACF;AACA;AACE;AACA;AACA;AACA;AACE;AACE;AACE;UACF;AAAA;QAEF;MACF;AACA;IACF;AACA;AACE;AACA;AACA;AACA;AACE;AACE;AACE;UACF;AACA;AAAO;AAET;AACA;AACE;AACA;AACA;AACE;UACF;QACF;AACE;AACE;UACF;AACE;UACF;AAAA;AACF;AAEF;AACA;AACA;AACA;IACF;AACA;AACE;AACE;MACF;AACA;AACE;MACF;AACA;IACF;AACA;AACE;IACF;AACA;EACF;AACA;AACA;AACE;AACA;AACE;AACE;MACF;AAAE;AACN;AAEE;AAA2B;AAEzB;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACA;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACA;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACA;EACF;AACA;AACA;AACE;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;AACE;UACF;QACF;MACF;AAAA;IAEF;AAAA;AAEE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACA;AACE;AACA;AACE;QACF;AAAA;AAEA;AACA;AACE;AACA;AACA;AACE;AACA;UACF;AACA;AACA;AACE;UACF;AAAA;AAEE;UACF;QACF;AACE;AACA;QACF;AAAA;AAEF;AACE;AACA;AACA;AACA;MACF;IACF;AACA;AACE;AACA;AACA;AACA;AACA;AACE;MACF;IACF;AACA;AACE;AACE;MACF;AAAA;AAEA;IACF;AACA;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AAAA;AAEA;AACE;AACA;AACE;QACF;AACA;AACE;AACE;UACF;QACF;AAAA;AAEA;AACA;MACF;AAAA;AAEF;AACE;AACE;MACF;AACA;AACE;MACF;AACA;IACF;AACA;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACA;EACF;AACA;AA5WA;AACI;AAAa;AA4WjB;AC7WA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AAJA;AACI;AAAa;AAIjB;ACLA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAfA;AACI;AAAa;AAejB;AChBA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAxBA;AACI;AAAa;AAwBjB;ACzBA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACA;AACA;AACA;AACA;AACE;AAAyB;AAEvB;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACA;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACA;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACA;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACA;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACA;AACE;AACE;MACF;AAAA;AAEA;IACF;AACA;AACE;AACE;MACF;AAAA;AAEA;IACF;AACA;EACF;AACA;AACA;AACE;AACA;AACE;AACA;AACA;AACA;IACF;AAAA;AAEE;AACE;AACE;QACF;AAAA;MAEF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;IACF;AACA;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;AACA;AACE;QACF;AAAA;MAEF;AACA;AACA;AAAiB;AAEnB;AACE;IACF;AACA;AACE;AACE;MACF;AAAA;IAEF;AACA;AACE;AACE;MACF;AAAA;IAEF;AACA;AACE;IACF;AACA;AACE;AACA;AACA;AACA;AACE;MACF;AAAA;AAEE;AACA;AACE;AACA;AACA;AACE;AACE;YACF;UACF;AAAA;AACF;AACF;IAEF;AACA;EACF;AACA;AACA;AACE;EACF;AAAA;AAEA;AACE;AACE;IACF;EACF;AAAA;AAEA;AACE;AAAkB;AAEhB;AACA;AACA;AACE;MACF;AACA;AACE;MACF;AACA;IACF;AACA;AACE;AACA;AACE;AACA;MACF;AACA;IACF;AACA;AACE;AACA;AACE;AACA;MACF;AACA;IACF;AACA;EACF;AACA;AAlNA;AACI;AAAa;AAkNjB;ACnNA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACE;AAAoB;AAElB;IACF;AACA;AACA;EACF;AACA;AA5BA;AACI;AAAa;AA4BjB;AC7BA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACA;AACA;AACA;AACA;AACA;AACE;AACE;AACA;MACF;AAAA;IAEF;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACA;QACF;AACE;AACA;QACF;AAAA;AAEA;AACA;AACA;MACF;AAAA;AAEE;MACF;AACA;AACE;AACE;QACF;AACA;AACA;AAAiB;AAEnB;AACE;AACA;AACE;QACF;MACF;AACA;AACE;MACF;AACA;AACE;AACE;QACF;AACA;AACA;AAAiB;AAEnB;AACE;AACA;AACE;QACF;MACF;AACA;AACE;AACA;AACE;QACF;AAAA;AAEA;AACE;AACE;AACE;YACF;AAAA;QAEJ;AACE;QACF;AAAA;AAEF;AACE;AACE;QACF;AACA;AACA;AAAiB;AAEnB;AACE;AACA;AACE;QACF;MACF;AACA;AACE;AACE;QACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;QACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;QACF;AACA;AACA;AAAiB;AAEnB;AACE;MACF;AACA;AACE;AACE;QACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;QACF;AACE;AACA;AACE;UACF;AACE;UACF;AAAA;AACF;AAEF;AACE;AACE;QACF;AACE;QACF;AAAA;AAEF;AACE;AACA;AACA;AACA;AACE;AACI;YACF;QACJ;AACE;AACI;YACF;QACJ;AAAA;AAEE;AACE;AACE;AACE;AACA;AACE;AACA;AACA;AACE;kBACF;AAAA;AACF;cAEF;AACE;AACA;AACE;AACE;AACE;AACA;AACA;AACE;sBACF;AAAA;AAEA;AACA;oBACF;AAAA;AACF;AAEE;AACA;AACE;oBACF;AAAA;AACF;AACF;AACF;UAEJ;AACA;AACE;AACE;AACA;AACE;AACA;AACE;gBACF;AACE;AACA;gBACF;AAAA;AAEF;YACF;UACF;AACA;AACE;AACE;AACA;AACE;cACF;AAAA;AAEA;AACE;AACA;cACF;AACA;AACA;AACA;YACF;UACF;AACA;AACE;AACE;AACA;YACF;UACF;AACA;AAAe;MAEnB;AACA;AACE;AACE;AACA;AACE;AACA;UACF;AAAA;AAEE;UACF;AAAA;AAEE;UACF;AAAA;AAEA;AACA;AACA;QACF;AAAA;AAEF;IACF;AACA;EACF;AAtQA;AACI;AAAa;AAsQjB;ACvQA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;AACA;AACA;AACA;IACF;AAAA;AAEE;AACA;AACE;MACF;AACA;AACE;AACE;AACE;AACA;UACF;AAAA;MAEJ;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;AACE;MACF;AAAA;AAEA;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACE;MACF;AAAA;AAEE;AACE;QACF;AAAA;IAEJ;AACA;AACE;AACA;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACA;EACF;AACA;AACA;AACE;AACE;AACA;IACF;AAAA;AAEE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACE;MACF;AAAA;IAEF;AACA;AACA;EACF;AACA;AACA;AACE;AAAgC;AAEhC;AACE;IACF;AACA;AACA;EACF;AACA;AACE;EACF;AAAA;AAEA;AAhIA;AACI;AAAa;AAgIjB;ACjIA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEE;AACA;AAAO;AAZT;AACI;AAAa;AAajB;ACdA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AAAqB;EAEvB;AACA;AACA;AACE;EACF;AAAA;AAEE;AACA;AACE;AACA;IACF;AAAA;AAEE;AACA;AACA;AACE;MACF;AAAA;IAEF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACA;EACF;AACA;AACA;AACE;EACF;AAAA;AApEA;AACI;AAAa;AAqEjB;ACtEA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AAAgC;AAE9B;AACA;IACF;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACE;QACF;AAAA;AAEA;AACA;AACE;QACF;AAAA;AAEA;AACA;AACE;AACA;AACA;AACA;AACE;AACA;UACF;AAAA;AAEA;AACE;AACE;AACA;YACF;AACE;AACA;YACF;AAAA;AACF;AAEA;AACA;AACA;AACE;AACA;UACF;AAAA;AACF;AAEA;AACE;QACF;AAAA;AAEA;MACF;AAAA;IAEF;AACA;AACE;IACF;AACA;AACE;AACE;AACA;MACF;AAAA;AAEA;AACA;AACE;AACA;MACF;AAAA;AAEA;AACA;AACE;AACE;QACF;AAAA;AACF;IAEF;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACE;AACA;MACF;AAAA;AAEF;AACE;AACE;AACA;MACF;AAAA;AAEA;AACA;AACA;AACA;IACF;AACA;AACE;AACA;AACA;AACE;AACA;AACA;AACE;QACF;AACE;AACE;AACA;AACA;AACA;UACF;AAAA;AAEA;AACA;AACA;AACE;AACA;AACA;AACE;AACA;AACA;YACF;AAAA;AACF;AAEA;AACA;QACF;AAAA;AACF;AAEF;AACE;AACE;AACE;AACE;UACF;AACE;UACF;AAAA;MAEJ;AAAA;AAEF;AACE;AACA;AACE;AACA;AACA;AACE;AACA;QACF;AAAA;AACF;AAEF;AACE;AACA;AACE;AACA;AACE;AACE;UACF;AAAA;AAEA;AACA;AACA;AACE;AACA;AACE;YACF;AAAA;AACF;AACF;AACF;AAEF;AACA;EACF;AACA;AA5NA;AACI;AAAa;AA4NjB;AC7NA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACE;AACE;IACF;EACF;AACA;AACA;AACA;AACA;AACA;AACE;AACE;AACA;IACF;AAAA;AAEE;AACA;AACE;MACF;AAAA;IAEF;AACA;AACE;AACA;AACA;AACE;AACA;MACF;AAAA;AAEA;AACE;MACF;AAAA;IAEF;AACA;AACA;EACF;AACA;AAvDA;AACI;AAAa;AAuDjB;ACxDA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACE;AAA4B;AAE5B;AACA;AACA;EACF;AACA;AA1BA;AACI;AAAa;AA0BjB;AC3BA;;AAAA;AACI;AAAmB;AACnB;AADS;AACT;AACI;AACA;IACJ;AAAA;EAEJ;AACA;AARA;AACI;AAAa;AAQ4xB;ACT7yB;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACA;AACE;AACE;AACA;IACF;AAAA;AAEE;AACA;AACE;MACF;AACA;IACF;AACA;AACE;AACA;AACE;AAAwE;IAE5E;AACA;EACF;AACA;AACA;AACE;AACE;AACA;AACA;IACF;AAAA;AAEE;AACA;AACE;AAAa;AAEf;AACA;AACA;AACE;MACF;AAAA;IAEF;AACA;EACF;AACA;AA/CA;AACI;AAAa;AA+CjB;AChDA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACE;AACE;IACF;EACF;AAAA;AAEA;AACE;AACE;IACF;EACF;AAAA;AAfA;AACI;AAAa;AAgBjB;ACjBA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACA;EACF;AACA;AACA;AACE;AACE;IACF;AAAA;EAEF;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AACA;AACE;AACE;AAA6E;AAE7E;MACF;AAAA;AAEA;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACA;IACF;AACA;AACE;AACE;MACF;AACE;AACA;AACE;QACF;AACE;QACF;AACE;QACF;AACE;AACA;QACF;AACE;QACF;AAAA;AACF;AAEF;AACE;AACE;AACA;MACF;AAAA;AAEF;AACE;AACA;AACA;AACE;AACE;AAAkD;AACtD;AAEF;AACE;AACA;AACA;AACE;AACE;AAA+C;AACnD;AAEF;AACE;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;IACF;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;MACF;AACE;MACF;AAAA;AAEF;AACE;AACA;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACA;IACF;AACA;AACE;AACE;AACE;QACF;AACE;QACF;AAAA;AAEA;AACA;AACA;MACF;AAAA;AAEF;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;EACF;AACA;AACA;AACE;AACA;AACA;AACE;AACA;IACF;AAAA;EAEF;AAAA;AAEE;AACE;AACA;AACA;AACA;AACA;IACF;AAAA;EAEF;AACA;AACE;AACA;AACE;IACF;AAAA;EAEF;AACA;AACE;AACE;AACA;AACA;IACF;AAAA;EAEF;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;QACF;MACF;AAAA;AAEE;AACE;QACF;MACF;AAAA;AAEF;AACE;IACF;AACA;EACF;AACA;AAlQA;AACI;AAAa;AAkQjB;ACnQA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACE;MACF;AAAA;AACF;EAEF;AACA;AAlBA;AACI;AAAa;AAkBjB;ACnBA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACA;AACA;AACA;AACA;AACE;AAA6B;AAE3B;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACA;EACF;AACA;AACA;AACE;AACA;AACE;AACA;AACA;IACF;AAAA;AAEE;AACA;AACA;IACF;AACA;AACE;IACF;AACA;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AAAA;AAEE;AAAmB;IAEvB;AACA;AACE;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;AAAmB;IAEvB;AACA;AACE;AACE;MACF;AAAA;AAEE;AAAmB;IAEvB;AACA;AACE;IACF;AACA;AACE;AACE;MACF;AAAA;AAEE;AAAuB;IAE3B;AACA;AACE;AACE;MACF;AAAA;AAEE;AAAuB;IAE3B;AACA;EACF;AACA;AA1GA;AACI;AAAa;AA0GjB;AC3GA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACA;AACE;AAAuB;AAErB;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACA;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;EACF;AACA;AACA;AACE;AACA;AACE;AACA;AACA;AACA;IACF;AAAA;AAEE;AACE;MACF;AACA;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;EACF;AACA;AA3DA;AACI;AAAa;AA2DjB;AC5DA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACA;AACA;AACE;EACF;AAAA;AAEA;AACE;EACF;AAAA;AAEA;AACE;AAAoB;AAElB;AACE;MACF;AACA;AACE;MACF;AACA;AACA;AAAiB;AAEnB;EACF;AACA;AACA;AACE;AACA;AACE;AACA;AACA;IACF;AAAA;AAEE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;AACE;QACF;AAAA;MAEF;AACA;AACA;AAAiB;AAEnB;AACE;IACF;AACA;EACF;AACA;AACA;AACE;AAAyB;EAE3B;AACA;AACA;AACE;AACA;AACE;AACA;IACF;AAAA;EAEF;AACA;AAtFA;AACI;AAAa;AAsFjB;ACvFA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACA;AACE;AAAwB;EAE1B;AACA;AACA;AACE;AACA;AACE;AACA;IACF;AAAA;AAEE;AACA;AACA;IACF;AACA;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;IACF;AACA;EACF;AACA;AAxCA;AACI;AAAa;AAwCjB;ACzCA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACE;AACE;AAAY;AAEd;AACE;AACE;AAAiC;AAEjC;AAAoC;AAEpC;AAA8B;AAE9B;AAAiC;AAEjC;AAA0B;AAE1B;AAAwB;AAExB;AAA0B;AAE1B;AAAuB;AAEvB;AADK;EAGX;AAAA;AA5BA;AACI;AAAa;AA6BjB;AC9BA;;AAAA;AACI;AAAmB;AACnB;AACJ;AACI;AACA;AAC0C;IAA6B;AACvE;AAA4C;IAA4B;AAGxE;AACI;IACJ;AACA;AACI;AACI;AAA0B;IAElC;AACA;AACI;IACJ;AACA;AACI;AACI;AACI;QACJ;AAEI;QACJ;AAAA;IAER;AACA;AACI;IACJ;AACA;AAA4C;IAA+B;AAC3E;AACI;AACA;AACA;AACI;AACA;MACJ;AACA;AAAS;AAAY;AAAkB;AAAa;IACxD;AACA;EACJ;AACA;AA9CA;AACI;AAAa;AA8C4xK;AC/C7yK;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACA;AACA;AACE;AACA;AACE;AACA;AACA;AACA;IACF;AAAA;AAEE;AACE;MACF;AAAA;AAEA;AACA;AACA;AACA;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEA;AACE;MACF;AAAA;AAEF;EACF;AACA;AAzCA;AACI;AAAa;AAyCjB;AC1CA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACE;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACA;IACF;AACA;AACE;AACE;MACF;AACE;AACA;MACF;AACE;AACA;MACF;AACE;MACF;AAAA;AAEA;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACE;MACF;AAAA;AAEA;AACA;AACA;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AAAA;AAEA;AACA;AACE;MACF;AAAA;AAEA;IACF;AACA;AACE;AACE;MACF;AAAA;AAEA;AACE;MACF;AAAA;AAEA;IACF;AACA;AACE;AACA;AACA;AACA;AACE;MACF;AAAA;AAEF;AACE;AACA;AACA;AACA;AACA;AACA;AACE;MACF;AAAA;IAEF;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACE;MACF;AAAA;IAEF;AACA;EACF;AACA;AACA;AACE;AACA;AACE;AACA;AACA;IACF;AAAA;AAEE;AACA;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;EACF;AAzKA;AACI;AAAa;AAyKjB;AC1KA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACA;AACE;AACA;AACE;AACA;AACA;IACF;AAAA;AAEE;AACE;MACF;AAAA;AAEA;AACA;AACA;AACA;IACF;AACA;AACE;AACE;MACF;AAAA;IAEF;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACE;MACF;AAAA;IAEF;AACA;EACF;AACA;AAhDA;AACI;AAAa;AAgDjB;ACjDA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACA;AACE;AACA;AACE;AACA;AACA;IACF;AAAA;AAEE;AACA;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEA;AACA;AACA;AACE;AACA;MACF;AAAA;AAEA;AACE;AACA;AACA;MACF;AACA;IACF;AACA;AACE;AACA;AACE;AACA;MACF;AAAA;IAEF;AACA;EACF;AACA;AAnDA;AACI;AAAa;AAmDjB;ACpDA;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AACA;AACE;AACE;AACA;AACA;IACF;AAAA;AAEE;IACF;AACA;AACE;AACE;MACF;AAAA;AAEA;AACA;AACE;MACF;AAAA;IAEF;AACA;AACE;AACE;MACF;AAAA;IAEF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;EACF;AACA;AArCA;AACI;AAAa;AAqCjB;ACtCA;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AAFA;AACI;AAAa;AAEjB;ACHA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACA;AACA;AACA;AACE;AACA;AACE;AACE;MACF;AAAA;AAEA;AACA;AACA;IACF;AAAA;AAEE;AACE;MACF;AAAA;IAEF;AACA;AACE;AACA;AACA;AACA;AACE;AACE;AACA;QACF;AACE;AACE;AACA;AACA;AACA;UACF;AACE;UACF;AACE;AACE;YACF;UACF;QACF;AAAA;AAEA;AACA;AACE;AACA;AACE;AACA;AAAqB;QAEzB;AACE;AACE;AACA;AACA;AACE;AACA;AAAqB;UAEzB;AACE;AACE;AACA;AAAqB;UAEzB;AACE;AACE;YACF;UACF;QACF;AAAA;MAEF;AAAA;AAEF;EACF;AACA;AACA;AACE;AACI;AACJ;AACA;EACF;AAAA;AAEE;AACI;AACJ;EACF;AAAA;AA9FI;AAAa;AA+FjB;AChGA;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AACE;AACA;AACE;AACE;MACF;AACE;MACF;AAAA;AACF;AAEE;IACF;AAAA;AAEE;AACA;AACE;MACF;AACE;MACF;AACE;MACF;IACF;EACF;AAAA;AAxBA;AACI;AAAa;AAyBjB;AC1BA;AAAA;AACI;AAAmB;AACnB;AADJ;AAAyB;EAAS;AAAA;AADlC;AACI;AAAa;AAEoB;ACHrC;AAAA;AACI;AAAmB;AACnB;AADJ;AACI;AACI;AACI;MACJ;AAEI;MACJ;AAAA;AACJ;AAEA;EACJ;AAAA;AAZA;AACI;AAAa;AAasB;ACdvC;AAAA;AACI;AAAmB;AACnB;AADJ;AAAkB;AADlB;AACI;AAAa;AAEc;ACH/B;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AACE;AACE;AACA;AACE;MACF;AAAA;AACF;AAEE;IACF;AACA;AACE;AACE;MACF;AAAA;AAEA;AACA;AACA;AACA;AACE;MACF;AAAA;AAEE;AACA;AACA;AACE;QACF;AAAA;AACF;AAEF;AACE;AACE;MACF;AAAA;AAEA;AACE;AACE;AAAoC;AAEpC;AACE;UACF;AACE;UACF;AACE;AACA;UACF;AAAA;AACK;AAEL;AADK;IAGX;AACA;AACE;AACE;MACF;AAAA;AAEA;AACE;AACA;AACE;QACF;AAAA;AACF;AAEF;AACE;AACA;IACF;AACA;EACF;AACA;AAvEA;AACI;AAAa;AAuEjB;ACxEA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACE;AACA;AACA;AACA;AACE;MACF;AAAA;AAEA;AACE;MACF;AACE;MACF;AAAA;AACF;AAEE;IACF;AACA;AACE;AACE;AACA;AACE;QACF;AACE;QACF;AAAA;AAEF;AACE;AACA;AACE;QACF;AACE;QACF;AAAA;AAEF;AACA;AAAiB;AAEnB;AACE;AACA;AACA;AACA;AACA;IACF;AACA;AACE;AACA;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACA;AACE;MACF;AAAA;AAEF;AACE;AACA;AACE;MACF;AAAA;AAEF;AACE;AACA;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AAAA;AAEF;AACE;AACE;AACA;MACF;AAAA;AAEF;AACE;AACE;AACA;MACF;AAAA;AAEF;EACF;AACA;AA1HA;AACI;AAAa;AA0HjB;AC3HA;AAAA;AACI;AAAmB;AACnB;AADJ;AACI;AACA;AACA;AACA;AACA;AACA;AAAiB;AAErB;AAEA;AACA;AACA;AACA;AACI;EACJ;AAAA;AAfI;AAAa;AAgBc;ACjB/B;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AACE;AACA;AACA;AACA;AACA;EACF;AAAA;AAEA;AACE;AACE;IACF;AAAA;AACF;AAEA;AACA;AACE;AACE;AACE;MACF;IACF;AAAA;EAEF;AAAA;AAEA;AACE;EACF;AAAA;AAEA;AACE;AACE;AACE;MACF;AACE;MACF;AACE;AACA;AACE;AACA;AACE;AACA;UACF;AAAA;AACF;AAEA;MACF;AAAA;AACF;AACF;AAEA;AACE;AACE;AACE;MACF;AACE;MACF;AAAA;AACF;AACF;AAEA;AA7DA;AACI;AAAa;AA6DjB;AC9DA;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AAFA;AACI;AAAa;AAEjB;ACHA;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AACA;AACA;AACA;AACE;AACE;AACA;AACE;MACF;AAAA;AACF;AAEE;AACA;AACA;AACA;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACE;AACE;QACF;AACE;QACF;AACE;QACF;AAAA;AAEA;AACA;MACF;AAAA;AAEA;IACF;AACA;AACE;AACE;AACE;QACF;AACE;QACF;AAAA;AACF;AAEE;MACF;AAAA;AAEA;AACE;AACE;AACI;AACA;AACJ;QACF;AACA;AACA;MACF;AACE;MACF;AAAA;AAEE;AACI;AACA;AACJ;MACF;AACA;AACA;AACA;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;EACF;AACA;AAhFA;AACI;AAAa;AAgFjB;ACjFA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AAAyB;AAEvB;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;EACF;AACA;AACA;AACE;AAA8B;AAE5B;AACE;MACF;AAAA;AAEA;AACA;AACE;AACA;AACA;AAAmB;IAEvB;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;EACF;AACA;AACA;AACE;AACA;AACE;AACE;MACF;AAAA;AAEA;IACF;AAAA;AAEE;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACE;MACF;AACA;AACE;MACF;AACA;AACE;AACE;AACE;UACF;QACF;AACE;QACF;AACA;AACE;AACE;AACE;YACF;UACF;AACE;UACF;QACF;AAAA;AAEE;AACE;AACE;YACF;UACF;AACE;UACF;QACF;AAAA;AAEA;AACE;AACE;UACF;QACF;AACE;QACF;AACA;AACE;AACE;AACE;YACF;UACF;AACE;UACF;QACF;AAAA;AAEE;AACE;AACE;YACF;UACF;AACE;UACF;QACF;AAAA;AACF;IAEF;AACA;EACF;AACA;AAnKA;AACI;AAAa;AAmKjB;ACpKA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACE;AACE;AACA;IACF;AAAA;AAEE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;EACF;AACA;AAhEA;AACI;AAAa;AAgEjB;ACjEA;;AAAA;AACI;AAAmB;AACnB;AADS;AACb;AACI;AACI;AACA;AACA;IACJ;AAAA;AAEI;AAA6B;AAAyB;AACtD;AACA;AAEI;AACA;AACA;MACJ;AAAA;IAEJ;AACA;AACI;IAEJ;AACA;EACJ;AACA;AAzBA;AACI;AAAa;AAyBgxF;AC1BjyF;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACA;AACA;AACE;AACA;AACE;AACA;AACA;IACF;AAAA;AAEE;AACA;AACA;IACF;AACA;EACF;AACA;AA3BA;AACI;AAAa;AA2BjB;AC5BA;;AAAA;AACI;AAAmB;AACnB;AADS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACJ;AACA;AAIA;AAfA;AACI;AAAa;AAwB40nB;ACzB71nB;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACE;AAA8B;IAElC;AACA;EACF;AACA;AACA;AACE;AACE;AACE;MACF;AACE;MACF;AAAA;AACF;AAEE;IACF;AACA;AACE;IACF;AACA;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;EACF;AACA;AACA;AACE;AACA;AACE;AACA;AACA;AACA;IACF;AAAA;AAEE;AACA;AACE;AAAO;AAEP;AAAO;AAEP;AAA0H;AAE9H;AACE;IACF;AACA;AACE;AACE;MACF;AACA;IACF;AACA;AACE;AACE;MACF;IACF;AACA;EACF;AACA;AACA;AACE;AACA;AACE;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;AACE;AAAS;AAEX;AACE;AACA;QACF;AACA;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AAAA;AAEA;AACA;AACA;AACA;AACA;IACF;AACA;AACE;AACA;IACF;AACA;EACF;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;IACF;AAAA;EAEF;AACA;AACA;AACE;AACE;AACA;IACF;AAAA;EAEF;AACA;AACA;AACE;AACE;AACA;IACF;AAAA;AAEE;AACA;AACA;AACE;MACF;IACF;AACA;EACF;AACA;AACA;AACE;AACA;AACE;AAAS;AAEX;AACE;AACA;IACF;EACF;AAAA;AAEE;AACA;AACE;AACE;AACA;AACA;AACE;QACF;AACA;AACA;AACE;AACE;AAAsD;MAE5D;AAAA;AAEF;EACF;AAAA;AAEE;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;MACF;AAAA;IAEF;AAAA;AAEE;AACA;AACA;AACE;MACF;AAAA;AAEA;IACF;AACA;AACE;AACE;MACF;IACF;AACA;AACE;AACA;AACE;MACF;AACA;AACA;AACE;MACF;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;AACE;MACF;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;IACF;AACA;EACF;AACA;AACA;AACE;AACE;AACA;AACA;IACF;AAAA;EAEF;AACA;AACE;AACA;AACE;AACA;AACA;AACA;AACA;AACE;MACF;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACA;AACA;AACA;AACA;AACA;IACF;AACA;AACE;AACA;AACA;AACA;AACA;AACA;IACF;AACA;AACE;AACA;AACA;AACA;IACF;AACA;AACE;AACE;AACE;AACA;QACF;AACE;QACF;AAAA;AAEA;AACE;AACA;QACF;AACE;QACF;AAAA;AAEA;AACE;QACF;AAAA;AACF;AAEF;AACE;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACE;AACA;AACA;AACA;AACE;AAAwC;AAExC;AAAmC;AAEnC;AAAgE;AAEhE;AACE;AACA;UACF;AACE;UACF;AAAA;AACF;AAEE;QACF;AAAA;AAEE;QACF;AAAA;AAEE;AACE;AACE;YACF;AAAA;UAEF;AAAA;QAEF;AAAA;AAEA;AACE;AACA;QACF;AAAA;AACF;IAEF;AACA;AACE;AACA;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACA;AACE;MACF;AAAA;IAEF;AACA;AACE;AACE;MACF;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACE;AAAS;AAEX;AACA;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACE;AACA;MACF;AAAA;AAEF;AACE;AACA;AACE;AAAiD;AAErD;EACF;AACA;AACA;AACE;AAAgC;AAEhC;AACA;AACA;AACA;AACA;AACA;AACE;IACF;AACA;EACF;AACA;AACA;AACE;AACE;AACA;AACE;AAA4C;AAE5C;AAA4C;AAE5C;AAA4C;AAChD;AAEE;AACE;AAAwB;AAExB;AAAwB;AAExB;AAAwB;AAE5B;AACE;AACE;AAAwB;AAExB;AAAwB;AAExB;AAAwB;AAE5B;AACE;AACE;AAAqB;AAErB;AAAqB;AAErB;AAAqB;AAEzB;AACE;AACE;AAAuB;AAEvB;AAAuB;AAEvB;AAAuB;AAE3B;AACE;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;AAEF;AACE;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;AAEF;AACE;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;IAEF;AACA;AACA;EACF;AACA;AACE;AACE;AACE;MACF;IACF;AAAA;AAEE;AACE;AACA;AACE;AAAc;AAClB;AAEF;AACE;AACE;AACA;AACE;AAAc;AAClB;AAEF;AACE;AACE;AACA;MACF;AAAA;AAEF;AACE;AACE;AACA;MACF;AAAA;AAEF;AACE;AACE;AACA;AACE;QACF;AAAA;AACF;AAEF;AACE;AACE;AACA;AACE;QACF;AAAA;AACF;AAEF;AACE;AACE;AACA;AACE;QACF;AAAA;AACF;IAEF;AACA;EACF;AACA;AACE;AACE;AACA;IACF;AAAA;AAEE;AACA;AACA;AACA;AACE;AAA0D;AAE1D;AAA0D;AAE1D;AAA0D;AAE1D;AAA0D;AAE1D;AAA0D;AAE1D;AAA0D;AAE1D;AAA0D;AAE1D;AAA0D;AAE1D;AAA0D;AAE1D;AAA0D;AAE9D;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AACA;AACE;AACA;AACA;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;AAEF;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACA;AACE;AACE;AAA0D;MAE9D;AAAA;AAEE;AACE;AAA0D;MAE9D;AAAA;AAEE;AACE;AAA0D;MAE9D;AAAA;AAEE;AACE;AAA0D;MAE9D;AAAA;AAEE;AACE;AAA0D;MAE9D;AAAA;AAEE;AACE;AAA0D;MAE9D;AAAA;AAEE;AACE;AAA0D;MAE9D;AAAA;AAEE;AACE;AAA0D;MAE9D;AAAA;AAEE;AACE;AAA0D;MAE9D;AAAA;AAEE;AACE;AAA0D;MAE9D;AAAA;AAEF;EACF;AACA;AACE;AACE;AACA;IACF;AAAA;AAEE;AACA;AACA;AACA;AACE;AACE;QACF;AAAA;AACF;AAEF;AACE;AACA;IACF;AACA;AACE;AACA;AACA;AACE;AACE;QACF;AAAA;AACF;AAEF;AACE;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;AACA;AACE;AACE;AACE;UACF;AAAA;QAEF;AAAA;AACF;AAEF;EACF;AACA;AACE;AACE;AACA;AACA;IACF;AAAA;AAEE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;EACF;AACA;AACA;AACE;AACE;AACA;IACF;AAAA;AAEE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;AAAM;AAER;AACA;AACE;AACA;AACE;QACF;AACE;QACF;AAAA;AACF;IAEF;AACA;AACE;AACA;AACE;AACA;AACA;AACE;AAAuC;AAEzC;MACF;AAAA;IAEF;AACA;AACA;AACE;AACA;AACA;AACE;AACA;AACE;AAAQ;AAER;QACF;AAAA;AAEE;AAAQ;AAEV;AACA;AACE;AAAwC;AAC5C;AAEF;AACE;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AAAA;AAEF;AACE;AACE;AACA;AACE;AAAQ;AAEV;AACA;AACE;AAAwC;AAC5C;AAEF;AACE;AACA;AACE;AACE;QACF;AAAA;AACF;AAEF;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACA;IACF;AACA;EACF;AACA;AA/8BA;AACI;AAAa;AA+8BjB;ACh9BA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEE;AAA8B;AAE5B;AACA;AACE;AACA;AACE;AACA;QACF;AAAA;AACF;IAEF;AACA;AACE;AACA;AACA;AACA;AACA;AACE;AACE;AACE;AACE;YACF;AACE;YACF;AAAA;AACF;AAEE;AACE;YACF;AACE;YACF;AAAA;AACF;AAEE;AACE;YACF;AACE;YACF;AAAA;AACF;AAEE;AACA;UACF;AAAA;AAEE;UACF;AAAA;AAEE;UACF;AAAA;AAEE;UACF;AAAA;AAEE;UACF;AAAA;MAEJ;AACA;IACF;AACA;AACE;AACA;AACA;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAA8B;MAElC;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AAAsB;MAE1B;AAAA;AAEF;AACA;EACF;AACA;AAzHA;AACI;AAAa;AAyHjB;AC1HA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;IACF;AAAA;AAEE;AACA;AACE;AACA;MACF;AAAA;IAEF;AACA;AACE;AACA;AACA;AACE;AACE;QACF;AAAA;AAEE;QACF;AAAA;AAEF;AACE;AACE;QACF;AACE;QACF;AACE;QACF;AACE;QACF;AACE;QACF;AACE;QACF;AACE;QACF;AACE;QACF;AACE;QACF;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AAA4B;QAEhC;AAAA;AAEA;AACE;QACF;AACE;QACF;AAAA;AACF;IAEF;AACA;AACE;IACF;AACA;AACA;EACF;AACA;AA7FA;AACI;AAAa;AA6FjB;AC9FA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEE;AAAyB;AAEvB;AACA;AACE;AACA;AACE;QACF;AAAA;AACF;IAEF;AACA;AACA;EACF;AACA;AAzCA;AACI;AAAa;AAyCjB;AC1CA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AALA;AACI;AAAa;AAKjB;ACNA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACA;AACE;AAA+B;EAEjC;AACA;AACA;AACE;AAA8B;EAEhC;AACA;AACA;AACE;AAA0B;EAE5B;AACA;AACA;AACE;AAA8B;EAEhC;AACA;AACA;AACE;AACA;AACE;IACF;AAAA;AAEE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACA;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACA;EACF;AACA;AACA;AACE;AACA;AACE;IACF;AAAA;AAEE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACA;EACF;AACA;AACA;AACE;AACA;AACE;IACF;AAAA;AAEE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACA;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACA;EACF;AACA;AACA;AACE;AACA;AACE;IACF;AAAA;AAEE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACA;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACA;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACA;EACF;AACA;AACA;AACE;AACA;AACE;IACF;AAAA;AAEE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACA;EACF;AACA;AACA;AACE;AACA;AACE;IACF;AAAA;AAEE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACA;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACA;EACF;AACA;AACA;AACE;AACE;AACA;IACF;AAAA;EAEF;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;IACF;AAAA;EAEF;AACA;AACA;AACE;AAAqB;EAEvB;AACA;AA/LA;AACI;AAAa;AA+LjB;AChMA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACE;AACA;AACE;AACA;IACF;AAAA;AAEE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;IACF;AACA;AACA;EACF;AACA;AACA;AACE;AACA;AACE;AACI;AACA;AACA;AACA;AACJ;AACA;AACA;AACA;IACF;AAAA;AAEE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;IACF;AACA;AACA;EACF;AACA;AACA;AACE;AACA;AACE;AACI;AACJ;IACF;AAAA;AAEA;EACF;AACA;AACA;AACE;AACA;AACE;AACE;AACA;AAAU;IAEd;AAAA;AAEA;EACF;AACA;AACA;AACE;AACA;AACE;AACI;AACA;AACA;AACA;AACJ;AACE;AACA;AAAW;IAEf;AAAA;AAEE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;IACF;AACA;AACA;EACF;AACA;AACA;AACE;AACA;AACE;IACF;AAAA;AAEA;EACF;AACA;AACA;AACE;AACA;AACE;AACE;AACA;AAAU;IAEd;AAAA;AAEA;EACF;AACA;AAxKA;AACI;AAAa;AAwKjB;ACzKA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACA;AACE;AACE;IACF;AAAA;AAEE;AACE;AACA;AACA;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;AACE;AACE;UACF;AAAA;QAEF;AACA;AAAkF;IAEtF;AACA;AACE;AACE;MACF;AACA;AACE;MACF;AACE;MACF;AAAA;AAEF;AACA;EACF;AACA;AA3DA;AACI;AAAa;AA2DjB;AC5DA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACA;AACE;AAAyC;AAEvC;IACF;AACA;AACE;IACF;AACA;AACA;EACF;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACA;AACE;MACF;AAAA;AAEF;AACE;AACA;AACE;MACF;AAAA;AAEF;AACE;AACA;AACE;MACF;AAAA;AAEF;AACE;AACA;AACE;MACF;AAAA;AAEF;AACE;AACA;AACE;MACF;AAAA;AAEF;AACE;AACE;AAAe;AAEf;MACF;AAAA;AAEE;MACF;AACE;MACF;AAAA;AAEF;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACA;AACE;AACA;AACE;AACA;UACF;AACE;UACF;AAAA;QAEF;AAAA;AAEA;AACA;AACE;AACE;AACA;UACF;AACE;UACF;AAAA;AAEA;QACF;AACA;MACF;AAAA;AAEA;AACA;IACF;AACA;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;AACA;AACA;AACE;QACF;AAAA;AAEE;QACF;AAAA;AAEA;AACE;AACA;QACF;AAAA;AAEA;MACF;AAAA;AAEF;AACE;AACA;AACE;MACF;AACE;AACA;MACF;AAAA;AAEA;AACE;MACF;AACE;AACA;AACE;QACF;AACE;QACF;AAAA;AACF;IAEF;AACA;AACE;AACA;AACE;MACF;AACE;AACA;MACF;AAAA;IAEF;AACA;AACE;AACE;AACA;AACA;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;AAEF;AACE;AACE;MACF;AAAA;AAEA;AACA;AACE;MACF;AACE;MACF;AAAA;AAEE;MACF;AACE;MACF;AAAA;AAEA;AACA;IACF;AACA;AACE;AACA;AACA;AACA;IACF;AACA;AACE;AACA;AACE;MACF;AACE;MACF;AAAA;IAEF;AACA;AACE;AACA;AACA;AACA;AACE;MACF;AACE;MACF;AAAA;AAEE;MACF;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEA;AACA;IACF;AACA;AACE;IACF;AACA;AACE;AACE;MACF;AAAA;AAEA;AACA;AACE;MACF;AACE;MACF;AAAA;AAEE;MACF;AACE;MACF;AAAA;IAEF;AACA;AACE;AACE;MACF;AAAA;AAEE;MACF;AACE;MACF;AAAA;IAEF;AACA;AACE;AACE;MACF;AAAA;AAEA;AACA;AACA;AACE;AACA;MACF;AACE;AACA;MACF;AAAA;IAEF;AACA;AACE;AACA;AACA;AACE;MACF;AAAA;AAEA;AACE;MACF;AAAA;AAEA;AACE;MACF;AAAA;AAEA;AACE;MACF;AAAA;AAEA;AACE;MACF;AAAA;IAEF;AACA;EACF;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;IACF;AACA;EACF;AACA;AACA;AACE;AACE;AACA;IACF;AAAA;AAEE;AACE;AACA;AACA;MACF;AACE;AACA;AACA;AACA;MACF;AAAA;AAEF;AACE;AACA;AACE;AACE;QACF;AAAA;AACF;IAEF;AACA;AACE;AACA;AACA;AACE;MACF;AACE;MACF;AAAA;AAEE;MACF;AACE;MACF;AAAA;IAEF;AACA;EACF;AACA;AACE;AACE;IACF;AAAA;AAEE;AACA;AACA;AACE;AACA;MACF;AAAA;IAEF;AACA;AACE;AACE;MACF;AAAA;AAEA;AACA;IACF;AACA;AACE;AACA;AACA;AACE;MACF;AAAA;IAEF;AACA;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;IACF;AACA;AACE;IACF;AACA;EACF;AA9cA;AACI;AAAa;AA8cjB;AC/cA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACA;AACE;AACE;IACF;AAAA;AAEE;AACE;AACA;AACA;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;AACE;AACE;UACF;AAAA;QAEF;AACA;AAAkF;IAEtF;AACA;AACE;AACE;MACF;AACA;AACE;MACF;AACE;MACF;AAAA;AAEF;AACA;EACF;AACA;AA3DA;AACI;AAAa;AA2DjB;AC5DA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACE;AAAyC;AAEvC;IACF;AACA;AACE;IACF;AACA;AACA;EACF;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACA;AACE;MACF;AAAA;AAEF;AACE;AACA;AACE;MACF;AAAA;AAEF;AACE;AACA;AACE;MACF;AAAA;AAEF;AACE;AACA;AACE;MACF;AAAA;AAEF;AACE;AACA;AACE;MACF;AAAA;AAEF;AACE;AACE;AAAiD;AAEjD;MACF;AAAA;AAEE;MACF;AACE;MACF;AAAA;AAEF;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACE;AACA;AACE;AACA;AACA;UACF;AAAA;AAEA;AACA;AACE;AACA;AACA;UACF;AAAA;AAEE;UACF;AACE;AACA;AACA;AACA;UACF;AAAA;AACF;AAEE;AACE;UACF;AAAA;AAEE;UACF;AACE;UACF;AAAA;AACF;AAEA;AACA;MACF;AACA;AACA;IACF;AACA;AACE;AACE;AACA;AACE;QACF;AAAA;AAEE;QACF;AAAA;AAEE;QACF;AAAA;AAEA;AACA;MACF;AAAA;AAEF;AACE;AACE;AACE;QACF;AACE;QACF;AAAA;AAEA;AACA;AACA;MACF;AAAA;AAEE;AACA;AACA;MACF;AAAA;AAEF;AACE;IACF;AACA;AACE;AACE;MACF;AACE;AACA;AACA;MACF;AAAA;AAEF;AACE;AACA;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACA;AACA;AACE;MACF;AACE;MACF;AAAA;AAEE;MACF;AACE;MACF;AAAA;IAEF;AACA;AACE;AACE;MACF;AACE;AACA;MACF;AAAA;AAEF;AACE;AACE;MACF;AACE;AACA;MACF;AAAA;AAEF;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;IAEF;AACA;AACE;AACE;MACF;AACE;MACF;AAAA;AAEF;EACF;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;IACF;AACA;EACF;AACA;AA1RA;AACI;AAAa;AA0RjB;AC3RA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACA;AACE;AACA;AACA;AACA;AACA;AACA;EACF;AACA;AACA;AACE;AAAkB;AAEhB;AACA;AACA;AACA;AACE;AACA;MACF;AAAA;IAEF;AACA;AACA;EACF;AACA;AACA;AACE;AACE;AACA;AACA;AACA;IACF;AAAA;AAEE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AACE;AAAoB;AAEpB;AAA+B;AAE/B;AADK;IAGX;AACA;EACF;AACA;AACA;AACE;EACF;AAAA;AAEE;EACF;AAAA;AAEE;EACF;AAAA;AAEE;EACF;AAAA;AAEE;EACF;AAAA;AAEE;EACF;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACI;AACA;AACJ;AACA;AACA;AACA;AACA;AACA;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACA;AACA;AACA;AACA;AACE;AACA;AACE;AACA;IACF;AAAA;AAEE;IACF;AACA;EACF;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;IACF;AACA;AACE;AACI;AACA;AACA;AACJ;AACE;AACE;AACA;QACF;AACE;QACF;AAAA;AACF;AAEA;AACA;AACE;MACF;AAAA;AAEE;AAA4B;AAE5B;AAA6B;AAE/B;AACE;AACE;AACA;AAA8F;AAEhG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AAAsC;AAExC;AACE;AAAwB;AAE1B;AACA;AACA;AACA;AACA;AACA;AACE;AAAwE;AAExE;AAAiE;AAEnE;AACE;AAAiG;AAEnG;AACE;AAAmH;AAEnH;AAAoE;AAEpE;AAA8D;AAE9D;AACE;AAAc;AACO;AAE3B;AACA;IACF;AACA;AACE;AACA;AACA;IACF;AACA;AACE;AACA;AACA;AACA;IACF;AACA;AACE;AACA;AACA;AACA;AACE;AACA;MACF;AAAA;AAEE;AACA;MACF;AAAA;AAEA;IACF;AACA;AACE;AACA;AACA;AACA;AACE;AAAc;AAEhB;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACA;AACA;AACA;AACE;AACE;QACF;AACE;AACA;AACE;AAAc;AAEd;AAAkC;QAEtC;AACE;QACF;AAAA;MAEF;AAAA;AAEA;AACA;IACF;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;AACE;AAAkC;AAEpC;AACA;AACA;AACE;AACA;AACE;YACF;AACE;YACF;AAAA;AAEE;YACF;AAAA;AAEA;AACA;UACF;AAAA;AAEA;QACF;AACE;QACF;AACE;QACF;AAAA;AACF;AAEA;AACA;AACA;AACE;AACA;MACF;AAAA;IAEF;AACA;AACE;AACA;IACF;AACA;EACF;AACA;AACE;EACF;AAAA;AAEE;EACF;AAAA;AAEE;AACE;AAAY;AAEd;AACE;AAAY;AAEd;AACE;AACE;AAAY;IAEhB;AAAA;EAEF;AAAA;AAEA;AACE;EACF;AAAA;AAEE;EACF;AAAA;AAEE;EACF;AAAA;AAEE;EACF;AAAA;AAEE;AACE;AACE;AAAkB;AAElB;AAAkB;AAElB;AAAkB;AAElB;AAAmB;AAEnB;AAAoB;AAEpB;AADK;EAGX;AAAA;AAEA;AAzbA;AACI;AAAa;AAybjB;AC1bA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACE;IACF;AAAA;EAEF;AACA;AACE;AACE;AACE;MACF;AAAA;AAEA;IACF;AAAA;AAEE;AACA;AACA;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;AACE;MACF;AAAA;IAEF;AACA;AACE;AACA;AACE;MACF;AAAA;AAEA;AACA;IACF;AACA;AACE;AACE;AAAW;AAEb;AACE;AAAW;AAEb;AACE;AAAW;AAEb;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;AACE;MACF;AAAA;AAEA;AACA;AACE;AACA;AACE;QACF;AACE;AACA;AACA;QACF;AACE;QACF;AAAA;AACF;IAEF;AACA;AACE;IACF;AACA;AACE;AACA;AACE;MACF;AAAA;AAEF;AACE;AACA;AACE;MACF;AAAA;IAEF;AACA;AACA;EACF;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACA;IACF;AACA;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;IACF;AACA;AACE;AACE;AACA;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;AACA;MACF;AACE;MACF;AAAA;AAEF;AACE;IACF;AACA;AACE;AACE;AAAM;IAEV;AACA;AACE;AACE;AACA;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;AAAM;IAEV;AACA;AACE;AACA;AACE;MACF;AAAA;AAEA;IACF;AACA;AACE;AACA;AACE;MACF;AAAA;AAEA;IACF;AACA;AACE;AACA;AACE;AACA;AACA;AACE;AACE;UACF;AAAA;AACoD;AAEpD;QACF;AAAA;AACF;AAEE;AAA4B;AAE5B;AAAe;IAEnB;AACA;AACE;AACA;AACE;AACE;QACF;AAAA;AAEE;AACA;AACA;AACE;UACF;AAAA;QAEF;MACF;AAAA;IAEF;AACA;AACE;IACF;AACA;AACE;AACA;AACA;AACE;AACA;AACE;AACA;AACA;QACF;AAAA;AAEA;MACF;AACE;MACF;AAAA;AAEF;AACE;AACA;AACE;MACF;AAAA;IAEF;AACA;AACE;AACA;AACE;MACF;AAAA;IAEF;AACA;AACE;AACA;AACE;AACE;QACF;AACE;QACF;AACE;QACF;AACE;QACF;AACE;QACF;AAAA;AACF;AAEF;AACE;AACA;AACE;AACE;QACF;AACE;QACF;AACE;QACF;AACE;QACF;AACE;QACF;AAAA;AACF;AAEF;AACE;AACA;AACE;AACE;QACF;AACE;QACF;AACE;QACF;AAAA;AACF;AAEF;AACE;AACA;AACE;AACE;QACF;AACE;QACF;AACE;QACF;AACE;QACF;AAAA;AACF;AAEF;AACE;AACE;MACF;AACE;MACF;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACA;AACE;AACE;QACF;AACE;QACF;AACE;AACA;AACA;AACE;AACA;UACF;AACE;UACF;AAAA;AAEA;AACA;AACA;QACF;AACE;QACF;AAAA;AACF;AAEF;AACE;AACE;AACA;AACA;MACF;AACE;AACA;MACF;AACE;AACA;MACF;AACE;AACA;MACF;AACE;AACA;AACA;MACF;AACE;MACF;AACE;MACF;AACE;AACA;AACA;MACF;AACE;AACA;AACA;MACF;AACE;MACF;AACE;MACF;AAAA;IAEF;AACA;AACE;AACA;AACE;AACE;QACF;MACF;AAAA;IAEF;AACA;AACE;AACA;AACA;AACA;AACE;AACE;AACA;AACA;AACA;QACF;AACA;MACF;AAAA;IAEF;AACA;AACE;AACE;MACF;AAAA;AAEA;AACE;AACA;AACA;AACA;MACF;AACE;AACE;AACE;UACF;AACE;UACF;AAAA;AAEA;AACE;AACE;YACF;AAAA;AAEA;UACF;AACE;UACF;AAAA;AACF;AACF;IAEF;AACA;AACE;AACE;AAAS;AAEX;AACE;MACF;AACA;IACF;AACA;AACE;AACE;MACF;AAAA;AAEA;AACE;AACA;AACA;AACE;AAAoD;AACtD;AACF;AAEE;AAA4B;AAE5B;AAAe;IAEnB;AACA;AACE;AACA;AACA;AACE;AACA;AACA;AACE;QACF;AAAA;AAEF;IACF;AACA;AACE;AACA;AACA;AACE;AACA;AACA;AACE;AACE;UACF;AACE;UACF;AAAA;AACF;AAEA;AACA;AACA;AACE;AACE;UACF;AACE;UACF;AAAA;AAEA;AACA;AACA;AACA;QACF;AAAA;AAEA;AACE;QACF;AAAA;AACF;IAEF;AACA;AACE;AACE;MACF;AAAA;AAEE;AAAkB;AAEpB;IACF;AACA;EACF;AACA;AACA;AACE;AACE;IACF;AAAA;AAEE;AACA;AACA;IACF;AACA;AACA;AACE;IACF;AACA;AACA;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACE;MACF;AAAA;IAEF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;EACF;AAnnBA;AACI;AAAa;AAmnBjB;ACpnBA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACE;AACE;AACA;IACF;AAAA;AAEE;AACE;MACF;AAAA;AAEE;MACF;AAAA;IAEF;AACA;AACE;AACE;MACF;AAAA;AAEE;MACF;AAAA;IAEF;AACA;AACE;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;IACF;AACA;EACF;AACA;AAxCA;AACI;AAAa;AAwCjB;ACzCA;;AAAA;AACI;AAAmB;AACnB;AADS;AACT;AACI;AACA;AACA;AACA;AACA;AACA;IACJ;AAAA;EAEJ;AACA;AACA;AACI;AACI;AACA;AACA;IACJ;AAAA;EAEJ;AACA;AACA;AACI;AACI;AACA;AACA;AACA;AACA;AACA;AACA;IACJ;AAAA;EAEJ;AACA;AAlCA;AACI;AAAa;AAkCw6I;ACnCz7I;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEA;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACI;AACF;MACF;AAAA;AAEE;AACA;AACA;AACI;AACF;QACF;AAAA;MAEF;AAAA;AACF;AAEE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACA;AACI;AACF;AACE;QACF;AACE;AACA;AACE;AACA;AACA;UACF;AACE;UACF;AAAA;AACF;AACF;AAEA;IACF;AACA;AACE;AACA;AACA;AACE;AACE;AACE;UACF;AAAA;AACF;AAEF;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACI;AACF;AACE;QACF;AAAA;AACF;AAEI;AACF;AACA;AACE;QACF;AAAA;AACF;AAEI;AACF;AACA;AACA;AACE;QACF;AAAA;AACF;IAEF;AACA;AACE;AACA;AACA;AACE;AAAS;AAEX;IACF;AACA;AACE;AACA;AACE;MACF;AACE;MACF;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;EACF;AACA;AA9KA;AACI;AAAa;AA8KjB;AC/KA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACA;AACA;AACE;AACE;AACA;AACA;AACA;IACF;AAAA;AAEE;AACA;AACE;MACF;IACF;AACA;AACE;AACA;AACE;MACF;IACF;AACA;AACE;AACA;AACE;MACF;AACA;AACA;AACE;AACE;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AADK;AAGT;IACF;AACA;AACE;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACA;AACE;AACE;AAAa;AAEf;MACF;AACA;IACF;AACA;AACE;AACA;AACE;MACF;AACA;IACF;AACA;AACE;AACA;AACE;AACA;MACF;AAAA;AAEA;IACF;AACA;AACE;AACA;AACE;AACA;MACF;AAAA;IAEF;AACA;AACE;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACA;AACE;AACA;AACE;QACF;AAAA;AACF;IAEF;AACA;AACE;AACA;AACA;AACE;AACA;AACE;QACF;AAAA;AAEE;QACF;AAAA;AACF;IAEF;AACA;AACE;AACA;AACA;AACE;AACA;AACE;QACF;AAAA;AAEE;QACF;AAAA;AACF;IAEF;AACA;EACF;AACA;AA7KA;AACI;AAAa;AA6KjB;AC9KA;;AAAA;AACI;AAAmB;AACnB;AAEJ;AACI;EACJ;AAAA;AAEA;AACI;EACJ;AAAA;AAOA;AACI;EACJ;AAAA;AAnBA;AACI;AAAa;AAoBw+C;ACrBz/C;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACA;AACE;AACE;AACE;AAAW;AAEb;MACF;AAAA;IAEF;AACA;AACA;AACE;AAAgB;AAEd;MACF;AACA;AACE;MACF;AACA;IACF;AACA;AACA;AACE;AACA;AACE;AACA;AACA;AACA;MACF;AAAA;AAEE;MACF;AACA;AACE;MACF;AACA;IACF;AACA;AACA;AACE;AACA;AACE;MACF;AAAA;AAEA;IACF;AACA;AACA;AACE;AACA;AACE;MACF;AAAA;AAEE;MACF;AACA;IACF;AACA;AACA;AACE;AACA;AACE;AACA;MACF;AAAA;AAEE;MACF;AACA;IACF;AACA;AACA;AACE;AACA;AACE;AACA;AACA;AACA;MACF;AAAA;AAEE;MACF;AACA;IACF;AACA;AACA;AACE;AACA;AACE;AACA;AACA;AACA;MACF;AAAA;AAEE;MACF;AACA;IACF;AACA;AACA;AACE;AACA;AACE;AACA;AACA;AACA;AACA;MACF;AAAA;AAEE;MACF;AACA;IACF;AACA;AACA;AACE;AACA;AACE;AACA;AACA;AACA;MACF;AAAA;AAEE;MACF;AACA;IACF;AACA;AACA;AACE;AACA;AACE;AACA;AACA;MACF;AAAA;AAEE;MACF;AACA;IACF;AACA;AACA;AACE;AACA;AACE;AACA;AACA;AACA;MACF;AAAA;AAEE;MACF;AACA;IACF;AACA;AACA;AACE;AACA;AACE;AACA;AACA;AACA;MACF;AAAA;AAEE;MACF;AACA;IACF;AACA;AACA;AACE;AACA;AACE;AACA;MACF;AAAA;AAEE;MACF;AACA;IACF;AACA;AACA;AACE;AACA;AACE;AACA;MACF;AAAA;AAEE;MACF;AACA;IACF;AACA;AACA;AACE;AACA;AACE;AACA;AACA;MACF;AAAA;AAEE;MACF;AACA;IACF;AACA;AACA;AACE;AACA;AACE;AACA;AACA;MACF;AAAA;AAEE;MACF;AACA;IACF;AACA;AACA;AACE;AACA;AACE;AACA;AACA;AACA;MACF;AAAA;AAEE;MACF;AACA;IACF;AACA;AACA;AACE;AACA;AACE;AACA;MACF;AAAA;AAEE;MACF;AACA;IACF;AACA;AACA;AACE;AACA;AACE;AACA;AACA;AACA;AACA;MACF;AAAA;AAEE;MACF;AACA;IACF;AACA;AACA;AACE;AACA;AACE;AACA;AACA;AACA;AACA;MACF;AAAA;AAEE;MACF;AACA;IACF;AACA;AACA;AACE;AACA;AACE;AACA;AACA;MACF;AAAA;AAEE;MACF;AACA;IACF;AACA;AACA;AACE;AACA;AACE;AACA;AACA;AACA;MACF;AAAA;AAEE;MACF;AACA;AACE;MACF;AACA;IACF;AACA;AACA;AACE;AACE;AACA;AACA;AACA;MACF;AAAA;IAEF;AACA;AACA;AACE;AAAgC;AAE9B;AACA;AACA;MACF;AACA;AACE;MACF;AACA;AACE;AACA;AACA;AACA;MACF;AACA;AACE;AACA;AACA;MACF;AACA;AACE;AACA;AACA;MACF;AACA;AACE;MACF;AACA;AACE;MACF;AACA;AACE;AACA;AACA;MACF;AACA;AACE;AACA;AACA;AACA;MACF;AACA;AACE;MACF;AACA;AACE;MACF;AACA;AACE;MACF;AACA;AACE;AACA;MACF;AACA;AACE;AACA;MACF;AACA;AACE;AACA;MACF;AACA;AACE;AACA;AACA;MACF;AACA;AACE;AACA;MACF;AACA;AACE;AACA;MACF;AACA;AACE;AACA;AACE;QACF;AACA;MACF;AACA;AACE;MACF;AACA;IACF;AACA;AACA;AACE;AAA2B;AAEzB;MACF;AACA;AACE;MACF;AACA;AACE;MACF;AACA;AACE;MACF;AACA;AACE;MACF;AACA;AACE;MACF;AACA;AACE;MACF;AACA;AACE;MACF;AACA;AACE;MACF;AACA;AACE;MACF;AACA;AACE;MACF;AACA;AACE;MACF;AACA;AACE;MACF;AACA;AACE;MACF;AACA;AACE;MACF;AACA;AACE;MACF;AACA;AACE;MACF;AACA;AACE;AACA;AACE;QACF;AAAA;MAEF;AACA;AACE;MACF;AACA;AACE;MACF;AACA;IACF;AACA;EACF;AA5dA;AACI;AAAa;AA4djB;AC7dA;;AAAA;AACI;AAAmB;AACnB;AADS;AACT;AACI;AACA;AACA;AACA;IACJ;AAAA;EAEJ;AACA;AAVA;AACI;AAAa;AAUggC;ACXjhC;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACE;AACA;MACF;AAAA;AAEA;AACA;AACE;AACA;AACA;MACF;AACE;AACA;MACF;AAAA;AACF;EAEF;AAAA;AAEA;AACE;AACA;AACA;AACA;AACE;AACA;AACE;MACF;AAAA;AAEA;AACE;AACE;AACA;AACA;QACF;AAAA;AAEE;AACA;AACA;QACF;AAAA;AAEA;AACA;AACA;MACF;AAAA;AACF;EAEF;AAAA;AAEE;AACA;AACE;AACE;AACA;MACF;AACE;AACE;QACF;AAAA;AACF;IAEF;AAAA;AAEE;IACF;AAAA;AAEA;EACF;AAAA;AAEE;AACE;IACF;EACF;AAAA;AAEE;AACE;IACF;AACA;AACA;AACA;EACF;AAAA;AAEE;AACA;EACF;AAAA;AAEE;EACF;AAAA;AAEE;AACA;AACA;AACA;AACA;EACF;AAAA;AAxGI;AAAa;AAyGjB;AC1GA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACE;MACF;AACA;AACE;MACF;IACF;AAAA;AAEE;IACF;AACA;EACF;AACA;AACA;AACE;AACA;AACE;IACF;AACA;EACF;AAAA;AAEA;AACE;AACA;AACE;AACA;AACA;IACF;EACF;AAAA;AAEA;AACE;AACE;IACF;AAAA;AAEE;AACA;AACE;MACF;AAAA;AAEA;AACA;AACA;AACE;AACA;AACA;MACF;AAAA;AAEF;AACE;AACA;AACE;AACA;AACE;AACE;UACF;QACF;AAAA;AAEE;AACE;UACF;AACA;QACF;AAAA;AACF;AAEF;AACE;AACE;MACF;AACE;MACF;AAAA;AAEF;EACF;AACA;AACA;AACE;AACE;AACA;AACA;AACA;IACF;AAAA;AAEE;AACA;IACF;AACA;AACE;AACA;AACA;AACA;IACF;AACA;AACE;IACF;AACA;AACE;AACA;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AACE;AACA;AACA;MACF;AAAA;AAEF;AACE;AACA;AACA;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;AACA;AACE;AACA;MACF;AACE;MACF;AAAA;AAEF;AACE;AACA;AACA;IACF;AACA;AACE;AACA;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AAAqJ;AAErJ;AACA;AACA;AACA;AACA;AAAqJ;AAErJ;AACA;AAFK;IAIX;AACA;AACE;AACA;IACF;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AACA;AACE;AACA;AACA;IACF;AACA;AACE;AACA;AACA;IACF;AACA;AACE;AACA;AACE;MACF;AACA;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACE;MACF;AAAA;IAEF;AACA;AACE;AACA;AACE;MACF;AACE;MACF;AAAA;IAEF;AACA;EACF;AACA;AACE;AACE;AACE;AAA2D;AAE3D;AAA2D;AAE3D;AAA2D;AAE3D;AAA2D;AAE3D;AAA2D;AAE3D;AAA2D;AAE3D;AAA2D;AAE3D;AAA2D;AAE3D;AAA2D;AAE3D;AAA2D;AAE3D;AADK;EAGX;AAAA;AAEE;AACE;IACF;AACA;EACF;AAAA;AAEE;AACE;AACE;AAAsB;AAEtB;AAA2B;AAE3B;AAA2B;AAE3B;AAAyB;AAEzB;AAA4B;AAE5B;AAAyB;AAEzB;AAA6B;AAE7B;AAA4B;AAE5B;AAAgC;AAEhC;AAA4B;AAE5B;AAA+B;AAE/B;AAAsC;AAEtC;AAAyC;AAEzC;AADK;EAGX;AAAA;AAEE;AACE;AACE;AAAgE;AAEhE;AAAqE;AAErE;AAAqE;AAErE;AAAmE;AAEnE;AAAsE;AAEtE;AAAmE;AAEnE;AAAuE;AAEvE;AAAsE;AAEtE;AAA0E;AAE1E;AAAsE;AAEtE;AAAyE;AAEzE;AAAgF;AAEhF;AAAmF;AAEnF;AADK;EAGX;AAAA;AAEE;EACF;AAAA;AAEE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;AACE;QACF;AAAC;AAED;AACE;QACF;AAAC;AAED;AACE;QACF;AAAC;AAED;AACE;QACF;AAAC;AAED;AACE;QACF;AAAC;AAED;AACE;QACF;AAAC;AAED;AACE;QACF;AAAC;AAED;AACE;QACF;AAAC;AAED;AACE;QACF;AAAC;AAED;AADK;EAGX;AAAA;AA7YI;AAAa;AA8YjB;AC/YA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AACE;MACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACA;IACF;AACA;AACE;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;AACE;AACE;QACF;AACA;MACF;AACE;MACF;AAAA;AAEF;AACE;AACA;AACA;AACA;AACE;AACA;AACE;QACF;AACE;QACF;AACE;QACF;AAAA;AAEA;MACF;AACA;IACF;AACA;AACE;AACE;AACA;AACA;AACA;MACF;AACE;MACF;AAAA;AAEF;AACE;AACA;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACA;IACF;AACA;AACE;AACA;AACE;MACF;AAAA;AAEA;AACE;AAAS;IAEb;AACA;AACE;AACA;AACA;AACE;AAAS;IAEb;AACA;AACE;AACA;AACE;AACA;MACF;AACE;MACF;AAAA;AAEF;AACE;AACA;AACE;AACA;MACF;AACE;MACF;AAAA;AAEF;AACE;AACA;AACA;AACE;AACA;AACA;AACE;QACF;AACE;QACF;AACE;QACF;AACE;QACF;AACE;QACF;AAAA;AAEA;MACF;AAAA;IAEF;AACA;AACE;AACA;AACA;IACF;AACA;AACE;AACA;AACA;IACF;AACA;AACE;AACE;AACA;AACE;AACA;QACF;AAAA;AACF;IAEF;AACA;AACE;AACE;MACF;AACE;MACF;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACA;AACA;AACE;MACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;MACF;AACA;AACA;AACA;AACA;AACA;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;QACF;AACA;AACE;QACF;AACE;QACF;AAAA;AAEA;MACF;AAAA;AAEF;AACE;IACF;AACA;AACE;AACE;AAAS;AAEX;AACA;AACA;AACA;AACE;AACA;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACA;AACA;AACE;AAAS;IAEb;AACA;AACE;AACA;AACA;IACF;AACA;AACE;AACE;AAAS;IAEb;AACA;AACE;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;AACE;AAAS;AAEX;IACF;AACA;EACF;AACA;AAzSA;AACI;AAAa;AAySjB;AC1SA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACE;AACE;AACA;IACF;AAAA;AAEE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;EACF;AACA;AAnBA;AACI;AAAa;AAmBjB;ACpBA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACA;AACE;AACA;AACE;IACF;AAAA;EAEF;AACA;AACA;AACE;AACA;AACE;AACA;IACF;AAAA;EAEF;AACA;AACA;AACE;AACA;AACE;IACF;AAAA;EAEF;AACA;AApCA;AACI;AAAa;AAoCjB;ACrCA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACE;AACA;AACE;AACA;AACE;AACA;MACF;AAAA;AACF;EAEF;AAAA;AAEA;AACE;AACE;IACF;AAAA;EAEF;AAAA;AAEA;AACE;AACA;EACF;AAAA;AAEA;AACE;EACF;AAAA;AAEA;AACE;EACF;AAAA;AAnCA;AACI;AAAa;AAoCjB;ACrCA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACE;EACF;AAAA;AAEE;EACF;AACA;AACE;EACF;AACA;AACE;EACF;AACA;AACE;EACF;AAlBA;AACI;AAAa;AAkBjB;ACnBA;;AAAA;AACI;AAAmB;AACnB;AADS;AACT;EACJ;AAAA;AAHA;AACI;AAAa;AAIwe;ACLzf;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;EAEF;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACA;IACF;AACA;AACE;IACF;AACA;AACE;AACA;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACA;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACE;MACF;AAAA;AAEF;AACE;AACE;AAAM;AAER;AACA;AACA;AACE;AAAqC;AAEvC;AACE;AAAkC;AAElC;AAAuD;AAEzD;IACF;AACA;AACE;AACE;MACF;AAAA;AAEE;MACF;AACE;AACE;QACF;AAAA;MAEF;AAAA;AAEF;AACA;AACE;AACA;AACA;AACE;MACF;AAAA;AAEA;AACA;AACA;IACF;AACA;AACA;AACE;AACA;AACE;MACF;AAAA;AAEA;AACA;IACF;AACA;AACA;AACE;IACF;AACA;AACE;AACA;IACF;AACA;AACA;AACE;AACA;IACF;AACA;AACA;AACE;AACA;AACE;MACF;AAAA;AAEF;AACE;AACA;AACE;MACF;AAAA;AAEF;AACE;IACF;AACA;AACE;AACA;AACE;AACE;AAAsD;MAE1D;AAAA;AAEF;AACE;AACE;AACE;AACA;AACE;AACA;UACF;AAAA;AACF;AACF;AAEF;AACE;AACA;AACE;AACA;AACE;AACA;AACE;UACF;QACF;AACE;AACA;AACA;AACE;UACF;QACF;AAAA;AACF;IAEF;AACA;AACE;AACA;AACE;AACA;AACA;AACA;AACE;QACF;MACF;AAAA;IAEF;AACA;AACE;AACA;AACE;AACA;AACA;AACA;AACE;QACF;MACF;AAAA;IAEF;AACA;AACE;AACE;AACA;MACF;AAAA;AAEF;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACE;MACF;AAAA;AAEA;IACF;AACA;AACE;AACA;AACE;AACA;AACA;MACF;AACE;MACF;AAAA;IAEF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;EACF;AACA;AApQA;AACI;AAAa;AAoQjB;ACrQA;;AAAA;AACI;AAAmB;AACnB;AADS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACJ;AACA;AACA;AACI;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACJ;AAAA;AAEI;IACJ;AACA;AAA0D;IAAqD;AAC/G;AACI;IAEJ;AACA;AAAmD;IAAsC;AACzF;AACI;IACJ;AACA;AAAgE;IAA6C;AAC7G;AACI;IACJ;AACA;AAAwD;IAAoD;AAC5G;EACJ;AACA;AA5DA;AACI;AAAa;AA4DwpM;AC7DzqM;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACA;AACA;AACE;AACA;AACE;QACF;AAAA;AAEF;IACF;AACA;AACE;AACA;AACA;AACE;AACA;AACE;QACF;AACE;AACA;AACE;AACA;UACF;AACE;UACF;AAAA;AACF;AACF;IAEF;AACA;AACE;AACE;MACF;AAAA;AAEE;AACA;MACF;AAAA;AAEE;AACA;MACF;AAAA;IAEF;AACA;AACE;AACE;AACA;MACF;AAAA;AAEF;AACE;AACE;MACF;IACF;AACA;AACE;AACA;AACA;AACE;AACE;AACA;QACF;AAAA;AACF;AAEF;AACE;AACE;MACF;AAAA;AAEA;AACA;AACA;AACA;AACA;IACF;AACA;AACE;AACE;AACE;QACF;AAAA;AACF;AAEF;AACE;IACF;AACA;AACE;AACA;AACA;AACA;AACE;AACA;AACA;AACA;AACE;QACF;AAAA;AAEE;AACE;UACF;AACE;UACF;AACE;UACF;AAAA;AAEA;QACF;AACE;AACA;AACE;AACA;AACA;UACF;AAAA;AACF;AAEE;AACA;AACE;UACF;AAAA;QAEF;AAAA;AACF;AAEF;AACE;AACA;IACF;AACA;AACE;AACA;AACE;AACA;AACE;QACF;AAAA;AAEE;QACF;AAAA;AACF;AAEF;AACE;AACA;AACE;AACA;AACE;QACF;AAAA;AAEE;QACF;AAAA;AACF;AAEF;AACE;AACE;MACF;AACE;AACA;MACF;AAAA;AAEE;MACF;AAAA;AAEF;AACE;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;AACA;MACF;AAAA;AAEA;AACE;MACF;AAAA;AAEE;AACA;AACE;AACE;AACA;AACE;AAA6C;AAE/C;AACA;UACF;AACE;AACA;AACA;UACF;AAAA;AAEA;AACA;QACF;AAAA;AAEA;AACA;AACA;MACF;AAAA;AAEF;AACE;AACE;AACE;AAAuC;AAEvC;AAAwB;AAExB;AACA;AAAiC;AAEjC;AACA;AAAkE;AAElE;AACA;AACA;AACA;AAAY;AAEZ;AACA;AACA;AACA;AACA;AAAY;AAEZ;AAA6B;AAE7B;AACA;AACA;AAAuC;AAEvC;AACA;AACE;UACF;AAAA;AAEA;AAAuC;AAEvC;AACA;AAA4C;AAE5C;AACA;AAA4B;AAE5B;AAAoG;AAEtG;AACA;AACE;AAAqF;AAErF;AADK;IAGX;AACA;AACE;AACA;AACA;AACE;AACA;AACA;AACE;AACA;AACE;AACA;AACE;AACA;AACE;AAA6C;AAE/C;AACA;YACF;AACE;AACA;AACA;YACF;AAAA;AAEA;AACA;UACF;AAAA;AAEA;AACA;AACA;QACF;AAAA;AACF;AAEF;AACE;AACA;AACE;AAAiB;AAEnB;AACA;IACF;AACA;AACE;AACE;MACF;AAAA;IAEF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACE;AAAqC;AAEzC;AACE;IACF;AACA;AACE;AACA;AACE;AACE;QACF;AAAA;AACF;IAEF;AACA;AACE;IACF;AACA;AACE;AACA;AACA;AACE;MACF;AAAA;IAEF;AACA;EACF;AACA;AAvYA;AACI;AAAa;AAuYjB;ACxYA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACA;AACE;AAA8B;EAEhC;AACA;AACA;AACE;AACA;AACE;AACA;IACF;AAAA;AAEE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACA;IACF;AACA;EACF;AACA;AAzCA;AACI;AAAa;AAyCjB;AC1CA;;AAAA;AACI;AAAmB;AACnB;AADS;AACT;EACJ;AAAA;AAHA;AACI;AAAa;AAIgnB;ACLjoB;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;EACF;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;AACA;IACF;AACA;EACF;AACA;AA1HA;AACI;AAAa;AA0HjB;AC3HA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACE;AACA;AACA;EACF;AACA;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;EACF;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAvBA;AACI;AAAa;AAwBjB;ACzBA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACE;AACE;AACA;IACF;AAAA;AAEE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;EACF;AACA;AACA;AACE;AACE;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;IACF;AACA;EACF;AACA;AA9CA;AACI;AAAa;AA8CjB;AC/CA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;IACF;AAAA;AAEE;AACA;AACA;IACF;AACA;EACF;AACA;AACA;AACA;AACA;AACE;AACE;AACA;IACF;AAAA;AAEE;IACF;AACA;EACF;AACA;AACA;AACA;AACA;AACE;AACA;AACA;AACA;AACA;EACF;AAAA;AAEE;AAAgC;AAE9B;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACE;AACA;AACE;QACF;AAAA;MAEF;AAAA;AAEE;AACE;AACE;UACF;AAAC;AAED;AACE;UACF;AAAC;AAED;AACE;UACF;AAAC;AAED;AACE;UACF;AAAC;AAED;AACE;UACF;AAAC;AAED;AACE;UACF;AAAC;AAED;AACE;UACF;AAAC;AAED;AACE;UACF;AAAC;AAED;AACE;UACF;AAAC;AAED;AACE;UACF;AAAC;AAED;AADK;IAGX;AACA;AACE;IACF;AACA;AACE;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACE;MACF;AAAA;AAEF;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACA;EACF;AACA;AAvNA;AACI;AAAa;AAuNjB;ACxNA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAvDA;AACI;AAAa;AAuDjB;ACxDA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAVA;AACI;AAAa;AAUjB;ACXA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACE;AACA;AACE;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACA;EACF;AACA;AACA;AACE;AACA;AACE;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAe;AAEjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACA;EACF;AACA;AACA;AACE;AACA;AACE;AACI;AACJ;AACA;AACA;IACF;AAAA;AAEE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACA;EACF;AACA;AACA;AACE;AACE;IACF;AAAA;AAEA;EACF;AACA;AACA;AACE;AACE;IACF;AAAA;AAEA;EACF;AACA;AACA;AACE;AACE;IACF;AAAA;AAEA;EACF;AACA;AACA;AACE;AACE;AACA;IACF;AAAA;AAEA;EACF;AACA;AA9NA;AACI;AAAa;AA8NjB;AC/NA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACA;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;IAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACE;AACA;AACA;IACF;AACA;AACA;AACA;AACE;AACE;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;MACF;AAAA;AAEA;IACF;AACA;EACF;AAjDA;AACI;AAAa;AAiDjB;AClDA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;EACF;AACA;AACA;AACE;EACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AA3CA;AACI;AAAa;AA2CjB;AC5CA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;IACF;AAAA;AAEA;EACF;AACA;AACA;AACE;AACE;AACA;AACA;AACA;IACF;AAAA;AAEA;EACF;AACA;AACA;AACA;AACE;AACE;AACA;AACA;IACF;AAAA;AAEE;IACF;AACA;AACA;EACF;AACA;AACA;AACE;AACE;AACA;AACA;IACF;AAAA;AAEE;IACF;AACA;AACA;EACF;AACA;AACA;AACE;AACA;AACE;IACF;AAAA;AAEE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;EACF;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;IACF;AACA;AACA;EACF;AACA;AACA;AACE;AAA0B;AAExB;IACF;AACA;AACA;EACF;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;IACF;AACA;AACA;EACF;AACA;AACA;AACE;AAA4B;AAE1B;IACF;AACA;AACA;EACF;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;IACF;AACA;AACA;EACF;AACA;AACA;AACE;AACE;IACF;AAAA;AAEE;IACF;AAAA;AACF;AApMA;AACI;AAAa;AAqMjB;ACtMA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACE;AACE;IACF;AAAA;EAEF;AAAA;AAEE;AACE;IACF;AAAA;AAEE;IACF;AACE;AACA;AACA;AACE;MACF;AAAA;AAEA;AACE;MACF;AAAA;AAEA;AACI;AACF;AACA;AACA;AACA;AACE;AACE;UACF;AAAA;AAEA;QACF;AACE;QACF;AAAA;AACF;AAEA;IACF;AACE;IACF;AAAA;AACF;AAEE;AACA;AACA;AACE;AACE;MACF;AACE;MACF;AAAA;AACF;AAEE;AACE;MACF;AAAA;AACF;AAEE;IACF;AAAA;EAEF;AAAA;AAEA;AACA;AACE;EACF;AAAA;AAEE;AACE;IACF;AAAA;AAEE;AACA;AACE;MACF;AACE;AACA;AACA;AACE;AACA;AACA;AACA;AACA;QACF;AACA;AACA;AACA;AACE;AAAsB;MAE1B;AAAA;AACF;AAEA;EACF;AAAA;AAEA;AACE;AACE;AACA;AACE;MACF;AAAA;AAEA;AACA;AACE;MACF;AACE;AACA;MACF;AAAA;AAEE;AACA;AACA;AACE;QACF;AAAA;AAEA;AACA;AACA;AACA;MACF;AAAA;AACF;AAEA;EACF;AAAA;AAEA;AACE;AACE;AACA;AACE;MACF;AAAA;AAEA;AACA;AACE;MACF;AACE;AACE;AACA;AACA;AACA;AACA;QACF;MACF;AAAA;AACF;AAEA;EACF;AAAA;AA1JA;AACI;AAAa;AA2JjB;AC5JA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AATA;AACI;AAAa;AASjB;ACVA;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACA;AAEA;AACI;AACA;AACI;IACJ;AACI;IACJ;AAAA;AAEI;IACJ;AAAA;AACJ;AAGI;AACI;IACJ;AAAA;AAEA;AAEA;AACA;AACI;AACA;AACA;AACI;AACI;QACJ;AAAA;AACJ;AAEA;IACJ;AAAA;AAEA;AACA;EACJ;AAAA;AAGI;AACA;AACI;AACI;MACJ;AAAA;AACJ;AAEA;AACI;IACJ;AAAA;AAIJ;AACI;AACA;EACJ;AAAA;AAEI;EACJ;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAiB;AAGjB;AACA;AACA;AACA;AACA;AACA;AAEA;AACI;EACJ;AAEA;AAA4B;EAAW;AACvC;AACI;EACJ;AACA;AAA6B;EAAU;AA1FvC;AACI;AAAa;AA0FjB;AC3FA;AAAA;AACI;AAAmB;AACnB;AAFJ;AAAA;AACI;AAAa;AADwC;ACAzD;AAAA;AACI;AAAmB;AACnB;AAFJ;AAAA;AACI;AAAa;AADkD;ACAnE;AAAA;AACI;AAAmB;AACnB;AAFJ;AAAA;AACI;AAAa;AADmD;ACApE;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACA;IACF;AACA;AACA;AACE;IACF;AAAA;AAEE;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACA;QACF;AAAA;AAEE;AACA;AACA;QACF;AAAA;AAEE;AACA;AACA;QACF;AAAA;AAEE;AACA;AACA;QACF;AAAA;AAEE;AACA;AACA;QACF;AAAA;AAEE;AACA;AACA;QACF;AAAA;AAEE;AACA;AACA;QACF;AAAA;AAEE;AACA;AACA;QACF;AAAA;AAEE;AACA;AACA;QACF;AAAA;AAEE;AACA;AACA;QACF;AAAA;AACF;AAEE;AACE;AAAqB;AAErB;AAAqB;AAErB;AAAqB;AAErB;AAAqB;AAErB;AAAqB;AAErB;AAAqB;AAErB;AAAqB;AAErB;AAAqB;AAErB;AAAqB;AAErB;AAAqB;MAEzB;AACA;AACE;MACF;AACA;IACF;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AACE;AACA;AACA;QACF;AAAA;AACF;AAEE;AACE;QACF;AAAA;MAEF;AACA;AACE;MACF;AACA;IACF;AACA;AACA;AACE;AACE;AACA;MACF;AAAA;AAEE;MACF;AACA;IACF;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;MACF;AAAA;AAEE;MACF;AACA;AACE;MACF;AACA;AACE;AACA;AACA;MACF;AACA;AACE;AACA;AACA;AACE;AACE;UACF;AAAA;QAEF;AAAA;AAEE;AACE;UACF;AAAA;QAEF;AAAA;AAEE;AACE;UACF;AAAA;QAEF;AAAA;AAEE;AACE;UACF;AAAA;QAEF;AAAA;AAEE;AACE;UACF;AAAA;QAEF;AAAA;AAEE;AACE;UACF;AAAA;QAEF;AAAA;AAEE;AACE;UACF;AAAA;QAEF;AAAA;AAEE;AACE;UACF;AAAA;QAEF;AAAA;AAEE;AACE;UACF;AAAA;QAEF;AAAA;AAEE;AACE;UACF;AAAA;QAEF;AAAA;MAEF;AACA;AACE;AACE;AAAgB;AAEhB;AAAgB;AAEhB;AAAgB;AAEhB;AAAgB;AAEhB;AAAgB;AAEhB;AAAgB;AAEhB;AAAgB;AAEhB;AAAgB;AAEhB;AAAgB;AAEhB;AAAgB;MAEpB;AACA;AACE;MACF;AACA;IACF;AACA;AACA;AACE;AACE;AACA;AACA;AACA;MACF;AAAA;AAEE;MACF;AACA;AACE;MACF;AACA;AACE;AACA;AACA;MACF;AACA;AACE;AACA;AACE;AACE;AACE;YACF;AAAA;UAEF;AAAA;AACF;MAEF;AACA;AACE;AACE;QACF;AAAA;MAEF;AACA;AACE;MACF;AACA;IACF;AACA;AACA;AACE;AACE;AACA;MACF;AAAA;AAEA;AACE;MACF;AACA;IACF;AACA;AACA;AACE;AACE;AACE;QACF;AAAA;AAEE;QACF;AAAA;AAEE;QACF;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;MACF;AAAA;AAEE;MACF;AACA;AACE;AACA;MACF;AACA;AACE;AACE;QACF;AACA;AACA;MACF;AACA;AACE;MACF;AACA;AACE;MACF;AACA;AACE;MACF;AACA;AACE;MACF;AACA;AACE;MACF;AACA;AACE;AACE;QACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;QACF;AACA;AACA;AAAiB;AAEnB;AACE;AACA;MACF;AACA;AACE;AACE;QACF;AACA;AACA;AACA;AACA;MACF;AACA;AACE;MACF;AACA;AACE;MACF;AACA;AACE;AACE;QACF;AAAA;MAEF;AACA;AACE;AACE;AACA;AACE;UACF;AAAA;QAEF;AACE;QACF;AAAA;AAEF;AACE;AACA;AACA;AACA;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;QACF;AACE;AACE;UACF;AAAA;QAEF;AAAA;AAEA;AACE;AACE;AACE;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;QAEX;AACE;QACF;AAAA;MAEF;AACA;AACE;AACA;AACE;QACF;AACE;QACF;AAAA;AAEF;AACE;AACE;QACF;AAAA;AAEE;QACF;AACE;QACF;AACE;QACF;AAAA;AAEF;AACE;AACE;QACF;AACE;QACF;AAAA;AAEF;AACE;AACA;MACF;AACA;AACE;AACA;AACE;AACE;UACF;AACE;UACF;AAAA;AACF;AAEE;AACA;AACE;AAAU;AAEV;UACF;AACE;UACF;AAAA;AACF;MAEF;AACA;AACE;AACA;MACF;AACA;AACE;AACA;AACE;AACA;QACF;AAAA;AAEE;AACA;AACE;AAAU;AAEZ;QACF;AAAA;MAEF;AACA;AACE;AACE;AACE;UACF;QACF;AACA;AACA;AAAiB;AAEnB;AACE;MACF;AACA;IACF;AACA;AACA;AACA;AACE;AACA;AACE;MACF;AAAA;IAEF;AAAA;AAhpBF;AACI;AAAa;AAipBjB;AClpBA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACE;AACE;IACF;AAAA;AAEE;IACF;AACA;AACA;EACF;AACA;AACA;AACE;AAA6B;AAE3B;IACF;AACA;AACA;EACF;AACA;AACA;AACE;AAA+B;AAE7B;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACA;EACF;AACA;AACA;AACE;AAA+B;AAE/B;EACF;AACA;AACA;AACE;AAAyB;AAEvB;IACF;AACA;AACA;EACF;AACA;AACA;AACE;AAA6B;AAE3B;IACF;AACA;AACA;EACF;AACA;AACA;AACE;AAAyB;AAEvB;IACF;AACA;AACA;EACF;AACA;AApFA;AACI;AAAa;AAoFjB;ACrFA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;IACF;AACA;EACF;AACA;AACA;AACA;AACE;AACE;AACI;AACA;AACA;AACA;AACA;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACA;EACF;AACA;AACA;AACE;AACA;AACE;AACI;AACA;AACA;AACA;AACA;AACJ;AACE;AACA;AACA;AACA;AACA;AACA;AAAW;IAEf;AAAA;AAEE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACA;EACF;AACA;AACA;AACE;AACE;AACA;AACA;IACF;AAAA;AAEE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;EACF;AACA;AACA;AACE;AACE;AACA;IACF;AAAA;EAEF;AACA;AACA;AACE;EACF;AAAA;AAEA;AACE;AACI;AACA;AACA;AACA;AACA;AACJ;AACE;AACA;AACA;AACA;AACA;AACA;AAAW;EAEf;AAAA;AAEA;AACE;AACE;IACF;AAAA;AAEE;AACE;MACF;AAAA;IAEF;AACA;AACE;IACF;AACA;AACE;AACE;MACF;AAAA;IAEF;AACA;AACE;AACE;MACF;AAAA;AAEE;AACA;AAAiB;IAErB;AACA;EACF;AACA;AACA;AACE;AACA;AACA;AACE;AACA;AACA;IACF;AACE;AACE;MACF;AACA;IACF;AACE;AACA;IACF;AACE;AACE;MACF;AACA;IACF;AAAA;EAEF;AAAA;AAEA;AACE;EACF;AAAA;AAEA;AACE;AACA;AACE;AACE;MACF;AACE;AACA;AACE;QACF;MACF;AAAA;EAEJ;AAAA;AAEA;AACE;AACE;AACA;IACF;AAAA;EAEF;AACA;AACE;EACF;AAAA;AAEE;AACE;AACE;MACF;AACE;MACF;AACE;MACF;AACE;MACF;AACE;MACF;AAAA;AAEF;EACF;AAAA;AAEE;AACA;AACA;AACA;AACE;AACA;AACE;MACF;AACE;MACF;AACE;MACF;AAAA;AAEA;AACA;AACE;MACF;AAAA;IAEF;AAAA;AACF;AAEE;AACE;IACF;AACE;AACE;MACF;AACA;AACE;MACF;IACF;AAAA;AACF;AAEE;AACA;AACE;AAAS;AAET;IACF;AAAA;AAEE;IACF;EACF;AAAA;AAEE;AACA;AACA;AACA;AACE;AACE;MACF;AACE;MACF;AAAA;AACF;AAEA;AACA;AACE;AACA;AACE;MACF;AACE;MACF;AACE;MACF;AACE;MACF;AACE;MACF;AACE;MACF;AACE;AACE;QACF;AAAA;MAEF;AAAA;AACF;AAEA;AACE;IACF;AACE;IACF;AAAA;AACF;AAEE;EACF;AAAA;AArWI;AAAa;AAsWjB;ACvWA;;AAAA;AACI;AAAmB;AACnB;AAGJ;AACI;AACA;AAEI;AAAmB;MAA6D;AAChF;AACA;AAAiB;AAErB;EACJ;AACA;AAfA;AACI;AAAa;AAe42B;AChB73B;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACE;AACA;AACE;IACF;AACA;EACF;AAAA;AAEA;AACE;AACE;IACF;AACE;IACF;AAAA;AACF;AAjBA;AACI;AAAa;AAkBjB;ACnBA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;AACA;AACA;AACE;MACF;AAAA;AACF;AAEE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;IACF;AACA;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;EACF;AACA;AACA;AACE;AACE;IACF;AAAA;AAEE;AACE;AAAY;AAEd;AACE;MACF;AAAA;AAEA;AACE;MACF;AAAA;AAEA;AACA;IACF;AACA;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;EACF;AACA;AACA;AAjEA;AACI;AAAa;AAiEjB;AClEA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACA;AACA;AACA;AACE;AACA;AACE;AACE;AACA;MACF;AACE;MACF;AAAA;AACF;EAEF;AAAA;AAEE;AACE;AACA;AACE;MACF;AACA;IACF;AACE;IACF;AAAA;AACF;AAEE;AACA;AACE;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACA;AACA;IACF;AACA;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;EACF;AACA;AACA;AACE;AACA;AACE;AACE;AACA;MACF;IACF;AAAA;EAEF;AACA;AACA;AACE;AACA;AACE;AACE;MACF;IACF;AAAA;EAEF;AACA;AACA;AACE;AACA;AACE;AACA;AACA;IACF;AAAA;AAEE;AACA;IACF;AACA;AACE;AACE;AACA;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;EACF;AACA;AACA;AACE;AACA;AACE;IACF;AAAA;EAEF;AACA;AACA;AACE;AACA;AACE;IACF;AAAA;AAEE;AACA;AACI;AACF;AACA;AACE;QACF;AACE;QACF;AAAA;AACF;IAEF;AACA;EACF;AACA;AACA;AACE;AACA;AACE;IACF;AAAA;EAEF;AACA;AACA;AACE;AACA;AACE;IACF;AAAA;EAEF;AACA;AAlKA;AACI;AAAa;AAkKjB;ACnKA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACE;AACE;IACF;AAAA;AAEE;IACF;AACA;AACA;EACF;AACA;AA7BA;AACI;AAAa;AA6BjB;AC9BA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAiB;AACvB;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAzCA;AACI;AAAa;AAyCjB;AC1CA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEE;AACA;AAAO;AAET;AACE;EACF;AAAA;AAEA;AACA;AAnBA;AACI;AAAa;AAmBjB;ACpBA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACE;AACE;IACF;EACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;IACF;AACA;AACE;AACA;AACA;AACE;AACA;AACA;AACA;AACA;MACF;AAAA;IAEF;AACA;AACE;AACA;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACE;QACF;AACA;AACA;AACA;MACF;AAAA;IAEF;AACA;AACE;AACA;AACE;MACF;AAAA;IAEF;AACA;AACE;AACE;AACA;MACF;AAAA;AAEF;AACE;AACA;AACA;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;AACE;MACF;AAAA;AAEE;MACF;AAAA;IAEF;AACA;AACA;EACF;AACA;AACA;AACE;EACF;AAAA;AAEE;EACF;AAAA;AAEE;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACE;MACF;AAAA;IAEF;AACA;AACE;IACF;AACA;AACE;AACE;MACF;AACE;MACF;AAAA;IAEF;AACA;AACE;IACF;AACA;AACE;AACA;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACE;MACF;AAAA;AAEA;IACF;AACA;AACE;AACE;AACA;AACA;MACF;AAAA;AAEA;AACA;AACA;AACE;MACF;AAAA;AAEA;AACA;IACF;AACA;AACE;AACA;AACA;AACA;IACF;AACA;AACE;AACA;AACA;AACA;AACA;IACF;AACA;EACF;AACA;AACE;AACA;AACA;AACE;IACF;AAAA;AAEE;IACF;AAAA;AAEE;AACA;AACE;MACF;AAAA;AACF;AAEE;IACF;AAAA;AAEA;AACA;AACE;IACF;AACA;AACE;IACF;AACE;IACF;AAAA;AAEA;AACA;AACE;AACA;AACE;MACF;AAAA;AAEA;IACF;AAAA;EAEF;AAAA;AAEE;AACA;EACF;AAAA;AAEE;AACA;AACE;AACA;AACA;AACE;MACF;AACE;MACF;AAAA;AACF;EAEF;AAAA;AAEA;AACE;AACA;AACE;AACE;MACF;AACE;MACF;AAAA;AACF;EAEF;AAAA;AAEE;AACE;AACA;AACE;MACF;AACE;MACF;AAAA;AACF;AACF;AAEE;AACE;AACA;AACE;MACF;AACE;MACF;AAAA;AACF;EAEF;AAAA;AAzSI;AAAa;AA0SjB;AC3SA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACE;AACE;IACF;EACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AAA2B;AAEzB;AACA;AACE;MACF;AAAA;IAEF;AACA;EACF;AACA;AACA;AACE;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACA;IACF;AACA;AACE;AACA;AACA;AACA;AACE;MACF;AAAA;AAEA;AACE;MACF;AAAA;IAEF;AACA;AACE;AACA;AACA;IACF;AACA;AACE;AACA;AACA;AACA;AACA;AACE;MACF;AAAA;AAEA;AACA;AACA;AACA;IACF;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AACA;AACE;AACA;AACA;AACE;MACF;AAAA;AAEA;IACF;AACA;AACE;AACA;AACA;AACE;MACF;AAAA;AAEA;IACF;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;MACF;AACE;AACA;AACA;MACF;AAAA;AAEA;AACE;MACF;AACE;AACA;MACF;AAAA;IAEF;AACA;AACE;AACA;AACE;MACF;AACE;AACA;MACF;AAAA;AAEF;AACE;AACA;AACA;AACA;AACA;IACF;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AACA;AACE;AACA;AACA;AACA;IACF;AACA;AACE;AACA;AACE;MACF;AAAA;IAEF;AACA;AACE;AACA;AACE;AACA;MACF;AAAA;AAEF;AACE;AACA;AACA;AACA;AACA;AACE;MACF;AACE;AACA;AACA;MACF;AAAA;AAEF;AACE;AACE;MACF;AAAA;AAEA;AACA;AACA;AACA;AACE;AACA;AACE;AACA;AACE;AACE;YACF;AAAA;AACF;AACF;AACF;AAEF;AACE;IACF;AACA;EACF;AACA;AA7PA;AACI;AAAa;AA6PjB;AC9PA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACA;AACE;AAAyB;AAEvB;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;EACF;AACA;AACA;AACE;AACA;AACE;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;IACF;AACA;EACF;AACA;AACA;AACE;AAAmC;EAErC;AACA;AACA;AACE;AACA;AACE;AACA;AACA;IACF;AAAA;AAEE;AACA;AACE;AACA;AACA;AACA;AACE;AACE;UACF;AAAA;QAEF;AACA;MACF;IACF;AACA;AACE;AACE;MACF;AAAA;IAEF;AACA;AACE;AACA;AACE;MACF;AAAA;AAEE;AACA;AACA;AACA;AACA;AACE;AACA;AACE;UACF;AAAA;AAEF;MACF;IACF;AACA;AACA;EACF;AACA;AAhIA;AACI;AAAa;AAgIjB;ACjIA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAnBA;AACI;AAAa;AAmBjB;ACpBA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;IACF;AAAA;EAEF;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACE;MACF;AAAA;AAEA;AACE;MACF;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACE;AACA;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;AACA;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;AACA;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;AACA;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;AACA;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AAAA;IAEF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;EACF;AACA;AACA;AACE;AACE;IACF;EACF;AAAA;AAvII;AAAa;AAwIjB;ACzIA;;AAAA;AACI;AAAmB;AACnB;AADS;AACT;AAAiB;AAAyB;AAAW;AACrC;IAAsB;AAAA;EAE1C;AAC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A;AACW;AAEX;AACA;AACE;MACF;AACA;IACF;EACF;AACA;AACE;AACE;AACE;AACA;AACA;AACE;QACF;AAAA;IAEJ;AACE;AACE;AACE;QACF;MACF;IACF;AAAA;AAEF;AACE;AACE;AACE;AACE;QACF;MACF;AAAA;AACW;AAEX;AACI;AACJ;AACE;AACA;MACF;AACA;IACF;EACF;AACA;AACE;AAAuB;AAErB;IACF;AACA;AACE;AACA;AACE;MACF;AAAA;IAEF;AACA;AACE;AACA;AACE;MACF;AACA;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;EACF;AACA;AACA;AACE;AAA6B;AAE3B;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACE;MACF;AAAA;IAEF;AACA;AACE;IACF;AACA;AACE;AACE;AACE;QACF;AAAA;AACF;AAEF;AACE;AACA;AACE;AACE;QACF;AAAA;AACF;AAEE;AACE;QACF;AAAA;AACF;IAEF;AACA;AACE;AACA;AACA;AACE;MACF;AAAA;AAEA;AACE;AACA;AACE;QACF;AAAA;AACF;IAEF;AACA;EACF;AACA;AACA;AACE;AAAwB;AAEtB;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACE;MACF;AAAA;AAEF;AACE;AACE;AAAW;IAEf;AACA;AACE;AACE;AAAW;IAEf;AACA;AACE;AACE;MACF;AAAA;IAEF;AACA;AACE;IACF;AACA;AACE;AACA;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACA;IACF;AACA;AACE;AACE;AACA;MACF;AAAA;AAEF;AACE;AACA;AACE;AACA;MACF;AAAA;IAEF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACE;MACF;AAAA;AAEE;MACF;AAAA;IAEF;AACA;AACE;AACE;AAAY;AAEZ;AACE;AAAY;AAChB;IAEF;AACA;AACE;AACE;MACF;AAAA;AAEE;MACF;AAAA;IAEF;AACA;AACE;IACF;AACA;AACE;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACE;MACF;AAAA;AAEA;AACA;AACE;AACA;AACE;QACF;AAAA;AAEA;AACE;AACA;QACF;AAAA;AACF;IAEF;AACA;EACF;AACA;AACA;AACE;AACE;AAAY;EAEhB;AAAA;AAEA;AACE;AACE;AACE;MACF;AAAA;AAEA;AACA;AACA;AACE;MACF;AAAA;AACF;AACF;AAEA;AACE;AACA;AACE;AACE;MACF;IACF;AACE;AACE;AACA;AACE;AACE;UACF;AAAA;AACF;MAEF;IACF;AAAA;AAEF;AACE;AAAuB;AAErB;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;EACF;AACA;AAzWA;AACI;AAAa;AAyWjB;AC1WA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACE;AACE;IACF;AAAA;AAEE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACA;AACA;EACF;AACA;AACE;AACE;AACE;MACF;AAAA;AAEA;IACF;AAAA;AAEE;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEA;AACA;AACA;IACF;AACA;AACE;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEA;AACA;AACA;AACA;AACE;AACA;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;AACA;MACF;AAAA;AAEE;AACA;MACF;AAAA;AAEA;AACE;AAAe;AAEnB;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACE;AACE;AAAW;MAEf;AACE;MACF;AAAA;AAEF;AACE;AACE;AAAW;AAEb;AACE;MACF;AAAA;IAEF;AACA;AACE;AACE;AAAW;AAEb;AACA;AACE;AACA;AACE;QACF;AAAA;AACF;IAEF;AACA;EACF;AACA;AAlHA;AACI;AAAa;AAkHjB;ACnHA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACA;AACA;AACA;AACE;AACA;AACE;AACE;MACF;AAAA;AAEA;AACA;IACF;AAAA;AAEE;IACF;AACA;EACF;AACA;AACA;AACE;AACA;AACE;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;IACF;AACA;EACF;AACA;AACA;AACE;EACF;AAAA;AAEA;AACE;EACF;AAAA;AA9FA;AACI;AAAa;AA+FjB;AChGA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACE;AACE;IACF;AAAA;AAEE;IACF;AACA;AACE;AACE;AACE;AACE;UACF;AAAC;AAED;AACE;UACF;AAAC;AAED;AACE;UACF;AAAC;AAED;AACE;UACF;AAAC;AAED;AACE;UACF;AAAC;AAED;AACE;UACF;AAAC;AAED;AACE;UACF;AAAC;AAED;AACE;UACF;AAAC;AAED;AACE;UACF;AAAC;AAED;AACE;UACF;AAAC;AAED;AACE;UACF;AAAC;AAED;AACE;UACF;AAAC;AAED;AACE;UACF;AAAC;AAED;AACE;UACF;AAAC;AAED;AACE;UACF;AAAC;AAED;AACE;UACF;AAAC;AAED;AACE;UACF;AAAC;AAED;AACE;UACF;AAAC;AAED;AACE;UACF;AAAC;AAED;AACE;UACF;AAAC;AAED;AACE;UACF;AAAC;AAEL;AACA;IACF;AACA;AACE;AACA;AACE;MACF;AACE;MACF;AAAA;AAEE;AACE;QACF;AACE;QACF;AACE;QACF;AAAA;AAEE;QACF;AAAA;AACF;IAEF;AACA;AACE;AACE;MACF;AAAA;AAEE;AACA;AACA;AACE;QACF;AAAA;AACF;AAEA;AACA;IACF;AACA;AACE;AACE;AACA;AACE;QACF;AAAA;MAEF;AAAA;AAEE;AACA;AACE;AAAkB;AACtB;IAEF;AACA;AACE;AACE;AACA;AACE;QACF;AAAA;MAEF;AAAA;AAEE;AACA;AACE;AAAmB;AACvB;IAEF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACA;IACF;AACA;AACE;IACF;AACA;EACF;AACA;AAzLA;AACI;AAAa;AAyLjB;AC1LA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACA;AACA;AAPA;AACI;AAAa;AAOjB;ACRA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAiB;AACvB;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAtCA;AACI;AAAa;AAsCjB;;ACvCA,cAAY,CAAC;;6BAKF,IAAI;;;yBAFP,cAAc;;kBADd,KAAK;;;AAGF,UAAI,GAAG,KAAK,CAAC,IAAI;;;;AAE5B,YAAM,CAAC,KAAK,GAAG,KAAK,CAAC;AACrB,oBAAc,EAAE,CAAC;AACjB,WAAK,CAAC,QAAQ,EAAE,CAAC","file":"dist/redoc.js","sourcesContent":["(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require==\"function\"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error(\"Cannot find module '\"+o+\"'\");throw f.code=\"MODULE_NOT_FOUND\",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require==\"function\"&&require;for(var o=0;o -1;\n\nvar resolvedPromise;\n\n// TODO(vicb): remove '!isFirefox' when the bug gets fixed:\n// https://bugzilla.mozilla.org/show_bug.cgi?id=1162013\nif (hasNativePromise && !isFirefox) {\n // When available use a native Promise to schedule microtasks.\n // When not available, es6-promise fallback will be used\n resolvedPromise = Promise.resolve();\n}\n\nvar es6Promise = require('es6-promise').Promise;\n\nif (resolvedPromise) {\n es6Promise._setScheduler(function(fn) {\n resolvedPromise.then(fn);\n });\n}\n\n// es6-promise asap should schedule microtasks via zone.scheduleMicrotask so that any\n// user defined hooks are triggered\nes6Promise._setAsap(function(fn, arg) {\n global.zone.scheduleMicrotask(function() {\n fn(arg);\n });\n});\n\n// The default implementation of scheduleMicrotask use the original es6-promise implementation\n// to schedule a microtask\nfunction scheduleMicrotask(fn) {\n es6Promise._asap(this.bind(fn));\n}\n\nfunction addMicrotaskSupport(zoneClass) {\n zoneClass.prototype.scheduleMicrotask = scheduleMicrotask;\n return zoneClass;\n}\n\nmodule.exports = {\n addMicrotaskSupport: addMicrotaskSupport\n};\n\n\n\n\n}).call(this,typeof global !== \"undefined\" ? global : typeof self !== \"undefined\" ? self : typeof window !== \"undefined\" ? window : {})\n},{\"es6-promise\":17}],5:[function(require,module,exports){\n(function (global){\n'use strict';\n\nvar fnPatch = require('./functions');\nvar promisePatch = require('./promise');\nvar mutationObserverPatch = require('./mutation-observer');\nvar definePropertyPatch = require('./define-property');\nvar registerElementPatch = require('./register-element');\nvar webSocketPatch = require('./websocket');\nvar eventTargetPatch = require('./event-target');\nvar propertyDescriptorPatch = require('./property-descriptor');\nvar geolocationPatch = require('./geolocation');\nvar fileReaderPatch = require('./file-reader');\n\nfunction apply() {\n fnPatch.patchSetClearFunction(global, [\n 'timeout',\n 'interval',\n 'immediate'\n ]);\n\n fnPatch.patchRequestAnimationFrame(global, [\n 'requestAnimationFrame',\n 'mozRequestAnimationFrame',\n 'webkitRequestAnimationFrame'\n ]);\n\n fnPatch.patchFunction(global, [\n 'alert',\n 'prompt'\n ]);\n\n eventTargetPatch.apply();\n\n propertyDescriptorPatch.apply();\n\n promisePatch.apply();\n\n mutationObserverPatch.patchClass('MutationObserver');\n mutationObserverPatch.patchClass('WebKitMutationObserver');\n\n definePropertyPatch.apply();\n\n registerElementPatch.apply();\n\n geolocationPatch.apply();\n\n fileReaderPatch.apply();\n}\n\nmodule.exports = {\n apply: apply\n};\n\n}).call(this,typeof global !== \"undefined\" ? global : typeof self !== \"undefined\" ? self : typeof window !== \"undefined\" ? window : {})\n},{\"./define-property\":6,\"./event-target\":7,\"./file-reader\":8,\"./functions\":9,\"./geolocation\":10,\"./mutation-observer\":11,\"./promise\":12,\"./property-descriptor\":13,\"./register-element\":14,\"./websocket\":15}],6:[function(require,module,exports){\n'use strict';\n\nvar keys = require('../keys');\n\n// might need similar for object.freeze\n// i regret nothing\n\nvar _defineProperty = Object.defineProperty;\nvar _getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar _create = Object.create;\nvar unconfigurablesKey = keys.create('unconfigurables');\n\nfunction apply() {\n Object.defineProperty = function (obj, prop, desc) {\n if (isUnconfigurable(obj, prop)) {\n throw new TypeError('Cannot assign to read only property \\'' + prop + '\\' of ' + obj);\n }\n if (prop !== 'prototype') {\n desc = rewriteDescriptor(obj, prop, desc);\n }\n return _defineProperty(obj, prop, desc);\n };\n\n Object.defineProperties = function (obj, props) {\n Object.keys(props).forEach(function (prop) {\n Object.defineProperty(obj, prop, props[prop]);\n });\n return obj;\n };\n\n Object.create = function (obj, proto) {\n if (typeof proto === 'object') {\n Object.keys(proto).forEach(function (prop) {\n proto[prop] = rewriteDescriptor(obj, prop, proto[prop]);\n });\n }\n return _create(obj, proto);\n };\n\n Object.getOwnPropertyDescriptor = function (obj, prop) {\n var desc = _getOwnPropertyDescriptor(obj, prop);\n if (isUnconfigurable(obj, prop)) {\n desc.configurable = false;\n }\n return desc;\n };\n};\n\nfunction _redefineProperty(obj, prop, desc) {\n desc = rewriteDescriptor(obj, prop, desc);\n return _defineProperty(obj, prop, desc);\n};\n\nfunction isUnconfigurable (obj, prop) {\n return obj && obj[unconfigurablesKey] && obj[unconfigurablesKey][prop];\n}\n\nfunction rewriteDescriptor (obj, prop, desc) {\n desc.configurable = true;\n if (!desc.configurable) {\n if (!obj[unconfigurablesKey]) {\n _defineProperty(obj, unconfigurablesKey, { writable: true, value: {} });\n }\n obj[unconfigurablesKey][prop] = true;\n }\n return desc;\n}\n\nmodule.exports = {\n apply: apply,\n _redefineProperty: _redefineProperty\n};\n\n\n\n},{\"../keys\":3}],7:[function(require,module,exports){\n(function (global){\n'use strict';\n\nvar utils = require('../utils');\n\nfunction apply() {\n // patched properties depend on addEventListener, so this needs to come first\n if (global.EventTarget) {\n utils.patchEventTargetMethods(global.EventTarget.prototype);\n\n // Note: EventTarget is not available in all browsers,\n // if it's not available, we instead patch the APIs in the IDL that inherit from EventTarget\n } else {\n var apis = [\n 'ApplicationCache',\n 'EventSource',\n 'FileReader',\n 'InputMethodContext',\n 'MediaController',\n 'MessagePort',\n 'Node',\n 'Performance',\n 'SVGElementInstance',\n 'SharedWorker',\n 'TextTrack',\n 'TextTrackCue',\n 'TextTrackList',\n 'WebKitNamedFlow',\n 'Worker',\n 'WorkerGlobalScope',\n 'XMLHttpRequest',\n 'XMLHttpRequestEventTarget',\n 'XMLHttpRequestUpload'\n ];\n\n apis.forEach(function(api) {\n var proto = global[api] && global[api].prototype;\n\n // Some browsers e.g. Android 4.3's don't actually implement\n // the EventTarget methods for all of these e.g. FileReader.\n // In this case, there is nothing to patch.\n if (proto && proto.addEventListener) {\n utils.patchEventTargetMethods(proto);\n }\n });\n\n // Patch the methods on `window` instead of `Window.prototype`\n // `Window` is not accessible on Android 4.3\n if (typeof(window) !== 'undefined') {\n utils.patchEventTargetMethods(window);\n }\n }\n}\n\nmodule.exports = {\n apply: apply\n};\n\n}).call(this,typeof global !== \"undefined\" ? global : typeof self !== \"undefined\" ? self : typeof window !== \"undefined\" ? window : {})\n},{\"../utils\":16}],8:[function(require,module,exports){\n'use strict';\n\nvar utils = require('../utils');\n\nfunction apply() {\n utils.patchClass('FileReader');\n}\n\nmodule.exports = {\n apply: apply\n};\n},{\"../utils\":16}],9:[function(require,module,exports){\n(function (global){\n'use strict';\n\nvar utils = require('../utils');\n\nfunction patchSetClearFunction(obj, fnNames) {\n fnNames.map(function (name) {\n return name[0].toUpperCase() + name.substr(1);\n }).forEach(function (name) {\n var setName = 'set' + name;\n var delegate = obj[setName];\n\n if (delegate) {\n var clearName = 'clear' + name;\n var ids = {};\n\n var bindArgs = setName === 'setInterval' ? utils.bindArguments : utils.bindArgumentsOnce;\n\n global.zone[setName] = function (fn) {\n var id, fnRef = fn;\n arguments[0] = function () {\n delete ids[id];\n return fnRef.apply(this, arguments);\n };\n var args = bindArgs(arguments);\n id = delegate.apply(obj, args);\n ids[id] = true;\n return id;\n };\n\n obj[setName] = function () {\n return global.zone[setName].apply(this, arguments);\n };\n\n var clearDelegate = obj[clearName];\n\n global.zone[clearName] = function (id) {\n if (ids[id]) {\n delete ids[id];\n global.zone.dequeueTask();\n }\n return clearDelegate.apply(this, arguments);\n };\n\n obj[clearName] = function () {\n return global.zone[clearName].apply(this, arguments);\n };\n }\n });\n};\n\n\n/**\n * requestAnimationFrame is typically recursively called from within the callback function\n * that it executes. To handle this case, only fork a zone if this is executed\n * within the root zone.\n */\nfunction patchRequestAnimationFrame(obj, fnNames) {\n fnNames.forEach(function (name) {\n var delegate = obj[name];\n if (delegate) {\n global.zone[name] = function (fn) {\n var callZone = global.zone.isRootZone() ? global.zone.fork() : global.zone;\n if (fn) {\n arguments[0] = function () {\n return callZone.run(fn, this, arguments);\n };\n }\n return delegate.apply(obj, arguments);\n };\n\n obj[name] = function () {\n return global.zone[name].apply(this, arguments);\n };\n }\n });\n};\n\nfunction patchSetFunction(obj, fnNames) {\n fnNames.forEach(function (name) {\n var delegate = obj[name];\n\n if (delegate) {\n global.zone[name] = function (fn) {\n arguments[0] = function () {\n return fn.apply(this, arguments);\n };\n var args = utils.bindArgumentsOnce(arguments);\n return delegate.apply(obj, args);\n };\n\n obj[name] = function () {\n return zone[name].apply(this, arguments);\n };\n }\n });\n};\n\nfunction patchFunction(obj, fnNames) {\n fnNames.forEach(function (name) {\n var delegate = obj[name];\n global.zone[name] = function () {\n return delegate.apply(obj, arguments);\n };\n\n obj[name] = function () {\n return global.zone[name].apply(this, arguments);\n };\n });\n};\n\n\nmodule.exports = {\n patchSetClearFunction: patchSetClearFunction,\n patchSetFunction: patchSetFunction,\n patchRequestAnimationFrame: patchRequestAnimationFrame,\n patchFunction: patchFunction\n};\n\n}).call(this,typeof global !== \"undefined\" ? global : typeof self !== \"undefined\" ? self : typeof window !== \"undefined\" ? window : {})\n},{\"../utils\":16}],10:[function(require,module,exports){\n(function (global){\n'use strict';\n\nvar utils = require('../utils');\n\nfunction apply() {\n if (global.navigator && global.navigator.geolocation) {\n utils.patchPrototype(global.navigator.geolocation, [\n 'getCurrentPosition',\n 'watchPosition'\n ]);\n }\n}\n\nmodule.exports = {\n apply: apply\n}\n\n}).call(this,typeof global !== \"undefined\" ? global : typeof self !== \"undefined\" ? self : typeof window !== \"undefined\" ? window : {})\n},{\"../utils\":16}],11:[function(require,module,exports){\n(function (global){\n'use strict';\n\nvar keys = require('../keys');\n\nvar originalInstanceKey = keys.create('originalInstance');\nvar creationZoneKey = keys.create('creationZone');\nvar isActiveKey = keys.create('isActive');\n\n// wrap some native API on `window`\nfunction patchClass(className) {\n var OriginalClass = global[className];\n if (!OriginalClass) return;\n\n global[className] = function (fn) {\n this[originalInstanceKey] = new OriginalClass(global.zone.bind(fn, true));\n // Remember where the class was instantiate to execute the enqueueTask and dequeueTask hooks\n this[creationZoneKey] = global.zone;\n };\n\n var instance = new OriginalClass(function () {});\n\n global[className].prototype.disconnect = function () {\n var result = this[originalInstanceKey].disconnect.apply(this[originalInstanceKey], arguments);\n if (this[isActiveKey]) {\n this[creationZoneKey].dequeueTask();\n this[isActiveKey] = false;\n }\n return result;\n };\n\n global[className].prototype.observe = function () {\n if (!this[isActiveKey]) {\n this[creationZoneKey].enqueueTask();\n this[isActiveKey] = true;\n }\n return this[originalInstanceKey].observe.apply(this[originalInstanceKey], arguments);\n };\n\n var prop;\n for (prop in instance) {\n (function (prop) {\n if (typeof global[className].prototype !== 'undefined') {\n return;\n }\n if (typeof instance[prop] === 'function') {\n global[className].prototype[prop] = function () {\n return this[originalInstanceKey][prop].apply(this[originalInstanceKey], arguments);\n };\n } else {\n Object.defineProperty(global[className].prototype, prop, {\n set: function (fn) {\n if (typeof fn === 'function') {\n this[originalInstanceKey][prop] = global.zone.bind(fn);\n } else {\n this[originalInstanceKey][prop] = fn;\n }\n },\n get: function () {\n return this[originalInstanceKey][prop];\n }\n });\n }\n }(prop));\n }\n};\n\nmodule.exports = {\n patchClass: patchClass\n};\n\n}).call(this,typeof global !== \"undefined\" ? global : typeof self !== \"undefined\" ? self : typeof window !== \"undefined\" ? window : {})\n},{\"../keys\":3}],12:[function(require,module,exports){\n(function (global){\n'use strict';\n\nvar utils = require('../utils');\n\n/*\n * Patches a function that returns a Promise-like instance.\n *\n * This function must be used when either:\n * - Native Promises are not available,\n * - The function returns a Promise-like object.\n *\n * This is required because zones rely on a Promise monkey patch that could not be applied when\n * Promise is not natively available or when the returned object is not an instance of Promise.\n *\n * Note that calling `bindPromiseFn` on a function that returns a native Promise will also work\n * with minimal overhead.\n *\n * ```\n * var boundFunction = bindPromiseFn(FunctionReturningAPromise);\n *\n * boundFunction.then(successHandler, errorHandler);\n * ```\n */\nvar bindPromiseFn;\n\nif (global.Promise) {\n bindPromiseFn = function (delegate) {\n return function() {\n var delegatePromise = delegate.apply(this, arguments);\n\n // if the delegate returned an instance of Promise, forward it.\n if (delegatePromise instanceof Promise) {\n return delegatePromise;\n }\n\n // Otherwise wrap the Promise-like in a global Promise\n return new Promise(function(resolve, reject) {\n delegatePromise.then(resolve, reject);\n });\n };\n };\n} else {\n bindPromiseFn = function (delegate) {\n return function () {\n return _patchThenable(delegate.apply(this, arguments));\n };\n };\n}\n\n\nfunction _patchPromiseFnsOnObject(objectPath, fnNames) {\n var obj = global;\n\n var exists = objectPath.every(function (segment) {\n obj = obj[segment];\n return obj;\n });\n\n if (!exists) {\n return;\n }\n\n fnNames.forEach(function (name) {\n var fn = obj[name];\n if (fn) {\n obj[name] = bindPromiseFn(fn);\n }\n });\n}\n\nfunction _patchThenable(thenable) {\n var then = thenable.then;\n thenable.then = function () {\n var args = utils.bindArguments(arguments);\n var nextThenable = then.apply(thenable, args);\n return _patchThenable(nextThenable);\n };\n\n var ocatch = thenable.catch;\n thenable.catch = function () {\n var args = utils.bindArguments(arguments);\n var nextThenable = ocatch.apply(thenable, args);\n return _patchThenable(nextThenable);\n };\n\n return thenable;\n}\n\n\nfunction apply() {\n // Patch .then() and .catch() on native Promises to execute callbacks in the zone where\n // those functions are called.\n if (global.Promise) {\n utils.patchPrototype(Promise.prototype, [\n 'then',\n 'catch'\n ]);\n\n // Patch browser APIs that return a Promise\n var patchFns = [\n // fetch\n [[], ['fetch']],\n [['Response', 'prototype'], ['arrayBuffer', 'blob', 'json', 'text']]\n ];\n\n patchFns.forEach(function(objPathAndFns) {\n _patchPromiseFnsOnObject(objPathAndFns[0], objPathAndFns[1]);\n });\n }\n}\n\nmodule.exports = {\n apply: apply,\n bindPromiseFn: bindPromiseFn\n};\n\n}).call(this,typeof global !== \"undefined\" ? global : typeof self !== \"undefined\" ? self : typeof window !== \"undefined\" ? window : {})\n},{\"../utils\":16}],13:[function(require,module,exports){\n(function (global){\n'use strict';\n\nvar webSocketPatch = require('./websocket');\nvar utils = require('../utils');\nvar keys = require('../keys');\n\nvar eventNames = 'copy cut paste abort blur focus canplay canplaythrough change click contextmenu dblclick drag dragend dragenter dragleave dragover dragstart drop durationchange emptied ended input invalid keydown keypress keyup load loadeddata loadedmetadata loadstart message mousedown mouseenter mouseleave mousemove mouseout mouseover mouseup pause play playing progress ratechange reset scroll seeked seeking select show stalled submit suspend timeupdate volumechange waiting mozfullscreenchange mozfullscreenerror mozpointerlockchange mozpointerlockerror error webglcontextrestored webglcontextlost webglcontextcreationerror'.split(' ');\n\nfunction apply() {\n if (utils.isWebWorker()){\n // on WebWorker so don't apply patch\n return;\n }\n\n var supportsWebSocket = typeof WebSocket !== 'undefined';\n if (canPatchViaPropertyDescriptor()) {\n // for browsers that we can patch the descriptor: Chrome & Firefox\n var onEventNames = eventNames.map(function (property) {\n return 'on' + property;\n });\n utils.patchProperties(HTMLElement.prototype, onEventNames);\n utils.patchProperties(XMLHttpRequest.prototype);\n if (supportsWebSocket) {\n utils.patchProperties(WebSocket.prototype);\n }\n } else {\n // Safari, Android browsers (Jelly Bean)\n patchViaCapturingAllTheEvents();\n utils.patchClass('XMLHttpRequest');\n if (supportsWebSocket) {\n webSocketPatch.apply();\n }\n }\n}\n\nfunction canPatchViaPropertyDescriptor() {\n if (!Object.getOwnPropertyDescriptor(HTMLElement.prototype, 'onclick') && typeof Element !== 'undefined') {\n // WebKit https://bugs.webkit.org/show_bug.cgi?id=134364\n // IDL interface attributes are not configurable\n var desc = Object.getOwnPropertyDescriptor(Element.prototype, 'onclick');\n if (desc && !desc.configurable) return false;\n }\n\n Object.defineProperty(HTMLElement.prototype, 'onclick', {\n get: function () {\n return true;\n }\n });\n var elt = document.createElement('div');\n var result = !!elt.onclick;\n Object.defineProperty(HTMLElement.prototype, 'onclick', {});\n return result;\n};\n\nvar unboundKey = keys.create('unbound');\n\n// Whenever any event fires, we check the event target and all parents\n// for `onwhatever` properties and replace them with zone-bound functions\n// - Chrome (for now)\nfunction patchViaCapturingAllTheEvents() {\n eventNames.forEach(function (property) {\n var onproperty = 'on' + property;\n document.addEventListener(property, function (event) {\n var elt = event.target, bound;\n while (elt) {\n if (elt[onproperty] && !elt[onproperty][unboundKey]) {\n bound = global.zone.bind(elt[onproperty]);\n bound[unboundKey] = elt[onproperty];\n elt[onproperty] = bound;\n }\n elt = elt.parentElement;\n }\n }, true);\n });\n};\n\nmodule.exports = {\n apply: apply\n};\n\n}).call(this,typeof global !== \"undefined\" ? global : typeof self !== \"undefined\" ? self : typeof window !== \"undefined\" ? window : {})\n},{\"../keys\":3,\"../utils\":16,\"./websocket\":15}],14:[function(require,module,exports){\n(function (global){\n'use strict';\n\nvar _redefineProperty = require('./define-property')._redefineProperty;\nvar utils = require(\"../utils\");\n\nfunction apply() {\n if (utils.isWebWorker() || !('registerElement' in global.document)) {\n return;\n }\n\n var _registerElement = document.registerElement;\n var callbacks = [\n 'createdCallback',\n 'attachedCallback',\n 'detachedCallback',\n 'attributeChangedCallback'\n ];\n\n document.registerElement = function (name, opts) {\n if (opts && opts.prototype) {\n callbacks.forEach(function (callback) {\n if (opts.prototype.hasOwnProperty(callback)) {\n var descriptor = Object.getOwnPropertyDescriptor(opts.prototype, callback);\n if (descriptor && descriptor.value) {\n descriptor.value = global.zone.bind(descriptor.value);\n _redefineProperty(opts.prototype, callback, descriptor);\n } else {\n opts.prototype[callback] = global.zone.bind(opts.prototype[callback]);\n }\n } else if (opts.prototype[callback]) {\n opts.prototype[callback] = global.zone.bind(opts.prototype[callback]);\n }\n });\n }\n\n return _registerElement.apply(document, [name, opts]);\n };\n}\n\nmodule.exports = {\n apply: apply\n};\n\n}).call(this,typeof global !== \"undefined\" ? global : typeof self !== \"undefined\" ? self : typeof window !== \"undefined\" ? window : {})\n},{\"../utils\":16,\"./define-property\":6}],15:[function(require,module,exports){\n(function (global){\n'use strict';\n\nvar utils = require('../utils');\n\n// we have to patch the instance since the proto is non-configurable\nfunction apply() {\n var WS = global.WebSocket;\n utils.patchEventTargetMethods(WS.prototype);\n global.WebSocket = function(a, b) {\n var socket = arguments.length > 1 ? new WS(a, b) : new WS(a);\n var proxySocket;\n\n // Safari 7.0 has non-configurable own 'onmessage' and friends properties on the socket instance\n var onmessageDesc = Object.getOwnPropertyDescriptor(socket, 'onmessage');\n if (onmessageDesc && onmessageDesc.configurable === false) {\n proxySocket = Object.create(socket);\n ['addEventListener', 'removeEventListener', 'send', 'close'].forEach(function(propName) {\n proxySocket[propName] = function() {\n return socket[propName].apply(socket, arguments);\n };\n });\n } else {\n // we can patch the real socket\n proxySocket = socket;\n }\n\n utils.patchProperties(proxySocket, ['onclose', 'onerror', 'onmessage', 'onopen']);\n\n return proxySocket;\n };\n}\n\nmodule.exports = {\n apply: apply\n};\n\n}).call(this,typeof global !== \"undefined\" ? global : typeof self !== \"undefined\" ? self : typeof window !== \"undefined\" ? window : {})\n},{\"../utils\":16}],16:[function(require,module,exports){\n(function (global){\n'use strict';\n\nvar keys = require('./keys');\n\nfunction bindArguments(args) {\n for (var i = args.length - 1; i >= 0; i--) {\n if (typeof args[i] === 'function') {\n args[i] = global.zone.bind(args[i]);\n }\n }\n return args;\n};\n\nfunction bindArgumentsOnce(args) {\n for (var i = args.length - 1; i >= 0; i--) {\n if (typeof args[i] === 'function') {\n args[i] = global.zone.bindOnce(args[i]);\n }\n }\n return args;\n};\n\nfunction patchPrototype(obj, fnNames) {\n fnNames.forEach(function (name) {\n var delegate = obj[name];\n if (delegate) {\n obj[name] = function () {\n return delegate.apply(this, bindArguments(arguments));\n };\n }\n });\n};\n\nfunction isWebWorker() {\n return (typeof document === \"undefined\");\n}\n\nfunction patchProperty(obj, prop) {\n var desc = Object.getOwnPropertyDescriptor(obj, prop) || {\n enumerable: true,\n configurable: true\n };\n\n // A property descriptor cannot have getter/setter and be writable\n // deleting the writable and value properties avoids this error:\n //\n // TypeError: property descriptors must not specify a value or be writable when a\n // getter or setter has been specified\n delete desc.writable;\n delete desc.value;\n\n // substr(2) cuz 'onclick' -> 'click', etc\n var eventName = prop.substr(2);\n var _prop = '_' + prop;\n\n desc.set = function (fn) {\n if (this[_prop]) {\n this.removeEventListener(eventName, this[_prop]);\n }\n\n if (typeof fn === 'function') {\n this[_prop] = fn;\n this.addEventListener(eventName, fn, false);\n } else {\n this[_prop] = null;\n }\n };\n\n desc.get = function () {\n return this[_prop];\n };\n\n Object.defineProperty(obj, prop, desc);\n};\n\nfunction patchProperties(obj, properties) {\n (properties || (function () {\n var props = [];\n for (var prop in obj) {\n props.push(prop);\n }\n return props;\n }()).\n filter(function (propertyName) {\n return propertyName.substr(0,2) === 'on';\n })).\n forEach(function (eventName) {\n patchProperty(obj, eventName);\n });\n};\n\nvar originalFnKey = keys.create('originalFn');\nvar boundFnsKey = keys.create('boundFns');\n\nfunction patchEventTargetMethods(obj) {\n // This is required for the addEventListener hook on the root zone.\n obj[keys.common.addEventListener] = obj.addEventListener;\n obj.addEventListener = function (eventName, handler, useCapturing) {\n //Ignore special listeners of IE11 & Edge dev tools, see https://github.com/angular/zone.js/issues/150\n if (handler && handler.toString() !== \"[object FunctionWrapper]\") {\n var eventType = eventName + (useCapturing ? '$capturing' : '$bubbling');\n var fn;\n if (handler.handleEvent) {\n // Have to pass in 'handler' reference as an argument here, otherwise it gets clobbered in\n // IE9 by the arguments[1] assignment at end of this function.\n fn = (function(handler) {\n return function() {\n handler.handleEvent.apply(handler, arguments);\n };\n })(handler);\n } else {\n fn = handler;\n }\n\n handler[originalFnKey] = fn;\n handler[boundFnsKey] = handler[boundFnsKey] || {};\n handler[boundFnsKey][eventType] = handler[boundFnsKey][eventType] || zone.bind(fn);\n arguments[1] = handler[boundFnsKey][eventType];\n }\n\n // - Inside a Web Worker, `this` is undefined, the context is `global` (= `self`)\n // - When `addEventListener` is called on the global context in strict mode, `this` is undefined\n // see https://github.com/angular/zone.js/issues/190\n var target = this || global;\n return global.zone.addEventListener.apply(target, arguments);\n };\n\n // This is required for the removeEventListener hook on the root zone.\n obj[keys.common.removeEventListener] = obj.removeEventListener;\n obj.removeEventListener = function (eventName, handler, useCapturing) {\n var eventType = eventName + (useCapturing ? '$capturing' : '$bubbling');\n if (handler && handler[boundFnsKey] && handler[boundFnsKey][eventType]) {\n var _bound = handler[boundFnsKey];\n arguments[1] = _bound[eventType];\n delete _bound[eventType];\n global.zone.dequeueTask(handler[originalFnKey]);\n }\n\n // - Inside a Web Worker, `this` is undefined, the context is `global`\n // - When `addEventListener` is called on the global context in strict mode, `this` is undefined\n // see https://github.com/angular/zone.js/issues/190\n var target = this || global;\n var result = global.zone.removeEventListener.apply(target, arguments);\n return result;\n };\n};\n\nvar originalInstanceKey = keys.create('originalInstance');\n\n// wrap some native API on `window`\nfunction patchClass(className) {\n var OriginalClass = global[className];\n if (!OriginalClass) return;\n\n global[className] = function () {\n var a = bindArguments(arguments);\n switch (a.length) {\n case 0: this[originalInstanceKey] = new OriginalClass(); break;\n case 1: this[originalInstanceKey] = new OriginalClass(a[0]); break;\n case 2: this[originalInstanceKey] = new OriginalClass(a[0], a[1]); break;\n case 3: this[originalInstanceKey] = new OriginalClass(a[0], a[1], a[2]); break;\n case 4: this[originalInstanceKey] = new OriginalClass(a[0], a[1], a[2], a[3]); break;\n default: throw new Error('what are you even doing?');\n }\n };\n\n var instance = new OriginalClass();\n\n var prop;\n for (prop in instance) {\n (function (prop) {\n if (typeof instance[prop] === 'function') {\n global[className].prototype[prop] = function () {\n return this[originalInstanceKey][prop].apply(this[originalInstanceKey], arguments);\n };\n } else {\n Object.defineProperty(global[className].prototype, prop, {\n set: function (fn) {\n if (typeof fn === 'function') {\n this[originalInstanceKey][prop] = global.zone.bind(fn);\n } else {\n this[originalInstanceKey][prop] = fn;\n }\n },\n get: function () {\n return this[originalInstanceKey][prop];\n }\n });\n }\n }(prop));\n }\n\n for (prop in OriginalClass) {\n if (prop !== 'prototype' && OriginalClass.hasOwnProperty(prop)) {\n global[className][prop] = OriginalClass[prop];\n }\n }\n};\n\nmodule.exports = {\n bindArguments: bindArguments,\n bindArgumentsOnce: bindArgumentsOnce,\n patchPrototype: patchPrototype,\n patchProperty: patchProperty,\n patchProperties: patchProperties,\n patchEventTargetMethods: patchEventTargetMethods,\n patchClass: patchClass,\n isWebWorker: isWebWorker\n};\n\n}).call(this,typeof global !== \"undefined\" ? global : typeof self !== \"undefined\" ? self : typeof window !== \"undefined\" ? window : {})\n},{\"./keys\":3}],17:[function(require,module,exports){\n(function (process,global){\n/*!\n * @overview es6-promise - a tiny implementation of Promises/A+.\n * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)\n * @license Licensed under MIT license\n * See https://raw.githubusercontent.com/jakearchibald/es6-promise/master/LICENSE\n * @version 3.0.2\n */\n\n(function() {\n \"use strict\";\n function lib$es6$promise$utils$$objectOrFunction(x) {\n return typeof x === 'function' || (typeof x === 'object' && x !== null);\n }\n\n function lib$es6$promise$utils$$isFunction(x) {\n return typeof x === 'function';\n }\n\n function lib$es6$promise$utils$$isMaybeThenable(x) {\n return typeof x === 'object' && x !== null;\n }\n\n var lib$es6$promise$utils$$_isArray;\n if (!Array.isArray) {\n lib$es6$promise$utils$$_isArray = function (x) {\n return Object.prototype.toString.call(x) === '[object Array]';\n };\n } else {\n lib$es6$promise$utils$$_isArray = Array.isArray;\n }\n\n var lib$es6$promise$utils$$isArray = lib$es6$promise$utils$$_isArray;\n var lib$es6$promise$asap$$len = 0;\n var lib$es6$promise$asap$$toString = {}.toString;\n var lib$es6$promise$asap$$vertxNext;\n var lib$es6$promise$asap$$customSchedulerFn;\n\n var lib$es6$promise$asap$$asap = function asap(callback, arg) {\n lib$es6$promise$asap$$queue[lib$es6$promise$asap$$len] = callback;\n lib$es6$promise$asap$$queue[lib$es6$promise$asap$$len + 1] = arg;\n lib$es6$promise$asap$$len += 2;\n if (lib$es6$promise$asap$$len === 2) {\n // If len is 2, that means that we need to schedule an async flush.\n // If additional callbacks are queued before the queue is flushed, they\n // will be processed by this flush that we are scheduling.\n if (lib$es6$promise$asap$$customSchedulerFn) {\n lib$es6$promise$asap$$customSchedulerFn(lib$es6$promise$asap$$flush);\n } else {\n lib$es6$promise$asap$$scheduleFlush();\n }\n }\n }\n\n function lib$es6$promise$asap$$setScheduler(scheduleFn) {\n lib$es6$promise$asap$$customSchedulerFn = scheduleFn;\n }\n\n function lib$es6$promise$asap$$setAsap(asapFn) {\n lib$es6$promise$asap$$asap = asapFn;\n }\n\n var lib$es6$promise$asap$$browserWindow = (typeof window !== 'undefined') ? window : undefined;\n var lib$es6$promise$asap$$browserGlobal = lib$es6$promise$asap$$browserWindow || {};\n var lib$es6$promise$asap$$BrowserMutationObserver = lib$es6$promise$asap$$browserGlobal.MutationObserver || lib$es6$promise$asap$$browserGlobal.WebKitMutationObserver;\n var lib$es6$promise$asap$$isNode = typeof process !== 'undefined' && {}.toString.call(process) === '[object process]';\n\n // test for web worker but not in IE10\n var lib$es6$promise$asap$$isWorker = typeof Uint8ClampedArray !== 'undefined' &&\n typeof importScripts !== 'undefined' &&\n typeof MessageChannel !== 'undefined';\n\n // node\n function lib$es6$promise$asap$$useNextTick() {\n // node version 0.10.x displays a deprecation warning when nextTick is used recursively\n // see https://github.com/cujojs/when/issues/410 for details\n return function() {\n process.nextTick(lib$es6$promise$asap$$flush);\n };\n }\n\n // vertx\n function lib$es6$promise$asap$$useVertxTimer() {\n return function() {\n lib$es6$promise$asap$$vertxNext(lib$es6$promise$asap$$flush);\n };\n }\n\n function lib$es6$promise$asap$$useMutationObserver() {\n var iterations = 0;\n var observer = new lib$es6$promise$asap$$BrowserMutationObserver(lib$es6$promise$asap$$flush);\n var node = document.createTextNode('');\n observer.observe(node, { characterData: true });\n\n return function() {\n node.data = (iterations = ++iterations % 2);\n };\n }\n\n // web worker\n function lib$es6$promise$asap$$useMessageChannel() {\n var channel = new MessageChannel();\n channel.port1.onmessage = lib$es6$promise$asap$$flush;\n return function () {\n channel.port2.postMessage(0);\n };\n }\n\n function lib$es6$promise$asap$$useSetTimeout() {\n return function() {\n setTimeout(lib$es6$promise$asap$$flush, 1);\n };\n }\n\n var lib$es6$promise$asap$$queue = new Array(1000);\n function lib$es6$promise$asap$$flush() {\n for (var i = 0; i < lib$es6$promise$asap$$len; i+=2) {\n var callback = lib$es6$promise$asap$$queue[i];\n var arg = lib$es6$promise$asap$$queue[i+1];\n\n callback(arg);\n\n lib$es6$promise$asap$$queue[i] = undefined;\n lib$es6$promise$asap$$queue[i+1] = undefined;\n }\n\n lib$es6$promise$asap$$len = 0;\n }\n\n function lib$es6$promise$asap$$attemptVertx() {\n try {\n var r = require;\n var vertx = r('vertx');\n lib$es6$promise$asap$$vertxNext = vertx.runOnLoop || vertx.runOnContext;\n return lib$es6$promise$asap$$useVertxTimer();\n } catch(e) {\n return lib$es6$promise$asap$$useSetTimeout();\n }\n }\n\n var lib$es6$promise$asap$$scheduleFlush;\n // Decide what async method to use to triggering processing of queued callbacks:\n if (lib$es6$promise$asap$$isNode) {\n lib$es6$promise$asap$$scheduleFlush = lib$es6$promise$asap$$useNextTick();\n } else if (lib$es6$promise$asap$$BrowserMutationObserver) {\n lib$es6$promise$asap$$scheduleFlush = lib$es6$promise$asap$$useMutationObserver();\n } else if (lib$es6$promise$asap$$isWorker) {\n lib$es6$promise$asap$$scheduleFlush = lib$es6$promise$asap$$useMessageChannel();\n } else if (lib$es6$promise$asap$$browserWindow === undefined && typeof require === 'function') {\n lib$es6$promise$asap$$scheduleFlush = lib$es6$promise$asap$$attemptVertx();\n } else {\n lib$es6$promise$asap$$scheduleFlush = lib$es6$promise$asap$$useSetTimeout();\n }\n\n function lib$es6$promise$$internal$$noop() {}\n\n var lib$es6$promise$$internal$$PENDING = void 0;\n var lib$es6$promise$$internal$$FULFILLED = 1;\n var lib$es6$promise$$internal$$REJECTED = 2;\n\n var lib$es6$promise$$internal$$GET_THEN_ERROR = new lib$es6$promise$$internal$$ErrorObject();\n\n function lib$es6$promise$$internal$$selfFulfillment() {\n return new TypeError(\"You cannot resolve a promise with itself\");\n }\n\n function lib$es6$promise$$internal$$cannotReturnOwn() {\n return new TypeError('A promises callback cannot return that same promise.');\n }\n\n function lib$es6$promise$$internal$$getThen(promise) {\n try {\n return promise.then;\n } catch(error) {\n lib$es6$promise$$internal$$GET_THEN_ERROR.error = error;\n return lib$es6$promise$$internal$$GET_THEN_ERROR;\n }\n }\n\n function lib$es6$promise$$internal$$tryThen(then, value, fulfillmentHandler, rejectionHandler) {\n try {\n then.call(value, fulfillmentHandler, rejectionHandler);\n } catch(e) {\n return e;\n }\n }\n\n function lib$es6$promise$$internal$$handleForeignThenable(promise, thenable, then) {\n lib$es6$promise$asap$$asap(function(promise) {\n var sealed = false;\n var error = lib$es6$promise$$internal$$tryThen(then, thenable, function(value) {\n if (sealed) { return; }\n sealed = true;\n if (thenable !== value) {\n lib$es6$promise$$internal$$resolve(promise, value);\n } else {\n lib$es6$promise$$internal$$fulfill(promise, value);\n }\n }, function(reason) {\n if (sealed) { return; }\n sealed = true;\n\n lib$es6$promise$$internal$$reject(promise, reason);\n }, 'Settle: ' + (promise._label || ' unknown promise'));\n\n if (!sealed && error) {\n sealed = true;\n lib$es6$promise$$internal$$reject(promise, error);\n }\n }, promise);\n }\n\n function lib$es6$promise$$internal$$handleOwnThenable(promise, thenable) {\n if (thenable._state === lib$es6$promise$$internal$$FULFILLED) {\n lib$es6$promise$$internal$$fulfill(promise, thenable._result);\n } else if (thenable._state === lib$es6$promise$$internal$$REJECTED) {\n lib$es6$promise$$internal$$reject(promise, thenable._result);\n } else {\n lib$es6$promise$$internal$$subscribe(thenable, undefined, function(value) {\n lib$es6$promise$$internal$$resolve(promise, value);\n }, function(reason) {\n lib$es6$promise$$internal$$reject(promise, reason);\n });\n }\n }\n\n function lib$es6$promise$$internal$$handleMaybeThenable(promise, maybeThenable) {\n if (maybeThenable.constructor === promise.constructor) {\n lib$es6$promise$$internal$$handleOwnThenable(promise, maybeThenable);\n } else {\n var then = lib$es6$promise$$internal$$getThen(maybeThenable);\n\n if (then === lib$es6$promise$$internal$$GET_THEN_ERROR) {\n lib$es6$promise$$internal$$reject(promise, lib$es6$promise$$internal$$GET_THEN_ERROR.error);\n } else if (then === undefined) {\n lib$es6$promise$$internal$$fulfill(promise, maybeThenable);\n } else if (lib$es6$promise$utils$$isFunction(then)) {\n lib$es6$promise$$internal$$handleForeignThenable(promise, maybeThenable, then);\n } else {\n lib$es6$promise$$internal$$fulfill(promise, maybeThenable);\n }\n }\n }\n\n function lib$es6$promise$$internal$$resolve(promise, value) {\n if (promise === value) {\n lib$es6$promise$$internal$$reject(promise, lib$es6$promise$$internal$$selfFulfillment());\n } else if (lib$es6$promise$utils$$objectOrFunction(value)) {\n lib$es6$promise$$internal$$handleMaybeThenable(promise, value);\n } else {\n lib$es6$promise$$internal$$fulfill(promise, value);\n }\n }\n\n function lib$es6$promise$$internal$$publishRejection(promise) {\n if (promise._onerror) {\n promise._onerror(promise._result);\n }\n\n lib$es6$promise$$internal$$publish(promise);\n }\n\n function lib$es6$promise$$internal$$fulfill(promise, value) {\n if (promise._state !== lib$es6$promise$$internal$$PENDING) { return; }\n\n promise._result = value;\n promise._state = lib$es6$promise$$internal$$FULFILLED;\n\n if (promise._subscribers.length !== 0) {\n lib$es6$promise$asap$$asap(lib$es6$promise$$internal$$publish, promise);\n }\n }\n\n function lib$es6$promise$$internal$$reject(promise, reason) {\n if (promise._state !== lib$es6$promise$$internal$$PENDING) { return; }\n promise._state = lib$es6$promise$$internal$$REJECTED;\n promise._result = reason;\n\n lib$es6$promise$asap$$asap(lib$es6$promise$$internal$$publishRejection, promise);\n }\n\n function lib$es6$promise$$internal$$subscribe(parent, child, onFulfillment, onRejection) {\n var subscribers = parent._subscribers;\n var length = subscribers.length;\n\n parent._onerror = null;\n\n subscribers[length] = child;\n subscribers[length + lib$es6$promise$$internal$$FULFILLED] = onFulfillment;\n subscribers[length + lib$es6$promise$$internal$$REJECTED] = onRejection;\n\n if (length === 0 && parent._state) {\n lib$es6$promise$asap$$asap(lib$es6$promise$$internal$$publish, parent);\n }\n }\n\n function lib$es6$promise$$internal$$publish(promise) {\n var subscribers = promise._subscribers;\n var settled = promise._state;\n\n if (subscribers.length === 0) { return; }\n\n var child, callback, detail = promise._result;\n\n for (var i = 0; i < subscribers.length; i += 3) {\n child = subscribers[i];\n callback = subscribers[i + settled];\n\n if (child) {\n lib$es6$promise$$internal$$invokeCallback(settled, child, callback, detail);\n } else {\n callback(detail);\n }\n }\n\n promise._subscribers.length = 0;\n }\n\n function lib$es6$promise$$internal$$ErrorObject() {\n this.error = null;\n }\n\n var lib$es6$promise$$internal$$TRY_CATCH_ERROR = new lib$es6$promise$$internal$$ErrorObject();\n\n function lib$es6$promise$$internal$$tryCatch(callback, detail) {\n try {\n return callback(detail);\n } catch(e) {\n lib$es6$promise$$internal$$TRY_CATCH_ERROR.error = e;\n return lib$es6$promise$$internal$$TRY_CATCH_ERROR;\n }\n }\n\n function lib$es6$promise$$internal$$invokeCallback(settled, promise, callback, detail) {\n var hasCallback = lib$es6$promise$utils$$isFunction(callback),\n value, error, succeeded, failed;\n\n if (hasCallback) {\n value = lib$es6$promise$$internal$$tryCatch(callback, detail);\n\n if (value === lib$es6$promise$$internal$$TRY_CATCH_ERROR) {\n failed = true;\n error = value.error;\n value = null;\n } else {\n succeeded = true;\n }\n\n if (promise === value) {\n lib$es6$promise$$internal$$reject(promise, lib$es6$promise$$internal$$cannotReturnOwn());\n return;\n }\n\n } else {\n value = detail;\n succeeded = true;\n }\n\n if (promise._state !== lib$es6$promise$$internal$$PENDING) {\n // noop\n } else if (hasCallback && succeeded) {\n lib$es6$promise$$internal$$resolve(promise, value);\n } else if (failed) {\n lib$es6$promise$$internal$$reject(promise, error);\n } else if (settled === lib$es6$promise$$internal$$FULFILLED) {\n lib$es6$promise$$internal$$fulfill(promise, value);\n } else if (settled === lib$es6$promise$$internal$$REJECTED) {\n lib$es6$promise$$internal$$reject(promise, value);\n }\n }\n\n function lib$es6$promise$$internal$$initializePromise(promise, resolver) {\n try {\n resolver(function resolvePromise(value){\n lib$es6$promise$$internal$$resolve(promise, value);\n }, function rejectPromise(reason) {\n lib$es6$promise$$internal$$reject(promise, reason);\n });\n } catch(e) {\n lib$es6$promise$$internal$$reject(promise, e);\n }\n }\n\n function lib$es6$promise$enumerator$$Enumerator(Constructor, input) {\n var enumerator = this;\n\n enumerator._instanceConstructor = Constructor;\n enumerator.promise = new Constructor(lib$es6$promise$$internal$$noop);\n\n if (enumerator._validateInput(input)) {\n enumerator._input = input;\n enumerator.length = input.length;\n enumerator._remaining = input.length;\n\n enumerator._init();\n\n if (enumerator.length === 0) {\n lib$es6$promise$$internal$$fulfill(enumerator.promise, enumerator._result);\n } else {\n enumerator.length = enumerator.length || 0;\n enumerator._enumerate();\n if (enumerator._remaining === 0) {\n lib$es6$promise$$internal$$fulfill(enumerator.promise, enumerator._result);\n }\n }\n } else {\n lib$es6$promise$$internal$$reject(enumerator.promise, enumerator._validationError());\n }\n }\n\n lib$es6$promise$enumerator$$Enumerator.prototype._validateInput = function(input) {\n return lib$es6$promise$utils$$isArray(input);\n };\n\n lib$es6$promise$enumerator$$Enumerator.prototype._validationError = function() {\n return new Error('Array Methods must be provided an Array');\n };\n\n lib$es6$promise$enumerator$$Enumerator.prototype._init = function() {\n this._result = new Array(this.length);\n };\n\n var lib$es6$promise$enumerator$$default = lib$es6$promise$enumerator$$Enumerator;\n\n lib$es6$promise$enumerator$$Enumerator.prototype._enumerate = function() {\n var enumerator = this;\n\n var length = enumerator.length;\n var promise = enumerator.promise;\n var input = enumerator._input;\n\n for (var i = 0; promise._state === lib$es6$promise$$internal$$PENDING && i < length; i++) {\n enumerator._eachEntry(input[i], i);\n }\n };\n\n lib$es6$promise$enumerator$$Enumerator.prototype._eachEntry = function(entry, i) {\n var enumerator = this;\n var c = enumerator._instanceConstructor;\n\n if (lib$es6$promise$utils$$isMaybeThenable(entry)) {\n if (entry.constructor === c && entry._state !== lib$es6$promise$$internal$$PENDING) {\n entry._onerror = null;\n enumerator._settledAt(entry._state, i, entry._result);\n } else {\n enumerator._willSettleAt(c.resolve(entry), i);\n }\n } else {\n enumerator._remaining--;\n enumerator._result[i] = entry;\n }\n };\n\n lib$es6$promise$enumerator$$Enumerator.prototype._settledAt = function(state, i, value) {\n var enumerator = this;\n var promise = enumerator.promise;\n\n if (promise._state === lib$es6$promise$$internal$$PENDING) {\n enumerator._remaining--;\n\n if (state === lib$es6$promise$$internal$$REJECTED) {\n lib$es6$promise$$internal$$reject(promise, value);\n } else {\n enumerator._result[i] = value;\n }\n }\n\n if (enumerator._remaining === 0) {\n lib$es6$promise$$internal$$fulfill(promise, enumerator._result);\n }\n };\n\n lib$es6$promise$enumerator$$Enumerator.prototype._willSettleAt = function(promise, i) {\n var enumerator = this;\n\n lib$es6$promise$$internal$$subscribe(promise, undefined, function(value) {\n enumerator._settledAt(lib$es6$promise$$internal$$FULFILLED, i, value);\n }, function(reason) {\n enumerator._settledAt(lib$es6$promise$$internal$$REJECTED, i, reason);\n });\n };\n function lib$es6$promise$promise$all$$all(entries) {\n return new lib$es6$promise$enumerator$$default(this, entries).promise;\n }\n var lib$es6$promise$promise$all$$default = lib$es6$promise$promise$all$$all;\n function lib$es6$promise$promise$race$$race(entries) {\n /*jshint validthis:true */\n var Constructor = this;\n\n var promise = new Constructor(lib$es6$promise$$internal$$noop);\n\n if (!lib$es6$promise$utils$$isArray(entries)) {\n lib$es6$promise$$internal$$reject(promise, new TypeError('You must pass an array to race.'));\n return promise;\n }\n\n var length = entries.length;\n\n function onFulfillment(value) {\n lib$es6$promise$$internal$$resolve(promise, value);\n }\n\n function onRejection(reason) {\n lib$es6$promise$$internal$$reject(promise, reason);\n }\n\n for (var i = 0; promise._state === lib$es6$promise$$internal$$PENDING && i < length; i++) {\n lib$es6$promise$$internal$$subscribe(Constructor.resolve(entries[i]), undefined, onFulfillment, onRejection);\n }\n\n return promise;\n }\n var lib$es6$promise$promise$race$$default = lib$es6$promise$promise$race$$race;\n function lib$es6$promise$promise$resolve$$resolve(object) {\n /*jshint validthis:true */\n var Constructor = this;\n\n if (object && typeof object === 'object' && object.constructor === Constructor) {\n return object;\n }\n\n var promise = new Constructor(lib$es6$promise$$internal$$noop);\n lib$es6$promise$$internal$$resolve(promise, object);\n return promise;\n }\n var lib$es6$promise$promise$resolve$$default = lib$es6$promise$promise$resolve$$resolve;\n function lib$es6$promise$promise$reject$$reject(reason) {\n /*jshint validthis:true */\n var Constructor = this;\n var promise = new Constructor(lib$es6$promise$$internal$$noop);\n lib$es6$promise$$internal$$reject(promise, reason);\n return promise;\n }\n var lib$es6$promise$promise$reject$$default = lib$es6$promise$promise$reject$$reject;\n\n var lib$es6$promise$promise$$counter = 0;\n\n function lib$es6$promise$promise$$needsResolver() {\n throw new TypeError('You must pass a resolver function as the first argument to the promise constructor');\n }\n\n function lib$es6$promise$promise$$needsNew() {\n throw new TypeError(\"Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.\");\n }\n\n var lib$es6$promise$promise$$default = lib$es6$promise$promise$$Promise;\n /**\n Promise objects represent the eventual result of an asynchronous operation. The\n primary way of interacting with a promise is through its `then` method, which\n registers callbacks to receive either a promise's eventual value or the reason\n why the promise cannot be fulfilled.\n\n Terminology\n -----------\n\n - `promise` is an object or function with a `then` method whose behavior conforms to this specification.\n - `thenable` is an object or function that defines a `then` method.\n - `value` is any legal JavaScript value (including undefined, a thenable, or a promise).\n - `exception` is a value that is thrown using the throw statement.\n - `reason` is a value that indicates why a promise was rejected.\n - `settled` the final resting state of a promise, fulfilled or rejected.\n\n A promise can be in one of three states: pending, fulfilled, or rejected.\n\n Promises that are fulfilled have a fulfillment value and are in the fulfilled\n state. Promises that are rejected have a rejection reason and are in the\n rejected state. A fulfillment value is never a thenable.\n\n Promises can also be said to *resolve* a value. If this value is also a\n promise, then the original promise's settled state will match the value's\n settled state. So a promise that *resolves* a promise that rejects will\n itself reject, and a promise that *resolves* a promise that fulfills will\n itself fulfill.\n\n\n Basic Usage:\n ------------\n\n ```js\n var promise = new Promise(function(resolve, reject) {\n // on success\n resolve(value);\n\n // on failure\n reject(reason);\n });\n\n promise.then(function(value) {\n // on fulfillment\n }, function(reason) {\n // on rejection\n });\n ```\n\n Advanced Usage:\n ---------------\n\n Promises shine when abstracting away asynchronous interactions such as\n `XMLHttpRequest`s.\n\n ```js\n function getJSON(url) {\n return new Promise(function(resolve, reject){\n var xhr = new XMLHttpRequest();\n\n xhr.open('GET', url);\n xhr.onreadystatechange = handler;\n xhr.responseType = 'json';\n xhr.setRequestHeader('Accept', 'application/json');\n xhr.send();\n\n function handler() {\n if (this.readyState === this.DONE) {\n if (this.status === 200) {\n resolve(this.response);\n } else {\n reject(new Error('getJSON: `' + url + '` failed with status: [' + this.status + ']'));\n }\n }\n };\n });\n }\n\n getJSON('/posts.json').then(function(json) {\n // on fulfillment\n }, function(reason) {\n // on rejection\n });\n ```\n\n Unlike callbacks, promises are great composable primitives.\n\n ```js\n Promise.all([\n getJSON('/posts'),\n getJSON('/comments')\n ]).then(function(values){\n values[0] // => postsJSON\n values[1] // => commentsJSON\n\n return values;\n });\n ```\n\n @class Promise\n @param {function} resolver\n Useful for tooling.\n @constructor\n */\n function lib$es6$promise$promise$$Promise(resolver) {\n this._id = lib$es6$promise$promise$$counter++;\n this._state = undefined;\n this._result = undefined;\n this._subscribers = [];\n\n if (lib$es6$promise$$internal$$noop !== resolver) {\n if (!lib$es6$promise$utils$$isFunction(resolver)) {\n lib$es6$promise$promise$$needsResolver();\n }\n\n if (!(this instanceof lib$es6$promise$promise$$Promise)) {\n lib$es6$promise$promise$$needsNew();\n }\n\n lib$es6$promise$$internal$$initializePromise(this, resolver);\n }\n }\n\n lib$es6$promise$promise$$Promise.all = lib$es6$promise$promise$all$$default;\n lib$es6$promise$promise$$Promise.race = lib$es6$promise$promise$race$$default;\n lib$es6$promise$promise$$Promise.resolve = lib$es6$promise$promise$resolve$$default;\n lib$es6$promise$promise$$Promise.reject = lib$es6$promise$promise$reject$$default;\n lib$es6$promise$promise$$Promise._setScheduler = lib$es6$promise$asap$$setScheduler;\n lib$es6$promise$promise$$Promise._setAsap = lib$es6$promise$asap$$setAsap;\n lib$es6$promise$promise$$Promise._asap = lib$es6$promise$asap$$asap;\n\n lib$es6$promise$promise$$Promise.prototype = {\n constructor: lib$es6$promise$promise$$Promise,\n\n /**\n The primary way of interacting with a promise is through its `then` method,\n which registers callbacks to receive either a promise's eventual value or the\n reason why the promise cannot be fulfilled.\n\n ```js\n findUser().then(function(user){\n // user is available\n }, function(reason){\n // user is unavailable, and you are given the reason why\n });\n ```\n\n Chaining\n --------\n\n The return value of `then` is itself a promise. This second, 'downstream'\n promise is resolved with the return value of the first promise's fulfillment\n or rejection handler, or rejected if the handler throws an exception.\n\n ```js\n findUser().then(function (user) {\n return user.name;\n }, function (reason) {\n return 'default name';\n }).then(function (userName) {\n // If `findUser` fulfilled, `userName` will be the user's name, otherwise it\n // will be `'default name'`\n });\n\n findUser().then(function (user) {\n throw new Error('Found user, but still unhappy');\n }, function (reason) {\n throw new Error('`findUser` rejected and we're unhappy');\n }).then(function (value) {\n // never reached\n }, function (reason) {\n // if `findUser` fulfilled, `reason` will be 'Found user, but still unhappy'.\n // If `findUser` rejected, `reason` will be '`findUser` rejected and we're unhappy'.\n });\n ```\n If the downstream promise does not specify a rejection handler, rejection reasons will be propagated further downstream.\n\n ```js\n findUser().then(function (user) {\n throw new PedagogicalException('Upstream error');\n }).then(function (value) {\n // never reached\n }).then(function (value) {\n // never reached\n }, function (reason) {\n // The `PedgagocialException` is propagated all the way down to here\n });\n ```\n\n Assimilation\n ------------\n\n Sometimes the value you want to propagate to a downstream promise can only be\n retrieved asynchronously. This can be achieved by returning a promise in the\n fulfillment or rejection handler. The downstream promise will then be pending\n until the returned promise is settled. This is called *assimilation*.\n\n ```js\n findUser().then(function (user) {\n return findCommentsByAuthor(user);\n }).then(function (comments) {\n // The user's comments are now available\n });\n ```\n\n If the assimliated promise rejects, then the downstream promise will also reject.\n\n ```js\n findUser().then(function (user) {\n return findCommentsByAuthor(user);\n }).then(function (comments) {\n // If `findCommentsByAuthor` fulfills, we'll have the value here\n }, function (reason) {\n // If `findCommentsByAuthor` rejects, we'll have the reason here\n });\n ```\n\n Simple Example\n --------------\n\n Synchronous Example\n\n ```javascript\n var result;\n\n try {\n result = findResult();\n // success\n } catch(reason) {\n // failure\n }\n ```\n\n Errback Example\n\n ```js\n findResult(function(result, err){\n if (err) {\n // failure\n } else {\n // success\n }\n });\n ```\n\n Promise Example;\n\n ```javascript\n findResult().then(function(result){\n // success\n }, function(reason){\n // failure\n });\n ```\n\n Advanced Example\n --------------\n\n Synchronous Example\n\n ```javascript\n var author, books;\n\n try {\n author = findAuthor();\n books = findBooksByAuthor(author);\n // success\n } catch(reason) {\n // failure\n }\n ```\n\n Errback Example\n\n ```js\n\n function foundBooks(books) {\n\n }\n\n function failure(reason) {\n\n }\n\n findAuthor(function(author, err){\n if (err) {\n failure(err);\n // failure\n } else {\n try {\n findBoooksByAuthor(author, function(books, err) {\n if (err) {\n failure(err);\n } else {\n try {\n foundBooks(books);\n } catch(reason) {\n failure(reason);\n }\n }\n });\n } catch(error) {\n failure(err);\n }\n // success\n }\n });\n ```\n\n Promise Example;\n\n ```javascript\n findAuthor().\n then(findBooksByAuthor).\n then(function(books){\n // found books\n }).catch(function(reason){\n // something went wrong\n });\n ```\n\n @method then\n @param {Function} onFulfilled\n @param {Function} onRejected\n Useful for tooling.\n @return {Promise}\n */\n then: function(onFulfillment, onRejection) {\n var parent = this;\n var state = parent._state;\n\n if (state === lib$es6$promise$$internal$$FULFILLED && !onFulfillment || state === lib$es6$promise$$internal$$REJECTED && !onRejection) {\n return this;\n }\n\n var child = new this.constructor(lib$es6$promise$$internal$$noop);\n var result = parent._result;\n\n if (state) {\n var callback = arguments[state - 1];\n lib$es6$promise$asap$$asap(function(){\n lib$es6$promise$$internal$$invokeCallback(state, child, callback, result);\n });\n } else {\n lib$es6$promise$$internal$$subscribe(parent, child, onFulfillment, onRejection);\n }\n\n return child;\n },\n\n /**\n `catch` is simply sugar for `then(undefined, onRejection)` which makes it the same\n as the catch block of a try/catch statement.\n\n ```js\n function findAuthor(){\n throw new Error('couldn't find that author');\n }\n\n // synchronous\n try {\n findAuthor();\n } catch(reason) {\n // something went wrong\n }\n\n // async with promises\n findAuthor().catch(function(reason){\n // something went wrong\n });\n ```\n\n @method catch\n @param {Function} onRejection\n Useful for tooling.\n @return {Promise}\n */\n 'catch': function(onRejection) {\n return this.then(null, onRejection);\n }\n };\n function lib$es6$promise$polyfill$$polyfill() {\n var local;\n\n if (typeof global !== 'undefined') {\n local = global;\n } else if (typeof self !== 'undefined') {\n local = self;\n } else {\n try {\n local = Function('return this')();\n } catch (e) {\n throw new Error('polyfill failed because global object is unavailable in this environment');\n }\n }\n\n var P = local.Promise;\n\n if (P && Object.prototype.toString.call(P.resolve()) === '[object Promise]' && !P.cast) {\n return;\n }\n\n local.Promise = lib$es6$promise$promise$$default;\n }\n var lib$es6$promise$polyfill$$default = lib$es6$promise$polyfill$$polyfill;\n\n var lib$es6$promise$umd$$ES6Promise = {\n 'Promise': lib$es6$promise$promise$$default,\n 'polyfill': lib$es6$promise$polyfill$$default\n };\n\n /* global define:true module:true window: true */\n if (typeof define === 'function' && define['amd']) {\n define(function() { return lib$es6$promise$umd$$ES6Promise; });\n } else if (typeof module !== 'undefined' && module['exports']) {\n module['exports'] = lib$es6$promise$umd$$ES6Promise;\n } else if (typeof this !== 'undefined') {\n this['ES6Promise'] = lib$es6$promise$umd$$ES6Promise;\n }\n\n lib$es6$promise$polyfill$$default();\n}).call(this);\n\n\n}).call(this,{},typeof global !== \"undefined\" ? global : typeof self !== \"undefined\" ? self : typeof window !== \"undefined\" ? window : {})\n},{}]},{},[1]);\n","/*! *****************************************************************************\r\nCopyright (C) Microsoft. All rights reserved.\r\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use \r\nthis file except in compliance with the License. You may obtain a copy of the \r\nLicense at http://www.apache.org/licenses/LICENSE-2.0 \r\n\r\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, \r\nMERCHANTABLITY OR NON-INFRINGEMENT. \r\n\r\nSee the Apache Version 2.0 License for specific language governing permissions\r\nand limitations under the License.\r\n***************************************************************************** */\r\n\"use strict\";\r\n\r\nmodule Reflect {\r\n declare var global: any;\r\n declare var WorkerGlobalScope: any;\r\n declare var module: any;\r\n declare var crypto: Crypto;\r\n declare var require: Function;\r\n\r\n // Load global or shim versions of Map, Set, and WeakMap\r\n const functionPrototype = Object.getPrototypeOf(Function);\r\n const _Map: typeof Map = typeof Map === \"function\" ? Map : CreateMapPolyfill();\r\n const _Set: typeof Set = typeof Set === \"function\" ? Set : CreateSetPolyfill();\r\n const _WeakMap: typeof WeakMap = typeof WeakMap === \"function\" ? WeakMap : CreateWeakMapPolyfill();\r\n \r\n // [[Metadata]] internal slot\r\n const __Metadata__ = new _WeakMap>>();\r\n\r\n /**\r\n * Applies a set of decorators to a target object.\r\n * @param decorators An array of decorators.\r\n * @param target The target object.\r\n * @returns The result of applying the provided decorators.\r\n * @remarks Decorators are applied in reverse order of their positions in the array.\r\n * @example\r\n *\r\n * class C { }\r\n *\r\n * // constructor\r\n * C = Reflect.decorate(decoratorsArray, C);\r\n *\r\n */\r\n export function decorate(decorators: ClassDecorator[], target: Function): Function;\r\n\r\n /**\r\n * Applies a set of decorators to a property of a target object.\r\n * @param decorators An array of decorators.\r\n * @param target The target object.\r\n * @param targetKey The property key to decorate.\r\n * @param descriptor A property descriptor \r\n * @remarks Decorators are applied in reverse order.\r\n * @example\r\n *\r\n * class C {\r\n * // property declarations are not part of ES6, though they are valid in TypeScript:\r\n * // static staticProperty; \r\n * // property;\r\n * \r\n * static staticMethod() { }\r\n * method() { }\r\n * }\r\n *\r\n * // property (on constructor)\r\n * Reflect.decorate(decoratorsArray, C, \"staticProperty\");\r\n *\r\n * // property (on prototype)\r\n * Reflect.decorate(decoratorsArray, C.prototype, \"property\");\r\n *\r\n * // method (on constructor)\r\n * Object.defineProperty(C, \"staticMethod\", \r\n * Reflect.decorate(decoratorsArray, C, \"staticMethod\", \r\n * Object.getOwnPropertyDescriptor(C, \"staticMethod\")));\r\n *\r\n * // method (on prototype)\r\n * Object.defineProperty(C.prototype, \"method\", \r\n * Reflect.decorate(decoratorsArray, C.prototype, \"method\", \r\n * Object.getOwnPropertyDescriptor(C.prototype, \"method\")));\r\n *\r\n */\r\n export function decorate(decorators: (PropertyDecorator | MethodDecorator)[], target: Object, targetKey: string | symbol, descriptor?: PropertyDescriptor): PropertyDescriptor;\r\n\r\n /**\r\n * Applies a set of decorators to a property of a target object.\r\n * @param decorators An array of decorators.\r\n * @param target The target object.\r\n * @param targetKey (Optional) The property key to decorate.\r\n * @param targetDescriptor (Optional) The property descriptor for the target key\r\n * @remarks Decorators are applied in reverse order.\r\n * @example\r\n *\r\n * class C {\r\n * // property declarations are not part of ES6, though they are valid in TypeScript:\r\n * // static staticProperty; \r\n * // property;\r\n *\r\n * constructor(p) { }\r\n * static staticMethod(p) { }\r\n * method(p) { } \r\n * }\r\n *\r\n * // constructor\r\n * C = Reflect.decorate(decoratorsArray, C);\r\n *\r\n * // property (on constructor)\r\n * Reflect.decorate(decoratorsArray, C, \"staticProperty\");\r\n *\r\n * // property (on prototype)\r\n * Reflect.decorate(decoratorsArray, C.prototype, \"property\");\r\n *\r\n * // method (on constructor)\r\n * Object.defineProperty(C, \"staticMethod\", \r\n * Reflect.decorate(decoratorsArray, C, \"staticMethod\", \r\n * Object.getOwnPropertyDescriptor(C, \"staticMethod\")));\r\n *\r\n * // method (on prototype)\r\n * Object.defineProperty(C.prototype, \"method\", \r\n * Reflect.decorate(decoratorsArray, C.prototype, \"method\", \r\n * Object.getOwnPropertyDescriptor(C.prototype, \"method\")));\r\n *\r\n */\r\n export function decorate(decorators: (ClassDecorator | MethodDecorator | PropertyDecorator)[], target: Object, targetKey?: string | symbol, targetDescriptor?: PropertyDescriptor): any {\r\n if (!IsUndefined(targetDescriptor)) {\r\n if (!IsArray(decorators)) {\r\n throw new TypeError();\r\n }\r\n else if (!IsObject(target)) {\r\n throw new TypeError();\r\n }\r\n else if (IsUndefined(targetKey)) {\r\n throw new TypeError();\r\n }\r\n else if (!IsObject(targetDescriptor)) {\r\n throw new TypeError();\r\n }\r\n\r\n targetKey = ToPropertyKey(targetKey);\r\n return DecoratePropertyWithDescriptor(decorators, target, targetKey, targetDescriptor);\r\n }\r\n else if (!IsUndefined(targetKey)) {\r\n if (!IsArray(decorators)) {\r\n throw new TypeError();\r\n }\r\n else if (!IsObject(target)) {\r\n throw new TypeError();\r\n }\r\n\r\n targetKey = ToPropertyKey(targetKey);\r\n return DecoratePropertyWithoutDescriptor(decorators, target, targetKey);\r\n }\r\n else {\r\n if (!IsArray(decorators)) {\r\n throw new TypeError();\r\n }\r\n else if (!IsConstructor(target)) {\r\n throw new TypeError();\r\n }\r\n\r\n return DecorateConstructor(decorators, target);\r\n }\r\n }\r\n\r\n /**\r\n * A default metadata decorator factory that can be used on a class, class member, or parameter.\r\n * @param metadataKey The key for the metadata entry.\r\n * @param metadataValue The value for the metadata entry.\r\n * @returns A decorator function.\r\n * @remarks \r\n * If `metadataKey` is already defined for the target and target key, the \r\n * metadataValue for that key will be overwritten.\r\n * @example\r\n *\r\n * // constructor\r\n * @Reflect.metadata(key, value)\r\n * class C {\r\n * }\r\n *\r\n * // property (on constructor, TypeScript only)\r\n * class C {\r\n * @Reflect.metadata(key, value)\r\n * static staticProperty;\r\n * }\r\n *\r\n * // property (on prototype, TypeScript only)\r\n * class C {\r\n * @Reflect.metadata(key, value)\r\n * property;\r\n * }\r\n *\r\n * // method (on constructor)\r\n * class C {\r\n * @Reflect.metadata(key, value)\r\n * static staticMethod() { }\r\n * }\r\n *\r\n * // method (on prototype)\r\n * class C {\r\n * @Reflect.metadata(key, value)\r\n * method() { }\r\n * }\r\n *\r\n */\r\n export function metadata(metadataKey: any, metadataValue: any) {\r\n function decorator(target: Function): void;\r\n function decorator(target: Object, targetKey: string | symbol): void;\r\n function decorator(target: Object, targetKey?: string | symbol): void {\r\n if (!IsUndefined(targetKey)) {\r\n if (!IsObject(target)) {\r\n throw new TypeError();\r\n }\r\n\r\n targetKey = ToPropertyKey(targetKey);\r\n OrdinaryDefineOwnMetadata(metadataKey, metadataValue, target, targetKey);\r\n }\r\n else {\r\n if (!IsConstructor(target)) {\r\n throw new TypeError();\r\n }\r\n\r\n OrdinaryDefineOwnMetadata(metadataKey, metadataValue, target, /*targetKey*/ undefined);\r\n }\r\n }\r\n\r\n return decorator;\r\n }\r\n \r\n /**\r\n * Define a unique metadata entry on the target.\r\n * @param metadataKey A key used to store and retrieve metadata.\r\n * @param metadataValue A value that contains attached metadata.\r\n * @param target The target object on which to define metadata.\r\n * @example\r\n *\r\n * class C {\r\n * }\r\n *\r\n * // constructor\r\n * Reflect.defineMetadata(\"custom:annotation\", options, C);\r\n *\r\n * // decorator factory as metadata-producing annotation.\r\n * function MyAnnotation(options): ClassDecorator {\r\n * return target => Reflect.defineMetadata(\"custom:annotation\", options, target);\r\n * }\r\n *\r\n */\r\n export function defineMetadata(metadataKey: any, metadataValue: any, target: Object): void;\r\n\r\n /**\r\n * Define a unique metadata entry on the target.\r\n * @param metadataKey A key used to store and retrieve metadata.\r\n * @param metadataValue A value that contains attached metadata.\r\n * @param target The target object on which to define metadata.\r\n * @param targetKey The property key for the target.\r\n * @example\r\n *\r\n * class C {\r\n * // property declarations are not part of ES6, though they are valid in TypeScript:\r\n * // static staticProperty; \r\n * // property;\r\n *\r\n * static staticMethod(p) { }\r\n * method(p) { } \r\n * }\r\n *\r\n * // property (on constructor)\r\n * Reflect.defineMetadata(\"custom:annotation\", Number, C, \"staticProperty\");\r\n *\r\n * // property (on prototype)\r\n * Reflect.defineMetadata(\"custom:annotation\", Number, C.prototype, \"property\");\r\n *\r\n * // method (on constructor)\r\n * Reflect.defineMetadata(\"custom:annotation\", Number, C, \"staticMethod\");\r\n *\r\n * // method (on prototype)\r\n * Reflect.defineMetadata(\"custom:annotation\", Number, C.prototype, \"method\");\r\n *\r\n * // decorator factory as metadata-producing annotation.\r\n * function MyAnnotation(options): PropertyDecorator {\r\n * return (target, key) => Reflect.defineMetadata(\"custom:annotation\", options, target, key);\r\n * }\r\n *\r\n */\r\n export function defineMetadata(metadataKey: any, metadataValue: any, target: Object, targetKey: string | symbol): void;\r\n\r\n /**\r\n * Define a unique metadata entry on the target.\r\n * @param metadataKey A key used to store and retrieve metadata.\r\n * @param metadataValue A value that contains attached metadata.\r\n * @param target The target object on which to define metadata.\r\n * @param targetKey (Optional) The property key for the target.\r\n * @example\r\n *\r\n * class C {\r\n * // property declarations are not part of ES6, though they are valid in TypeScript:\r\n * // static staticProperty; \r\n * // property;\r\n *\r\n * constructor(p) { }\r\n * static staticMethod(p) { }\r\n * method(p) { } \r\n * }\r\n *\r\n * // constructor\r\n * Reflect.defineMetadata(\"custom:annotation\", options, C);\r\n *\r\n * // property (on constructor)\r\n * Reflect.defineMetadata(\"custom:annotation\", options, C, \"staticProperty\");\r\n *\r\n * // property (on prototype)\r\n * Reflect.defineMetadata(\"custom:annotation\", options, C.prototype, \"property\");\r\n *\r\n * // method (on constructor)\r\n * Reflect.defineMetadata(\"custom:annotation\", options, C, \"staticMethod\");\r\n *\r\n * // method (on prototype)\r\n * Reflect.defineMetadata(\"custom:annotation\", options, C.prototype, \"method\");\r\n *\r\n * // decorator factory as metadata-producing annotation.\r\n * function MyAnnotation(options): Decorator {\r\n * return (target, key?) => Reflect.defineMetadata(\"custom:annotation\", options, target, key);\r\n * }\r\n *\r\n */\r\n export function defineMetadata(metadataKey: any, metadataValue: any, target: Object, targetKey?: string | symbol): void {\r\n if (!IsObject(target)) {\r\n throw new TypeError();\r\n }\r\n else if (!IsUndefined(targetKey)) {\r\n targetKey = ToPropertyKey(targetKey);\r\n }\r\n\r\n return OrdinaryDefineOwnMetadata(metadataKey, metadataValue, target, targetKey);\r\n }\r\n \r\n /**\r\n * Gets a value indicating whether the target object or its prototype chain has the provided metadata key defined.\r\n * @param metadataKey A key used to store and retrieve metadata.\r\n * @param target The target object on which the metadata is defined.\r\n * @returns `true` if the metadata key was defined on the target object or its prototype chain; otherwise, `false`.\r\n * @example\r\n *\r\n * class C {\r\n * }\r\n *\r\n * // constructor\r\n * result = Reflect.hasMetadata(\"custom:annotation\", C);\r\n *\r\n */\r\n export function hasMetadata(metadataKey: any, target: Object): boolean;\r\n\r\n /**\r\n * Gets a value indicating whether the target object or its prototype chain has the provided metadata key defined.\r\n * @param metadataKey A key used to store and retrieve metadata.\r\n * @param target The target object on which the metadata is defined.\r\n * @param targetKey The property key for the target.\r\n * @returns `true` if the metadata key was defined on the target object or its prototype chain; otherwise, `false`.\r\n * @example\r\n *\r\n * class C {\r\n * // property declarations are not part of ES6, though they are valid in TypeScript:\r\n * // static staticProperty; \r\n * // property;\r\n *\r\n * static staticMethod(p) { }\r\n * method(p) { } \r\n * }\r\n *\r\n * // property (on constructor)\r\n * result = Reflect.hasMetadata(\"custom:annotation\", C, \"staticProperty\");\r\n *\r\n * // property (on prototype)\r\n * result = Reflect.hasMetadata(\"custom:annotation\", C.prototype, \"property\");\r\n *\r\n * // method (on constructor)\r\n * result = Reflect.hasMetadata(\"custom:annotation\", C, \"staticMethod\");\r\n *\r\n * // method (on prototype)\r\n * result = Reflect.hasMetadata(\"custom:annotation\", C.prototype, \"method\");\r\n *\r\n */\r\n export function hasMetadata(metadataKey: any, target: Object, targetKey: string | symbol): boolean;\r\n\r\n /**\r\n * Gets a value indicating whether the target object or its prototype chain has the provided metadata key defined.\r\n * @param metadataKey A key used to store and retrieve metadata.\r\n * @param target The target object on which the metadata is defined.\r\n * @param targetKey (Optional) The property key for the target.\r\n * @returns `true` if the metadata key was defined on the target object or its prototype chain; otherwise, `false`.\r\n * @example\r\n *\r\n * class C {\r\n * // property declarations are not part of ES6, though they are valid in TypeScript:\r\n * // static staticProperty; \r\n * // property;\r\n *\r\n * constructor(p) { }\r\n * static staticMethod(p) { }\r\n * method(p) { } \r\n * }\r\n *\r\n * // constructor\r\n * result = Reflect.hasMetadata(\"custom:annotation\", C);\r\n *\r\n * // property (on constructor)\r\n * result = Reflect.hasMetadata(\"custom:annotation\", C, \"staticProperty\");\r\n *\r\n * // property (on prototype)\r\n * result = Reflect.hasMetadata(\"custom:annotation\", C.prototype, \"property\");\r\n *\r\n * // method (on constructor)\r\n * result = Reflect.hasMetadata(\"custom:annotation\", C, \"staticMethod\");\r\n *\r\n * // method (on prototype)\r\n * result = Reflect.hasMetadata(\"custom:annotation\", C.prototype, \"method\");\r\n *\r\n */\r\n export function hasMetadata(metadataKey: any, target: Object, targetKey?: string | symbol): boolean {\r\n if (!IsObject(target)) {\r\n throw new TypeError();\r\n }\r\n else if (!IsUndefined(targetKey)) {\r\n targetKey = ToPropertyKey(targetKey);\r\n }\r\n\r\n return OrdinaryHasMetadata(metadataKey, target, targetKey);\r\n }\r\n\r\n /**\r\n * Gets a value indicating whether the target object has the provided metadata key defined.\r\n * @param metadataKey A key used to store and retrieve metadata.\r\n * @param target The target object on which the metadata is defined.\r\n * @returns `true` if the metadata key was defined on the target object; otherwise, `false`.\r\n * @example\r\n *\r\n * class C {\r\n * }\r\n *\r\n * // constructor\r\n * result = Reflect.hasOwnMetadata(\"custom:annotation\", C);\r\n *\r\n */\r\n export function hasOwnMetadata(metadataKey: any, target: Object): boolean;\r\n\r\n /**\r\n * Gets a value indicating whether the target object has the provided metadata key defined.\r\n * @param metadataKey A key used to store and retrieve metadata.\r\n * @param target The target object on which the metadata is defined.\r\n * @param targetKey The property key for the target.\r\n * @returns `true` if the metadata key was defined on the target object; otherwise, `false`.\r\n * @example\r\n *\r\n * class C {\r\n * // property declarations are not part of ES6, though they are valid in TypeScript:\r\n * // static staticProperty; \r\n * // property;\r\n *\r\n * static staticMethod(p) { }\r\n * method(p) { } \r\n * }\r\n *\r\n * // property (on constructor)\r\n * result = Reflect.hasOwnMetadata(\"custom:annotation\", C, \"staticProperty\");\r\n *\r\n * // property (on prototype)\r\n * result = Reflect.hasOwnMetadata(\"custom:annotation\", C.prototype, \"property\");\r\n *\r\n * // method (on constructor)\r\n * result = Reflect.hasOwnMetadata(\"custom:annotation\", C, \"staticMethod\");\r\n *\r\n * // method (on prototype)\r\n * result = Reflect.hasOwnMetadata(\"custom:annotation\", C.prototype, \"method\");\r\n *\r\n */\r\n export function hasOwnMetadata(metadataKey: any, target: Object, targetKey: string | symbol): boolean;\r\n\r\n /**\r\n * Gets a value indicating whether the target object has the provided metadata key defined.\r\n * @param metadataKey A key used to store and retrieve metadata.\r\n * @param target The target object on which the metadata is defined.\r\n * @param targetKey (Optional) The property key for the target.\r\n * @returns `true` if the metadata key was defined on the target object; otherwise, `false`.\r\n * @example\r\n *\r\n * class C {\r\n * // property declarations are not part of ES6, though they are valid in TypeScript:\r\n * // static staticProperty; \r\n * // property;\r\n *\r\n * constructor(p) { }\r\n * static staticMethod(p) { }\r\n * method(p) { } \r\n * }\r\n *\r\n * // constructor\r\n * result = Reflect.hasOwnMetadata(\"custom:annotation\", C);\r\n *\r\n * // property (on constructor)\r\n * result = Reflect.hasOwnMetadata(\"custom:annotation\", C, \"staticProperty\");\r\n *\r\n * // property (on prototype)\r\n * result = Reflect.hasOwnMetadata(\"custom:annotation\", C.prototype, \"property\");\r\n *\r\n * // method (on constructor)\r\n * result = Reflect.hasOwnMetadata(\"custom:annotation\", C, \"staticMethod\");\r\n *\r\n * // method (on prototype)\r\n * result = Reflect.hasOwnMetadata(\"custom:annotation\", C.prototype, \"method\");\r\n *\r\n */\r\n export function hasOwnMetadata(metadataKey: any, target: Object, targetKey?: string | symbol): boolean {\r\n if (!IsObject(target)) {\r\n throw new TypeError();\r\n }\r\n else if (!IsUndefined(targetKey)) {\r\n targetKey = ToPropertyKey(targetKey);\r\n }\r\n\r\n return OrdinaryHasOwnMetadata(metadataKey, target, targetKey);\r\n }\r\n\r\n /**\r\n * Gets the metadata value for the provided metadata key on the target object or its prototype chain.\r\n * @param metadataKey A key used to store and retrieve metadata.\r\n * @param target The target object on which the metadata is defined.\r\n * @returns The metadata value for the metadata key if found; otherwise, `undefined`.\r\n * @example\r\n *\r\n * class C {\r\n * }\r\n *\r\n * // constructor\r\n * result = Reflect.getMetadata(\"custom:annotation\", C);\r\n *\r\n */\r\n export function getMetadata(metadataKey: any, target: Object): any;\r\n\r\n /**\r\n * Gets the metadata value for the provided metadata key on the target object or its prototype chain.\r\n * @param metadataKey A key used to store and retrieve metadata.\r\n * @param target The target object on which the metadata is defined.\r\n * @param targetKey The property key for the target.\r\n * @returns The metadata value for the metadata key if found; otherwise, `undefined`.\r\n * @example\r\n *\r\n * class C {\r\n * // property declarations are not part of ES6, though they are valid in TypeScript:\r\n * // static staticProperty; \r\n * // property;\r\n *\r\n * static staticMethod(p) { }\r\n * method(p) { } \r\n * }\r\n *\r\n * // property (on constructor)\r\n * result = Reflect.getMetadata(\"custom:annotation\", C, \"staticProperty\");\r\n *\r\n * // property (on prototype)\r\n * result = Reflect.getMetadata(\"custom:annotation\", C.prototype, \"property\");\r\n *\r\n * // method (on constructor)\r\n * result = Reflect.getMetadata(\"custom:annotation\", C, \"staticMethod\");\r\n *\r\n * // method (on prototype)\r\n * result = Reflect.getMetadata(\"custom:annotation\", C.prototype, \"method\");\r\n *\r\n */\r\n export function getMetadata(metadataKey: any, target: Object, targetKey: string | symbol): any;\r\n\r\n /**\r\n * Gets the metadata value for the provided metadata key on the target object or its prototype chain.\r\n * @param metadataKey A key used to store and retrieve metadata.\r\n * @param target The target object on which the metadata is defined.\r\n * @param targetKey (Optional) The property key for the target.\r\n * @returns The metadata value for the metadata key if found; otherwise, `undefined`.\r\n * @example\r\n *\r\n * class C {\r\n * // property declarations are not part of ES6, though they are valid in TypeScript:\r\n * // static staticProperty; \r\n * // property;\r\n *\r\n * constructor(p) { }\r\n * static staticMethod(p) { }\r\n * method(p) { } \r\n * }\r\n *\r\n * // constructor\r\n * result = Reflect.getMetadata(\"custom:annotation\", C);\r\n *\r\n * // property (on constructor)\r\n * result = Reflect.getMetadata(\"custom:annotation\", C, \"staticProperty\");\r\n *\r\n * // property (on prototype)\r\n * result = Reflect.getMetadata(\"custom:annotation\", C.prototype, \"property\");\r\n *\r\n * // method (on constructor)\r\n * result = Reflect.getMetadata(\"custom:annotation\", C, \"staticMethod\");\r\n *\r\n * // method (on prototype)\r\n * result = Reflect.getMetadata(\"custom:annotation\", C.prototype, \"method\");\r\n *\r\n */\r\n export function getMetadata(metadataKey: any, target: Object, targetKey?: string | symbol): any {\r\n if (!IsObject(target)) {\r\n throw new TypeError();\r\n }\r\n else if (!IsUndefined(targetKey)) {\r\n targetKey = ToPropertyKey(targetKey);\r\n }\r\n\r\n return OrdinaryGetMetadata(metadataKey, target, targetKey);\r\n }\r\n\r\n /**\r\n * Gets the metadata value for the provided metadata key on the target object.\r\n * @param metadataKey A key used to store and retrieve metadata.\r\n * @param target The target object on which the metadata is defined.\r\n * @returns The metadata value for the metadata key if found; otherwise, `undefined`.\r\n * @example\r\n *\r\n * class C {\r\n * }\r\n *\r\n * // constructor\r\n * result = Reflect.getOwnMetadata(\"custom:annotation\", C);\r\n *\r\n */\r\n export function getOwnMetadata(metadataKey: any, target: Object): any;\r\n\r\n /**\r\n * Gets the metadata value for the provided metadata key on the target object.\r\n * @param metadataKey A key used to store and retrieve metadata.\r\n * @param target The target object on which the metadata is defined.\r\n * @param targetKey The property key for the target.\r\n * @returns The metadata value for the metadata key if found; otherwise, `undefined`.\r\n * @example\r\n *\r\n * class C {\r\n * // property declarations are not part of ES6, though they are valid in TypeScript:\r\n * // static staticProperty; \r\n * // property;\r\n *\r\n * static staticMethod(p) { }\r\n * method(p) { } \r\n * }\r\n *\r\n * // property (on constructor)\r\n * result = Reflect.getOwnMetadata(\"custom:annotation\", C, \"staticProperty\");\r\n *\r\n * // property (on prototype)\r\n * result = Reflect.getOwnMetadata(\"custom:annotation\", C.prototype, \"property\");\r\n *\r\n * // method (on constructor)\r\n * result = Reflect.getOwnMetadata(\"custom:annotation\", C, \"staticMethod\");\r\n *\r\n * // method (on prototype)\r\n * result = Reflect.getOwnMetadata(\"custom:annotation\", C.prototype, \"method\");\r\n *\r\n */\r\n export function getOwnMetadata(metadataKey: any, target: Object, targetKey: string | symbol): any;\r\n\r\n /**\r\n * Gets the metadata value for the provided metadata key on the target object.\r\n * @param metadataKey A key used to store and retrieve metadata.\r\n * @param target The target object on which the metadata is defined.\r\n * @param targetKey (Optional) The property key for the target.\r\n * @returns The metadata value for the metadata key if found; otherwise, `undefined`.\r\n * @example\r\n *\r\n * class C {\r\n * // property declarations are not part of ES6, though they are valid in TypeScript:\r\n * // static staticProperty; \r\n * // property;\r\n *\r\n * constructor(p) { }\r\n * static staticMethod(p) { }\r\n * method(p) { } \r\n * }\r\n *\r\n * // constructor\r\n * result = Reflect.getOwnMetadata(\"custom:annotation\", C);\r\n *\r\n * // property (on constructor)\r\n * result = Reflect.getOwnMetadata(\"custom:annotation\", C, \"staticProperty\");\r\n *\r\n * // property (on prototype)\r\n * result = Reflect.getOwnMetadata(\"custom:annotation\", C.prototype, \"property\");\r\n *\r\n * // method (on constructor)\r\n * result = Reflect.getOwnMetadata(\"custom:annotation\", C, \"staticMethod\");\r\n *\r\n * // method (on prototype)\r\n * result = Reflect.getOwnMetadata(\"custom:annotation\", C.prototype, \"method\");\r\n *\r\n */\r\n export function getOwnMetadata(metadataKey: any, target: Object, targetKey?: string | symbol): any {\r\n if (!IsObject(target)) {\r\n throw new TypeError();\r\n }\r\n else if (!IsUndefined(targetKey)) {\r\n targetKey = ToPropertyKey(targetKey);\r\n }\r\n\r\n return OrdinaryGetOwnMetadata(metadataKey, target, targetKey);\r\n }\r\n\r\n /**\r\n * Gets the metadata keys defined on the target object or its prototype chain.\r\n * @param target The target object on which the metadata is defined.\r\n * @returns An array of unique metadata keys.\r\n * @example\r\n *\r\n * class C {\r\n * }\r\n *\r\n * // constructor\r\n * result = Reflect.getMetadataKeys(C);\r\n *\r\n */\r\n export function getMetadataKeys(target: Object): any[];\r\n\r\n /**\r\n * Gets the metadata keys defined on the target object or its prototype chain.\r\n * @param target The target object on which the metadata is defined.\r\n * @param targetKey The property key for the target.\r\n * @returns An array of unique metadata keys.\r\n * @example\r\n *\r\n * class C {\r\n * // property declarations are not part of ES6, though they are valid in TypeScript:\r\n * // static staticProperty; \r\n * // property;\r\n *\r\n * static staticMethod(p) { }\r\n * method(p) { } \r\n * }\r\n *\r\n * // property (on constructor)\r\n * result = Reflect.getMetadataKeys(C, \"staticProperty\");\r\n *\r\n * // property (on prototype)\r\n * result = Reflect.getMetadataKeys(C.prototype, \"property\");\r\n *\r\n * // method (on constructor)\r\n * result = Reflect.getMetadataKeys(C, \"staticMethod\");\r\n *\r\n * // method (on prototype)\r\n * result = Reflect.getMetadataKeys(C.prototype, \"method\");\r\n *\r\n */\r\n export function getMetadataKeys(target: Object, targetKey: string | symbol): any[];\r\n\r\n /**\r\n * Gets the metadata keys defined on the target object or its prototype chain.\r\n * @param target The target object on which the metadata is defined.\r\n * @param targetKey (Optional) The property key for the target.\r\n * @returns An array of unique metadata keys.\r\n * @example\r\n *\r\n * class C {\r\n * // property declarations are not part of ES6, though they are valid in TypeScript:\r\n * // static staticProperty; \r\n * // property;\r\n *\r\n * constructor(p) { }\r\n * static staticMethod(p) { }\r\n * method(p) { } \r\n * }\r\n *\r\n * // constructor\r\n * result = Reflect.getMetadataKeys(C);\r\n *\r\n * // property (on constructor)\r\n * result = Reflect.getMetadataKeys(C, \"staticProperty\");\r\n *\r\n * // property (on prototype)\r\n * result = Reflect.getMetadataKeys(C.prototype, \"property\");\r\n *\r\n * // method (on constructor)\r\n * result = Reflect.getMetadataKeys(C, \"staticMethod\");\r\n *\r\n * // method (on prototype)\r\n * result = Reflect.getMetadataKeys(C.prototype, \"method\");\r\n *\r\n */\r\n export function getMetadataKeys(target: Object, targetKey?: string | symbol): any[] {\r\n if (!IsObject(target)) {\r\n throw new TypeError();\r\n }\r\n else if (!IsUndefined(targetKey)) {\r\n targetKey = ToPropertyKey(targetKey);\r\n }\r\n\r\n return OrdinaryMetadataKeys(target, targetKey);\r\n }\r\n\r\n /**\r\n * Gets the unique metadata keys defined on the target object.\r\n * @param target The target object on which the metadata is defined.\r\n * @returns An array of unique metadata keys.\r\n * @example\r\n *\r\n * class C {\r\n * }\r\n *\r\n * // constructor\r\n * result = Reflect.getOwnMetadataKeys(C);\r\n *\r\n */\r\n export function getOwnMetadataKeys(target: Object): any[];\r\n\r\n /**\r\n * Gets the unique metadata keys defined on the target object.\r\n * @param target The target object on which the metadata is defined.\r\n * @param targetKey The property key for the target.\r\n * @returns An array of unique metadata keys.\r\n * @example\r\n *\r\n * class C {\r\n * // property declarations are not part of ES6, though they are valid in TypeScript:\r\n * // static staticProperty; \r\n * // property;\r\n *\r\n * static staticMethod(p) { }\r\n * method(p) { } \r\n * }\r\n *\r\n * // property (on constructor)\r\n * result = Reflect.getOwnMetadataKeys(C, \"staticProperty\");\r\n *\r\n * // property (on prototype)\r\n * result = Reflect.getOwnMetadataKeys(C.prototype, \"property\");\r\n *\r\n * // method (on constructor)\r\n * result = Reflect.getOwnMetadataKeys(C, \"staticMethod\");\r\n *\r\n * // method (on prototype)\r\n * result = Reflect.getOwnMetadataKeys(C.prototype, \"method\");\r\n *\r\n */\r\n export function getOwnMetadataKeys(target: Object, targetKey: string | symbol): any[];\r\n\r\n /**\r\n * Gets the unique metadata keys defined on the target object.\r\n * @param target The target object on which the metadata is defined.\r\n * @param targetKey (Optional) The property key for the target.\r\n * @returns An array of unique metadata keys.\r\n * @example\r\n *\r\n * class C {\r\n * // property declarations are not part of ES6, though they are valid in TypeScript:\r\n * // static staticProperty; \r\n * // property;\r\n *\r\n * constructor(p) { }\r\n * static staticMethod(p) { }\r\n * method(p) { } \r\n * }\r\n *\r\n * // constructor\r\n * result = Reflect.getOwnMetadataKeys(C);\r\n *\r\n * // property (on constructor)\r\n * result = Reflect.getOwnMetadataKeys(C, \"staticProperty\");\r\n *\r\n * // property (on prototype)\r\n * result = Reflect.getOwnMetadataKeys(C.prototype, \"property\");\r\n *\r\n * // method (on constructor)\r\n * result = Reflect.getOwnMetadataKeys(C, \"staticMethod\");\r\n *\r\n * // method (on prototype)\r\n * result = Reflect.getOwnMetadataKeys(C.prototype, \"method\");\r\n *\r\n */\r\n export function getOwnMetadataKeys(target: Object, targetKey?: string | symbol): any[] {\r\n if (!IsObject(target)) {\r\n throw new TypeError();\r\n }\r\n else if (!IsUndefined(targetKey)) {\r\n targetKey = ToPropertyKey(targetKey);\r\n }\r\n\r\n return OrdinaryOwnMetadataKeys(target, targetKey);\r\n }\r\n\r\n /**\r\n * Deletes the metadata entry from the target object with the provided key.\r\n * @param metadataKey A key used to store and retrieve metadata.\r\n * @param target The target object on which the metadata is defined.\r\n * @returns `true` if the metadata entry was found and deleted; otherwise, false.\r\n * @example\r\n *\r\n * class C {\r\n * }\r\n *\r\n * // constructor\r\n * result = Reflect.deleteMetadata(\"custom:annotation\", C);\r\n *\r\n */\r\n export function deleteMetadata(metadataKey: any, target: Object): boolean;\r\n\r\n /**\r\n * Deletes the metadata entry from the target object with the provided key.\r\n * @param metadataKey A key used to store and retrieve metadata.\r\n * @param target The target object on which the metadata is defined.\r\n * @param targetKey The property key for the target.\r\n * @returns `true` if the metadata entry was found and deleted; otherwise, false.\r\n * @example\r\n *\r\n * class C {\r\n * // property declarations are not part of ES6, though they are valid in TypeScript:\r\n * // static staticProperty; \r\n * // property;\r\n *\r\n * static staticMethod(p) { }\r\n * method(p) { } \r\n * }\r\n *\r\n * // property (on constructor)\r\n * result = Reflect.deleteMetadata(\"custom:annotation\", C, \"staticProperty\");\r\n *\r\n * // property (on prototype)\r\n * result = Reflect.deleteMetadata(\"custom:annotation\", C.prototype, \"property\");\r\n *\r\n * // method (on constructor)\r\n * result = Reflect.deleteMetadata(\"custom:annotation\", C, \"staticMethod\");\r\n *\r\n * // method (on prototype)\r\n * result = Reflect.deleteMetadata(\"custom:annotation\", C.prototype, \"method\");\r\n *\r\n */\r\n export function deleteMetadata(metadataKey: any, target: Object, targetKey: string | symbol): boolean;\r\n\r\n /**\r\n * Deletes the metadata entry from the target object with the provided key.\r\n * @param metadataKey A key used to store and retrieve metadata.\r\n * @param target The target object on which the metadata is defined.\r\n * @param targetKey (Optional) The property key for the target.\r\n * @returns `true` if the metadata entry was found and deleted; otherwise, false.\r\n * @example\r\n *\r\n * class C {\r\n * // property declarations are not part of ES6, though they are valid in TypeScript:\r\n * // static staticProperty; \r\n * // property;\r\n *\r\n * constructor(p) { }\r\n * static staticMethod(p) { }\r\n * method(p) { } \r\n * }\r\n *\r\n * // constructor\r\n * result = Reflect.deleteMetadata(\"custom:annotation\", C);\r\n *\r\n * // property (on constructor)\r\n * result = Reflect.deleteMetadata(\"custom:annotation\", C, \"staticProperty\");\r\n *\r\n * // property (on prototype)\r\n * result = Reflect.deleteMetadata(\"custom:annotation\", C.prototype, \"property\");\r\n *\r\n * // method (on constructor)\r\n * result = Reflect.deleteMetadata(\"custom:annotation\", C, \"staticMethod\");\r\n *\r\n * // method (on prototype)\r\n * result = Reflect.deleteMetadata(\"custom:annotation\", C.prototype, \"method\");\r\n *\r\n */\r\n export function deleteMetadata(metadataKey: any, target: Object, targetKey?: string | symbol): boolean {\r\n if (!IsObject(target)) {\r\n throw new TypeError();\r\n }\r\n else if (!IsUndefined(targetKey)) {\r\n targetKey = ToPropertyKey(targetKey);\r\n }\r\n\r\n // https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#deletemetadata-metadatakey-p-\r\n let metadataMap = GetOrCreateMetadataMap(target, targetKey, /*create*/ false);\r\n if (IsUndefined(metadataMap)) {\r\n return false;\r\n }\r\n\r\n if (!metadataMap.delete(metadataKey)) {\r\n return false;\r\n }\r\n\r\n if (metadataMap.size > 0) {\r\n return true;\r\n }\r\n\r\n let targetMetadata = __Metadata__.get(target);\r\n targetMetadata.delete(targetKey);\r\n if (targetMetadata.size > 0) {\r\n return true;\r\n }\r\n\r\n __Metadata__.delete(target);\r\n return true;\r\n }\r\n\r\n function DecorateConstructor(decorators: ClassDecorator[], target: Function): Function {\r\n for (let i = decorators.length - 1; i >= 0; --i) {\r\n let decorator = decorators[i];\r\n let decorated = decorator(target);\r\n if (!IsUndefined(decorated)) {\r\n if (!IsConstructor(decorated)) {\r\n throw new TypeError();\r\n }\r\n target = decorated;\r\n }\r\n }\r\n return target;\r\n }\r\n\r\n function DecoratePropertyWithDescriptor(decorators: MethodDecorator[], target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): PropertyDescriptor {\r\n for (let i = decorators.length - 1; i >= 0; --i) {\r\n let decorator = decorators[i];\r\n let decorated = decorator(target, propertyKey, descriptor);\r\n if (!IsUndefined(decorated)) {\r\n if (!IsObject(decorated)) {\r\n throw new TypeError();\r\n }\r\n descriptor = decorated;\r\n }\r\n }\r\n return descriptor;\r\n }\r\n\r\n function DecoratePropertyWithoutDescriptor(decorators: PropertyDecorator[], target: Object, propertyKey: string | symbol): void {\r\n for (let i = decorators.length - 1; i >= 0; --i) {\r\n let decorator = decorators[i];\r\n decorator(target, propertyKey);\r\n }\r\n }\r\n\r\n // https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#getorcreatemetadatamap--o-p-create-\r\n function GetOrCreateMetadataMap(target: Object, targetKey: string | symbol, create: boolean): Map {\r\n let targetMetadata = __Metadata__.get(target);\r\n if (!targetMetadata) {\r\n if (!create) {\r\n return undefined;\r\n }\r\n targetMetadata = new _Map>();\r\n __Metadata__.set(target, targetMetadata);\r\n }\r\n\r\n let keyMetadata = targetMetadata.get(targetKey);\r\n if (!keyMetadata) {\r\n if (!create) {\r\n return undefined;\r\n }\r\n keyMetadata = new _Map();\r\n targetMetadata.set(targetKey, keyMetadata);\r\n }\r\n\r\n return keyMetadata;\r\n }\r\n\r\n // https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#ordinaryhasmetadata--metadatakey-o-p-\r\n function OrdinaryHasMetadata(MetadataKey: any, O: Object, P: string | symbol): boolean {\r\n let hasOwn = OrdinaryHasOwnMetadata(MetadataKey, O, P);\r\n if (hasOwn) {\r\n return true;\r\n }\r\n\r\n let parent = GetPrototypeOf(O);\r\n if (parent !== null) {\r\n return OrdinaryHasMetadata(MetadataKey, parent, P);\r\n }\r\n\r\n return false;\r\n }\r\n\r\n // https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#ordinaryhasownmetadata--metadatakey-o-p-\r\n function OrdinaryHasOwnMetadata(MetadataKey: any, O: Object, P: string | symbol): boolean {\r\n let metadataMap = GetOrCreateMetadataMap(O, P, /*create*/ false);\r\n if (metadataMap === undefined) {\r\n return false;\r\n }\r\n\r\n return Boolean(metadataMap.has(MetadataKey));\r\n }\r\n\r\n // https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#ordinarygetmetadata--metadatakey-o-p-\r\n function OrdinaryGetMetadata(MetadataKey: any, O: Object, P: string | symbol): any {\r\n let hasOwn = OrdinaryHasOwnMetadata(MetadataKey, O, P);\r\n if (hasOwn) {\r\n return OrdinaryGetOwnMetadata(MetadataKey, O, P);\r\n }\r\n\r\n let parent = GetPrototypeOf(O);\r\n if (parent !== null) {\r\n return OrdinaryGetMetadata(MetadataKey, parent, P);\r\n }\r\n\r\n return undefined;\r\n }\r\n\r\n // https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#ordinarygetownmetadata--metadatakey-o-p-\r\n function OrdinaryGetOwnMetadata(MetadataKey: any, O: Object, P: string | symbol): any {\r\n let metadataMap = GetOrCreateMetadataMap(O, P, /*create*/ false);\r\n if (metadataMap === undefined) {\r\n return undefined;\r\n }\r\n\r\n return metadataMap.get(MetadataKey);\r\n }\r\n\r\n // https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#ordinarydefineownmetadata--metadatakey-metadatavalue-o-p-\r\n function OrdinaryDefineOwnMetadata(MetadataKey: any, MetadataValue: any, O: Object, P: string | symbol): void {\r\n let metadataMap = GetOrCreateMetadataMap(O, P, /*create*/ true);\r\n metadataMap.set(MetadataKey, MetadataValue);\r\n }\r\n\r\n // https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#ordinarymetadatakeys--o-p-\r\n function OrdinaryMetadataKeys(O: Object, P: string | symbol): any[] {\r\n let ownKeys = OrdinaryOwnMetadataKeys(O, P);\r\n let parent = GetPrototypeOf(O);\r\n if (parent === null) {\r\n return ownKeys;\r\n }\r\n\r\n let parentKeys = OrdinaryMetadataKeys(parent, P);\r\n if (parentKeys.length <= 0) {\r\n return ownKeys;\r\n }\r\n if (ownKeys.length <= 0) {\r\n return parentKeys;\r\n }\r\n\r\n let set = new _Set();\r\n let keys: any[] = [];\r\n\r\n for (let key of ownKeys) {\r\n let hasKey = set.has(key);\r\n if (!hasKey) {\r\n set.add(key);\r\n keys.push(key);\r\n }\r\n }\r\n\r\n for (let key of parentKeys) {\r\n let hasKey = set.has(key);\r\n if (!hasKey) {\r\n set.add(key);\r\n keys.push(key);\r\n }\r\n }\r\n\r\n return keys;\r\n }\r\n\r\n // https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#ordinaryownmetadatakeys--o-p-\r\n function OrdinaryOwnMetadataKeys(target: Object, targetKey: string | symbol): any[] {\r\n let metadataMap = GetOrCreateMetadataMap(target, targetKey, /*create*/ false);\r\n let keys: any[] = [];\r\n if (metadataMap) {\r\n metadataMap.forEach((_, key) => keys.push(key));\r\n }\r\n\r\n return keys;\r\n }\r\n\r\n // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-ecmascript-language-types-undefined-type\r\n function IsUndefined(x: any): boolean {\r\n return x === undefined;\r\n }\r\n\r\n // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-isarray\r\n function IsArray(x: any): boolean {\r\n return Array.isArray(x);\r\n }\r\n\r\n // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object-type\r\n function IsObject(x: any): boolean {\r\n return typeof x === \"object\" ? x !== null : typeof x === \"function\";\r\n }\r\n\r\n // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-isconstructor\r\n function IsConstructor(x: any): boolean {\r\n return typeof x === \"function\";\r\n }\r\n\r\n // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-ecmascript-language-types-symbol-type\r\n function IsSymbol(x: any): boolean {\r\n return typeof x === \"symbol\";\r\n }\r\n\r\n // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-topropertykey\r\n function ToPropertyKey(value: any): string | symbol {\r\n if (IsSymbol(value)) {\r\n return value;\r\n }\r\n return String(value);\r\n }\r\n\r\n function GetPrototypeOf(O: any): Object {\r\n let proto = Object.getPrototypeOf(O);\r\n if (typeof O !== \"function\" || O === functionPrototype) {\r\n return proto;\r\n }\r\n\r\n // TypeScript doesn't set __proto__ in ES5, as it's non-standard. \r\n // Try to determine the superclass constructor. Compatible implementations\r\n // must either set __proto__ on a subclass constructor to the superclass constructor,\r\n // or ensure each class has a valid `constructor` property on its prototype that\r\n // points back to the constructor.\r\n\r\n // If this is not the same as Function.[[Prototype]], then this is definately inherited.\r\n // This is the case when in ES6 or when using __proto__ in a compatible browser.\r\n if (proto !== functionPrototype) {\r\n return proto;\r\n }\r\n\r\n // If the super prototype is Object.prototype, null, or undefined, then we cannot determine the heritage.\r\n let prototype = O.prototype;\r\n let prototypeProto = Object.getPrototypeOf(prototype);\r\n if (prototypeProto == null || prototypeProto === Object.prototype) {\r\n return proto;\r\n }\r\n\r\n // if the constructor was not a function, then we cannot determine the heritage.\r\n let constructor = prototypeProto.constructor;\r\n if (typeof constructor !== \"function\") {\r\n return proto;\r\n }\r\n\r\n // if we have some kind of self-reference, then we cannot determine the heritage.\r\n if (constructor === O) {\r\n return proto;\r\n }\r\n\r\n // we have a pretty good guess at the heritage.\r\n return constructor;\r\n }\r\n\r\n // naive Map shim\r\n function CreateMapPolyfill() {\r\n const cacheSentinel = {};\r\n function Map() {\r\n this._keys = [];\r\n this._values = [];\r\n this._cache = cacheSentinel;\r\n }\r\n Map.prototype = {\r\n get size() {\r\n return this._keys.length;\r\n },\r\n has(key: any): boolean {\r\n if (key === this._cache) {\r\n return true;\r\n }\r\n if (this._find(key) >= 0) {\r\n this._cache = key;\r\n return true;\r\n }\r\n return false;\r\n },\r\n get(key: any): any {\r\n let index = this._find(key);\r\n if (index >= 0) {\r\n this._cache = key;\r\n return this._values[index];\r\n }\r\n return undefined;\r\n },\r\n set(key: any, value: any): Map {\r\n this.delete(key);\r\n this._keys.push(key);\r\n this._values.push(value);\r\n this._cache = key;\r\n return this;\r\n },\r\n delete(key: any): boolean {\r\n let index = this._find(key);\r\n if (index >= 0) {\r\n this._keys.splice(index, 1);\r\n this._values.splice(index, 1);\r\n this._cache = cacheSentinel;\r\n return true;\r\n }\r\n return false;\r\n },\r\n clear(): void {\r\n this._keys.length = 0;\r\n this._values.length = 0;\r\n this._cache = cacheSentinel;\r\n },\r\n forEach(callback: (value: any, key: any, map: Map) => void, thisArg?: any): void {\r\n let size = this.size;\r\n for (let i = 0; i < size; ++i) {\r\n let key = this._keys[i];\r\n let value = this._values[i];\r\n this._cache = key;\r\n callback.call(this, value, key, this);\r\n }\r\n },\r\n _find(key: any): number {\r\n const keys = this._keys;\r\n const size = keys.length;\r\n for (let i = 0; i < size; ++i) {\r\n if (keys[i] === key) {\r\n return i;\r\n }\r\n }\r\n return -1;\r\n }\r\n };\r\n return Map;\r\n }\r\n\r\n // naive Set shim\r\n function CreateSetPolyfill() {\r\n const cacheSentinel = {};\r\n function Set() {\r\n this._map = new _Map();\r\n }\r\n Set.prototype = {\r\n get size() {\r\n return this._map.length;\r\n },\r\n has(value: any): boolean {\r\n return this._map.has(value);\r\n },\r\n add(value: any): Set {\r\n this._map.set(value, value);\r\n return this;\r\n },\r\n delete(value: any): boolean {\r\n return this._map.delete(value);\r\n },\r\n clear(): void {\r\n this._map.clear();\r\n },\r\n forEach(callback: (value: any, key: any, set: Set) => void, thisArg?: any): void {\r\n this._map.forEach(callback, thisArg);\r\n }\r\n };\r\n return Set;\r\n }\r\n\r\n // naive WeakMap shim\r\n function CreateWeakMapPolyfill() {\r\n const UUID_SIZE = 16;\r\n const isNode = typeof global !== \"undefined\" && Object.prototype.toString.call(global.process) === '[object process]';\r\n const nodeCrypto = isNode && require(\"crypto\");\r\n const hasOwn = Object.prototype.hasOwnProperty;\r\n const keys: { [key: string]: boolean; } = {};\r\n const rootKey = CreateUniqueKey();\r\n\r\n function WeakMap() {\r\n this._key = CreateUniqueKey();\r\n }\r\n WeakMap.prototype = {\r\n has(target: Object): boolean {\r\n let table = GetOrCreateWeakMapTable(target, /*create*/ false);\r\n if (table) {\r\n return this._key in table;\r\n }\r\n return false;\r\n },\r\n get(target: Object): any {\r\n let table = GetOrCreateWeakMapTable(target, /*create*/ false);\r\n if (table) {\r\n return table[this._key];\r\n }\r\n return undefined;\r\n },\r\n set(target: Object, value: any): WeakMap {\r\n let table = GetOrCreateWeakMapTable(target, /*create*/ true);\r\n table[this._key] = value;\r\n return this;\r\n },\r\n delete(target: Object): boolean {\r\n let table = GetOrCreateWeakMapTable(target, /*create*/ false);\r\n if (table && this._key in table) {\r\n return delete table[this._key];\r\n }\r\n return false;\r\n },\r\n clear(): void {\r\n // NOTE: not a real clear, just makes the previous data unreachable\r\n this._key = CreateUniqueKey();\r\n }\r\n }\r\n\r\n function FillRandomBytes(buffer: BufferLike, size: number): void {\r\n for (var i = 0; i < size; ++i) {\r\n buffer[i] = Math.random() * 255 | 0;\r\n }\r\n }\r\n\r\n function GenRandomBytes(size: number): BufferLike {\r\n if (nodeCrypto) {\r\n let data = nodeCrypto.randomBytes(size);\r\n return data;\r\n }\r\n else if (typeof Uint8Array === \"function\") {\r\n let data = new Uint8Array(size);\r\n if (typeof crypto !== \"undefined\") {\r\n crypto.getRandomValues(data);\r\n }\r\n else if (typeof msCrypto !== \"undefined\") {\r\n msCrypto.getRandomValues(data);\r\n }\r\n else {\r\n FillRandomBytes(data, size);\r\n }\r\n return data;\r\n }\r\n else {\r\n let data = new Array(size);\r\n FillRandomBytes(data, size);\r\n return data;\r\n }\r\n }\r\n\r\n function CreateUUID() {\r\n let data = GenRandomBytes(UUID_SIZE);\r\n\r\n // mark as random - RFC 4122 § 4.4\r\n data[6] = data[6] & 0x4f | 0x40;\r\n data[8] = data[8] & 0xbf | 0x80;\r\n\r\n let result = \"\";\r\n for (let offset = 0; offset < UUID_SIZE; ++offset) {\r\n let byte = data[offset];\r\n if (offset === 4 || offset === 6 || offset === 8) {\r\n result += \"-\";\r\n }\r\n if (byte < 16) {\r\n result += \"0\";\r\n }\r\n result += byte.toString(16).toLowerCase();\r\n }\r\n\r\n return result;\r\n }\r\n\r\n function CreateUniqueKey(): string {\r\n let key: string;\r\n do {\r\n key = \"@@WeakMap@@\" + CreateUUID();\r\n }\r\n while (hasOwn.call(keys, key));\r\n keys[key] = true;\r\n return key;\r\n }\r\n\r\n function GetOrCreateWeakMapTable(target: Object, create: boolean): { [key: string]: any; } {\r\n if (!hasOwn.call(target, rootKey)) {\r\n if (!create) {\r\n return undefined;\r\n }\r\n Object.defineProperty(target, rootKey, { value: Object.create(null) });\r\n }\r\n return (target)[rootKey];\r\n }\r\n\r\n return WeakMap;\r\n }\r\n\r\n interface BufferLike {\r\n [offset: number]: number;\r\n length: number;\r\n }\r\n\r\n\r\n // hook global Reflect\r\n (function(__global: any) {\r\n if (typeof __global.Reflect !== \"undefined\") {\r\n if (__global.Reflect !== Reflect) {\r\n for (var p in Reflect) {\r\n __global.Reflect[p] = (Reflect)[p];\r\n }\r\n }\r\n }\r\n else {\r\n __global.Reflect = Reflect;\r\n }\r\n })(\r\n typeof window !== \"undefined\" ? window :\r\n typeof WorkerGlobalScope !== \"undefined\" ? self :\r\n typeof global !== \"undefined\" ? global :\r\n Function(\"return this;\")());\r\n}","(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require==\"function\"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error(\"Cannot find module '\"+o+\"'\");throw f.code=\"MODULE_NOT_FOUND\",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require==\"function\"&&require;for(var o=0;o 2 ? $$[2] : undefined\n , count = Math.min((end === undefined ? len : toIndex(end, len)) - from, len - to)\n , inc = 1;\n if(from < to && to < from + count){\n inc = -1;\n from += count - 1;\n to += count - 1;\n }\n while(count-- > 0){\n if(from in O)O[to] = O[from];\n else delete O[to];\n to += inc;\n from += inc;\n } return O;\n};\n},{\"77\":77,\"80\":80,\"81\":81}],7:[function(_dereq_,module,exports){\n// 22.1.3.6 Array.prototype.fill(value, start = 0, end = this.length)\n'use strict';\nvar toObject = _dereq_(81)\n , toIndex = _dereq_(77)\n , toLength = _dereq_(80);\nmodule.exports = [].fill || function fill(value /*, start = 0, end = @length */){\n var O = toObject(this, true)\n , length = toLength(O.length)\n , $$ = arguments\n , $$len = $$.length\n , index = toIndex($$len > 1 ? $$[1] : undefined, length)\n , end = $$len > 2 ? $$[2] : undefined\n , endPos = end === undefined ? length : toIndex(end, length);\n while(endPos > index)O[index++] = value;\n return O;\n};\n},{\"77\":77,\"80\":80,\"81\":81}],8:[function(_dereq_,module,exports){\n// false -> Array#indexOf\n// true -> Array#includes\nvar toIObject = _dereq_(79)\n , toLength = _dereq_(80)\n , toIndex = _dereq_(77);\nmodule.exports = function(IS_INCLUDES){\n return function($this, el, fromIndex){\n var O = toIObject($this)\n , length = toLength(O.length)\n , index = toIndex(fromIndex, length)\n , value;\n // Array#includes uses SameValueZero equality algorithm\n if(IS_INCLUDES && el != el)while(length > index){\n value = O[index++];\n if(value != value)return true;\n // Array#toIndex ignores holes, Array#includes - not\n } else for(;length > index; index++)if(IS_INCLUDES || index in O){\n if(O[index] === el)return IS_INCLUDES || index;\n } return !IS_INCLUDES && -1;\n };\n};\n},{\"77\":77,\"79\":79,\"80\":80}],9:[function(_dereq_,module,exports){\n// 0 -> Array#forEach\n// 1 -> Array#map\n// 2 -> Array#filter\n// 3 -> Array#some\n// 4 -> Array#every\n// 5 -> Array#find\n// 6 -> Array#findIndex\nvar ctx = _dereq_(18)\n , IObject = _dereq_(35)\n , toObject = _dereq_(81)\n , toLength = _dereq_(80)\n , asc = _dereq_(10);\nmodule.exports = function(TYPE){\n var IS_MAP = TYPE == 1\n , IS_FILTER = TYPE == 2\n , IS_SOME = TYPE == 3\n , IS_EVERY = TYPE == 4\n , IS_FIND_INDEX = TYPE == 6\n , NO_HOLES = TYPE == 5 || IS_FIND_INDEX;\n return function($this, callbackfn, that){\n var O = toObject($this)\n , self = IObject(O)\n , f = ctx(callbackfn, that, 3)\n , length = toLength(self.length)\n , index = 0\n , result = IS_MAP ? asc($this, length) : IS_FILTER ? asc($this, 0) : undefined\n , val, res;\n for(;length > index; index++)if(NO_HOLES || index in self){\n val = self[index];\n res = f(val, index, O);\n if(TYPE){\n if(IS_MAP)result[index] = res; // map\n else if(res)switch(TYPE){\n case 3: return true; // some\n case 5: return val; // find\n case 6: return index; // findIndex\n case 2: result.push(val); // filter\n } else if(IS_EVERY)return false; // every\n }\n }\n return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result;\n };\n};\n},{\"10\":10,\"18\":18,\"35\":35,\"80\":80,\"81\":81}],10:[function(_dereq_,module,exports){\n// 9.4.2.3 ArraySpeciesCreate(originalArray, length)\nvar isObject = _dereq_(39)\n , isArray = _dereq_(37)\n , SPECIES = _dereq_(84)('species');\nmodule.exports = function(original, length){\n var C;\n if(isArray(original)){\n C = original.constructor;\n // cross-realm fallback\n if(typeof C == 'function' && (C === Array || isArray(C.prototype)))C = undefined;\n if(isObject(C)){\n C = C[SPECIES];\n if(C === null)C = undefined;\n }\n } return new (C === undefined ? Array : C)(length);\n};\n},{\"37\":37,\"39\":39,\"84\":84}],11:[function(_dereq_,module,exports){\n// getting tag from 19.1.3.6 Object.prototype.toString()\nvar cof = _dereq_(12)\n , TAG = _dereq_(84)('toStringTag')\n // ES3 wrong here\n , ARG = cof(function(){ return arguments; }()) == 'Arguments';\n\nmodule.exports = function(it){\n var O, T, B;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (T = (O = Object(it))[TAG]) == 'string' ? T\n // builtinTag case\n : ARG ? cof(O)\n // ES3 arguments fallback\n : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;\n};\n},{\"12\":12,\"84\":84}],12:[function(_dereq_,module,exports){\nvar toString = {}.toString;\n\nmodule.exports = function(it){\n return toString.call(it).slice(8, -1);\n};\n},{}],13:[function(_dereq_,module,exports){\n'use strict';\nvar $ = _dereq_(47)\n , hide = _dereq_(32)\n , mix = _dereq_(54)\n , ctx = _dereq_(18)\n , strictNew = _dereq_(70)\n , defined = _dereq_(20)\n , forOf = _dereq_(28)\n , $iterDefine = _dereq_(43)\n , step = _dereq_(45)\n , ID = _dereq_(83)('id')\n , $has = _dereq_(31)\n , isObject = _dereq_(39)\n , setSpecies = _dereq_(66)\n , DESCRIPTORS = _dereq_(21)\n , isExtensible = Object.isExtensible || isObject\n , SIZE = DESCRIPTORS ? '_s' : 'size'\n , id = 0;\n\nvar fastKey = function(it, create){\n // return primitive with prefix\n if(!isObject(it))return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;\n if(!$has(it, ID)){\n // can't set id to frozen object\n if(!isExtensible(it))return 'F';\n // not necessary to add id\n if(!create)return 'E';\n // add missing object id\n hide(it, ID, ++id);\n // return object id with prefix\n } return 'O' + it[ID];\n};\n\nvar getEntry = function(that, key){\n // fast case\n var index = fastKey(key), entry;\n if(index !== 'F')return that._i[index];\n // frozen object case\n for(entry = that._f; entry; entry = entry.n){\n if(entry.k == key)return entry;\n }\n};\n\nmodule.exports = {\n getConstructor: function(wrapper, NAME, IS_MAP, ADDER){\n var C = wrapper(function(that, iterable){\n strictNew(that, C, NAME);\n that._i = $.create(null); // index\n that._f = undefined; // first entry\n that._l = undefined; // last entry\n that[SIZE] = 0; // size\n if(iterable != undefined)forOf(iterable, IS_MAP, that[ADDER], that);\n });\n mix(C.prototype, {\n // 23.1.3.1 Map.prototype.clear()\n // 23.2.3.2 Set.prototype.clear()\n clear: function clear(){\n for(var that = this, data = that._i, entry = that._f; entry; entry = entry.n){\n entry.r = true;\n if(entry.p)entry.p = entry.p.n = undefined;\n delete data[entry.i];\n }\n that._f = that._l = undefined;\n that[SIZE] = 0;\n },\n // 23.1.3.3 Map.prototype.delete(key)\n // 23.2.3.4 Set.prototype.delete(value)\n 'delete': function(key){\n var that = this\n , entry = getEntry(that, key);\n if(entry){\n var next = entry.n\n , prev = entry.p;\n delete that._i[entry.i];\n entry.r = true;\n if(prev)prev.n = next;\n if(next)next.p = prev;\n if(that._f == entry)that._f = next;\n if(that._l == entry)that._l = prev;\n that[SIZE]--;\n } return !!entry;\n },\n // 23.2.3.6 Set.prototype.forEach(callbackfn, thisArg = undefined)\n // 23.1.3.5 Map.prototype.forEach(callbackfn, thisArg = undefined)\n forEach: function forEach(callbackfn /*, that = undefined */){\n var f = ctx(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3)\n , entry;\n while(entry = entry ? entry.n : this._f){\n f(entry.v, entry.k, this);\n // revert to the last existing entry\n while(entry && entry.r)entry = entry.p;\n }\n },\n // 23.1.3.7 Map.prototype.has(key)\n // 23.2.3.7 Set.prototype.has(value)\n has: function has(key){\n return !!getEntry(this, key);\n }\n });\n if(DESCRIPTORS)$.setDesc(C.prototype, 'size', {\n get: function(){\n return defined(this[SIZE]);\n }\n });\n return C;\n },\n def: function(that, key, value){\n var entry = getEntry(that, key)\n , prev, index;\n // change existing entry\n if(entry){\n entry.v = value;\n // create new entry\n } else {\n that._l = entry = {\n i: index = fastKey(key, true), // <- index\n k: key, // <- key\n v: value, // <- value\n p: prev = that._l, // <- previous entry\n n: undefined, // <- next entry\n r: false // <- removed\n };\n if(!that._f)that._f = entry;\n if(prev)prev.n = entry;\n that[SIZE]++;\n // add to index\n if(index !== 'F')that._i[index] = entry;\n } return that;\n },\n getEntry: getEntry,\n setStrong: function(C, NAME, IS_MAP){\n // add .keys, .values, .entries, [@@iterator]\n // 23.1.3.4, 23.1.3.8, 23.1.3.11, 23.1.3.12, 23.2.3.5, 23.2.3.8, 23.2.3.10, 23.2.3.11\n $iterDefine(C, NAME, function(iterated, kind){\n this._t = iterated; // target\n this._k = kind; // kind\n this._l = undefined; // previous\n }, function(){\n var that = this\n , kind = that._k\n , entry = that._l;\n // revert to the last existing entry\n while(entry && entry.r)entry = entry.p;\n // get next entry\n if(!that._t || !(that._l = entry = entry ? entry.n : that._t._f)){\n // or finish the iteration\n that._t = undefined;\n return step(1);\n }\n // return step by kind\n if(kind == 'keys' )return step(0, entry.k);\n if(kind == 'values')return step(0, entry.v);\n return step(0, [entry.k, entry.v]);\n }, IS_MAP ? 'entries' : 'values' , !IS_MAP, true);\n\n // add [@@species], 23.1.2.2, 23.2.2.2\n setSpecies(NAME);\n }\n};\n},{\"18\":18,\"20\":20,\"21\":21,\"28\":28,\"31\":31,\"32\":32,\"39\":39,\"43\":43,\"45\":45,\"47\":47,\"54\":54,\"66\":66,\"70\":70,\"83\":83}],14:[function(_dereq_,module,exports){\n// https://github.com/DavidBruant/Map-Set.prototype.toJSON\nvar forOf = _dereq_(28)\n , classof = _dereq_(11);\nmodule.exports = function(NAME){\n return function toJSON(){\n if(classof(this) != NAME)throw TypeError(NAME + \"#toJSON isn't generic\");\n var arr = [];\n forOf(this, false, arr.push, arr);\n return arr;\n };\n};\n},{\"11\":11,\"28\":28}],15:[function(_dereq_,module,exports){\n'use strict';\nvar hide = _dereq_(32)\n , mix = _dereq_(54)\n , anObject = _dereq_(5)\n , strictNew = _dereq_(70)\n , forOf = _dereq_(28)\n , method = _dereq_(9)\n , WEAK = _dereq_(83)('weak')\n , isObject = _dereq_(39)\n , $has = _dereq_(31)\n , isExtensible = Object.isExtensible || isObject\n , find = method(5)\n , findIndex = method(6)\n , id = 0;\n\n// fallback for frozen keys\nvar frozenStore = function(that){\n return that._l || (that._l = new FrozenStore);\n};\nvar FrozenStore = function(){\n this.a = [];\n};\nvar findFrozen = function(store, key){\n return find(store.a, function(it){\n return it[0] === key;\n });\n};\nFrozenStore.prototype = {\n get: function(key){\n var entry = findFrozen(this, key);\n if(entry)return entry[1];\n },\n has: function(key){\n return !!findFrozen(this, key);\n },\n set: function(key, value){\n var entry = findFrozen(this, key);\n if(entry)entry[1] = value;\n else this.a.push([key, value]);\n },\n 'delete': function(key){\n var index = findIndex(this.a, function(it){\n return it[0] === key;\n });\n if(~index)this.a.splice(index, 1);\n return !!~index;\n }\n};\n\nmodule.exports = {\n getConstructor: function(wrapper, NAME, IS_MAP, ADDER){\n var C = wrapper(function(that, iterable){\n strictNew(that, C, NAME);\n that._i = id++; // collection id\n that._l = undefined; // leak store for frozen objects\n if(iterable != undefined)forOf(iterable, IS_MAP, that[ADDER], that);\n });\n mix(C.prototype, {\n // 23.3.3.2 WeakMap.prototype.delete(key)\n // 23.4.3.3 WeakSet.prototype.delete(value)\n 'delete': function(key){\n if(!isObject(key))return false;\n if(!isExtensible(key))return frozenStore(this)['delete'](key);\n return $has(key, WEAK) && $has(key[WEAK], this._i) && delete key[WEAK][this._i];\n },\n // 23.3.3.4 WeakMap.prototype.has(key)\n // 23.4.3.4 WeakSet.prototype.has(value)\n has: function has(key){\n if(!isObject(key))return false;\n if(!isExtensible(key))return frozenStore(this).has(key);\n return $has(key, WEAK) && $has(key[WEAK], this._i);\n }\n });\n return C;\n },\n def: function(that, key, value){\n if(!isExtensible(anObject(key))){\n frozenStore(that).set(key, value);\n } else {\n $has(key, WEAK) || hide(key, WEAK, {});\n key[WEAK][that._i] = value;\n } return that;\n },\n frozenStore: frozenStore,\n WEAK: WEAK\n};\n},{\"28\":28,\"31\":31,\"32\":32,\"39\":39,\"5\":5,\"54\":54,\"70\":70,\"83\":83,\"9\":9}],16:[function(_dereq_,module,exports){\n'use strict';\nvar global = _dereq_(30)\n , $def = _dereq_(19)\n , $redef = _dereq_(62)\n , mix = _dereq_(54)\n , forOf = _dereq_(28)\n , strictNew = _dereq_(70)\n , isObject = _dereq_(39)\n , fails = _dereq_(25)\n , $iterDetect = _dereq_(44)\n , setToStringTag = _dereq_(67);\n\nmodule.exports = function(NAME, wrapper, methods, common, IS_MAP, IS_WEAK){\n var Base = global[NAME]\n , C = Base\n , ADDER = IS_MAP ? 'set' : 'add'\n , proto = C && C.prototype\n , O = {};\n var fixMethod = function(KEY){\n var fn = proto[KEY];\n $redef(proto, KEY,\n KEY == 'delete' ? function(a){\n return IS_WEAK && !isObject(a) ? false : fn.call(this, a === 0 ? 0 : a);\n } : KEY == 'has' ? function has(a){\n return IS_WEAK && !isObject(a) ? false : fn.call(this, a === 0 ? 0 : a);\n } : KEY == 'get' ? function get(a){\n return IS_WEAK && !isObject(a) ? undefined : fn.call(this, a === 0 ? 0 : a);\n } : KEY == 'add' ? function add(a){ fn.call(this, a === 0 ? 0 : a); return this; }\n : function set(a, b){ fn.call(this, a === 0 ? 0 : a, b); return this; }\n );\n };\n if(typeof C != 'function' || !(IS_WEAK || proto.forEach && !fails(function(){\n new C().entries().next();\n }))){\n // create collection constructor\n C = common.getConstructor(wrapper, NAME, IS_MAP, ADDER);\n mix(C.prototype, methods);\n } else {\n var instance = new C\n // early implementations not supports chaining\n , HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1) != instance\n // V8 ~ Chromium 40- weak-collections throws on primitives, but should return false\n , THROWS_ON_PRIMITIVES = fails(function(){ instance.has(1); })\n // most early implementations doesn't supports iterables, most modern - not close it correctly\n , ACCEPT_ITERABLES = $iterDetect(function(iter){ new C(iter); }) // eslint-disable-line no-new\n // for early implementations -0 and +0 not the same\n , BUGGY_ZERO;\n if(!ACCEPT_ITERABLES){ \n C = wrapper(function(target, iterable){\n strictNew(target, C, NAME);\n var that = new Base;\n if(iterable != undefined)forOf(iterable, IS_MAP, that[ADDER], that);\n return that;\n });\n C.prototype = proto;\n proto.constructor = C;\n }\n IS_WEAK || instance.forEach(function(val, key){\n BUGGY_ZERO = 1 / key === -Infinity;\n });\n if(THROWS_ON_PRIMITIVES || BUGGY_ZERO){\n fixMethod('delete');\n fixMethod('has');\n IS_MAP && fixMethod('get');\n }\n if(BUGGY_ZERO || HASNT_CHAINING)fixMethod(ADDER);\n // weak collections should not contains .clear method\n if(IS_WEAK && proto.clear)delete proto.clear;\n }\n\n setToStringTag(C, NAME);\n\n O[NAME] = C;\n $def($def.G + $def.W + $def.F * (C != Base), O);\n\n if(!IS_WEAK)common.setStrong(C, NAME, IS_MAP);\n\n return C;\n};\n},{\"19\":19,\"25\":25,\"28\":28,\"30\":30,\"39\":39,\"44\":44,\"54\":54,\"62\":62,\"67\":67,\"70\":70}],17:[function(_dereq_,module,exports){\nvar core = module.exports = {version: '1.2.5'};\nif(typeof __e == 'number')__e = core; // eslint-disable-line no-undef\n},{}],18:[function(_dereq_,module,exports){\n// optional / simple context binding\nvar aFunction = _dereq_(3);\nmodule.exports = function(fn, that, length){\n aFunction(fn);\n if(that === undefined)return fn;\n switch(length){\n case 1: return function(a){\n return fn.call(that, a);\n };\n case 2: return function(a, b){\n return fn.call(that, a, b);\n };\n case 3: return function(a, b, c){\n return fn.call(that, a, b, c);\n };\n }\n return function(/* ...args */){\n return fn.apply(that, arguments);\n };\n};\n},{\"3\":3}],19:[function(_dereq_,module,exports){\nvar global = _dereq_(30)\n , core = _dereq_(17)\n , hide = _dereq_(32)\n , $redef = _dereq_(62)\n , PROTOTYPE = 'prototype';\nvar ctx = function(fn, that){\n return function(){\n return fn.apply(that, arguments);\n };\n};\nvar $def = function(type, name, source){\n var key, own, out, exp\n , isGlobal = type & $def.G\n , isProto = type & $def.P\n , target = isGlobal ? global : type & $def.S\n ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE]\n , exports = isGlobal ? core : core[name] || (core[name] = {});\n if(isGlobal)source = name;\n for(key in source){\n // contains in native\n own = !(type & $def.F) && target && key in target;\n // export native or passed\n out = (own ? target : source)[key];\n // bind timers to global for call from export context\n if(type & $def.B && own)exp = ctx(out, global);\n else exp = isProto && typeof out == 'function' ? ctx(Function.call, out) : out;\n // extend global\n if(target && !own)$redef(target, key, out);\n // export\n if(exports[key] != out)hide(exports, key, exp);\n if(isProto)(exports[PROTOTYPE] || (exports[PROTOTYPE] = {}))[key] = out;\n }\n};\nglobal.core = core;\n// type bitmap\n$def.F = 1; // forced\n$def.G = 2; // global\n$def.S = 4; // static\n$def.P = 8; // proto\n$def.B = 16; // bind\n$def.W = 32; // wrap\nmodule.exports = $def;\n},{\"17\":17,\"30\":30,\"32\":32,\"62\":62}],20:[function(_dereq_,module,exports){\n// 7.2.1 RequireObjectCoercible(argument)\nmodule.exports = function(it){\n if(it == undefined)throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n},{}],21:[function(_dereq_,module,exports){\n// Thank's IE8 for his funny defineProperty\nmodule.exports = !_dereq_(25)(function(){\n return Object.defineProperty({}, 'a', {get: function(){ return 7; }}).a != 7;\n});\n},{\"25\":25}],22:[function(_dereq_,module,exports){\nvar isObject = _dereq_(39)\n , document = _dereq_(30).document\n // in old IE typeof document.createElement is 'object'\n , is = isObject(document) && isObject(document.createElement);\nmodule.exports = function(it){\n return is ? document.createElement(it) : {};\n};\n},{\"30\":30,\"39\":39}],23:[function(_dereq_,module,exports){\n// all enumerable object keys, includes symbols\nvar $ = _dereq_(47);\nmodule.exports = function(it){\n var keys = $.getKeys(it)\n , getSymbols = $.getSymbols;\n if(getSymbols){\n var symbols = getSymbols(it)\n , isEnum = $.isEnum\n , i = 0\n , key;\n while(symbols.length > i)if(isEnum.call(it, key = symbols[i++]))keys.push(key);\n }\n return keys;\n};\n},{\"47\":47}],24:[function(_dereq_,module,exports){\nvar MATCH = _dereq_(84)('match');\nmodule.exports = function(KEY){\n var re = /./;\n try {\n '/./'[KEY](re);\n } catch(e){\n try {\n re[MATCH] = false;\n return !'/./'[KEY](re);\n } catch(f){ /* empty */ }\n } return true;\n};\n},{\"84\":84}],25:[function(_dereq_,module,exports){\nmodule.exports = function(exec){\n try {\n return !!exec();\n } catch(e){\n return true;\n }\n};\n},{}],26:[function(_dereq_,module,exports){\n'use strict';\nvar hide = _dereq_(32)\n , redef = _dereq_(62)\n , fails = _dereq_(25)\n , defined = _dereq_(20)\n , wks = _dereq_(84);\nmodule.exports = function(KEY, length, exec){\n var SYMBOL = wks(KEY)\n , original = ''[KEY];\n if(fails(function(){\n var O = {};\n O[SYMBOL] = function(){ return 7; };\n return ''[KEY](O) != 7;\n })){\n redef(String.prototype, KEY, exec(defined, SYMBOL, original));\n hide(RegExp.prototype, SYMBOL, length == 2\n // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)\n // 21.2.5.11 RegExp.prototype[@@split](string, limit)\n ? function(string, arg){ return original.call(string, this, arg); }\n // 21.2.5.6 RegExp.prototype[@@match](string)\n // 21.2.5.9 RegExp.prototype[@@search](string)\n : function(string){ return original.call(string, this); }\n );\n }\n};\n},{\"20\":20,\"25\":25,\"32\":32,\"62\":62,\"84\":84}],27:[function(_dereq_,module,exports){\n'use strict';\n// 21.2.5.3 get RegExp.prototype.flags\nvar anObject = _dereq_(5);\nmodule.exports = function(){\n var that = anObject(this)\n , result = '';\n if(that.global) result += 'g';\n if(that.ignoreCase) result += 'i';\n if(that.multiline) result += 'm';\n if(that.unicode) result += 'u';\n if(that.sticky) result += 'y';\n return result;\n};\n},{\"5\":5}],28:[function(_dereq_,module,exports){\nvar ctx = _dereq_(18)\n , call = _dereq_(41)\n , isArrayIter = _dereq_(36)\n , anObject = _dereq_(5)\n , toLength = _dereq_(80)\n , getIterFn = _dereq_(85);\nmodule.exports = function(iterable, entries, fn, that){\n var iterFn = getIterFn(iterable)\n , f = ctx(fn, that, entries ? 2 : 1)\n , index = 0\n , length, step, iterator;\n if(typeof iterFn != 'function')throw TypeError(iterable + ' is not iterable!');\n // fast case for arrays with default iterator\n if(isArrayIter(iterFn))for(length = toLength(iterable.length); length > index; index++){\n entries ? f(anObject(step = iterable[index])[0], step[1]) : f(iterable[index]);\n } else for(iterator = iterFn.call(iterable); !(step = iterator.next()).done; ){\n call(iterator, f, step.value, entries);\n }\n};\n},{\"18\":18,\"36\":36,\"41\":41,\"5\":5,\"80\":80,\"85\":85}],29:[function(_dereq_,module,exports){\n// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window\nvar toString = {}.toString\n , toIObject = _dereq_(79)\n , getNames = _dereq_(47).getNames;\n\nvar windowNames = typeof window == 'object' && Object.getOwnPropertyNames\n ? Object.getOwnPropertyNames(window) : [];\n\nvar getWindowNames = function(it){\n try {\n return getNames(it);\n } catch(e){\n return windowNames.slice();\n }\n};\n\nmodule.exports.get = function getOwnPropertyNames(it){\n if(windowNames && toString.call(it) == '[object Window]')return getWindowNames(it);\n return getNames(toIObject(it));\n};\n},{\"47\":47,\"79\":79}],30:[function(_dereq_,module,exports){\n// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar global = module.exports = typeof window != 'undefined' && window.Math == Math\n ? window : typeof self != 'undefined' && self.Math == Math ? self : Function('return this')();\nif(typeof __g == 'number')__g = global; // eslint-disable-line no-undef\n},{}],31:[function(_dereq_,module,exports){\nvar hasOwnProperty = {}.hasOwnProperty;\nmodule.exports = function(it, key){\n return hasOwnProperty.call(it, key);\n};\n},{}],32:[function(_dereq_,module,exports){\nvar $ = _dereq_(47)\n , createDesc = _dereq_(61);\nmodule.exports = _dereq_(21) ? function(object, key, value){\n return $.setDesc(object, key, createDesc(1, value));\n} : function(object, key, value){\n object[key] = value;\n return object;\n};\n},{\"21\":21,\"47\":47,\"61\":61}],33:[function(_dereq_,module,exports){\nmodule.exports = _dereq_(30).document && document.documentElement;\n},{\"30\":30}],34:[function(_dereq_,module,exports){\n// fast apply, http://jsperf.lnkit.com/fast-apply/5\nmodule.exports = function(fn, args, that){\n var un = that === undefined;\n switch(args.length){\n case 0: return un ? fn()\n : fn.call(that);\n case 1: return un ? fn(args[0])\n : fn.call(that, args[0]);\n case 2: return un ? fn(args[0], args[1])\n : fn.call(that, args[0], args[1]);\n case 3: return un ? fn(args[0], args[1], args[2])\n : fn.call(that, args[0], args[1], args[2]);\n case 4: return un ? fn(args[0], args[1], args[2], args[3])\n : fn.call(that, args[0], args[1], args[2], args[3]);\n } return fn.apply(that, args);\n};\n},{}],35:[function(_dereq_,module,exports){\n// fallback for non-array-like ES3 and non-enumerable old V8 strings\nvar cof = _dereq_(12);\nmodule.exports = Object('z').propertyIsEnumerable(0) ? Object : function(it){\n return cof(it) == 'String' ? it.split('') : Object(it);\n};\n},{\"12\":12}],36:[function(_dereq_,module,exports){\n// check on default Array iterator\nvar Iterators = _dereq_(46)\n , ITERATOR = _dereq_(84)('iterator')\n , ArrayProto = Array.prototype;\n\nmodule.exports = function(it){\n return (Iterators.Array || ArrayProto[ITERATOR]) === it;\n};\n},{\"46\":46,\"84\":84}],37:[function(_dereq_,module,exports){\n// 7.2.2 IsArray(argument)\nvar cof = _dereq_(12);\nmodule.exports = Array.isArray || function(arg){\n return cof(arg) == 'Array';\n};\n},{\"12\":12}],38:[function(_dereq_,module,exports){\n// 20.1.2.3 Number.isInteger(number)\nvar isObject = _dereq_(39)\n , floor = Math.floor;\nmodule.exports = function isInteger(it){\n return !isObject(it) && isFinite(it) && floor(it) === it;\n};\n},{\"39\":39}],39:[function(_dereq_,module,exports){\nmodule.exports = function(it){\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n},{}],40:[function(_dereq_,module,exports){\n// 7.2.8 IsRegExp(argument)\nvar isObject = _dereq_(39)\n , cof = _dereq_(12)\n , MATCH = _dereq_(84)('match');\nmodule.exports = function(it){\n var isRegExp;\n return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : cof(it) == 'RegExp');\n};\n},{\"12\":12,\"39\":39,\"84\":84}],41:[function(_dereq_,module,exports){\n// call something on iterator step with safe closing on error\nvar anObject = _dereq_(5);\nmodule.exports = function(iterator, fn, value, entries){\n try {\n return entries ? fn(anObject(value)[0], value[1]) : fn(value);\n // 7.4.6 IteratorClose(iterator, completion)\n } catch(e){\n var ret = iterator['return'];\n if(ret !== undefined)anObject(ret.call(iterator));\n throw e;\n }\n};\n},{\"5\":5}],42:[function(_dereq_,module,exports){\n'use strict';\nvar $ = _dereq_(47)\n , descriptor = _dereq_(61)\n , setToStringTag = _dereq_(67)\n , IteratorPrototype = {};\n\n// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()\n_dereq_(32)(IteratorPrototype, _dereq_(84)('iterator'), function(){ return this; });\n\nmodule.exports = function(Constructor, NAME, next){\n Constructor.prototype = $.create(IteratorPrototype, {next: descriptor(1, next)});\n setToStringTag(Constructor, NAME + ' Iterator');\n};\n},{\"32\":32,\"47\":47,\"61\":61,\"67\":67,\"84\":84}],43:[function(_dereq_,module,exports){\n'use strict';\nvar LIBRARY = _dereq_(49)\n , $def = _dereq_(19)\n , $redef = _dereq_(62)\n , hide = _dereq_(32)\n , has = _dereq_(31)\n , SYMBOL_ITERATOR = _dereq_(84)('iterator')\n , Iterators = _dereq_(46)\n , $iterCreate = _dereq_(42)\n , setToStringTag = _dereq_(67)\n , getProto = _dereq_(47).getProto\n , BUGGY = !([].keys && 'next' in [].keys()) // Safari has buggy iterators w/o `next`\n , FF_ITERATOR = '@@iterator'\n , KEYS = 'keys'\n , VALUES = 'values';\nvar returnThis = function(){ return this; };\nmodule.exports = function(Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCE){\n $iterCreate(Constructor, NAME, next);\n var getMethod = function(kind){\n if(!BUGGY && kind in proto)return proto[kind];\n switch(kind){\n case KEYS: return function keys(){ return new Constructor(this, kind); };\n case VALUES: return function values(){ return new Constructor(this, kind); };\n } return function entries(){ return new Constructor(this, kind); };\n };\n var TAG = NAME + ' Iterator'\n , proto = Base.prototype\n , _native = proto[SYMBOL_ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT]\n , _default = _native || getMethod(DEFAULT)\n , methods, key;\n // Fix native\n if(_native){\n var IteratorPrototype = getProto(_default.call(new Base));\n // Set @@toStringTag to native iterators\n setToStringTag(IteratorPrototype, TAG, true);\n // FF fix\n if(!LIBRARY && has(proto, FF_ITERATOR))hide(IteratorPrototype, SYMBOL_ITERATOR, returnThis);\n }\n // Define iterator\n if((!LIBRARY || FORCE) && (BUGGY || !(SYMBOL_ITERATOR in proto))){\n hide(proto, SYMBOL_ITERATOR, _default);\n }\n // Plug for library\n Iterators[NAME] = _default;\n Iterators[TAG] = returnThis;\n if(DEFAULT){\n methods = {\n values: DEFAULT == VALUES ? _default : getMethod(VALUES),\n keys: IS_SET ? _default : getMethod(KEYS),\n entries: DEFAULT != VALUES ? _default : getMethod('entries')\n };\n if(FORCE)for(key in methods){\n if(!(key in proto))$redef(proto, key, methods[key]);\n } else $def($def.P + $def.F * BUGGY, NAME, methods);\n }\n return methods;\n};\n},{\"19\":19,\"31\":31,\"32\":32,\"42\":42,\"46\":46,\"47\":47,\"49\":49,\"62\":62,\"67\":67,\"84\":84}],44:[function(_dereq_,module,exports){\nvar ITERATOR = _dereq_(84)('iterator')\n , SAFE_CLOSING = false;\n\ntry {\n var riter = [7][ITERATOR]();\n riter['return'] = function(){ SAFE_CLOSING = true; };\n Array.from(riter, function(){ throw 2; });\n} catch(e){ /* empty */ }\n\nmodule.exports = function(exec, skipClosing){\n if(!skipClosing && !SAFE_CLOSING)return false;\n var safe = false;\n try {\n var arr = [7]\n , iter = arr[ITERATOR]();\n iter.next = function(){ safe = true; };\n arr[ITERATOR] = function(){ return iter; };\n exec(arr);\n } catch(e){ /* empty */ }\n return safe;\n};\n},{\"84\":84}],45:[function(_dereq_,module,exports){\nmodule.exports = function(done, value){\n return {value: value, done: !!done};\n};\n},{}],46:[function(_dereq_,module,exports){\nmodule.exports = {};\n},{}],47:[function(_dereq_,module,exports){\nvar $Object = Object;\nmodule.exports = {\n create: $Object.create,\n getProto: $Object.getPrototypeOf,\n isEnum: {}.propertyIsEnumerable,\n getDesc: $Object.getOwnPropertyDescriptor,\n setDesc: $Object.defineProperty,\n setDescs: $Object.defineProperties,\n getKeys: $Object.keys,\n getNames: $Object.getOwnPropertyNames,\n getSymbols: $Object.getOwnPropertySymbols,\n each: [].forEach\n};\n},{}],48:[function(_dereq_,module,exports){\nvar $ = _dereq_(47)\n , toIObject = _dereq_(79);\nmodule.exports = function(object, el){\n var O = toIObject(object)\n , keys = $.getKeys(O)\n , length = keys.length\n , index = 0\n , key;\n while(length > index)if(O[key = keys[index++]] === el)return key;\n};\n},{\"47\":47,\"79\":79}],49:[function(_dereq_,module,exports){\nmodule.exports = false;\n},{}],50:[function(_dereq_,module,exports){\n// 20.2.2.14 Math.expm1(x)\nmodule.exports = Math.expm1 || function expm1(x){\n return (x = +x) == 0 ? x : x > -1e-6 && x < 1e-6 ? x + x * x / 2 : Math.exp(x) - 1;\n};\n},{}],51:[function(_dereq_,module,exports){\n// 20.2.2.20 Math.log1p(x)\nmodule.exports = Math.log1p || function log1p(x){\n return (x = +x) > -1e-8 && x < 1e-8 ? x - x * x / 2 : Math.log(1 + x);\n};\n},{}],52:[function(_dereq_,module,exports){\n// 20.2.2.28 Math.sign(x)\nmodule.exports = Math.sign || function sign(x){\n return (x = +x) == 0 || x != x ? x : x < 0 ? -1 : 1;\n};\n},{}],53:[function(_dereq_,module,exports){\nvar global = _dereq_(30)\n , macrotask = _dereq_(76).set\n , Observer = global.MutationObserver || global.WebKitMutationObserver\n , process = global.process\n , isNode = _dereq_(12)(process) == 'process'\n , head, last, notify;\n\nvar flush = function(){\n var parent, domain;\n if(isNode && (parent = process.domain)){\n process.domain = null;\n parent.exit();\n }\n while(head){\n domain = head.domain;\n if(domain)domain.enter();\n head.fn.call(); // <- currently we use it only for Promise - try / catch not required\n if(domain)domain.exit();\n head = head.next;\n } last = undefined;\n if(parent)parent.enter();\n};\n\n// Node.js\nif(isNode){\n notify = function(){\n process.nextTick(flush);\n };\n// browsers with MutationObserver\n} else if(Observer){\n var toggle = 1\n , node = document.createTextNode('');\n new Observer(flush).observe(node, {characterData: true}); // eslint-disable-line no-new\n notify = function(){\n node.data = toggle = -toggle;\n };\n// for other environments - macrotask based on:\n// - setImmediate\n// - MessageChannel\n// - window.postMessag\n// - onreadystatechange\n// - setTimeout\n} else {\n notify = function(){\n // strange IE + webpack dev server bug - use .call(global)\n macrotask.call(global, flush);\n };\n}\n\nmodule.exports = function asap(fn){\n var task = {fn: fn, next: undefined, domain: isNode && process.domain};\n if(last)last.next = task;\n if(!head){\n head = task;\n notify();\n } last = task;\n};\n},{\"12\":12,\"30\":30,\"76\":76}],54:[function(_dereq_,module,exports){\nvar $redef = _dereq_(62);\nmodule.exports = function(target, src){\n for(var key in src)$redef(target, key, src[key]);\n return target;\n};\n},{\"62\":62}],55:[function(_dereq_,module,exports){\n// 19.1.2.1 Object.assign(target, source, ...)\nvar $ = _dereq_(47)\n , toObject = _dereq_(81)\n , IObject = _dereq_(35);\n\n// should work with symbols and should have deterministic property order (V8 bug)\nmodule.exports = _dereq_(25)(function(){\n var a = Object.assign\n , A = {}\n , B = {}\n , S = Symbol()\n , K = 'abcdefghijklmnopqrst';\n A[S] = 7;\n K.split('').forEach(function(k){ B[k] = k; });\n return a({}, A)[S] != 7 || Object.keys(a({}, B)).join('') != K;\n}) ? function assign(target, source){ // eslint-disable-line no-unused-vars\n var T = toObject(target)\n , $$ = arguments\n , $$len = $$.length\n , index = 1\n , getKeys = $.getKeys\n , getSymbols = $.getSymbols\n , isEnum = $.isEnum;\n while($$len > index){\n var S = IObject($$[index++])\n , keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S)\n , length = keys.length\n , j = 0\n , key;\n while(length > j)if(isEnum.call(S, key = keys[j++]))T[key] = S[key];\n }\n return T;\n} : Object.assign;\n},{\"25\":25,\"35\":35,\"47\":47,\"81\":81}],56:[function(_dereq_,module,exports){\n// most Object methods by ES6 should accept primitives\nvar $def = _dereq_(19)\n , core = _dereq_(17)\n , fails = _dereq_(25);\nmodule.exports = function(KEY, exec){\n var $def = _dereq_(19)\n , fn = (core.Object || {})[KEY] || Object[KEY]\n , exp = {};\n exp[KEY] = exec(fn);\n $def($def.S + $def.F * fails(function(){ fn(1); }), 'Object', exp);\n};\n},{\"17\":17,\"19\":19,\"25\":25}],57:[function(_dereq_,module,exports){\nvar $ = _dereq_(47)\n , toIObject = _dereq_(79)\n , isEnum = $.isEnum;\nmodule.exports = function(isEntries){\n return function(it){\n var O = toIObject(it)\n , keys = $.getKeys(O)\n , length = keys.length\n , i = 0\n , result = []\n , key;\n while(length > i)if(isEnum.call(O, key = keys[i++])){\n result.push(isEntries ? [key, O[key]] : O[key]);\n } return result;\n };\n};\n},{\"47\":47,\"79\":79}],58:[function(_dereq_,module,exports){\n// all object keys, includes non-enumerable and symbols\nvar $ = _dereq_(47)\n , anObject = _dereq_(5)\n , Reflect = _dereq_(30).Reflect;\nmodule.exports = Reflect && Reflect.ownKeys || function ownKeys(it){\n var keys = $.getNames(anObject(it))\n , getSymbols = $.getSymbols;\n return getSymbols ? keys.concat(getSymbols(it)) : keys;\n};\n},{\"30\":30,\"47\":47,\"5\":5}],59:[function(_dereq_,module,exports){\n'use strict';\nvar path = _dereq_(60)\n , invoke = _dereq_(34)\n , aFunction = _dereq_(3);\nmodule.exports = function(/* ...pargs */){\n var fn = aFunction(this)\n , length = arguments.length\n , pargs = Array(length)\n , i = 0\n , _ = path._\n , holder = false;\n while(length > i)if((pargs[i] = arguments[i++]) === _)holder = true;\n return function(/* ...args */){\n var that = this\n , $$ = arguments\n , $$len = $$.length\n , j = 0, k = 0, args;\n if(!holder && !$$len)return invoke(fn, pargs, that);\n args = pargs.slice();\n if(holder)for(;length > j; j++)if(args[j] === _)args[j] = $$[k++];\n while($$len > k)args.push($$[k++]);\n return invoke(fn, args, that);\n };\n};\n},{\"3\":3,\"34\":34,\"60\":60}],60:[function(_dereq_,module,exports){\nmodule.exports = _dereq_(30);\n},{\"30\":30}],61:[function(_dereq_,module,exports){\nmodule.exports = function(bitmap, value){\n return {\n enumerable : !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable : !(bitmap & 4),\n value : value\n };\n};\n},{}],62:[function(_dereq_,module,exports){\n// add fake Function#toString\n// for correct work wrapped methods / constructors with methods like LoDash isNative\nvar global = _dereq_(30)\n , hide = _dereq_(32)\n , SRC = _dereq_(83)('src')\n , TO_STRING = 'toString'\n , $toString = Function[TO_STRING]\n , TPL = ('' + $toString).split(TO_STRING);\n\n_dereq_(17).inspectSource = function(it){\n return $toString.call(it);\n};\n\n(module.exports = function(O, key, val, safe){\n if(typeof val == 'function'){\n val.hasOwnProperty(SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));\n val.hasOwnProperty('name') || hide(val, 'name', key);\n }\n if(O === global){\n O[key] = val;\n } else {\n if(!safe)delete O[key];\n hide(O, key, val);\n }\n})(Function.prototype, TO_STRING, function toString(){\n return typeof this == 'function' && this[SRC] || $toString.call(this);\n});\n},{\"17\":17,\"30\":30,\"32\":32,\"83\":83}],63:[function(_dereq_,module,exports){\nmodule.exports = function(regExp, replace){\n var replacer = replace === Object(replace) ? function(part){\n return replace[part];\n } : replace;\n return function(it){\n return String(it).replace(regExp, replacer);\n };\n};\n},{}],64:[function(_dereq_,module,exports){\n// 7.2.9 SameValue(x, y)\nmodule.exports = Object.is || function is(x, y){\n return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y;\n};\n},{}],65:[function(_dereq_,module,exports){\n// Works with __proto__ only. Old v8 can't work with null proto objects.\n/* eslint-disable no-proto */\nvar getDesc = _dereq_(47).getDesc\n , isObject = _dereq_(39)\n , anObject = _dereq_(5);\nvar check = function(O, proto){\n anObject(O);\n if(!isObject(proto) && proto !== null)throw TypeError(proto + \": can't set as prototype!\");\n};\nmodule.exports = {\n set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line\n function(test, buggy, set){\n try {\n set = _dereq_(18)(Function.call, getDesc(Object.prototype, '__proto__').set, 2);\n set(test, []);\n buggy = !(test instanceof Array);\n } catch(e){ buggy = true; }\n return function setPrototypeOf(O, proto){\n check(O, proto);\n if(buggy)O.__proto__ = proto;\n else set(O, proto);\n return O;\n };\n }({}, false) : undefined),\n check: check\n};\n},{\"18\":18,\"39\":39,\"47\":47,\"5\":5}],66:[function(_dereq_,module,exports){\n'use strict';\nvar global = _dereq_(30)\n , $ = _dereq_(47)\n , DESCRIPTORS = _dereq_(21)\n , SPECIES = _dereq_(84)('species');\n\nmodule.exports = function(KEY){\n var C = global[KEY];\n if(DESCRIPTORS && C && !C[SPECIES])$.setDesc(C, SPECIES, {\n configurable: true,\n get: function(){ return this; }\n });\n};\n},{\"21\":21,\"30\":30,\"47\":47,\"84\":84}],67:[function(_dereq_,module,exports){\nvar def = _dereq_(47).setDesc\n , has = _dereq_(31)\n , TAG = _dereq_(84)('toStringTag');\n\nmodule.exports = function(it, tag, stat){\n if(it && !has(it = stat ? it : it.prototype, TAG))def(it, TAG, {configurable: true, value: tag});\n};\n},{\"31\":31,\"47\":47,\"84\":84}],68:[function(_dereq_,module,exports){\nvar global = _dereq_(30)\n , SHARED = '__core-js_shared__'\n , store = global[SHARED] || (global[SHARED] = {});\nmodule.exports = function(key){\n return store[key] || (store[key] = {});\n};\n},{\"30\":30}],69:[function(_dereq_,module,exports){\n// 7.3.20 SpeciesConstructor(O, defaultConstructor)\nvar anObject = _dereq_(5)\n , aFunction = _dereq_(3)\n , SPECIES = _dereq_(84)('species');\nmodule.exports = function(O, D){\n var C = anObject(O).constructor, S;\n return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? D : aFunction(S);\n};\n},{\"3\":3,\"5\":5,\"84\":84}],70:[function(_dereq_,module,exports){\nmodule.exports = function(it, Constructor, name){\n if(!(it instanceof Constructor))throw TypeError(name + \": use the 'new' operator!\");\n return it;\n};\n},{}],71:[function(_dereq_,module,exports){\nvar toInteger = _dereq_(78)\n , defined = _dereq_(20);\n// true -> String#at\n// false -> String#codePointAt\nmodule.exports = function(TO_STRING){\n return function(that, pos){\n var s = String(defined(that))\n , i = toInteger(pos)\n , l = s.length\n , a, b;\n if(i < 0 || i >= l)return TO_STRING ? '' : undefined;\n a = s.charCodeAt(i);\n return a < 0xd800 || a > 0xdbff || i + 1 === l\n || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff\n ? TO_STRING ? s.charAt(i) : a\n : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;\n };\n};\n},{\"20\":20,\"78\":78}],72:[function(_dereq_,module,exports){\n// helper for String#{startsWith, endsWith, includes}\nvar isRegExp = _dereq_(40)\n , defined = _dereq_(20);\n\nmodule.exports = function(that, searchString, NAME){\n if(isRegExp(searchString))throw TypeError('String#' + NAME + \" doesn't accept regex!\");\n return String(defined(that));\n};\n},{\"20\":20,\"40\":40}],73:[function(_dereq_,module,exports){\n// https://github.com/ljharb/proposal-string-pad-left-right\nvar toLength = _dereq_(80)\n , repeat = _dereq_(74)\n , defined = _dereq_(20);\n\nmodule.exports = function(that, maxLength, fillString, left){\n var S = String(defined(that))\n , stringLength = S.length\n , fillStr = fillString === undefined ? ' ' : String(fillString)\n , intMaxLength = toLength(maxLength);\n if(intMaxLength <= stringLength)return S;\n if(fillStr == '')fillStr = ' ';\n var fillLen = intMaxLength - stringLength\n , stringFiller = repeat.call(fillStr, Math.ceil(fillLen / fillStr.length));\n if(stringFiller.length > fillLen)stringFiller = stringFiller.slice(0, fillLen);\n return left ? stringFiller + S : S + stringFiller;\n};\n},{\"20\":20,\"74\":74,\"80\":80}],74:[function(_dereq_,module,exports){\n'use strict';\nvar toInteger = _dereq_(78)\n , defined = _dereq_(20);\n\nmodule.exports = function repeat(count){\n var str = String(defined(this))\n , res = ''\n , n = toInteger(count);\n if(n < 0 || n == Infinity)throw RangeError(\"Count can't be negative\");\n for(;n > 0; (n >>>= 1) && (str += str))if(n & 1)res += str;\n return res;\n};\n},{\"20\":20,\"78\":78}],75:[function(_dereq_,module,exports){\nvar $def = _dereq_(19)\n , defined = _dereq_(20)\n , fails = _dereq_(25)\n , spaces = '\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\xA0\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003' +\n '\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF'\n , space = '[' + spaces + ']'\n , non = '\\u200b\\u0085'\n , ltrim = RegExp('^' + space + space + '*')\n , rtrim = RegExp(space + space + '*$');\n\nvar $export = function(KEY, exec){\n var exp = {};\n exp[KEY] = exec(trim);\n $def($def.P + $def.F * fails(function(){\n return !!spaces[KEY]() || non[KEY]() != non;\n }), 'String', exp);\n};\n\n// 1 -> String#trimLeft\n// 2 -> String#trimRight\n// 3 -> String#trim\nvar trim = $export.trim = function(string, TYPE){\n string = String(defined(string));\n if(TYPE & 1)string = string.replace(ltrim, '');\n if(TYPE & 2)string = string.replace(rtrim, '');\n return string;\n};\n\nmodule.exports = $export;\n},{\"19\":19,\"20\":20,\"25\":25}],76:[function(_dereq_,module,exports){\n'use strict';\nvar ctx = _dereq_(18)\n , invoke = _dereq_(34)\n , html = _dereq_(33)\n , cel = _dereq_(22)\n , global = _dereq_(30)\n , process = global.process\n , setTask = global.setImmediate\n , clearTask = global.clearImmediate\n , MessageChannel = global.MessageChannel\n , counter = 0\n , queue = {}\n , ONREADYSTATECHANGE = 'onreadystatechange'\n , defer, channel, port;\nvar run = function(){\n var id = +this;\n if(queue.hasOwnProperty(id)){\n var fn = queue[id];\n delete queue[id];\n fn();\n }\n};\nvar listner = function(event){\n run.call(event.data);\n};\n// Node.js 0.9+ & IE10+ has setImmediate, otherwise:\nif(!setTask || !clearTask){\n setTask = function setImmediate(fn){\n var args = [], i = 1;\n while(arguments.length > i)args.push(arguments[i++]);\n queue[++counter] = function(){\n invoke(typeof fn == 'function' ? fn : Function(fn), args);\n };\n defer(counter);\n return counter;\n };\n clearTask = function clearImmediate(id){\n delete queue[id];\n };\n // Node.js 0.8-\n if(_dereq_(12)(process) == 'process'){\n defer = function(id){\n process.nextTick(ctx(run, id, 1));\n };\n // Browsers with MessageChannel, includes WebWorkers\n } else if(MessageChannel){\n channel = new MessageChannel;\n port = channel.port2;\n channel.port1.onmessage = listner;\n defer = ctx(port.postMessage, port, 1);\n // Browsers with postMessage, skip WebWorkers\n // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'\n } else if(global.addEventListener && typeof postMessage == 'function' && !global.importScripts){\n defer = function(id){\n global.postMessage(id + '', '*');\n };\n global.addEventListener('message', listner, false);\n // IE8-\n } else if(ONREADYSTATECHANGE in cel('script')){\n defer = function(id){\n html.appendChild(cel('script'))[ONREADYSTATECHANGE] = function(){\n html.removeChild(this);\n run.call(id);\n };\n };\n // Rest old browsers\n } else {\n defer = function(id){\n setTimeout(ctx(run, id, 1), 0);\n };\n }\n}\nmodule.exports = {\n set: setTask,\n clear: clearTask\n};\n},{\"12\":12,\"18\":18,\"22\":22,\"30\":30,\"33\":33,\"34\":34}],77:[function(_dereq_,module,exports){\nvar toInteger = _dereq_(78)\n , max = Math.max\n , min = Math.min;\nmodule.exports = function(index, length){\n index = toInteger(index);\n return index < 0 ? max(index + length, 0) : min(index, length);\n};\n},{\"78\":78}],78:[function(_dereq_,module,exports){\n// 7.1.4 ToInteger\nvar ceil = Math.ceil\n , floor = Math.floor;\nmodule.exports = function(it){\n return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);\n};\n},{}],79:[function(_dereq_,module,exports){\n// to indexed object, toObject with fallback for non-array-like ES3 strings\nvar IObject = _dereq_(35)\n , defined = _dereq_(20);\nmodule.exports = function(it){\n return IObject(defined(it));\n};\n},{\"20\":20,\"35\":35}],80:[function(_dereq_,module,exports){\n// 7.1.15 ToLength\nvar toInteger = _dereq_(78)\n , min = Math.min;\nmodule.exports = function(it){\n return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991\n};\n},{\"78\":78}],81:[function(_dereq_,module,exports){\n// 7.1.13 ToObject(argument)\nvar defined = _dereq_(20);\nmodule.exports = function(it){\n return Object(defined(it));\n};\n},{\"20\":20}],82:[function(_dereq_,module,exports){\n// 7.1.1 ToPrimitive(input [, PreferredType])\r\nvar isObject = _dereq_(39);\r\n// instead of the ES6 spec version, we didn't implement @@toPrimitive case\r\n// and the second argument - flag - preferred type is a string\r\nmodule.exports = function(it, S){\r\n if(!isObject(it))return it;\r\n var fn, val;\r\n if(S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it)))return val;\r\n if(typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it)))return val;\r\n if(!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it)))return val;\r\n throw TypeError(\"Can't convert object to primitive value\");\r\n};\n},{\"39\":39}],83:[function(_dereq_,module,exports){\nvar id = 0\n , px = Math.random();\nmodule.exports = function(key){\n return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));\n};\n},{}],84:[function(_dereq_,module,exports){\nvar store = _dereq_(68)('wks')\n , uid = _dereq_(83)\n , Symbol = _dereq_(30).Symbol;\nmodule.exports = function(name){\n return store[name] || (store[name] =\n Symbol && Symbol[name] || (Symbol || uid)('Symbol.' + name));\n};\n},{\"30\":30,\"68\":68,\"83\":83}],85:[function(_dereq_,module,exports){\nvar classof = _dereq_(11)\n , ITERATOR = _dereq_(84)('iterator')\n , Iterators = _dereq_(46);\nmodule.exports = _dereq_(17).getIteratorMethod = function(it){\n if(it != undefined)return it[ITERATOR]\n || it['@@iterator']\n || Iterators[classof(it)];\n};\n},{\"11\":11,\"17\":17,\"46\":46,\"84\":84}],86:[function(_dereq_,module,exports){\n'use strict';\nvar $ = _dereq_(47)\n , DESCRIPTORS = _dereq_(21)\n , createDesc = _dereq_(61)\n , html = _dereq_(33)\n , cel = _dereq_(22)\n , has = _dereq_(31)\n , cof = _dereq_(12)\n , $def = _dereq_(19)\n , invoke = _dereq_(34)\n , arrayMethod = _dereq_(9)\n , IE_PROTO = _dereq_(83)('__proto__')\n , isObject = _dereq_(39)\n , anObject = _dereq_(5)\n , aFunction = _dereq_(3)\n , toObject = _dereq_(81)\n , toIObject = _dereq_(79)\n , toInteger = _dereq_(78)\n , toIndex = _dereq_(77)\n , toLength = _dereq_(80)\n , IObject = _dereq_(35)\n , fails = _dereq_(25)\n , ObjectProto = Object.prototype\n , A = []\n , _slice = A.slice\n , _join = A.join\n , defineProperty = $.setDesc\n , getOwnDescriptor = $.getDesc\n , defineProperties = $.setDescs\n , $indexOf = _dereq_(8)(false)\n , factories = {}\n , IE8_DOM_DEFINE;\n\nif(!DESCRIPTORS){\n IE8_DOM_DEFINE = !fails(function(){\n return defineProperty(cel('div'), 'a', {get: function(){ return 7; }}).a != 7;\n });\n $.setDesc = function(O, P, Attributes){\n if(IE8_DOM_DEFINE)try {\n return defineProperty(O, P, Attributes);\n } catch(e){ /* empty */ }\n if('get' in Attributes || 'set' in Attributes)throw TypeError('Accessors not supported!');\n if('value' in Attributes)anObject(O)[P] = Attributes.value;\n return O;\n };\n $.getDesc = function(O, P){\n if(IE8_DOM_DEFINE)try {\n return getOwnDescriptor(O, P);\n } catch(e){ /* empty */ }\n if(has(O, P))return createDesc(!ObjectProto.propertyIsEnumerable.call(O, P), O[P]);\n };\n $.setDescs = defineProperties = function(O, Properties){\n anObject(O);\n var keys = $.getKeys(Properties)\n , length = keys.length\n , i = 0\n , P;\n while(length > i)$.setDesc(O, P = keys[i++], Properties[P]);\n return O;\n };\n}\n$def($def.S + $def.F * !DESCRIPTORS, 'Object', {\n // 19.1.2.6 / 15.2.3.3 Object.getOwnPropertyDescriptor(O, P)\n getOwnPropertyDescriptor: $.getDesc,\n // 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)\n defineProperty: $.setDesc,\n // 19.1.2.3 / 15.2.3.7 Object.defineProperties(O, Properties)\n defineProperties: defineProperties\n});\n\n // IE 8- don't enum bug keys\nvar keys1 = ('constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,' +\n 'toLocaleString,toString,valueOf').split(',')\n // Additional keys for getOwnPropertyNames\n , keys2 = keys1.concat('length', 'prototype')\n , keysLen1 = keys1.length;\n\n// Create object with `null` prototype: use iframe Object with cleared prototype\nvar createDict = function(){\n // Thrash, waste and sodomy: IE GC bug\n var iframe = cel('iframe')\n , i = keysLen1\n , gt = '>'\n , iframeDocument;\n iframe.style.display = 'none';\n html.appendChild(iframe);\n iframe.src = 'javascript:'; // eslint-disable-line no-script-url\n // createDict = iframe.contentWindow.Object;\n // html.removeChild(iframe);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write('