diff --git a/.gitignore b/.gitignore index 53a8849e..c18832da 100644 --- a/.gitignore +++ b/.gitignore @@ -45,3 +45,4 @@ testem.log # System Files .DS_Store Thumbs.db +cdk/cdk.out \ No newline at end of file diff --git a/cdk/cdk.context.json b/cdk/cdk.context.json new file mode 100644 index 00000000..3a8ffc83 --- /dev/null +++ b/cdk/cdk.context.json @@ -0,0 +1,3 @@ +{ + "acknowledged-issue-numbers": [19836] +} diff --git a/cdk/cdk.json b/cdk/cdk.json new file mode 100644 index 00000000..2f0e44c6 --- /dev/null +++ b/cdk/cdk.json @@ -0,0 +1,3 @@ +{ + "app": "node index" +} diff --git a/cdk/cdk.out/MyJSCCStaticWebsite.template.json b/cdk/cdk.out/MyJSCCStaticWebsite.template.json new file mode 100644 index 00000000..78c4e11d --- /dev/null +++ b/cdk/cdk.out/MyJSCCStaticWebsite.template.json @@ -0,0 +1,694 @@ +{ + "Resources": { + "JSCCStaticWebsiteJSCCOAI6D1DD7A4": { + "Type": "AWS::CloudFront::CloudFrontOriginAccessIdentity", + "Properties": { + "CloudFrontOriginAccessIdentityConfig": { + "Comment": "Allows CloudFront to reach the bucket" + } + }, + "Metadata": { + "aws:cdk:path": "MyJSCCStaticWebsite/JSCCStaticWebsite/JSCC-OAI/Resource" + } + }, + "JSCCStaticWebsiteJSCCStaticBucket81DADFF5": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketName": "siranush88-cloudfront-s3", + "PublicAccessBlockConfiguration": { + "BlockPublicAcls": true, + "BlockPublicPolicy": true, + "IgnorePublicAcls": true, + "RestrictPublicBuckets": true + }, + "Tags": [ + { + "Key": "aws-cdk:cr-owned:1149a121", + "Value": "true" + } + ], + "WebsiteConfiguration": { + "IndexDocument": "index.html" + } + }, + "UpdateReplacePolicy": "Retain", + "DeletionPolicy": "Retain", + "Metadata": { + "aws:cdk:path": "MyJSCCStaticWebsite/JSCCStaticWebsite/JSCCStaticBucket/Resource" + } + }, + "JSCCStaticWebsiteJSCCStaticBucketPolicy2E2CDB45": { + "Type": "AWS::S3::BucketPolicy", + "Properties": { + "Bucket": { + "Ref": "JSCCStaticWebsiteJSCCStaticBucket81DADFF5" + }, + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:GetObject", + "Effect": "Allow", + "Principal": { + "CanonicalUser": { + "Fn::GetAtt": [ + "JSCCStaticWebsiteJSCCOAI6D1DD7A4", + "S3CanonicalUserId" + ] + } + }, + "Resource": { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "JSCCStaticWebsiteJSCCStaticBucket81DADFF5", + "Arn" + ] + }, + "/*" + ] + ] + } + } + ], + "Version": "2012-10-17" + } + }, + "Metadata": { + "aws:cdk:path": "MyJSCCStaticWebsite/JSCCStaticWebsite/JSCCStaticBucket/Policy/Resource" + } + }, + "JSCCStaticWebsiteJSCCdistributionCFDistribution893FD123": { + "Type": "AWS::CloudFront::Distribution", + "Properties": { + "DistributionConfig": { + "DefaultCacheBehavior": { + "AllowedMethods": ["GET", "HEAD"], + "CachedMethods": ["GET", "HEAD"], + "Compress": true, + "ForwardedValues": { + "Cookies": { + "Forward": "none" + }, + "QueryString": false + }, + "TargetOriginId": "origin1", + "ViewerProtocolPolicy": "redirect-to-https" + }, + "DefaultRootObject": "index.html", + "Enabled": true, + "HttpVersion": "http2", + "IPV6Enabled": true, + "Origins": [ + { + "ConnectionAttempts": 3, + "ConnectionTimeout": 10, + "DomainName": { + "Fn::GetAtt": [ + "JSCCStaticWebsiteJSCCStaticBucket81DADFF5", + "RegionalDomainName" + ] + }, + "Id": "origin1", + "S3OriginConfig": { + "OriginAccessIdentity": { + "Fn::Join": [ + "", + [ + "origin-access-identity/cloudfront/", + { + "Ref": "JSCCStaticWebsiteJSCCOAI6D1DD7A4" + } + ] + ] + } + } + } + ], + "PriceClass": "PriceClass_100", + "ViewerCertificate": { + "CloudFrontDefaultCertificate": true + } + } + }, + "Metadata": { + "aws:cdk:path": "MyJSCCStaticWebsite/JSCCStaticWebsite/JSCC-distribution/CFDistribution" + } + }, + "JSCCStaticWebsiteJSCCBucketDeploymentAwsCliLayerC935F6C8": { + "Type": "AWS::Lambda::LayerVersion", + "Properties": { + "Content": { + "S3Bucket": { + "Ref": "AssetParameters1da15adb9ba73812c695f9922eb752050e0a392eba0a120d36d64bfce7cf8dc5S3BucketA4E7C173" + }, + "S3Key": { + "Fn::Join": [ + "", + [ + { + "Fn::Select": [ + 0, + { + "Fn::Split": [ + "||", + { + "Ref": "AssetParameters1da15adb9ba73812c695f9922eb752050e0a392eba0a120d36d64bfce7cf8dc5S3VersionKey35F67D7E" + } + ] + } + ] + }, + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "||", + { + "Ref": "AssetParameters1da15adb9ba73812c695f9922eb752050e0a392eba0a120d36d64bfce7cf8dc5S3VersionKey35F67D7E" + } + ] + } + ] + } + ] + ] + } + }, + "Description": "/opt/awscli/aws" + }, + "Metadata": { + "aws:cdk:path": "MyJSCCStaticWebsite/JSCCStaticWebsite/JSCC-Bucket-Deployment/AwsCliLayer/Resource", + "aws:asset:path": "asset.1da15adb9ba73812c695f9922eb752050e0a392eba0a120d36d64bfce7cf8dc5.zip", + "aws:asset:is-bundled": false, + "aws:asset:property": "Content" + } + }, + "JSCCStaticWebsiteJSCCBucketDeploymentCustomResource77507A35": { + "Type": "Custom::CDKBucketDeployment", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C81C01536", + "Arn" + ] + }, + "SourceBucketNames": [ + { + "Ref": "AssetParameters705042e10eb8fb6d7d7475c39e61e09836398336585ba5ef9814a4a774e8e009S3Bucket04EFB3A2" + } + ], + "SourceObjectKeys": [ + { + "Fn::Join": [ + "", + [ + { + "Fn::Select": [ + 0, + { + "Fn::Split": [ + "||", + { + "Ref": "AssetParameters705042e10eb8fb6d7d7475c39e61e09836398336585ba5ef9814a4a774e8e009S3VersionKey81BDF434" + } + ] + } + ] + }, + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "||", + { + "Ref": "AssetParameters705042e10eb8fb6d7d7475c39e61e09836398336585ba5ef9814a4a774e8e009S3VersionKey81BDF434" + } + ] + } + ] + } + ] + ] + } + ], + "DestinationBucketName": { + "Ref": "JSCCStaticWebsiteJSCCStaticBucket81DADFF5" + }, + "Prune": true, + "DistributionId": { + "Ref": "JSCCStaticWebsiteJSCCdistributionCFDistribution893FD123" + }, + "DistributionPaths": ["/*"] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "MyJSCCStaticWebsite/JSCCStaticWebsite/JSCC-Bucket-Deployment/CustomResource/Default" + } + }, + "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756CServiceRole89A01265": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ] + }, + "Metadata": { + "aws:cdk:path": "MyJSCCStaticWebsite/Custom::CDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C/ServiceRole/Resource" + } + }, + "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756CServiceRoleDefaultPolicy88902FDF": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": ["s3:GetObject*", "s3:GetBucket*", "s3:List*"], + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":s3:::", + { + "Ref": "AssetParameters705042e10eb8fb6d7d7475c39e61e09836398336585ba5ef9814a4a774e8e009S3Bucket04EFB3A2" + } + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":s3:::", + { + "Ref": "AssetParameters705042e10eb8fb6d7d7475c39e61e09836398336585ba5ef9814a4a774e8e009S3Bucket04EFB3A2" + }, + "/*" + ] + ] + } + ] + }, + { + "Action": [ + "s3:GetObject*", + "s3:GetBucket*", + "s3:List*", + "s3:DeleteObject*", + "s3:PutObject*", + "s3:Abort*" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "JSCCStaticWebsiteJSCCStaticBucket81DADFF5", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "JSCCStaticWebsiteJSCCStaticBucket81DADFF5", + "Arn" + ] + }, + "/*" + ] + ] + } + ] + }, + { + "Action": [ + "cloudfront:GetInvalidation", + "cloudfront:CreateInvalidation" + ], + "Effect": "Allow", + "Resource": "*" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756CServiceRoleDefaultPolicy88902FDF", + "Roles": [ + { + "Ref": "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756CServiceRole89A01265" + } + ] + }, + "Metadata": { + "aws:cdk:path": "MyJSCCStaticWebsite/Custom::CDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C/ServiceRole/DefaultPolicy/Resource" + } + }, + "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C81C01536": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "S3Bucket": { + "Ref": "AssetParametersf98b78092dcdd31f5e6d47489beb5f804d4835ef86a8085d0a2053cb9ae711daS3BucketF23C0DE7" + }, + "S3Key": { + "Fn::Join": [ + "", + [ + { + "Fn::Select": [ + 0, + { + "Fn::Split": [ + "||", + { + "Ref": "AssetParametersf98b78092dcdd31f5e6d47489beb5f804d4835ef86a8085d0a2053cb9ae711daS3VersionKey5E97B17D" + } + ] + } + ] + }, + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "||", + { + "Ref": "AssetParametersf98b78092dcdd31f5e6d47489beb5f804d4835ef86a8085d0a2053cb9ae711daS3VersionKey5E97B17D" + } + ] + } + ] + } + ] + ] + } + }, + "Role": { + "Fn::GetAtt": [ + "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756CServiceRole89A01265", + "Arn" + ] + }, + "Handler": "index.handler", + "Layers": [ + { + "Ref": "JSCCStaticWebsiteJSCCBucketDeploymentAwsCliLayerC935F6C8" + } + ], + "Runtime": "python3.7", + "Timeout": 900 + }, + "DependsOn": [ + "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756CServiceRoleDefaultPolicy88902FDF", + "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756CServiceRole89A01265" + ], + "Metadata": { + "aws:cdk:path": "MyJSCCStaticWebsite/Custom::CDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C/Resource", + "aws:asset:path": "asset.f98b78092dcdd31f5e6d47489beb5f804d4835ef86a8085d0a2053cb9ae711da", + "aws:asset:is-bundled": false, + "aws:asset:property": "Code" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/21Ry27CMBD8lt6dhdJeeisEISFVKgKpPRt7QUscu/LaRZGVf6+d8Dr0tLPPGc0+w2z6CtOnd3nmSulmkpTzCGkXpGpE7SwHH1UQc2YMuXgkexR15ODaLbKLXqGoD/YRb6SXLQb0JckXNAVytheFISnjoj54ZwOkT0/53FwpZF5rtIFCN+yUmVWZ+X/i1v7G/ZKyQNrHQlF2H/Ne8AukRVQNhtK7oDFsnCHV3cuXfEwWkrFsV0njj3Fdm6lhbC1vBSGLJwyDNb0wst1rCSlf/JAd+i/0XETtsmMGg7OraNUg8wby6BX3gmQLaevM6GeJd4kj6q8klSkEVTZUGYL5mWtDA2cvrNMIJ578zqbwlv96YqLKx+xci7Ad4x/fxwiN9AEAAA==" + }, + "Metadata": { + "aws:cdk:path": "MyJSCCStaticWebsite/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Parameters": { + "AssetParameters1da15adb9ba73812c695f9922eb752050e0a392eba0a120d36d64bfce7cf8dc5S3BucketA4E7C173": { + "Type": "String", + "Description": "S3 bucket for asset \"1da15adb9ba73812c695f9922eb752050e0a392eba0a120d36d64bfce7cf8dc5\"" + }, + "AssetParameters1da15adb9ba73812c695f9922eb752050e0a392eba0a120d36d64bfce7cf8dc5S3VersionKey35F67D7E": { + "Type": "String", + "Description": "S3 key for asset version \"1da15adb9ba73812c695f9922eb752050e0a392eba0a120d36d64bfce7cf8dc5\"" + }, + "AssetParameters1da15adb9ba73812c695f9922eb752050e0a392eba0a120d36d64bfce7cf8dc5ArtifactHashF0E84BB2": { + "Type": "String", + "Description": "Artifact hash for asset \"1da15adb9ba73812c695f9922eb752050e0a392eba0a120d36d64bfce7cf8dc5\"" + }, + "AssetParametersf98b78092dcdd31f5e6d47489beb5f804d4835ef86a8085d0a2053cb9ae711daS3BucketF23C0DE7": { + "Type": "String", + "Description": "S3 bucket for asset \"f98b78092dcdd31f5e6d47489beb5f804d4835ef86a8085d0a2053cb9ae711da\"" + }, + "AssetParametersf98b78092dcdd31f5e6d47489beb5f804d4835ef86a8085d0a2053cb9ae711daS3VersionKey5E97B17D": { + "Type": "String", + "Description": "S3 key for asset version \"f98b78092dcdd31f5e6d47489beb5f804d4835ef86a8085d0a2053cb9ae711da\"" + }, + "AssetParametersf98b78092dcdd31f5e6d47489beb5f804d4835ef86a8085d0a2053cb9ae711daArtifactHashD85D28D8": { + "Type": "String", + "Description": "Artifact hash for asset \"f98b78092dcdd31f5e6d47489beb5f804d4835ef86a8085d0a2053cb9ae711da\"" + }, + "AssetParameters705042e10eb8fb6d7d7475c39e61e09836398336585ba5ef9814a4a774e8e009S3Bucket04EFB3A2": { + "Type": "String", + "Description": "S3 bucket for asset \"705042e10eb8fb6d7d7475c39e61e09836398336585ba5ef9814a4a774e8e009\"" + }, + "AssetParameters705042e10eb8fb6d7d7475c39e61e09836398336585ba5ef9814a4a774e8e009S3VersionKey81BDF434": { + "Type": "String", + "Description": "S3 key for asset version \"705042e10eb8fb6d7d7475c39e61e09836398336585ba5ef9814a4a774e8e009\"" + }, + "AssetParameters705042e10eb8fb6d7d7475c39e61e09836398336585ba5ef9814a4a774e8e009ArtifactHash5D70DBCC": { + "Type": "String", + "Description": "Artifact hash for asset \"705042e10eb8fb6d7d7475c39e61e09836398336585ba5ef9814a4a774e8e009\"" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + ] + } + } +} diff --git a/cdk/cdk.out/asset.1da15adb9ba73812c695f9922eb752050e0a392eba0a120d36d64bfce7cf8dc5.zip b/cdk/cdk.out/asset.1da15adb9ba73812c695f9922eb752050e0a392eba0a120d36d64bfce7cf8dc5.zip new file mode 100644 index 00000000..f816e8d5 Binary files /dev/null and b/cdk/cdk.out/asset.1da15adb9ba73812c695f9922eb752050e0a392eba0a120d36d64bfce7cf8dc5.zip differ diff --git a/cdk/cdk.out/asset.705042e10eb8fb6d7d7475c39e61e09836398336585ba5ef9814a4a774e8e009/assets/products.json b/cdk/cdk.out/asset.705042e10eb8fb6d7d7475c39e61e09836398336585ba5ef9814a4a774e8e009/assets/products.json new file mode 100644 index 00000000..2377a5b3 --- /dev/null +++ b/cdk/cdk.out/asset.705042e10eb8fb6d7d7475c39e61e09836398336585ba5ef9814a4a774e8e009/assets/products.json @@ -0,0 +1,58 @@ +[ + { + "count": 4, + "description": "Short Product Description1", + "id": "7567ec4b-b10c-48c5-9345-fc73c48a80aa", + "price": 2.4, + "title": "ProductOne" + }, + { + "count": 6, + "description": "Short Product Description3", + "id": "7567ec4b-b10c-48c5-9345-fc73c48a80a0", + "price": 10, + "title": "ProductNew" + }, + { + "count": 7, + "description": "Short Product Description2", + "id": "7567ec4b-b10c-48c5-9345-fc73c48a80a2", + "price": 23, + "title": "ProductTop" + }, + { + "count": 12, + "description": "Short Product Description7", + "id": "7567ec4b-b10c-48c5-9345-fc73c48a80a1", + "price": 15, + "title": "ProductTitle" + }, + { + "count": 7, + "description": "Short Product Description2", + "id": "7567ec4b-b10c-48c5-9345-fc73c48a80a3", + "price": 23, + "title": "Product" + }, + { + "count": 8, + "description": "Short Product Description4", + "id": "7567ec4b-b10c-48c5-9345-fc73348a80a1", + "price": 15, + "title": "ProductTest" + }, + { + "count": 2, + "description": "Short Product Descriptio1", + "id": "7567ec4b-b10c-48c5-9445-fc73c48a80a2", + "price": 23, + "title": "Product2" + }, + { + "count": 3, + "description": "Short Product Description7", + "id": "7567ec4b-b10c-45c5-9345-fc73c48a80a1", + "price": 15, + "title": "ProductName" + } +] diff --git a/cdk/cdk.out/asset.705042e10eb8fb6d7d7475c39e61e09836398336585ba5ef9814a4a774e8e009/favicon.ico b/cdk/cdk.out/asset.705042e10eb8fb6d7d7475c39e61e09836398336585ba5ef9814a4a774e8e009/favicon.ico new file mode 100644 index 00000000..997406ad Binary files /dev/null and b/cdk/cdk.out/asset.705042e10eb8fb6d7d7475c39e61e09836398336585ba5ef9814a4a774e8e009/favicon.ico differ diff --git a/cdk/cdk.out/asset.705042e10eb8fb6d7d7475c39e61e09836398336585ba5ef9814a4a774e8e009/index.html b/cdk/cdk.out/asset.705042e10eb8fb6d7d7475c39e61e09836398336585ba5ef9814a4a774e8e009/index.html new file mode 100644 index 00000000..66cf1eda --- /dev/null +++ b/cdk/cdk.out/asset.705042e10eb8fb6d7d7475c39e61e09836398336585ba5ef9814a4a774e8e009/index.html @@ -0,0 +1,27 @@ + + + + + App + + + + + + + + + + + + + + + + diff --git a/cdk/cdk.out/asset.705042e10eb8fb6d7d7475c39e61e09836398336585ba5ef9814a4a774e8e009/main.js b/cdk/cdk.out/asset.705042e10eb8fb6d7d7475c39e61e09836398336585ba5ef9814a4a774e8e009/main.js new file mode 100644 index 00000000..8d973f50 --- /dev/null +++ b/cdk/cdk.out/asset.705042e10eb8fb6d7d7475c39e61e09836398336585ba5ef9814a4a774e8e009/main.js @@ -0,0 +1,3546 @@ +"use strict"; +(self["webpackChunkapp"] = self["webpackChunkapp"] || []).push([ + ["main"], + { + /***/ 158: + /*!***************************************!*\ + !*** ./src/app/app-routing.module.ts ***! + \***************************************/ + /***/ ( + __unused_webpack_module, + __webpack_exports__, + __webpack_require__ + ) => { + __webpack_require__.r(__webpack_exports__); + /* harmony export */ __webpack_require__.d(__webpack_exports__, { + /* harmony export */ AppRoutingModule: () => + /* binding */ AppRoutingModule, + /* harmony export */ + }); + /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = + __webpack_require__(/*! @angular/router */ 124); + /* harmony import */ var _products_products_component__WEBPACK_IMPORTED_MODULE_0__ = + __webpack_require__(/*! ./products/products.component */ 4532); + /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = + __webpack_require__(/*! @angular/core */ 2560); + + const routes = [ + { + path: "", + component: + _products_products_component__WEBPACK_IMPORTED_MODULE_0__.ProductsComponent, + }, + { + path: "cart", + loadChildren: () => + Promise.resolve(/*! import() */) + .then( + __webpack_require__.bind( + __webpack_require__, + /*! ./cart/cart.module */ 2943 + ) + ) + .then((m) => m.CartModule), + }, + { + path: "admin", + loadChildren: () => + __webpack_require__ + .e(/*! import() */ "src_app_admin_admin_module_ts") + .then( + __webpack_require__.bind( + __webpack_require__, + /*! ./admin/admin.module */ 7095 + ) + ) + .then((m) => m.AdminModule), + }, + ]; + class AppRoutingModule {} + AppRoutingModule.ɵfac = function AppRoutingModule_Factory(t) { + return new (t || AppRoutingModule)(); + }; + AppRoutingModule.ɵmod = + /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵdefineNgModule" + ]({ + type: AppRoutingModule, + }); + AppRoutingModule.ɵinj = + /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵdefineInjector" + ]({ + imports: [ + _angular_router__WEBPACK_IMPORTED_MODULE_2__.RouterModule.forRoot( + routes + ), + _angular_router__WEBPACK_IMPORTED_MODULE_2__.RouterModule, + ], + }); + (function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsetNgModuleScope"]( + AppRoutingModule, + { + imports: [ + _angular_router__WEBPACK_IMPORTED_MODULE_2__.RouterModule, + ], + exports: [ + _angular_router__WEBPACK_IMPORTED_MODULE_2__.RouterModule, + ], + } + ); + })(); + + /***/ + }, + + /***/ 5041: + /*!**********************************!*\ + !*** ./src/app/app.component.ts ***! + \**********************************/ + /***/ ( + __unused_webpack_module, + __webpack_exports__, + __webpack_require__ + ) => { + __webpack_require__.r(__webpack_exports__); + /* harmony export */ __webpack_require__.d(__webpack_exports__, { + /* harmony export */ AppComponent: () => /* binding */ AppComponent, + /* harmony export */ + }); + /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = + __webpack_require__(/*! @angular/core */ 2560); + /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = + __webpack_require__(/*! @angular/router */ 124); + /* harmony import */ var _core_header_header_component__WEBPACK_IMPORTED_MODULE_0__ = + __webpack_require__(/*! ./core/header/header.component */ 3556); + + class AppComponent {} + AppComponent.ɵfac = function AppComponent_Factory(t) { + return new (t || AppComponent)(); + }; + AppComponent.ɵcmp = + /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵdefineComponent" + ]({ + type: AppComponent, + selectors: [["app-root"]], + decls: 3, + vars: 0, + consts: [[1, "container", "py-3", "py-md-5"]], + template: function AppComponent_Template(rf, ctx) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"]( + 0, + "app-header" + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"]( + 1, + "div", + 0 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"]( + 2, + "router-outlet" + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); + } + }, + dependencies: [ + _angular_router__WEBPACK_IMPORTED_MODULE_2__.RouterOutlet, + _core_header_header_component__WEBPACK_IMPORTED_MODULE_0__.HeaderComponent, + ], + styles: [ + "\n/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */", + ], + changeDetection: 0, + }); + + /***/ + }, + + /***/ 6747: + /*!*******************************!*\ + !*** ./src/app/app.module.ts ***! + \*******************************/ + /***/ ( + __unused_webpack_module, + __webpack_exports__, + __webpack_require__ + ) => { + __webpack_require__.r(__webpack_exports__); + /* harmony export */ __webpack_require__.d(__webpack_exports__, { + /* harmony export */ AppModule: () => /* binding */ AppModule, + /* harmony export */ + }); + /* harmony import */ var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_10__ = + __webpack_require__(/*! @angular/platform-browser */ 4497); + /* harmony import */ var _app_routing_module__WEBPACK_IMPORTED_MODULE_0__ = + __webpack_require__(/*! ./app-routing.module */ 158); + /* harmony import */ var _app_component__WEBPACK_IMPORTED_MODULE_1__ = + __webpack_require__(/*! ./app.component */ 5041); + /* harmony import */ var _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_11__ = + __webpack_require__(/*! @angular/platform-browser/animations */ 7146); + /* harmony import */ var _core_header_header_component__WEBPACK_IMPORTED_MODULE_2__ = + __webpack_require__(/*! ./core/header/header.component */ 3556); + /* harmony import */ var _angular_material_toolbar__WEBPACK_IMPORTED_MODULE_12__ = + __webpack_require__(/*! @angular/material/toolbar */ 2543); + /* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_13__ = + __webpack_require__(/*! @angular/material/button */ 4522); + /* harmony import */ var _angular_material_icon__WEBPACK_IMPORTED_MODULE_14__ = + __webpack_require__(/*! @angular/material/icon */ 7822); + /* harmony import */ var _angular_material_menu__WEBPACK_IMPORTED_MODULE_15__ = + __webpack_require__(/*! @angular/material/menu */ 8589); + /* harmony import */ var _angular_material_tooltip__WEBPACK_IMPORTED_MODULE_16__ = + __webpack_require__(/*! @angular/material/tooltip */ 6896); + /* harmony import */ var _products_products_module__WEBPACK_IMPORTED_MODULE_3__ = + __webpack_require__(/*! ./products/products.module */ 8980); + /* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_8__ = + __webpack_require__(/*! @angular/common/http */ 8987); + /* harmony import */ var _angular_material_badge__WEBPACK_IMPORTED_MODULE_17__ = + __webpack_require__(/*! @angular/material/badge */ 3335); + /* harmony import */ var _cart_cart_module__WEBPACK_IMPORTED_MODULE_4__ = + __webpack_require__(/*! ./cart/cart.module */ 2943); + /* harmony import */ var _core_injection_tokens_config_token__WEBPACK_IMPORTED_MODULE_5__ = + __webpack_require__(/*! ./core/injection-tokens/config.token */ 440); + /* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_6__ = + __webpack_require__(/*! ../environments/environment */ 2340); + /* harmony import */ var _core_interceptors_error_print_interceptor__WEBPACK_IMPORTED_MODULE_7__ = + __webpack_require__( + /*! ./core/interceptors/error-print.interceptor */ 8842 + ); + /* harmony import */ var _angular_material_snack_bar__WEBPACK_IMPORTED_MODULE_18__ = + __webpack_require__(/*! @angular/material/snack-bar */ 930); + /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_9__ = + __webpack_require__(/*! @angular/core */ 2560); + + const interceptors = [ + { + provide: + _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.HTTP_INTERCEPTORS, + useClass: + _core_interceptors_error_print_interceptor__WEBPACK_IMPORTED_MODULE_7__.ErrorPrintInterceptor, + multi: true, + }, + ]; + class AppModule {} + AppModule.ɵfac = function AppModule_Factory(t) { + return new (t || AppModule)(); + }; + AppModule.ɵmod = + /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_9__[ + "ɵɵdefineNgModule" + ]({ + type: AppModule, + bootstrap: [ + _app_component__WEBPACK_IMPORTED_MODULE_1__.AppComponent, + ], + }); + AppModule.ɵinj = + /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_9__[ + "ɵɵdefineInjector" + ]({ + providers: [ + interceptors, + { + provide: + _core_injection_tokens_config_token__WEBPACK_IMPORTED_MODULE_5__.CONFIG_TOKEN, + useValue: + _environments_environment__WEBPACK_IMPORTED_MODULE_6__.environment, + }, + ], + imports: [ + _angular_platform_browser__WEBPACK_IMPORTED_MODULE_10__.BrowserModule, + _app_routing_module__WEBPACK_IMPORTED_MODULE_0__.AppRoutingModule, + _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_11__.BrowserAnimationsModule, + _angular_material_toolbar__WEBPACK_IMPORTED_MODULE_12__.MatToolbarModule, + _angular_material_button__WEBPACK_IMPORTED_MODULE_13__.MatButtonModule, + _angular_material_icon__WEBPACK_IMPORTED_MODULE_14__.MatIconModule, + _angular_material_menu__WEBPACK_IMPORTED_MODULE_15__.MatMenuModule, + _angular_material_tooltip__WEBPACK_IMPORTED_MODULE_16__.MatTooltipModule, + _products_products_module__WEBPACK_IMPORTED_MODULE_3__.ProductsModule, + _cart_cart_module__WEBPACK_IMPORTED_MODULE_4__.CartModule, + _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.HttpClientModule, + _angular_material_badge__WEBPACK_IMPORTED_MODULE_17__.MatBadgeModule, + _angular_material_snack_bar__WEBPACK_IMPORTED_MODULE_18__.MatSnackBarModule, + ], + }); + (function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵsetNgModuleScope"]( + AppModule, + { + declarations: [ + _app_component__WEBPACK_IMPORTED_MODULE_1__.AppComponent, + _core_header_header_component__WEBPACK_IMPORTED_MODULE_2__.HeaderComponent, + ], + imports: [ + _angular_platform_browser__WEBPACK_IMPORTED_MODULE_10__.BrowserModule, + _app_routing_module__WEBPACK_IMPORTED_MODULE_0__.AppRoutingModule, + _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_11__.BrowserAnimationsModule, + _angular_material_toolbar__WEBPACK_IMPORTED_MODULE_12__.MatToolbarModule, + _angular_material_button__WEBPACK_IMPORTED_MODULE_13__.MatButtonModule, + _angular_material_icon__WEBPACK_IMPORTED_MODULE_14__.MatIconModule, + _angular_material_menu__WEBPACK_IMPORTED_MODULE_15__.MatMenuModule, + _angular_material_tooltip__WEBPACK_IMPORTED_MODULE_16__.MatTooltipModule, + _products_products_module__WEBPACK_IMPORTED_MODULE_3__.ProductsModule, + _cart_cart_module__WEBPACK_IMPORTED_MODULE_4__.CartModule, + _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.HttpClientModule, + _angular_material_badge__WEBPACK_IMPORTED_MODULE_17__.MatBadgeModule, + _angular_material_snack_bar__WEBPACK_IMPORTED_MODULE_18__.MatSnackBarModule, + ], + } + ); + })(); + + /***/ + }, + + /***/ 3951: + /*!*********************************************!*\ + !*** ./src/app/cart/cart-routing.module.ts ***! + \*********************************************/ + /***/ ( + __unused_webpack_module, + __webpack_exports__, + __webpack_require__ + ) => { + __webpack_require__.r(__webpack_exports__); + /* harmony export */ __webpack_require__.d(__webpack_exports__, { + /* harmony export */ CartRoutingModule: () => + /* binding */ CartRoutingModule, + /* harmony export */ + }); + /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = + __webpack_require__(/*! @angular/router */ 124); + /* harmony import */ var _cart_component__WEBPACK_IMPORTED_MODULE_0__ = + __webpack_require__(/*! ./cart.component */ 4918); + /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = + __webpack_require__(/*! @angular/core */ 2560); + + const routes = [ + { + path: "", + component: + _cart_component__WEBPACK_IMPORTED_MODULE_0__.CartComponent, + }, + ]; + class CartRoutingModule {} + CartRoutingModule.ɵfac = function CartRoutingModule_Factory(t) { + return new (t || CartRoutingModule)(); + }; + CartRoutingModule.ɵmod = + /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵdefineNgModule" + ]({ + type: CartRoutingModule, + }); + CartRoutingModule.ɵinj = + /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵdefineInjector" + ]({ + imports: [ + _angular_router__WEBPACK_IMPORTED_MODULE_2__.RouterModule.forChild( + routes + ), + _angular_router__WEBPACK_IMPORTED_MODULE_2__.RouterModule, + ], + }); + (function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsetNgModuleScope"]( + CartRoutingModule, + { + imports: [ + _angular_router__WEBPACK_IMPORTED_MODULE_2__.RouterModule, + ], + exports: [ + _angular_router__WEBPACK_IMPORTED_MODULE_2__.RouterModule, + ], + } + ); + })(); + + /***/ + }, + + /***/ 1915: + /*!*************************************************************************!*\ + !*** ./src/app/cart/cart-shipping-form/cart-shipping-form.component.ts ***! + \*************************************************************************/ + /***/ ( + __unused_webpack_module, + __webpack_exports__, + __webpack_require__ + ) => { + __webpack_require__.r(__webpack_exports__); + /* harmony export */ __webpack_require__.d(__webpack_exports__, { + /* harmony export */ CartShippingFormComponent: () => + /* binding */ CartShippingFormComponent, + /* harmony export */ + }); + /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = + __webpack_require__(/*! @angular/core */ 2560); + /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = + __webpack_require__(/*! @angular/common */ 4666); + /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_2__ = + __webpack_require__(/*! @angular/forms */ 2508); + /* harmony import */ var _angular_material_form_field__WEBPACK_IMPORTED_MODULE_3__ = + __webpack_require__(/*! @angular/material/form-field */ 5074); + /* harmony import */ var _angular_material_input__WEBPACK_IMPORTED_MODULE_4__ = + __webpack_require__(/*! @angular/material/input */ 8562); + + function CartShippingFormComponent_mat_error_5_Template(rf, ctx) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"]( + 0, + "mat-error" + ); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"]( + 1, + " First name is required! " + ); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); + } + } + function CartShippingFormComponent_mat_error_9_Template(rf, ctx) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"]( + 0, + "mat-error" + ); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"]( + 1, + " Last name is required! " + ); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); + } + } + function CartShippingFormComponent_mat_error_13_Template(rf, ctx) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"]( + 0, + "mat-error" + ); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"]( + 1, + " Shipping address is required! " + ); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); + } + } + class CartShippingFormComponent { + constructor() { + this.nextStep = + new _angular_core__WEBPACK_IMPORTED_MODULE_0__.EventEmitter(); + } + } + CartShippingFormComponent.ɵfac = + function CartShippingFormComponent_Factory(t) { + return new (t || CartShippingFormComponent)(); + }; + CartShippingFormComponent.ɵcmp = + /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineComponent" + ]({ + type: CartShippingFormComponent, + selectors: [["app-cart-shipping-form"]], + inputs: { + shippingInfo: "shippingInfo", + }, + outputs: { + nextStep: "nextStep", + }, + decls: 18, + vars: 4, + consts: [ + [3, "formGroup", "ngSubmit"], + [1, "row"], + [1, "col", "col-md-6"], + [1, "w-100"], + [ + "formControlName", + "firstName", + "name", + "firstName", + "placeholder", + "First name", + "type", + "text", + "matInput", + "", + "required", + "", + ], + [4, "ngIf"], + [ + "formControlName", + "lastName", + "name", + "lastName", + "placeholder", + "Last name", + "type", + "text", + "matInput", + "", + "required", + "", + ], + [1, "col-12"], + [ + "formControlName", + "address", + "name", + "address", + "placeholder", + "Shipping address", + "type", + "text", + "matInput", + "", + "required", + "", + ], + [ + "formControlName", + "comment", + "name", + "comment", + "placeholder", + "Comment", + "type", + "text", + "matInput", + "", + ], + [1, "d-none"], + ], + template: function CartShippingFormComponent_Template(rf, ctx) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"]( + 0, + "form", + 0 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]( + "ngSubmit", + function CartShippingFormComponent_Template_form_ngSubmit_0_listener() { + return ctx.nextStep.emit(); + } + ); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"]( + 1, + "div", + 1 + )(2, "div", 2)(3, "mat-form-field", 3); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"]( + 4, + "input", + 4 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"]( + 5, + CartShippingFormComponent_mat_error_5_Template, + 2, + 0, + "mat-error", + 5 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()(); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"]( + 6, + "div", + 2 + )(7, "mat-form-field", 3); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"]( + 8, + "input", + 6 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"]( + 9, + CartShippingFormComponent_mat_error_9_Template, + 2, + 0, + "mat-error", + 5 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()(); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"]( + 10, + "div", + 7 + )(11, "mat-form-field", 3); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"]( + 12, + "input", + 8 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"]( + 13, + CartShippingFormComponent_mat_error_13_Template, + 2, + 0, + "mat-error", + 5 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()(); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"]( + 14, + "div", + 7 + )(15, "mat-form-field", 3); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"]( + 16, + "input", + 9 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵelementEnd" + ]()()(); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"]( + 17, + "button", + 10 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); + } + if (rf & 2) { + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]( + "formGroup", + ctx.shippingInfo + ); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]( + "ngIf", + ctx.shippingInfo.getError("required", "firstName") + ); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]( + "ngIf", + ctx.shippingInfo.getError("required", "lastName") + ); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]( + "ngIf", + ctx.shippingInfo.getError("required", "address") + ); + } + }, + dependencies: [ + _angular_common__WEBPACK_IMPORTED_MODULE_1__.NgIf, + _angular_forms__WEBPACK_IMPORTED_MODULE_2__["ɵNgNoValidate"], + _angular_forms__WEBPACK_IMPORTED_MODULE_2__.DefaultValueAccessor, + _angular_forms__WEBPACK_IMPORTED_MODULE_2__.NgControlStatus, + _angular_forms__WEBPACK_IMPORTED_MODULE_2__.NgControlStatusGroup, + _angular_forms__WEBPACK_IMPORTED_MODULE_2__.RequiredValidator, + _angular_forms__WEBPACK_IMPORTED_MODULE_2__.FormGroupDirective, + _angular_forms__WEBPACK_IMPORTED_MODULE_2__.FormControlName, + _angular_material_form_field__WEBPACK_IMPORTED_MODULE_3__.MatFormField, + _angular_material_form_field__WEBPACK_IMPORTED_MODULE_3__.MatError, + _angular_material_input__WEBPACK_IMPORTED_MODULE_4__.MatInput, + ], + styles: [ + "\n/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */", + ], + }); + + /***/ + }, + + /***/ 4918: + /*!****************************************!*\ + !*** ./src/app/cart/cart.component.ts ***! + \****************************************/ + /***/ ( + __unused_webpack_module, + __webpack_exports__, + __webpack_require__ + ) => { + __webpack_require__.r(__webpack_exports__); + /* harmony export */ __webpack_require__.d(__webpack_exports__, { + /* harmony export */ CartComponent: () => /* binding */ CartComponent, + /* harmony export */ + }); + /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_5__ = + __webpack_require__(/*! @angular/forms */ 2508); + /* harmony import */ var _angular_cdk_stepper__WEBPACK_IMPORTED_MODULE_8__ = + __webpack_require__(/*! @angular/cdk/stepper */ 1861); + /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_6__ = + __webpack_require__(/*! rxjs/operators */ 9196); + /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_7__ = + __webpack_require__(/*! rxjs/operators */ 635); + /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4__ = + __webpack_require__(/*! @angular/core */ 2560); + /* harmony import */ var _checkout_service__WEBPACK_IMPORTED_MODULE_0__ = + __webpack_require__(/*! ./checkout.service */ 1497); + /* harmony import */ var _cart_service__WEBPACK_IMPORTED_MODULE_1__ = + __webpack_require__(/*! ./cart.service */ 4466); + /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_9__ = + __webpack_require__(/*! @angular/common */ 4666); + /* harmony import */ var _angular_material_card__WEBPACK_IMPORTED_MODULE_10__ = + __webpack_require__(/*! @angular/material/card */ 2156); + /* harmony import */ var _angular_material_stepper__WEBPACK_IMPORTED_MODULE_11__ = + __webpack_require__(/*! @angular/material/stepper */ 4193); + /* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_12__ = + __webpack_require__(/*! @angular/material/button */ 4522); + /* harmony import */ var _angular_material_progress_spinner__WEBPACK_IMPORTED_MODULE_13__ = + __webpack_require__(/*! @angular/material/progress-spinner */ 6511); + /* harmony import */ var _cart_shipping_form_cart_shipping_form_component__WEBPACK_IMPORTED_MODULE_2__ = + __webpack_require__( + /*! ./cart-shipping-form/cart-shipping-form.component */ 1915 + ); + /* harmony import */ var _order_summary_order_summary_component__WEBPACK_IMPORTED_MODULE_3__ = + __webpack_require__( + /*! ./order-summary/order-summary.component */ 1708 + ); + + function CartComponent_div_0_ng_container_9_app_order_summary_1_Template( + rf, + ctx + ) { + if (rf & 1) { + const _r11 = + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵgetCurrentView"](); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"]( + 0, + "app-order-summary", + 20 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]( + "add", + function CartComponent_div_0_ng_container_9_app_order_summary_1_Template_app_order_summary_add_0_listener( + $event + ) { + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"]( + _r11 + ); + const ctx_r10 = + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]( + 3 + ); + return _angular_core__WEBPACK_IMPORTED_MODULE_4__[ + "ɵɵresetView" + ](ctx_r10.add($event)); + } + )( + "remove", + function CartComponent_div_0_ng_container_9_app_order_summary_1_Template_app_order_summary_remove_0_listener( + $event + ) { + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"]( + _r11 + ); + const ctx_r12 = + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]( + 3 + ); + return _angular_core__WEBPACK_IMPORTED_MODULE_4__[ + "ɵɵresetView" + ](ctx_r12.remove($event)); + } + ); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"](); + } + if (rf & 2) { + const state_r3 = + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]( + 2 + ).ngIf; + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]( + "products", + state_r3.products + )("totalPrice", state_r3.totalPrice)("showControls", true); + } + } + function CartComponent_div_0_ng_container_9_ng_template_2_Template( + rf, + ctx + ) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"]( + 0, + "div", + 21 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"]( + 1, + "mat-spinner", + 22 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"](); + } + if (rf & 2) { + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]( + "diameter", + 40 + ); + } + } + function CartComponent_div_0_ng_container_9_Template(rf, ctx) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_4__[ + "ɵɵelementContainerStart" + ](0); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"]( + 1, + CartComponent_div_0_ng_container_9_app_order_summary_1_Template, + 1, + 3, + "app-order-summary", + 18 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"]( + 2, + CartComponent_div_0_ng_container_9_ng_template_2_Template, + 2, + 1, + "ng-template", + null, + 19, + _angular_core__WEBPACK_IMPORTED_MODULE_4__[ + "ɵɵtemplateRefExtractor" + ] + ); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"]( + 4, + "div", + 11 + )(5, "button", 13); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](6, " next "); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()(); + _angular_core__WEBPACK_IMPORTED_MODULE_4__[ + "ɵɵelementContainerEnd" + ](); + } + if (rf & 2) { + const _r8 = + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵreference"](3); + const state_r3 = + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]() + .ngIf; + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]( + "ngIf", + state_r3.products + )("ngIfElse", _r8); + } + } + function CartComponent_div_0_app_order_summary_20_Template(rf, ctx) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"]( + 0, + "app-order-summary", + 23 + ); + } + if (rf & 2) { + const state_r3 = + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]() + .ngIf; + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]( + "products", + state_r3.products + )("totalPrice", state_r3.totalPrice)("showControls", false); + } + } + function CartComponent_div_0_Template(rf, ctx) { + if (rf & 1) { + const _r17 = + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵgetCurrentView"](); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"]( + 0, + "div", + 2 + )( + 1, + "div", + 3 + )(2, "mat-card")(3, "h1", 4); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](4, "Checkout"); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"](); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"]( + 5, + "mat-card-content" + )( + 6, + "mat-vertical-stepper", + 5, + 6 + )(8, "mat-step", 7); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"]( + 9, + CartComponent_div_0_ng_container_9_Template, + 7, + 2, + "ng-container", + 8 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"](); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"]( + 10, + "mat-step", + 9 + )(11, "h2"); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"]( + 12, + "Shipping address" + ); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"](); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"]( + 13, + "app-cart-shipping-form", + 10 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]( + "nextStep", + function CartComponent_div_0_Template_app_cart_shipping_form_nextStep_13_listener() { + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"]( + _r17 + ); + const _r4 = + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵreference"](7); + return _angular_core__WEBPACK_IMPORTED_MODULE_4__[ + "ɵɵresetView" + ](_r4.next()); + } + ); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"](); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"]( + 14, + "div", + 11 + )(15, "button", 12); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](16, " back "); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"](); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"]( + 17, + "button", + 13 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](18, " next "); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()(); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"]( + 19, + "mat-step", + 14 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"]( + 20, + CartComponent_div_0_app_order_summary_20_Template, + 1, + 3, + "app-order-summary", + 15 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"]( + 21, + "div", + 2 + )( + 22, + "div", + 16 + )(23, "h2"); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"]( + 24, + "Shipping" + ); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"](); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"]( + 25, + "p" + ); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](26); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"](); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"]( + 27, + "p" + ); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](28); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()(); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"]( + 29, + "div", + 16 + )(30, "h2"); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](31, "Comment"); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"](); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"]( + 32, + "p" + ); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](33); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()(); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"]( + 34, + "div", + 11 + )(35, "button", 12); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](36, " back "); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"](); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"]( + 37, + "button", + 17 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"]( + 38, + " place order " + ); + _angular_core__WEBPACK_IMPORTED_MODULE_4__[ + "ɵɵelementEnd" + ]()()()()()()()(); + } + if (rf & 2) { + const state_r3 = ctx.ngIf; + const ctx_r0 = + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](); + const _r1 = + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵreference"](5); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](6); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]( + "linear", + true + ); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]( + "completed", + state_r3.cartEmpty + ); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]( + "ngIf", + state_r3.cartEmpty + )("ngIfElse", _r1); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]( + "stepControl", + ctx_r0.shippingInfo + ); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](3); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]( + "shippingInfo", + ctx_r0.shippingInfo + ); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](7); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]( + "ngIf", + state_r3.products + ); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](6); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"]( + ctx_r0.fullName + ); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"]( + ctx_r0.address + ); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](5); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"]( + ctx_r0.comment + ); + } + } + function CartComponent_ng_template_4_Template(rf, ctx) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"]( + 0, + "div", + 24 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"]( + 1, + " The cart is empty. Didn't you like anything in our shop? " + ); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"](); + } + } + const _c0 = function (a0, a1, a2) { + return { + products: a0, + totalPrice: a1, + cartEmpty: a2, + }; + }; + class CartComponent { + constructor(fb, checkoutService, cartService) { + this.fb = fb; + this.checkoutService = checkoutService; + this.cartService = cartService; + } + get fullName() { + const { firstName, lastName } = this.shippingInfo.value; + return `${firstName} ${lastName}`; + } + get address() { + return this.shippingInfo.value.address; + } + get comment() { + return this.shippingInfo.value.comment; + } + ngOnInit() { + this.shippingInfo = this.fb.group({ + lastName: [ + "", + _angular_forms__WEBPACK_IMPORTED_MODULE_5__.Validators.required, + ], + firstName: [ + "", + _angular_forms__WEBPACK_IMPORTED_MODULE_5__.Validators.required, + ], + address: [ + "", + _angular_forms__WEBPACK_IMPORTED_MODULE_5__.Validators.required, + ], + comment: "", + }); + this.products$ = this.checkoutService.getProductsForCheckout().pipe( + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.shareReplay)({ + refCount: true, + bufferSize: 1, + }) + ); + this.totalPrice$ = this.products$.pipe( + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.map)( + (products) => { + const total = products.reduce( + (acc, val) => acc + val.totalPrice, + 0 + ); + return +total.toFixed(2); + } + ), + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.shareReplay)({ + refCount: true, + bufferSize: 1, + }) + ); + this.totalInCart$ = this.cartService.totalInCart$; + this.cartEmpty$ = this.totalInCart$.pipe( + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.map)( + (count) => count > 0 + ) + ); + } + add(id) { + this.cartService.addItem(id); + } + remove(id) { + this.cartService.removeItem(id); + } + } + CartComponent.ɵfac = function CartComponent_Factory(t) { + return new (t || CartComponent)( + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"]( + _angular_forms__WEBPACK_IMPORTED_MODULE_5__.UntypedFormBuilder + ), + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"]( + _checkout_service__WEBPACK_IMPORTED_MODULE_0__.CheckoutService + ), + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"]( + _cart_service__WEBPACK_IMPORTED_MODULE_1__.CartService + ) + ); + }; + CartComponent.ɵcmp = + /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_4__[ + "ɵɵdefineComponent" + ]({ + type: CartComponent, + selectors: [["app-cart"]], + features: [ + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵProvidersFeature"]([ + { + provide: + _angular_cdk_stepper__WEBPACK_IMPORTED_MODULE_8__.STEPPER_GLOBAL_OPTIONS, + useValue: { + displayDefaultIndicatorType: false, + }, + }, + ]), + ], + decls: 6, + vars: 11, + consts: [ + ["class", "row", 4, "ngIf"], + ["emptyCartTemplate", ""], + [1, "row"], + [1, "col", "mx-auto"], + ["mat-card-title", "", 1, "text-center", "pt-4"], + [3, "linear"], + ["stepper", ""], + ["label", "Review your cart", 3, "completed"], + [4, "ngIf", "ngIfElse"], + ["label", "Shipping address", 3, "stepControl"], + [3, "shippingInfo", "nextStep"], + [1, "text-right"], + ["mat-button", "", "matStepperPrevious", "", 1, "text-uppercase"], + [ + "color", + "primary", + "mat-flat-button", + "", + "matStepperNext", + "", + 1, + "text-uppercase", + ], + ["label", "Review your order"], + [3, "products", "totalPrice", "showControls", 4, "ngIf"], + [1, "col", "col-md-6"], + ["color", "primary", "mat-flat-button", "", 1, "text-uppercase"], + [ + 3, + "products", + "totalPrice", + "showControls", + "add", + "remove", + 4, + "ngIf", + "ngIfElse", + ], + ["loaderTemplate", ""], + [3, "products", "totalPrice", "showControls", "add", "remove"], + [1, "py-5"], + [1, "mx-auto", 3, "diameter"], + [3, "products", "totalPrice", "showControls"], + [1, "lead"], + ], + template: function CartComponent_Template(rf, ctx) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"]( + 0, + CartComponent_div_0_Template, + 39, + 10, + "div", + 0 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipe"]( + 1, + "async" + ); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipe"]( + 2, + "async" + ); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipe"]( + 3, + "async" + ); + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"]( + 4, + CartComponent_ng_template_4_Template, + 2, + 0, + "ng-template", + null, + 1, + _angular_core__WEBPACK_IMPORTED_MODULE_4__[ + "ɵɵtemplateRefExtractor" + ] + ); + } + if (rf & 2) { + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]( + "ngIf", + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpureFunction3"]( + 7, + _c0, + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipeBind1"]( + 1, + 1, + ctx.products$ + ), + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipeBind1"]( + 2, + 3, + ctx.totalPrice$ + ), + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipeBind1"]( + 3, + 5, + ctx.cartEmpty$ + ) + ) + ); + } + }, + dependencies: [ + _angular_common__WEBPACK_IMPORTED_MODULE_9__.NgIf, + _angular_material_card__WEBPACK_IMPORTED_MODULE_10__.MatCard, + _angular_material_card__WEBPACK_IMPORTED_MODULE_10__.MatCardContent, + _angular_material_card__WEBPACK_IMPORTED_MODULE_10__.MatCardTitle, + _angular_material_stepper__WEBPACK_IMPORTED_MODULE_11__.MatStep, + _angular_material_stepper__WEBPACK_IMPORTED_MODULE_11__.MatStepper, + _angular_material_stepper__WEBPACK_IMPORTED_MODULE_11__.MatStepperNext, + _angular_material_stepper__WEBPACK_IMPORTED_MODULE_11__.MatStepperPrevious, + _angular_material_button__WEBPACK_IMPORTED_MODULE_12__.MatButton, + _angular_material_progress_spinner__WEBPACK_IMPORTED_MODULE_13__.MatProgressSpinner, + _cart_shipping_form_cart_shipping_form_component__WEBPACK_IMPORTED_MODULE_2__.CartShippingFormComponent, + _order_summary_order_summary_component__WEBPACK_IMPORTED_MODULE_3__.OrderSummaryComponent, + _angular_common__WEBPACK_IMPORTED_MODULE_9__.AsyncPipe, + ], + styles: [ + "\n/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */", + ], + }); + + /***/ + }, + + /***/ 2943: + /*!*************************************!*\ + !*** ./src/app/cart/cart.module.ts ***! + \*************************************/ + /***/ ( + __unused_webpack_module, + __webpack_exports__, + __webpack_require__ + ) => { + __webpack_require__.r(__webpack_exports__); + /* harmony export */ __webpack_require__.d(__webpack_exports__, { + /* harmony export */ CartModule: () => /* binding */ CartModule, + /* harmony export */ + }); + /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_7__ = + __webpack_require__(/*! @angular/common */ 4666); + /* harmony import */ var _cart_component__WEBPACK_IMPORTED_MODULE_0__ = + __webpack_require__(/*! ./cart.component */ 4918); + /* harmony import */ var _cart_routing_module__WEBPACK_IMPORTED_MODULE_1__ = + __webpack_require__(/*! ./cart-routing.module */ 3951); + /* harmony import */ var _angular_material_card__WEBPACK_IMPORTED_MODULE_8__ = + __webpack_require__(/*! @angular/material/card */ 2156); + /* harmony import */ var _angular_material_stepper__WEBPACK_IMPORTED_MODULE_9__ = + __webpack_require__(/*! @angular/material/stepper */ 4193); + /* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_10__ = + __webpack_require__(/*! @angular/material/button */ 4522); + /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_11__ = + __webpack_require__(/*! @angular/forms */ 2508); + /* harmony import */ var _angular_material_form_field__WEBPACK_IMPORTED_MODULE_12__ = + __webpack_require__(/*! @angular/material/form-field */ 5074); + /* harmony import */ var _angular_material_input__WEBPACK_IMPORTED_MODULE_13__ = + __webpack_require__(/*! @angular/material/input */ 8562); + /* harmony import */ var _product_item_checkout_product_item_checkout_component__WEBPACK_IMPORTED_MODULE_2__ = + __webpack_require__( + /*! ./product-item-checkout/product-item-checkout.component */ 6540 + ); + /* harmony import */ var _core_cart_count_controls_cart_count_controls_module__WEBPACK_IMPORTED_MODULE_3__ = + __webpack_require__( + /*! ../core/cart-count-controls/cart-count-controls.module */ 7168 + ); + /* harmony import */ var _angular_material_progress_spinner__WEBPACK_IMPORTED_MODULE_14__ = + __webpack_require__(/*! @angular/material/progress-spinner */ 6511); + /* harmony import */ var _cart_shipping_form_cart_shipping_form_component__WEBPACK_IMPORTED_MODULE_4__ = + __webpack_require__( + /*! ./cart-shipping-form/cart-shipping-form.component */ 1915 + ); + /* harmony import */ var _order_summary_order_summary_component__WEBPACK_IMPORTED_MODULE_5__ = + __webpack_require__( + /*! ./order-summary/order-summary.component */ 1708 + ); + /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_6__ = + __webpack_require__(/*! @angular/core */ 2560); + + class CartModule {} + CartModule.ɵfac = function CartModule_Factory(t) { + return new (t || CartModule)(); + }; + CartModule.ɵmod = + /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_6__[ + "ɵɵdefineNgModule" + ]({ + type: CartModule, + }); + CartModule.ɵinj = + /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_6__[ + "ɵɵdefineInjector" + ]({ + imports: [ + _angular_common__WEBPACK_IMPORTED_MODULE_7__.CommonModule, + _cart_routing_module__WEBPACK_IMPORTED_MODULE_1__.CartRoutingModule, + _angular_material_card__WEBPACK_IMPORTED_MODULE_8__.MatCardModule, + _angular_material_stepper__WEBPACK_IMPORTED_MODULE_9__.MatStepperModule, + _angular_material_button__WEBPACK_IMPORTED_MODULE_10__.MatButtonModule, + _angular_forms__WEBPACK_IMPORTED_MODULE_11__.ReactiveFormsModule, + _angular_material_form_field__WEBPACK_IMPORTED_MODULE_12__.MatFormFieldModule, + _angular_material_input__WEBPACK_IMPORTED_MODULE_13__.MatInputModule, + _core_cart_count_controls_cart_count_controls_module__WEBPACK_IMPORTED_MODULE_3__.CartCountControlsModule, + _angular_material_progress_spinner__WEBPACK_IMPORTED_MODULE_14__.MatProgressSpinnerModule, + ], + }); + (function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵsetNgModuleScope"]( + CartModule, + { + declarations: [ + _cart_component__WEBPACK_IMPORTED_MODULE_0__.CartComponent, + _product_item_checkout_product_item_checkout_component__WEBPACK_IMPORTED_MODULE_2__.ProductItemCheckoutComponent, + _cart_shipping_form_cart_shipping_form_component__WEBPACK_IMPORTED_MODULE_4__.CartShippingFormComponent, + _order_summary_order_summary_component__WEBPACK_IMPORTED_MODULE_5__.OrderSummaryComponent, + ], + imports: [ + _angular_common__WEBPACK_IMPORTED_MODULE_7__.CommonModule, + _cart_routing_module__WEBPACK_IMPORTED_MODULE_1__.CartRoutingModule, + _angular_material_card__WEBPACK_IMPORTED_MODULE_8__.MatCardModule, + _angular_material_stepper__WEBPACK_IMPORTED_MODULE_9__.MatStepperModule, + _angular_material_button__WEBPACK_IMPORTED_MODULE_10__.MatButtonModule, + _angular_forms__WEBPACK_IMPORTED_MODULE_11__.ReactiveFormsModule, + _angular_material_form_field__WEBPACK_IMPORTED_MODULE_12__.MatFormFieldModule, + _angular_material_input__WEBPACK_IMPORTED_MODULE_13__.MatInputModule, + _core_cart_count_controls_cart_count_controls_module__WEBPACK_IMPORTED_MODULE_3__.CartCountControlsModule, + _angular_material_progress_spinner__WEBPACK_IMPORTED_MODULE_14__.MatProgressSpinnerModule, + ], + exports: [ + _cart_component__WEBPACK_IMPORTED_MODULE_0__.CartComponent, + ], + } + ); + })(); + + /***/ + }, + + /***/ 4466: + /*!**************************************!*\ + !*** ./src/app/cart/cart.service.ts ***! + \**************************************/ + /***/ ( + __unused_webpack_module, + __webpack_exports__, + __webpack_require__ + ) => { + __webpack_require__.r(__webpack_exports__); + /* harmony export */ __webpack_require__.d(__webpack_exports__, { + /* harmony export */ CartService: () => /* binding */ CartService, + /* harmony export */ + }); + /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = + __webpack_require__(/*! tslib */ 4929); + /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = + __webpack_require__(/*! rxjs */ 6317); + /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = + __webpack_require__(/*! rxjs/operators */ 635); + /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = + __webpack_require__(/*! rxjs/operators */ 9196); + /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4__ = + __webpack_require__(/*! @angular/core */ 2560); + var _CartService_cartSource; + + class CartService { + constructor() { + /** Key - item id, value - ordered amount */ + _CartService_cartSource.set( + this, + new rxjs__WEBPACK_IMPORTED_MODULE_0__.BehaviorSubject({}) + ); + // eslint-disable-next-line @typescript-eslint/member-ordering + this.cart$ = (0, + tslib__WEBPACK_IMPORTED_MODULE_1__.__classPrivateFieldGet)( + this, + _CartService_cartSource, + "f" + ).asObservable(); + // eslint-disable-next-line @typescript-eslint/member-ordering + this.totalInCart$ = this.cart$.pipe( + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_2__.map)((cart) => { + const values = Object.values(cart); + if (!values.length) { + return 0; + } + return values.reduce((acc, val) => acc + val, 0); + }), + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.shareReplay)({ + refCount: true, + bufferSize: 1, + }) + ); + } + addItem(id) { + this.updateCount(id, 1); + } + removeItem(id) { + this.updateCount(id, -1); + } + empty() { + (0, tslib__WEBPACK_IMPORTED_MODULE_1__.__classPrivateFieldGet)( + this, + _CartService_cartSource, + "f" + ).next({}); + } + updateCount(id, type) { + const val = (0, + tslib__WEBPACK_IMPORTED_MODULE_1__.__classPrivateFieldGet)( + this, + _CartService_cartSource, + "f" + ).getValue(); + const newVal = Object.assign({}, val); + if (!(id in newVal)) { + newVal[id] = 0; + } + if (type === 1) { + newVal[id] = ++newVal[id]; + (0, tslib__WEBPACK_IMPORTED_MODULE_1__.__classPrivateFieldGet)( + this, + _CartService_cartSource, + "f" + ).next(newVal); + return; + } + if (newVal[id] === 0) { + console.warn("No match. Skipping..."); + return; + } + newVal[id]--; + if (!newVal[id]) { + delete newVal[id]; + } + (0, tslib__WEBPACK_IMPORTED_MODULE_1__.__classPrivateFieldGet)( + this, + _CartService_cartSource, + "f" + ).next(newVal); + } + } + _CartService_cartSource = new WeakMap(); + CartService.ɵfac = function CartService_Factory(t) { + return new (t || CartService)(); + }; + CartService.ɵprov = + /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_4__[ + "ɵɵdefineInjectable" + ]({ + token: CartService, + factory: CartService.ɵfac, + providedIn: "root", + }); + + /***/ + }, + + /***/ 1497: + /*!******************************************!*\ + !*** ./src/app/cart/checkout.service.ts ***! + \******************************************/ + /***/ ( + __unused_webpack_module, + __webpack_exports__, + __webpack_require__ + ) => { + __webpack_require__.r(__webpack_exports__); + /* harmony export */ __webpack_require__.d(__webpack_exports__, { + /* harmony export */ CheckoutService: () => + /* binding */ CheckoutService, + /* harmony export */ + }); + /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = + __webpack_require__(/*! rxjs/operators */ 2673); + /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = + __webpack_require__(/*! rxjs/operators */ 635); + /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4__ = + __webpack_require__(/*! @angular/core */ 2560); + /* harmony import */ var _cart_service__WEBPACK_IMPORTED_MODULE_0__ = + __webpack_require__(/*! ./cart.service */ 4466); + /* harmony import */ var _products_products_service__WEBPACK_IMPORTED_MODULE_1__ = + __webpack_require__(/*! ../products/products.service */ 9855); + + class CheckoutService { + constructor(cartService, productsService) { + this.cartService = cartService; + this.productsService = productsService; + } + getProductsForCheckout() { + return this.cartService.cart$.pipe( + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_2__.switchMap)( + (cart) => + this.productsService + .getProductsForCheckout(Object.keys(cart)) + .pipe( + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.map)( + (products) => + products.map((product) => + Object.assign(Object.assign({}, product), { + orderedCount: cart[product.id], + totalPrice: +( + cart[product.id] * product.price + ).toFixed(2), + }) + ) + ) + ) + ) + ); + } + } + CheckoutService.ɵfac = function CheckoutService_Factory(t) { + return new (t || CheckoutService)( + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"]( + _cart_service__WEBPACK_IMPORTED_MODULE_0__.CartService + ), + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"]( + _products_products_service__WEBPACK_IMPORTED_MODULE_1__.ProductsService + ) + ); + }; + CheckoutService.ɵprov = + /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_4__[ + "ɵɵdefineInjectable" + ]({ + token: CheckoutService, + factory: CheckoutService.ɵfac, + providedIn: "root", + }); + + /***/ + }, + + /***/ 1708: + /*!***************************************************************!*\ + !*** ./src/app/cart/order-summary/order-summary.component.ts ***! + \***************************************************************/ + /***/ ( + __unused_webpack_module, + __webpack_exports__, + __webpack_require__ + ) => { + __webpack_require__.r(__webpack_exports__); + /* harmony export */ __webpack_require__.d(__webpack_exports__, { + /* harmony export */ OrderSummaryComponent: () => + /* binding */ OrderSummaryComponent, + /* harmony export */ + }); + /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = + __webpack_require__(/*! @angular/core */ 2560); + /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = + __webpack_require__(/*! @angular/common */ 4666); + /* harmony import */ var _product_item_checkout_product_item_checkout_component__WEBPACK_IMPORTED_MODULE_0__ = + __webpack_require__( + /*! ../product-item-checkout/product-item-checkout.component */ 6540 + ); + + function OrderSummaryComponent_app_product_item_checkout_3_Template( + rf, + ctx + ) { + if (rf & 1) { + const _r3 = + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"](); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"]( + 0, + "app-product-item-checkout", + 5 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]( + "add", + function OrderSummaryComponent_app_product_item_checkout_3_Template_app_product_item_checkout_add_0_listener() { + const restoredCtx = + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"]( + _r3 + ); + const product_r1 = restoredCtx.$implicit; + const ctx_r2 = + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); + return _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵresetView" + ](ctx_r2.add.emit(product_r1.id)); + } + )( + "remove", + function OrderSummaryComponent_app_product_item_checkout_3_Template_app_product_item_checkout_remove_0_listener() { + const restoredCtx = + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"]( + _r3 + ); + const product_r1 = restoredCtx.$implicit; + const ctx_r4 = + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); + return _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵresetView" + ](ctx_r4.remove.emit(product_r1.id)); + } + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); + } + if (rf & 2) { + const product_r1 = ctx.$implicit; + const ctx_r0 = + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]( + "product", + product_r1 + )("hideControls", !ctx_r0.showControls); + } + } + class OrderSummaryComponent { + constructor() { + /** Add productId */ + this.add = + new _angular_core__WEBPACK_IMPORTED_MODULE_1__.EventEmitter(); + /** Remove productId */ + this.remove = + new _angular_core__WEBPACK_IMPORTED_MODULE_1__.EventEmitter(); + } + } + OrderSummaryComponent.ɵfac = function OrderSummaryComponent_Factory(t) { + return new (t || OrderSummaryComponent)(); + }; + OrderSummaryComponent.ɵcmp = + /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵdefineComponent" + ]({ + type: OrderSummaryComponent, + selectors: [["app-order-summary"]], + inputs: { + products: "products", + showControls: "showControls", + totalPrice: "totalPrice", + }, + outputs: { + add: "add", + remove: "remove", + }, + decls: 16, + vars: 7, + consts: [ + [ + 3, + "product", + "hideControls", + "add", + "remove", + 4, + "ngFor", + "ngForOf", + ], + [1, "row"], + [1, "col", "flex-grow-1"], + [1, "col", "flex-grow-0"], + [1, "col", "flex-grow-0", 2, "font-size", "18px"], + [3, "product", "hideControls", "add", "remove"], + ], + template: function OrderSummaryComponent_Template(rf, ctx) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"]( + 0, + "h2" + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"]( + 1, + "Order summary" + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); + _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵelementContainerStart" + ](2); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"]( + 3, + OrderSummaryComponent_app_product_item_checkout_3_Template, + 1, + 2, + "app-product-item-checkout", + 0 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵelementContainerEnd" + ](); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"]( + 4, + "div", + 1 + )(5, "h3", 2); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"]( + 6, + "Shipping" + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"]( + 7, + "span", + 3 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8, "Free"); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()(); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"]( + 9, + "div", + 1 + )(10, "h3", 2); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"]( + 11, + "Total" + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"]( + 12, + "b", + 4 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](13); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"]( + 14, + "currency" + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"]( + 15, + "number" + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()(); + } + if (rf & 2) { + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]( + "ngForOf", + ctx.products + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](10); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"]( + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"]( + 14, + 2, + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind2"]( + 15, + 4, + ctx.totalPrice, + "1.2-2" + ) + ) + ); + } + }, + dependencies: [ + _angular_common__WEBPACK_IMPORTED_MODULE_2__.NgForOf, + _product_item_checkout_product_item_checkout_component__WEBPACK_IMPORTED_MODULE_0__.ProductItemCheckoutComponent, + _angular_common__WEBPACK_IMPORTED_MODULE_2__.DecimalPipe, + _angular_common__WEBPACK_IMPORTED_MODULE_2__.CurrencyPipe, + ], + styles: [ + "\n/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */", + ], + }); + + /***/ + }, + + /***/ 6540: + /*!*******************************************************************************!*\ + !*** ./src/app/cart/product-item-checkout/product-item-checkout.component.ts ***! + \*******************************************************************************/ + /***/ ( + __unused_webpack_module, + __webpack_exports__, + __webpack_require__ + ) => { + __webpack_require__.r(__webpack_exports__); + /* harmony export */ __webpack_require__.d(__webpack_exports__, { + /* harmony export */ ProductItemCheckoutComponent: () => + /* binding */ ProductItemCheckoutComponent, + /* harmony export */ + }); + /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = + __webpack_require__(/*! @angular/core */ 2560); + /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = + __webpack_require__(/*! @angular/common */ 4666); + /* harmony import */ var _angular_material_card__WEBPACK_IMPORTED_MODULE_3__ = + __webpack_require__(/*! @angular/material/card */ 2156); + /* harmony import */ var _core_cart_count_controls_cart_count_controls_component__WEBPACK_IMPORTED_MODULE_0__ = + __webpack_require__( + /*! ../../core/cart-count-controls/cart-count-controls.component */ 1970 + ); + + function ProductItemCheckoutComponent_div_2_Template(rf, ctx) { + if (rf & 1) { + const _r2 = + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"](); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"]( + 0, + "div", + 7 + )(1, "app-cart-count-controls", 8); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]( + "decrement", + function ProductItemCheckoutComponent_div_2_Template_app_cart_count_controls_decrement_1_listener() { + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"]( + _r2 + ); + const ctx_r1 = + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); + return _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵresetView" + ](ctx_r1.remove.emit()); + } + )( + "increment", + function ProductItemCheckoutComponent_div_2_Template_app_cart_count_controls_increment_1_listener() { + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"]( + _r2 + ); + const ctx_r3 = + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); + return _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵresetView" + ](ctx_r3.add.emit()); + } + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()(); + } + if (rf & 2) { + const ctx_r0 = + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]( + "productName", + ctx_r0.product.title + )("count", ctx_r0.product.orderedCount)( + "available", + ctx_r0.product.count + ); + } + } + class ProductItemCheckoutComponent { + constructor() { + this.hideControls = false; + this.add = + new _angular_core__WEBPACK_IMPORTED_MODULE_1__.EventEmitter(); + this.remove = + new _angular_core__WEBPACK_IMPORTED_MODULE_1__.EventEmitter(); + } + } + ProductItemCheckoutComponent.ɵfac = + function ProductItemCheckoutComponent_Factory(t) { + return new (t || ProductItemCheckoutComponent)(); + }; + ProductItemCheckoutComponent.ɵcmp = + /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵdefineComponent" + ]({ + type: ProductItemCheckoutComponent, + selectors: [["app-product-item-checkout"]], + inputs: { + product: "product", + hideControls: "hideControls", + }, + outputs: { + add: "add", + remove: "remove", + }, + decls: 14, + vars: 20, + consts: [ + [1, "mb-3"], + [1, "row", "align-items-center"], + [ + "class", + "col-12 col-md-3 order-3 order-md-0 text-center", + 4, + "ngIf", + ], + [1, "col-12", "col-md-6"], + [1, "font-weight-bold", "mb-1"], + [1, "text-muted"], + [1, "col-12", "col-md-3"], + [1, "col-12", "col-md-3", "order-3", "order-md-0", "text-center"], + [ + 3, + "productName", + "count", + "available", + "decrement", + "increment", + ], + ], + template: function ProductItemCheckoutComponent_Template(rf, ctx) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"]( + 0, + "mat-card", + 0 + )(1, "div", 1); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"]( + 2, + ProductItemCheckoutComponent_div_2_Template, + 2, + 3, + "div", + 2 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"]( + 3, + "div", + 3 + )(4, "h3", 4); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"]( + 6, + "p", + 5 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()(); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"]( + 8, + "div", + 6 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](9); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"]( + 10, + "currency" + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"]( + 11, + "number" + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"]( + 12, + "currency" + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"]( + 13, + "number" + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵelementEnd" + ]()()(); + } + if (rf & 2) { + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]( + "ngIf", + !ctx.hideControls + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵclassProp"]( + "col-md-6", + !ctx.hideControls + )("col-md-9", ctx.hideControls); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"]( + ctx.product.title + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"]( + ctx.product.description + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2); + _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵtextInterpolate3" + ]( + " ", + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"]( + 10, + 10, + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind2"]( + 11, + 12, + ctx.product.price, + "1.2-2" + ) + ), + " x ", + ctx.product.orderedCount, + " = ", + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"]( + 12, + 15, + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind2"]( + 13, + 17, + ctx.product.totalPrice, + "1.2-2" + ) + ), + " " + ); + } + }, + dependencies: [ + _angular_common__WEBPACK_IMPORTED_MODULE_2__.NgIf, + _angular_material_card__WEBPACK_IMPORTED_MODULE_3__.MatCard, + _core_cart_count_controls_cart_count_controls_component__WEBPACK_IMPORTED_MODULE_0__.CartCountControlsComponent, + _angular_common__WEBPACK_IMPORTED_MODULE_2__.DecimalPipe, + _angular_common__WEBPACK_IMPORTED_MODULE_2__.CurrencyPipe, + ], + styles: [ + "\n/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */", + ], + }); + + /***/ + }, + + /***/ 9274: + /*!*************************************!*\ + !*** ./src/app/core/api.service.ts ***! + \*************************************/ + /***/ ( + __unused_webpack_module, + __webpack_exports__, + __webpack_require__ + ) => { + __webpack_require__.r(__webpack_exports__); + /* harmony export */ __webpack_require__.d(__webpack_exports__, { + /* harmony export */ ApiService: () => /* binding */ ApiService, + /* harmony export */ + }); + /* harmony import */ var _injection_tokens_config_token__WEBPACK_IMPORTED_MODULE_0__ = + __webpack_require__(/*! ./injection-tokens/config.token */ 440); + /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = + __webpack_require__(/*! @angular/common */ 4666); + /* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_1__ = + __webpack_require__(/*! @angular/common/http */ 8987); + /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = + __webpack_require__(/*! @angular/core */ 2560); + + /** Base class for services working with APIs */ + class ApiService { + constructor(injector) { + this.injector = injector; + this.config = injector.get( + _injection_tokens_config_token__WEBPACK_IMPORTED_MODULE_0__.CONFIG_TOKEN + ); + this.http = injector.get( + _angular_common_http__WEBPACK_IMPORTED_MODULE_1__.HttpClient + ); + } + endpointEnabled(api) { + return this.config.apiEndpointsEnabled[api]; + } + /** Combines API endpoint and path into a single URL */ + getUrl(api, path) { + return _angular_common__WEBPACK_IMPORTED_MODULE_2__.Location.joinWithSlash( + this.config.apiEndpoints[api], + path + ); + } + } + ApiService.ɵfac = function ApiService_Factory(t) { + return new (t || ApiService)( + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵinject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_3__.Injector + ) + ); + }; + ApiService.ɵprov = + /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_3__[ + "ɵɵdefineInjectable" + ]({ + token: ApiService, + factory: ApiService.ɵfac, + }); + + /***/ + }, + + /***/ 1970: + /*!***************************************************************************!*\ + !*** ./src/app/core/cart-count-controls/cart-count-controls.component.ts ***! + \***************************************************************************/ + /***/ ( + __unused_webpack_module, + __webpack_exports__, + __webpack_require__ + ) => { + __webpack_require__.r(__webpack_exports__); + /* harmony export */ __webpack_require__.d(__webpack_exports__, { + /* harmony export */ CartCountControlsComponent: () => + /* binding */ CartCountControlsComponent, + /* harmony export */ + }); + /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = + __webpack_require__(/*! @angular/core */ 2560); + /* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_1__ = + __webpack_require__(/*! @angular/material/button */ 4522); + /* harmony import */ var _angular_material_tooltip__WEBPACK_IMPORTED_MODULE_2__ = + __webpack_require__(/*! @angular/material/tooltip */ 6896); + /* harmony import */ var _angular_material_icon__WEBPACK_IMPORTED_MODULE_3__ = + __webpack_require__(/*! @angular/material/icon */ 7822); + + const _c0 = ["addBtn"]; + class CartCountControlsComponent { + constructor() { + this.increment = + new _angular_core__WEBPACK_IMPORTED_MODULE_0__.EventEmitter(); + this.decrement = + new _angular_core__WEBPACK_IMPORTED_MODULE_0__.EventEmitter(); + } + focusAddBtn() { + this.addBtn.nativeElement.focus(); + } + } + CartCountControlsComponent.ɵfac = + function CartCountControlsComponent_Factory(t) { + return new (t || CartCountControlsComponent)(); + }; + CartCountControlsComponent.ɵcmp = + /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineComponent" + ]({ + type: CartCountControlsComponent, + selectors: [["app-cart-count-controls"]], + viewQuery: function CartCountControlsComponent_Query(rf, ctx) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵviewQuery"]( + _c0, + 5, + _angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef + ); + } + if (rf & 2) { + let _t; + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"]( + (_t = + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) + ) && (ctx.addBtn = _t.first); + } + }, + inputs: { + count: "count", + available: "available", + productName: "productName", + }, + outputs: { + increment: "increment", + decrement: "decrement", + }, + exportAs: ["countControls"], + decls: 8, + vars: 4, + consts: [ + [ + "color", + "accent", + "mat-icon-button", + "", + 3, + "matTooltip", + "click", + ], + [ + "color", + "accent", + "mat-icon-button", + "", + 3, + "disabled", + "matTooltip", + "click", + ], + ["addBtn", ""], + ], + template: function CartCountControlsComponent_Template(rf, ctx) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"]( + 0, + "button", + 0 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]( + "click", + function CartCountControlsComponent_Template_button_click_0_listener() { + return ctx.decrement.emit(); + } + ); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"]( + 1, + "mat-icon" + ); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"]( + 2, + "remove" + ); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()(); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"]( + 4, + "button", + 1, + 2 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]( + "click", + function CartCountControlsComponent_Template_button_click_4_listener() { + return ctx.increment.emit(); + } + ); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"]( + 6, + "mat-icon" + ); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7, "add"); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()(); + } + if (rf & 2) { + _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵpropertyInterpolate1" + ]("matTooltip", "Remove ", ctx.productName, " from cart"); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); + _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵtextInterpolate1" + ](" ", ctx.count, "\n"); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); + _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵpropertyInterpolate1" + ]("matTooltip", "Add ", ctx.productName, " to cart"); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]( + "disabled", + !!ctx.available && ctx.count >= ctx.available + ); + } + }, + dependencies: [ + _angular_material_button__WEBPACK_IMPORTED_MODULE_1__.MatIconButton, + _angular_material_tooltip__WEBPACK_IMPORTED_MODULE_2__.MatTooltip, + _angular_material_icon__WEBPACK_IMPORTED_MODULE_3__.MatIcon, + ], + styles: [ + "[_nghost-%COMP%] {\n display: flex;\n align-items: center;\n gap: 10px;\n}\n/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8uL3NyYy9hcHAvY29yZS9jYXJ0LWNvdW50LWNvbnRyb2xzL2NhcnQtY291bnQtY29udHJvbHMuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDSSxhQUFBO0VBQ0EsbUJBQUE7RUFDQSxTQUFBO0FBQ0oiLCJzb3VyY2VzQ29udGVudCI6WyI6aG9zdCB7XHJcbiAgICBkaXNwbGF5OiBmbGV4O1xyXG4gICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcclxuICAgIGdhcDogMTBweDtcclxufSJdLCJzb3VyY2VSb290IjoiIn0= */", + ], + }); + + /***/ + }, + + /***/ 7168: + /*!************************************************************************!*\ + !*** ./src/app/core/cart-count-controls/cart-count-controls.module.ts ***! + \************************************************************************/ + /***/ ( + __unused_webpack_module, + __webpack_exports__, + __webpack_require__ + ) => { + __webpack_require__.r(__webpack_exports__); + /* harmony export */ __webpack_require__.d(__webpack_exports__, { + /* harmony export */ CartCountControlsModule: () => + /* binding */ CartCountControlsModule, + /* harmony export */ + }); + /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = + __webpack_require__(/*! @angular/common */ 4666); + /* harmony import */ var _cart_count_controls_component__WEBPACK_IMPORTED_MODULE_0__ = + __webpack_require__(/*! ./cart-count-controls.component */ 1970); + /* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_3__ = + __webpack_require__(/*! @angular/material/button */ 4522); + /* harmony import */ var _angular_material_tooltip__WEBPACK_IMPORTED_MODULE_4__ = + __webpack_require__(/*! @angular/material/tooltip */ 6896); + /* harmony import */ var _angular_material_icon__WEBPACK_IMPORTED_MODULE_5__ = + __webpack_require__(/*! @angular/material/icon */ 7822); + /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = + __webpack_require__(/*! @angular/core */ 2560); + + class CartCountControlsModule {} + CartCountControlsModule.ɵfac = function CartCountControlsModule_Factory( + t + ) { + return new (t || CartCountControlsModule)(); + }; + CartCountControlsModule.ɵmod = + /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵdefineNgModule" + ]({ + type: CartCountControlsModule, + }); + CartCountControlsModule.ɵinj = + /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵdefineInjector" + ]({ + imports: [ + _angular_common__WEBPACK_IMPORTED_MODULE_2__.CommonModule, + _angular_material_button__WEBPACK_IMPORTED_MODULE_3__.MatButtonModule, + _angular_material_tooltip__WEBPACK_IMPORTED_MODULE_4__.MatTooltipModule, + _angular_material_icon__WEBPACK_IMPORTED_MODULE_5__.MatIconModule, + ], + }); + (function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsetNgModuleScope"]( + CartCountControlsModule, + { + declarations: [ + _cart_count_controls_component__WEBPACK_IMPORTED_MODULE_0__.CartCountControlsComponent, + ], + imports: [ + _angular_common__WEBPACK_IMPORTED_MODULE_2__.CommonModule, + _angular_material_button__WEBPACK_IMPORTED_MODULE_3__.MatButtonModule, + _angular_material_tooltip__WEBPACK_IMPORTED_MODULE_4__.MatTooltipModule, + _angular_material_icon__WEBPACK_IMPORTED_MODULE_5__.MatIconModule, + ], + exports: [ + _cart_count_controls_component__WEBPACK_IMPORTED_MODULE_0__.CartCountControlsComponent, + ], + } + ); + })(); + + /***/ + }, + + /***/ 3556: + /*!*************************************************!*\ + !*** ./src/app/core/header/header.component.ts ***! + \*************************************************/ + /***/ ( + __unused_webpack_module, + __webpack_exports__, + __webpack_require__ + ) => { + __webpack_require__.r(__webpack_exports__); + /* harmony export */ __webpack_require__.d(__webpack_exports__, { + /* harmony export */ HeaderComponent: () => + /* binding */ HeaderComponent, + /* harmony export */ + }); + /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = + __webpack_require__(/*! @angular/core */ 2560); + /* harmony import */ var _cart_cart_service__WEBPACK_IMPORTED_MODULE_0__ = + __webpack_require__(/*! ../../cart/cart.service */ 4466); + /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = + __webpack_require__(/*! @angular/router */ 124); + /* harmony import */ var _angular_material_toolbar__WEBPACK_IMPORTED_MODULE_3__ = + __webpack_require__(/*! @angular/material/toolbar */ 2543); + /* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_4__ = + __webpack_require__(/*! @angular/material/button */ 4522); + /* harmony import */ var _angular_material_icon__WEBPACK_IMPORTED_MODULE_5__ = + __webpack_require__(/*! @angular/material/icon */ 7822); + /* harmony import */ var _angular_material_menu__WEBPACK_IMPORTED_MODULE_6__ = + __webpack_require__(/*! @angular/material/menu */ 8589); + /* harmony import */ var _angular_material_tooltip__WEBPACK_IMPORTED_MODULE_7__ = + __webpack_require__(/*! @angular/material/tooltip */ 6896); + /* harmony import */ var _angular_material_badge__WEBPACK_IMPORTED_MODULE_8__ = + __webpack_require__(/*! @angular/material/badge */ 3335); + /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_9__ = + __webpack_require__(/*! @angular/common */ 4666); + + class HeaderComponent { + constructor(cartService) { + this.cartService = cartService; + } + ngOnInit() { + this.totalInCart$ = this.cartService.totalInCart$; + } + } + HeaderComponent.ɵfac = function HeaderComponent_Factory(t) { + return new (t || HeaderComponent)( + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"]( + _cart_cart_service__WEBPACK_IMPORTED_MODULE_0__.CartService + ) + ); + }; + HeaderComponent.ɵcmp = + /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵdefineComponent" + ]({ + type: HeaderComponent, + selectors: [["app-header"]], + decls: 17, + vars: 4, + consts: [ + ["color", "primary"], + [ + "routerLink", + "/", + "matTooltip", + "Open main page", + 1, + "home-link", + ], + [1, "d-flex", "flex-fill"], + [ + "matTooltip", + "Open account menu", + "mat-icon-button", + "", + 3, + "matMenuTriggerFor", + ], + [ + "routerLink", + "cart", + "matTooltip", + "Go to cart", + "mat-icon-button", + "", + ], + ["matBadgeColor", "accent", 3, "matBadge"], + ["menu", "matMenu"], + ["routerLink", "admin/orders", "mat-menu-item", ""], + ["routerLink", "admin/products", "mat-menu-item", ""], + ], + template: function HeaderComponent_Template(rf, ctx) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"]( + 0, + "mat-toolbar", + 0 + )(1, "a", 1); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"]( + 2, + "E-shop" + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"]( + 3, + "div", + 2 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"]( + 4, + "button", + 3 + )(5, "mat-icon"); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"]( + 6, + "account_circle" + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()(); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"]( + 7, + "button", + 4 + )(8, "mat-icon", 5); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"]( + 9, + "async" + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"]( + 10, + "shopping_cart" + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵelementEnd" + ]()()(); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"]( + 11, + "mat-menu", + null, + 6 + )(13, "a", 7); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"]( + 14, + "Manage orders" + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"]( + 15, + "a", + 8 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"]( + 16, + "Manage products" + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()(); + } + if (rf & 2) { + const _r0 = + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵreference"](12); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]( + "matMenuTriggerFor", + _r0 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]( + "matBadge", + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"]( + 9, + 2, + ctx.totalInCart$ + ) + ); + } + }, + dependencies: [ + _angular_router__WEBPACK_IMPORTED_MODULE_2__.RouterLink, + _angular_material_toolbar__WEBPACK_IMPORTED_MODULE_3__.MatToolbar, + _angular_material_button__WEBPACK_IMPORTED_MODULE_4__.MatIconButton, + _angular_material_icon__WEBPACK_IMPORTED_MODULE_5__.MatIcon, + _angular_material_menu__WEBPACK_IMPORTED_MODULE_6__.MatMenu, + _angular_material_menu__WEBPACK_IMPORTED_MODULE_6__.MatMenuItem, + _angular_material_menu__WEBPACK_IMPORTED_MODULE_6__.MatMenuTrigger, + _angular_material_tooltip__WEBPACK_IMPORTED_MODULE_7__.MatTooltip, + _angular_material_badge__WEBPACK_IMPORTED_MODULE_8__.MatBadge, + _angular_common__WEBPACK_IMPORTED_MODULE_9__.AsyncPipe, + ], + styles: [ + "a.mat-menu-item[_ngcontent-%COMP%] {\n text-decoration: none;\n color: black;\n}\n\n.home-link[_ngcontent-%COMP%] {\n color: white;\n text-decoration: none;\n}\n/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8uL3NyYy9hcHAvY29yZS9oZWFkZXIvaGVhZGVyLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0UscUJBQUE7RUFDQSxZQUFBO0FBQ0Y7O0FBRUE7RUFDRSxZQUFBO0VBQ0EscUJBQUE7QUFDRiIsInNvdXJjZXNDb250ZW50IjpbImEubWF0LW1lbnUtaXRlbSB7XHJcbiAgdGV4dC1kZWNvcmF0aW9uOiBub25lO1xyXG4gIGNvbG9yOiBibGFjaztcclxufVxyXG5cclxuLmhvbWUtbGluayB7XHJcbiAgY29sb3I6IHdoaXRlO1xyXG4gIHRleHQtZGVjb3JhdGlvbjogbm9uZTtcclxufVxyXG4iXSwic291cmNlUm9vdCI6IiJ9 */", + ], + }); + + /***/ + }, + + /***/ 440: + /*!*******************************************************!*\ + !*** ./src/app/core/injection-tokens/config.token.ts ***! + \*******************************************************/ + /***/ ( + __unused_webpack_module, + __webpack_exports__, + __webpack_require__ + ) => { + __webpack_require__.r(__webpack_exports__); + /* harmony export */ __webpack_require__.d(__webpack_exports__, { + /* harmony export */ CONFIG_TOKEN: () => /* binding */ CONFIG_TOKEN, + /* harmony export */ + }); + /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = + __webpack_require__(/*! @angular/core */ 2560); + + const CONFIG_TOKEN = + new _angular_core__WEBPACK_IMPORTED_MODULE_0__.InjectionToken( + "CONFIG_TOKEN" + ); + + /***/ + }, + + /***/ 8842: + /*!**************************************************************!*\ + !*** ./src/app/core/interceptors/error-print.interceptor.ts ***! + \**************************************************************/ + /***/ ( + __unused_webpack_module, + __webpack_exports__, + __webpack_require__ + ) => { + __webpack_require__.r(__webpack_exports__); + /* harmony export */ __webpack_require__.d(__webpack_exports__, { + /* harmony export */ ErrorPrintInterceptor: () => + /* binding */ ErrorPrintInterceptor, + /* harmony export */ + }); + /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_1__ = + __webpack_require__(/*! rxjs/operators */ 9337); + /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = + __webpack_require__(/*! @angular/core */ 2560); + /* harmony import */ var _notification_service__WEBPACK_IMPORTED_MODULE_0__ = + __webpack_require__(/*! ../notification.service */ 7319); + + class ErrorPrintInterceptor { + constructor(notificationService) { + this.notificationService = notificationService; + } + intercept(request, next) { + return next.handle(request).pipe( + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_1__.tap)({ + error: () => { + const url = new URL(request.url); + this.notificationService.showError( + `Request to "${url.pathname}" failed. Check the console for the details`, + 0 + ); + }, + }) + ); + } + } + ErrorPrintInterceptor.ɵfac = function ErrorPrintInterceptor_Factory(t) { + return new (t || ErrorPrintInterceptor)( + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵinject"]( + _notification_service__WEBPACK_IMPORTED_MODULE_0__.NotificationService + ) + ); + }; + ErrorPrintInterceptor.ɵprov = + /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_2__[ + "ɵɵdefineInjectable" + ]({ + token: ErrorPrintInterceptor, + factory: ErrorPrintInterceptor.ɵfac, + }); + + /***/ + }, + + /***/ 7319: + /*!**********************************************!*\ + !*** ./src/app/core/notification.service.ts ***! + \**********************************************/ + /***/ ( + __unused_webpack_module, + __webpack_exports__, + __webpack_require__ + ) => { + __webpack_require__.r(__webpack_exports__); + /* harmony export */ __webpack_require__.d(__webpack_exports__, { + /* harmony export */ NotificationService: () => + /* binding */ NotificationService, + /* harmony export */ + }); + /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = + __webpack_require__(/*! @angular/core */ 2560); + /* harmony import */ var _angular_material_snack_bar__WEBPACK_IMPORTED_MODULE_1__ = + __webpack_require__(/*! @angular/material/snack-bar */ 930); + + class NotificationService { + constructor(snackBar) { + this.snackBar = snackBar; + } + /** + * Show message with an error + * + * @param text Error text message + * @param duration Duration to close after. 0 to close manually only + */ + showError(text, duration = 3000) { + this.snackBar.open(text, "Dismiss", { + duration, + panelClass: "shop-snackbar-error", + }); + } + } + NotificationService.ɵfac = function NotificationService_Factory(t) { + return new (t || NotificationService)( + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"]( + _angular_material_snack_bar__WEBPACK_IMPORTED_MODULE_1__.MatSnackBar + ) + ); + }; + NotificationService.ɵprov = + /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineInjectable" + ]({ + token: NotificationService, + factory: NotificationService.ɵfac, + providedIn: "root", + }); + + /***/ + }, + + /***/ 1056: + /*!*****************************************************************!*\ + !*** ./src/app/products/product-item/product-item.component.ts ***! + \*****************************************************************/ + /***/ ( + __unused_webpack_module, + __webpack_exports__, + __webpack_require__ + ) => { + __webpack_require__.r(__webpack_exports__); + /* harmony export */ __webpack_require__.d(__webpack_exports__, { + /* harmony export */ ProductItemComponent: () => + /* binding */ ProductItemComponent, + /* harmony export */ + }); + /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = + __webpack_require__(/*! @angular/core */ 2560); + /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = + __webpack_require__(/*! rxjs/operators */ 635); + /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_4__ = + __webpack_require__(/*! rxjs/operators */ 9196); + /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_5__ = + __webpack_require__(/*! rxjs/operators */ 9337); + /* harmony import */ var _cart_cart_service__WEBPACK_IMPORTED_MODULE_0__ = + __webpack_require__(/*! ../../cart/cart.service */ 4466); + /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_6__ = + __webpack_require__(/*! @angular/common */ 4666); + /* harmony import */ var _angular_material_card__WEBPACK_IMPORTED_MODULE_7__ = + __webpack_require__(/*! @angular/material/card */ 2156); + /* harmony import */ var _angular_material_icon__WEBPACK_IMPORTED_MODULE_8__ = + __webpack_require__(/*! @angular/material/icon */ 7822); + /* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_9__ = + __webpack_require__(/*! @angular/material/button */ 4522); + /* harmony import */ var _angular_material_tooltip__WEBPACK_IMPORTED_MODULE_10__ = + __webpack_require__(/*! @angular/material/tooltip */ 6896); + /* harmony import */ var _core_cart_count_controls_cart_count_controls_component__WEBPACK_IMPORTED_MODULE_1__ = + __webpack_require__( + /*! ../../core/cart-count-controls/cart-count-controls.component */ 1970 + ); + + const _c0 = ["cartBtn"]; + const _c1 = ["controls"]; + function ProductItemComponent_button_13_Template(rf, ctx) { + if (rf & 1) { + const _r4 = + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"](); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"]( + 0, + "button", + 5, + 6 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]( + "click", + function ProductItemComponent_button_13_Template_button_click_0_listener() { + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"]( + _r4 + ); + const ctx_r3 = + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); + return _angular_core__WEBPACK_IMPORTED_MODULE_2__[ + "ɵɵresetView" + ](ctx_r3.add()); + } + ); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"]( + 2, + "mat-icon" + ); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"]( + 3, + "shopping_cart" + ); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()(); + } + if (rf & 2) { + const ctx_r0 = + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); + _angular_core__WEBPACK_IMPORTED_MODULE_2__[ + "ɵɵpropertyInterpolate1" + ]("matTooltip", "Add ", ctx_r0.product.title, " to cart"); + } + } + function ProductItemComponent_app_cart_count_controls_15_Template( + rf, + ctx + ) { + if (rf & 1) { + const _r7 = + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"](); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"]( + 0, + "app-cart-count-controls", + 7, + 8 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]( + "increment", + function ProductItemComponent_app_cart_count_controls_15_Template_app_cart_count_controls_increment_0_listener() { + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"]( + _r7 + ); + const ctx_r6 = + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); + return _angular_core__WEBPACK_IMPORTED_MODULE_2__[ + "ɵɵresetView" + ](ctx_r6.add()); + } + )( + "decrement", + function ProductItemComponent_app_cart_count_controls_15_Template_app_cart_count_controls_decrement_0_listener() { + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"]( + _r7 + ); + const ctx_r8 = + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); + return _angular_core__WEBPACK_IMPORTED_MODULE_2__[ + "ɵɵresetView" + ](ctx_r8.remove()); + } + ); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](2, "async"); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); + } + if (rf & 2) { + const ctx_r1 = + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]( + "productName", + ctx_r1.product.title + )( + "count", + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"]( + 2, + 3, + ctx_r1.countInCart$ + ) + )("available", ctx_r1.product.count); + } + } + class ProductItemComponent { + constructor(cartService) { + this.cartService = cartService; + } + get id() { + return this.product.id; + } + ngOnInit() { + this.countInCart$ = this.cartService.cart$.pipe( + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.map)((cart) => { + if (!(this.id in cart)) { + return 0; + } + return cart[this.id]; + }), + this.updateFocusIfNeeded(), + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.shareReplay)({ + bufferSize: 1, + refCount: true, + }) + ); + } + add() { + this.cartService.addItem(this.id); + } + remove() { + this.cartService.removeItem(this.id); + } + /** Move focus to a corresponding control when controls switch */ + updateFocusIfNeeded() { + let prev; + return (observable) => + observable.pipe( + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.tap)((curr) => { + if (prev === 0 && curr === 1) { + setTimeout(() => { + var _a; + return (_a = this.countControls) === null || _a === void 0 + ? void 0 + : _a.focusAddBtn(); + }); + } else if (prev === 1 && curr === 0) { + setTimeout(() => { + var _a; + return (_a = this.cartBtn) === null || _a === void 0 + ? void 0 + : _a.nativeElement.focus(); + }); + } + prev = curr; + }) + ); + } + } + ProductItemComponent.ɵfac = function ProductItemComponent_Factory(t) { + return new (t || ProductItemComponent)( + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"]( + _cart_cart_service__WEBPACK_IMPORTED_MODULE_0__.CartService + ) + ); + }; + ProductItemComponent.ɵcmp = + /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_2__[ + "ɵɵdefineComponent" + ]({ + type: ProductItemComponent, + selectors: [["app-product-item"]], + viewQuery: function ProductItemComponent_Query(rf, ctx) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵviewQuery"]( + _c0, + 5, + _angular_core__WEBPACK_IMPORTED_MODULE_2__.ElementRef + ); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵviewQuery"]( + _c1, + 5 + ); + } + if (rf & 2) { + let _t; + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵqueryRefresh"]( + (_t = + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵloadQuery"]()) + ) && (ctx.cartBtn = _t.first); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵqueryRefresh"]( + (_t = + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵloadQuery"]()) + ) && (ctx.countControls = _t.first); + } + }, + inputs: { + product: "product", + index: "index", + }, + decls: 17, + vars: 14, + consts: [ + ["mat-card-image", "", 1, "img-container"], + [1, "img-container__inner"], + ["alt", "", 3, "src"], + [ + "color", + "accent", + "mat-icon-button", + "", + 3, + "matTooltip", + "click", + 4, + "ngIf", + ], + [ + 3, + "productName", + "count", + "available", + "increment", + "decrement", + 4, + "ngIf", + ], + [ + "color", + "accent", + "mat-icon-button", + "", + 3, + "matTooltip", + "click", + ], + ["cartBtn", ""], + [ + 3, + "productName", + "count", + "available", + "increment", + "decrement", + ], + ["controls", "countControls"], + ], + template: function ProductItemComponent_Template(rf, ctx) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"]( + 0, + "mat-card" + )(1, "div", 0)(2, "div", 1); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"]( + 3, + "img", + 2 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()(); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"]( + 4, + "mat-card-header" + )(5, "mat-card-title"); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](6); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()(); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"]( + 7, + "mat-card-content" + )(8, "p"); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](9); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"]( + 10, + "currency" + ); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"]( + 11, + "number" + ); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()(); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"]( + 12, + "mat-card-actions" + ); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"]( + 13, + ProductItemComponent_button_13_Template, + 4, + 1, + "button", + 3 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"]( + 14, + "async" + ); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"]( + 15, + ProductItemComponent_app_cart_count_controls_15_Template, + 3, + 5, + "app-cart-count-controls", + 4 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"]( + 16, + "async" + ); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()(); + } + if (rf & 2) { + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3); + _angular_core__WEBPACK_IMPORTED_MODULE_2__[ + "ɵɵpropertyInterpolate1" + ]( + "src", + "https://source.unsplash.com/random?sig=", + ctx.index, + "", + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeUrl"] + ); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3); + _angular_core__WEBPACK_IMPORTED_MODULE_2__[ + "ɵɵtextInterpolate1" + ](" ", ctx.product.title, " "); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"]( + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"]( + 10, + 5, + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind2"]( + 11, + 7, + ctx.product.price, + "1.2-2" + ) + ) + ); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]( + "ngIf", + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"]( + 14, + 10, + ctx.countInCart$ + ) === 0 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]( + "ngIf", + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"]( + 16, + 12, + ctx.countInCart$ + ) > 0 + ); + } + }, + dependencies: [ + _angular_common__WEBPACK_IMPORTED_MODULE_6__.NgIf, + _angular_material_card__WEBPACK_IMPORTED_MODULE_7__.MatCard, + _angular_material_card__WEBPACK_IMPORTED_MODULE_7__.MatCardActions, + _angular_material_card__WEBPACK_IMPORTED_MODULE_7__.MatCardContent, + _angular_material_card__WEBPACK_IMPORTED_MODULE_7__.MatCardHeader, + _angular_material_card__WEBPACK_IMPORTED_MODULE_7__.MatCardImage, + _angular_material_card__WEBPACK_IMPORTED_MODULE_7__.MatCardTitle, + _angular_material_icon__WEBPACK_IMPORTED_MODULE_8__.MatIcon, + _angular_material_button__WEBPACK_IMPORTED_MODULE_9__.MatIconButton, + _angular_material_tooltip__WEBPACK_IMPORTED_MODULE_10__.MatTooltip, + _core_cart_count_controls_cart_count_controls_component__WEBPACK_IMPORTED_MODULE_1__.CartCountControlsComponent, + _angular_common__WEBPACK_IMPORTED_MODULE_6__.AsyncPipe, + _angular_common__WEBPACK_IMPORTED_MODULE_6__.DecimalPipe, + _angular_common__WEBPACK_IMPORTED_MODULE_6__.CurrencyPipe, + ], + styles: [ + ".img-container[_ngcontent-%COMP%] {\n padding-top: 90%;\n position: relative;\n}\n.img-container__inner[_ngcontent-%COMP%] {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n}\n.img-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%] {\n object-fit: cover;\n width: 100%;\n height: 100%;\n object-position: center center;\n}\n/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8uL3NyYy9hcHAvcHJvZHVjdHMvcHJvZHVjdC1pdGVtL3Byb2R1Y3QtaXRlbS5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLGdCQUFBO0VBQ0Esa0JBQUE7QUFDRjtBQUNFO0VBQ0Usa0JBQUE7RUFDQSxNQUFBO0VBQ0EsT0FBQTtFQUNBLFdBQUE7RUFDQSxZQUFBO0FBQ0o7QUFFRTtFQUNFLGlCQUFBO0VBQ0EsV0FBQTtFQUNBLFlBQUE7RUFDQSw4QkFBQTtBQUFKIiwic291cmNlc0NvbnRlbnQiOlsiLmltZy1jb250YWluZXIge1xyXG4gIHBhZGRpbmctdG9wOiA5MCU7XHJcbiAgcG9zaXRpb246IHJlbGF0aXZlO1xyXG5cclxuICAmX19pbm5lciB7XHJcbiAgICBwb3NpdGlvbjogYWJzb2x1dGU7XHJcbiAgICB0b3A6IDA7XHJcbiAgICBsZWZ0OiAwO1xyXG4gICAgd2lkdGg6IDEwMCU7XHJcbiAgICBoZWlnaHQ6IDEwMCU7XHJcbiAgfVxyXG5cclxuICBpbWcge1xyXG4gICAgb2JqZWN0LWZpdDogY292ZXI7XHJcbiAgICB3aWR0aDogMTAwJTtcclxuICAgIGhlaWdodDogMTAwJTtcclxuICAgIG9iamVjdC1wb3NpdGlvbjogY2VudGVyIGNlbnRlcjtcclxuICB9XHJcbn1cclxuIl0sInNvdXJjZVJvb3QiOiIifQ== */", + ], + }); + + /***/ + }, + + /***/ 4532: + /*!************************************************!*\ + !*** ./src/app/products/products.component.ts ***! + \************************************************/ + /***/ ( + __unused_webpack_module, + __webpack_exports__, + __webpack_require__ + ) => { + __webpack_require__.r(__webpack_exports__); + /* harmony export */ __webpack_require__.d(__webpack_exports__, { + /* harmony export */ ProductsComponent: () => + /* binding */ ProductsComponent, + /* harmony export */ + }); + /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = + __webpack_require__(/*! @angular/core */ 2560); + /* harmony import */ var _products_service__WEBPACK_IMPORTED_MODULE_0__ = + __webpack_require__(/*! ./products.service */ 9855); + /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_3__ = + __webpack_require__(/*! @angular/common */ 4666); + /* harmony import */ var _product_item_product_item_component__WEBPACK_IMPORTED_MODULE_1__ = + __webpack_require__( + /*! ./product-item/product-item.component */ 1056 + ); + + function ProductsComponent_app_product_item_1_Template(rf, ctx) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"]( + 0, + "app-product-item", + 2 + ); + } + if (rf & 2) { + const product_r1 = ctx.$implicit; + const i_r2 = ctx.index; + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]( + "product", + product_r1 + )("index", i_r2); + } + } + class ProductsComponent { + constructor(productsService) { + this.productsService = productsService; + this.products$ = this.productsService.getProducts(); + } + ngOnInit() {} + } + ProductsComponent.ɵfac = function ProductsComponent_Factory(t) { + return new (t || ProductsComponent)( + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"]( + _products_service__WEBPACK_IMPORTED_MODULE_0__.ProductsService + ) + ); + }; + ProductsComponent.ɵcmp = + /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_2__[ + "ɵɵdefineComponent" + ]({ + type: ProductsComponent, + selectors: [["app-products"]], + decls: 3, + vars: 3, + consts: [ + [1, "container"], + [3, "product", "index", 4, "ngFor", "ngForOf"], + [3, "product", "index"], + ], + template: function ProductsComponent_Template(rf, ctx) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"]( + 0, + "main", + 0 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"]( + 1, + ProductsComponent_app_product_item_1_Template, + 1, + 2, + "app-product-item", + 1 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"]( + 2, + "async" + ); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); + } + if (rf & 2) { + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]( + "ngForOf", + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"]( + 2, + 1, + ctx.products$ + ) + ); + } + }, + dependencies: [ + _angular_common__WEBPACK_IMPORTED_MODULE_3__.NgForOf, + _product_item_product_item_component__WEBPACK_IMPORTED_MODULE_1__.ProductItemComponent, + _angular_common__WEBPACK_IMPORTED_MODULE_3__.AsyncPipe, + ], + styles: [ + ".container[_ngcontent-%COMP%] {\n display: grid;\n grid-template-columns: 1fr;\n grid-gap: 30px;\n}\n@media (min-width: 768px) {\n .container[_ngcontent-%COMP%] {\n grid-template-columns: 1fr 1fr;\n }\n}\n@media (min-width: 992px) {\n .container[_ngcontent-%COMP%] {\n grid-template-columns: 1fr 1fr 1fr;\n }\n}\n/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBh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GJyZWFrcG9pbnQtbWF4KCRuYW1lLCAkYnJlYWtwb2ludHMpO1xuXG4gIEBpZiAkbWluICE9IG51bGwgYW5kICRtYXggIT0gbnVsbCB7XG4gICAgQG1lZGlhIChtaW4td2lkdGg6ICRtaW4pIGFuZCAobWF4LXdpZHRoOiAkbWF4KSB7XG4gICAgICBAY29udGVudDtcbiAgICB9XG4gIH0gQGVsc2UgaWYgJG1heCA9PSBudWxsIHtcbiAgICBAaW5jbHVkZSBtZWRpYS1icmVha3BvaW50LXVwKCRuYW1lLCAkYnJlYWtwb2ludHMpIHtcbiAgICAgIEBjb250ZW50O1xuICAgIH1cbiAgfSBAZWxzZSBpZiAkbWluID09IG51bGwge1xuICAgIEBpbmNsdWRlIG1lZGlhLWJyZWFrcG9pbnQtZG93bigkbmFtZSwgJGJyZWFrcG9pbnRzKSB7XG4gICAgICBAY29udGVudDtcbiAgICB9XG4gIH1cbn1cbiJdLCJzb3VyY2VSb290IjoiIn0= */", + ], + }); + + /***/ + }, + + /***/ 8980: + /*!*********************************************!*\ + !*** ./src/app/products/products.module.ts ***! + \*********************************************/ + /***/ ( + __unused_webpack_module, + __webpack_exports__, + __webpack_require__ + ) => { + __webpack_require__.r(__webpack_exports__); + /* harmony export */ __webpack_require__.d(__webpack_exports__, { + /* harmony export */ ProductsModule: () => + /* binding */ ProductsModule, + /* harmony export */ + }); + /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_4__ = + __webpack_require__(/*! @angular/common */ 4666); + /* harmony import */ var _products_component__WEBPACK_IMPORTED_MODULE_0__ = + __webpack_require__(/*! ./products.component */ 4532); + /* harmony import */ var _product_item_product_item_component__WEBPACK_IMPORTED_MODULE_1__ = + __webpack_require__( + /*! ./product-item/product-item.component */ 1056 + ); + /* harmony import */ var _angular_material_card__WEBPACK_IMPORTED_MODULE_5__ = + __webpack_require__(/*! @angular/material/card */ 2156); + /* harmony import */ var _angular_material_icon__WEBPACK_IMPORTED_MODULE_6__ = + __webpack_require__(/*! @angular/material/icon */ 7822); + /* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_7__ = + __webpack_require__(/*! @angular/material/button */ 4522); + /* harmony import */ var _angular_material_tooltip__WEBPACK_IMPORTED_MODULE_8__ = + __webpack_require__(/*! @angular/material/tooltip */ 6896); + /* harmony import */ var _core_cart_count_controls_cart_count_controls_module__WEBPACK_IMPORTED_MODULE_2__ = + __webpack_require__( + /*! ../core/cart-count-controls/cart-count-controls.module */ 7168 + ); + /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = + __webpack_require__(/*! @angular/core */ 2560); + + class ProductsModule {} + ProductsModule.ɵfac = function ProductsModule_Factory(t) { + return new (t || ProductsModule)(); + }; + ProductsModule.ɵmod = + /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_3__[ + "ɵɵdefineNgModule" + ]({ + type: ProductsModule, + }); + ProductsModule.ɵinj = + /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_3__[ + "ɵɵdefineInjector" + ]({ + imports: [ + _angular_common__WEBPACK_IMPORTED_MODULE_4__.CommonModule, + _angular_material_card__WEBPACK_IMPORTED_MODULE_5__.MatCardModule, + _angular_material_icon__WEBPACK_IMPORTED_MODULE_6__.MatIconModule, + _angular_material_button__WEBPACK_IMPORTED_MODULE_7__.MatButtonModule, + _angular_material_tooltip__WEBPACK_IMPORTED_MODULE_8__.MatTooltipModule, + _core_cart_count_controls_cart_count_controls_module__WEBPACK_IMPORTED_MODULE_2__.CartCountControlsModule, + ], + }); + (function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵsetNgModuleScope"]( + ProductsModule, + { + declarations: [ + _products_component__WEBPACK_IMPORTED_MODULE_0__.ProductsComponent, + _product_item_product_item_component__WEBPACK_IMPORTED_MODULE_1__.ProductItemComponent, + ], + imports: [ + _angular_common__WEBPACK_IMPORTED_MODULE_4__.CommonModule, + _angular_material_card__WEBPACK_IMPORTED_MODULE_5__.MatCardModule, + _angular_material_icon__WEBPACK_IMPORTED_MODULE_6__.MatIconModule, + _angular_material_button__WEBPACK_IMPORTED_MODULE_7__.MatButtonModule, + _angular_material_tooltip__WEBPACK_IMPORTED_MODULE_8__.MatTooltipModule, + _core_cart_count_controls_cart_count_controls_module__WEBPACK_IMPORTED_MODULE_2__.CartCountControlsModule, + ], + exports: [ + _products_component__WEBPACK_IMPORTED_MODULE_0__.ProductsComponent, + ], + } + ); + })(); + + /***/ + }, + + /***/ 9855: + /*!**********************************************!*\ + !*** ./src/app/products/products.service.ts ***! + \**********************************************/ + /***/ ( + __unused_webpack_module, + __webpack_exports__, + __webpack_require__ + ) => { + __webpack_require__.r(__webpack_exports__); + /* harmony export */ __webpack_require__.d(__webpack_exports__, { + /* harmony export */ ProductsService: () => + /* binding */ ProductsService, + /* harmony export */ + }); + /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_1__ = + __webpack_require__(/*! rxjs */ 591); + /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_3__ = + __webpack_require__(/*! rxjs */ 745); + /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = + __webpack_require__(/*! rxjs/operators */ 635); + /* harmony import */ var _core_api_service__WEBPACK_IMPORTED_MODULE_0__ = + __webpack_require__(/*! ../core/api.service */ 9274); + /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4__ = + __webpack_require__(/*! @angular/core */ 2560); + + class ProductsService extends _core_api_service__WEBPACK_IMPORTED_MODULE_0__.ApiService { + createNewProduct(product) { + if (!this.endpointEnabled("bff")) { + console.warn( + 'Endpoint "bff" is disabled. To enable change your environment.ts config' + ); + return rxjs__WEBPACK_IMPORTED_MODULE_1__.EMPTY; + } + const url = this.getUrl("bff", "products"); + return this.http.post(url, product); + } + editProduct(id, changedProduct) { + if (!this.endpointEnabled("bff")) { + console.warn( + 'Endpoint "bff" is disabled. To enable change your environment.ts config' + ); + return rxjs__WEBPACK_IMPORTED_MODULE_1__.EMPTY; + } + const url = this.getUrl("bff", `products/${id}`); + return this.http.put(url, changedProduct); + } + getProductById(id) { + if (!this.endpointEnabled("bff")) { + console.warn( + 'Endpoint "bff" is disabled. To enable change your environment.ts config' + ); + return this.http + .get("/assets/products.json") + .pipe( + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_2__.map)( + (products) => + products.find((product) => product.id === id) || null + ) + ); + } + const url = this.getUrl("bff", `products/${id}`); + return this.http + .get(url) + .pipe( + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_2__.map)( + (resp) => resp.product + ) + ); + } + getProducts() { + if (!this.endpointEnabled("bff")) { + console.warn( + 'Endpoint "bff" is disabled. To enable change your environment.ts config' + ); + return this.http.get("/assets/products.json"); + } + const url = this.getUrl("bff", "products"); + return this.http.get(url); + } + getProductsForCheckout(ids) { + if (!ids.length) { + return (0, rxjs__WEBPACK_IMPORTED_MODULE_3__.of)([]); + } + return this.getProducts().pipe( + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_2__.map)((products) => + products.filter((product) => ids.includes(product.id)) + ) + ); + } + } + ProductsService.ɵfac = /*@__PURE__*/ (function () { + let ɵProductsService_BaseFactory; + return function ProductsService_Factory(t) { + return ( + ɵProductsService_BaseFactory || + (ɵProductsService_BaseFactory = + _angular_core__WEBPACK_IMPORTED_MODULE_4__[ + "ɵɵgetInheritedFactory" + ](ProductsService)) + )(t || ProductsService); + }; + })(); + ProductsService.ɵprov = + /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_4__[ + "ɵɵdefineInjectable" + ]({ + token: ProductsService, + factory: ProductsService.ɵfac, + providedIn: "root", + }); + + /***/ + }, + + /***/ 2340: + /*!*****************************************!*\ + !*** ./src/environments/environment.ts ***! + \*****************************************/ + /***/ ( + __unused_webpack_module, + __webpack_exports__, + __webpack_require__ + ) => { + __webpack_require__.r(__webpack_exports__); + /* harmony export */ __webpack_require__.d(__webpack_exports__, { + /* harmony export */ environment: () => /* binding */ environment, + /* harmony export */ + }); + // This file can be replaced during build by using the `fileReplacements` array. + // `ng build --prod` replaces `environment.ts` with `environment.prod.ts`. + // The list of file replacements can be found in `angular.json`. + const environment = { + production: false, + apiEndpoints: { + product: "https://.execute-api.eu-west-1.amazonaws.com/dev", + order: "https://.execute-api.eu-west-1.amazonaws.com/dev", + import: "https://.execute-api.eu-west-1.amazonaws.com/dev", + bff: "https://.execute-api.eu-west-1.amazonaws.com/dev", + cart: "https://.execute-api.eu-west-1.amazonaws.com/dev", + }, + apiEndpointsEnabled: { + product: false, + order: false, + import: false, + bff: false, + cart: false, + }, + }; + /* + * For easier debugging in development mode, you can import the following file + * to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`. + * + * This import should be commented out in production mode because it will have a negative impact + * on performance if an error is thrown. + */ + // import 'zone.js/plugins/zone-error'; // Included with Angular CLI. + + /***/ + }, + + /***/ 4431: + /*!*********************!*\ + !*** ./src/main.ts ***! + \*********************/ + /***/ ( + __unused_webpack_module, + __webpack_exports__, + __webpack_require__ + ) => { + __webpack_require__.r(__webpack_exports__); + /* harmony import */ var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_3__ = + __webpack_require__(/*! @angular/platform-browser */ 4497); + /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = + __webpack_require__(/*! @angular/core */ 2560); + /* harmony import */ var _app_app_module__WEBPACK_IMPORTED_MODULE_0__ = + __webpack_require__(/*! ./app/app.module */ 6747); + /* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_1__ = + __webpack_require__(/*! ./environments/environment */ 2340); + + if ( + _environments_environment__WEBPACK_IMPORTED_MODULE_1__.environment + .production + ) { + (0, _angular_core__WEBPACK_IMPORTED_MODULE_2__.enableProdMode)(); + } + _angular_platform_browser__WEBPACK_IMPORTED_MODULE_3__ + .platformBrowser() + .bootstrapModule( + _app_app_module__WEBPACK_IMPORTED_MODULE_0__.AppModule + ) + .catch((err) => console.error(err)); + + /***/ + }, + }, + /******/ (__webpack_require__) => { + // webpackRuntimeModules + /******/ var __webpack_exec__ = (moduleId) => + __webpack_require__((__webpack_require__.s = moduleId)); + /******/ __webpack_require__.O(0, ["vendor"], () => __webpack_exec__(4431)); + /******/ var __webpack_exports__ = __webpack_require__.O(); + /******/ + }, +]); +//# sourceMappingURL=main.js.map diff --git a/cdk/cdk.out/asset.705042e10eb8fb6d7d7475c39e61e09836398336585ba5ef9814a4a774e8e009/main.js.map b/cdk/cdk.out/asset.705042e10eb8fb6d7d7475c39e61e09836398336585ba5ef9814a4a774e8e009/main.js.map new file mode 100644 index 00000000..f7aef8f8 --- /dev/null +++ b/cdk/cdk.out/asset.705042e10eb8fb6d7d7475c39e61e09836398336585ba5ef9814a4a774e8e009/main.js.map @@ -0,0 +1 @@ +{"version":3,"file":"main.js","mappings":";;;;;;;;;;;;;;;;AACuD;AACW;;;AAElE,MAAME,MAAM,GAAW,CACrB;EACEC,IAAI,EAAE,EAAE;EACRC,SAAS,EAAEH,2EAAiBA;CAC7B,EACD;EACEE,IAAI,EAAE,MAAM;EACZE,YAAY,EAAE,MAAM,oHAA4B,CAACC,IAAI,CAAEC,CAAC,IAAKA,CAAC,CAACC,UAAU;CAC1E,EACD;EACEL,IAAI,EAAE,OAAO;EACbE,YAAY,EAAE,MACZ,4JAA8B,CAACC,IAAI,CAAEC,CAAC,IAAKA,CAAC,CAACE,WAAW;CAC3D,CACF;AAMK,MAAOC,gBAAgB;;mBAAhBA,gBAAgB;AAAA;;QAAhBA;AAAgB;;YAHjBV,iEAAoB,CAACE,MAAM,CAAC,EAC5BF,yDAAY;AAAA;;sHAEXU,gBAAgB;IAAAE,UAAAA,yDAAAA;IAAAC,UAFjBb,yDAAY;EAAA;AAAA;;;;;;;;;;;;;;;;;;;;ACdlB,MAAOc,YAAY;;mBAAZA,YAAY;AAAA;;QAAZA,YAAY;EAAAC;EAAAC;EAAAC;EAAAC;EAAAC;IAAA;MCRzBC,uDAAAA,iBAAyB;MAEzB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ACA;AAIO,MAAM1F,WAAW,GAAW;EACjCiK,UAAU,EAAE,KAAK;EACjBjD,YAAY,EAAE;IACZjB,OAAO,EAAE,kDAAkD;IAC3DmE,KAAK,EAAE,kDAAkD;IACzDC,MAAM,EAAE,kDAAkD;IAC1DC,GAAG,EAAE,kDAAkD;IACvDvF,IAAI,EAAE;GACP;EACDgC,mBAAmB,EAAE;IACnBd,OAAO,EAAE,KAAK;IACdmE,KAAK,EAAE,KAAK;IACZC,MAAM,EAAE,KAAK;IACbC,GAAG,EAAE,KAAK;IACVvF,IAAI,EAAE;;CAET;AAED;;;;;;;AAOA;;;;;;;;;;;;;;;;AC/B+C;AAGF;AACY;AAEzD,IAAI7E,6EAAsB,EAAE;EAC1BqK,6DAAc,EAAE;;AAGlBC,sEAAAA,EAAwB,CACrBC,eAAe,CAAChK,sDAAS,CAAC,CAC1BiK,KAAK,CAAEC,GAAG,IAAKlF,OAAO,CAACuC,KAAK,CAAC2C,GAAG,CAAC,CAAC","sources":["./src/app/app-routing.module.ts","./src/app/app.component.ts","./src/app/app.component.html","./src/app/app.module.ts","./src/app/cart/cart-routing.module.ts","./src/app/cart/cart-shipping-form/cart-shipping-form.component.ts","./src/app/cart/cart-shipping-form/cart-shipping-form.component.html","./src/app/cart/cart.component.ts","./src/app/cart/cart.component.html","./src/app/cart/cart.module.ts","./src/app/cart/cart.service.ts","./src/app/cart/checkout.service.ts","./src/app/cart/order-summary/order-summary.component.ts","./src/app/cart/order-summary/order-summary.component.html","./src/app/cart/product-item-checkout/product-item-checkout.component.ts","./src/app/cart/product-item-checkout/product-item-checkout.component.html","./src/app/core/api.service.ts","./src/app/core/cart-count-controls/cart-count-controls.component.ts","./src/app/core/cart-count-controls/cart-count-controls.component.html","./src/app/core/cart-count-controls/cart-count-controls.module.ts","./src/app/core/header/header.component.ts","./src/app/core/header/header.component.html","./src/app/core/injection-tokens/config.token.ts","./src/app/core/interceptors/error-print.interceptor.ts","./src/app/core/notification.service.ts","./src/app/products/product-item/product-item.component.ts","./src/app/products/product-item/product-item.component.html","./src/app/products/products.component.html","./src/app/products/products.component.ts","./src/app/products/products.module.ts","./src/app/products/products.service.ts","./src/environments/environment.ts","./src/main.ts"],"sourcesContent":["import { NgModule } from '@angular/core';\r\nimport { RouterModule, Routes } from '@angular/router';\r\nimport { ProductsComponent } from './products/products.component';\r\n\r\nconst routes: Routes = [\r\n {\r\n path: '',\r\n component: ProductsComponent,\r\n },\r\n {\r\n path: 'cart',\r\n loadChildren: () => import('./cart/cart.module').then((m) => m.CartModule),\r\n },\r\n {\r\n path: 'admin',\r\n loadChildren: () =>\r\n import('./admin/admin.module').then((m) => m.AdminModule),\r\n },\r\n];\r\n\r\n@NgModule({\r\n imports: [RouterModule.forRoot(routes)],\r\n exports: [RouterModule],\r\n})\r\nexport class AppRoutingModule {}\r\n","import { ChangeDetectionStrategy, Component } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'app-root',\r\n templateUrl: './app.component.html',\r\n styleUrls: ['./app.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\nexport class AppComponent {}\r\n","\r\n\r\n
\r\n \r\n
\r\n","import { NgModule, Provider } from '@angular/core';\r\nimport { BrowserModule } from '@angular/platform-browser';\r\n\r\nimport { AppRoutingModule } from './app-routing.module';\r\nimport { AppComponent } from './app.component';\r\nimport { BrowserAnimationsModule } from '@angular/platform-browser/animations';\r\nimport { HeaderComponent } from './core/header/header.component';\r\nimport { MatToolbarModule } from '@angular/material/toolbar';\r\nimport { MatButtonModule } from '@angular/material/button';\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { MatMenuModule } from '@angular/material/menu';\r\nimport { MatTooltipModule } from '@angular/material/tooltip';\r\nimport { ProductsModule } from './products/products.module';\r\nimport { HTTP_INTERCEPTORS, HttpClientModule } from '@angular/common/http';\r\nimport { MatBadgeModule } from '@angular/material/badge';\r\nimport { CartModule } from './cart/cart.module';\r\nimport { CONFIG_TOKEN } from './core/injection-tokens/config.token';\r\nimport { environment } from '../environments/environment';\r\nimport { ErrorPrintInterceptor } from './core/interceptors/error-print.interceptor';\r\nimport { MatSnackBarModule } from '@angular/material/snack-bar';\r\n\r\nconst interceptors: Provider[] = [\r\n {\r\n provide: HTTP_INTERCEPTORS,\r\n useClass: ErrorPrintInterceptor,\r\n multi: true,\r\n },\r\n];\r\n\r\n@NgModule({\r\n declarations: [AppComponent, HeaderComponent],\r\n imports: [\r\n BrowserModule,\r\n AppRoutingModule,\r\n BrowserAnimationsModule,\r\n MatToolbarModule,\r\n MatButtonModule,\r\n MatIconModule,\r\n MatMenuModule,\r\n MatTooltipModule,\r\n ProductsModule,\r\n CartModule,\r\n HttpClientModule,\r\n MatBadgeModule,\r\n MatSnackBarModule,\r\n ],\r\n providers: [\r\n interceptors,\r\n {\r\n provide: CONFIG_TOKEN,\r\n useValue: environment,\r\n },\r\n ],\r\n bootstrap: [AppComponent],\r\n})\r\nexport class AppModule {}\r\n","import { RouterModule, Routes } from '@angular/router';\r\nimport { NgModule } from '@angular/core';\r\nimport { CartComponent } from './cart.component';\r\n\r\nconst routes: Routes = [\r\n {\r\n path: '',\r\n component: CartComponent,\r\n },\r\n];\r\n\r\n@NgModule({\r\n imports: [RouterModule.forChild(routes)],\r\n exports: [RouterModule],\r\n})\r\nexport class CartRoutingModule {}\r\n","import { Component, EventEmitter, Input, Output } from '@angular/core';\r\nimport { UntypedFormGroup } from '@angular/forms';\r\n\r\n@Component({\r\n selector: 'app-cart-shipping-form',\r\n templateUrl: './cart-shipping-form.component.html',\r\n styleUrls: ['./cart-shipping-form.component.scss'],\r\n})\r\nexport class CartShippingFormComponent {\r\n @Input() shippingInfo!: UntypedFormGroup;\r\n\r\n @Output() nextStep = new EventEmitter();\r\n}\r\n","
\r\n
\r\n
\r\n \r\n \r\n\r\n \r\n First name is required!\r\n \r\n \r\n
\r\n
\r\n \r\n \r\n\r\n \r\n Last name is required!\r\n \r\n \r\n
\r\n
\r\n \r\n \r\n\r\n \r\n Shipping address is required!\r\n \r\n \r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n\r\n \r\n \r\n
\r\n","import { Component, OnInit } from '@angular/core';\r\nimport { UntypedFormBuilder, UntypedFormGroup, Validators } from '@angular/forms';\r\nimport { STEPPER_GLOBAL_OPTIONS } from '@angular/cdk/stepper';\r\nimport { CheckoutService } from './checkout.service';\r\nimport { ProductCheckout } from '../products/product.interface';\r\nimport { Observable } from 'rxjs';\r\nimport { CartService } from './cart.service';\r\nimport { map, shareReplay } from 'rxjs/operators';\r\n\r\n@Component({\r\n selector: 'app-cart',\r\n templateUrl: './cart.component.html',\r\n styleUrls: ['./cart.component.scss'],\r\n providers: [\r\n {\r\n provide: STEPPER_GLOBAL_OPTIONS,\r\n useValue: { displayDefaultIndicatorType: false },\r\n },\r\n ],\r\n})\r\nexport class CartComponent implements OnInit {\r\n products$!: Observable;\r\n totalPrice$!: Observable;\r\n totalInCart$!: Observable;\r\n cartEmpty$!: Observable;\r\n\r\n shippingInfo!: UntypedFormGroup;\r\n\r\n constructor(\r\n private readonly fb: UntypedFormBuilder,\r\n private readonly checkoutService: CheckoutService,\r\n private readonly cartService: CartService\r\n ) {}\r\n\r\n get fullName(): string {\r\n const { firstName, lastName } = this.shippingInfo.value;\r\n return `${firstName} ${lastName}`;\r\n }\r\n\r\n get address(): string {\r\n return this.shippingInfo.value.address;\r\n }\r\n\r\n get comment(): string {\r\n return this.shippingInfo.value.comment;\r\n }\r\n\r\n ngOnInit(): void {\r\n this.shippingInfo = this.fb.group({\r\n lastName: ['', Validators.required],\r\n firstName: ['', Validators.required],\r\n address: ['', Validators.required],\r\n comment: '',\r\n });\r\n\r\n this.products$ = this.checkoutService.getProductsForCheckout().pipe(\r\n shareReplay({\r\n refCount: true,\r\n bufferSize: 1,\r\n })\r\n );\r\n\r\n this.totalPrice$ = this.products$.pipe(\r\n map((products) => {\r\n const total = products.reduce((acc, val) => acc + val.totalPrice, 0);\r\n return +total.toFixed(2);\r\n }),\r\n shareReplay({\r\n refCount: true,\r\n bufferSize: 1,\r\n })\r\n );\r\n\r\n this.totalInCart$ = this.cartService.totalInCart$;\r\n this.cartEmpty$ = this.totalInCart$.pipe(map((count) => count > 0));\r\n }\r\n\r\n add(id: string): void {\r\n this.cartService.addItem(id);\r\n }\r\n\r\n remove(id: string): void {\r\n this.cartService.removeItem(id);\r\n }\r\n}\r\n","\r\n
\r\n \r\n

Checkout

\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n
\r\n \r\n
\r\n
\r\n\r\n
\r\n \r\n next\r\n \r\n
\r\n
\r\n
\r\n\r\n \r\n \r\n

Shipping address

\r\n\r\n \r\n\r\n
\r\n \r\n \r\n next\r\n \r\n
\r\n
\r\n\r\n \r\n \r\n \r\n\r\n
\r\n
\r\n

Shipping

\r\n

{{ fullName }}

\r\n

{{ address }}

\r\n
\r\n
\r\n

Comment

\r\n

{{ comment }}

\r\n
\r\n
\r\n\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n\r\n\r\n
\r\n The cart is empty. Didn't you like anything in our shop?\r\n
\r\n
\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { CartComponent } from './cart.component';\r\nimport { CartRoutingModule } from './cart-routing.module';\r\nimport { MatCardModule } from '@angular/material/card';\r\nimport { MatStepperModule } from '@angular/material/stepper';\r\nimport { MatButtonModule } from '@angular/material/button';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { MatFormFieldModule } from '@angular/material/form-field';\r\nimport { MatInputModule } from '@angular/material/input';\r\nimport { ProductItemCheckoutComponent } from './product-item-checkout/product-item-checkout.component';\r\nimport { CartCountControlsModule } from '../core/cart-count-controls/cart-count-controls.module';\r\nimport { MatProgressSpinnerModule } from '@angular/material/progress-spinner';\r\nimport { CartShippingFormComponent } from './cart-shipping-form/cart-shipping-form.component';\r\nimport { OrderSummaryComponent } from './order-summary/order-summary.component';\r\n\r\n@NgModule({\r\n declarations: [\r\n CartComponent,\r\n ProductItemCheckoutComponent,\r\n CartShippingFormComponent,\r\n OrderSummaryComponent,\r\n ],\r\n imports: [\r\n CommonModule,\r\n CartRoutingModule,\r\n MatCardModule,\r\n MatStepperModule,\r\n MatButtonModule,\r\n ReactiveFormsModule,\r\n MatFormFieldModule,\r\n MatInputModule,\r\n CartCountControlsModule,\r\n MatProgressSpinnerModule,\r\n ],\r\n exports: [CartComponent],\r\n})\r\nexport class CartModule {}\r\n","import { Injectable } from '@angular/core';\r\nimport { BehaviorSubject, Observable } from 'rxjs';\r\nimport { map, shareReplay } from 'rxjs/operators';\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class CartService {\r\n /** Key - item id, value - ordered amount */\r\n #cartSource = new BehaviorSubject>({});\r\n\r\n // eslint-disable-next-line @typescript-eslint/member-ordering\r\n cart$ = this.#cartSource.asObservable();\r\n\r\n // eslint-disable-next-line @typescript-eslint/member-ordering\r\n totalInCart$: Observable = this.cart$.pipe(\r\n map((cart) => {\r\n const values = Object.values(cart);\r\n\r\n if (!values.length) {\r\n return 0;\r\n }\r\n\r\n return values.reduce((acc, val) => acc + val, 0);\r\n }),\r\n shareReplay({\r\n refCount: true,\r\n bufferSize: 1,\r\n })\r\n );\r\n\r\n constructor() {}\r\n\r\n addItem(id: string): void {\r\n this.updateCount(id, 1);\r\n }\r\n\r\n removeItem(id: string): void {\r\n this.updateCount(id, -1);\r\n }\r\n\r\n empty(): void {\r\n this.#cartSource.next({});\r\n }\r\n\r\n private updateCount(id: string, type: 1 | -1): void {\r\n const val = this.#cartSource.getValue();\r\n const newVal = {\r\n ...val,\r\n };\r\n\r\n if (!(id in newVal)) {\r\n newVal[id] = 0;\r\n }\r\n\r\n if (type === 1) {\r\n newVal[id] = ++newVal[id];\r\n this.#cartSource.next(newVal);\r\n return;\r\n }\r\n\r\n if (newVal[id] === 0) {\r\n console.warn('No match. Skipping...');\r\n return;\r\n }\r\n\r\n newVal[id]--;\r\n\r\n if (!newVal[id]) {\r\n delete newVal[id];\r\n }\r\n\r\n this.#cartSource.next(newVal);\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { CartService } from './cart.service';\r\nimport { ProductsService } from '../products/products.service';\r\nimport { Observable } from 'rxjs';\r\nimport { ProductCheckout } from '../products/product.interface';\r\nimport { map, switchMap } from 'rxjs/operators';\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class CheckoutService {\r\n constructor(\r\n private readonly cartService: CartService,\r\n private readonly productsService: ProductsService\r\n ) {}\r\n\r\n getProductsForCheckout(): Observable {\r\n return this.cartService.cart$.pipe(\r\n switchMap((cart) =>\r\n this.productsService.getProductsForCheckout(Object.keys(cart)).pipe(\r\n map((products) =>\r\n products.map((product) => ({\r\n ...product,\r\n orderedCount: cart[product.id],\r\n totalPrice: +(cart[product.id] * product.price).toFixed(2),\r\n }))\r\n )\r\n )\r\n )\r\n );\r\n }\r\n}\r\n","import { Component, EventEmitter, Input, Output } from '@angular/core';\r\nimport { ProductCheckout } from '../../products/product.interface';\r\n\r\n@Component({\r\n selector: 'app-order-summary',\r\n templateUrl: './order-summary.component.html',\r\n styleUrls: ['./order-summary.component.scss'],\r\n})\r\nexport class OrderSummaryComponent {\r\n @Input() products!: ProductCheckout[];\r\n @Input() showControls!: boolean;\r\n @Input() totalPrice!: number;\r\n\r\n /** Add productId */\r\n @Output() add = new EventEmitter();\r\n /** Remove productId */\r\n @Output() remove = new EventEmitter();\r\n}\r\n","

Order summary

\r\n\r\n\r\n \r\n\r\n\r\n
\r\n

Shipping

\r\n Free\r\n
\r\n\r\n
\r\n

Total

\r\n {{\r\n totalPrice | number: \"1.2-2\" | currency\r\n }}\r\n
\r\n","import { Component, EventEmitter, Input, Output } from '@angular/core';\r\nimport { ProductCheckout } from '../../products/product.interface';\r\n\r\n@Component({\r\n selector: 'app-product-item-checkout',\r\n templateUrl: './product-item-checkout.component.html',\r\n styleUrls: ['./product-item-checkout.component.scss'],\r\n})\r\nexport class ProductItemCheckoutComponent {\r\n @Input() product!: ProductCheckout;\r\n @Input() hideControls = false;\r\n\r\n @Output() add = new EventEmitter();\r\n @Output() remove = new EventEmitter();\r\n}\r\n","\r\n
\r\n \r\n \r\n
\r\n \r\n

{{ product.title }}

\r\n

{{ product.description }}

\r\n \r\n
\r\n {{ product.price | number: \"1.2-2\" | currency }} x\r\n {{ product.orderedCount }} =\r\n {{ product.totalPrice | number: \"1.2-2\" | currency }}\r\n
\r\n \r\n
\r\n","import { Injectable, Injector } from '@angular/core';\r\nimport { ApiEndpoint, Config } from '../../environments/config.interface';\r\nimport { CONFIG_TOKEN } from './injection-tokens/config.token';\r\nimport { Location } from '@angular/common';\r\nimport { HttpClient } from '@angular/common/http';\r\n\r\n/** Base class for services working with APIs */\r\n@Injectable()\r\nexport abstract class ApiService {\r\n protected readonly config: Config;\r\n protected readonly http: HttpClient;\r\n\r\n protected constructor(protected readonly injector: Injector) {\r\n this.config = injector.get(CONFIG_TOKEN);\r\n this.http = injector.get(HttpClient);\r\n }\r\n\r\n endpointEnabled(api: ApiEndpoint): boolean {\r\n return this.config.apiEndpointsEnabled[api];\r\n }\r\n\r\n /** Combines API endpoint and path into a single URL */\r\n protected getUrl(api: ApiEndpoint, path: string): string {\r\n return Location.joinWithSlash(this.config.apiEndpoints[api], path);\r\n }\r\n}\r\n","import {\r\n Component,\r\n ElementRef,\r\n EventEmitter,\r\n Input,\r\n Output,\r\n ViewChild,\r\n} from '@angular/core';\r\n\r\n@Component({\r\n selector: 'app-cart-count-controls',\r\n templateUrl: './cart-count-controls.component.html',\r\n styleUrls: ['./cart-count-controls.component.scss'],\r\n exportAs: 'countControls',\r\n})\r\nexport class CartCountControlsComponent {\r\n @Input() count!: number;\r\n @Input() available!: number;\r\n @Input() productName!: string;\r\n\r\n @Output() increment = new EventEmitter();\r\n @Output() decrement = new EventEmitter();\r\n\r\n @ViewChild('addBtn', { read: ElementRef })\r\n addBtn!: ElementRef;\r\n\r\n focusAddBtn(): void {\r\n this.addBtn.nativeElement.focus();\r\n }\r\n}\r\n","\r\n\r\n remove\r\n\r\n\r\n{{ count }}\r\n\r\n= available\"\r\n color=\"accent\"\r\n matTooltip=\"Add {{ productName }} to cart\"\r\n mat-icon-button\r\n>\r\n add\r\n\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { CartCountControlsComponent } from './cart-count-controls.component';\r\nimport { MatButtonModule } from '@angular/material/button';\r\nimport { MatTooltipModule } from '@angular/material/tooltip';\r\nimport { MatIconModule } from '@angular/material/icon';\r\n\r\n@NgModule({\r\n declarations: [CartCountControlsComponent],\r\n imports: [CommonModule, MatButtonModule, MatTooltipModule, MatIconModule],\r\n exports: [CartCountControlsComponent],\r\n})\r\nexport class CartCountControlsModule {}\r\n","import { Component, OnInit } from '@angular/core';\r\nimport { CartService } from '../../cart/cart.service';\r\nimport { Observable } from 'rxjs';\r\n\r\n@Component({\r\n selector: 'app-header',\r\n templateUrl: './header.component.html',\r\n styleUrls: ['./header.component.scss'],\r\n})\r\nexport class HeaderComponent implements OnInit {\r\n totalInCart$!: Observable;\r\n\r\n constructor(private readonly cartService: CartService) {}\r\n\r\n ngOnInit(): void {\r\n this.totalInCart$ = this.cartService.totalInCart$;\r\n }\r\n}\r\n","\r\n E-shop\r\n\r\n
\r\n\r\n \r\n \r\n account_circle\r\n \r\n\r\n \r\n \r\n
\r\n\r\n\r\n Manage orders\r\n Manage products\r\n\r\n","import { InjectionToken } from '@angular/core';\r\nimport { Config } from '../../../environments/config.interface';\r\n\r\nexport const CONFIG_TOKEN = new InjectionToken('CONFIG_TOKEN');\r\n","import { Injectable } from '@angular/core';\r\nimport {\r\n HttpEvent,\r\n HttpHandler,\r\n HttpInterceptor,\r\n HttpRequest,\r\n} from '@angular/common/http';\r\nimport { Observable } from 'rxjs';\r\nimport { NotificationService } from '../notification.service';\r\nimport { tap } from 'rxjs/operators';\r\n\r\n@Injectable()\r\nexport class ErrorPrintInterceptor implements HttpInterceptor {\r\n constructor(private readonly notificationService: NotificationService) {}\r\n\r\n intercept(\r\n request: HttpRequest,\r\n next: HttpHandler\r\n ): Observable> {\r\n return next.handle(request).pipe(\r\n tap({\r\n error: () => {\r\n const url = new URL(request.url);\r\n\r\n this.notificationService.showError(\r\n `Request to \"${url.pathname}\" failed. Check the console for the details`,\r\n 0\r\n );\r\n },\r\n })\r\n );\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { MatSnackBar } from '@angular/material/snack-bar';\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class NotificationService {\r\n constructor(private readonly snackBar: MatSnackBar) {}\r\n\r\n /**\r\n * Show message with an error\r\n *\r\n * @param text Error text message\r\n * @param duration Duration to close after. 0 to close manually only\r\n */\r\n showError(text: string, duration = 3000) {\r\n this.snackBar.open(text, 'Dismiss', {\r\n duration,\r\n panelClass: 'shop-snackbar-error',\r\n });\r\n }\r\n}\r\n","import { Component, ElementRef, Input, OnInit, ViewChild } from '@angular/core';\r\nimport { Product } from '../product.interface';\r\nimport { CartService } from '../../cart/cart.service';\r\nimport { Observable } from 'rxjs';\r\nimport { map, shareReplay, tap } from 'rxjs/operators';\r\nimport { CartCountControlsComponent } from '../../core/cart-count-controls/cart-count-controls.component';\r\n\r\n@Component({\r\n selector: 'app-product-item',\r\n templateUrl: './product-item.component.html',\r\n styleUrls: ['./product-item.component.scss'],\r\n})\r\nexport class ProductItemComponent implements OnInit {\r\n @Input() product!: Product;\r\n @Input() index!: number;\r\n\r\n @ViewChild('cartBtn', { static: false, read: ElementRef }) cartBtn:\r\n | ElementRef\r\n | undefined;\r\n @ViewChild('controls', { static: false }) countControls:\r\n | CartCountControlsComponent\r\n | undefined;\r\n\r\n countInCart$!: Observable;\r\n\r\n constructor(private readonly cartService: CartService) {}\r\n\r\n get id(): string {\r\n return this.product.id;\r\n }\r\n\r\n ngOnInit(): void {\r\n this.countInCart$ = this.cartService.cart$.pipe(\r\n map((cart) => {\r\n if (!(this.id in cart)) {\r\n return 0;\r\n }\r\n\r\n return cart[this.id];\r\n }),\r\n this.updateFocusIfNeeded(),\r\n shareReplay({\r\n bufferSize: 1,\r\n refCount: true,\r\n })\r\n );\r\n }\r\n\r\n add(): void {\r\n this.cartService.addItem(this.id);\r\n }\r\n\r\n remove(): void {\r\n this.cartService.removeItem(this.id);\r\n }\r\n\r\n /** Move focus to a corresponding control when controls switch */\r\n private updateFocusIfNeeded() {\r\n let prev: number;\r\n\r\n return (observable: Observable): Observable =>\r\n observable.pipe(\r\n tap((curr) => {\r\n if (prev === 0 && curr === 1) {\r\n setTimeout(() => this.countControls?.focusAddBtn());\r\n } else if (prev === 1 && curr === 0) {\r\n setTimeout(() => this.cartBtn?.nativeElement.focus());\r\n }\r\n\r\n prev = curr;\r\n })\r\n );\r\n }\r\n}\r\n","\r\n
\r\n
\r\n \"\"\r\n
\r\n
\r\n\r\n \r\n \r\n {{ product.title }}\r\n \r\n \r\n\r\n \r\n

{{ product.price | number: \"1.2-2\" | currency }}

\r\n
\r\n\r\n \r\n \r\n \r\n shopping_cart\r\n \r\n\r\n 0\"\r\n (increment)=\"add()\"\r\n (decrement)=\"remove()\"\r\n [productName]=\"product.title\"\r\n [count]=\"(countInCart$ | async)!\"\r\n [available]=\"product.count\"\r\n >\r\n \r\n
\r\n","
\r\n \r\n \r\n
\r\n","import { Component, OnInit } from '@angular/core';\r\nimport { ProductsService } from './products.service';\r\nimport { Observable } from 'rxjs';\r\nimport { Product } from './product.interface';\r\n\r\n@Component({\r\n selector: 'app-products',\r\n templateUrl: './products.component.html',\r\n styleUrls: ['./products.component.scss'],\r\n})\r\nexport class ProductsComponent implements OnInit {\r\n readonly products$: Observable<\r\n Product[]\r\n > = this.productsService.getProducts();\r\n\r\n constructor(private readonly productsService: ProductsService) {}\r\n\r\n ngOnInit(): void {}\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { ProductsComponent } from './products.component';\r\nimport { ProductItemComponent } from './product-item/product-item.component';\r\nimport { MatCardModule } from '@angular/material/card';\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { MatButtonModule } from '@angular/material/button';\r\nimport { MatTooltipModule } from '@angular/material/tooltip';\r\nimport { CartCountControlsModule } from '../core/cart-count-controls/cart-count-controls.module';\r\n\r\n@NgModule({\r\n declarations: [ProductsComponent, ProductItemComponent],\r\n imports: [\r\n CommonModule,\r\n MatCardModule,\r\n MatIconModule,\r\n MatButtonModule,\r\n MatTooltipModule,\r\n CartCountControlsModule,\r\n ],\r\n exports: [ProductsComponent],\r\n})\r\nexport class ProductsModule {}\r\n","import { Injectable } from '@angular/core';\r\n\r\nimport { EMPTY, Observable, of, throwError } from 'rxjs';\r\nimport { map } from 'rxjs/operators';\r\n\r\nimport { Product } from './product.interface';\r\n\r\nimport { ApiService } from '../core/api.service';\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class ProductsService extends ApiService {\r\n createNewProduct(product: Product): Observable {\r\n if (!this.endpointEnabled('bff')) {\r\n console.warn(\r\n 'Endpoint \"bff\" is disabled. To enable change your environment.ts config'\r\n );\r\n return EMPTY;\r\n }\r\n\r\n const url = this.getUrl('bff', 'products');\r\n return this.http.post(url, product);\r\n }\r\n\r\n editProduct(id: string, changedProduct: Product): Observable {\r\n if (!this.endpointEnabled('bff')) {\r\n console.warn(\r\n 'Endpoint \"bff\" is disabled. To enable change your environment.ts config'\r\n );\r\n return EMPTY;\r\n }\r\n\r\n const url = this.getUrl('bff', `products/${id}`);\r\n return this.http.put(url, changedProduct);\r\n }\r\n\r\n getProductById(id: string): Observable {\r\n if (!this.endpointEnabled('bff')) {\r\n console.warn(\r\n 'Endpoint \"bff\" is disabled. To enable change your environment.ts config'\r\n );\r\n return this.http\r\n .get('/assets/products.json')\r\n .pipe(\r\n map(\r\n (products) => products.find((product) => product.id === id) || null\r\n )\r\n );\r\n }\r\n\r\n const url = this.getUrl('bff', `products/${id}`);\r\n return this.http\r\n .get<{ product: Product }>(url)\r\n .pipe(map((resp) => resp.product));\r\n }\r\n\r\n getProducts(): Observable {\r\n if (!this.endpointEnabled('bff')) {\r\n console.warn(\r\n 'Endpoint \"bff\" is disabled. To enable change your environment.ts config'\r\n );\r\n return this.http.get('/assets/products.json');\r\n }\r\n\r\n const url = this.getUrl('bff', 'products');\r\n return this.http.get(url);\r\n }\r\n\r\n getProductsForCheckout(ids: string[]): Observable {\r\n if (!ids.length) {\r\n return of([]);\r\n }\r\n\r\n return this.getProducts().pipe(\r\n map((products) => products.filter((product) => ids.includes(product.id)))\r\n );\r\n }\r\n}\r\n","// This file can be replaced during build by using the `fileReplacements` array.\r\n// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.\r\n// The list of file replacements can be found in `angular.json`.\r\n\r\nimport { Config } from './config.interface';\r\n\r\nexport const environment: Config = {\r\n production: false,\r\n apiEndpoints: {\r\n product: 'https://.execute-api.eu-west-1.amazonaws.com/dev',\r\n order: 'https://.execute-api.eu-west-1.amazonaws.com/dev',\r\n import: 'https://.execute-api.eu-west-1.amazonaws.com/dev',\r\n bff: 'https://.execute-api.eu-west-1.amazonaws.com/dev',\r\n cart: 'https://.execute-api.eu-west-1.amazonaws.com/dev',\r\n },\r\n apiEndpointsEnabled: {\r\n product: false,\r\n order: false,\r\n import: false,\r\n bff: false,\r\n cart: false,\r\n },\r\n};\r\n\r\n/*\r\n * For easier debugging in development mode, you can import the following file\r\n * to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`.\r\n *\r\n * This import should be commented out in production mode because it will have a negative impact\r\n * on performance if an error is thrown.\r\n */\r\n// import 'zone.js/plugins/zone-error'; // Included with Angular CLI.\r\n","import { enableProdMode } from '@angular/core';\r\nimport { platformBrowserDynamic } from '@angular/platform-browser-dynamic';\r\n\r\nimport { AppModule } from './app/app.module';\r\nimport { environment } from './environments/environment';\r\n\r\nif (environment.production) {\r\n enableProdMode();\r\n}\r\n\r\nplatformBrowserDynamic()\r\n .bootstrapModule(AppModule)\r\n .catch((err) => console.error(err));\r\n"],"names":["RouterModule","ProductsComponent","routes","path","component","loadChildren","then","m","CartModule","AdminModule","AppRoutingModule","forRoot","imports","exports","AppComponent","selectors","decls","vars","consts","template","i0","BrowserModule","BrowserAnimationsModule","HeaderComponent","MatToolbarModule","MatButtonModule","MatIconModule","MatMenuModule","MatTooltipModule","ProductsModule","HTTP_INTERCEPTORS","HttpClientModule","MatBadgeModule","CONFIG_TOKEN","environment","ErrorPrintInterceptor","MatSnackBarModule","interceptors","provide","useClass","multi","AppModule","bootstrap","useValue","declarations","CartComponent","CartRoutingModule","forChild","EventEmitter","CartShippingFormComponent","constructor","inputs","shippingInfo","outputs","nextStep","ctx","Validators","STEPPER_GLOBAL_OPTIONS","map","shareReplay","fb","checkoutService","cartService","fullName","firstName","lastName","value","address","comment","ngOnInit","group","required","products$","getProductsForCheckout","pipe","refCount","bufferSize","totalPrice$","products","total","reduce","acc","val","totalPrice","toFixed","totalInCart$","cartEmpty$","count","add","id","addItem","remove","removeItem","features","displayDefaultIndicatorType","CommonModule","MatCardModule","MatStepperModule","ReactiveFormsModule","MatFormFieldModule","MatInputModule","ProductItemCheckoutComponent","CartCountControlsModule","MatProgressSpinnerModule","OrderSummaryComponent","BehaviorSubject","CartService","_CartService_cartSource","__classPrivateFieldGet","asObservable","cart$","cart","values","Object","length","updateCount","empty","next","type","getValue","newVal","console","warn","factory","providedIn","switchMap","CheckoutService","productsService","keys","product","orderedCount","price","showControls","hideControls","Location","HttpClient","ApiService","injector","config","get","http","endpointEnabled","api","apiEndpointsEnabled","getUrl","joinWithSlash","apiEndpoints","ElementRef","CartCountControlsComponent","focusAddBtn","addBtn","nativeElement","focus","viewQuery","InjectionToken","tap","notificationService","intercept","request","handle","error","url","URL","showError","pathname","NotificationService","snackBar","text","duration","open","panelClass","ProductItemComponent","countInCart$","updateFocusIfNeeded","prev","observable","curr","setTimeout","countControls","cartBtn","getProducts","EMPTY","of","ProductsService","createNewProduct","post","editProduct","changedProduct","put","getProductById","find","resp","ids","filter","includes","production","order","import","bff","enableProdMode","__NgCli_bootstrap_1","bootstrapModule","catch","err"],"sourceRoot":"webpack:///","x_google_ignoreList":[]} \ No newline at end of file diff --git a/cdk/cdk.out/asset.705042e10eb8fb6d7d7475c39e61e09836398336585ba5ef9814a4a774e8e009/polyfills.js b/cdk/cdk.out/asset.705042e10eb8fb6d7d7475c39e61e09836398336585ba5ef9814a4a774e8e009/polyfills.js new file mode 100644 index 00000000..1a00dd85 --- /dev/null +++ b/cdk/cdk.out/asset.705042e10eb8fb6d7d7475c39e61e09836398336585ba5ef9814a4a774e8e009/polyfills.js @@ -0,0 +1,3649 @@ +"use strict"; +(self["webpackChunkapp"] = self["webpackChunkapp"] || []).push([ + ["polyfills"], + { + /***/ 7435: + /*!**************************!*\ + !*** ./src/polyfills.ts ***! + \**************************/ + /***/ ( + __unused_webpack_module, + __webpack_exports__, + __webpack_require__ + ) => { + __webpack_require__.r(__webpack_exports__); + /* harmony import */ var zone_js__WEBPACK_IMPORTED_MODULE_0__ = + __webpack_require__(/*! zone.js */ 4946); + /* harmony import */ var zone_js__WEBPACK_IMPORTED_MODULE_0___default = + /*#__PURE__*/ __webpack_require__.n( + zone_js__WEBPACK_IMPORTED_MODULE_0__ + ); + /** + * This file includes polyfills needed by Angular and is loaded before the app. + * You can add your own extra polyfills to this file. + * + * This file is divided into 2 sections: + * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers. + * 2. Application imports. Files imported after ZoneJS that should be loaded before your main + * file. + * + * The current setup is for so-called "evergreen" browsers; the last versions of browsers that + * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera), + * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile. + * + * Learn more in https://angular.io/guide/browser-support + */ + /*************************************************************************************************** + * BROWSER POLYFILLS + */ + /** + * By default, zone.js will patch all possible macroTask and DomEvents + * user can disable parts of macroTask/DomEvents patch by setting following flags + * because those flags need to be set before `zone.js` being loaded, and webpack + * will put import in the top of bundle, so user need to create a separate file + * in this directory (for example: zone-flags.ts), and put the following flags + * into that file, and then add the following code before importing zone.js. + * import './zone-flags'; + * + * The flags allowed in zone-flags.ts are listed here. + * + * The following flags will work for all browsers. + * + * (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame + * (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick + * (window as any).__zone_symbol__UNPATCHED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames + * + * in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js + * with the following flag, it will bypass `zone.js` patch for IE/Edge + * + * (window as any).__Zone_enable_cross_context_check = true; + * + */ + /*************************************************************************************************** + * Zone JS is required by default for Angular itself. + */ + // Included with Angular CLI. + /*************************************************************************************************** + * APPLICATION IMPORTS + */ + + /***/ + }, + + /***/ 4946: + /*!***********************************************!*\ + !*** ./node_modules/zone.js/fesm2015/zone.js ***! + \***********************************************/ + /***/ () => { + /** + * @license Angular v15.1.0-next.0 + * (c) 2010-2022 Google LLC. https://angular.io/ + * License: MIT + */ + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + (function (global) { + const performance = global["performance"]; + function mark(name) { + performance && performance["mark"] && performance["mark"](name); + } + function performanceMeasure(name, label) { + performance && + performance["measure"] && + performance["measure"](name, label); + } + mark("Zone"); + // Initialize before it's accessed below. + // __Zone_symbol_prefix global can be used to override the default zone + // symbol prefix with a custom one if needed. + const symbolPrefix = + global["__Zone_symbol_prefix"] || "__zone_symbol__"; + function __symbol__(name) { + return symbolPrefix + name; + } + const checkDuplicate = + global[__symbol__("forceDuplicateZoneCheck")] === true; + if (global["Zone"]) { + // if global['Zone'] already exists (maybe zone.js was already loaded or + // some other lib also registered a global object named Zone), we may need + // to throw an error, but sometimes user may not want this error. + // For example, + // we have two web pages, page1 includes zone.js, page2 doesn't. + // and the 1st time user load page1 and page2, everything work fine, + // but when user load page2 again, error occurs because global['Zone'] already exists. + // so we add a flag to let user choose whether to throw this error or not. + // By default, if existing Zone is from zone.js, we will not throw the error. + if ( + checkDuplicate || + typeof global["Zone"].__symbol__ !== "function" + ) { + throw new Error("Zone already loaded."); + } else { + return global["Zone"]; + } + } + class Zone { + constructor(parent, zoneSpec) { + this._parent = parent; + this._name = zoneSpec ? zoneSpec.name || "unnamed" : ""; + this._properties = (zoneSpec && zoneSpec.properties) || {}; + this._zoneDelegate = new _ZoneDelegate( + this, + this._parent && this._parent._zoneDelegate, + zoneSpec + ); + } + static assertZonePatched() { + if (global["Promise"] !== patches["ZoneAwarePromise"]) { + throw new Error( + "Zone.js has detected that ZoneAwarePromise `(window|global).Promise` " + + "has been overwritten.\n" + + "Most likely cause is that a Promise polyfill has been loaded " + + "after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. " + + "If you must load one, do so before loading zone.js.)" + ); + } + } + static get root() { + let zone = Zone.current; + while (zone.parent) { + zone = zone.parent; + } + return zone; + } + static get current() { + return _currentZoneFrame.zone; + } + static get currentTask() { + return _currentTask; + } + // tslint:disable-next-line:require-internal-with-underscore + static __load_patch(name, fn, ignoreDuplicate = false) { + if (patches.hasOwnProperty(name)) { + // `checkDuplicate` option is defined from global variable + // so it works for all modules. + // `ignoreDuplicate` can work for the specified module + if (!ignoreDuplicate && checkDuplicate) { + throw Error("Already loaded patch: " + name); + } + } else if (!global["__Zone_disable_" + name]) { + const perfName = "Zone:" + name; + mark(perfName); + patches[name] = fn(global, Zone, _api); + performanceMeasure(perfName, perfName); + } + } + get parent() { + return this._parent; + } + get name() { + return this._name; + } + get(key) { + const zone = this.getZoneWith(key); + if (zone) return zone._properties[key]; + } + getZoneWith(key) { + let current = this; + while (current) { + if (current._properties.hasOwnProperty(key)) { + return current; + } + current = current._parent; + } + return null; + } + fork(zoneSpec) { + if (!zoneSpec) throw new Error("ZoneSpec required!"); + return this._zoneDelegate.fork(this, zoneSpec); + } + wrap(callback, source) { + if (typeof callback !== "function") { + throw new Error("Expecting function got: " + callback); + } + const _callback = this._zoneDelegate.intercept( + this, + callback, + source + ); + const zone = this; + return function () { + return zone.runGuarded(_callback, this, arguments, source); + }; + } + run(callback, applyThis, applyArgs, source) { + _currentZoneFrame = { + parent: _currentZoneFrame, + zone: this, + }; + try { + return this._zoneDelegate.invoke( + this, + callback, + applyThis, + applyArgs, + source + ); + } finally { + _currentZoneFrame = _currentZoneFrame.parent; + } + } + runGuarded(callback, applyThis = null, applyArgs, source) { + _currentZoneFrame = { + parent: _currentZoneFrame, + zone: this, + }; + try { + try { + return this._zoneDelegate.invoke( + this, + callback, + applyThis, + applyArgs, + source + ); + } catch (error) { + if (this._zoneDelegate.handleError(this, error)) { + throw error; + } + } + } finally { + _currentZoneFrame = _currentZoneFrame.parent; + } + } + runTask(task, applyThis, applyArgs) { + if (task.zone != this) { + throw new Error( + "A task can only be run in the zone of creation! (Creation: " + + (task.zone || NO_ZONE).name + + "; Execution: " + + this.name + + ")" + ); + } + // https://github.com/angular/zone.js/issues/778, sometimes eventTask + // will run in notScheduled(canceled) state, we should not try to + // run such kind of task but just return + if ( + task.state === notScheduled && + (task.type === eventTask || task.type === macroTask) + ) { + return; + } + const reEntryGuard = task.state != running; + reEntryGuard && task._transitionTo(running, scheduled); + task.runCount++; + const previousTask = _currentTask; + _currentTask = task; + _currentZoneFrame = { + parent: _currentZoneFrame, + zone: this, + }; + try { + if ( + task.type == macroTask && + task.data && + !task.data.isPeriodic + ) { + task.cancelFn = undefined; + } + try { + return this._zoneDelegate.invokeTask( + this, + task, + applyThis, + applyArgs + ); + } catch (error) { + if (this._zoneDelegate.handleError(this, error)) { + throw error; + } + } + } finally { + // if the task's state is notScheduled or unknown, then it has already been cancelled + // we should not reset the state to scheduled + if (task.state !== notScheduled && task.state !== unknown) { + if ( + task.type == eventTask || + (task.data && task.data.isPeriodic) + ) { + reEntryGuard && task._transitionTo(scheduled, running); + } else { + task.runCount = 0; + this._updateTaskCount(task, -1); + reEntryGuard && + task._transitionTo(notScheduled, running, notScheduled); + } + } + _currentZoneFrame = _currentZoneFrame.parent; + _currentTask = previousTask; + } + } + scheduleTask(task) { + if (task.zone && task.zone !== this) { + // check if the task was rescheduled, the newZone + // should not be the children of the original zone + let newZone = this; + while (newZone) { + if (newZone === task.zone) { + throw Error( + `can not reschedule task to ${this.name} which is descendants of the original zone ${task.zone.name}` + ); + } + newZone = newZone.parent; + } + } + task._transitionTo(scheduling, notScheduled); + const zoneDelegates = []; + task._zoneDelegates = zoneDelegates; + task._zone = this; + try { + task = this._zoneDelegate.scheduleTask(this, task); + } catch (err) { + // should set task's state to unknown when scheduleTask throw error + // because the err may from reschedule, so the fromState maybe notScheduled + task._transitionTo(unknown, scheduling, notScheduled); + // TODO: @JiaLiPassion, should we check the result from handleError? + this._zoneDelegate.handleError(this, err); + throw err; + } + if (task._zoneDelegates === zoneDelegates) { + // we have to check because internally the delegate can reschedule the task. + this._updateTaskCount(task, 1); + } + if (task.state == scheduling) { + task._transitionTo(scheduled, scheduling); + } + return task; + } + scheduleMicroTask(source, callback, data, customSchedule) { + return this.scheduleTask( + new ZoneTask( + microTask, + source, + callback, + data, + customSchedule, + undefined + ) + ); + } + scheduleMacroTask( + source, + callback, + data, + customSchedule, + customCancel + ) { + return this.scheduleTask( + new ZoneTask( + macroTask, + source, + callback, + data, + customSchedule, + customCancel + ) + ); + } + scheduleEventTask( + source, + callback, + data, + customSchedule, + customCancel + ) { + return this.scheduleTask( + new ZoneTask( + eventTask, + source, + callback, + data, + customSchedule, + customCancel + ) + ); + } + cancelTask(task) { + if (task.zone != this) + throw new Error( + "A task can only be cancelled in the zone of creation! (Creation: " + + (task.zone || NO_ZONE).name + + "; Execution: " + + this.name + + ")" + ); + if (task.state !== scheduled && task.state !== running) { + return; + } + task._transitionTo(canceling, scheduled, running); + try { + this._zoneDelegate.cancelTask(this, task); + } catch (err) { + // if error occurs when cancelTask, transit the state to unknown + task._transitionTo(unknown, canceling); + this._zoneDelegate.handleError(this, err); + throw err; + } + this._updateTaskCount(task, -1); + task._transitionTo(notScheduled, canceling); + task.runCount = 0; + return task; + } + _updateTaskCount(task, count) { + const zoneDelegates = task._zoneDelegates; + if (count == -1) { + task._zoneDelegates = null; + } + for (let i = 0; i < zoneDelegates.length; i++) { + zoneDelegates[i]._updateTaskCount(task.type, count); + } + } + } + // tslint:disable-next-line:require-internal-with-underscore + Zone.__symbol__ = __symbol__; + const DELEGATE_ZS = { + name: "", + onHasTask: (delegate, _, target, hasTaskState) => + delegate.hasTask(target, hasTaskState), + onScheduleTask: (delegate, _, target, task) => + delegate.scheduleTask(target, task), + onInvokeTask: (delegate, _, target, task, applyThis, applyArgs) => + delegate.invokeTask(target, task, applyThis, applyArgs), + onCancelTask: (delegate, _, target, task) => + delegate.cancelTask(target, task), + }; + class _ZoneDelegate { + constructor(zone, parentDelegate, zoneSpec) { + this._taskCounts = { + microTask: 0, + macroTask: 0, + eventTask: 0, + }; + this.zone = zone; + this._parentDelegate = parentDelegate; + this._forkZS = + zoneSpec && + (zoneSpec && zoneSpec.onFork + ? zoneSpec + : parentDelegate._forkZS); + this._forkDlgt = + zoneSpec && + (zoneSpec.onFork ? parentDelegate : parentDelegate._forkDlgt); + this._forkCurrZone = + zoneSpec && + (zoneSpec.onFork ? this.zone : parentDelegate._forkCurrZone); + this._interceptZS = + zoneSpec && + (zoneSpec.onIntercept ? zoneSpec : parentDelegate._interceptZS); + this._interceptDlgt = + zoneSpec && + (zoneSpec.onIntercept + ? parentDelegate + : parentDelegate._interceptDlgt); + this._interceptCurrZone = + zoneSpec && + (zoneSpec.onIntercept + ? this.zone + : parentDelegate._interceptCurrZone); + this._invokeZS = + zoneSpec && + (zoneSpec.onInvoke ? zoneSpec : parentDelegate._invokeZS); + this._invokeDlgt = + zoneSpec && + (zoneSpec.onInvoke + ? parentDelegate + : parentDelegate._invokeDlgt); + this._invokeCurrZone = + zoneSpec && + (zoneSpec.onInvoke + ? this.zone + : parentDelegate._invokeCurrZone); + this._handleErrorZS = + zoneSpec && + (zoneSpec.onHandleError + ? zoneSpec + : parentDelegate._handleErrorZS); + this._handleErrorDlgt = + zoneSpec && + (zoneSpec.onHandleError + ? parentDelegate + : parentDelegate._handleErrorDlgt); + this._handleErrorCurrZone = + zoneSpec && + (zoneSpec.onHandleError + ? this.zone + : parentDelegate._handleErrorCurrZone); + this._scheduleTaskZS = + zoneSpec && + (zoneSpec.onScheduleTask + ? zoneSpec + : parentDelegate._scheduleTaskZS); + this._scheduleTaskDlgt = + zoneSpec && + (zoneSpec.onScheduleTask + ? parentDelegate + : parentDelegate._scheduleTaskDlgt); + this._scheduleTaskCurrZone = + zoneSpec && + (zoneSpec.onScheduleTask + ? this.zone + : parentDelegate._scheduleTaskCurrZone); + this._invokeTaskZS = + zoneSpec && + (zoneSpec.onInvokeTask + ? zoneSpec + : parentDelegate._invokeTaskZS); + this._invokeTaskDlgt = + zoneSpec && + (zoneSpec.onInvokeTask + ? parentDelegate + : parentDelegate._invokeTaskDlgt); + this._invokeTaskCurrZone = + zoneSpec && + (zoneSpec.onInvokeTask + ? this.zone + : parentDelegate._invokeTaskCurrZone); + this._cancelTaskZS = + zoneSpec && + (zoneSpec.onCancelTask + ? zoneSpec + : parentDelegate._cancelTaskZS); + this._cancelTaskDlgt = + zoneSpec && + (zoneSpec.onCancelTask + ? parentDelegate + : parentDelegate._cancelTaskDlgt); + this._cancelTaskCurrZone = + zoneSpec && + (zoneSpec.onCancelTask + ? this.zone + : parentDelegate._cancelTaskCurrZone); + this._hasTaskZS = null; + this._hasTaskDlgt = null; + this._hasTaskDlgtOwner = null; + this._hasTaskCurrZone = null; + const zoneSpecHasTask = zoneSpec && zoneSpec.onHasTask; + const parentHasTask = parentDelegate && parentDelegate._hasTaskZS; + if (zoneSpecHasTask || parentHasTask) { + // If we need to report hasTask, than this ZS needs to do ref counting on tasks. In such + // a case all task related interceptors must go through this ZD. We can't short circuit it. + this._hasTaskZS = zoneSpecHasTask ? zoneSpec : DELEGATE_ZS; + this._hasTaskDlgt = parentDelegate; + this._hasTaskDlgtOwner = this; + this._hasTaskCurrZone = zone; + if (!zoneSpec.onScheduleTask) { + this._scheduleTaskZS = DELEGATE_ZS; + this._scheduleTaskDlgt = parentDelegate; + this._scheduleTaskCurrZone = this.zone; + } + if (!zoneSpec.onInvokeTask) { + this._invokeTaskZS = DELEGATE_ZS; + this._invokeTaskDlgt = parentDelegate; + this._invokeTaskCurrZone = this.zone; + } + if (!zoneSpec.onCancelTask) { + this._cancelTaskZS = DELEGATE_ZS; + this._cancelTaskDlgt = parentDelegate; + this._cancelTaskCurrZone = this.zone; + } + } + } + fork(targetZone, zoneSpec) { + return this._forkZS + ? this._forkZS.onFork( + this._forkDlgt, + this.zone, + targetZone, + zoneSpec + ) + : new Zone(targetZone, zoneSpec); + } + intercept(targetZone, callback, source) { + return this._interceptZS + ? this._interceptZS.onIntercept( + this._interceptDlgt, + this._interceptCurrZone, + targetZone, + callback, + source + ) + : callback; + } + invoke(targetZone, callback, applyThis, applyArgs, source) { + return this._invokeZS + ? this._invokeZS.onInvoke( + this._invokeDlgt, + this._invokeCurrZone, + targetZone, + callback, + applyThis, + applyArgs, + source + ) + : callback.apply(applyThis, applyArgs); + } + handleError(targetZone, error) { + return this._handleErrorZS + ? this._handleErrorZS.onHandleError( + this._handleErrorDlgt, + this._handleErrorCurrZone, + targetZone, + error + ) + : true; + } + scheduleTask(targetZone, task) { + let returnTask = task; + if (this._scheduleTaskZS) { + if (this._hasTaskZS) { + returnTask._zoneDelegates.push(this._hasTaskDlgtOwner); + } + // clang-format off + returnTask = this._scheduleTaskZS.onScheduleTask( + this._scheduleTaskDlgt, + this._scheduleTaskCurrZone, + targetZone, + task + ); + // clang-format on + if (!returnTask) returnTask = task; + } else { + if (task.scheduleFn) { + task.scheduleFn(task); + } else if (task.type == microTask) { + scheduleMicroTask(task); + } else { + throw new Error("Task is missing scheduleFn."); + } + } + return returnTask; + } + invokeTask(targetZone, task, applyThis, applyArgs) { + return this._invokeTaskZS + ? this._invokeTaskZS.onInvokeTask( + this._invokeTaskDlgt, + this._invokeTaskCurrZone, + targetZone, + task, + applyThis, + applyArgs + ) + : task.callback.apply(applyThis, applyArgs); + } + cancelTask(targetZone, task) { + let value; + if (this._cancelTaskZS) { + value = this._cancelTaskZS.onCancelTask( + this._cancelTaskDlgt, + this._cancelTaskCurrZone, + targetZone, + task + ); + } else { + if (!task.cancelFn) { + throw Error("Task is not cancelable"); + } + value = task.cancelFn(task); + } + return value; + } + hasTask(targetZone, isEmpty) { + // hasTask should not throw error so other ZoneDelegate + // can still trigger hasTask callback + try { + this._hasTaskZS && + this._hasTaskZS.onHasTask( + this._hasTaskDlgt, + this._hasTaskCurrZone, + targetZone, + isEmpty + ); + } catch (err) { + this.handleError(targetZone, err); + } + } + // tslint:disable-next-line:require-internal-with-underscore + _updateTaskCount(type, count) { + const counts = this._taskCounts; + const prev = counts[type]; + const next = (counts[type] = prev + count); + if (next < 0) { + throw new Error("More tasks executed then were scheduled."); + } + if (prev == 0 || next == 0) { + const isEmpty = { + microTask: counts["microTask"] > 0, + macroTask: counts["macroTask"] > 0, + eventTask: counts["eventTask"] > 0, + change: type, + }; + this.hasTask(this.zone, isEmpty); + } + } + } + class ZoneTask { + constructor(type, source, callback, options, scheduleFn, cancelFn) { + // tslint:disable-next-line:require-internal-with-underscore + this._zone = null; + this.runCount = 0; + // tslint:disable-next-line:require-internal-with-underscore + this._zoneDelegates = null; + // tslint:disable-next-line:require-internal-with-underscore + this._state = "notScheduled"; + this.type = type; + this.source = source; + this.data = options; + this.scheduleFn = scheduleFn; + this.cancelFn = cancelFn; + if (!callback) { + throw new Error("callback is not defined"); + } + this.callback = callback; + const self = this; + // TODO: @JiaLiPassion options should have interface + if (type === eventTask && options && options.useG) { + this.invoke = ZoneTask.invokeTask; + } else { + this.invoke = function () { + return ZoneTask.invokeTask.call( + global, + self, + this, + arguments + ); + }; + } + } + static invokeTask(task, target, args) { + if (!task) { + task = this; + } + _numberOfNestedTaskFrames++; + try { + task.runCount++; + return task.zone.runTask(task, target, args); + } finally { + if (_numberOfNestedTaskFrames == 1) { + drainMicroTaskQueue(); + } + _numberOfNestedTaskFrames--; + } + } + get zone() { + return this._zone; + } + get state() { + return this._state; + } + cancelScheduleRequest() { + this._transitionTo(notScheduled, scheduling); + } + // tslint:disable-next-line:require-internal-with-underscore + _transitionTo(toState, fromState1, fromState2) { + if (this._state === fromState1 || this._state === fromState2) { + this._state = toState; + if (toState == notScheduled) { + this._zoneDelegates = null; + } + } else { + throw new Error( + `${this.type} '${ + this.source + }': can not transition to '${toState}', expecting state '${fromState1}'${ + fromState2 ? " or '" + fromState2 + "'" : "" + }, was '${this._state}'.` + ); + } + } + toString() { + if (this.data && typeof this.data.handleId !== "undefined") { + return this.data.handleId.toString(); + } else { + return Object.prototype.toString.call(this); + } + } + // add toJSON method to prevent cyclic error when + // call JSON.stringify(zoneTask) + toJSON() { + return { + type: this.type, + state: this.state, + source: this.source, + zone: this.zone.name, + runCount: this.runCount, + }; + } + } + ////////////////////////////////////////////////////// + ////////////////////////////////////////////////////// + /// MICROTASK QUEUE + ////////////////////////////////////////////////////// + ////////////////////////////////////////////////////// + const symbolSetTimeout = __symbol__("setTimeout"); + const symbolPromise = __symbol__("Promise"); + const symbolThen = __symbol__("then"); + let _microTaskQueue = []; + let _isDrainingMicrotaskQueue = false; + let nativeMicroTaskQueuePromise; + function nativeScheduleMicroTask(func) { + if (!nativeMicroTaskQueuePromise) { + if (global[symbolPromise]) { + nativeMicroTaskQueuePromise = global[symbolPromise].resolve(0); + } + } + if (nativeMicroTaskQueuePromise) { + let nativeThen = nativeMicroTaskQueuePromise[symbolThen]; + if (!nativeThen) { + // native Promise is not patchable, we need to use `then` directly + // issue 1078 + nativeThen = nativeMicroTaskQueuePromise["then"]; + } + nativeThen.call(nativeMicroTaskQueuePromise, func); + } else { + global[symbolSetTimeout](func, 0); + } + } + function scheduleMicroTask(task) { + // if we are not running in any task, and there has not been anything scheduled + // we must bootstrap the initial task creation by manually scheduling the drain + if ( + _numberOfNestedTaskFrames === 0 && + _microTaskQueue.length === 0 + ) { + // We are not running in Task, so we need to kickstart the microtask queue. + nativeScheduleMicroTask(drainMicroTaskQueue); + } + task && _microTaskQueue.push(task); + } + function drainMicroTaskQueue() { + if (!_isDrainingMicrotaskQueue) { + _isDrainingMicrotaskQueue = true; + while (_microTaskQueue.length) { + const queue = _microTaskQueue; + _microTaskQueue = []; + for (let i = 0; i < queue.length; i++) { + const task = queue[i]; + try { + task.zone.runTask(task, null, null); + } catch (error) { + _api.onUnhandledError(error); + } + } + } + _api.microtaskDrainDone(); + _isDrainingMicrotaskQueue = false; + } + } + ////////////////////////////////////////////////////// + ////////////////////////////////////////////////////// + /// BOOTSTRAP + ////////////////////////////////////////////////////// + ////////////////////////////////////////////////////// + const NO_ZONE = { + name: "NO ZONE", + }; + const notScheduled = "notScheduled", + scheduling = "scheduling", + scheduled = "scheduled", + running = "running", + canceling = "canceling", + unknown = "unknown"; + const microTask = "microTask", + macroTask = "macroTask", + eventTask = "eventTask"; + const patches = {}; + const _api = { + symbol: __symbol__, + currentZoneFrame: () => _currentZoneFrame, + onUnhandledError: noop, + microtaskDrainDone: noop, + scheduleMicroTask: scheduleMicroTask, + showUncaughtError: () => + !Zone[__symbol__("ignoreConsoleErrorUncaughtError")], + patchEventTarget: () => [], + patchOnProperties: noop, + patchMethod: () => noop, + bindArguments: () => [], + patchThen: () => noop, + patchMacroTask: () => noop, + patchEventPrototype: () => noop, + isIEOrEdge: () => false, + getGlobalObjects: () => undefined, + ObjectDefineProperty: () => noop, + ObjectGetOwnPropertyDescriptor: () => undefined, + ObjectCreate: () => undefined, + ArraySlice: () => [], + patchClass: () => noop, + wrapWithCurrentZone: () => noop, + filterProperties: () => [], + attachOriginToPatched: () => noop, + _redefineProperty: () => noop, + patchCallbacks: () => noop, + nativeScheduleMicroTask: nativeScheduleMicroTask, + }; + let _currentZoneFrame = { + parent: null, + zone: new Zone(null, null), + }; + let _currentTask = null; + let _numberOfNestedTaskFrames = 0; + function noop() {} + performanceMeasure("Zone", "Zone"); + return (global["Zone"] = Zone); + })( + (typeof window !== "undefined" && window) || + (typeof self !== "undefined" && self) || + global + ); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** + * Suppress closure compiler errors about unknown 'Zone' variable + * @fileoverview + * @suppress {undefinedVars,globalThis,missingRequire} + */ + /// + // issue #989, to reduce bundle size, use short name + /** Object.getOwnPropertyDescriptor */ + const ObjectGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; + /** Object.defineProperty */ + const ObjectDefineProperty = Object.defineProperty; + /** Object.getPrototypeOf */ + const ObjectGetPrototypeOf = Object.getPrototypeOf; + /** Object.create */ + const ObjectCreate = Object.create; + /** Array.prototype.slice */ + const ArraySlice = Array.prototype.slice; + /** addEventListener string const */ + const ADD_EVENT_LISTENER_STR = "addEventListener"; + /** removeEventListener string const */ + const REMOVE_EVENT_LISTENER_STR = "removeEventListener"; + /** zoneSymbol addEventListener */ + const ZONE_SYMBOL_ADD_EVENT_LISTENER = Zone.__symbol__( + ADD_EVENT_LISTENER_STR + ); + /** zoneSymbol removeEventListener */ + const ZONE_SYMBOL_REMOVE_EVENT_LISTENER = Zone.__symbol__( + REMOVE_EVENT_LISTENER_STR + ); + /** true string const */ + const TRUE_STR = "true"; + /** false string const */ + const FALSE_STR = "false"; + /** Zone symbol prefix string const. */ + const ZONE_SYMBOL_PREFIX = Zone.__symbol__(""); + function wrapWithCurrentZone(callback, source) { + return Zone.current.wrap(callback, source); + } + function scheduleMacroTaskWithCurrentZone( + source, + callback, + data, + customSchedule, + customCancel + ) { + return Zone.current.scheduleMacroTask( + source, + callback, + data, + customSchedule, + customCancel + ); + } + const zoneSymbol = Zone.__symbol__; + const isWindowExists = typeof window !== "undefined"; + const internalWindow = isWindowExists ? window : undefined; + const _global = + (isWindowExists && internalWindow) || + (typeof self === "object" && self) || + global; + const REMOVE_ATTRIBUTE = "removeAttribute"; + function bindArguments(args, source) { + for (let i = args.length - 1; i >= 0; i--) { + if (typeof args[i] === "function") { + args[i] = wrapWithCurrentZone(args[i], source + "_" + i); + } + } + return args; + } + function patchPrototype(prototype, fnNames) { + const source = prototype.constructor["name"]; + for (let i = 0; i < fnNames.length; i++) { + const name = fnNames[i]; + const delegate = prototype[name]; + if (delegate) { + const prototypeDesc = ObjectGetOwnPropertyDescriptor( + prototype, + name + ); + if (!isPropertyWritable(prototypeDesc)) { + continue; + } + prototype[name] = ((delegate) => { + const patched = function () { + return delegate.apply( + this, + bindArguments(arguments, source + "." + name) + ); + }; + attachOriginToPatched(patched, delegate); + return patched; + })(delegate); + } + } + } + function isPropertyWritable(propertyDesc) { + if (!propertyDesc) { + return true; + } + if (propertyDesc.writable === false) { + return false; + } + return !( + typeof propertyDesc.get === "function" && + typeof propertyDesc.set === "undefined" + ); + } + const isWebWorker = + typeof WorkerGlobalScope !== "undefined" && + self instanceof WorkerGlobalScope; + // Make sure to access `process` through `_global` so that WebPack does not accidentally browserify + // this code. + const isNode = + !("nw" in _global) && + typeof _global.process !== "undefined" && + {}.toString.call(_global.process) === "[object process]"; + const isBrowser = + !isNode && + !isWebWorker && + !!(isWindowExists && internalWindow["HTMLElement"]); + // we are in electron of nw, so we are both browser and nodejs + // Make sure to access `process` through `_global` so that WebPack does not accidentally browserify + // this code. + const isMix = + typeof _global.process !== "undefined" && + {}.toString.call(_global.process) === "[object process]" && + !isWebWorker && + !!(isWindowExists && internalWindow["HTMLElement"]); + const zoneSymbolEventNames$1 = {}; + const wrapFn = function (event) { + // https://github.com/angular/zone.js/issues/911, in IE, sometimes + // event will be undefined, so we need to use window.event + event = event || _global.event; + if (!event) { + return; + } + let eventNameSymbol = zoneSymbolEventNames$1[event.type]; + if (!eventNameSymbol) { + eventNameSymbol = zoneSymbolEventNames$1[event.type] = zoneSymbol( + "ON_PROPERTY" + event.type + ); + } + const target = this || event.target || _global; + const listener = target[eventNameSymbol]; + let result; + if ( + isBrowser && + target === internalWindow && + event.type === "error" + ) { + // window.onerror have different signature + // https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/onerror#window.onerror + // and onerror callback will prevent default when callback return true + const errorEvent = event; + result = + listener && + listener.call( + this, + errorEvent.message, + errorEvent.filename, + errorEvent.lineno, + errorEvent.colno, + errorEvent.error + ); + if (result === true) { + event.preventDefault(); + } + } else { + result = listener && listener.apply(this, arguments); + if (result != undefined && !result) { + event.preventDefault(); + } + } + return result; + }; + function patchProperty(obj, prop, prototype) { + let desc = ObjectGetOwnPropertyDescriptor(obj, prop); + if (!desc && prototype) { + // when patch window object, use prototype to check prop exist or not + const prototypeDesc = ObjectGetOwnPropertyDescriptor( + prototype, + prop + ); + if (prototypeDesc) { + desc = { + enumerable: true, + configurable: true, + }; + } + } + // if the descriptor not exists or is not configurable + // just return + if (!desc || !desc.configurable) { + return; + } + const onPropPatchedSymbol = zoneSymbol("on" + prop + "patched"); + if ( + obj.hasOwnProperty(onPropPatchedSymbol) && + obj[onPropPatchedSymbol] + ) { + return; + } + // 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; + const originalDescGet = desc.get; + const originalDescSet = desc.set; + // slice(2) cuz 'onclick' -> 'click', etc + const eventName = prop.slice(2); + let eventNameSymbol = zoneSymbolEventNames$1[eventName]; + if (!eventNameSymbol) { + eventNameSymbol = zoneSymbolEventNames$1[eventName] = zoneSymbol( + "ON_PROPERTY" + eventName + ); + } + desc.set = function (newValue) { + // in some of windows's onproperty callback, this is undefined + // so we need to check it + let target = this; + if (!target && obj === _global) { + target = _global; + } + if (!target) { + return; + } + const previousValue = target[eventNameSymbol]; + if (typeof previousValue === "function") { + target.removeEventListener(eventName, wrapFn); + } + // issue #978, when onload handler was added before loading zone.js + // we should remove it with originalDescSet + originalDescSet && originalDescSet.call(target, null); + target[eventNameSymbol] = newValue; + if (typeof newValue === "function") { + target.addEventListener(eventName, wrapFn, false); + } + }; + // The getter would return undefined for unassigned properties but the default value of an + // unassigned property is null + desc.get = function () { + // in some of windows's onproperty callback, this is undefined + // so we need to check it + let target = this; + if (!target && obj === _global) { + target = _global; + } + if (!target) { + return null; + } + const listener = target[eventNameSymbol]; + if (listener) { + return listener; + } else if (originalDescGet) { + // result will be null when use inline event attribute, + // such as + // because the onclick function is internal raw uncompiled handler + // the onclick will be evaluated when first time event was triggered or + // the property is accessed, https://github.com/angular/zone.js/issues/525 + // so we should use original native get to retrieve the handler + let value = originalDescGet.call(this); + if (value) { + desc.set.call(this, value); + if (typeof target[REMOVE_ATTRIBUTE] === "function") { + target.removeAttribute(prop); + } + return value; + } + } + return null; + }; + ObjectDefineProperty(obj, prop, desc); + obj[onPropPatchedSymbol] = true; + } + function patchOnProperties(obj, properties, prototype) { + if (properties) { + for (let i = 0; i < properties.length; i++) { + patchProperty(obj, "on" + properties[i], prototype); + } + } else { + const onProperties = []; + for (const prop in obj) { + if (prop.slice(0, 2) == "on") { + onProperties.push(prop); + } + } + for (let j = 0; j < onProperties.length; j++) { + patchProperty(obj, onProperties[j], prototype); + } + } + } + const originalInstanceKey = zoneSymbol("originalInstance"); + // wrap some native API on `window` + function patchClass(className) { + const OriginalClass = _global[className]; + if (!OriginalClass) return; + // keep original class in global + _global[zoneSymbol(className)] = OriginalClass; + _global[className] = function () { + const a = bindArguments(arguments, className); + 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("Arg list too long."); + } + }; + // attach original delegate to patched function + attachOriginToPatched(_global[className], OriginalClass); + const instance = new OriginalClass(function () {}); + let prop; + for (prop in instance) { + // https://bugs.webkit.org/show_bug.cgi?id=44721 + if (className === "XMLHttpRequest" && prop === "responseBlob") + continue; + (function (prop) { + if (typeof instance[prop] === "function") { + _global[className].prototype[prop] = function () { + return this[originalInstanceKey][prop].apply( + this[originalInstanceKey], + arguments + ); + }; + } else { + ObjectDefineProperty(_global[className].prototype, prop, { + set: function (fn) { + if (typeof fn === "function") { + this[originalInstanceKey][prop] = wrapWithCurrentZone( + fn, + className + "." + prop + ); + // keep callback in wrapped function so we can + // use it in Function.prototype.toString to return + // the native one. + attachOriginToPatched( + this[originalInstanceKey][prop], + 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]; + } + } + } + function patchMethod(target, name, patchFn) { + let proto = target; + while (proto && !proto.hasOwnProperty(name)) { + proto = ObjectGetPrototypeOf(proto); + } + if (!proto && target[name]) { + // somehow we did not find it, but we can see it. This happens on IE for Window properties. + proto = target; + } + const delegateName = zoneSymbol(name); + let delegate = null; + if ( + proto && + (!(delegate = proto[delegateName]) || + !proto.hasOwnProperty(delegateName)) + ) { + delegate = proto[delegateName] = proto[name]; + // check whether proto[name] is writable + // some property is readonly in safari, such as HtmlCanvasElement.prototype.toBlob + const desc = proto && ObjectGetOwnPropertyDescriptor(proto, name); + if (isPropertyWritable(desc)) { + const patchDelegate = patchFn(delegate, delegateName, name); + proto[name] = function () { + return patchDelegate(this, arguments); + }; + attachOriginToPatched(proto[name], delegate); + } + } + return delegate; + } + // TODO: @JiaLiPassion, support cancel task later if necessary + function patchMacroTask(obj, funcName, metaCreator) { + let setNative = null; + function scheduleTask(task) { + const data = task.data; + data.args[data.cbIdx] = function () { + task.invoke.apply(this, arguments); + }; + setNative.apply(data.target, data.args); + return task; + } + setNative = patchMethod( + obj, + funcName, + (delegate) => + function (self, args) { + const meta = metaCreator(self, args); + if (meta.cbIdx >= 0 && typeof args[meta.cbIdx] === "function") { + return scheduleMacroTaskWithCurrentZone( + meta.name, + args[meta.cbIdx], + meta, + scheduleTask + ); + } else { + // cause an error by calling it directly. + return delegate.apply(self, args); + } + } + ); + } + function attachOriginToPatched(patched, original) { + patched[zoneSymbol("OriginalDelegate")] = original; + } + let isDetectedIEOrEdge = false; + let ieOrEdge = false; + function isIE() { + try { + const ua = internalWindow.navigator.userAgent; + if (ua.indexOf("MSIE ") !== -1 || ua.indexOf("Trident/") !== -1) { + return true; + } + } catch (error) {} + return false; + } + function isIEOrEdge() { + if (isDetectedIEOrEdge) { + return ieOrEdge; + } + isDetectedIEOrEdge = true; + try { + const ua = internalWindow.navigator.userAgent; + if ( + ua.indexOf("MSIE ") !== -1 || + ua.indexOf("Trident/") !== -1 || + ua.indexOf("Edge/") !== -1 + ) { + ieOrEdge = true; + } + } catch (error) {} + return ieOrEdge; + } + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + Zone.__load_patch("ZoneAwarePromise", (global, Zone, api) => { + const ObjectGetOwnPropertyDescriptor = + Object.getOwnPropertyDescriptor; + const ObjectDefineProperty = Object.defineProperty; + function readableObjectToString(obj) { + if (obj && obj.toString === Object.prototype.toString) { + const className = obj.constructor && obj.constructor.name; + return (className ? className : "") + ": " + JSON.stringify(obj); + } + return obj ? obj.toString() : Object.prototype.toString.call(obj); + } + const __symbol__ = api.symbol; + const _uncaughtPromiseErrors = []; + const isDisableWrappingUncaughtPromiseRejection = + global[ + __symbol__("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION") + ] === true; + const symbolPromise = __symbol__("Promise"); + const symbolThen = __symbol__("then"); + const creationTrace = "__creationTrace__"; + api.onUnhandledError = (e) => { + if (api.showUncaughtError()) { + const rejection = e && e.rejection; + if (rejection) { + console.error( + "Unhandled Promise rejection:", + rejection instanceof Error ? rejection.message : rejection, + "; Zone:", + e.zone.name, + "; Task:", + e.task && e.task.source, + "; Value:", + rejection, + rejection instanceof Error ? rejection.stack : undefined + ); + } else { + console.error(e); + } + } + }; + api.microtaskDrainDone = () => { + while (_uncaughtPromiseErrors.length) { + const uncaughtPromiseError = _uncaughtPromiseErrors.shift(); + try { + uncaughtPromiseError.zone.runGuarded(() => { + if (uncaughtPromiseError.throwOriginal) { + throw uncaughtPromiseError.rejection; + } + throw uncaughtPromiseError; + }); + } catch (error) { + handleUnhandledRejection(error); + } + } + }; + const UNHANDLED_PROMISE_REJECTION_HANDLER_SYMBOL = __symbol__( + "unhandledPromiseRejectionHandler" + ); + function handleUnhandledRejection(e) { + api.onUnhandledError(e); + try { + const handler = Zone[UNHANDLED_PROMISE_REJECTION_HANDLER_SYMBOL]; + if (typeof handler === "function") { + handler.call(this, e); + } + } catch (err) {} + } + function isThenable(value) { + return value && value.then; + } + function forwardResolution(value) { + return value; + } + function forwardRejection(rejection) { + return ZoneAwarePromise.reject(rejection); + } + const symbolState = __symbol__("state"); + const symbolValue = __symbol__("value"); + const symbolFinally = __symbol__("finally"); + const symbolParentPromiseValue = __symbol__("parentPromiseValue"); + const symbolParentPromiseState = __symbol__("parentPromiseState"); + const source = "Promise.then"; + const UNRESOLVED = null; + const RESOLVED = true; + const REJECTED = false; + const REJECTED_NO_CATCH = 0; + function makeResolver(promise, state) { + return (v) => { + try { + resolvePromise(promise, state, v); + } catch (err) { + resolvePromise(promise, false, err); + } + // Do not return value or you will break the Promise spec. + }; + } + + const once = function () { + let wasCalled = false; + return function wrapper(wrappedFunction) { + return function () { + if (wasCalled) { + return; + } + wasCalled = true; + wrappedFunction.apply(null, arguments); + }; + }; + }; + const TYPE_ERROR = "Promise resolved with itself"; + const CURRENT_TASK_TRACE_SYMBOL = __symbol__("currentTaskTrace"); + // Promise Resolution + function resolvePromise(promise, state, value) { + const onceWrapper = once(); + if (promise === value) { + throw new TypeError(TYPE_ERROR); + } + if (promise[symbolState] === UNRESOLVED) { + // should only get value.then once based on promise spec. + let then = null; + try { + if (typeof value === "object" || typeof value === "function") { + then = value && value.then; + } + } catch (err) { + onceWrapper(() => { + resolvePromise(promise, false, err); + })(); + return promise; + } + // if (value instanceof ZoneAwarePromise) { + if ( + state !== REJECTED && + value instanceof ZoneAwarePromise && + value.hasOwnProperty(symbolState) && + value.hasOwnProperty(symbolValue) && + value[symbolState] !== UNRESOLVED + ) { + clearRejectedNoCatch(value); + resolvePromise(promise, value[symbolState], value[symbolValue]); + } else if (state !== REJECTED && typeof then === "function") { + try { + then.call( + value, + onceWrapper(makeResolver(promise, state)), + onceWrapper(makeResolver(promise, false)) + ); + } catch (err) { + onceWrapper(() => { + resolvePromise(promise, false, err); + })(); + } + } else { + promise[symbolState] = state; + const queue = promise[symbolValue]; + promise[symbolValue] = value; + if (promise[symbolFinally] === symbolFinally) { + // the promise is generated by Promise.prototype.finally + if (state === RESOLVED) { + // the state is resolved, should ignore the value + // and use parent promise value + promise[symbolState] = promise[symbolParentPromiseState]; + promise[symbolValue] = promise[symbolParentPromiseValue]; + } + } + // record task information in value when error occurs, so we can + // do some additional work such as render longStackTrace + if (state === REJECTED && value instanceof Error) { + // check if longStackTraceZone is here + const trace = + Zone.currentTask && + Zone.currentTask.data && + Zone.currentTask.data[creationTrace]; + if (trace) { + // only keep the long stack trace into error when in longStackTraceZone + ObjectDefineProperty(value, CURRENT_TASK_TRACE_SYMBOL, { + configurable: true, + enumerable: false, + writable: true, + value: trace, + }); + } + } + for (let i = 0; i < queue.length; ) { + scheduleResolveOrReject( + promise, + queue[i++], + queue[i++], + queue[i++], + queue[i++] + ); + } + if (queue.length == 0 && state == REJECTED) { + promise[symbolState] = REJECTED_NO_CATCH; + let uncaughtPromiseError = value; + try { + // Here we throws a new Error to print more readable error log + // and if the value is not an error, zone.js builds an `Error` + // Object here to attach the stack information. + throw new Error( + "Uncaught (in promise): " + + readableObjectToString(value) + + (value && value.stack ? "\n" + value.stack : "") + ); + } catch (err) { + uncaughtPromiseError = err; + } + if (isDisableWrappingUncaughtPromiseRejection) { + // If disable wrapping uncaught promise reject + // use the value instead of wrapping it. + uncaughtPromiseError.throwOriginal = true; + } + uncaughtPromiseError.rejection = value; + uncaughtPromiseError.promise = promise; + uncaughtPromiseError.zone = Zone.current; + uncaughtPromiseError.task = Zone.currentTask; + _uncaughtPromiseErrors.push(uncaughtPromiseError); + api.scheduleMicroTask(); // to make sure that it is running + } + } + } + // Resolving an already resolved promise is a noop. + return promise; + } + const REJECTION_HANDLED_HANDLER = __symbol__( + "rejectionHandledHandler" + ); + function clearRejectedNoCatch(promise) { + if (promise[symbolState] === REJECTED_NO_CATCH) { + // if the promise is rejected no catch status + // and queue.length > 0, means there is a error handler + // here to handle the rejected promise, we should trigger + // windows.rejectionhandled eventHandler or nodejs rejectionHandled + // eventHandler + try { + const handler = Zone[REJECTION_HANDLED_HANDLER]; + if (handler && typeof handler === "function") { + handler.call(this, { + rejection: promise[symbolValue], + promise: promise, + }); + } + } catch (err) {} + promise[symbolState] = REJECTED; + for (let i = 0; i < _uncaughtPromiseErrors.length; i++) { + if (promise === _uncaughtPromiseErrors[i].promise) { + _uncaughtPromiseErrors.splice(i, 1); + } + } + } + } + function scheduleResolveOrReject( + promise, + zone, + chainPromise, + onFulfilled, + onRejected + ) { + clearRejectedNoCatch(promise); + const promiseState = promise[symbolState]; + const delegate = promiseState + ? typeof onFulfilled === "function" + ? onFulfilled + : forwardResolution + : typeof onRejected === "function" + ? onRejected + : forwardRejection; + zone.scheduleMicroTask( + source, + () => { + try { + const parentPromiseValue = promise[symbolValue]; + const isFinallyPromise = + !!chainPromise && + symbolFinally === chainPromise[symbolFinally]; + if (isFinallyPromise) { + // if the promise is generated from finally call, keep parent promise's state and value + chainPromise[symbolParentPromiseValue] = parentPromiseValue; + chainPromise[symbolParentPromiseState] = promiseState; + } + // should not pass value to finally callback + const value = zone.run( + delegate, + undefined, + isFinallyPromise && + delegate !== forwardRejection && + delegate !== forwardResolution + ? [] + : [parentPromiseValue] + ); + resolvePromise(chainPromise, true, value); + } catch (error) { + // if error occurs, should always return this error + resolvePromise(chainPromise, false, error); + } + }, + chainPromise + ); + } + const ZONE_AWARE_PROMISE_TO_STRING = + "function ZoneAwarePromise() { [native code] }"; + const noop = function () {}; + const AggregateError = global.AggregateError; + class ZoneAwarePromise { + static toString() { + return ZONE_AWARE_PROMISE_TO_STRING; + } + static resolve(value) { + return resolvePromise(new this(null), RESOLVED, value); + } + static reject(error) { + return resolvePromise(new this(null), REJECTED, error); + } + static any(values) { + if (!values || typeof values[Symbol.iterator] !== "function") { + return Promise.reject( + new AggregateError([], "All promises were rejected") + ); + } + const promises = []; + let count = 0; + try { + for (let v of values) { + count++; + promises.push(ZoneAwarePromise.resolve(v)); + } + } catch (err) { + return Promise.reject( + new AggregateError([], "All promises were rejected") + ); + } + if (count === 0) { + return Promise.reject( + new AggregateError([], "All promises were rejected") + ); + } + let finished = false; + const errors = []; + return new ZoneAwarePromise((resolve, reject) => { + for (let i = 0; i < promises.length; i++) { + promises[i].then( + (v) => { + if (finished) { + return; + } + finished = true; + resolve(v); + }, + (err) => { + errors.push(err); + count--; + if (count === 0) { + finished = true; + reject( + new AggregateError( + errors, + "All promises were rejected" + ) + ); + } + } + ); + } + }); + } + static race(values) { + let resolve; + let reject; + let promise = new this((res, rej) => { + resolve = res; + reject = rej; + }); + function onResolve(value) { + resolve(value); + } + function onReject(error) { + reject(error); + } + for (let value of values) { + if (!isThenable(value)) { + value = this.resolve(value); + } + value.then(onResolve, onReject); + } + return promise; + } + static all(values) { + return ZoneAwarePromise.allWithCallback(values); + } + static allSettled(values) { + const P = + this && this.prototype instanceof ZoneAwarePromise + ? this + : ZoneAwarePromise; + return P.allWithCallback(values, { + thenCallback: (value) => ({ + status: "fulfilled", + value, + }), + errorCallback: (err) => ({ + status: "rejected", + reason: err, + }), + }); + } + static allWithCallback(values, callback) { + let resolve; + let reject; + let promise = new this((res, rej) => { + resolve = res; + reject = rej; + }); + // Start at 2 to prevent prematurely resolving if .then is called immediately. + let unresolvedCount = 2; + let valueIndex = 0; + const resolvedValues = []; + for (let value of values) { + if (!isThenable(value)) { + value = this.resolve(value); + } + const curValueIndex = valueIndex; + try { + value.then( + (value) => { + resolvedValues[curValueIndex] = callback + ? callback.thenCallback(value) + : value; + unresolvedCount--; + if (unresolvedCount === 0) { + resolve(resolvedValues); + } + }, + (err) => { + if (!callback) { + reject(err); + } else { + resolvedValues[curValueIndex] = + callback.errorCallback(err); + unresolvedCount--; + if (unresolvedCount === 0) { + resolve(resolvedValues); + } + } + } + ); + } catch (thenErr) { + reject(thenErr); + } + unresolvedCount++; + valueIndex++; + } + // Make the unresolvedCount zero-based again. + unresolvedCount -= 2; + if (unresolvedCount === 0) { + resolve(resolvedValues); + } + return promise; + } + constructor(executor) { + const promise = this; + if (!(promise instanceof ZoneAwarePromise)) { + throw new Error("Must be an instanceof Promise."); + } + promise[symbolState] = UNRESOLVED; + promise[symbolValue] = []; // queue; + try { + const onceWrapper = once(); + executor && + executor( + onceWrapper(makeResolver(promise, RESOLVED)), + onceWrapper(makeResolver(promise, REJECTED)) + ); + } catch (error) { + resolvePromise(promise, false, error); + } + } + get [Symbol.toStringTag]() { + return "Promise"; + } + get [Symbol.species]() { + return ZoneAwarePromise; + } + then(onFulfilled, onRejected) { + var _a; + // We must read `Symbol.species` safely because `this` may be anything. For instance, `this` + // may be an object without a prototype (created through `Object.create(null)`); thus + // `this.constructor` will be undefined. One of the use cases is SystemJS creating + // prototype-less objects (modules) via `Object.create(null)`. The SystemJS creates an empty + // object and copies promise properties into that object (within the `getOrCreateLoad` + // function). The zone.js then checks if the resolved value has the `then` method and invokes + // it with the `value` context. Otherwise, this will throw an error: `TypeError: Cannot read + // properties of undefined (reading 'Symbol(Symbol.species)')`. + let C = + (_a = this.constructor) === null || _a === void 0 + ? void 0 + : _a[Symbol.species]; + if (!C || typeof C !== "function") { + C = this.constructor || ZoneAwarePromise; + } + const chainPromise = new C(noop); + const zone = Zone.current; + if (this[symbolState] == UNRESOLVED) { + this[symbolValue].push( + zone, + chainPromise, + onFulfilled, + onRejected + ); + } else { + scheduleResolveOrReject( + this, + zone, + chainPromise, + onFulfilled, + onRejected + ); + } + return chainPromise; + } + catch(onRejected) { + return this.then(null, onRejected); + } + finally(onFinally) { + var _a; + // See comment on the call to `then` about why thee `Symbol.species` is safely accessed. + let C = + (_a = this.constructor) === null || _a === void 0 + ? void 0 + : _a[Symbol.species]; + if (!C || typeof C !== "function") { + C = ZoneAwarePromise; + } + const chainPromise = new C(noop); + chainPromise[symbolFinally] = symbolFinally; + const zone = Zone.current; + if (this[symbolState] == UNRESOLVED) { + this[symbolValue].push( + zone, + chainPromise, + onFinally, + onFinally + ); + } else { + scheduleResolveOrReject( + this, + zone, + chainPromise, + onFinally, + onFinally + ); + } + return chainPromise; + } + } + // Protect against aggressive optimizers dropping seemingly unused properties. + // E.g. Closure Compiler in advanced mode. + ZoneAwarePromise["resolve"] = ZoneAwarePromise.resolve; + ZoneAwarePromise["reject"] = ZoneAwarePromise.reject; + ZoneAwarePromise["race"] = ZoneAwarePromise.race; + ZoneAwarePromise["all"] = ZoneAwarePromise.all; + const NativePromise = (global[symbolPromise] = global["Promise"]); + global["Promise"] = ZoneAwarePromise; + const symbolThenPatched = __symbol__("thenPatched"); + function patchThen(Ctor) { + const proto = Ctor.prototype; + const prop = ObjectGetOwnPropertyDescriptor(proto, "then"); + if (prop && (prop.writable === false || !prop.configurable)) { + // check Ctor.prototype.then propertyDescriptor is writable or not + // in meteor env, writable is false, we should ignore such case + return; + } + const originalThen = proto.then; + // Keep a reference to the original method. + proto[symbolThen] = originalThen; + Ctor.prototype.then = function (onResolve, onReject) { + const wrapped = new ZoneAwarePromise((resolve, reject) => { + originalThen.call(this, resolve, reject); + }); + return wrapped.then(onResolve, onReject); + }; + Ctor[symbolThenPatched] = true; + } + api.patchThen = patchThen; + function zoneify(fn) { + return function (self, args) { + let resultPromise = fn.apply(self, args); + if (resultPromise instanceof ZoneAwarePromise) { + return resultPromise; + } + let ctor = resultPromise.constructor; + if (!ctor[symbolThenPatched]) { + patchThen(ctor); + } + return resultPromise; + }; + } + if (NativePromise) { + patchThen(NativePromise); + patchMethod(global, "fetch", (delegate) => zoneify(delegate)); + } + // This is not part of public API, but it is useful for tests, so we expose it. + Promise[Zone.__symbol__("uncaughtPromiseErrors")] = + _uncaughtPromiseErrors; + return ZoneAwarePromise; + }); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + // override Function.prototype.toString to make zone.js patched function + // look like native function + Zone.__load_patch("toString", (global) => { + // patch Func.prototype.toString to let them look like native + const originalFunctionToString = Function.prototype.toString; + const ORIGINAL_DELEGATE_SYMBOL = zoneSymbol("OriginalDelegate"); + const PROMISE_SYMBOL = zoneSymbol("Promise"); + const ERROR_SYMBOL = zoneSymbol("Error"); + const newFunctionToString = function toString() { + if (typeof this === "function") { + const originalDelegate = this[ORIGINAL_DELEGATE_SYMBOL]; + if (originalDelegate) { + if (typeof originalDelegate === "function") { + return originalFunctionToString.call(originalDelegate); + } else { + return Object.prototype.toString.call(originalDelegate); + } + } + if (this === Promise) { + const nativePromise = global[PROMISE_SYMBOL]; + if (nativePromise) { + return originalFunctionToString.call(nativePromise); + } + } + if (this === Error) { + const nativeError = global[ERROR_SYMBOL]; + if (nativeError) { + return originalFunctionToString.call(nativeError); + } + } + } + return originalFunctionToString.call(this); + }; + newFunctionToString[ORIGINAL_DELEGATE_SYMBOL] = + originalFunctionToString; + Function.prototype.toString = newFunctionToString; + // patch Object.prototype.toString to let them look like native + const originalObjectToString = Object.prototype.toString; + const PROMISE_OBJECT_TO_STRING = "[object Promise]"; + Object.prototype.toString = function () { + if (typeof Promise === "function" && this instanceof Promise) { + return PROMISE_OBJECT_TO_STRING; + } + return originalObjectToString.call(this); + }; + }); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + let passiveSupported = false; + if (typeof window !== "undefined") { + try { + const options = Object.defineProperty({}, "passive", { + get: function () { + passiveSupported = true; + }, + }); + // Note: We pass the `options` object as the event handler too. This is not compatible with the + // signature of `addEventListener` or `removeEventListener` but enables us to remove the handler + // without an actual handler. + window.addEventListener("test", options, options); + window.removeEventListener("test", options, options); + } catch (err) { + passiveSupported = false; + } + } + // an identifier to tell ZoneTask do not create a new invoke closure + const OPTIMIZED_ZONE_EVENT_TASK_DATA = { + useG: true, + }; + const zoneSymbolEventNames = {}; + const globalSources = {}; + const EVENT_NAME_SYMBOL_REGX = new RegExp( + "^" + ZONE_SYMBOL_PREFIX + "(\\w+)(true|false)$" + ); + const IMMEDIATE_PROPAGATION_SYMBOL = zoneSymbol("propagationStopped"); + function prepareEventNames(eventName, eventNameToString) { + const falseEventName = + (eventNameToString ? eventNameToString(eventName) : eventName) + + FALSE_STR; + const trueEventName = + (eventNameToString ? eventNameToString(eventName) : eventName) + + TRUE_STR; + const symbol = ZONE_SYMBOL_PREFIX + falseEventName; + const symbolCapture = ZONE_SYMBOL_PREFIX + trueEventName; + zoneSymbolEventNames[eventName] = {}; + zoneSymbolEventNames[eventName][FALSE_STR] = symbol; + zoneSymbolEventNames[eventName][TRUE_STR] = symbolCapture; + } + function patchEventTarget(_global, api, apis, patchOptions) { + const ADD_EVENT_LISTENER = + (patchOptions && patchOptions.add) || ADD_EVENT_LISTENER_STR; + const REMOVE_EVENT_LISTENER = + (patchOptions && patchOptions.rm) || REMOVE_EVENT_LISTENER_STR; + const LISTENERS_EVENT_LISTENER = + (patchOptions && patchOptions.listeners) || "eventListeners"; + const REMOVE_ALL_LISTENERS_EVENT_LISTENER = + (patchOptions && patchOptions.rmAll) || "removeAllListeners"; + const zoneSymbolAddEventListener = zoneSymbol(ADD_EVENT_LISTENER); + const ADD_EVENT_LISTENER_SOURCE = "." + ADD_EVENT_LISTENER + ":"; + const PREPEND_EVENT_LISTENER = "prependListener"; + const PREPEND_EVENT_LISTENER_SOURCE = + "." + PREPEND_EVENT_LISTENER + ":"; + const invokeTask = function (task, target, event) { + // for better performance, check isRemoved which is set + // by removeEventListener + if (task.isRemoved) { + return; + } + const delegate = task.callback; + if (typeof delegate === "object" && delegate.handleEvent) { + // create the bind version of handleEvent when invoke + task.callback = (event) => delegate.handleEvent(event); + task.originalDelegate = delegate; + } + // invoke static task.invoke + // need to try/catch error here, otherwise, the error in one event listener + // will break the executions of the other event listeners. Also error will + // not remove the event listener when `once` options is true. + let error; + try { + task.invoke(task, target, [event]); + } catch (err) { + error = err; + } + const options = task.options; + if (options && typeof options === "object" && options.once) { + // if options.once is true, after invoke once remove listener here + // only browser need to do this, nodejs eventEmitter will cal removeListener + // inside EventEmitter.once + const delegate = task.originalDelegate + ? task.originalDelegate + : task.callback; + target[REMOVE_EVENT_LISTENER].call( + target, + event.type, + delegate, + options + ); + } + return error; + }; + function globalCallback(context, event, isCapture) { + // https://github.com/angular/zone.js/issues/911, in IE, sometimes + // event will be undefined, so we need to use window.event + event = event || _global.event; + if (!event) { + return; + } + // event.target is needed for Samsung TV and SourceBuffer + // || global is needed https://github.com/angular/zone.js/issues/190 + const target = context || event.target || _global; + const tasks = + target[ + zoneSymbolEventNames[event.type][ + isCapture ? TRUE_STR : FALSE_STR + ] + ]; + if (tasks) { + const errors = []; + // invoke all tasks which attached to current target with given event.type and capture = false + // for performance concern, if task.length === 1, just invoke + if (tasks.length === 1) { + const err = invokeTask(tasks[0], target, event); + err && errors.push(err); + } else { + // https://github.com/angular/zone.js/issues/836 + // copy the tasks array before invoke, to avoid + // the callback will remove itself or other listener + const copyTasks = tasks.slice(); + for (let i = 0; i < copyTasks.length; i++) { + if (event && event[IMMEDIATE_PROPAGATION_SYMBOL] === true) { + break; + } + const err = invokeTask(copyTasks[i], target, event); + err && errors.push(err); + } + } + // Since there is only one error, we don't need to schedule microTask + // to throw the error. + if (errors.length === 1) { + throw errors[0]; + } else { + for (let i = 0; i < errors.length; i++) { + const err = errors[i]; + api.nativeScheduleMicroTask(() => { + throw err; + }); + } + } + } + } + // global shared zoneAwareCallback to handle all event callback with capture = false + const globalZoneAwareCallback = function (event) { + return globalCallback(this, event, false); + }; + // global shared zoneAwareCallback to handle all event callback with capture = true + const globalZoneAwareCaptureCallback = function (event) { + return globalCallback(this, event, true); + }; + function patchEventTargetMethods(obj, patchOptions) { + if (!obj) { + return false; + } + let useGlobalCallback = true; + if (patchOptions && patchOptions.useG !== undefined) { + useGlobalCallback = patchOptions.useG; + } + const validateHandler = patchOptions && patchOptions.vh; + let checkDuplicate = true; + if (patchOptions && patchOptions.chkDup !== undefined) { + checkDuplicate = patchOptions.chkDup; + } + let returnTarget = false; + if (patchOptions && patchOptions.rt !== undefined) { + returnTarget = patchOptions.rt; + } + let proto = obj; + while (proto && !proto.hasOwnProperty(ADD_EVENT_LISTENER)) { + proto = ObjectGetPrototypeOf(proto); + } + if (!proto && obj[ADD_EVENT_LISTENER]) { + // somehow we did not find it, but we can see it. This happens on IE for Window properties. + proto = obj; + } + if (!proto) { + return false; + } + if (proto[zoneSymbolAddEventListener]) { + return false; + } + const eventNameToString = + patchOptions && patchOptions.eventNameToString; + // a shared global taskData to pass data for scheduleEventTask + // so we do not need to create a new object just for pass some data + const taskData = {}; + const nativeAddEventListener = (proto[zoneSymbolAddEventListener] = + proto[ADD_EVENT_LISTENER]); + const nativeRemoveEventListener = (proto[ + zoneSymbol(REMOVE_EVENT_LISTENER) + ] = proto[REMOVE_EVENT_LISTENER]); + const nativeListeners = (proto[ + zoneSymbol(LISTENERS_EVENT_LISTENER) + ] = proto[LISTENERS_EVENT_LISTENER]); + const nativeRemoveAllListeners = (proto[ + zoneSymbol(REMOVE_ALL_LISTENERS_EVENT_LISTENER) + ] = proto[REMOVE_ALL_LISTENERS_EVENT_LISTENER]); + let nativePrependEventListener; + if (patchOptions && patchOptions.prepend) { + nativePrependEventListener = proto[ + zoneSymbol(patchOptions.prepend) + ] = proto[patchOptions.prepend]; + } + /** + * This util function will build an option object with passive option + * to handle all possible input from the user. + */ + function buildEventListenerOptions(options, passive) { + if (!passiveSupported && typeof options === "object" && options) { + // doesn't support passive but user want to pass an object as options. + // this will not work on some old browser, so we just pass a boolean + // as useCapture parameter + return !!options.capture; + } + if (!passiveSupported || !passive) { + return options; + } + if (typeof options === "boolean") { + return { + capture: options, + passive: true, + }; + } + if (!options) { + return { + passive: true, + }; + } + if (typeof options === "object" && options.passive !== false) { + return Object.assign(Object.assign({}, options), { + passive: true, + }); + } + return options; + } + const customScheduleGlobal = function (task) { + // if there is already a task for the eventName + capture, + // just return, because we use the shared globalZoneAwareCallback here. + if (taskData.isExisting) { + return; + } + return nativeAddEventListener.call( + taskData.target, + taskData.eventName, + taskData.capture + ? globalZoneAwareCaptureCallback + : globalZoneAwareCallback, + taskData.options + ); + }; + const customCancelGlobal = function (task) { + // if task is not marked as isRemoved, this call is directly + // from Zone.prototype.cancelTask, we should remove the task + // from tasksList of target first + if (!task.isRemoved) { + const symbolEventNames = zoneSymbolEventNames[task.eventName]; + let symbolEventName; + if (symbolEventNames) { + symbolEventName = + symbolEventNames[task.capture ? TRUE_STR : FALSE_STR]; + } + const existingTasks = + symbolEventName && task.target[symbolEventName]; + if (existingTasks) { + for (let i = 0; i < existingTasks.length; i++) { + const existingTask = existingTasks[i]; + if (existingTask === task) { + existingTasks.splice(i, 1); + // set isRemoved to data for faster invokeTask check + task.isRemoved = true; + if (existingTasks.length === 0) { + // all tasks for the eventName + capture have gone, + // remove globalZoneAwareCallback and remove the task cache from target + task.allRemoved = true; + task.target[symbolEventName] = null; + } + break; + } + } + } + } + // if all tasks for the eventName + capture have gone, + // we will really remove the global event callback, + // if not, return + if (!task.allRemoved) { + return; + } + return nativeRemoveEventListener.call( + task.target, + task.eventName, + task.capture + ? globalZoneAwareCaptureCallback + : globalZoneAwareCallback, + task.options + ); + }; + const customScheduleNonGlobal = function (task) { + return nativeAddEventListener.call( + taskData.target, + taskData.eventName, + task.invoke, + taskData.options + ); + }; + const customSchedulePrepend = function (task) { + return nativePrependEventListener.call( + taskData.target, + taskData.eventName, + task.invoke, + taskData.options + ); + }; + const customCancelNonGlobal = function (task) { + return nativeRemoveEventListener.call( + task.target, + task.eventName, + task.invoke, + task.options + ); + }; + const customSchedule = useGlobalCallback + ? customScheduleGlobal + : customScheduleNonGlobal; + const customCancel = useGlobalCallback + ? customCancelGlobal + : customCancelNonGlobal; + const compareTaskCallbackVsDelegate = function (task, delegate) { + const typeOfDelegate = typeof delegate; + return ( + (typeOfDelegate === "function" && task.callback === delegate) || + (typeOfDelegate === "object" && + task.originalDelegate === delegate) + ); + }; + const compare = + patchOptions && patchOptions.diff + ? patchOptions.diff + : compareTaskCallbackVsDelegate; + const unpatchedEvents = Zone[zoneSymbol("UNPATCHED_EVENTS")]; + const passiveEvents = _global[zoneSymbol("PASSIVE_EVENTS")]; + const makeAddListener = function ( + nativeListener, + addSource, + customScheduleFn, + customCancelFn, + returnTarget = false, + prepend = false + ) { + return function () { + const target = this || _global; + let eventName = arguments[0]; + if (patchOptions && patchOptions.transferEventName) { + eventName = patchOptions.transferEventName(eventName); + } + let delegate = arguments[1]; + if (!delegate) { + return nativeListener.apply(this, arguments); + } + if (isNode && eventName === "uncaughtException") { + // don't patch uncaughtException of nodejs to prevent endless loop + return nativeListener.apply(this, arguments); + } + // don't create the bind delegate function for handleEvent + // case here to improve addEventListener performance + // we will create the bind delegate when invoke + let isHandleEvent = false; + if (typeof delegate !== "function") { + if (!delegate.handleEvent) { + return nativeListener.apply(this, arguments); + } + isHandleEvent = true; + } + if ( + validateHandler && + !validateHandler(nativeListener, delegate, target, arguments) + ) { + return; + } + const passive = + passiveSupported && + !!passiveEvents && + passiveEvents.indexOf(eventName) !== -1; + const options = buildEventListenerOptions( + arguments[2], + passive + ); + if (unpatchedEvents) { + // check unpatched list + for (let i = 0; i < unpatchedEvents.length; i++) { + if (eventName === unpatchedEvents[i]) { + if (passive) { + return nativeListener.call( + target, + eventName, + delegate, + options + ); + } else { + return nativeListener.apply(this, arguments); + } + } + } + } + const capture = !options + ? false + : typeof options === "boolean" + ? true + : options.capture; + const once = + options && typeof options === "object" ? options.once : false; + const zone = Zone.current; + let symbolEventNames = zoneSymbolEventNames[eventName]; + if (!symbolEventNames) { + prepareEventNames(eventName, eventNameToString); + symbolEventNames = zoneSymbolEventNames[eventName]; + } + const symbolEventName = + symbolEventNames[capture ? TRUE_STR : FALSE_STR]; + let existingTasks = target[symbolEventName]; + let isExisting = false; + if (existingTasks) { + // already have task registered + isExisting = true; + if (checkDuplicate) { + for (let i = 0; i < existingTasks.length; i++) { + if (compare(existingTasks[i], delegate)) { + // same callback, same capture, same event name, just return + return; + } + } + } + } else { + existingTasks = target[symbolEventName] = []; + } + let source; + const constructorName = target.constructor["name"]; + const targetSource = globalSources[constructorName]; + if (targetSource) { + source = targetSource[eventName]; + } + if (!source) { + source = + constructorName + + addSource + + (eventNameToString + ? eventNameToString(eventName) + : eventName); + } + // do not create a new object as task.data to pass those things + // just use the global shared one + taskData.options = options; + if (once) { + // if addEventListener with once options, we don't pass it to + // native addEventListener, instead we keep the once setting + // and handle ourselves. + taskData.options.once = false; + } + taskData.target = target; + taskData.capture = capture; + taskData.eventName = eventName; + taskData.isExisting = isExisting; + const data = useGlobalCallback + ? OPTIMIZED_ZONE_EVENT_TASK_DATA + : undefined; + // keep taskData into data to allow onScheduleEventTask to access the task information + if (data) { + data.taskData = taskData; + } + const task = zone.scheduleEventTask( + source, + delegate, + data, + customScheduleFn, + customCancelFn + ); + // should clear taskData.target to avoid memory leak + // issue, https://github.com/angular/angular/issues/20442 + taskData.target = null; + // need to clear up taskData because it is a global object + if (data) { + data.taskData = null; + } + // have to save those information to task in case + // application may call task.zone.cancelTask() directly + if (once) { + options.once = true; + } + if (!(!passiveSupported && typeof task.options === "boolean")) { + // if not support passive, and we pass an option object + // to addEventListener, we should save the options to task + task.options = options; + } + task.target = target; + task.capture = capture; + task.eventName = eventName; + if (isHandleEvent) { + // save original delegate for compare to check duplicate + task.originalDelegate = delegate; + } + if (!prepend) { + existingTasks.push(task); + } else { + existingTasks.unshift(task); + } + if (returnTarget) { + return target; + } + }; + }; + proto[ADD_EVENT_LISTENER] = makeAddListener( + nativeAddEventListener, + ADD_EVENT_LISTENER_SOURCE, + customSchedule, + customCancel, + returnTarget + ); + if (nativePrependEventListener) { + proto[PREPEND_EVENT_LISTENER] = makeAddListener( + nativePrependEventListener, + PREPEND_EVENT_LISTENER_SOURCE, + customSchedulePrepend, + customCancel, + returnTarget, + true + ); + } + proto[REMOVE_EVENT_LISTENER] = function () { + const target = this || _global; + let eventName = arguments[0]; + if (patchOptions && patchOptions.transferEventName) { + eventName = patchOptions.transferEventName(eventName); + } + const options = arguments[2]; + const capture = !options + ? false + : typeof options === "boolean" + ? true + : options.capture; + const delegate = arguments[1]; + if (!delegate) { + return nativeRemoveEventListener.apply(this, arguments); + } + if ( + validateHandler && + !validateHandler( + nativeRemoveEventListener, + delegate, + target, + arguments + ) + ) { + return; + } + const symbolEventNames = zoneSymbolEventNames[eventName]; + let symbolEventName; + if (symbolEventNames) { + symbolEventName = + symbolEventNames[capture ? TRUE_STR : FALSE_STR]; + } + const existingTasks = symbolEventName && target[symbolEventName]; + if (existingTasks) { + for (let i = 0; i < existingTasks.length; i++) { + const existingTask = existingTasks[i]; + if (compare(existingTask, delegate)) { + existingTasks.splice(i, 1); + // set isRemoved to data for faster invokeTask check + existingTask.isRemoved = true; + if (existingTasks.length === 0) { + // all tasks for the eventName + capture have gone, + // remove globalZoneAwareCallback and remove the task cache from target + existingTask.allRemoved = true; + target[symbolEventName] = null; + // in the target, we have an event listener which is added by on_property + // such as target.onclick = function() {}, so we need to clear this internal + // property too if all delegates all removed + if (typeof eventName === "string") { + const onPropertySymbol = + ZONE_SYMBOL_PREFIX + "ON_PROPERTY" + eventName; + target[onPropertySymbol] = null; + } + } + existingTask.zone.cancelTask(existingTask); + if (returnTarget) { + return target; + } + return; + } + } + } + // issue 930, didn't find the event name or callback + // from zone kept existingTasks, the callback maybe + // added outside of zone, we need to call native removeEventListener + // to try to remove it. + return nativeRemoveEventListener.apply(this, arguments); + }; + proto[LISTENERS_EVENT_LISTENER] = function () { + const target = this || _global; + let eventName = arguments[0]; + if (patchOptions && patchOptions.transferEventName) { + eventName = patchOptions.transferEventName(eventName); + } + const listeners = []; + const tasks = findEventTasks( + target, + eventNameToString ? eventNameToString(eventName) : eventName + ); + for (let i = 0; i < tasks.length; i++) { + const task = tasks[i]; + let delegate = task.originalDelegate + ? task.originalDelegate + : task.callback; + listeners.push(delegate); + } + return listeners; + }; + proto[REMOVE_ALL_LISTENERS_EVENT_LISTENER] = function () { + const target = this || _global; + let eventName = arguments[0]; + if (!eventName) { + const keys = Object.keys(target); + for (let i = 0; i < keys.length; i++) { + const prop = keys[i]; + const match = EVENT_NAME_SYMBOL_REGX.exec(prop); + let evtName = match && match[1]; + // in nodejs EventEmitter, removeListener event is + // used for monitoring the removeListener call, + // so just keep removeListener eventListener until + // all other eventListeners are removed + if (evtName && evtName !== "removeListener") { + this[REMOVE_ALL_LISTENERS_EVENT_LISTENER].call( + this, + evtName + ); + } + } + // remove removeListener listener finally + this[REMOVE_ALL_LISTENERS_EVENT_LISTENER].call( + this, + "removeListener" + ); + } else { + if (patchOptions && patchOptions.transferEventName) { + eventName = patchOptions.transferEventName(eventName); + } + const symbolEventNames = zoneSymbolEventNames[eventName]; + if (symbolEventNames) { + const symbolEventName = symbolEventNames[FALSE_STR]; + const symbolCaptureEventName = symbolEventNames[TRUE_STR]; + const tasks = target[symbolEventName]; + const captureTasks = target[symbolCaptureEventName]; + if (tasks) { + const removeTasks = tasks.slice(); + for (let i = 0; i < removeTasks.length; i++) { + const task = removeTasks[i]; + let delegate = task.originalDelegate + ? task.originalDelegate + : task.callback; + this[REMOVE_EVENT_LISTENER].call( + this, + eventName, + delegate, + task.options + ); + } + } + if (captureTasks) { + const removeTasks = captureTasks.slice(); + for (let i = 0; i < removeTasks.length; i++) { + const task = removeTasks[i]; + let delegate = task.originalDelegate + ? task.originalDelegate + : task.callback; + this[REMOVE_EVENT_LISTENER].call( + this, + eventName, + delegate, + task.options + ); + } + } + } + } + if (returnTarget) { + return this; + } + }; + // for native toString patch + attachOriginToPatched( + proto[ADD_EVENT_LISTENER], + nativeAddEventListener + ); + attachOriginToPatched( + proto[REMOVE_EVENT_LISTENER], + nativeRemoveEventListener + ); + if (nativeRemoveAllListeners) { + attachOriginToPatched( + proto[REMOVE_ALL_LISTENERS_EVENT_LISTENER], + nativeRemoveAllListeners + ); + } + if (nativeListeners) { + attachOriginToPatched( + proto[LISTENERS_EVENT_LISTENER], + nativeListeners + ); + } + return true; + } + let results = []; + for (let i = 0; i < apis.length; i++) { + results[i] = patchEventTargetMethods(apis[i], patchOptions); + } + return results; + } + function findEventTasks(target, eventName) { + if (!eventName) { + const foundTasks = []; + for (let prop in target) { + const match = EVENT_NAME_SYMBOL_REGX.exec(prop); + let evtName = match && match[1]; + if (evtName && (!eventName || evtName === eventName)) { + const tasks = target[prop]; + if (tasks) { + for (let i = 0; i < tasks.length; i++) { + foundTasks.push(tasks[i]); + } + } + } + } + return foundTasks; + } + let symbolEventName = zoneSymbolEventNames[eventName]; + if (!symbolEventName) { + prepareEventNames(eventName); + symbolEventName = zoneSymbolEventNames[eventName]; + } + const captureFalseTasks = target[symbolEventName[FALSE_STR]]; + const captureTrueTasks = target[symbolEventName[TRUE_STR]]; + if (!captureFalseTasks) { + return captureTrueTasks ? captureTrueTasks.slice() : []; + } else { + return captureTrueTasks + ? captureFalseTasks.concat(captureTrueTasks) + : captureFalseTasks.slice(); + } + } + function patchEventPrototype(global, api) { + const Event = global["Event"]; + if (Event && Event.prototype) { + api.patchMethod( + Event.prototype, + "stopImmediatePropagation", + (delegate) => + function (self, args) { + self[IMMEDIATE_PROPAGATION_SYMBOL] = true; + // we need to call the native stopImmediatePropagation + // in case in some hybrid application, some part of + // application will be controlled by zone, some are not + delegate && delegate.apply(self, args); + } + ); + } + } + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + function patchCallbacks(api, target, targetName, method, callbacks) { + const symbol = Zone.__symbol__(method); + if (target[symbol]) { + return; + } + const nativeDelegate = (target[symbol] = target[method]); + target[method] = function (name, opts, options) { + if (opts && opts.prototype) { + callbacks.forEach(function (callback) { + const source = `${targetName}.${method}::` + callback; + const prototype = opts.prototype; + // Note: the `patchCallbacks` is used for patching the `document.registerElement` and + // `customElements.define`. We explicitly wrap the patching code into try-catch since + // callbacks may be already patched by other web components frameworks (e.g. LWC), and they + // make those properties non-writable. This means that patching callback will throw an error + // `cannot assign to read-only property`. See this code as an example: + // https://github.com/salesforce/lwc/blob/master/packages/@lwc/engine-core/src/framework/base-bridge-element.ts#L180-L186 + // We don't want to stop the application rendering if we couldn't patch some + // callback, e.g. `attributeChangedCallback`. + try { + if (prototype.hasOwnProperty(callback)) { + const descriptor = api.ObjectGetOwnPropertyDescriptor( + prototype, + callback + ); + if (descriptor && descriptor.value) { + descriptor.value = api.wrapWithCurrentZone( + descriptor.value, + source + ); + api._redefineProperty( + opts.prototype, + callback, + descriptor + ); + } else if (prototype[callback]) { + prototype[callback] = api.wrapWithCurrentZone( + prototype[callback], + source + ); + } + } else if (prototype[callback]) { + prototype[callback] = api.wrapWithCurrentZone( + prototype[callback], + source + ); + } + } catch (_a) { + // Note: we leave the catch block empty since there's no way to handle the error related + // to non-writable property. + } + }); + } + return nativeDelegate.call(target, name, opts, options); + }; + api.attachOriginToPatched(target[method], nativeDelegate); + } + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + function filterProperties(target, onProperties, ignoreProperties) { + if (!ignoreProperties || ignoreProperties.length === 0) { + return onProperties; + } + const tip = ignoreProperties.filter((ip) => ip.target === target); + if (!tip || tip.length === 0) { + return onProperties; + } + const targetIgnoreProperties = tip[0].ignoreProperties; + return onProperties.filter( + (op) => targetIgnoreProperties.indexOf(op) === -1 + ); + } + function patchFilteredProperties( + target, + onProperties, + ignoreProperties, + prototype + ) { + // check whether target is available, sometimes target will be undefined + // because different browser or some 3rd party plugin. + if (!target) { + return; + } + const filteredProperties = filterProperties( + target, + onProperties, + ignoreProperties + ); + patchOnProperties(target, filteredProperties, prototype); + } + /** + * Get all event name properties which the event name startsWith `on` + * from the target object itself, inherited properties are not considered. + */ + function getOnEventNames(target) { + return Object.getOwnPropertyNames(target) + .filter((name) => name.startsWith("on") && name.length > 2) + .map((name) => name.substring(2)); + } + function propertyDescriptorPatch(api, _global) { + if (isNode && !isMix) { + return; + } + if (Zone[api.symbol("patchEvents")]) { + // events are already been patched by legacy patch. + return; + } + const ignoreProperties = _global["__Zone_ignore_on_properties"]; + // for browsers that we can patch the descriptor: Chrome & Firefox + let patchTargets = []; + if (isBrowser) { + const internalWindow = window; + patchTargets = patchTargets.concat([ + "Document", + "SVGElement", + "Element", + "HTMLElement", + "HTMLBodyElement", + "HTMLMediaElement", + "HTMLFrameSetElement", + "HTMLFrameElement", + "HTMLIFrameElement", + "HTMLMarqueeElement", + "Worker", + ]); + const ignoreErrorProperties = isIE() + ? [ + { + target: internalWindow, + ignoreProperties: ["error"], + }, + ] + : []; + // in IE/Edge, onProp not exist in window object, but in WindowPrototype + // so we need to pass WindowPrototype to check onProp exist or not + patchFilteredProperties( + internalWindow, + getOnEventNames(internalWindow), + ignoreProperties + ? ignoreProperties.concat(ignoreErrorProperties) + : ignoreProperties, + ObjectGetPrototypeOf(internalWindow) + ); + } + patchTargets = patchTargets.concat([ + "XMLHttpRequest", + "XMLHttpRequestEventTarget", + "IDBIndex", + "IDBRequest", + "IDBOpenDBRequest", + "IDBDatabase", + "IDBTransaction", + "IDBCursor", + "WebSocket", + ]); + for (let i = 0; i < patchTargets.length; i++) { + const target = _global[patchTargets[i]]; + target && + target.prototype && + patchFilteredProperties( + target.prototype, + getOnEventNames(target.prototype), + ignoreProperties + ); + } + } + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + Zone.__load_patch("util", (global, Zone, api) => { + // Collect native event names by looking at properties + // on the global namespace, e.g. 'onclick'. + const eventNames = getOnEventNames(global); + api.patchOnProperties = patchOnProperties; + api.patchMethod = patchMethod; + api.bindArguments = bindArguments; + api.patchMacroTask = patchMacroTask; + // In earlier version of zone.js (<0.9.0), we use env name `__zone_symbol__BLACK_LISTED_EVENTS` to + // define which events will not be patched by `Zone.js`. + // In newer version (>=0.9.0), we change the env name to `__zone_symbol__UNPATCHED_EVENTS` to keep + // the name consistent with angular repo. + // The `__zone_symbol__BLACK_LISTED_EVENTS` is deprecated, but it is still be supported for + // backwards compatibility. + const SYMBOL_BLACK_LISTED_EVENTS = Zone.__symbol__( + "BLACK_LISTED_EVENTS" + ); + const SYMBOL_UNPATCHED_EVENTS = Zone.__symbol__("UNPATCHED_EVENTS"); + if (global[SYMBOL_UNPATCHED_EVENTS]) { + global[SYMBOL_BLACK_LISTED_EVENTS] = + global[SYMBOL_UNPATCHED_EVENTS]; + } + if (global[SYMBOL_BLACK_LISTED_EVENTS]) { + Zone[SYMBOL_BLACK_LISTED_EVENTS] = Zone[SYMBOL_UNPATCHED_EVENTS] = + global[SYMBOL_BLACK_LISTED_EVENTS]; + } + api.patchEventPrototype = patchEventPrototype; + api.patchEventTarget = patchEventTarget; + api.isIEOrEdge = isIEOrEdge; + api.ObjectDefineProperty = ObjectDefineProperty; + api.ObjectGetOwnPropertyDescriptor = ObjectGetOwnPropertyDescriptor; + api.ObjectCreate = ObjectCreate; + api.ArraySlice = ArraySlice; + api.patchClass = patchClass; + api.wrapWithCurrentZone = wrapWithCurrentZone; + api.filterProperties = filterProperties; + api.attachOriginToPatched = attachOriginToPatched; + api._redefineProperty = Object.defineProperty; + api.patchCallbacks = patchCallbacks; + api.getGlobalObjects = () => ({ + globalSources, + zoneSymbolEventNames, + eventNames, + isBrowser, + isMix, + isNode, + TRUE_STR, + FALSE_STR, + ZONE_SYMBOL_PREFIX, + ADD_EVENT_LISTENER_STR, + REMOVE_EVENT_LISTENER_STR, + }); + }); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + const taskSymbol = zoneSymbol("zoneTask"); + function patchTimer(window, setName, cancelName, nameSuffix) { + let setNative = null; + let clearNative = null; + setName += nameSuffix; + cancelName += nameSuffix; + const tasksByHandleId = {}; + function scheduleTask(task) { + const data = task.data; + data.args[0] = function () { + return task.invoke.apply(this, arguments); + }; + data.handleId = setNative.apply(window, data.args); + return task; + } + function clearTask(task) { + return clearNative.call(window, task.data.handleId); + } + setNative = patchMethod( + window, + setName, + (delegate) => + function (self, args) { + if (typeof args[0] === "function") { + const options = { + isPeriodic: nameSuffix === "Interval", + delay: + nameSuffix === "Timeout" || nameSuffix === "Interval" + ? args[1] || 0 + : undefined, + args: args, + }; + const callback = args[0]; + args[0] = function timer() { + try { + return callback.apply(this, arguments); + } finally { + // issue-934, task will be cancelled + // even it is a periodic task such as + // setInterval + // https://github.com/angular/angular/issues/40387 + // Cleanup tasksByHandleId should be handled before scheduleTask + // Since some zoneSpec may intercept and doesn't trigger + // scheduleFn(scheduleTask) provided here. + if (!options.isPeriodic) { + if (typeof options.handleId === "number") { + // in non-nodejs env, we remove timerId + // from local cache + delete tasksByHandleId[options.handleId]; + } else if (options.handleId) { + // Node returns complex objects as handleIds + // we remove task reference from timer object + options.handleId[taskSymbol] = null; + } + } + } + }; + const task = scheduleMacroTaskWithCurrentZone( + setName, + args[0], + options, + scheduleTask, + clearTask + ); + if (!task) { + return task; + } + // Node.js must additionally support the ref and unref functions. + const handle = task.data.handleId; + if (typeof handle === "number") { + // for non nodejs env, we save handleId: task + // mapping in local cache for clearTimeout + tasksByHandleId[handle] = task; + } else if (handle) { + // for nodejs env, we save task + // reference in timerId Object for clearTimeout + handle[taskSymbol] = task; + } + // check whether handle is null, because some polyfill or browser + // may return undefined from setTimeout/setInterval/setImmediate/requestAnimationFrame + if ( + handle && + handle.ref && + handle.unref && + typeof handle.ref === "function" && + typeof handle.unref === "function" + ) { + task.ref = handle.ref.bind(handle); + task.unref = handle.unref.bind(handle); + } + if (typeof handle === "number" || handle) { + return handle; + } + return task; + } else { + // cause an error by calling it directly. + return delegate.apply(window, args); + } + } + ); + clearNative = patchMethod( + window, + cancelName, + (delegate) => + function (self, args) { + const id = args[0]; + let task; + if (typeof id === "number") { + // non nodejs env. + task = tasksByHandleId[id]; + } else { + // nodejs env. + task = id && id[taskSymbol]; + // other environments. + if (!task) { + task = id; + } + } + if (task && typeof task.type === "string") { + if ( + task.state !== "notScheduled" && + ((task.cancelFn && task.data.isPeriodic) || + task.runCount === 0) + ) { + if (typeof id === "number") { + delete tasksByHandleId[id]; + } else if (id) { + id[taskSymbol] = null; + } + // Do not cancel already canceled functions + task.zone.cancelTask(task); + } + } else { + // cause an error by calling it directly. + delegate.apply(window, args); + } + } + ); + } + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + function patchCustomElements(_global, api) { + const { isBrowser, isMix } = api.getGlobalObjects(); + if ( + (!isBrowser && !isMix) || + !_global["customElements"] || + !("customElements" in _global) + ) { + return; + } + const callbacks = [ + "connectedCallback", + "disconnectedCallback", + "adoptedCallback", + "attributeChangedCallback", + ]; + api.patchCallbacks( + api, + _global.customElements, + "customElements", + "define", + callbacks + ); + } + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + function eventTargetPatch(_global, api) { + if (Zone[api.symbol("patchEventTarget")]) { + // EventTarget is already patched. + return; + } + const { + eventNames, + zoneSymbolEventNames, + TRUE_STR, + FALSE_STR, + ZONE_SYMBOL_PREFIX, + } = api.getGlobalObjects(); + // predefine all __zone_symbol__ + eventName + true/false string + for (let i = 0; i < eventNames.length; i++) { + const eventName = eventNames[i]; + const falseEventName = eventName + FALSE_STR; + const trueEventName = eventName + TRUE_STR; + const symbol = ZONE_SYMBOL_PREFIX + falseEventName; + const symbolCapture = ZONE_SYMBOL_PREFIX + trueEventName; + zoneSymbolEventNames[eventName] = {}; + zoneSymbolEventNames[eventName][FALSE_STR] = symbol; + zoneSymbolEventNames[eventName][TRUE_STR] = symbolCapture; + } + const EVENT_TARGET = _global["EventTarget"]; + if (!EVENT_TARGET || !EVENT_TARGET.prototype) { + return; + } + api.patchEventTarget(_global, api, [ + EVENT_TARGET && EVENT_TARGET.prototype, + ]); + return true; + } + function patchEvent(global, api) { + api.patchEventPrototype(global, api); + } + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + Zone.__load_patch("legacy", (global) => { + const legacyPatch = global[Zone.__symbol__("legacyPatch")]; + if (legacyPatch) { + legacyPatch(); + } + }); + Zone.__load_patch("queueMicrotask", (global, Zone, api) => { + api.patchMethod(global, "queueMicrotask", (delegate) => { + return function (self, args) { + Zone.current.scheduleMicroTask("queueMicrotask", args[0]); + }; + }); + }); + Zone.__load_patch("timers", (global) => { + const set = "set"; + const clear = "clear"; + patchTimer(global, set, clear, "Timeout"); + patchTimer(global, set, clear, "Interval"); + patchTimer(global, set, clear, "Immediate"); + }); + Zone.__load_patch("requestAnimationFrame", (global) => { + patchTimer(global, "request", "cancel", "AnimationFrame"); + patchTimer(global, "mozRequest", "mozCancel", "AnimationFrame"); + patchTimer(global, "webkitRequest", "webkitCancel", "AnimationFrame"); + }); + Zone.__load_patch("blocking", (global, Zone) => { + const blockingMethods = ["alert", "prompt", "confirm"]; + for (let i = 0; i < blockingMethods.length; i++) { + const name = blockingMethods[i]; + patchMethod(global, name, (delegate, symbol, name) => { + return function (s, args) { + return Zone.current.run(delegate, global, args, name); + }; + }); + } + }); + Zone.__load_patch("EventTarget", (global, Zone, api) => { + patchEvent(global, api); + eventTargetPatch(global, api); + // patch XMLHttpRequestEventTarget's addEventListener/removeEventListener + const XMLHttpRequestEventTarget = global["XMLHttpRequestEventTarget"]; + if ( + XMLHttpRequestEventTarget && + XMLHttpRequestEventTarget.prototype + ) { + api.patchEventTarget(global, api, [ + XMLHttpRequestEventTarget.prototype, + ]); + } + }); + Zone.__load_patch("MutationObserver", (global, Zone, api) => { + patchClass("MutationObserver"); + patchClass("WebKitMutationObserver"); + }); + Zone.__load_patch("IntersectionObserver", (global, Zone, api) => { + patchClass("IntersectionObserver"); + }); + Zone.__load_patch("FileReader", (global, Zone, api) => { + patchClass("FileReader"); + }); + Zone.__load_patch("on_property", (global, Zone, api) => { + propertyDescriptorPatch(api, global); + }); + Zone.__load_patch("customElements", (global, Zone, api) => { + patchCustomElements(global, api); + }); + Zone.__load_patch("XHR", (global, Zone) => { + // Treat XMLHttpRequest as a macrotask. + patchXHR(global); + const XHR_TASK = zoneSymbol("xhrTask"); + const XHR_SYNC = zoneSymbol("xhrSync"); + const XHR_LISTENER = zoneSymbol("xhrListener"); + const XHR_SCHEDULED = zoneSymbol("xhrScheduled"); + const XHR_URL = zoneSymbol("xhrURL"); + const XHR_ERROR_BEFORE_SCHEDULED = zoneSymbol( + "xhrErrorBeforeScheduled" + ); + function patchXHR(window) { + const XMLHttpRequest = window["XMLHttpRequest"]; + if (!XMLHttpRequest) { + // XMLHttpRequest is not available in service worker + return; + } + const XMLHttpRequestPrototype = XMLHttpRequest.prototype; + function findPendingTask(target) { + return target[XHR_TASK]; + } + let oriAddListener = + XMLHttpRequestPrototype[ZONE_SYMBOL_ADD_EVENT_LISTENER]; + let oriRemoveListener = + XMLHttpRequestPrototype[ZONE_SYMBOL_REMOVE_EVENT_LISTENER]; + if (!oriAddListener) { + const XMLHttpRequestEventTarget = + window["XMLHttpRequestEventTarget"]; + if (XMLHttpRequestEventTarget) { + const XMLHttpRequestEventTargetPrototype = + XMLHttpRequestEventTarget.prototype; + oriAddListener = + XMLHttpRequestEventTargetPrototype[ + ZONE_SYMBOL_ADD_EVENT_LISTENER + ]; + oriRemoveListener = + XMLHttpRequestEventTargetPrototype[ + ZONE_SYMBOL_REMOVE_EVENT_LISTENER + ]; + } + } + const READY_STATE_CHANGE = "readystatechange"; + const SCHEDULED = "scheduled"; + function scheduleTask(task) { + const data = task.data; + const target = data.target; + target[XHR_SCHEDULED] = false; + target[XHR_ERROR_BEFORE_SCHEDULED] = false; + // remove existing event listener + const listener = target[XHR_LISTENER]; + if (!oriAddListener) { + oriAddListener = target[ZONE_SYMBOL_ADD_EVENT_LISTENER]; + oriRemoveListener = target[ZONE_SYMBOL_REMOVE_EVENT_LISTENER]; + } + if (listener) { + oriRemoveListener.call(target, READY_STATE_CHANGE, listener); + } + const newListener = (target[XHR_LISTENER] = () => { + if (target.readyState === target.DONE) { + // sometimes on some browsers XMLHttpRequest will fire onreadystatechange with + // readyState=4 multiple times, so we need to check task state here + if ( + !data.aborted && + target[XHR_SCHEDULED] && + task.state === SCHEDULED + ) { + // check whether the xhr has registered onload listener + // if that is the case, the task should invoke after all + // onload listeners finish. + // Also if the request failed without response (status = 0), the load event handler + // will not be triggered, in that case, we should also invoke the placeholder callback + // to close the XMLHttpRequest::send macroTask. + // https://github.com/angular/angular/issues/38795 + const loadTasks = target[Zone.__symbol__("loadfalse")]; + if ( + target.status !== 0 && + loadTasks && + loadTasks.length > 0 + ) { + const oriInvoke = task.invoke; + task.invoke = function () { + // need to load the tasks again, because in other + // load listener, they may remove themselves + const loadTasks = target[Zone.__symbol__("loadfalse")]; + for (let i = 0; i < loadTasks.length; i++) { + if (loadTasks[i] === task) { + loadTasks.splice(i, 1); + } + } + if (!data.aborted && task.state === SCHEDULED) { + oriInvoke.call(task); + } + }; + loadTasks.push(task); + } else { + task.invoke(); + } + } else if (!data.aborted && target[XHR_SCHEDULED] === false) { + // error occurs when xhr.send() + target[XHR_ERROR_BEFORE_SCHEDULED] = true; + } + } + }); + oriAddListener.call(target, READY_STATE_CHANGE, newListener); + const storedTask = target[XHR_TASK]; + if (!storedTask) { + target[XHR_TASK] = task; + } + sendNative.apply(target, data.args); + target[XHR_SCHEDULED] = true; + return task; + } + function placeholderCallback() {} + function clearTask(task) { + const data = task.data; + // Note - ideally, we would call data.target.removeEventListener here, but it's too late + // to prevent it from firing. So instead, we store info for the event listener. + data.aborted = true; + return abortNative.apply(data.target, data.args); + } + const openNative = patchMethod( + XMLHttpRequestPrototype, + "open", + () => + function (self, args) { + self[XHR_SYNC] = args[2] == false; + self[XHR_URL] = args[1]; + return openNative.apply(self, args); + } + ); + const XMLHTTPREQUEST_SOURCE = "XMLHttpRequest.send"; + const fetchTaskAborting = zoneSymbol("fetchTaskAborting"); + const fetchTaskScheduling = zoneSymbol("fetchTaskScheduling"); + const sendNative = patchMethod( + XMLHttpRequestPrototype, + "send", + () => + function (self, args) { + if (Zone.current[fetchTaskScheduling] === true) { + // a fetch is scheduling, so we are using xhr to polyfill fetch + // and because we already schedule macroTask for fetch, we should + // not schedule a macroTask for xhr again + return sendNative.apply(self, args); + } + if (self[XHR_SYNC]) { + // if the XHR is sync there is no task to schedule, just execute the code. + return sendNative.apply(self, args); + } else { + const options = { + target: self, + url: self[XHR_URL], + isPeriodic: false, + args: args, + aborted: false, + }; + const task = scheduleMacroTaskWithCurrentZone( + XMLHTTPREQUEST_SOURCE, + placeholderCallback, + options, + scheduleTask, + clearTask + ); + if ( + self && + self[XHR_ERROR_BEFORE_SCHEDULED] === true && + !options.aborted && + task.state === SCHEDULED + ) { + // xhr request throw error when send + // we should invoke task instead of leaving a scheduled + // pending macroTask + task.invoke(); + } + } + } + ); + const abortNative = patchMethod( + XMLHttpRequestPrototype, + "abort", + () => + function (self, args) { + const task = findPendingTask(self); + if (task && typeof task.type == "string") { + // If the XHR has already completed, do nothing. + // If the XHR has already been aborted, do nothing. + // Fix #569, call abort multiple times before done will cause + // macroTask task count be negative number + if ( + task.cancelFn == null || + (task.data && task.data.aborted) + ) { + return; + } + task.zone.cancelTask(task); + } else if (Zone.current[fetchTaskAborting] === true) { + // the abort is called from fetch polyfill, we need to call native abort of XHR. + return abortNative.apply(self, args); + } + // Otherwise, we are trying to abort an XHR which has not yet been sent, so there is no + // task + // to cancel. Do nothing. + } + ); + } + }); + + Zone.__load_patch("geolocation", (global) => { + /// GEO_LOCATION + if (global["navigator"] && global["navigator"].geolocation) { + patchPrototype(global["navigator"].geolocation, [ + "getCurrentPosition", + "watchPosition", + ]); + } + }); + Zone.__load_patch("PromiseRejectionEvent", (global, Zone) => { + // handle unhandled promise rejection + function findPromiseRejectionHandler(evtName) { + return function (e) { + const eventTasks = findEventTasks(global, evtName); + eventTasks.forEach((eventTask) => { + // windows has added unhandledrejection event listener + // trigger the event listener + const PromiseRejectionEvent = global["PromiseRejectionEvent"]; + if (PromiseRejectionEvent) { + const evt = new PromiseRejectionEvent(evtName, { + promise: e.promise, + reason: e.rejection, + }); + eventTask.invoke(evt); + } + }); + }; + } + if (global["PromiseRejectionEvent"]) { + Zone[zoneSymbol("unhandledPromiseRejectionHandler")] = + findPromiseRejectionHandler("unhandledrejection"); + Zone[zoneSymbol("rejectionHandledHandler")] = + findPromiseRejectionHandler("rejectionhandled"); + } + }); + + /***/ + }, + }, + /******/ (__webpack_require__) => { + // webpackRuntimeModules + /******/ var __webpack_exec__ = (moduleId) => + __webpack_require__((__webpack_require__.s = moduleId)); + /******/ var __webpack_exports__ = __webpack_exec__(7435); + /******/ + }, +]); +//# sourceMappingURL=polyfills.js.map diff --git a/cdk/cdk.out/asset.705042e10eb8fb6d7d7475c39e61e09836398336585ba5ef9814a4a774e8e009/polyfills.js.map b/cdk/cdk.out/asset.705042e10eb8fb6d7d7475c39e61e09836398336585ba5ef9814a4a774e8e009/polyfills.js.map new file mode 100644 index 00000000..2ef32f53 --- /dev/null +++ b/cdk/cdk.out/asset.705042e10eb8fb6d7d7475c39e61e09836398336585ba5ef9814a4a774e8e009/poly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AAK;EACzD;EACA,SAASkjB,2BAA2B,CAAC5F,OAAO,EAAE;IAC1C,OAAO,UAAU5L,CAAC,EAAE;MAChB,MAAMyR,UAAU,GAAGjG,cAAc,CAAC5d,MAAM,EAAEge,OAAO,CAAC;MAClD6F,UAAU,CAAC9E,OAAO,CAACtb,SAAS,IAAI;QAC5B;QACA;QACA,MAAMqgB,qBAAqB,GAAG9jB,MAAM,CAAC,uBAAuB,CAAC;QAC7D,IAAI8jB,qBAAqB,EAAE;UACvB,MAAMC,GAAG,GAAG,IAAID,qBAAqB,CAAC9F,OAAO,EAAE;YAAElK,OAAO,EAAE1B,CAAC,CAAC0B,OAAO;YAAE4C,MAAM,EAAEtE,CAAC,CAACC;UAAU,CAAC,CAAC;UAC3F5O,SAAS,CAACT,MAAM,CAAC+gB,GAAG,CAAC;QACzB;MACJ,CAAC,CAAC;IACN,CAAC;EACL;EACA,IAAI/jB,MAAM,CAAC,uBAAuB,CAAC,EAAE;IACjCU,IAAI,CAAC6M,UAAU,CAAC,kCAAkC,CAAC,CAAC,GAChDqW,2BAA2B,CAAC,oBAAoB,CAAC;IACrDljB,IAAI,CAAC6M,UAAU,CAAC,yBAAyB,CAAC,CAAC,GACvCqW,2BAA2B,CAAC,kBAAkB,CAAC;EACvD;AACJ,CAAC,CAAC","sources":["./src/polyfills.ts","./node_modules/zone.js/fesm2015/zone.js"],"sourcesContent":["/**\r\n * This file includes polyfills needed by Angular and is loaded before the app.\r\n * You can add your own extra polyfills to this file.\r\n *\r\n * This file is divided into 2 sections:\r\n * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers.\r\n * 2. Application imports. Files imported after ZoneJS that should be loaded before your main\r\n * file.\r\n *\r\n * The current setup is for so-called \"evergreen\" browsers; the last versions of browsers that\r\n * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera),\r\n * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile.\r\n *\r\n * Learn more in https://angular.io/guide/browser-support\r\n */\r\n\r\n/***************************************************************************************************\r\n * BROWSER POLYFILLS\r\n */\r\n\r\n/**\r\n * By default, zone.js will patch all possible macroTask and DomEvents\r\n * user can disable parts of macroTask/DomEvents patch by setting following flags\r\n * because those flags need to be set before `zone.js` being loaded, and webpack\r\n * will put import in the top of bundle, so user need to create a separate file\r\n * in this directory (for example: zone-flags.ts), and put the following flags\r\n * into that file, and then add the following code before importing zone.js.\r\n * import './zone-flags';\r\n *\r\n * The flags allowed in zone-flags.ts are listed here.\r\n *\r\n * The following flags will work for all browsers.\r\n *\r\n * (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame\r\n * (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick\r\n * (window as any).__zone_symbol__UNPATCHED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames\r\n *\r\n * in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js\r\n * with the following flag, it will bypass `zone.js` patch for IE/Edge\r\n *\r\n * (window as any).__Zone_enable_cross_context_check = true;\r\n *\r\n */\r\n\r\n/***************************************************************************************************\r\n * Zone JS is required by default for Angular itself.\r\n */\r\nimport 'zone.js'; // Included with Angular CLI.\r\n\r\n/***************************************************************************************************\r\n * APPLICATION IMPORTS\r\n */\r\n","'use strict';\n/**\n * @license Angular v15.1.0-next.0\n * (c) 2010-2022 Google LLC. https://angular.io/\n * License: MIT\n */\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n((function (global) {\n const performance = global['performance'];\n function mark(name) {\n performance && performance['mark'] && performance['mark'](name);\n }\n function performanceMeasure(name, label) {\n performance && performance['measure'] && performance['measure'](name, label);\n }\n mark('Zone');\n // Initialize before it's accessed below.\n // __Zone_symbol_prefix global can be used to override the default zone\n // symbol prefix with a custom one if needed.\n const symbolPrefix = global['__Zone_symbol_prefix'] || '__zone_symbol__';\n function __symbol__(name) {\n return symbolPrefix + name;\n }\n const checkDuplicate = global[__symbol__('forceDuplicateZoneCheck')] === true;\n if (global['Zone']) {\n // if global['Zone'] already exists (maybe zone.js was already loaded or\n // some other lib also registered a global object named Zone), we may need\n // to throw an error, but sometimes user may not want this error.\n // For example,\n // we have two web pages, page1 includes zone.js, page2 doesn't.\n // and the 1st time user load page1 and page2, everything work fine,\n // but when user load page2 again, error occurs because global['Zone'] already exists.\n // so we add a flag to let user choose whether to throw this error or not.\n // By default, if existing Zone is from zone.js, we will not throw the error.\n if (checkDuplicate || typeof global['Zone'].__symbol__ !== 'function') {\n throw new Error('Zone already loaded.');\n }\n else {\n return global['Zone'];\n }\n }\n class Zone {\n constructor(parent, zoneSpec) {\n this._parent = parent;\n this._name = zoneSpec ? zoneSpec.name || 'unnamed' : '';\n this._properties = zoneSpec && zoneSpec.properties || {};\n this._zoneDelegate =\n new _ZoneDelegate(this, this._parent && this._parent._zoneDelegate, zoneSpec);\n }\n static assertZonePatched() {\n if (global['Promise'] !== patches['ZoneAwarePromise']) {\n throw new Error('Zone.js has detected that ZoneAwarePromise `(window|global).Promise` ' +\n 'has been overwritten.\\n' +\n 'Most likely cause is that a Promise polyfill has been loaded ' +\n 'after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. ' +\n 'If you must load one, do so before loading zone.js.)');\n }\n }\n static get root() {\n let zone = Zone.current;\n while (zone.parent) {\n zone = zone.parent;\n }\n return zone;\n }\n static get current() {\n return _currentZoneFrame.zone;\n }\n static get currentTask() {\n return _currentTask;\n }\n // tslint:disable-next-line:require-internal-with-underscore\n static __load_patch(name, fn, ignoreDuplicate = false) {\n if (patches.hasOwnProperty(name)) {\n // `checkDuplicate` option is defined from global variable\n // so it works for all modules.\n // `ignoreDuplicate` can work for the specified module\n if (!ignoreDuplicate && checkDuplicate) {\n throw Error('Already loaded patch: ' + name);\n }\n }\n else if (!global['__Zone_disable_' + name]) {\n const perfName = 'Zone:' + name;\n mark(perfName);\n patches[name] = fn(global, Zone, _api);\n performanceMeasure(perfName, perfName);\n }\n }\n get parent() {\n return this._parent;\n }\n get name() {\n return this._name;\n }\n get(key) {\n const zone = this.getZoneWith(key);\n if (zone)\n return zone._properties[key];\n }\n getZoneWith(key) {\n let current = this;\n while (current) {\n if (current._properties.hasOwnProperty(key)) {\n return current;\n }\n current = current._parent;\n }\n return null;\n }\n fork(zoneSpec) {\n if (!zoneSpec)\n throw new Error('ZoneSpec required!');\n return this._zoneDelegate.fork(this, zoneSpec);\n }\n wrap(callback, source) {\n if (typeof callback !== 'function') {\n throw new Error('Expecting function got: ' + callback);\n }\n const _callback = this._zoneDelegate.intercept(this, callback, source);\n const zone = this;\n return function () {\n return zone.runGuarded(_callback, this, arguments, source);\n };\n }\n run(callback, applyThis, applyArgs, source) {\n _currentZoneFrame = { parent: _currentZoneFrame, zone: this };\n try {\n return this._zoneDelegate.invoke(this, callback, applyThis, applyArgs, source);\n }\n finally {\n _currentZoneFrame = _currentZoneFrame.parent;\n }\n }\n runGuarded(callback, applyThis = null, applyArgs, source) {\n _currentZoneFrame = { parent: _currentZoneFrame, zone: this };\n try {\n try {\n return this._zoneDelegate.invoke(this, callback, applyThis, applyArgs, source);\n }\n catch (error) {\n if (this._zoneDelegate.handleError(this, error)) {\n throw error;\n }\n }\n }\n finally {\n _currentZoneFrame = _currentZoneFrame.parent;\n }\n }\n runTask(task, applyThis, applyArgs) {\n if (task.zone != this) {\n throw new Error('A task can only be run in the zone of creation! (Creation: ' +\n (task.zone || NO_ZONE).name + '; Execution: ' + this.name + ')');\n }\n // https://github.com/angular/zone.js/issues/778, sometimes eventTask\n // will run in notScheduled(canceled) state, we should not try to\n // run such kind of task but just return\n if (task.state === notScheduled && (task.type === eventTask || task.type === macroTask)) {\n return;\n }\n const reEntryGuard = task.state != running;\n reEntryGuard && task._transitionTo(running, scheduled);\n task.runCount++;\n const previousTask = _currentTask;\n _currentTask = task;\n _currentZoneFrame = { parent: _currentZoneFrame, zone: this };\n try {\n if (task.type == macroTask && task.data && !task.data.isPeriodic) {\n task.cancelFn = undefined;\n }\n try {\n return this._zoneDelegate.invokeTask(this, task, applyThis, applyArgs);\n }\n catch (error) {\n if (this._zoneDelegate.handleError(this, error)) {\n throw error;\n }\n }\n }\n finally {\n // if the task's state is notScheduled or unknown, then it has already been cancelled\n // we should not reset the state to scheduled\n if (task.state !== notScheduled && task.state !== unknown) {\n if (task.type == eventTask || (task.data && task.data.isPeriodic)) {\n reEntryGuard && task._transitionTo(scheduled, running);\n }\n else {\n task.runCount = 0;\n this._updateTaskCount(task, -1);\n reEntryGuard &&\n task._transitionTo(notScheduled, running, notScheduled);\n }\n }\n _currentZoneFrame = _currentZoneFrame.parent;\n _currentTask = previousTask;\n }\n }\n scheduleTask(task) {\n if (task.zone && task.zone !== this) {\n // check if the task was rescheduled, the newZone\n // should not be the children of the original zone\n let newZone = this;\n while (newZone) {\n if (newZone === task.zone) {\n throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${task.zone.name}`);\n }\n newZone = newZone.parent;\n }\n }\n task._transitionTo(scheduling, notScheduled);\n const zoneDelegates = [];\n task._zoneDelegates = zoneDelegates;\n task._zone = this;\n try {\n task = this._zoneDelegate.scheduleTask(this, task);\n }\n catch (err) {\n // should set task's state to unknown when scheduleTask throw error\n // because the err may from reschedule, so the fromState maybe notScheduled\n task._transitionTo(unknown, scheduling, notScheduled);\n // TODO: @JiaLiPassion, should we check the result from handleError?\n this._zoneDelegate.handleError(this, err);\n throw err;\n }\n if (task._zoneDelegates === zoneDelegates) {\n // we have to check because internally the delegate can reschedule the task.\n this._updateTaskCount(task, 1);\n }\n if (task.state == scheduling) {\n task._transitionTo(scheduled, scheduling);\n }\n return task;\n }\n scheduleMicroTask(source, callback, data, customSchedule) {\n return this.scheduleTask(new ZoneTask(microTask, source, callback, data, customSchedule, undefined));\n }\n scheduleMacroTask(source, callback, data, customSchedule, customCancel) {\n return this.scheduleTask(new ZoneTask(macroTask, source, callback, data, customSchedule, customCancel));\n }\n scheduleEventTask(source, callback, data, customSchedule, customCancel) {\n return this.scheduleTask(new ZoneTask(eventTask, source, callback, data, customSchedule, customCancel));\n }\n cancelTask(task) {\n if (task.zone != this)\n throw new Error('A task can only be cancelled in the zone of creation! (Creation: ' +\n (task.zone || NO_ZONE).name + '; Execution: ' + this.name + ')');\n if (task.state !== scheduled && task.state !== running) {\n return;\n }\n task._transitionTo(canceling, scheduled, running);\n try {\n this._zoneDelegate.cancelTask(this, task);\n }\n catch (err) {\n // if error occurs when cancelTask, transit the state to unknown\n task._transitionTo(unknown, canceling);\n this._zoneDelegate.handleError(this, err);\n throw err;\n }\n this._updateTaskCount(task, -1);\n task._transitionTo(notScheduled, canceling);\n task.runCount = 0;\n return task;\n }\n _updateTaskCount(task, count) {\n const zoneDelegates = task._zoneDelegates;\n if (count == -1) {\n task._zoneDelegates = null;\n }\n for (let i = 0; i < zoneDelegates.length; i++) {\n zoneDelegates[i]._updateTaskCount(task.type, count);\n }\n }\n }\n // tslint:disable-next-line:require-internal-with-underscore\n Zone.__symbol__ = __symbol__;\n const DELEGATE_ZS = {\n name: '',\n onHasTask: (delegate, _, target, hasTaskState) => delegate.hasTask(target, hasTaskState),\n onScheduleTask: (delegate, _, target, task) => delegate.scheduleTask(target, task),\n onInvokeTask: (delegate, _, target, task, applyThis, applyArgs) => delegate.invokeTask(target, task, applyThis, applyArgs),\n onCancelTask: (delegate, _, target, task) => delegate.cancelTask(target, task)\n };\n class _ZoneDelegate {\n constructor(zone, parentDelegate, zoneSpec) {\n this._taskCounts = { 'microTask': 0, 'macroTask': 0, 'eventTask': 0 };\n this.zone = zone;\n this._parentDelegate = parentDelegate;\n this._forkZS = zoneSpec && (zoneSpec && zoneSpec.onFork ? zoneSpec : parentDelegate._forkZS);\n this._forkDlgt = zoneSpec && (zoneSpec.onFork ? parentDelegate : parentDelegate._forkDlgt);\n this._forkCurrZone =\n zoneSpec && (zoneSpec.onFork ? this.zone : parentDelegate._forkCurrZone);\n this._interceptZS =\n zoneSpec && (zoneSpec.onIntercept ? zoneSpec : parentDelegate._interceptZS);\n this._interceptDlgt =\n zoneSpec && (zoneSpec.onIntercept ? parentDelegate : parentDelegate._interceptDlgt);\n this._interceptCurrZone =\n zoneSpec && (zoneSpec.onIntercept ? this.zone : parentDelegate._interceptCurrZone);\n this._invokeZS = zoneSpec && (zoneSpec.onInvoke ? zoneSpec : parentDelegate._invokeZS);\n this._invokeDlgt =\n zoneSpec && (zoneSpec.onInvoke ? parentDelegate : parentDelegate._invokeDlgt);\n this._invokeCurrZone =\n zoneSpec && (zoneSpec.onInvoke ? this.zone : parentDelegate._invokeCurrZone);\n this._handleErrorZS =\n zoneSpec && (zoneSpec.onHandleError ? zoneSpec : parentDelegate._handleErrorZS);\n this._handleErrorDlgt =\n zoneSpec && (zoneSpec.onHandleError ? parentDelegate : parentDelegate._handleErrorDlgt);\n this._handleErrorCurrZone =\n zoneSpec && (zoneSpec.onHandleError ? this.zone : parentDelegate._handleErrorCurrZone);\n this._scheduleTaskZS =\n zoneSpec && (zoneSpec.onScheduleTask ? zoneSpec : parentDelegate._scheduleTaskZS);\n this._scheduleTaskDlgt = zoneSpec &&\n (zoneSpec.onScheduleTask ? parentDelegate : parentDelegate._scheduleTaskDlgt);\n this._scheduleTaskCurrZone =\n zoneSpec && (zoneSpec.onScheduleTask ? this.zone : parentDelegate._scheduleTaskCurrZone);\n this._invokeTaskZS =\n zoneSpec && (zoneSpec.onInvokeTask ? zoneSpec : parentDelegate._invokeTaskZS);\n this._invokeTaskDlgt =\n zoneSpec && (zoneSpec.onInvokeTask ? parentDelegate : parentDelegate._invokeTaskDlgt);\n this._invokeTaskCurrZone =\n zoneSpec && (zoneSpec.onInvokeTask ? this.zone : parentDelegate._invokeTaskCurrZone);\n this._cancelTaskZS =\n zoneSpec && (zoneSpec.onCancelTask ? zoneSpec : parentDelegate._cancelTaskZS);\n this._cancelTaskDlgt =\n zoneSpec && (zoneSpec.onCancelTask ? parentDelegate : parentDelegate._cancelTaskDlgt);\n this._cancelTaskCurrZone =\n zoneSpec && (zoneSpec.onCancelTask ? this.zone : parentDelegate._cancelTaskCurrZone);\n this._hasTaskZS = null;\n this._hasTaskDlgt = null;\n this._hasTaskDlgtOwner = null;\n this._hasTaskCurrZone = null;\n const zoneSpecHasTask = zoneSpec && zoneSpec.onHasTask;\n const parentHasTask = parentDelegate && parentDelegate._hasTaskZS;\n if (zoneSpecHasTask || parentHasTask) {\n // If we need to report hasTask, than this ZS needs to do ref counting on tasks. In such\n // a case all task related interceptors must go through this ZD. We can't short circuit it.\n this._hasTaskZS = zoneSpecHasTask ? zoneSpec : DELEGATE_ZS;\n this._hasTaskDlgt = parentDelegate;\n this._hasTaskDlgtOwner = this;\n this._hasTaskCurrZone = zone;\n if (!zoneSpec.onScheduleTask) {\n this._scheduleTaskZS = DELEGATE_ZS;\n this._scheduleTaskDlgt = parentDelegate;\n this._scheduleTaskCurrZone = this.zone;\n }\n if (!zoneSpec.onInvokeTask) {\n this._invokeTaskZS = DELEGATE_ZS;\n this._invokeTaskDlgt = parentDelegate;\n this._invokeTaskCurrZone = this.zone;\n }\n if (!zoneSpec.onCancelTask) {\n this._cancelTaskZS = DELEGATE_ZS;\n this._cancelTaskDlgt = parentDelegate;\n this._cancelTaskCurrZone = this.zone;\n }\n }\n }\n fork(targetZone, zoneSpec) {\n return this._forkZS ? this._forkZS.onFork(this._forkDlgt, this.zone, targetZone, zoneSpec) :\n new Zone(targetZone, zoneSpec);\n }\n intercept(targetZone, callback, source) {\n return this._interceptZS ?\n this._interceptZS.onIntercept(this._interceptDlgt, this._interceptCurrZone, targetZone, callback, source) :\n callback;\n }\n invoke(targetZone, callback, applyThis, applyArgs, source) {\n return this._invokeZS ? this._invokeZS.onInvoke(this._invokeDlgt, this._invokeCurrZone, targetZone, callback, applyThis, applyArgs, source) :\n callback.apply(applyThis, applyArgs);\n }\n handleError(targetZone, error) {\n return this._handleErrorZS ?\n this._handleErrorZS.onHandleError(this._handleErrorDlgt, this._handleErrorCurrZone, targetZone, error) :\n true;\n }\n scheduleTask(targetZone, task) {\n let returnTask = task;\n if (this._scheduleTaskZS) {\n if (this._hasTaskZS) {\n returnTask._zoneDelegates.push(this._hasTaskDlgtOwner);\n }\n // clang-format off\n returnTask = this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt, this._scheduleTaskCurrZone, targetZone, task);\n // clang-format on\n if (!returnTask)\n returnTask = task;\n }\n else {\n if (task.scheduleFn) {\n task.scheduleFn(task);\n }\n else if (task.type == microTask) {\n scheduleMicroTask(task);\n }\n else {\n throw new Error('Task is missing scheduleFn.');\n }\n }\n return returnTask;\n }\n invokeTask(targetZone, task, applyThis, applyArgs) {\n return this._invokeTaskZS ? this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt, this._invokeTaskCurrZone, targetZone, task, applyThis, applyArgs) :\n task.callback.apply(applyThis, applyArgs);\n }\n cancelTask(targetZone, task) {\n let value;\n if (this._cancelTaskZS) {\n value = this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt, this._cancelTaskCurrZone, targetZone, task);\n }\n else {\n if (!task.cancelFn) {\n throw Error('Task is not cancelable');\n }\n value = task.cancelFn(task);\n }\n return value;\n }\n hasTask(targetZone, isEmpty) {\n // hasTask should not throw error so other ZoneDelegate\n // can still trigger hasTask callback\n try {\n this._hasTaskZS &&\n this._hasTaskZS.onHasTask(this._hasTaskDlgt, this._hasTaskCurrZone, targetZone, isEmpty);\n }\n catch (err) {\n this.handleError(targetZone, err);\n }\n }\n // tslint:disable-next-line:require-internal-with-underscore\n _updateTaskCount(type, count) {\n const counts = this._taskCounts;\n const prev = counts[type];\n const next = counts[type] = prev + count;\n if (next < 0) {\n throw new Error('More tasks executed then were scheduled.');\n }\n if (prev == 0 || next == 0) {\n const isEmpty = {\n microTask: counts['microTask'] > 0,\n macroTask: counts['macroTask'] > 0,\n eventTask: counts['eventTask'] > 0,\n change: type\n };\n this.hasTask(this.zone, isEmpty);\n }\n }\n }\n class ZoneTask {\n constructor(type, source, callback, options, scheduleFn, cancelFn) {\n // tslint:disable-next-line:require-internal-with-underscore\n this._zone = null;\n this.runCount = 0;\n // tslint:disable-next-line:require-internal-with-underscore\n this._zoneDelegates = null;\n // tslint:disable-next-line:require-internal-with-underscore\n this._state = 'notScheduled';\n this.type = type;\n this.source = source;\n this.data = options;\n this.scheduleFn = scheduleFn;\n this.cancelFn = cancelFn;\n if (!callback) {\n throw new Error('callback is not defined');\n }\n this.callback = callback;\n const self = this;\n // TODO: @JiaLiPassion options should have interface\n if (type === eventTask && options && options.useG) {\n this.invoke = ZoneTask.invokeTask;\n }\n else {\n this.invoke = function () {\n return ZoneTask.invokeTask.call(global, self, this, arguments);\n };\n }\n }\n static invokeTask(task, target, args) {\n if (!task) {\n task = this;\n }\n _numberOfNestedTaskFrames++;\n try {\n task.runCount++;\n return task.zone.runTask(task, target, args);\n }\n finally {\n if (_numberOfNestedTaskFrames == 1) {\n drainMicroTaskQueue();\n }\n _numberOfNestedTaskFrames--;\n }\n }\n get zone() {\n return this._zone;\n }\n get state() {\n return this._state;\n }\n cancelScheduleRequest() {\n this._transitionTo(notScheduled, scheduling);\n }\n // tslint:disable-next-line:require-internal-with-underscore\n _transitionTo(toState, fromState1, fromState2) {\n if (this._state === fromState1 || this._state === fromState2) {\n this._state = toState;\n if (toState == notScheduled) {\n this._zoneDelegates = null;\n }\n }\n else {\n throw new Error(`${this.type} '${this.source}': can not transition to '${toState}', expecting state '${fromState1}'${fromState2 ? ' or \\'' + fromState2 + '\\'' : ''}, was '${this._state}'.`);\n }\n }\n toString() {\n if (this.data && typeof this.data.handleId !== 'undefined') {\n return this.data.handleId.toString();\n }\n else {\n return Object.prototype.toString.call(this);\n }\n }\n // add toJSON method to prevent cyclic error when\n // call JSON.stringify(zoneTask)\n toJSON() {\n return {\n type: this.type,\n state: this.state,\n source: this.source,\n zone: this.zone.name,\n runCount: this.runCount\n };\n }\n }\n //////////////////////////////////////////////////////\n //////////////////////////////////////////////////////\n /// MICROTASK QUEUE\n //////////////////////////////////////////////////////\n //////////////////////////////////////////////////////\n const symbolSetTimeout = __symbol__('setTimeout');\n const symbolPromise = __symbol__('Promise');\n const symbolThen = __symbol__('then');\n let _microTaskQueue = [];\n let _isDrainingMicrotaskQueue = false;\n let nativeMicroTaskQueuePromise;\n function nativeScheduleMicroTask(func) {\n if (!nativeMicroTaskQueuePromise) {\n if (global[symbolPromise]) {\n nativeMicroTaskQueuePromise = global[symbolPromise].resolve(0);\n }\n }\n if (nativeMicroTaskQueuePromise) {\n let nativeThen = nativeMicroTaskQueuePromise[symbolThen];\n if (!nativeThen) {\n // native Promise is not patchable, we need to use `then` directly\n // issue 1078\n nativeThen = nativeMicroTaskQueuePromise['then'];\n }\n nativeThen.call(nativeMicroTaskQueuePromise, func);\n }\n else {\n global[symbolSetTimeout](func, 0);\n }\n }\n function scheduleMicroTask(task) {\n // if we are not running in any task, and there has not been anything scheduled\n // we must bootstrap the initial task creation by manually scheduling the drain\n if (_numberOfNestedTaskFrames === 0 && _microTaskQueue.length === 0) {\n // We are not running in Task, so we need to kickstart the microtask queue.\n nativeScheduleMicroTask(drainMicroTaskQueue);\n }\n task && _microTaskQueue.push(task);\n }\n function drainMicroTaskQueue() {\n if (!_isDrainingMicrotaskQueue) {\n _isDrainingMicrotaskQueue = true;\n while (_microTaskQueue.length) {\n const queue = _microTaskQueue;\n _microTaskQueue = [];\n for (let i = 0; i < queue.length; i++) {\n const task = queue[i];\n try {\n task.zone.runTask(task, null, null);\n }\n catch (error) {\n _api.onUnhandledError(error);\n }\n }\n }\n _api.microtaskDrainDone();\n _isDrainingMicrotaskQueue = false;\n }\n }\n //////////////////////////////////////////////////////\n //////////////////////////////////////////////////////\n /// BOOTSTRAP\n //////////////////////////////////////////////////////\n //////////////////////////////////////////////////////\n const NO_ZONE = { name: 'NO ZONE' };\n const notScheduled = 'notScheduled', scheduling = 'scheduling', scheduled = 'scheduled', running = 'running', canceling = 'canceling', unknown = 'unknown';\n const microTask = 'microTask', macroTask = 'macroTask', eventTask = 'eventTask';\n const patches = {};\n const _api = {\n symbol: __symbol__,\n currentZoneFrame: () => _currentZoneFrame,\n onUnhandledError: noop,\n microtaskDrainDone: noop,\n scheduleMicroTask: scheduleMicroTask,\n showUncaughtError: () => !Zone[__symbol__('ignoreConsoleErrorUncaughtError')],\n patchEventTarget: () => [],\n patchOnProperties: noop,\n patchMethod: () => noop,\n bindArguments: () => [],\n patchThen: () => noop,\n patchMacroTask: () => noop,\n patchEventPrototype: () => noop,\n isIEOrEdge: () => false,\n getGlobalObjects: () => undefined,\n ObjectDefineProperty: () => noop,\n ObjectGetOwnPropertyDescriptor: () => undefined,\n ObjectCreate: () => undefined,\n ArraySlice: () => [],\n patchClass: () => noop,\n wrapWithCurrentZone: () => noop,\n filterProperties: () => [],\n attachOriginToPatched: () => noop,\n _redefineProperty: () => noop,\n patchCallbacks: () => noop,\n nativeScheduleMicroTask: nativeScheduleMicroTask\n };\n let _currentZoneFrame = { parent: null, zone: new Zone(null, null) };\n let _currentTask = null;\n let _numberOfNestedTaskFrames = 0;\n function noop() { }\n performanceMeasure('Zone', 'Zone');\n return global['Zone'] = Zone;\n}))(typeof window !== 'undefined' && window || typeof self !== 'undefined' && self || global);\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Suppress closure compiler errors about unknown 'Zone' variable\n * @fileoverview\n * @suppress {undefinedVars,globalThis,missingRequire}\n */\n/// \n// issue #989, to reduce bundle size, use short name\n/** Object.getOwnPropertyDescriptor */\nconst ObjectGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n/** Object.defineProperty */\nconst ObjectDefineProperty = Object.defineProperty;\n/** Object.getPrototypeOf */\nconst ObjectGetPrototypeOf = Object.getPrototypeOf;\n/** Object.create */\nconst ObjectCreate = Object.create;\n/** Array.prototype.slice */\nconst ArraySlice = Array.prototype.slice;\n/** addEventListener string const */\nconst ADD_EVENT_LISTENER_STR = 'addEventListener';\n/** removeEventListener string const */\nconst REMOVE_EVENT_LISTENER_STR = 'removeEventListener';\n/** zoneSymbol addEventListener */\nconst ZONE_SYMBOL_ADD_EVENT_LISTENER = Zone.__symbol__(ADD_EVENT_LISTENER_STR);\n/** zoneSymbol removeEventListener */\nconst ZONE_SYMBOL_REMOVE_EVENT_LISTENER = Zone.__symbol__(REMOVE_EVENT_LISTENER_STR);\n/** true string const */\nconst TRUE_STR = 'true';\n/** false string const */\nconst FALSE_STR = 'false';\n/** Zone symbol prefix string const. */\nconst ZONE_SYMBOL_PREFIX = Zone.__symbol__('');\nfunction wrapWithCurrentZone(callback, source) {\n return Zone.current.wrap(callback, source);\n}\nfunction scheduleMacroTaskWithCurrentZone(source, callback, data, customSchedule, customCancel) {\n return Zone.current.scheduleMacroTask(source, callback, data, customSchedule, customCancel);\n}\nconst zoneSymbol = Zone.__symbol__;\nconst isWindowExists = typeof window !== 'undefined';\nconst internalWindow = isWindowExists ? window : undefined;\nconst _global = isWindowExists && internalWindow || typeof self === 'object' && self || global;\nconst REMOVE_ATTRIBUTE = 'removeAttribute';\nfunction bindArguments(args, source) {\n for (let i = args.length - 1; i >= 0; i--) {\n if (typeof args[i] === 'function') {\n args[i] = wrapWithCurrentZone(args[i], source + '_' + i);\n }\n }\n return args;\n}\nfunction patchPrototype(prototype, fnNames) {\n const source = prototype.constructor['name'];\n for (let i = 0; i < fnNames.length; i++) {\n const name = fnNames[i];\n const delegate = prototype[name];\n if (delegate) {\n const prototypeDesc = ObjectGetOwnPropertyDescriptor(prototype, name);\n if (!isPropertyWritable(prototypeDesc)) {\n continue;\n }\n prototype[name] = ((delegate) => {\n const patched = function () {\n return delegate.apply(this, bindArguments(arguments, source + '.' + name));\n };\n attachOriginToPatched(patched, delegate);\n return patched;\n })(delegate);\n }\n }\n}\nfunction isPropertyWritable(propertyDesc) {\n if (!propertyDesc) {\n return true;\n }\n if (propertyDesc.writable === false) {\n return false;\n }\n return !(typeof propertyDesc.get === 'function' && typeof propertyDesc.set === 'undefined');\n}\nconst isWebWorker = (typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope);\n// Make sure to access `process` through `_global` so that WebPack does not accidentally browserify\n// this code.\nconst isNode = (!('nw' in _global) && typeof _global.process !== 'undefined' &&\n {}.toString.call(_global.process) === '[object process]');\nconst isBrowser = !isNode && !isWebWorker && !!(isWindowExists && internalWindow['HTMLElement']);\n// we are in electron of nw, so we are both browser and nodejs\n// Make sure to access `process` through `_global` so that WebPack does not accidentally browserify\n// this code.\nconst isMix = typeof _global.process !== 'undefined' &&\n {}.toString.call(_global.process) === '[object process]' && !isWebWorker &&\n !!(isWindowExists && internalWindow['HTMLElement']);\nconst zoneSymbolEventNames$1 = {};\nconst wrapFn = function (event) {\n // https://github.com/angular/zone.js/issues/911, in IE, sometimes\n // event will be undefined, so we need to use window.event\n event = event || _global.event;\n if (!event) {\n return;\n }\n let eventNameSymbol = zoneSymbolEventNames$1[event.type];\n if (!eventNameSymbol) {\n eventNameSymbol = zoneSymbolEventNames$1[event.type] = zoneSymbol('ON_PROPERTY' + event.type);\n }\n const target = this || event.target || _global;\n const listener = target[eventNameSymbol];\n let result;\n if (isBrowser && target === internalWindow && event.type === 'error') {\n // window.onerror have different signature\n // https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/onerror#window.onerror\n // and onerror callback will prevent default when callback return true\n const errorEvent = event;\n result = listener &&\n listener.call(this, errorEvent.message, errorEvent.filename, errorEvent.lineno, errorEvent.colno, errorEvent.error);\n if (result === true) {\n event.preventDefault();\n }\n }\n else {\n result = listener && listener.apply(this, arguments);\n if (result != undefined && !result) {\n event.preventDefault();\n }\n }\n return result;\n};\nfunction patchProperty(obj, prop, prototype) {\n let desc = ObjectGetOwnPropertyDescriptor(obj, prop);\n if (!desc && prototype) {\n // when patch window object, use prototype to check prop exist or not\n const prototypeDesc = ObjectGetOwnPropertyDescriptor(prototype, prop);\n if (prototypeDesc) {\n desc = { enumerable: true, configurable: true };\n }\n }\n // if the descriptor not exists or is not configurable\n // just return\n if (!desc || !desc.configurable) {\n return;\n }\n const onPropPatchedSymbol = zoneSymbol('on' + prop + 'patched');\n if (obj.hasOwnProperty(onPropPatchedSymbol) && obj[onPropPatchedSymbol]) {\n return;\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 const originalDescGet = desc.get;\n const originalDescSet = desc.set;\n // slice(2) cuz 'onclick' -> 'click', etc\n const eventName = prop.slice(2);\n let eventNameSymbol = zoneSymbolEventNames$1[eventName];\n if (!eventNameSymbol) {\n eventNameSymbol = zoneSymbolEventNames$1[eventName] = zoneSymbol('ON_PROPERTY' + eventName);\n }\n desc.set = function (newValue) {\n // in some of windows's onproperty callback, this is undefined\n // so we need to check it\n let target = this;\n if (!target && obj === _global) {\n target = _global;\n }\n if (!target) {\n return;\n }\n const previousValue = target[eventNameSymbol];\n if (typeof previousValue === 'function') {\n target.removeEventListener(eventName, wrapFn);\n }\n // issue #978, when onload handler was added before loading zone.js\n // we should remove it with originalDescSet\n originalDescSet && originalDescSet.call(target, null);\n target[eventNameSymbol] = newValue;\n if (typeof newValue === 'function') {\n target.addEventListener(eventName, wrapFn, false);\n }\n };\n // The getter would return undefined for unassigned properties but the default value of an\n // unassigned property is null\n desc.get = function () {\n // in some of windows's onproperty callback, this is undefined\n // so we need to check it\n let target = this;\n if (!target && obj === _global) {\n target = _global;\n }\n if (!target) {\n return null;\n }\n const listener = target[eventNameSymbol];\n if (listener) {\n return listener;\n }\n else if (originalDescGet) {\n // result will be null when use inline event attribute,\n // such as \n // because the onclick function is internal raw uncompiled handler\n // the onclick will be evaluated when first time event was triggered or\n // the property is accessed, https://github.com/angular/zone.js/issues/525\n // so we should use original native get to retrieve the handler\n let value = originalDescGet.call(this);\n if (value) {\n desc.set.call(this, value);\n if (typeof target[REMOVE_ATTRIBUTE] === 'function') {\n target.removeAttribute(prop);\n }\n return value;\n }\n }\n return null;\n };\n ObjectDefineProperty(obj, prop, desc);\n obj[onPropPatchedSymbol] = true;\n}\nfunction patchOnProperties(obj, properties, prototype) {\n if (properties) {\n for (let i = 0; i < properties.length; i++) {\n patchProperty(obj, 'on' + properties[i], prototype);\n }\n }\n else {\n const onProperties = [];\n for (const prop in obj) {\n if (prop.slice(0, 2) == 'on') {\n onProperties.push(prop);\n }\n }\n for (let j = 0; j < onProperties.length; j++) {\n patchProperty(obj, onProperties[j], prototype);\n }\n }\n}\nconst originalInstanceKey = zoneSymbol('originalInstance');\n// wrap some native API on `window`\nfunction patchClass(className) {\n const OriginalClass = _global[className];\n if (!OriginalClass)\n return;\n // keep original class in global\n _global[zoneSymbol(className)] = OriginalClass;\n _global[className] = function () {\n const a = bindArguments(arguments, className);\n switch (a.length) {\n case 0:\n this[originalInstanceKey] = new OriginalClass();\n break;\n case 1:\n this[originalInstanceKey] = new OriginalClass(a[0]);\n break;\n case 2:\n this[originalInstanceKey] = new OriginalClass(a[0], a[1]);\n break;\n case 3:\n this[originalInstanceKey] = new OriginalClass(a[0], a[1], a[2]);\n break;\n case 4:\n this[originalInstanceKey] = new OriginalClass(a[0], a[1], a[2], a[3]);\n break;\n default:\n throw new Error('Arg list too long.');\n }\n };\n // attach original delegate to patched function\n attachOriginToPatched(_global[className], OriginalClass);\n const instance = new OriginalClass(function () { });\n let prop;\n for (prop in instance) {\n // https://bugs.webkit.org/show_bug.cgi?id=44721\n if (className === 'XMLHttpRequest' && prop === 'responseBlob')\n continue;\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 }\n else {\n ObjectDefineProperty(_global[className].prototype, prop, {\n set: function (fn) {\n if (typeof fn === 'function') {\n this[originalInstanceKey][prop] = wrapWithCurrentZone(fn, className + '.' + prop);\n // keep callback in wrapped function so we can\n // use it in Function.prototype.toString to return\n // the native one.\n attachOriginToPatched(this[originalInstanceKey][prop], fn);\n }\n else {\n this[originalInstanceKey][prop] = fn;\n }\n },\n get: function () {\n return this[originalInstanceKey][prop];\n }\n });\n }\n }(prop));\n }\n for (prop in OriginalClass) {\n if (prop !== 'prototype' && OriginalClass.hasOwnProperty(prop)) {\n _global[className][prop] = OriginalClass[prop];\n }\n }\n}\nfunction patchMethod(target, name, patchFn) {\n let proto = target;\n while (proto && !proto.hasOwnProperty(name)) {\n proto = ObjectGetPrototypeOf(proto);\n }\n if (!proto && target[name]) {\n // somehow we did not find it, but we can see it. This happens on IE for Window properties.\n proto = target;\n }\n const delegateName = zoneSymbol(name);\n let delegate = null;\n if (proto && (!(delegate = proto[delegateName]) || !proto.hasOwnProperty(delegateName))) {\n delegate = proto[delegateName] = proto[name];\n // check whether proto[name] is writable\n // some property is readonly in safari, such as HtmlCanvasElement.prototype.toBlob\n const desc = proto && ObjectGetOwnPropertyDescriptor(proto, name);\n if (isPropertyWritable(desc)) {\n const patchDelegate = patchFn(delegate, delegateName, name);\n proto[name] = function () {\n return patchDelegate(this, arguments);\n };\n attachOriginToPatched(proto[name], delegate);\n }\n }\n return delegate;\n}\n// TODO: @JiaLiPassion, support cancel task later if necessary\nfunction patchMacroTask(obj, funcName, metaCreator) {\n let setNative = null;\n function scheduleTask(task) {\n const data = task.data;\n data.args[data.cbIdx] = function () {\n task.invoke.apply(this, arguments);\n };\n setNative.apply(data.target, data.args);\n return task;\n }\n setNative = patchMethod(obj, funcName, (delegate) => function (self, args) {\n const meta = metaCreator(self, args);\n if (meta.cbIdx >= 0 && typeof args[meta.cbIdx] === 'function') {\n return scheduleMacroTaskWithCurrentZone(meta.name, args[meta.cbIdx], meta, scheduleTask);\n }\n else {\n // cause an error by calling it directly.\n return delegate.apply(self, args);\n }\n });\n}\nfunction attachOriginToPatched(patched, original) {\n patched[zoneSymbol('OriginalDelegate')] = original;\n}\nlet isDetectedIEOrEdge = false;\nlet ieOrEdge = false;\nfunction isIE() {\n try {\n const ua = internalWindow.navigator.userAgent;\n if (ua.indexOf('MSIE ') !== -1 || ua.indexOf('Trident/') !== -1) {\n return true;\n }\n }\n catch (error) {\n }\n return false;\n}\nfunction isIEOrEdge() {\n if (isDetectedIEOrEdge) {\n return ieOrEdge;\n }\n isDetectedIEOrEdge = true;\n try {\n const ua = internalWindow.navigator.userAgent;\n if (ua.indexOf('MSIE ') !== -1 || ua.indexOf('Trident/') !== -1 || ua.indexOf('Edge/') !== -1) {\n ieOrEdge = true;\n }\n }\n catch (error) {\n }\n return ieOrEdge;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nZone.__load_patch('ZoneAwarePromise', (global, Zone, api) => {\n const ObjectGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n const ObjectDefineProperty = Object.defineProperty;\n function readableObjectToString(obj) {\n if (obj && obj.toString === Object.prototype.toString) {\n const className = obj.constructor && obj.constructor.name;\n return (className ? className : '') + ': ' + JSON.stringify(obj);\n }\n return obj ? obj.toString() : Object.prototype.toString.call(obj);\n }\n const __symbol__ = api.symbol;\n const _uncaughtPromiseErrors = [];\n const isDisableWrappingUncaughtPromiseRejection = global[__symbol__('DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION')] === true;\n const symbolPromise = __symbol__('Promise');\n const symbolThen = __symbol__('then');\n const creationTrace = '__creationTrace__';\n api.onUnhandledError = (e) => {\n if (api.showUncaughtError()) {\n const rejection = e && e.rejection;\n if (rejection) {\n console.error('Unhandled Promise rejection:', rejection instanceof Error ? rejection.message : rejection, '; Zone:', e.zone.name, '; Task:', e.task && e.task.source, '; Value:', rejection, rejection instanceof Error ? rejection.stack : undefined);\n }\n else {\n console.error(e);\n }\n }\n };\n api.microtaskDrainDone = () => {\n while (_uncaughtPromiseErrors.length) {\n const uncaughtPromiseError = _uncaughtPromiseErrors.shift();\n try {\n uncaughtPromiseError.zone.runGuarded(() => {\n if (uncaughtPromiseError.throwOriginal) {\n throw uncaughtPromiseError.rejection;\n }\n throw uncaughtPromiseError;\n });\n }\n catch (error) {\n handleUnhandledRejection(error);\n }\n }\n };\n const UNHANDLED_PROMISE_REJECTION_HANDLER_SYMBOL = __symbol__('unhandledPromiseRejectionHandler');\n function handleUnhandledRejection(e) {\n api.onUnhandledError(e);\n try {\n const handler = Zone[UNHANDLED_PROMISE_REJECTION_HANDLER_SYMBOL];\n if (typeof handler === 'function') {\n handler.call(this, e);\n }\n }\n catch (err) {\n }\n }\n function isThenable(value) {\n return value && value.then;\n }\n function forwardResolution(value) {\n return value;\n }\n function forwardRejection(rejection) {\n return ZoneAwarePromise.reject(rejection);\n }\n const symbolState = __symbol__('state');\n const symbolValue = __symbol__('value');\n const symbolFinally = __symbol__('finally');\n const symbolParentPromiseValue = __symbol__('parentPromiseValue');\n const symbolParentPromiseState = __symbol__('parentPromiseState');\n const source = 'Promise.then';\n const UNRESOLVED = null;\n const RESOLVED = true;\n const REJECTED = false;\n const REJECTED_NO_CATCH = 0;\n function makeResolver(promise, state) {\n return (v) => {\n try {\n resolvePromise(promise, state, v);\n }\n catch (err) {\n resolvePromise(promise, false, err);\n }\n // Do not return value or you will break the Promise spec.\n };\n }\n const once = function () {\n let wasCalled = false;\n return function wrapper(wrappedFunction) {\n return function () {\n if (wasCalled) {\n return;\n }\n wasCalled = true;\n wrappedFunction.apply(null, arguments);\n };\n };\n };\n const TYPE_ERROR = 'Promise resolved with itself';\n const CURRENT_TASK_TRACE_SYMBOL = __symbol__('currentTaskTrace');\n // Promise Resolution\n function resolvePromise(promise, state, value) {\n const onceWrapper = once();\n if (promise === value) {\n throw new TypeError(TYPE_ERROR);\n }\n if (promise[symbolState] === UNRESOLVED) {\n // should only get value.then once based on promise spec.\n let then = null;\n try {\n if (typeof value === 'object' || typeof value === 'function') {\n then = value && value.then;\n }\n }\n catch (err) {\n onceWrapper(() => {\n resolvePromise(promise, false, err);\n })();\n return promise;\n }\n // if (value instanceof ZoneAwarePromise) {\n if (state !== REJECTED && value instanceof ZoneAwarePromise &&\n value.hasOwnProperty(symbolState) && value.hasOwnProperty(symbolValue) &&\n value[symbolState] !== UNRESOLVED) {\n clearRejectedNoCatch(value);\n resolvePromise(promise, value[symbolState], value[symbolValue]);\n }\n else if (state !== REJECTED && typeof then === 'function') {\n try {\n then.call(value, onceWrapper(makeResolver(promise, state)), onceWrapper(makeResolver(promise, false)));\n }\n catch (err) {\n onceWrapper(() => {\n resolvePromise(promise, false, err);\n })();\n }\n }\n else {\n promise[symbolState] = state;\n const queue = promise[symbolValue];\n promise[symbolValue] = value;\n if (promise[symbolFinally] === symbolFinally) {\n // the promise is generated by Promise.prototype.finally\n if (state === RESOLVED) {\n // the state is resolved, should ignore the value\n // and use parent promise value\n promise[symbolState] = promise[symbolParentPromiseState];\n promise[symbolValue] = promise[symbolParentPromiseValue];\n }\n }\n // record task information in value when error occurs, so we can\n // do some additional work such as render longStackTrace\n if (state === REJECTED && value instanceof Error) {\n // check if longStackTraceZone is here\n const trace = Zone.currentTask && Zone.currentTask.data &&\n Zone.currentTask.data[creationTrace];\n if (trace) {\n // only keep the long stack trace into error when in longStackTraceZone\n ObjectDefineProperty(value, CURRENT_TASK_TRACE_SYMBOL, { configurable: true, enumerable: false, writable: true, value: trace });\n }\n }\n for (let i = 0; i < queue.length;) {\n scheduleResolveOrReject(promise, queue[i++], queue[i++], queue[i++], queue[i++]);\n }\n if (queue.length == 0 && state == REJECTED) {\n promise[symbolState] = REJECTED_NO_CATCH;\n let uncaughtPromiseError = value;\n try {\n // Here we throws a new Error to print more readable error log\n // and if the value is not an error, zone.js builds an `Error`\n // Object here to attach the stack information.\n throw new Error('Uncaught (in promise): ' + readableObjectToString(value) +\n (value && value.stack ? '\\n' + value.stack : ''));\n }\n catch (err) {\n uncaughtPromiseError = err;\n }\n if (isDisableWrappingUncaughtPromiseRejection) {\n // If disable wrapping uncaught promise reject\n // use the value instead of wrapping it.\n uncaughtPromiseError.throwOriginal = true;\n }\n uncaughtPromiseError.rejection = value;\n uncaughtPromiseError.promise = promise;\n uncaughtPromiseError.zone = Zone.current;\n uncaughtPromiseError.task = Zone.currentTask;\n _uncaughtPromiseErrors.push(uncaughtPromiseError);\n api.scheduleMicroTask(); // to make sure that it is running\n }\n }\n }\n // Resolving an already resolved promise is a noop.\n return promise;\n }\n const REJECTION_HANDLED_HANDLER = __symbol__('rejectionHandledHandler');\n function clearRejectedNoCatch(promise) {\n if (promise[symbolState] === REJECTED_NO_CATCH) {\n // if the promise is rejected no catch status\n // and queue.length > 0, means there is a error handler\n // here to handle the rejected promise, we should trigger\n // windows.rejectionhandled eventHandler or nodejs rejectionHandled\n // eventHandler\n try {\n const handler = Zone[REJECTION_HANDLED_HANDLER];\n if (handler && typeof handler === 'function') {\n handler.call(this, { rejection: promise[symbolValue], promise: promise });\n }\n }\n catch (err) {\n }\n promise[symbolState] = REJECTED;\n for (let i = 0; i < _uncaughtPromiseErrors.length; i++) {\n if (promise === _uncaughtPromiseErrors[i].promise) {\n _uncaughtPromiseErrors.splice(i, 1);\n }\n }\n }\n }\n function scheduleResolveOrReject(promise, zone, chainPromise, onFulfilled, onRejected) {\n clearRejectedNoCatch(promise);\n const promiseState = promise[symbolState];\n const delegate = promiseState ?\n (typeof onFulfilled === 'function') ? onFulfilled : forwardResolution :\n (typeof onRejected === 'function') ? onRejected :\n forwardRejection;\n zone.scheduleMicroTask(source, () => {\n try {\n const parentPromiseValue = promise[symbolValue];\n const isFinallyPromise = !!chainPromise && symbolFinally === chainPromise[symbolFinally];\n if (isFinallyPromise) {\n // if the promise is generated from finally call, keep parent promise's state and value\n chainPromise[symbolParentPromiseValue] = parentPromiseValue;\n chainPromise[symbolParentPromiseState] = promiseState;\n }\n // should not pass value to finally callback\n const value = zone.run(delegate, undefined, isFinallyPromise && delegate !== forwardRejection && delegate !== forwardResolution ?\n [] :\n [parentPromiseValue]);\n resolvePromise(chainPromise, true, value);\n }\n catch (error) {\n // if error occurs, should always return this error\n resolvePromise(chainPromise, false, error);\n }\n }, chainPromise);\n }\n const ZONE_AWARE_PROMISE_TO_STRING = 'function ZoneAwarePromise() { [native code] }';\n const noop = function () { };\n const AggregateError = global.AggregateError;\n class ZoneAwarePromise {\n static toString() {\n return ZONE_AWARE_PROMISE_TO_STRING;\n }\n static resolve(value) {\n return resolvePromise(new this(null), RESOLVED, value);\n }\n static reject(error) {\n return resolvePromise(new this(null), REJECTED, error);\n }\n static any(values) {\n if (!values || typeof values[Symbol.iterator] !== 'function') {\n return Promise.reject(new AggregateError([], 'All promises were rejected'));\n }\n const promises = [];\n let count = 0;\n try {\n for (let v of values) {\n count++;\n promises.push(ZoneAwarePromise.resolve(v));\n }\n }\n catch (err) {\n return Promise.reject(new AggregateError([], 'All promises were rejected'));\n }\n if (count === 0) {\n return Promise.reject(new AggregateError([], 'All promises were rejected'));\n }\n let finished = false;\n const errors = [];\n return new ZoneAwarePromise((resolve, reject) => {\n for (let i = 0; i < promises.length; i++) {\n promises[i].then(v => {\n if (finished) {\n return;\n }\n finished = true;\n resolve(v);\n }, err => {\n errors.push(err);\n count--;\n if (count === 0) {\n finished = true;\n reject(new AggregateError(errors, 'All promises were rejected'));\n }\n });\n }\n });\n }\n ;\n static race(values) {\n let resolve;\n let reject;\n let promise = new this((res, rej) => {\n resolve = res;\n reject = rej;\n });\n function onResolve(value) {\n resolve(value);\n }\n function onReject(error) {\n reject(error);\n }\n for (let value of values) {\n if (!isThenable(value)) {\n value = this.resolve(value);\n }\n value.then(onResolve, onReject);\n }\n return promise;\n }\n static all(values) {\n return ZoneAwarePromise.allWithCallback(values);\n }\n static allSettled(values) {\n const P = this && this.prototype instanceof ZoneAwarePromise ? this : ZoneAwarePromise;\n return P.allWithCallback(values, {\n thenCallback: (value) => ({ status: 'fulfilled', value }),\n errorCallback: (err) => ({ status: 'rejected', reason: err })\n });\n }\n static allWithCallback(values, callback) {\n let resolve;\n let reject;\n let promise = new this((res, rej) => {\n resolve = res;\n reject = rej;\n });\n // Start at 2 to prevent prematurely resolving if .then is called immediately.\n let unresolvedCount = 2;\n let valueIndex = 0;\n const resolvedValues = [];\n for (let value of values) {\n if (!isThenable(value)) {\n value = this.resolve(value);\n }\n const curValueIndex = valueIndex;\n try {\n value.then((value) => {\n resolvedValues[curValueIndex] = callback ? callback.thenCallback(value) : value;\n unresolvedCount--;\n if (unresolvedCount === 0) {\n resolve(resolvedValues);\n }\n }, (err) => {\n if (!callback) {\n reject(err);\n }\n else {\n resolvedValues[curValueIndex] = callback.errorCallback(err);\n unresolvedCount--;\n if (unresolvedCount === 0) {\n resolve(resolvedValues);\n }\n }\n });\n }\n catch (thenErr) {\n reject(thenErr);\n }\n unresolvedCount++;\n valueIndex++;\n }\n // Make the unresolvedCount zero-based again.\n unresolvedCount -= 2;\n if (unresolvedCount === 0) {\n resolve(resolvedValues);\n }\n return promise;\n }\n constructor(executor) {\n const promise = this;\n if (!(promise instanceof ZoneAwarePromise)) {\n throw new Error('Must be an instanceof Promise.');\n }\n promise[symbolState] = UNRESOLVED;\n promise[symbolValue] = []; // queue;\n try {\n const onceWrapper = once();\n executor &&\n executor(onceWrapper(makeResolver(promise, RESOLVED)), onceWrapper(makeResolver(promise, REJECTED)));\n }\n catch (error) {\n resolvePromise(promise, false, error);\n }\n }\n get [Symbol.toStringTag]() {\n return 'Promise';\n }\n get [Symbol.species]() {\n return ZoneAwarePromise;\n }\n then(onFulfilled, onRejected) {\n var _a;\n // We must read `Symbol.species` safely because `this` may be anything. For instance, `this`\n // may be an object without a prototype (created through `Object.create(null)`); thus\n // `this.constructor` will be undefined. One of the use cases is SystemJS creating\n // prototype-less objects (modules) via `Object.create(null)`. The SystemJS creates an empty\n // object and copies promise properties into that object (within the `getOrCreateLoad`\n // function). The zone.js then checks if the resolved value has the `then` method and invokes\n // it with the `value` context. Otherwise, this will throw an error: `TypeError: Cannot read\n // properties of undefined (reading 'Symbol(Symbol.species)')`.\n let C = (_a = this.constructor) === null || _a === void 0 ? void 0 : _a[Symbol.species];\n if (!C || typeof C !== 'function') {\n C = this.constructor || ZoneAwarePromise;\n }\n const chainPromise = new C(noop);\n const zone = Zone.current;\n if (this[symbolState] == UNRESOLVED) {\n this[symbolValue].push(zone, chainPromise, onFulfilled, onRejected);\n }\n else {\n scheduleResolveOrReject(this, zone, chainPromise, onFulfilled, onRejected);\n }\n return chainPromise;\n }\n catch(onRejected) {\n return this.then(null, onRejected);\n }\n finally(onFinally) {\n var _a;\n // See comment on the call to `then` about why thee `Symbol.species` is safely accessed.\n let C = (_a = this.constructor) === null || _a === void 0 ? void 0 : _a[Symbol.species];\n if (!C || typeof C !== 'function') {\n C = ZoneAwarePromise;\n }\n const chainPromise = new C(noop);\n chainPromise[symbolFinally] = symbolFinally;\n const zone = Zone.current;\n if (this[symbolState] == UNRESOLVED) {\n this[symbolValue].push(zone, chainPromise, onFinally, onFinally);\n }\n else {\n scheduleResolveOrReject(this, zone, chainPromise, onFinally, onFinally);\n }\n return chainPromise;\n }\n }\n // Protect against aggressive optimizers dropping seemingly unused properties.\n // E.g. Closure Compiler in advanced mode.\n ZoneAwarePromise['resolve'] = ZoneAwarePromise.resolve;\n ZoneAwarePromise['reject'] = ZoneAwarePromise.reject;\n ZoneAwarePromise['race'] = ZoneAwarePromise.race;\n ZoneAwarePromise['all'] = ZoneAwarePromise.all;\n const NativePromise = global[symbolPromise] = global['Promise'];\n global['Promise'] = ZoneAwarePromise;\n const symbolThenPatched = __symbol__('thenPatched');\n function patchThen(Ctor) {\n const proto = Ctor.prototype;\n const prop = ObjectGetOwnPropertyDescriptor(proto, 'then');\n if (prop && (prop.writable === false || !prop.configurable)) {\n // check Ctor.prototype.then propertyDescriptor is writable or not\n // in meteor env, writable is false, we should ignore such case\n return;\n }\n const originalThen = proto.then;\n // Keep a reference to the original method.\n proto[symbolThen] = originalThen;\n Ctor.prototype.then = function (onResolve, onReject) {\n const wrapped = new ZoneAwarePromise((resolve, reject) => {\n originalThen.call(this, resolve, reject);\n });\n return wrapped.then(onResolve, onReject);\n };\n Ctor[symbolThenPatched] = true;\n }\n api.patchThen = patchThen;\n function zoneify(fn) {\n return function (self, args) {\n let resultPromise = fn.apply(self, args);\n if (resultPromise instanceof ZoneAwarePromise) {\n return resultPromise;\n }\n let ctor = resultPromise.constructor;\n if (!ctor[symbolThenPatched]) {\n patchThen(ctor);\n }\n return resultPromise;\n };\n }\n if (NativePromise) {\n patchThen(NativePromise);\n patchMethod(global, 'fetch', delegate => zoneify(delegate));\n }\n // This is not part of public API, but it is useful for tests, so we expose it.\n Promise[Zone.__symbol__('uncaughtPromiseErrors')] = _uncaughtPromiseErrors;\n return ZoneAwarePromise;\n});\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n// override Function.prototype.toString to make zone.js patched function\n// look like native function\nZone.__load_patch('toString', (global) => {\n // patch Func.prototype.toString to let them look like native\n const originalFunctionToString = Function.prototype.toString;\n const ORIGINAL_DELEGATE_SYMBOL = zoneSymbol('OriginalDelegate');\n const PROMISE_SYMBOL = zoneSymbol('Promise');\n const ERROR_SYMBOL = zoneSymbol('Error');\n const newFunctionToString = function toString() {\n if (typeof this === 'function') {\n const originalDelegate = this[ORIGINAL_DELEGATE_SYMBOL];\n if (originalDelegate) {\n if (typeof originalDelegate === 'function') {\n return originalFunctionToString.call(originalDelegate);\n }\n else {\n return Object.prototype.toString.call(originalDelegate);\n }\n }\n if (this === Promise) {\n const nativePromise = global[PROMISE_SYMBOL];\n if (nativePromise) {\n return originalFunctionToString.call(nativePromise);\n }\n }\n if (this === Error) {\n const nativeError = global[ERROR_SYMBOL];\n if (nativeError) {\n return originalFunctionToString.call(nativeError);\n }\n }\n }\n return originalFunctionToString.call(this);\n };\n newFunctionToString[ORIGINAL_DELEGATE_SYMBOL] = originalFunctionToString;\n Function.prototype.toString = newFunctionToString;\n // patch Object.prototype.toString to let them look like native\n const originalObjectToString = Object.prototype.toString;\n const PROMISE_OBJECT_TO_STRING = '[object Promise]';\n Object.prototype.toString = function () {\n if (typeof Promise === 'function' && this instanceof Promise) {\n return PROMISE_OBJECT_TO_STRING;\n }\n return originalObjectToString.call(this);\n };\n});\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nlet passiveSupported = false;\nif (typeof window !== 'undefined') {\n try {\n const options = Object.defineProperty({}, 'passive', {\n get: function () {\n passiveSupported = true;\n }\n });\n // Note: We pass the `options` object as the event handler too. This is not compatible with the\n // signature of `addEventListener` or `removeEventListener` but enables us to remove the handler\n // without an actual handler.\n window.addEventListener('test', options, options);\n window.removeEventListener('test', options, options);\n }\n catch (err) {\n passiveSupported = false;\n }\n}\n// an identifier to tell ZoneTask do not create a new invoke closure\nconst OPTIMIZED_ZONE_EVENT_TASK_DATA = {\n useG: true\n};\nconst zoneSymbolEventNames = {};\nconst globalSources = {};\nconst EVENT_NAME_SYMBOL_REGX = new RegExp('^' + ZONE_SYMBOL_PREFIX + '(\\\\w+)(true|false)$');\nconst IMMEDIATE_PROPAGATION_SYMBOL = zoneSymbol('propagationStopped');\nfunction prepareEventNames(eventName, eventNameToString) {\n const falseEventName = (eventNameToString ? eventNameToString(eventName) : eventName) + FALSE_STR;\n const trueEventName = (eventNameToString ? eventNameToString(eventName) : eventName) + TRUE_STR;\n const symbol = ZONE_SYMBOL_PREFIX + falseEventName;\n const symbolCapture = ZONE_SYMBOL_PREFIX + trueEventName;\n zoneSymbolEventNames[eventName] = {};\n zoneSymbolEventNames[eventName][FALSE_STR] = symbol;\n zoneSymbolEventNames[eventName][TRUE_STR] = symbolCapture;\n}\nfunction patchEventTarget(_global, api, apis, patchOptions) {\n const ADD_EVENT_LISTENER = (patchOptions && patchOptions.add) || ADD_EVENT_LISTENER_STR;\n const REMOVE_EVENT_LISTENER = (patchOptions && patchOptions.rm) || REMOVE_EVENT_LISTENER_STR;\n const LISTENERS_EVENT_LISTENER = (patchOptions && patchOptions.listeners) || 'eventListeners';\n const REMOVE_ALL_LISTENERS_EVENT_LISTENER = (patchOptions && patchOptions.rmAll) || 'removeAllListeners';\n const zoneSymbolAddEventListener = zoneSymbol(ADD_EVENT_LISTENER);\n const ADD_EVENT_LISTENER_SOURCE = '.' + ADD_EVENT_LISTENER + ':';\n const PREPEND_EVENT_LISTENER = 'prependListener';\n const PREPEND_EVENT_LISTENER_SOURCE = '.' + PREPEND_EVENT_LISTENER + ':';\n const invokeTask = function (task, target, event) {\n // for better performance, check isRemoved which is set\n // by removeEventListener\n if (task.isRemoved) {\n return;\n }\n const delegate = task.callback;\n if (typeof delegate === 'object' && delegate.handleEvent) {\n // create the bind version of handleEvent when invoke\n task.callback = (event) => delegate.handleEvent(event);\n task.originalDelegate = delegate;\n }\n // invoke static task.invoke\n // need to try/catch error here, otherwise, the error in one event listener\n // will break the executions of the other event listeners. Also error will\n // not remove the event listener when `once` options is true.\n let error;\n try {\n task.invoke(task, target, [event]);\n }\n catch (err) {\n error = err;\n }\n const options = task.options;\n if (options && typeof options === 'object' && options.once) {\n // if options.once is true, after invoke once remove listener here\n // only browser need to do this, nodejs eventEmitter will cal removeListener\n // inside EventEmitter.once\n const delegate = task.originalDelegate ? task.originalDelegate : task.callback;\n target[REMOVE_EVENT_LISTENER].call(target, event.type, delegate, options);\n }\n return error;\n };\n function globalCallback(context, event, isCapture) {\n // https://github.com/angular/zone.js/issues/911, in IE, sometimes\n // event will be undefined, so we need to use window.event\n event = event || _global.event;\n if (!event) {\n return;\n }\n // event.target is needed for Samsung TV and SourceBuffer\n // || global is needed https://github.com/angular/zone.js/issues/190\n const target = context || event.target || _global;\n const tasks = target[zoneSymbolEventNames[event.type][isCapture ? TRUE_STR : FALSE_STR]];\n if (tasks) {\n const errors = [];\n // invoke all tasks which attached to current target with given event.type and capture = false\n // for performance concern, if task.length === 1, just invoke\n if (tasks.length === 1) {\n const err = invokeTask(tasks[0], target, event);\n err && errors.push(err);\n }\n else {\n // https://github.com/angular/zone.js/issues/836\n // copy the tasks array before invoke, to avoid\n // the callback will remove itself or other listener\n const copyTasks = tasks.slice();\n for (let i = 0; i < copyTasks.length; i++) {\n if (event && event[IMMEDIATE_PROPAGATION_SYMBOL] === true) {\n break;\n }\n const err = invokeTask(copyTasks[i], target, event);\n err && errors.push(err);\n }\n }\n // Since there is only one error, we don't need to schedule microTask\n // to throw the error.\n if (errors.length === 1) {\n throw errors[0];\n }\n else {\n for (let i = 0; i < errors.length; i++) {\n const err = errors[i];\n api.nativeScheduleMicroTask(() => {\n throw err;\n });\n }\n }\n }\n }\n // global shared zoneAwareCallback to handle all event callback with capture = false\n const globalZoneAwareCallback = function (event) {\n return globalCallback(this, event, false);\n };\n // global shared zoneAwareCallback to handle all event callback with capture = true\n const globalZoneAwareCaptureCallback = function (event) {\n return globalCallback(this, event, true);\n };\n function patchEventTargetMethods(obj, patchOptions) {\n if (!obj) {\n return false;\n }\n let useGlobalCallback = true;\n if (patchOptions && patchOptions.useG !== undefined) {\n useGlobalCallback = patchOptions.useG;\n }\n const validateHandler = patchOptions && patchOptions.vh;\n let checkDuplicate = true;\n if (patchOptions && patchOptions.chkDup !== undefined) {\n checkDuplicate = patchOptions.chkDup;\n }\n let returnTarget = false;\n if (patchOptions && patchOptions.rt !== undefined) {\n returnTarget = patchOptions.rt;\n }\n let proto = obj;\n while (proto && !proto.hasOwnProperty(ADD_EVENT_LISTENER)) {\n proto = ObjectGetPrototypeOf(proto);\n }\n if (!proto && obj[ADD_EVENT_LISTENER]) {\n // somehow we did not find it, but we can see it. This happens on IE for Window properties.\n proto = obj;\n }\n if (!proto) {\n return false;\n }\n if (proto[zoneSymbolAddEventListener]) {\n return false;\n }\n const eventNameToString = patchOptions && patchOptions.eventNameToString;\n // a shared global taskData to pass data for scheduleEventTask\n // so we do not need to create a new object just for pass some data\n const taskData = {};\n const nativeAddEventListener = proto[zoneSymbolAddEventListener] = proto[ADD_EVENT_LISTENER];\n const nativeRemoveEventListener = proto[zoneSymbol(REMOVE_EVENT_LISTENER)] =\n proto[REMOVE_EVENT_LISTENER];\n const nativeListeners = proto[zoneSymbol(LISTENERS_EVENT_LISTENER)] =\n proto[LISTENERS_EVENT_LISTENER];\n const nativeRemoveAllListeners = proto[zoneSymbol(REMOVE_ALL_LISTENERS_EVENT_LISTENER)] =\n proto[REMOVE_ALL_LISTENERS_EVENT_LISTENER];\n let nativePrependEventListener;\n if (patchOptions && patchOptions.prepend) {\n nativePrependEventListener = proto[zoneSymbol(patchOptions.prepend)] =\n proto[patchOptions.prepend];\n }\n /**\n * This util function will build an option object with passive option\n * to handle all possible input from the user.\n */\n function buildEventListenerOptions(options, passive) {\n if (!passiveSupported && typeof options === 'object' && options) {\n // doesn't support passive but user want to pass an object as options.\n // this will not work on some old browser, so we just pass a boolean\n // as useCapture parameter\n return !!options.capture;\n }\n if (!passiveSupported || !passive) {\n return options;\n }\n if (typeof options === 'boolean') {\n return { capture: options, passive: true };\n }\n if (!options) {\n return { passive: true };\n }\n if (typeof options === 'object' && options.passive !== false) {\n return Object.assign(Object.assign({}, options), { passive: true });\n }\n return options;\n }\n const customScheduleGlobal = function (task) {\n // if there is already a task for the eventName + capture,\n // just return, because we use the shared globalZoneAwareCallback here.\n if (taskData.isExisting) {\n return;\n }\n return nativeAddEventListener.call(taskData.target, taskData.eventName, taskData.capture ? globalZoneAwareCaptureCallback : globalZoneAwareCallback, taskData.options);\n };\n const customCancelGlobal = function (task) {\n // if task is not marked as isRemoved, this call is directly\n // from Zone.prototype.cancelTask, we should remove the task\n // from tasksList of target first\n if (!task.isRemoved) {\n const symbolEventNames = zoneSymbolEventNames[task.eventName];\n let symbolEventName;\n if (symbolEventNames) {\n symbolEventName = symbolEventNames[task.capture ? TRUE_STR : FALSE_STR];\n }\n const existingTasks = symbolEventName && task.target[symbolEventName];\n if (existingTasks) {\n for (let i = 0; i < existingTasks.length; i++) {\n const existingTask = existingTasks[i];\n if (existingTask === task) {\n existingTasks.splice(i, 1);\n // set isRemoved to data for faster invokeTask check\n task.isRemoved = true;\n if (existingTasks.length === 0) {\n // all tasks for the eventName + capture have gone,\n // remove globalZoneAwareCallback and remove the task cache from target\n task.allRemoved = true;\n task.target[symbolEventName] = null;\n }\n break;\n }\n }\n }\n }\n // if all tasks for the eventName + capture have gone,\n // we will really remove the global event callback,\n // if not, return\n if (!task.allRemoved) {\n return;\n }\n return nativeRemoveEventListener.call(task.target, task.eventName, task.capture ? globalZoneAwareCaptureCallback : globalZoneAwareCallback, task.options);\n };\n const customScheduleNonGlobal = function (task) {\n return nativeAddEventListener.call(taskData.target, taskData.eventName, task.invoke, taskData.options);\n };\n const customSchedulePrepend = function (task) {\n return nativePrependEventListener.call(taskData.target, taskData.eventName, task.invoke, taskData.options);\n };\n const customCancelNonGlobal = function (task) {\n return nativeRemoveEventListener.call(task.target, task.eventName, task.invoke, task.options);\n };\n const customSchedule = useGlobalCallback ? customScheduleGlobal : customScheduleNonGlobal;\n const customCancel = useGlobalCallback ? customCancelGlobal : customCancelNonGlobal;\n const compareTaskCallbackVsDelegate = function (task, delegate) {\n const typeOfDelegate = typeof delegate;\n return (typeOfDelegate === 'function' && task.callback === delegate) ||\n (typeOfDelegate === 'object' && task.originalDelegate === delegate);\n };\n const compare = (patchOptions && patchOptions.diff) ? patchOptions.diff : compareTaskCallbackVsDelegate;\n const unpatchedEvents = Zone[zoneSymbol('UNPATCHED_EVENTS')];\n const passiveEvents = _global[zoneSymbol('PASSIVE_EVENTS')];\n const makeAddListener = function (nativeListener, addSource, customScheduleFn, customCancelFn, returnTarget = false, prepend = false) {\n return function () {\n const target = this || _global;\n let eventName = arguments[0];\n if (patchOptions && patchOptions.transferEventName) {\n eventName = patchOptions.transferEventName(eventName);\n }\n let delegate = arguments[1];\n if (!delegate) {\n return nativeListener.apply(this, arguments);\n }\n if (isNode && eventName === 'uncaughtException') {\n // don't patch uncaughtException of nodejs to prevent endless loop\n return nativeListener.apply(this, arguments);\n }\n // don't create the bind delegate function for handleEvent\n // case here to improve addEventListener performance\n // we will create the bind delegate when invoke\n let isHandleEvent = false;\n if (typeof delegate !== 'function') {\n if (!delegate.handleEvent) {\n return nativeListener.apply(this, arguments);\n }\n isHandleEvent = true;\n }\n if (validateHandler && !validateHandler(nativeListener, delegate, target, arguments)) {\n return;\n }\n const passive = passiveSupported && !!passiveEvents && passiveEvents.indexOf(eventName) !== -1;\n const options = buildEventListenerOptions(arguments[2], passive);\n if (unpatchedEvents) {\n // check unpatched list\n for (let i = 0; i < unpatchedEvents.length; i++) {\n if (eventName === unpatchedEvents[i]) {\n if (passive) {\n return nativeListener.call(target, eventName, delegate, options);\n }\n else {\n return nativeListener.apply(this, arguments);\n }\n }\n }\n }\n const capture = !options ? false : typeof options === 'boolean' ? true : options.capture;\n const once = options && typeof options === 'object' ? options.once : false;\n const zone = Zone.current;\n let symbolEventNames = zoneSymbolEventNames[eventName];\n if (!symbolEventNames) {\n prepareEventNames(eventName, eventNameToString);\n symbolEventNames = zoneSymbolEventNames[eventName];\n }\n const symbolEventName = symbolEventNames[capture ? TRUE_STR : FALSE_STR];\n let existingTasks = target[symbolEventName];\n let isExisting = false;\n if (existingTasks) {\n // already have task registered\n isExisting = true;\n if (checkDuplicate) {\n for (let i = 0; i < existingTasks.length; i++) {\n if (compare(existingTasks[i], delegate)) {\n // same callback, same capture, same event name, just return\n return;\n }\n }\n }\n }\n else {\n existingTasks = target[symbolEventName] = [];\n }\n let source;\n const constructorName = target.constructor['name'];\n const targetSource = globalSources[constructorName];\n if (targetSource) {\n source = targetSource[eventName];\n }\n if (!source) {\n source = constructorName + addSource +\n (eventNameToString ? eventNameToString(eventName) : eventName);\n }\n // do not create a new object as task.data to pass those things\n // just use the global shared one\n taskData.options = options;\n if (once) {\n // if addEventListener with once options, we don't pass it to\n // native addEventListener, instead we keep the once setting\n // and handle ourselves.\n taskData.options.once = false;\n }\n taskData.target = target;\n taskData.capture = capture;\n taskData.eventName = eventName;\n taskData.isExisting = isExisting;\n const data = useGlobalCallback ? OPTIMIZED_ZONE_EVENT_TASK_DATA : undefined;\n // keep taskData into data to allow onScheduleEventTask to access the task information\n if (data) {\n data.taskData = taskData;\n }\n const task = zone.scheduleEventTask(source, delegate, data, customScheduleFn, customCancelFn);\n // should clear taskData.target to avoid memory leak\n // issue, https://github.com/angular/angular/issues/20442\n taskData.target = null;\n // need to clear up taskData because it is a global object\n if (data) {\n data.taskData = null;\n }\n // have to save those information to task in case\n // application may call task.zone.cancelTask() directly\n if (once) {\n options.once = true;\n }\n if (!(!passiveSupported && typeof task.options === 'boolean')) {\n // if not support passive, and we pass an option object\n // to addEventListener, we should save the options to task\n task.options = options;\n }\n task.target = target;\n task.capture = capture;\n task.eventName = eventName;\n if (isHandleEvent) {\n // save original delegate for compare to check duplicate\n task.originalDelegate = delegate;\n }\n if (!prepend) {\n existingTasks.push(task);\n }\n else {\n existingTasks.unshift(task);\n }\n if (returnTarget) {\n return target;\n }\n };\n };\n proto[ADD_EVENT_LISTENER] = makeAddListener(nativeAddEventListener, ADD_EVENT_LISTENER_SOURCE, customSchedule, customCancel, returnTarget);\n if (nativePrependEventListener) {\n proto[PREPEND_EVENT_LISTENER] = makeAddListener(nativePrependEventListener, PREPEND_EVENT_LISTENER_SOURCE, customSchedulePrepend, customCancel, returnTarget, true);\n }\n proto[REMOVE_EVENT_LISTENER] = function () {\n const target = this || _global;\n let eventName = arguments[0];\n if (patchOptions && patchOptions.transferEventName) {\n eventName = patchOptions.transferEventName(eventName);\n }\n const options = arguments[2];\n const capture = !options ? false : typeof options === 'boolean' ? true : options.capture;\n const delegate = arguments[1];\n if (!delegate) {\n return nativeRemoveEventListener.apply(this, arguments);\n }\n if (validateHandler &&\n !validateHandler(nativeRemoveEventListener, delegate, target, arguments)) {\n return;\n }\n const symbolEventNames = zoneSymbolEventNames[eventName];\n let symbolEventName;\n if (symbolEventNames) {\n symbolEventName = symbolEventNames[capture ? TRUE_STR : FALSE_STR];\n }\n const existingTasks = symbolEventName && target[symbolEventName];\n if (existingTasks) {\n for (let i = 0; i < existingTasks.length; i++) {\n const existingTask = existingTasks[i];\n if (compare(existingTask, delegate)) {\n existingTasks.splice(i, 1);\n // set isRemoved to data for faster invokeTask check\n existingTask.isRemoved = true;\n if (existingTasks.length === 0) {\n // all tasks for the eventName + capture have gone,\n // remove globalZoneAwareCallback and remove the task cache from target\n existingTask.allRemoved = true;\n target[symbolEventName] = null;\n // in the target, we have an event listener which is added by on_property\n // such as target.onclick = function() {}, so we need to clear this internal\n // property too if all delegates all removed\n if (typeof eventName === 'string') {\n const onPropertySymbol = ZONE_SYMBOL_PREFIX + 'ON_PROPERTY' + eventName;\n target[onPropertySymbol] = null;\n }\n }\n existingTask.zone.cancelTask(existingTask);\n if (returnTarget) {\n return target;\n }\n return;\n }\n }\n }\n // issue 930, didn't find the event name or callback\n // from zone kept existingTasks, the callback maybe\n // added outside of zone, we need to call native removeEventListener\n // to try to remove it.\n return nativeRemoveEventListener.apply(this, arguments);\n };\n proto[LISTENERS_EVENT_LISTENER] = function () {\n const target = this || _global;\n let eventName = arguments[0];\n if (patchOptions && patchOptions.transferEventName) {\n eventName = patchOptions.transferEventName(eventName);\n }\n const listeners = [];\n const tasks = findEventTasks(target, eventNameToString ? eventNameToString(eventName) : eventName);\n for (let i = 0; i < tasks.length; i++) {\n const task = tasks[i];\n let delegate = task.originalDelegate ? task.originalDelegate : task.callback;\n listeners.push(delegate);\n }\n return listeners;\n };\n proto[REMOVE_ALL_LISTENERS_EVENT_LISTENER] = function () {\n const target = this || _global;\n let eventName = arguments[0];\n if (!eventName) {\n const keys = Object.keys(target);\n for (let i = 0; i < keys.length; i++) {\n const prop = keys[i];\n const match = EVENT_NAME_SYMBOL_REGX.exec(prop);\n let evtName = match && match[1];\n // in nodejs EventEmitter, removeListener event is\n // used for monitoring the removeListener call,\n // so just keep removeListener eventListener until\n // all other eventListeners are removed\n if (evtName && evtName !== 'removeListener') {\n this[REMOVE_ALL_LISTENERS_EVENT_LISTENER].call(this, evtName);\n }\n }\n // remove removeListener listener finally\n this[REMOVE_ALL_LISTENERS_EVENT_LISTENER].call(this, 'removeListener');\n }\n else {\n if (patchOptions && patchOptions.transferEventName) {\n eventName = patchOptions.transferEventName(eventName);\n }\n const symbolEventNames = zoneSymbolEventNames[eventName];\n if (symbolEventNames) {\n const symbolEventName = symbolEventNames[FALSE_STR];\n const symbolCaptureEventName = symbolEventNames[TRUE_STR];\n const tasks = target[symbolEventName];\n const captureTasks = target[symbolCaptureEventName];\n if (tasks) {\n const removeTasks = tasks.slice();\n for (let i = 0; i < removeTasks.length; i++) {\n const task = removeTasks[i];\n let delegate = task.originalDelegate ? task.originalDelegate : task.callback;\n this[REMOVE_EVENT_LISTENER].call(this, eventName, delegate, task.options);\n }\n }\n if (captureTasks) {\n const removeTasks = captureTasks.slice();\n for (let i = 0; i < removeTasks.length; i++) {\n const task = removeTasks[i];\n let delegate = task.originalDelegate ? task.originalDelegate : task.callback;\n this[REMOVE_EVENT_LISTENER].call(this, eventName, delegate, task.options);\n }\n }\n }\n }\n if (returnTarget) {\n return this;\n }\n };\n // for native toString patch\n attachOriginToPatched(proto[ADD_EVENT_LISTENER], nativeAddEventListener);\n attachOriginToPatched(proto[REMOVE_EVENT_LISTENER], nativeRemoveEventListener);\n if (nativeRemoveAllListeners) {\n attachOriginToPatched(proto[REMOVE_ALL_LISTENERS_EVENT_LISTENER], nativeRemoveAllListeners);\n }\n if (nativeListeners) {\n attachOriginToPatched(proto[LISTENERS_EVENT_LISTENER], nativeListeners);\n }\n return true;\n }\n let results = [];\n for (let i = 0; i < apis.length; i++) {\n results[i] = patchEventTargetMethods(apis[i], patchOptions);\n }\n return results;\n}\nfunction findEventTasks(target, eventName) {\n if (!eventName) {\n const foundTasks = [];\n for (let prop in target) {\n const match = EVENT_NAME_SYMBOL_REGX.exec(prop);\n let evtName = match && match[1];\n if (evtName && (!eventName || evtName === eventName)) {\n const tasks = target[prop];\n if (tasks) {\n for (let i = 0; i < tasks.length; i++) {\n foundTasks.push(tasks[i]);\n }\n }\n }\n }\n return foundTasks;\n }\n let symbolEventName = zoneSymbolEventNames[eventName];\n if (!symbolEventName) {\n prepareEventNames(eventName);\n symbolEventName = zoneSymbolEventNames[eventName];\n }\n const captureFalseTasks = target[symbolEventName[FALSE_STR]];\n const captureTrueTasks = target[symbolEventName[TRUE_STR]];\n if (!captureFalseTasks) {\n return captureTrueTasks ? captureTrueTasks.slice() : [];\n }\n else {\n return captureTrueTasks ? captureFalseTasks.concat(captureTrueTasks) :\n captureFalseTasks.slice();\n }\n}\nfunction patchEventPrototype(global, api) {\n const Event = global['Event'];\n if (Event && Event.prototype) {\n api.patchMethod(Event.prototype, 'stopImmediatePropagation', (delegate) => function (self, args) {\n self[IMMEDIATE_PROPAGATION_SYMBOL] = true;\n // we need to call the native stopImmediatePropagation\n // in case in some hybrid application, some part of\n // application will be controlled by zone, some are not\n delegate && delegate.apply(self, args);\n });\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nfunction patchCallbacks(api, target, targetName, method, callbacks) {\n const symbol = Zone.__symbol__(method);\n if (target[symbol]) {\n return;\n }\n const nativeDelegate = target[symbol] = target[method];\n target[method] = function (name, opts, options) {\n if (opts && opts.prototype) {\n callbacks.forEach(function (callback) {\n const source = `${targetName}.${method}::` + callback;\n const prototype = opts.prototype;\n // Note: the `patchCallbacks` is used for patching the `document.registerElement` and\n // `customElements.define`. We explicitly wrap the patching code into try-catch since\n // callbacks may be already patched by other web components frameworks (e.g. LWC), and they\n // make those properties non-writable. This means that patching callback will throw an error\n // `cannot assign to read-only property`. See this code as an example:\n // https://github.com/salesforce/lwc/blob/master/packages/@lwc/engine-core/src/framework/base-bridge-element.ts#L180-L186\n // We don't want to stop the application rendering if we couldn't patch some\n // callback, e.g. `attributeChangedCallback`.\n try {\n if (prototype.hasOwnProperty(callback)) {\n const descriptor = api.ObjectGetOwnPropertyDescriptor(prototype, callback);\n if (descriptor && descriptor.value) {\n descriptor.value = api.wrapWithCurrentZone(descriptor.value, source);\n api._redefineProperty(opts.prototype, callback, descriptor);\n }\n else if (prototype[callback]) {\n prototype[callback] = api.wrapWithCurrentZone(prototype[callback], source);\n }\n }\n else if (prototype[callback]) {\n prototype[callback] = api.wrapWithCurrentZone(prototype[callback], source);\n }\n }\n catch (_a) {\n // Note: we leave the catch block empty since there's no way to handle the error related\n // to non-writable property.\n }\n });\n }\n return nativeDelegate.call(target, name, opts, options);\n };\n api.attachOriginToPatched(target[method], nativeDelegate);\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nfunction filterProperties(target, onProperties, ignoreProperties) {\n if (!ignoreProperties || ignoreProperties.length === 0) {\n return onProperties;\n }\n const tip = ignoreProperties.filter(ip => ip.target === target);\n if (!tip || tip.length === 0) {\n return onProperties;\n }\n const targetIgnoreProperties = tip[0].ignoreProperties;\n return onProperties.filter(op => targetIgnoreProperties.indexOf(op) === -1);\n}\nfunction patchFilteredProperties(target, onProperties, ignoreProperties, prototype) {\n // check whether target is available, sometimes target will be undefined\n // because different browser or some 3rd party plugin.\n if (!target) {\n return;\n }\n const filteredProperties = filterProperties(target, onProperties, ignoreProperties);\n patchOnProperties(target, filteredProperties, prototype);\n}\n/**\n * Get all event name properties which the event name startsWith `on`\n * from the target object itself, inherited properties are not considered.\n */\nfunction getOnEventNames(target) {\n return Object.getOwnPropertyNames(target)\n .filter(name => name.startsWith('on') && name.length > 2)\n .map(name => name.substring(2));\n}\nfunction propertyDescriptorPatch(api, _global) {\n if (isNode && !isMix) {\n return;\n }\n if (Zone[api.symbol('patchEvents')]) {\n // events are already been patched by legacy patch.\n return;\n }\n const ignoreProperties = _global['__Zone_ignore_on_properties'];\n // for browsers that we can patch the descriptor: Chrome & Firefox\n let patchTargets = [];\n if (isBrowser) {\n const internalWindow = window;\n patchTargets = patchTargets.concat([\n 'Document', 'SVGElement', 'Element', 'HTMLElement', 'HTMLBodyElement', 'HTMLMediaElement',\n 'HTMLFrameSetElement', 'HTMLFrameElement', 'HTMLIFrameElement', 'HTMLMarqueeElement', 'Worker'\n ]);\n const ignoreErrorProperties = isIE() ? [{ target: internalWindow, ignoreProperties: ['error'] }] : [];\n // in IE/Edge, onProp not exist in window object, but in WindowPrototype\n // so we need to pass WindowPrototype to check onProp exist or not\n patchFilteredProperties(internalWindow, getOnEventNames(internalWindow), ignoreProperties ? ignoreProperties.concat(ignoreErrorProperties) : ignoreProperties, ObjectGetPrototypeOf(internalWindow));\n }\n patchTargets = patchTargets.concat([\n 'XMLHttpRequest', 'XMLHttpRequestEventTarget', 'IDBIndex', 'IDBRequest', 'IDBOpenDBRequest',\n 'IDBDatabase', 'IDBTransaction', 'IDBCursor', 'WebSocket'\n ]);\n for (let i = 0; i < patchTargets.length; i++) {\n const target = _global[patchTargets[i]];\n target && target.prototype &&\n patchFilteredProperties(target.prototype, getOnEventNames(target.prototype), ignoreProperties);\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nZone.__load_patch('util', (global, Zone, api) => {\n // Collect native event names by looking at properties\n // on the global namespace, e.g. 'onclick'.\n const eventNames = getOnEventNames(global);\n api.patchOnProperties = patchOnProperties;\n api.patchMethod = patchMethod;\n api.bindArguments = bindArguments;\n api.patchMacroTask = patchMacroTask;\n // In earlier version of zone.js (<0.9.0), we use env name `__zone_symbol__BLACK_LISTED_EVENTS` to\n // define which events will not be patched by `Zone.js`.\n // In newer version (>=0.9.0), we change the env name to `__zone_symbol__UNPATCHED_EVENTS` to keep\n // the name consistent with angular repo.\n // The `__zone_symbol__BLACK_LISTED_EVENTS` is deprecated, but it is still be supported for\n // backwards compatibility.\n const SYMBOL_BLACK_LISTED_EVENTS = Zone.__symbol__('BLACK_LISTED_EVENTS');\n const SYMBOL_UNPATCHED_EVENTS = Zone.__symbol__('UNPATCHED_EVENTS');\n if (global[SYMBOL_UNPATCHED_EVENTS]) {\n global[SYMBOL_BLACK_LISTED_EVENTS] = global[SYMBOL_UNPATCHED_EVENTS];\n }\n if (global[SYMBOL_BLACK_LISTED_EVENTS]) {\n Zone[SYMBOL_BLACK_LISTED_EVENTS] = Zone[SYMBOL_UNPATCHED_EVENTS] =\n global[SYMBOL_BLACK_LISTED_EVENTS];\n }\n api.patchEventPrototype = patchEventPrototype;\n api.patchEventTarget = patchEventTarget;\n api.isIEOrEdge = isIEOrEdge;\n api.ObjectDefineProperty = ObjectDefineProperty;\n api.ObjectGetOwnPropertyDescriptor = ObjectGetOwnPropertyDescriptor;\n api.ObjectCreate = ObjectCreate;\n api.ArraySlice = ArraySlice;\n api.patchClass = patchClass;\n api.wrapWithCurrentZone = wrapWithCurrentZone;\n api.filterProperties = filterProperties;\n api.attachOriginToPatched = attachOriginToPatched;\n api._redefineProperty = Object.defineProperty;\n api.patchCallbacks = patchCallbacks;\n api.getGlobalObjects = () => ({\n globalSources,\n zoneSymbolEventNames,\n eventNames,\n isBrowser,\n isMix,\n isNode,\n TRUE_STR,\n FALSE_STR,\n ZONE_SYMBOL_PREFIX,\n ADD_EVENT_LISTENER_STR,\n REMOVE_EVENT_LISTENER_STR\n });\n});\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nconst taskSymbol = zoneSymbol('zoneTask');\nfunction patchTimer(window, setName, cancelName, nameSuffix) {\n let setNative = null;\n let clearNative = null;\n setName += nameSuffix;\n cancelName += nameSuffix;\n const tasksByHandleId = {};\n function scheduleTask(task) {\n const data = task.data;\n data.args[0] = function () {\n return task.invoke.apply(this, arguments);\n };\n data.handleId = setNative.apply(window, data.args);\n return task;\n }\n function clearTask(task) {\n return clearNative.call(window, task.data.handleId);\n }\n setNative =\n patchMethod(window, setName, (delegate) => function (self, args) {\n if (typeof args[0] === 'function') {\n const options = {\n isPeriodic: nameSuffix === 'Interval',\n delay: (nameSuffix === 'Timeout' || nameSuffix === 'Interval') ? args[1] || 0 :\n undefined,\n args: args\n };\n const callback = args[0];\n args[0] = function timer() {\n try {\n return callback.apply(this, arguments);\n }\n finally {\n // issue-934, task will be cancelled\n // even it is a periodic task such as\n // setInterval\n // https://github.com/angular/angular/issues/40387\n // Cleanup tasksByHandleId should be handled before scheduleTask\n // Since some zoneSpec may intercept and doesn't trigger\n // scheduleFn(scheduleTask) provided here.\n if (!(options.isPeriodic)) {\n if (typeof options.handleId === 'number') {\n // in non-nodejs env, we remove timerId\n // from local cache\n delete tasksByHandleId[options.handleId];\n }\n else if (options.handleId) {\n // Node returns complex objects as handleIds\n // we remove task reference from timer object\n options.handleId[taskSymbol] = null;\n }\n }\n }\n };\n const task = scheduleMacroTaskWithCurrentZone(setName, args[0], options, scheduleTask, clearTask);\n if (!task) {\n return task;\n }\n // Node.js must additionally support the ref and unref functions.\n const handle = task.data.handleId;\n if (typeof handle === 'number') {\n // for non nodejs env, we save handleId: task\n // mapping in local cache for clearTimeout\n tasksByHandleId[handle] = task;\n }\n else if (handle) {\n // for nodejs env, we save task\n // reference in timerId Object for clearTimeout\n handle[taskSymbol] = task;\n }\n // check whether handle is null, because some polyfill or browser\n // may return undefined from setTimeout/setInterval/setImmediate/requestAnimationFrame\n if (handle && handle.ref && handle.unref && typeof handle.ref === 'function' &&\n typeof handle.unref === 'function') {\n task.ref = handle.ref.bind(handle);\n task.unref = handle.unref.bind(handle);\n }\n if (typeof handle === 'number' || handle) {\n return handle;\n }\n return task;\n }\n else {\n // cause an error by calling it directly.\n return delegate.apply(window, args);\n }\n });\n clearNative =\n patchMethod(window, cancelName, (delegate) => function (self, args) {\n const id = args[0];\n let task;\n if (typeof id === 'number') {\n // non nodejs env.\n task = tasksByHandleId[id];\n }\n else {\n // nodejs env.\n task = id && id[taskSymbol];\n // other environments.\n if (!task) {\n task = id;\n }\n }\n if (task && typeof task.type === 'string') {\n if (task.state !== 'notScheduled' &&\n (task.cancelFn && task.data.isPeriodic || task.runCount === 0)) {\n if (typeof id === 'number') {\n delete tasksByHandleId[id];\n }\n else if (id) {\n id[taskSymbol] = null;\n }\n // Do not cancel already canceled functions\n task.zone.cancelTask(task);\n }\n }\n else {\n // cause an error by calling it directly.\n delegate.apply(window, args);\n }\n });\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nfunction patchCustomElements(_global, api) {\n const { isBrowser, isMix } = api.getGlobalObjects();\n if ((!isBrowser && !isMix) || !_global['customElements'] || !('customElements' in _global)) {\n return;\n }\n const callbacks = ['connectedCallback', 'disconnectedCallback', 'adoptedCallback', 'attributeChangedCallback'];\n api.patchCallbacks(api, _global.customElements, 'customElements', 'define', callbacks);\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nfunction eventTargetPatch(_global, api) {\n if (Zone[api.symbol('patchEventTarget')]) {\n // EventTarget is already patched.\n return;\n }\n const { eventNames, zoneSymbolEventNames, TRUE_STR, FALSE_STR, ZONE_SYMBOL_PREFIX } = api.getGlobalObjects();\n // predefine all __zone_symbol__ + eventName + true/false string\n for (let i = 0; i < eventNames.length; i++) {\n const eventName = eventNames[i];\n const falseEventName = eventName + FALSE_STR;\n const trueEventName = eventName + TRUE_STR;\n const symbol = ZONE_SYMBOL_PREFIX + falseEventName;\n const symbolCapture = ZONE_SYMBOL_PREFIX + trueEventName;\n zoneSymbolEventNames[eventName] = {};\n zoneSymbolEventNames[eventName][FALSE_STR] = symbol;\n zoneSymbolEventNames[eventName][TRUE_STR] = symbolCapture;\n }\n const EVENT_TARGET = _global['EventTarget'];\n if (!EVENT_TARGET || !EVENT_TARGET.prototype) {\n return;\n }\n api.patchEventTarget(_global, api, [EVENT_TARGET && EVENT_TARGET.prototype]);\n return true;\n}\nfunction patchEvent(global, api) {\n api.patchEventPrototype(global, api);\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nZone.__load_patch('legacy', (global) => {\n const legacyPatch = global[Zone.__symbol__('legacyPatch')];\n if (legacyPatch) {\n legacyPatch();\n }\n});\nZone.__load_patch('queueMicrotask', (global, Zone, api) => {\n api.patchMethod(global, 'queueMicrotask', delegate => {\n return function (self, args) {\n Zone.current.scheduleMicroTask('queueMicrotask', args[0]);\n };\n });\n});\nZone.__load_patch('timers', (global) => {\n const set = 'set';\n const clear = 'clear';\n patchTimer(global, set, clear, 'Timeout');\n patchTimer(global, set, clear, 'Interval');\n patchTimer(global, set, clear, 'Immediate');\n});\nZone.__load_patch('requestAnimationFrame', (global) => {\n patchTimer(global, 'request', 'cancel', 'AnimationFrame');\n patchTimer(global, 'mozRequest', 'mozCancel', 'AnimationFrame');\n patchTimer(global, 'webkitRequest', 'webkitCancel', 'AnimationFrame');\n});\nZone.__load_patch('blocking', (global, Zone) => {\n const blockingMethods = ['alert', 'prompt', 'confirm'];\n for (let i = 0; i < blockingMethods.length; i++) {\n const name = blockingMethods[i];\n patchMethod(global, name, (delegate, symbol, name) => {\n return function (s, args) {\n return Zone.current.run(delegate, global, args, name);\n };\n });\n }\n});\nZone.__load_patch('EventTarget', (global, Zone, api) => {\n patchEvent(global, api);\n eventTargetPatch(global, api);\n // patch XMLHttpRequestEventTarget's addEventListener/removeEventListener\n const XMLHttpRequestEventTarget = global['XMLHttpRequestEventTarget'];\n if (XMLHttpRequestEventTarget && XMLHttpRequestEventTarget.prototype) {\n api.patchEventTarget(global, api, [XMLHttpRequestEventTarget.prototype]);\n }\n});\nZone.__load_patch('MutationObserver', (global, Zone, api) => {\n patchClass('MutationObserver');\n patchClass('WebKitMutationObserver');\n});\nZone.__load_patch('IntersectionObserver', (global, Zone, api) => {\n patchClass('IntersectionObserver');\n});\nZone.__load_patch('FileReader', (global, Zone, api) => {\n patchClass('FileReader');\n});\nZone.__load_patch('on_property', (global, Zone, api) => {\n propertyDescriptorPatch(api, global);\n});\nZone.__load_patch('customElements', (global, Zone, api) => {\n patchCustomElements(global, api);\n});\nZone.__load_patch('XHR', (global, Zone) => {\n // Treat XMLHttpRequest as a macrotask.\n patchXHR(global);\n const XHR_TASK = zoneSymbol('xhrTask');\n const XHR_SYNC = zoneSymbol('xhrSync');\n const XHR_LISTENER = zoneSymbol('xhrListener');\n const XHR_SCHEDULED = zoneSymbol('xhrScheduled');\n const XHR_URL = zoneSymbol('xhrURL');\n const XHR_ERROR_BEFORE_SCHEDULED = zoneSymbol('xhrErrorBeforeScheduled');\n function patchXHR(window) {\n const XMLHttpRequest = window['XMLHttpRequest'];\n if (!XMLHttpRequest) {\n // XMLHttpRequest is not available in service worker\n return;\n }\n const XMLHttpRequestPrototype = XMLHttpRequest.prototype;\n function findPendingTask(target) {\n return target[XHR_TASK];\n }\n let oriAddListener = XMLHttpRequestPrototype[ZONE_SYMBOL_ADD_EVENT_LISTENER];\n let oriRemoveListener = XMLHttpRequestPrototype[ZONE_SYMBOL_REMOVE_EVENT_LISTENER];\n if (!oriAddListener) {\n const XMLHttpRequestEventTarget = window['XMLHttpRequestEventTarget'];\n if (XMLHttpRequestEventTarget) {\n const XMLHttpRequestEventTargetPrototype = XMLHttpRequestEventTarget.prototype;\n oriAddListener = XMLHttpRequestEventTargetPrototype[ZONE_SYMBOL_ADD_EVENT_LISTENER];\n oriRemoveListener = XMLHttpRequestEventTargetPrototype[ZONE_SYMBOL_REMOVE_EVENT_LISTENER];\n }\n }\n const READY_STATE_CHANGE = 'readystatechange';\n const SCHEDULED = 'scheduled';\n function scheduleTask(task) {\n const data = task.data;\n const target = data.target;\n target[XHR_SCHEDULED] = false;\n target[XHR_ERROR_BEFORE_SCHEDULED] = false;\n // remove existing event listener\n const listener = target[XHR_LISTENER];\n if (!oriAddListener) {\n oriAddListener = target[ZONE_SYMBOL_ADD_EVENT_LISTENER];\n oriRemoveListener = target[ZONE_SYMBOL_REMOVE_EVENT_LISTENER];\n }\n if (listener) {\n oriRemoveListener.call(target, READY_STATE_CHANGE, listener);\n }\n const newListener = target[XHR_LISTENER] = () => {\n if (target.readyState === target.DONE) {\n // sometimes on some browsers XMLHttpRequest will fire onreadystatechange with\n // readyState=4 multiple times, so we need to check task state here\n if (!data.aborted && target[XHR_SCHEDULED] && task.state === SCHEDULED) {\n // check whether the xhr has registered onload listener\n // if that is the case, the task should invoke after all\n // onload listeners finish.\n // Also if the request failed without response (status = 0), the load event handler\n // will not be triggered, in that case, we should also invoke the placeholder callback\n // to close the XMLHttpRequest::send macroTask.\n // https://github.com/angular/angular/issues/38795\n const loadTasks = target[Zone.__symbol__('loadfalse')];\n if (target.status !== 0 && loadTasks && loadTasks.length > 0) {\n const oriInvoke = task.invoke;\n task.invoke = function () {\n // need to load the tasks again, because in other\n // load listener, they may remove themselves\n const loadTasks = target[Zone.__symbol__('loadfalse')];\n for (let i = 0; i < loadTasks.length; i++) {\n if (loadTasks[i] === task) {\n loadTasks.splice(i, 1);\n }\n }\n if (!data.aborted && task.state === SCHEDULED) {\n oriInvoke.call(task);\n }\n };\n loadTasks.push(task);\n }\n else {\n task.invoke();\n }\n }\n else if (!data.aborted && target[XHR_SCHEDULED] === false) {\n // error occurs when xhr.send()\n target[XHR_ERROR_BEFORE_SCHEDULED] = true;\n }\n }\n };\n oriAddListener.call(target, READY_STATE_CHANGE, newListener);\n const storedTask = target[XHR_TASK];\n if (!storedTask) {\n target[XHR_TASK] = task;\n }\n sendNative.apply(target, data.args);\n target[XHR_SCHEDULED] = true;\n return task;\n }\n function placeholderCallback() { }\n function clearTask(task) {\n const data = task.data;\n // Note - ideally, we would call data.target.removeEventListener here, but it's too late\n // to prevent it from firing. So instead, we store info for the event listener.\n data.aborted = true;\n return abortNative.apply(data.target, data.args);\n }\n const openNative = patchMethod(XMLHttpRequestPrototype, 'open', () => function (self, args) {\n self[XHR_SYNC] = args[2] == false;\n self[XHR_URL] = args[1];\n return openNative.apply(self, args);\n });\n const XMLHTTPREQUEST_SOURCE = 'XMLHttpRequest.send';\n const fetchTaskAborting = zoneSymbol('fetchTaskAborting');\n const fetchTaskScheduling = zoneSymbol('fetchTaskScheduling');\n const sendNative = patchMethod(XMLHttpRequestPrototype, 'send', () => function (self, args) {\n if (Zone.current[fetchTaskScheduling] === true) {\n // a fetch is scheduling, so we are using xhr to polyfill fetch\n // and because we already schedule macroTask for fetch, we should\n // not schedule a macroTask for xhr again\n return sendNative.apply(self, args);\n }\n if (self[XHR_SYNC]) {\n // if the XHR is sync there is no task to schedule, just execute the code.\n return sendNative.apply(self, args);\n }\n else {\n const options = { target: self, url: self[XHR_URL], isPeriodic: false, args: args, aborted: false };\n const task = scheduleMacroTaskWithCurrentZone(XMLHTTPREQUEST_SOURCE, placeholderCallback, options, scheduleTask, clearTask);\n if (self && self[XHR_ERROR_BEFORE_SCHEDULED] === true && !options.aborted &&\n task.state === SCHEDULED) {\n // xhr request throw error when send\n // we should invoke task instead of leaving a scheduled\n // pending macroTask\n task.invoke();\n }\n }\n });\n const abortNative = patchMethod(XMLHttpRequestPrototype, 'abort', () => function (self, args) {\n const task = findPendingTask(self);\n if (task && typeof task.type == 'string') {\n // If the XHR has already completed, do nothing.\n // If the XHR has already been aborted, do nothing.\n // Fix #569, call abort multiple times before done will cause\n // macroTask task count be negative number\n if (task.cancelFn == null || (task.data && task.data.aborted)) {\n return;\n }\n task.zone.cancelTask(task);\n }\n else if (Zone.current[fetchTaskAborting] === true) {\n // the abort is called from fetch polyfill, we need to call native abort of XHR.\n return abortNative.apply(self, args);\n }\n // Otherwise, we are trying to abort an XHR which has not yet been sent, so there is no\n // task\n // to cancel. Do nothing.\n });\n }\n});\nZone.__load_patch('geolocation', (global) => {\n /// GEO_LOCATION\n if (global['navigator'] && global['navigator'].geolocation) {\n patchPrototype(global['navigator'].geolocation, ['getCurrentPosition', 'watchPosition']);\n }\n});\nZone.__load_patch('PromiseRejectionEvent', (global, Zone) => {\n // handle unhandled promise rejection\n function findPromiseRejectionHandler(evtName) {\n return function (e) {\n const eventTasks = findEventTasks(global, evtName);\n eventTasks.forEach(eventTask => {\n // windows has added unhandledrejection event listener\n // trigger the event listener\n const PromiseRejectionEvent = global['PromiseRejectionEvent'];\n if (PromiseRejectionEvent) {\n const evt = new PromiseRejectionEvent(evtName, { promise: e.promise, reason: e.rejection });\n eventTask.invoke(evt);\n }\n });\n };\n }\n if (global['PromiseRejectionEvent']) {\n Zone[zoneSymbol('unhandledPromiseRejectionHandler')] =\n findPromiseRejectionHandler('unhandledrejection');\n Zone[zoneSymbol('rejectionHandledHandler')] =\n findPromiseRejectionHandler('rejectionhandled');\n }\n});\n"],"names":["global","performance","mark","name","performanceMeasure","label","symbolPrefix","__symbol__","checkDuplicate","Error","Zone","constructor","parent","zoneSpec","_parent","_name","_properties","properties","_zoneDelegate","_ZoneDelegate","assertZonePatched","patches","root","zone","current","_currentZoneFrame","currentTask","_currentTask","__load_patch","fn","ignoreDuplicate","hasOwnProperty","perfName","_api","get","key","getZoneWith","fork","wrap","callback","source","_callback","intercept","runGuarded","arguments","run","applyThis","applyArgs","invoke","error","handleError","runTask","task","NO_ZONE","state","notScheduled","type","eventTask","macroTask","reEntryGuard","running","_transitionTo","scheduled","runCount","previousTask","data","isPeriodic","cancelFn","undefined","invokeTask","unknown","_updateTaskCount","scheduleTask","newZone","scheduling","zoneDelegates","_zoneDelegates","_zone","err","scheduleMicroTask","customSchedule","ZoneTask","microTask","scheduleMacroTask","customCancel","scheduleEventTask","cancelTask","canceling","count","i","length","DELEGATE_ZS","onHasTask","delegate","_","target","hasTaskState","hasTask","onScheduleTask","onInvokeTask","onCancelTask","parentDelegate","_taskCounts","_parentDelegate","_forkZS","onFork","_forkDlgt","_forkCurrZone","_interceptZS","onIntercept","_interceptDlgt","_interceptCurrZone","_invokeZS","onInvoke","_invokeDlgt","_invokeCurrZone","_handleErrorZS","onHandleError","_handleErrorDlgt","_handleErrorCurrZone","_scheduleTaskZS","_scheduleTaskDlgt","_scheduleTaskCurrZone","_invokeTaskZS","_invokeTaskDlgt","_invokeTaskCurrZone","_cancelTaskZS","_cancelTaskDlgt","_cancelTaskCurrZone","_hasTaskZS","_hasTaskDlgt","_hasTaskDlgtOwner","_hasTaskCurrZone","zoneSpecHasTask","parentHasTask","targetZone","apply","returnTask","push","scheduleFn","value","isEmpty","counts","prev","next","change","options","_state","self","useG","call","args","_numberOfNestedTaskFrames","drainMicroTaskQueue","cancelScheduleRequest","toState","fromState1","fromState2","toString","handleId","Object","prototype","toJSON","symbolSetTimeout","symbolPromise","symbolThen","_microTaskQueue","_isDrainingMicrotaskQueue","nativeMicroTaskQueuePromise","nativeScheduleMicroTask","func","resolve","nativeThen","queue","onUnhandledError","microtaskDrainDone","symbol","currentZoneFrame","noop","showUncaughtError","patchEventTarget","patchOnProperties","patchMethod","bindArguments","patchThen","patchMacroTask","patchEventPrototype","isIEOrEdge","getGlobalObjects","ObjectDefineProperty","ObjectGetOwnPropertyDescriptor","ObjectCreate","ArraySlice","patchClass","wrapWithCurrentZone","filterProperties","attachOriginToPatched","_redefineProperty","patchCallbacks","window","getOwnPropertyDescriptor","defineProperty","ObjectGetPrototypeOf","getPrototypeOf","create","Array","slice","ADD_EVENT_LISTENER_STR","REMOVE_EVENT_LISTENER_STR","ZONE_SYMBOL_ADD_EVENT_LISTENER","ZONE_SYMBOL_REMOVE_EVENT_LISTENER","TRUE_STR","FALSE_STR","ZONE_SYMBOL_PREFIX","scheduleMacroTaskWithCurrentZone","zoneSymbol","isWindowExists","internalWindow","_global","REMOVE_ATTRIBUTE","patchPrototype","fnNames","prototypeDesc","isPropertyWritable","patched","propertyDesc","writable","set","isWebWorker","WorkerGlobalScope","isNode","process","isBrowser","isMix","zoneSymbolEventNames$1","wrapFn","event","eventNameSymbol","listener","result","errorEvent","message","filename","lineno","colno","preventDefault","patchProperty","obj","prop","desc","enumerable","configurable","onPropPatchedSymbol","originalDescGet","originalDescSet","eventName","newValue","previousValue","removeEventListener","addEventListener","removeAttribute","onProperties","j","originalInstanceKey","className","OriginalClass","a","instance","patchFn","proto","delegateName","patchDelegate","funcName","metaCreator","setNative","cbIdx","meta","original","isDetectedIEOrEdge","ieOrEdge","isIE","ua","navigator","userAgent","indexOf","api","readableObjectToString","JSON","stringify","_uncaughtPromiseErrors","isDisableWrappingUncaughtPromiseRejection","creationTrace","e","rejection","console","stack","uncaughtPromiseError","shift","throwOriginal","handleUnhandledRejection","UNHANDLED_PROMISE_REJECTION_HANDLER_SYMBOL","handler","isThenable","then","forwardResolution","forwardRejection","ZoneAwarePromise","reject","symbolState","symbolValue","symbolFinally","symbolParentPromiseValue","symbolParentPromiseState","UNRESOLVED","RESOLVED","REJECTED","REJECTED_NO_CATCH","makeResolver","promise","v","resolvePromise","once","wasCalled","wrapper","wrappedFunction","TYPE_ERROR","CURRENT_TASK_TRACE_SYMBOL","onceWrapper","TypeError","clearRejectedNoCatch","trace","scheduleResolveOrReject","REJECTION_HANDLED_HANDLER","splice","chainPromise","onFulfilled","onRejected","promiseState","parentPromiseValue","isFinallyPromise","ZONE_AWARE_PROMISE_TO_STRING","AggregateError","any","values","Symbol","iterator","Promise","promises","finished","errors","race","res","rej","onResolve","onReject","all","allWithCallback","allSettled","P","thenCallback","status","errorCallback","reason","unresolvedCount","valueIndex","resolvedValues","curValueIndex","thenErr","executor","toStringTag","species","_a","C","catch","finally","onFinally","NativePromise","symbolThenPatched","Ctor","originalThen","wrapped","zoneify","resultPromise","ctor","originalFunctionToString","Function","ORIGINAL_DELEGATE_SYMBOL","PROMISE_SYMBOL","ERROR_SYMBOL","newFunctionToString","originalDelegate","nativePromise","nativeError","originalObjectToString","PROMISE_OBJECT_TO_STRING","passiveSupported","OPTIMIZED_ZONE_EVENT_TASK_DATA","zoneSymbolEventNames","globalSources","EVENT_NAME_SYMBOL_REGX","RegExp","IMMEDIATE_PROPAGATION_SYMBOL","prepareEventNames","eventNameToString","falseEventName","trueEventName","symbolCapture","apis","patchOptions","ADD_EVENT_LISTENER","add","REMOVE_EVENT_LISTENER","rm","LISTENERS_EVENT_LISTENER","listeners","REMOVE_ALL_LISTENERS_EVENT_LISTENER","rmAll","zoneSymbolAddEventListener","ADD_EVENT_LISTENER_SOURCE","PREPEND_EVENT_LISTENER","PREPEND_EVENT_LISTENER_SOURCE","isRemoved","handleEvent","globalCallback","context","isCapture","tasks","copyTasks","globalZoneAwareCallback","globalZoneAwareCaptureCallback","patchEventTargetMethods","useGlobalCallback","validateHandler","vh","chkDup","returnTarget","rt","taskData","nativeAddEventListener","nativeRemoveEventListener","nativeListeners","nativeRemoveAllListeners","nativePrependEventListener","prepend","buildEventListenerOptions","passive","capture","assign","customScheduleGlobal","isExisting","customCancelGlobal","symbolEventNames","symbolEventName","existingTasks","existingTask","allRemoved","customScheduleNonGlobal","customSchedulePrepend","customCancelNonGlobal","compareTaskCallbackVsDelegate","typeOfDelegate","compare","diff","unpatchedEvents","passiveEvents","makeAddListener","nativeListener","addSource","customScheduleFn","customCancelFn","transferEventName","isHandleEvent","constructorName","targetSource","unshift","onPropertySymbol","findEventTasks","keys","match","exec","evtName","symbolCaptureEventName","captureTasks","removeTasks","results","foundTasks","captureFalseTasks","captureTrueTasks","concat","Event","targetName","method","callbacks","nativeDelegate","opts","forEach","descriptor","ignoreProperties","tip","filter","ip","targetIgnoreProperties","op","patchFilteredProperties","filteredProperties","getOnEventNames","getOwnPropertyNames","startsWith","map","substring","propertyDescriptorPatch","patchTargets","ignoreErrorProperties","eventNames","SYMBOL_BLACK_LISTED_EVENTS","SYMBOL_UNPATCHED_EVENTS","taskSymbol","patchTimer","setName","cancelName","nameSuffix","clearNative","tasksByHandleId","clearTask","delay","timer","handle","ref","unref","bind","id","patchCustomElements","customElements","eventTargetPatch","EVENT_TARGET","patchEvent","legacyPatch","clear","blockingMethods","s","XMLHttpRequestEventTarget","patchXHR","XHR_TASK","XHR_SYNC","XHR_LISTENER","XHR_SCHEDULED","XHR_URL","XHR_ERROR_BEFORE_SCHEDULED","XMLHttpRequest","XMLHttpRequestPrototype","findPendingTask","oriAddListener","oriRemoveListener","XMLHttpRequestEventTargetPrototype","READY_STATE_CHANGE","SCHEDULED","newListener","readyState","DONE","aborted","loadTasks","oriInvoke","storedTask","sendNative","placeholderCallback","abortNative","openNative","XMLHTTPREQUEST_SOURCE","fetchTaskAborting","fetchTaskScheduling","url","geolocation","findPromiseRejectionHandler","eventTasks","PromiseRejectionEvent","evt"],"sourceRoot":"webpack:///","x_google_ignoreList":[1]} \ No newline at end of file diff --git a/cdk/cdk.out/asset.705042e10eb8fb6d7d7475c39e61e09836398336585ba5ef9814a4a774e8e009/runtime.js b/cdk/cdk.out/asset.705042e10eb8fb6d7d7475c39e61e09836398336585ba5ef9814a4a774e8e009/runtime.js new file mode 100644 index 00000000..4eff1422 --- /dev/null +++ b/cdk/cdk.out/asset.705042e10eb8fb6d7d7475c39e61e09836398336585ba5ef9814a4a774e8e009/runtime.js @@ -0,0 +1,446 @@ +/******/ (() => { + // webpackBootstrap + /******/ "use strict"; + /******/ var __webpack_modules__ = {}; + /************************************************************************/ + /******/ // The module cache + /******/ var __webpack_module_cache__ = {}; + /******/ + /******/ // The require function + /******/ function __webpack_require__(moduleId) { + /******/ // Check if module is in cache + /******/ var cachedModule = __webpack_module_cache__[moduleId]; + /******/ if (cachedModule !== undefined) { + /******/ return cachedModule.exports; + /******/ + } + /******/ // Create a new module (and put it into the cache) + /******/ var module = (__webpack_module_cache__[moduleId] = { + /******/ // no module.id needed + /******/ // no module.loaded needed + /******/ exports: {}, + /******/ + }); + /******/ + /******/ // Execute the module function + /******/ __webpack_modules__[moduleId]( + module, + module.exports, + __webpack_require__ + ); + /******/ + /******/ // Return the exports of the module + /******/ return module.exports; + /******/ + } + /******/ + /******/ // expose the modules object (__webpack_modules__) + /******/ __webpack_require__.m = __webpack_modules__; + /******/ + /************************************************************************/ + /******/ /* webpack/runtime/chunk loaded */ + /******/ (() => { + /******/ var deferred = []; + /******/ __webpack_require__.O = (result, chunkIds, fn, priority) => { + /******/ if (chunkIds) { + /******/ priority = priority || 0; + /******/ for ( + var i = deferred.length; + i > 0 && deferred[i - 1][2] > priority; + i-- + ) + deferred[i] = deferred[i - 1]; + /******/ deferred[i] = [chunkIds, fn, priority]; + /******/ return; + /******/ + } + /******/ var notFulfilled = Infinity; + /******/ for (var i = 0; i < deferred.length; i++) { + /******/ var [chunkIds, fn, priority] = deferred[i]; + /******/ var fulfilled = true; + /******/ for (var j = 0; j < chunkIds.length; j++) { + /******/ if ( + (priority & (1 === 0) || notFulfilled >= priority) && + Object.keys(__webpack_require__.O).every((key) => + __webpack_require__.O[key](chunkIds[j]) + ) + ) { + /******/ chunkIds.splice(j--, 1); + /******/ + } else { + /******/ fulfilled = false; + /******/ if (priority < notFulfilled) notFulfilled = priority; + /******/ + } + /******/ + } + /******/ if (fulfilled) { + /******/ deferred.splice(i--, 1); + /******/ var r = fn(); + /******/ if (r !== undefined) result = r; + /******/ + } + /******/ + } + /******/ return result; + /******/ + }; + /******/ + })(); + /******/ + /******/ /* webpack/runtime/compat get default export */ + /******/ (() => { + /******/ // getDefaultExport function for compatibility with non-harmony modules + /******/ __webpack_require__.n = (module) => { + /******/ var getter = + module && module.__esModule + ? /******/ () => module["default"] + : /******/ () => module; + /******/ __webpack_require__.d(getter, { a: getter }); + /******/ return getter; + /******/ + }; + /******/ + })(); + /******/ + /******/ /* webpack/runtime/define property getters */ + /******/ (() => { + /******/ // define getter functions for harmony exports + /******/ __webpack_require__.d = (exports, definition) => { + /******/ for (var key in definition) { + /******/ if ( + __webpack_require__.o(definition, key) && + !__webpack_require__.o(exports, key) + ) { + /******/ Object.defineProperty(exports, key, { + enumerable: true, + get: definition[key], + }); + /******/ + } + /******/ + } + /******/ + }; + /******/ + })(); + /******/ + /******/ /* webpack/runtime/ensure chunk */ + /******/ (() => { + /******/ __webpack_require__.f = {}; + /******/ // This file contains only the entry chunk. + /******/ // The chunk loading function for additional chunks + /******/ __webpack_require__.e = (chunkId) => { + /******/ return Promise.all( + Object.keys(__webpack_require__.f).reduce((promises, key) => { + /******/ __webpack_require__.f[key](chunkId, promises); + /******/ return promises; + /******/ + }, []) + ); + /******/ + }; + /******/ + })(); + /******/ + /******/ /* webpack/runtime/get javascript chunk filename */ + /******/ (() => { + /******/ // This function allow to reference async chunks + /******/ __webpack_require__.u = (chunkId) => { + /******/ // return url for filenames based on template + /******/ return "" + chunkId + ".js"; + /******/ + }; + /******/ + })(); + /******/ + /******/ /* webpack/runtime/get mini-css chunk filename */ + /******/ (() => { + /******/ // This function allow to reference async chunks + /******/ __webpack_require__.miniCssF = (chunkId) => { + /******/ // return url for filenames based on template + /******/ return undefined; + /******/ + }; + /******/ + })(); + /******/ + /******/ /* webpack/runtime/hasOwnProperty shorthand */ + /******/ (() => { + /******/ __webpack_require__.o = (obj, prop) => + Object.prototype.hasOwnProperty.call(obj, prop); + /******/ + })(); + /******/ + /******/ /* webpack/runtime/load script */ + /******/ (() => { + /******/ var inProgress = {}; + /******/ var dataWebpackPrefix = "app:"; + /******/ // loadScript function to load a script via script tag + /******/ __webpack_require__.l = (url, done, key, chunkId) => { + /******/ if (inProgress[url]) { + inProgress[url].push(done); + return; + } + /******/ var script, needAttach; + /******/ if (key !== undefined) { + /******/ var scripts = document.getElementsByTagName("script"); + /******/ for (var i = 0; i < scripts.length; i++) { + /******/ var s = scripts[i]; + /******/ if ( + s.getAttribute("src") == url || + s.getAttribute("data-webpack") == dataWebpackPrefix + key + ) { + script = s; + break; + } + /******/ + } + /******/ + } + /******/ if (!script) { + /******/ needAttach = true; + /******/ script = document.createElement("script"); + /******/ script.type = "module"; + /******/ script.charset = "utf-8"; + /******/ script.timeout = 120; + /******/ if (__webpack_require__.nc) { + /******/ script.setAttribute("nonce", __webpack_require__.nc); + /******/ + } + /******/ script.setAttribute("data-webpack", dataWebpackPrefix + key); + /******/ script.src = __webpack_require__.tu(url); + /******/ + } + /******/ inProgress[url] = [done]; + /******/ var onScriptComplete = (prev, event) => { + /******/ // avoid mem leaks in IE. + /******/ script.onerror = script.onload = null; + /******/ clearTimeout(timeout); + /******/ var doneFns = inProgress[url]; + /******/ delete inProgress[url]; + /******/ script.parentNode && script.parentNode.removeChild(script); + /******/ doneFns && doneFns.forEach((fn) => fn(event)); + /******/ if (prev) return prev(event); + /******/ + }; + /******/ var timeout = setTimeout( + onScriptComplete.bind(null, undefined, { + type: "timeout", + target: script, + }), + 120000 + ); + /******/ script.onerror = onScriptComplete.bind(null, script.onerror); + /******/ script.onload = onScriptComplete.bind(null, script.onload); + /******/ needAttach && document.head.appendChild(script); + /******/ + }; + /******/ + })(); + /******/ + /******/ /* webpack/runtime/make namespace object */ + /******/ (() => { + /******/ // define __esModule on exports + /******/ __webpack_require__.r = (exports) => { + /******/ if (typeof Symbol !== "undefined" && Symbol.toStringTag) { + /******/ Object.defineProperty(exports, Symbol.toStringTag, { + value: "Module", + }); + /******/ + } + /******/ Object.defineProperty(exports, "__esModule", { value: true }); + /******/ + }; + /******/ + })(); + /******/ + /******/ /* webpack/runtime/trusted types policy */ + /******/ (() => { + /******/ var policy; + /******/ __webpack_require__.tt = () => { + /******/ // Create Trusted Type policy if Trusted Types are available and the policy doesn't exist yet. + /******/ if (policy === undefined) { + /******/ policy = { + /******/ createScriptURL: (url) => url, + /******/ + }; + /******/ if ( + typeof trustedTypes !== "undefined" && + trustedTypes.createPolicy + ) { + /******/ policy = trustedTypes.createPolicy( + "angular#bundler", + policy + ); + /******/ + } + /******/ + } + /******/ return policy; + /******/ + }; + /******/ + })(); + /******/ + /******/ /* webpack/runtime/trusted types script url */ + /******/ (() => { + /******/ __webpack_require__.tu = (url) => + __webpack_require__.tt().createScriptURL(url); + /******/ + })(); + /******/ + /******/ /* webpack/runtime/publicPath */ + /******/ (() => { + /******/ __webpack_require__.p = ""; + /******/ + })(); + /******/ + /******/ /* webpack/runtime/jsonp chunk loading */ + /******/ (() => { + /******/ // no baseURI + /******/ + /******/ // object to store loaded and loading chunks + /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched + /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded + /******/ var installedChunks = { + /******/ runtime: 0, + /******/ + }; + /******/ + /******/ __webpack_require__.f.j = (chunkId, promises) => { + /******/ // JSONP chunk loading for javascript + /******/ var installedChunkData = __webpack_require__.o( + installedChunks, + chunkId + ) + ? installedChunks[chunkId] + : undefined; + /******/ if (installedChunkData !== 0) { + // 0 means "already installed". + /******/ + /******/ // a Promise means "currently loading". + /******/ if (installedChunkData) { + /******/ promises.push(installedChunkData[2]); + /******/ + } else { + /******/ if ("runtime" != chunkId) { + /******/ // setup Promise in chunk cache + /******/ var promise = new Promise( + (resolve, reject) => + (installedChunkData = installedChunks[chunkId] = + [resolve, reject]) + ); + /******/ promises.push((installedChunkData[2] = promise)); + /******/ + /******/ // start chunk loading + /******/ var url = + __webpack_require__.p + __webpack_require__.u(chunkId); + /******/ // create error before stack unwound to get useful stacktrace later + /******/ var error = new Error(); + /******/ var loadingEnded = (event) => { + /******/ if (__webpack_require__.o(installedChunks, chunkId)) { + /******/ installedChunkData = installedChunks[chunkId]; + /******/ if (installedChunkData !== 0) + installedChunks[chunkId] = undefined; + /******/ if (installedChunkData) { + /******/ var errorType = + event && (event.type === "load" ? "missing" : event.type); + /******/ var realSrc = + event && event.target && event.target.src; + /******/ error.message = + "Loading chunk " + + chunkId + + " failed.\n(" + + errorType + + ": " + + realSrc + + ")"; + /******/ error.name = "ChunkLoadError"; + /******/ error.type = errorType; + /******/ error.request = realSrc; + /******/ installedChunkData[1](error); + /******/ + } + /******/ + } + /******/ + }; + /******/ __webpack_require__.l( + url, + loadingEnded, + "chunk-" + chunkId, + chunkId + ); + /******/ + } else installedChunks[chunkId] = 0; + /******/ + } + /******/ + } + /******/ + }; + /******/ + /******/ // no prefetching + /******/ + /******/ // no preloaded + /******/ + /******/ // no HMR + /******/ + /******/ // no HMR manifest + /******/ + /******/ __webpack_require__.O.j = (chunkId) => + installedChunks[chunkId] === 0; + /******/ + /******/ // install a JSONP callback for chunk loading + /******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => { + /******/ var [chunkIds, moreModules, runtime] = data; + /******/ // add "moreModules" to the modules object, + /******/ // then flag all "chunkIds" as loaded and fire callback + /******/ var moduleId, + chunkId, + i = 0; + /******/ if (chunkIds.some((id) => installedChunks[id] !== 0)) { + /******/ for (moduleId in moreModules) { + /******/ if (__webpack_require__.o(moreModules, moduleId)) { + /******/ __webpack_require__.m[moduleId] = moreModules[moduleId]; + /******/ + } + /******/ + } + /******/ if (runtime) var result = runtime(__webpack_require__); + /******/ + } + /******/ if (parentChunkLoadingFunction) parentChunkLoadingFunction(data); + /******/ for (; i < chunkIds.length; i++) { + /******/ chunkId = chunkIds[i]; + /******/ if ( + __webpack_require__.o(installedChunks, chunkId) && + installedChunks[chunkId] + ) { + /******/ installedChunks[chunkId][0](); + /******/ + } + /******/ installedChunks[chunkId] = 0; + /******/ + } + /******/ return __webpack_require__.O(result); + /******/ + }; + /******/ + /******/ var chunkLoadingGlobal = (self["webpackChunkapp"] = + self["webpackChunkapp"] || []); + /******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0)); + /******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind( + null, + chunkLoadingGlobal.push.bind(chunkLoadingGlobal) + ); + /******/ + })(); + /******/ + /************************************************************************/ + /******/ + /******/ + /******/ +})(); +//# sourceMappingURL=runtime.js.map diff --git a/cdk/cdk.out/asset.705042e10eb8fb6d7d7475c39e61e09836398336585ba5ef9814a4a774e8e009/runtime.js.map b/cdk/cdk.out/asset.705042e10eb8fb6d7d7475c39e61e09836398336585ba5ef9814a4a774e8e009/runtime.js.map new file mode 100644 index 00000000..b183504e --- /dev/null +++ b/cdk/cdk.out/asset.705042e10eb8fb6d7d7475c39e61e09836398336585ba5ef9814a4a774e8e009/runtime.js.map @@ -0,0 +1 @@ +{"version":3,"file":"runtime.js","mappings":";;;;UAAA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;UAEA;UACA;;;;;WCzBA;WACA;WACA;WACA;WACA,+BAA+B,wCAAwC;WACvE;WACA;WACA;WACA;WACA,iBAAiB,qBAAqB;WACtC;WACA;WACA,kBAAkB,qBAAqB;WACvC;WACA;WACA,KAAK;WACL;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;;;;WC3BA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,EAAE;WACF;;;;;WCRA;WACA;WACA;WACA;WACA;;;;;WCJA;WACA;WACA;WACA;WACA;;;;;WCJA;;;;;WCAA;WACA;WACA;WACA;WACA,uBAAuB,4BAA4B;WACnD;WACA;WACA;WACA,iBAAiB,oBAAoB;WACrC;WACA,mGAAmG,YAAY;WAC/G;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,mEAAmE,iCAAiC;WACpG;WACA;WACA;WACA;;;;;WCxCA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;WCNA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;;;;WCZA;;;;;WCAA;;;;;WCAA;;WAEA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA;WACA,iCAAiC;;WAEjC;WACA;WACA;WACA,KAAK;WACL;WACA;WACA;WACA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,MAAM;WACN;WACA;WACA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,MAAM,qBAAqB;WAC3B;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA","sources":["webpack/bootstrap","webpack/runtime/chunk loaded","webpack/runtime/compat get default export","webpack/runtime/define property getters","webpack/runtime/ensure chunk","webpack/runtime/get javascript chunk filename","webpack/runtime/get mini-css chunk filename","webpack/runtime/hasOwnProperty shorthand","webpack/runtime/load script","webpack/runtime/make namespace object","webpack/runtime/trusted types policy","webpack/runtime/trusted types script url","webpack/runtime/publicPath","webpack/runtime/jsonp chunk loading","webpack/before-startup","webpack/startup","webpack/after-startup"],"sourcesContent":["// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = (chunkId) => {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = (chunkId) => {\n\t// return url for filenames based on template\n\treturn \"\" + chunkId + \".js\";\n};","// This function allow to reference async chunks\n__webpack_require__.miniCssF = (chunkId) => {\n\t// return url for filenames based on template\n\treturn undefined;\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","var inProgress = {};\nvar dataWebpackPrefix = \"app:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = (url, done, key, chunkId) => {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\t\tscript.type = \"module\";\n\t\tscript.charset = 'utf-8';\n\t\tscript.timeout = 120;\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\t\tscript.src = __webpack_require__.tu(url);\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = (prev, event) => {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach((fn) => (fn(event)));\n\t\tif(prev) return prev(event);\n\t};\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","var policy;\n__webpack_require__.tt = () => {\n\t// Create Trusted Type policy if Trusted Types are available and the policy doesn't exist yet.\n\tif (policy === undefined) {\n\t\tpolicy = {\n\t\t\tcreateScriptURL: (url) => (url)\n\t\t};\n\t\tif (typeof trustedTypes !== \"undefined\" && trustedTypes.createPolicy) {\n\t\t\tpolicy = trustedTypes.createPolicy(\"angular#bundler\", policy);\n\t\t}\n\t}\n\treturn policy;\n};","__webpack_require__.tu = (url) => (__webpack_require__.tt().createScriptURL(url));","__webpack_require__.p = \"\";","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t\"runtime\": 0\n};\n\n__webpack_require__.f.j = (chunkId, promises) => {\n\t\t// JSONP chunk loading for javascript\n\t\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\n\t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n\t\t\t// a Promise means \"currently loading\".\n\t\t\tif(installedChunkData) {\n\t\t\t\tpromises.push(installedChunkData[2]);\n\t\t\t} else {\n\t\t\t\tif(\"runtime\" != chunkId) {\n\t\t\t\t\t// setup Promise in chunk cache\n\t\t\t\t\tvar promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));\n\t\t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n\t\t\t\t\t// start chunk loading\n\t\t\t\t\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\t\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\t\t\tvar error = new Error();\n\t\t\t\t\tvar loadingEnded = (event) => {\n\t\t\t\t\t\tif(__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\t\t\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\t\t\tif(installedChunkData) {\n\t\t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n\t\t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\t\t\tinstalledChunkData[1](error);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\t__webpack_require__.l(url, loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t\t\t} else installedChunks[chunkId] = 0;\n\t\t\t}\n\t\t}\n};\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkapp\"] = self[\"webpackChunkapp\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","","",""],"names":[],"sourceRoot":"webpack:///","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]} \ No newline at end of file diff --git a/cdk/cdk.out/asset.705042e10eb8fb6d7d7475c39e61e09836398336585ba5ef9814a4a774e8e009/src_app_admin_admin_module_ts.js b/cdk/cdk.out/asset.705042e10eb8fb6d7d7475c39e61e09836398336585ba5ef9814a4a774e8e009/src_app_admin_admin_module_ts.js new file mode 100644 index 00000000..3695c686 --- /dev/null +++ b/cdk/cdk.out/asset.705042e10eb8fb6d7d7475c39e61e09836398336585ba5ef9814a4a774e8e009/src_app_admin_admin_module_ts.js @@ -0,0 +1,8397 @@ +"use strict"; +(self["webpackChunkapp"] = self["webpackChunkapp"] || []).push([ + ["src_app_admin_admin_module_ts"], + { + /***/ 3176: + /*!***********************************************!*\ + !*** ./src/app/admin/admin-routing.module.ts ***! + \***********************************************/ + /***/ ( + __unused_webpack_module, + __webpack_exports__, + __webpack_require__ + ) => { + __webpack_require__.r(__webpack_exports__); + /* harmony export */ __webpack_require__.d(__webpack_exports__, { + /* harmony export */ AdminRoutingModule: () => + /* binding */ AdminRoutingModule, + /* harmony export */ + }); + /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_4__ = + __webpack_require__(/*! @angular/router */ 124); + /* harmony import */ var _orders_orders_component__WEBPACK_IMPORTED_MODULE_0__ = + __webpack_require__(/*! ./orders/orders.component */ 63); + /* harmony import */ var _manage_products_manage_products_component__WEBPACK_IMPORTED_MODULE_1__ = + __webpack_require__( + /*! ./manage-products/manage-products.component */ 8677 + ); + /* harmony import */ var _edit_product_edit_product_component__WEBPACK_IMPORTED_MODULE_2__ = + __webpack_require__( + /*! ./edit-product/edit-product.component */ 1171 + ); + /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = + __webpack_require__(/*! @angular/core */ 2560); + + const routes = [ + { + path: "orders", + component: + _orders_orders_component__WEBPACK_IMPORTED_MODULE_0__.OrdersComponent, + }, + { + path: "products", + component: + _manage_products_manage_products_component__WEBPACK_IMPORTED_MODULE_1__.ManageProductsComponent, + }, + { + path: "products/new", + component: + _edit_product_edit_product_component__WEBPACK_IMPORTED_MODULE_2__.EditProductComponent, + }, + { + path: "products/:productId", + component: + _edit_product_edit_product_component__WEBPACK_IMPORTED_MODULE_2__.EditProductComponent, + }, + ]; + class AdminRoutingModule {} + AdminRoutingModule.ɵfac = function AdminRoutingModule_Factory(t) { + return new (t || AdminRoutingModule)(); + }; + AdminRoutingModule.ɵmod = + /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_3__[ + "ɵɵdefineNgModule" + ]({ + type: AdminRoutingModule, + }); + AdminRoutingModule.ɵinj = + /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_3__[ + "ɵɵdefineInjector" + ]({ + imports: [ + _angular_router__WEBPACK_IMPORTED_MODULE_4__.RouterModule.forChild( + routes + ), + _angular_router__WEBPACK_IMPORTED_MODULE_4__.RouterModule, + ], + }); + (function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵsetNgModuleScope"]( + AdminRoutingModule, + { + imports: [ + _angular_router__WEBPACK_IMPORTED_MODULE_4__.RouterModule, + ], + exports: [ + _angular_router__WEBPACK_IMPORTED_MODULE_4__.RouterModule, + ], + } + ); + })(); + + /***/ + }, + + /***/ 7095: + /*!***************************************!*\ + !*** ./src/app/admin/admin.module.ts ***! + \***************************************/ + /***/ ( + __unused_webpack_module, + __webpack_exports__, + __webpack_require__ + ) => { + __webpack_require__.r(__webpack_exports__); + /* harmony export */ __webpack_require__.d(__webpack_exports__, { + /* harmony export */ AdminModule: () => /* binding */ AdminModule, + /* harmony export */ + }); + /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_8__ = + __webpack_require__(/*! @angular/common */ 4666); + /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_14__ = + __webpack_require__(/*! @angular/forms */ 2508); + /* harmony import */ var _angular_material_card__WEBPACK_IMPORTED_MODULE_9__ = + __webpack_require__(/*! @angular/material/card */ 2156); + /* harmony import */ var _angular_material_input__WEBPACK_IMPORTED_MODULE_10__ = + __webpack_require__(/*! @angular/material/input */ 8562); + /* harmony import */ var _angular_material_progress_spinner__WEBPACK_IMPORTED_MODULE_13__ = + __webpack_require__(/*! @angular/material/progress-spinner */ 6511); + /* harmony import */ var _admin_routing_module__WEBPACK_IMPORTED_MODULE_0__ = + __webpack_require__(/*! ./admin-routing.module */ 3176); + /* harmony import */ var _orders_orders_component__WEBPACK_IMPORTED_MODULE_1__ = + __webpack_require__(/*! ./orders/orders.component */ 63); + /* harmony import */ var _angular_material_table__WEBPACK_IMPORTED_MODULE_11__ = + __webpack_require__(/*! @angular/material/table */ 5288); + /* harmony import */ var _orders_orders_service__WEBPACK_IMPORTED_MODULE_2__ = + __webpack_require__(/*! ./orders/orders.service */ 3259); + /* harmony import */ var _manage_products_manage_products_component__WEBPACK_IMPORTED_MODULE_3__ = + __webpack_require__( + /*! ./manage-products/manage-products.component */ 8677 + ); + /* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_12__ = + __webpack_require__(/*! @angular/material/button */ 4522); + /* harmony import */ var _shared_file_picker_file_picker_module__WEBPACK_IMPORTED_MODULE_4__ = + __webpack_require__( + /*! ../shared/file-picker/file-picker.module */ 2145 + ); + /* harmony import */ var _manage_products_manage_products_service__WEBPACK_IMPORTED_MODULE_5__ = + __webpack_require__( + /*! ./manage-products/manage-products.service */ 9310 + ); + /* harmony import */ var _edit_product_edit_product_component__WEBPACK_IMPORTED_MODULE_6__ = + __webpack_require__( + /*! ./edit-product/edit-product.component */ 1171 + ); + /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_7__ = + __webpack_require__(/*! @angular/core */ 2560); + + class AdminModule {} + AdminModule.ɵfac = function AdminModule_Factory(t) { + return new (t || AdminModule)(); + }; + AdminModule.ɵmod = + /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_7__[ + "ɵɵdefineNgModule" + ]({ + type: AdminModule, + }); + AdminModule.ɵinj = + /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_7__[ + "ɵɵdefineInjector" + ]({ + providers: [ + _orders_orders_service__WEBPACK_IMPORTED_MODULE_2__.OrdersService, + _manage_products_manage_products_service__WEBPACK_IMPORTED_MODULE_5__.ManageProductsService, + ], + imports: [ + _admin_routing_module__WEBPACK_IMPORTED_MODULE_0__.AdminRoutingModule, + _angular_common__WEBPACK_IMPORTED_MODULE_8__.CommonModule, + _shared_file_picker_file_picker_module__WEBPACK_IMPORTED_MODULE_4__.FilePickerModule, + _angular_material_card__WEBPACK_IMPORTED_MODULE_9__.MatCardModule, + _angular_material_input__WEBPACK_IMPORTED_MODULE_10__.MatInputModule, + _angular_material_table__WEBPACK_IMPORTED_MODULE_11__.MatTableModule, + _angular_material_button__WEBPACK_IMPORTED_MODULE_12__.MatButtonModule, + _angular_material_progress_spinner__WEBPACK_IMPORTED_MODULE_13__.MatProgressSpinnerModule, + _angular_forms__WEBPACK_IMPORTED_MODULE_14__.ReactiveFormsModule, + ], + }); + (function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵsetNgModuleScope"]( + AdminModule, + { + declarations: [ + _orders_orders_component__WEBPACK_IMPORTED_MODULE_1__.OrdersComponent, + _manage_products_manage_products_component__WEBPACK_IMPORTED_MODULE_3__.ManageProductsComponent, + _edit_product_edit_product_component__WEBPACK_IMPORTED_MODULE_6__.EditProductComponent, + ], + imports: [ + _admin_routing_module__WEBPACK_IMPORTED_MODULE_0__.AdminRoutingModule, + _angular_common__WEBPACK_IMPORTED_MODULE_8__.CommonModule, + _shared_file_picker_file_picker_module__WEBPACK_IMPORTED_MODULE_4__.FilePickerModule, + _angular_material_card__WEBPACK_IMPORTED_MODULE_9__.MatCardModule, + _angular_material_input__WEBPACK_IMPORTED_MODULE_10__.MatInputModule, + _angular_material_table__WEBPACK_IMPORTED_MODULE_11__.MatTableModule, + _angular_material_button__WEBPACK_IMPORTED_MODULE_12__.MatButtonModule, + _angular_material_progress_spinner__WEBPACK_IMPORTED_MODULE_13__.MatProgressSpinnerModule, + _angular_forms__WEBPACK_IMPORTED_MODULE_14__.ReactiveFormsModule, + ], + } + ); + })(); + + /***/ + }, + + /***/ 1171: + /*!**************************************************************!*\ + !*** ./src/app/admin/edit-product/edit-product.component.ts ***! + \**************************************************************/ + /***/ ( + __unused_webpack_module, + __webpack_exports__, + __webpack_require__ + ) => { + __webpack_require__.r(__webpack_exports__); + /* harmony export */ __webpack_require__.d(__webpack_exports__, { + /* harmony export */ EditProductComponent: () => + /* binding */ EditProductComponent, + /* harmony export */ + }); + /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_5__ = + __webpack_require__(/*! @angular/forms */ 2508); + /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_3__ = + __webpack_require__(/*! rxjs */ 6317); + /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_4__ = + __webpack_require__(/*! rxjs */ 228); + /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_6__ = + __webpack_require__(/*! rxjs/operators */ 2313); + /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_7__ = + __webpack_require__(/*! rxjs/operators */ 8951); + /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = + __webpack_require__(/*! @angular/core */ 2560); + /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_8__ = + __webpack_require__(/*! @angular/router */ 124); + /* harmony import */ var _core_notification_service__WEBPACK_IMPORTED_MODULE_0__ = + __webpack_require__(/*! ../../core/notification.service */ 7319); + /* harmony import */ var _products_products_service__WEBPACK_IMPORTED_MODULE_1__ = + __webpack_require__(/*! ../../products/products.service */ 9855); + /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_9__ = + __webpack_require__(/*! @angular/common */ 4666); + /* harmony import */ var _angular_material_card__WEBPACK_IMPORTED_MODULE_10__ = + __webpack_require__(/*! @angular/material/card */ 2156); + /* harmony import */ var _angular_material_input__WEBPACK_IMPORTED_MODULE_11__ = + __webpack_require__(/*! @angular/material/input */ 8562); + /* harmony import */ var _angular_material_form_field__WEBPACK_IMPORTED_MODULE_12__ = + __webpack_require__(/*! @angular/material/form-field */ 5074); + /* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_13__ = + __webpack_require__(/*! @angular/material/button */ 4522); + /* harmony import */ var _angular_material_progress_spinner__WEBPACK_IMPORTED_MODULE_14__ = + __webpack_require__(/*! @angular/material/progress-spinner */ 6511); + + function EditProductComponent_mat_card_0_mat_error_10_Template( + rf, + ctx + ) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"]( + 0, + "mat-error" + ); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"]( + 1, + " Product title is required " + ); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); + } + } + function EditProductComponent_mat_card_0_mat_error_16_Template( + rf, + ctx + ) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"]( + 0, + "mat-error" + ); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"]( + 1, + " Product description is required " + ); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); + } + } + function EditProductComponent_mat_card_0_mat_error_22_Template( + rf, + ctx + ) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"]( + 0, + "mat-error" + ); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"]( + 1, + " Product price is required " + ); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); + } + } + function EditProductComponent_mat_card_0_mat_error_28_Template( + rf, + ctx + ) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"]( + 0, + "mat-error" + ); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"]( + 1, + " Product count is required " + ); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); + } + } + function EditProductComponent_mat_card_0_Template(rf, ctx) { + if (rf & 1) { + const _r8 = + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"](); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"]( + 0, + "mat-card" + )(1, "h1", 2); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"]( + 3, + "mat-card-content" + )(4, "form", 3)(5, "div", 4)( + 6, + "mat-form-field", + 5 + )(7, "mat-label"); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8, "Title"); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"]( + 9, + "input", + 6 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"]( + 10, + EditProductComponent_mat_card_0_mat_error_10_Template, + 2, + 0, + "mat-error", + 7 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()(); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"]( + 11, + "div", + 4 + )( + 12, + "mat-form-field", + 5 + )(13, "mat-label"); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"]( + 14, + "Description" + ); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"]( + 15, + "textarea", + 8 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"]( + 16, + EditProductComponent_mat_card_0_mat_error_16_Template, + 2, + 0, + "mat-error", + 7 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()(); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"]( + 17, + "div", + 9 + )( + 18, + "mat-form-field", + 5 + )(19, "mat-label"); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"]( + 20, + "Price ($)" + ); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"]( + 21, + "input", + 10 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"]( + 22, + EditProductComponent_mat_card_0_mat_error_22_Template, + 2, + 0, + "mat-error", + 7 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()(); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"]( + 23, + "div", + 9 + )( + 24, + "mat-form-field", + 5 + )(25, "mat-label"); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](26, "Count"); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"]( + 27, + "input", + 11 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"]( + 28, + EditProductComponent_mat_card_0_mat_error_28_Template, + 2, + 0, + "mat-error", + 7 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()()(); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"]( + 29, + "mat-card-actions" + )(30, "button", 12); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"]( + 31, + " cancel " + ); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"]( + 32, + "button", + 13 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]( + "click", + function EditProductComponent_mat_card_0_Template_button_click_32_listener() { + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"]( + _r8 + ); + const ctx_r7 = + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); + return _angular_core__WEBPACK_IMPORTED_MODULE_2__[ + "ɵɵresetView" + ](ctx_r7.editProduct()); + } + ); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"]( + 33, + " save product " + ); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()(); + } + if (rf & 2) { + const ctx_r0 = + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]( + " ", + ctx_r0.productId ? "Edit product" : "Create new product", + " " + ); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]( + "formGroup", + ctx_r0.form + ); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](6); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]( + "ngIf", + ctx_r0.titleCtrl.touched && ctx_r0.titleCtrl.hasError("required") + ); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](6); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]( + "ngIf", + ctx_r0.descriptionCtrl.touched && + ctx_r0.descriptionCtrl.hasError("required") + ); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](6); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]( + "ngIf", + ctx_r0.priceCtrl.touched && ctx_r0.priceCtrl.hasError("required") + ); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](6); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]( + "ngIf", + ctx_r0.countCtrl.touched && ctx_r0.countCtrl.hasError("required") + ); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]( + "disabled", + ctx_r0.form.invalid || ctx_r0.requestInProgress + ); + } + } + function EditProductComponent_ng_template_2_Template(rf, ctx) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"]( + 0, + "div", + 14 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"]( + 1, + "mat-spinner", + 15 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); + } + if (rf & 2) { + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]( + "diameter", + 40 + ); + } + } + class EditProductComponent { + constructor( + activatedRoute, + fb, + notificationService, + productsService, + router + ) { + this.activatedRoute = activatedRoute; + this.fb = fb; + this.notificationService = notificationService; + this.productsService = productsService; + this.router = router; + this.productId = null; + this.requestInProgress = false; + this.loaded$ = + new rxjs__WEBPACK_IMPORTED_MODULE_3__.BehaviorSubject(false); + this.onDestroy$ = new rxjs__WEBPACK_IMPORTED_MODULE_4__.Subject(); + this.form = this.fb.group({ + title: [ + "", + _angular_forms__WEBPACK_IMPORTED_MODULE_5__.Validators.required, + ], + description: [ + "", + _angular_forms__WEBPACK_IMPORTED_MODULE_5__.Validators.required, + ], + price: [ + "", + _angular_forms__WEBPACK_IMPORTED_MODULE_5__.Validators.required, + ], + count: [ + "", + _angular_forms__WEBPACK_IMPORTED_MODULE_5__.Validators.required, + ], + }); + } + get countCtrl() { + return this.form.get("count"); + } + get descriptionCtrl() { + return this.form.get("description"); + } + get priceCtrl() { + return this.form.get("price"); + } + get titleCtrl() { + return this.form.get("title"); + } + ngOnInit() { + const productId = + this.activatedRoute.snapshot.paramMap.get("productId"); + if (!productId) { + this.loaded$.next(true); + return; + } + this.productsService + .getProductById(productId) + .pipe( + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.finalize)(() => + this.loaded$.next(true) + ), + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.takeUntil)( + this.onDestroy$ + ) + ) + .subscribe((product) => { + if (product) { + this.form.patchValue(product); + this.productId = product.id; + } + }); + } + ngOnDestroy() { + this.onDestroy$.next(); + this.onDestroy$.complete(); + } + editProduct() { + const product = this.form.value; + if (!product) { + return; + } + const editProduct$ = this.productId + ? this.productsService.editProduct(this.productId, product) + : this.productsService.createNewProduct(product); + this.requestInProgress = true; + editProduct$.subscribe( + () => + this.router.navigate(["../"], { + relativeTo: this.activatedRoute, + }), + (error) => { + console.warn(error); + this.requestInProgress = false; + this.notificationService.showError( + `Failed to ${this.productId ? "edit" : "create"} product` + ); + } + ); + } + } + EditProductComponent.ɵfac = function EditProductComponent_Factory(t) { + return new (t || EditProductComponent)( + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"]( + _angular_router__WEBPACK_IMPORTED_MODULE_8__.ActivatedRoute + ), + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"]( + _angular_forms__WEBPACK_IMPORTED_MODULE_5__.UntypedFormBuilder + ), + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"]( + _core_notification_service__WEBPACK_IMPORTED_MODULE_0__.NotificationService + ), + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"]( + _products_products_service__WEBPACK_IMPORTED_MODULE_1__.ProductsService + ), + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"]( + _angular_router__WEBPACK_IMPORTED_MODULE_8__.Router + ) + ); + }; + EditProductComponent.ɵcmp = + /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_2__[ + "ɵɵdefineComponent" + ]({ + type: EditProductComponent, + selectors: [["app-edit-product"]], + decls: 4, + vars: 4, + consts: [ + [4, "ngIf", "ngIfElse"], + ["loaderTemplate", ""], + ["mat-card-title", "", 1, "text-center", "pt-4"], + [1, "row", 3, "formGroup"], + [1, "col-12"], + [1, "w-100"], + ["matInput", "", "formControlName", "title"], + [4, "ngIf"], + ["matInput", "", "formControlName", "description"], + [1, "col", "col-md-6"], + ["type", "number", "matInput", "", "formControlName", "price"], + ["type", "number", "matInput", "", "formControlName", "count"], + [ + "mat-flat-button", + "", + "routerLink", + "..", + 1, + "text-uppercase", + "mr-2", + ], + [ + "color", + "primary", + "mat-flat-button", + "", + 1, + "text-uppercase", + 3, + "disabled", + "click", + ], + [1, "py-5"], + [1, "mx-auto", 3, "diameter"], + ], + template: function EditProductComponent_Template(rf, ctx) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"]( + 0, + EditProductComponent_mat_card_0_Template, + 34, + 7, + "mat-card", + 0 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"]( + 1, + "async" + ); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"]( + 2, + EditProductComponent_ng_template_2_Template, + 2, + 1, + "ng-template", + null, + 1, + _angular_core__WEBPACK_IMPORTED_MODULE_2__[ + "ɵɵtemplateRefExtractor" + ] + ); + } + if (rf & 2) { + const _r1 = + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵreference"](3); + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]( + "ngIf", + _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"]( + 1, + 2, + ctx.loaded$ + ) + )("ngIfElse", _r1); + } + }, + dependencies: [ + _angular_router__WEBPACK_IMPORTED_MODULE_8__.RouterLink, + _angular_common__WEBPACK_IMPORTED_MODULE_9__.NgIf, + _angular_material_card__WEBPACK_IMPORTED_MODULE_10__.MatCard, + _angular_material_card__WEBPACK_IMPORTED_MODULE_10__.MatCardActions, + _angular_material_card__WEBPACK_IMPORTED_MODULE_10__.MatCardContent, + _angular_material_card__WEBPACK_IMPORTED_MODULE_10__.MatCardTitle, + _angular_material_input__WEBPACK_IMPORTED_MODULE_11__.MatInput, + _angular_material_form_field__WEBPACK_IMPORTED_MODULE_12__.MatFormField, + _angular_material_form_field__WEBPACK_IMPORTED_MODULE_12__.MatLabel, + _angular_material_form_field__WEBPACK_IMPORTED_MODULE_12__.MatError, + _angular_material_button__WEBPACK_IMPORTED_MODULE_13__.MatButton, + _angular_material_progress_spinner__WEBPACK_IMPORTED_MODULE_14__.MatProgressSpinner, + _angular_forms__WEBPACK_IMPORTED_MODULE_5__["ɵNgNoValidate"], + _angular_forms__WEBPACK_IMPORTED_MODULE_5__.DefaultValueAccessor, + _angular_forms__WEBPACK_IMPORTED_MODULE_5__.NumberValueAccessor, + _angular_forms__WEBPACK_IMPORTED_MODULE_5__.NgControlStatus, + _angular_forms__WEBPACK_IMPORTED_MODULE_5__.NgControlStatusGroup, + _angular_forms__WEBPACK_IMPORTED_MODULE_5__.FormGroupDirective, + _angular_forms__WEBPACK_IMPORTED_MODULE_5__.FormControlName, + _angular_common__WEBPACK_IMPORTED_MODULE_9__.AsyncPipe, + ], + styles: [ + "\n/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */", + ], + changeDetection: 0, + }); + + /***/ + }, + + /***/ 8677: + /*!********************************************************************!*\ + !*** ./src/app/admin/manage-products/manage-products.component.ts ***! + \********************************************************************/ + /***/ ( + __unused_webpack_module, + __webpack_exports__, + __webpack_require__ + ) => { + __webpack_require__.r(__webpack_exports__); + /* harmony export */ __webpack_require__.d(__webpack_exports__, { + /* harmony export */ ManageProductsComponent: () => + /* binding */ ManageProductsComponent, + /* harmony export */ + }); + /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = + __webpack_require__(/*! @angular/core */ 2560); + /* harmony import */ var _products_products_service__WEBPACK_IMPORTED_MODULE_0__ = + __webpack_require__(/*! ../../products/products.service */ 9855); + /* harmony import */ var _manage_products_service__WEBPACK_IMPORTED_MODULE_1__ = + __webpack_require__(/*! ./manage-products.service */ 9310); + /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_4__ = + __webpack_require__(/*! @angular/router */ 124); + /* harmony import */ var _shared_file_picker_file_picker_component__WEBPACK_IMPORTED_MODULE_2__ = + __webpack_require__( + /*! ../../shared/file-picker/file-picker.component */ 17 + ); + /* harmony import */ var _angular_material_table__WEBPACK_IMPORTED_MODULE_5__ = + __webpack_require__(/*! @angular/material/table */ 5288); + /* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_6__ = + __webpack_require__(/*! @angular/material/button */ 4522); + /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_7__ = + __webpack_require__(/*! @angular/common */ 4666); + + function ManageProductsComponent_th_8_Template(rf, ctx) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"]( + 0, + "th", + 13 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1, "Title"); + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); + } + } + function ManageProductsComponent_td_9_Template(rf, ctx) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"]( + 0, + "td", + 14 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1); + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); + } + if (rf & 2) { + const product_r12 = ctx.$implicit; + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1); + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"]( + " ", + product_r12.title, + " " + ); + } + } + function ManageProductsComponent_th_11_Template(rf, ctx) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"]( + 0, + "th", + 13 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"]( + 1, + "Description" + ); + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); + } + } + function ManageProductsComponent_td_12_Template(rf, ctx) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"]( + 0, + "td", + 14 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1); + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); + } + if (rf & 2) { + const product_r13 = ctx.$implicit; + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1); + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"]( + product_r13.description + ); + } + } + function ManageProductsComponent_th_14_Template(rf, ctx) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"]( + 0, + "th", + 13 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1, "Price"); + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); + } + } + function ManageProductsComponent_td_15_Template(rf, ctx) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"]( + 0, + "td", + 14 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1); + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](2, "currency"); + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](3, "number"); + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); + } + if (rf & 2) { + const product_r14 = ctx.$implicit; + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1); + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"]( + " ", + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipeBind1"]( + 2, + 1, + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipeBind2"]( + 3, + 3, + product_r14.price, + "1.2-2" + ) + ), + " " + ); + } + } + function ManageProductsComponent_th_17_Template(rf, ctx) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"]( + 0, + "th", + 13 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1, "Count"); + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); + } + } + function ManageProductsComponent_td_18_Template(rf, ctx) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"]( + 0, + "td", + 14 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1); + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); + } + if (rf & 2) { + const product_r15 = ctx.$implicit; + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1); + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"]( + product_r15.count + ); + } + } + function ManageProductsComponent_th_20_Template(rf, ctx) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"]( + 0, + "th", + 13 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1, "Action"); + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); + } + } + function ManageProductsComponent_td_21_Template(rf, ctx) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"]( + 0, + "td", + 14 + )(1, "button", 15); + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2, " manage "); + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"]( + 3, + "button", + 16 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](4, " delete "); + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()(); + } + if (rf & 2) { + const product_r16 = ctx.$implicit; + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1); + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]( + "routerLink", + product_r16.id + ); + } + } + function ManageProductsComponent_tr_22_Template(rf, ctx) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"]( + 0, + "tr", + 17 + ); + } + } + function ManageProductsComponent_tr_23_Template(rf, ctx) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"]( + 0, + "tr", + 18 + ); + } + } + class ManageProductsComponent { + constructor(productsService, manageProductsService, cdr) { + this.productsService = productsService; + this.manageProductsService = manageProductsService; + this.cdr = cdr; + this.columns = ["from", "description", "price", "count", "action"]; + this.selectedFile = null; + } + ngOnInit() { + this.products$ = this.productsService.getProducts(); + } + onUploadCSV() { + if (!this.selectedFile) { + return; + } + this.manageProductsService + .uploadProductsCSV(this.selectedFile) + .subscribe(() => { + this.selectedFile = null; + this.cdr.markForCheck(); + }); + } + } + ManageProductsComponent.ɵfac = function ManageProductsComponent_Factory( + t + ) { + return new (t || ManageProductsComponent)( + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"]( + _products_products_service__WEBPACK_IMPORTED_MODULE_0__.ProductsService + ), + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"]( + _manage_products_service__WEBPACK_IMPORTED_MODULE_1__.ManageProductsService + ), + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_3__.ChangeDetectorRef + ) + ); + }; + ManageProductsComponent.ɵcmp = + /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_3__[ + "ɵɵdefineComponent" + ]({ + type: ManageProductsComponent, + selectors: [["app-manage-products"]], + decls: 24, + vars: 4, + consts: [ + [1, "d-flex"], + [1, "mr-2", 3, "file", "fileChange", "uploadClick"], + [ + "color", + "primary", + "mat-flat-button", + "", + "routerLink", + "new", + 1, + "text-uppercase", + ], + ["mat-table", "", 1, "w-100", 3, "dataSource"], + ["matColumnDef", "from"], + ["mat-header-cell", "", 4, "matHeaderCellDef"], + ["mat-cell", "", 4, "matCellDef"], + ["matColumnDef", "description"], + ["matColumnDef", "price"], + ["matColumnDef", "count"], + ["matColumnDef", "action"], + ["mat-header-row", "", 4, "matHeaderRowDef"], + ["mat-row", "", 4, "matRowDef", "matRowDefColumns"], + ["mat-header-cell", ""], + ["mat-cell", ""], + [ + "color", + "primary", + "mat-flat-button", + "", + 1, + "text-uppercase", + "mr-2", + 3, + "routerLink", + ], + ["color", "warn", "mat-flat-button", "", 1, "text-uppercase"], + ["mat-header-row", ""], + ["mat-row", ""], + ], + template: function ManageProductsComponent_Template(rf, ctx) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"]( + 0, + "h1" + ); + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"]( + 1, + "Manage products" + ); + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"]( + 2, + "div", + 0 + )(3, "app-file-picker", 1); + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]( + "fileChange", + function ManageProductsComponent_Template_app_file_picker_fileChange_3_listener( + $event + ) { + return (ctx.selectedFile = $event); + } + )( + "uploadClick", + function ManageProductsComponent_Template_app_file_picker_uploadClick_3_listener() { + return ctx.onUploadCSV(); + } + ); + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"]( + 4, + "button", + 2 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"]( + 5, + " create product " + ); + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()(); + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"]( + 6, + "table", + 3 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_3__[ + "ɵɵelementContainerStart" + ](7, 4); + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"]( + 8, + ManageProductsComponent_th_8_Template, + 2, + 0, + "th", + 5 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"]( + 9, + ManageProductsComponent_td_9_Template, + 2, + 1, + "td", + 6 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_3__[ + "ɵɵelementContainerEnd" + ](); + _angular_core__WEBPACK_IMPORTED_MODULE_3__[ + "ɵɵelementContainerStart" + ](10, 7); + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"]( + 11, + ManageProductsComponent_th_11_Template, + 2, + 0, + "th", + 5 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"]( + 12, + ManageProductsComponent_td_12_Template, + 2, + 1, + "td", + 6 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_3__[ + "ɵɵelementContainerEnd" + ](); + _angular_core__WEBPACK_IMPORTED_MODULE_3__[ + "ɵɵelementContainerStart" + ](13, 8); + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"]( + 14, + ManageProductsComponent_th_14_Template, + 2, + 0, + "th", + 5 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"]( + 15, + ManageProductsComponent_td_15_Template, + 4, + 6, + "td", + 6 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_3__[ + "ɵɵelementContainerEnd" + ](); + _angular_core__WEBPACK_IMPORTED_MODULE_3__[ + "ɵɵelementContainerStart" + ](16, 9); + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"]( + 17, + ManageProductsComponent_th_17_Template, + 2, + 0, + "th", + 5 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"]( + 18, + ManageProductsComponent_td_18_Template, + 2, + 1, + "td", + 6 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_3__[ + "ɵɵelementContainerEnd" + ](); + _angular_core__WEBPACK_IMPORTED_MODULE_3__[ + "ɵɵelementContainerStart" + ](19, 10); + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"]( + 20, + ManageProductsComponent_th_20_Template, + 2, + 0, + "th", + 5 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"]( + 21, + ManageProductsComponent_td_21_Template, + 5, + 1, + "td", + 6 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_3__[ + "ɵɵelementContainerEnd" + ](); + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"]( + 22, + ManageProductsComponent_tr_22_Template, + 1, + 0, + "tr", + 11 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"]( + 23, + ManageProductsComponent_tr_23_Template, + 1, + 0, + "tr", + 12 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); + } + if (rf & 2) { + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](3); + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]( + "file", + ctx.selectedFile + ); + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](3); + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]( + "dataSource", + ctx.products$ + ); + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](16); + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]( + "matHeaderRowDef", + ctx.columns + ); + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1); + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]( + "matRowDefColumns", + ctx.columns + ); + } + }, + dependencies: [ + _angular_router__WEBPACK_IMPORTED_MODULE_4__.RouterLink, + _shared_file_picker_file_picker_component__WEBPACK_IMPORTED_MODULE_2__.FilePickerComponent, + _angular_material_table__WEBPACK_IMPORTED_MODULE_5__.MatTable, + _angular_material_table__WEBPACK_IMPORTED_MODULE_5__.MatHeaderCellDef, + _angular_material_table__WEBPACK_IMPORTED_MODULE_5__.MatHeaderRowDef, + _angular_material_table__WEBPACK_IMPORTED_MODULE_5__.MatColumnDef, + _angular_material_table__WEBPACK_IMPORTED_MODULE_5__.MatCellDef, + _angular_material_table__WEBPACK_IMPORTED_MODULE_5__.MatRowDef, + _angular_material_table__WEBPACK_IMPORTED_MODULE_5__.MatHeaderCell, + _angular_material_table__WEBPACK_IMPORTED_MODULE_5__.MatCell, + _angular_material_table__WEBPACK_IMPORTED_MODULE_5__.MatHeaderRow, + _angular_material_table__WEBPACK_IMPORTED_MODULE_5__.MatRow, + _angular_material_button__WEBPACK_IMPORTED_MODULE_6__.MatButton, + _angular_common__WEBPACK_IMPORTED_MODULE_7__.DecimalPipe, + _angular_common__WEBPACK_IMPORTED_MODULE_7__.CurrencyPipe, + ], + styles: [ + "\n/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */", + ], + }); + + /***/ + }, + + /***/ 9310: + /*!******************************************************************!*\ + !*** ./src/app/admin/manage-products/manage-products.service.ts ***! + \******************************************************************/ + /***/ ( + __unused_webpack_module, + __webpack_exports__, + __webpack_require__ + ) => { + __webpack_require__.r(__webpack_exports__); + /* harmony export */ __webpack_require__.d(__webpack_exports__, { + /* harmony export */ ManageProductsService: () => + /* binding */ ManageProductsService, + /* harmony export */ + }); + /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_1__ = + __webpack_require__(/*! rxjs */ 591); + /* harmony import */ var _core_api_service__WEBPACK_IMPORTED_MODULE_0__ = + __webpack_require__(/*! ../../core/api.service */ 9274); + /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = + __webpack_require__(/*! rxjs/operators */ 2673); + /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = + __webpack_require__(/*! @angular/core */ 2560); + + class ManageProductsService extends _core_api_service__WEBPACK_IMPORTED_MODULE_0__.ApiService { + constructor(injector) { + super(injector); + } + uploadProductsCSV(file) { + if (!this.endpointEnabled("import")) { + console.warn( + 'Endpoint "import" is disabled. To enable change your environment.ts config' + ); + return rxjs__WEBPACK_IMPORTED_MODULE_1__.EMPTY; + } + return this.getPreSignedUrl(file.name).pipe( + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_2__.switchMap)( + (url) => + this.http.put(url, file, { + headers: { + // eslint-disable-next-line @typescript-eslint/naming-convention + "Content-Type": "text/csv", + }, + }) + ) + ); + } + getPreSignedUrl(fileName) { + const url = this.getUrl("import", "import"); + return this.http.get(url, { + params: { + name: fileName, + }, + }); + } + } + ManageProductsService.ɵfac = function ManageProductsService_Factory(t) { + return new (t || ManageProductsService)( + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵinject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_3__.Injector + ) + ); + }; + ManageProductsService.ɵprov = + /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_3__[ + "ɵɵdefineInjectable" + ]({ + token: ManageProductsService, + factory: ManageProductsService.ɵfac, + }); + + /***/ + }, + + /***/ 63: + /*!**************************************************!*\ + !*** ./src/app/admin/orders/orders.component.ts ***! + \**************************************************/ + /***/ ( + __unused_webpack_module, + __webpack_exports__, + __webpack_require__ + ) => { + __webpack_require__.r(__webpack_exports__); + /* harmony export */ __webpack_require__.d(__webpack_exports__, { + /* harmony export */ OrdersComponent: () => + /* binding */ OrdersComponent, + /* harmony export */ + }); + /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = + __webpack_require__(/*! @angular/core */ 2560); + /* harmony import */ var _orders_service__WEBPACK_IMPORTED_MODULE_0__ = + __webpack_require__(/*! ./orders.service */ 3259); + /* harmony import */ var _angular_material_table__WEBPACK_IMPORTED_MODULE_2__ = + __webpack_require__(/*! @angular/material/table */ 5288); + + function OrdersComponent_th_4_Template(rf, ctx) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"]( + 0, + "th", + 10 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "From"); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); + } + } + function OrdersComponent_td_5_Template(rf, ctx) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"]( + 0, + "td", + 11 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); + } + if (rf & 2) { + const order_r12 = ctx.$implicit; + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate2"]( + " ", + order_r12.address.firstName, + " ", + order_r12.address.firstName, + " " + ); + } + } + function OrdersComponent_th_7_Template(rf, ctx) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"]( + 0, + "th", + 10 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "Count"); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); + } + } + function OrdersComponent_td_8_Template(rf, ctx) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"]( + 0, + "td", + 11 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); + } + if (rf & 2) { + const order_r13 = ctx.$implicit; + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"]( + order_r13.items.length + ); + } + } + function OrdersComponent_th_10_Template(rf, ctx) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"]( + 0, + "th", + 10 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "Address"); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); + } + } + function OrdersComponent_td_11_Template(rf, ctx) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"]( + 0, + "td", + 11 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); + } + if (rf & 2) { + const order_r14 = ctx.$implicit; + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"]( + order_r14.address.address + ); + } + } + function OrdersComponent_th_13_Template(rf, ctx) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"]( + 0, + "th", + 10 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "Status"); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); + } + } + function OrdersComponent_td_14_Template(rf, ctx) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"]( + 0, + "td", + 11 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); + } + if (rf & 2) { + const order_r15 = ctx.$implicit; + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"]( + order_r15.items.length + ); + } + } + function OrdersComponent_th_16_Template(rf, ctx) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"]( + 0, + "th", + 10 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "Action"); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); + } + } + function OrdersComponent_td_17_Template(rf, ctx) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"]( + 0, + "td", + 11 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); + } + if (rf & 2) { + const order_r16 = ctx.$implicit; + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"]( + order_r16.items.length + ); + } + } + function OrdersComponent_tr_18_Template(rf, ctx) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"]( + 0, + "tr", + 12 + ); + } + } + function OrdersComponent_tr_19_Template(rf, ctx) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"]( + 0, + "tr", + 13 + ); + } + } + class OrdersComponent { + constructor(ordersService) { + this.ordersService = ordersService; + this.columns = ["from", "count", "address", "status", "action"]; + } + ngOnInit() { + this.orders$ = this.ordersService.getOrders(); + } + } + OrdersComponent.ɵfac = function OrdersComponent_Factory(t) { + return new (t || OrdersComponent)( + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"]( + _orders_service__WEBPACK_IMPORTED_MODULE_0__.OrdersService + ) + ); + }; + OrdersComponent.ɵcmp = + /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵdefineComponent" + ]({ + type: OrdersComponent, + selectors: [["app-orders"]], + decls: 20, + vars: 3, + consts: [ + ["mat-table", "", 1, "w-100", 3, "dataSource"], + ["matColumnDef", "from"], + ["mat-header-cell", "", 4, "matHeaderCellDef"], + ["mat-cell", "", 4, "matCellDef"], + ["matColumnDef", "count"], + ["matColumnDef", "address"], + ["matColumnDef", "status"], + ["matColumnDef", "action"], + ["mat-header-row", "", 4, "matHeaderRowDef"], + ["mat-row", "", 4, "matRowDef", "matRowDefColumns"], + ["mat-header-cell", ""], + ["mat-cell", ""], + ["mat-header-row", ""], + ["mat-row", ""], + ], + template: function OrdersComponent_Template(rf, ctx) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"]( + 0, + "h1" + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"]( + 1, + "Manage orders" + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"]( + 2, + "table", + 0 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵelementContainerStart" + ](3, 1); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"]( + 4, + OrdersComponent_th_4_Template, + 2, + 0, + "th", + 2 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"]( + 5, + OrdersComponent_td_5_Template, + 2, + 2, + "td", + 3 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵelementContainerEnd" + ](); + _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵelementContainerStart" + ](6, 4); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"]( + 7, + OrdersComponent_th_7_Template, + 2, + 0, + "th", + 2 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"]( + 8, + OrdersComponent_td_8_Template, + 2, + 1, + "td", + 3 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵelementContainerEnd" + ](); + _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵelementContainerStart" + ](9, 5); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"]( + 10, + OrdersComponent_th_10_Template, + 2, + 0, + "th", + 2 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"]( + 11, + OrdersComponent_td_11_Template, + 2, + 1, + "td", + 3 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵelementContainerEnd" + ](); + _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵelementContainerStart" + ](12, 6); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"]( + 13, + OrdersComponent_th_13_Template, + 2, + 0, + "th", + 2 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"]( + 14, + OrdersComponent_td_14_Template, + 2, + 1, + "td", + 3 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵelementContainerEnd" + ](); + _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵelementContainerStart" + ](15, 7); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"]( + 16, + OrdersComponent_th_16_Template, + 2, + 0, + "th", + 2 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"]( + 17, + OrdersComponent_td_17_Template, + 2, + 1, + "td", + 3 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵelementContainerEnd" + ](); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"]( + 18, + OrdersComponent_tr_18_Template, + 1, + 0, + "tr", + 8 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"]( + 19, + OrdersComponent_tr_19_Template, + 1, + 0, + "tr", + 9 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); + } + if (rf & 2) { + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]( + "dataSource", + ctx.orders$ + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](16); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]( + "matHeaderRowDef", + ctx.columns + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]( + "matRowDefColumns", + ctx.columns + ); + } + }, + dependencies: [ + _angular_material_table__WEBPACK_IMPORTED_MODULE_2__.MatTable, + _angular_material_table__WEBPACK_IMPORTED_MODULE_2__.MatHeaderCellDef, + _angular_material_table__WEBPACK_IMPORTED_MODULE_2__.MatHeaderRowDef, + _angular_material_table__WEBPACK_IMPORTED_MODULE_2__.MatColumnDef, + _angular_material_table__WEBPACK_IMPORTED_MODULE_2__.MatCellDef, + _angular_material_table__WEBPACK_IMPORTED_MODULE_2__.MatRowDef, + _angular_material_table__WEBPACK_IMPORTED_MODULE_2__.MatHeaderCell, + _angular_material_table__WEBPACK_IMPORTED_MODULE_2__.MatCell, + _angular_material_table__WEBPACK_IMPORTED_MODULE_2__.MatHeaderRow, + _angular_material_table__WEBPACK_IMPORTED_MODULE_2__.MatRow, + ], + styles: [ + "\n/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */", + ], + }); + + /***/ + }, + + /***/ 3259: + /*!************************************************!*\ + !*** ./src/app/admin/orders/orders.service.ts ***! + \************************************************/ + /***/ ( + __unused_webpack_module, + __webpack_exports__, + __webpack_require__ + ) => { + __webpack_require__.r(__webpack_exports__); + /* harmony export */ __webpack_require__.d(__webpack_exports__, { + /* harmony export */ OrdersService: () => /* binding */ OrdersService, + /* harmony export */ + }); + /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = + __webpack_require__(/*! rxjs */ 745); + /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = + __webpack_require__(/*! @angular/core */ 2560); + + class OrdersService { + constructor() {} + getOrders() { + return (0, rxjs__WEBPACK_IMPORTED_MODULE_0__.of)([]); + } + } + OrdersService.ɵfac = function OrdersService_Factory(t) { + return new (t || OrdersService)(); + }; + OrdersService.ɵprov = + /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵdefineInjectable" + ]({ + token: OrdersService, + factory: OrdersService.ɵfac, + }); + + /***/ + }, + + /***/ 17: + /*!*************************************************************!*\ + !*** ./src/app/shared/file-picker/file-picker.component.ts ***! + \*************************************************************/ + /***/ ( + __unused_webpack_module, + __webpack_exports__, + __webpack_require__ + ) => { + __webpack_require__.r(__webpack_exports__); + /* harmony export */ __webpack_require__.d(__webpack_exports__, { + /* harmony export */ FilePickerComponent: () => + /* binding */ FilePickerComponent, + /* harmony export */ + }); + /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = + __webpack_require__(/*! @angular/core */ 2560); + /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = + __webpack_require__(/*! @angular/common */ 4666); + /* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_2__ = + __webpack_require__(/*! @angular/material/button */ 4522); + + function FilePickerComponent_ng_container_3_Template(rf, ctx) { + if (rf & 1) { + const _r5 = + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"](); + _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵelementContainerStart" + ](0); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"]( + 1, + "span", + 5 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"]( + 3, + "button", + 6 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]( + "click", + function FilePickerComponent_ng_container_3_Template_button_click_3_listener() { + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"]( + _r5 + ); + const ctx_r4 = + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); + return _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵresetView" + ](ctx_r4.uploadClick.emit()); + } + ); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, " Upload "); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"]( + 5, + "button", + 7 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]( + "click", + function FilePickerComponent_ng_container_3_Template_button_click_5_listener() { + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"]( + _r5 + ); + const ctx_r6 = + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); + return _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵresetView" + ](ctx_r6.removeFile()); + } + ); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, "Delete"); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); + _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵelementContainerEnd" + ](); + } + if (rf & 2) { + const ctx_r1 = + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]( + "Selected file: ", + ctx_r1.file.name, + "" + ); + } + } + function FilePickerComponent_ng_template_4_Template(rf, ctx) { + if (rf & 1) { + const _r8 = + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"](); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"]( + 0, + "span", + 5 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"]( + 1, + "Select file to upload" + ); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"]( + 2, + "button", + 8 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]( + "click", + function FilePickerComponent_ng_template_4_Template_button_click_2_listener() { + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"]( + _r8 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); + const _r0 = + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](1); + return _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵresetView" + ](_r0.click()); + } + ); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"]( + 3, + " Import Products CSV " + ); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); + } + } + class FilePickerComponent { + constructor() { + this.file = null; + this.fileChange = + new _angular_core__WEBPACK_IMPORTED_MODULE_0__.EventEmitter(); + this.uploadClick = + new _angular_core__WEBPACK_IMPORTED_MODULE_0__.EventEmitter(); + } + selectFile(files) { + if (!(files === null || files === void 0 ? void 0 : files.length)) { + this.removeFile(); + return; + } + const file = files.item(0); + if (!["text/csv", "application/vnd.ms-excel"].includes(file.type)) { + this.removeFile(); + return; + } + this.fileChange.emit(file); + this.file = file; + } + removeFile() { + this.file = null; + this.fileChange.emit(null); + } + } + FilePickerComponent.ɵfac = function FilePickerComponent_Factory(t) { + return new (t || FilePickerComponent)(); + }; + FilePickerComponent.ɵcmp = + /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineComponent" + ]({ + type: FilePickerComponent, + selectors: [["app-file-picker"]], + inputs: { + file: "file", + }, + outputs: { + fileChange: "fileChange", + uploadClick: "uploadClick", + }, + decls: 6, + vars: 2, + consts: [ + ["accept", "text/csv", "type", "file", 1, "d-none", 3, "change"], + ["fileInput", ""], + [1, "h5", "mb-0", "text-muted", "d-flex", "align-items-center"], + [4, "ngIf", "ngIfElse"], + ["selectFileTemplate", ""], + [1, "mr-3"], + [ + "color", + "primary", + "mat-flat-button", + "", + 1, + "mr-1", + 3, + "click", + ], + ["color", "warn", "mat-flat-button", "", 3, "click"], + ["color", "accent", "mat-flat-button", "", 3, "click"], + ], + template: function FilePickerComponent_Template(rf, ctx) { + if (rf & 1) { + const _r9 = + _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵgetCurrentView" + ](); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"]( + 0, + "input", + 0, + 1 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]( + "change", + function FilePickerComponent_Template_input_change_0_listener() { + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"]( + _r9 + ); + const _r0 = + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"]( + 1 + ); + return _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵresetView" + ](ctx.selectFile(_r0.files)); + } + ); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"]( + 2, + "div", + 2 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"]( + 3, + FilePickerComponent_ng_container_3_Template, + 7, + 1, + "ng-container", + 3 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"]( + 4, + FilePickerComponent_ng_template_4_Template, + 4, + 0, + "ng-template", + null, + 4, + _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵtemplateRefExtractor" + ] + ); + } + if (rf & 2) { + const _r2 = + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](5); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]( + "ngIf", + ctx.file + )("ngIfElse", _r2); + } + }, + dependencies: [ + _angular_common__WEBPACK_IMPORTED_MODULE_1__.NgIf, + _angular_material_button__WEBPACK_IMPORTED_MODULE_2__.MatButton, + ], + styles: [ + "\n/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */", + ], + }); + + /***/ + }, + + /***/ 2145: + /*!**********************************************************!*\ + !*** ./src/app/shared/file-picker/file-picker.module.ts ***! + \**********************************************************/ + /***/ ( + __unused_webpack_module, + __webpack_exports__, + __webpack_require__ + ) => { + __webpack_require__.r(__webpack_exports__); + /* harmony export */ __webpack_require__.d(__webpack_exports__, { + /* harmony export */ FilePickerModule: () => + /* binding */ FilePickerModule, + /* harmony export */ + }); + /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = + __webpack_require__(/*! @angular/common */ 4666); + /* harmony import */ var _file_picker_component__WEBPACK_IMPORTED_MODULE_0__ = + __webpack_require__(/*! ./file-picker.component */ 17); + /* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_3__ = + __webpack_require__(/*! @angular/material/button */ 4522); + /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = + __webpack_require__(/*! @angular/core */ 2560); + + class FilePickerModule {} + FilePickerModule.ɵfac = function FilePickerModule_Factory(t) { + return new (t || FilePickerModule)(); + }; + FilePickerModule.ɵmod = + /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵdefineNgModule" + ]({ + type: FilePickerModule, + }); + FilePickerModule.ɵinj = + /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵdefineInjector" + ]({ + imports: [ + _angular_common__WEBPACK_IMPORTED_MODULE_2__.CommonModule, + _angular_material_button__WEBPACK_IMPORTED_MODULE_3__.MatButtonModule, + ], + }); + (function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsetNgModuleScope"]( + FilePickerModule, + { + declarations: [ + _file_picker_component__WEBPACK_IMPORTED_MODULE_0__.FilePickerComponent, + ], + imports: [ + _angular_common__WEBPACK_IMPORTED_MODULE_2__.CommonModule, + _angular_material_button__WEBPACK_IMPORTED_MODULE_3__.MatButtonModule, + ], + exports: [ + _file_picker_component__WEBPACK_IMPORTED_MODULE_0__.FilePickerComponent, + ], + } + ); + })(); + + /***/ + }, + + /***/ 9673: + /*!******************************************************!*\ + !*** ./node_modules/@angular/cdk/fesm2020/table.mjs ***! + \******************************************************/ + /***/ ( + __unused_webpack___webpack_module__, + __webpack_exports__, + __webpack_require__ + ) => { + __webpack_require__.r(__webpack_exports__); + /* harmony export */ __webpack_require__.d(__webpack_exports__, { + /* harmony export */ BaseCdkCell: () => /* binding */ BaseCdkCell, + /* harmony export */ BaseRowDef: () => /* binding */ BaseRowDef, + /* harmony export */ CDK_ROW_TEMPLATE: () => + /* binding */ CDK_ROW_TEMPLATE, + /* harmony export */ CDK_TABLE: () => /* binding */ CDK_TABLE, + /* harmony export */ CDK_TABLE_TEMPLATE: () => + /* binding */ CDK_TABLE_TEMPLATE, + /* harmony export */ CdkCell: () => /* binding */ CdkCell, + /* harmony export */ CdkCellDef: () => /* binding */ CdkCellDef, + /* harmony export */ CdkCellOutlet: () => /* binding */ CdkCellOutlet, + /* harmony export */ CdkColumnDef: () => /* binding */ CdkColumnDef, + /* harmony export */ CdkFooterCell: () => /* binding */ CdkFooterCell, + /* harmony export */ CdkFooterCellDef: () => + /* binding */ CdkFooterCellDef, + /* harmony export */ CdkFooterRow: () => /* binding */ CdkFooterRow, + /* harmony export */ CdkFooterRowDef: () => + /* binding */ CdkFooterRowDef, + /* harmony export */ CdkHeaderCell: () => /* binding */ CdkHeaderCell, + /* harmony export */ CdkHeaderCellDef: () => + /* binding */ CdkHeaderCellDef, + /* harmony export */ CdkHeaderRow: () => /* binding */ CdkHeaderRow, + /* harmony export */ CdkHeaderRowDef: () => + /* binding */ CdkHeaderRowDef, + /* harmony export */ CdkNoDataRow: () => /* binding */ CdkNoDataRow, + /* harmony export */ CdkRecycleRows: () => + /* binding */ CdkRecycleRows, + /* harmony export */ CdkRow: () => /* binding */ CdkRow, + /* harmony export */ CdkRowDef: () => /* binding */ CdkRowDef, + /* harmony export */ CdkTable: () => /* binding */ CdkTable, + /* harmony export */ CdkTableModule: () => + /* binding */ CdkTableModule, + /* harmony export */ CdkTextColumn: () => /* binding */ CdkTextColumn, + /* harmony export */ DataRowOutlet: () => /* binding */ DataRowOutlet, + /* harmony export */ DataSource: () => + /* reexport safe */ _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_0__.DataSource, + /* harmony export */ FooterRowOutlet: () => + /* binding */ FooterRowOutlet, + /* harmony export */ HeaderRowOutlet: () => + /* binding */ HeaderRowOutlet, + /* harmony export */ NoDataRowOutlet: () => + /* binding */ NoDataRowOutlet, + /* harmony export */ STICKY_DIRECTIONS: () => + /* binding */ STICKY_DIRECTIONS, + /* harmony export */ STICKY_POSITIONING_LISTENER: () => + /* binding */ STICKY_POSITIONING_LISTENER, + /* harmony export */ StickyStyler: () => /* binding */ StickyStyler, + /* harmony export */ TEXT_COLUMN_OPTIONS: () => + /* binding */ TEXT_COLUMN_OPTIONS, + /* harmony export */ _COALESCED_STYLE_SCHEDULER: () => + /* binding */ _COALESCED_STYLE_SCHEDULER, + /* harmony export */ _CoalescedStyleScheduler: () => + /* binding */ _CoalescedStyleScheduler, + /* harmony export */ _Schedule: () => /* binding */ _Schedule, + /* harmony export */ mixinHasStickyInput: () => + /* binding */ mixinHasStickyInput, + /* harmony export */ + }); + /* harmony import */ var _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_10__ = + __webpack_require__(/*! @angular/cdk/bidi */ 2867); + /* harmony import */ var _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__ = + __webpack_require__(/*! @angular/cdk/coercion */ 8971); + /* harmony import */ var _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_0__ = + __webpack_require__(/*! @angular/cdk/collections */ 1755); + /* harmony import */ var _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_12__ = + __webpack_require__(/*! @angular/cdk/platform */ 9107); + /* harmony import */ var _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_13__ = + __webpack_require__(/*! @angular/cdk/scrolling */ 6328); + /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_11__ = + __webpack_require__(/*! @angular/common */ 4666); + /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = + __webpack_require__(/*! @angular/core */ 2560); + /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_3__ = + __webpack_require__(/*! rxjs */ 228); + /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_5__ = + __webpack_require__(/*! rxjs */ 9346); + /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_7__ = + __webpack_require__(/*! rxjs */ 6317); + /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_8__ = + __webpack_require__(/*! rxjs */ 4437); + /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_9__ = + __webpack_require__(/*! rxjs */ 745); + /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_4__ = + __webpack_require__(/*! rxjs/operators */ 8951); + /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_6__ = + __webpack_require__(/*! rxjs/operators */ 9295); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** + * Mixin to provide a directive with a function that checks if the sticky input has been + * changed since the last time the function was called. Essentially adds a dirty-check to the + * sticky value. + * @docs-private + */ + const _c0 = [[["caption"]], [["colgroup"], ["col"]]]; + const _c1 = ["caption", "colgroup, col"]; + function CdkTextColumn_th_1_Template(rf, ctx) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"]( + 0, + "th", + 3 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); + } + if (rf & 2) { + const ctx_r0 = + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵstyleProp"]( + "text-align", + ctx_r0.justify + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]( + " ", + ctx_r0.headerText, + " " + ); + } + } + function CdkTextColumn_td_2_Template(rf, ctx) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"]( + 0, + "td", + 4 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); + } + if (rf & 2) { + const data_r2 = ctx.$implicit; + const ctx_r1 = + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵstyleProp"]( + "text-align", + ctx_r1.justify + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]( + " ", + ctx_r1.dataAccessor(data_r2, ctx_r1.name), + " " + ); + } + } + function mixinHasStickyInput(base) { + return class extends base { + /** Whether sticky positioning should be applied. */ + get sticky() { + return this._sticky; + } + set sticky(v) { + const prevValue = this._sticky; + this._sticky = (0, + _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__.coerceBooleanProperty)( + v + ); + this._hasStickyChanged = prevValue !== this._sticky; + } + /** Whether the sticky value has changed since this was last called. */ + hasStickyChanged() { + const hasStickyChanged = this._hasStickyChanged; + this._hasStickyChanged = false; + return hasStickyChanged; + } + /** Resets the dirty check for cases where the sticky state has been used without checking. */ + resetStickyChanged() { + this._hasStickyChanged = false; + } + constructor(...args) { + super(...args); + this._sticky = false; + /** Whether the sticky input has changed since it was last checked. */ + this._hasStickyChanged = false; + } + }; + } + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** + * Used to provide a table to some of the sub-components without causing a circular dependency. + * @docs-private + */ + const CDK_TABLE = + new _angular_core__WEBPACK_IMPORTED_MODULE_1__.InjectionToken( + "CDK_TABLE" + ); + /** Injection token that can be used to specify the text column options. */ + const TEXT_COLUMN_OPTIONS = + new _angular_core__WEBPACK_IMPORTED_MODULE_1__.InjectionToken( + "text-column-options" + ); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** + * Cell definition for a CDK table. + * Captures the template of a column's data row cell as well as cell-specific properties. + */ + class CdkCellDef { + constructor(/** @docs-private */ template) { + this.template = template; + } + } + CdkCellDef.ɵfac = function CdkCellDef_Factory(t) { + return new (t || CdkCellDef)( + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_1__.TemplateRef + ) + ); + }; + CdkCellDef.ɵdir = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵdefineDirective" + ]({ + type: CdkCellDef, + selectors: [["", "cdkCellDef", ""]], + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"]( + CdkCellDef, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Directive, + args: [ + { + selector: "[cdkCellDef]", + }, + ], + }, + ], + function () { + return [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.TemplateRef, + }, + ]; + }, + null + ); + })(); + /** + * Header cell definition for a CDK table. + * Captures the template of a column's header cell and as well as cell-specific properties. + */ + class CdkHeaderCellDef { + constructor(/** @docs-private */ template) { + this.template = template; + } + } + CdkHeaderCellDef.ɵfac = function CdkHeaderCellDef_Factory(t) { + return new (t || CdkHeaderCellDef)( + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_1__.TemplateRef + ) + ); + }; + CdkHeaderCellDef.ɵdir = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵdefineDirective" + ]({ + type: CdkHeaderCellDef, + selectors: [["", "cdkHeaderCellDef", ""]], + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"]( + CdkHeaderCellDef, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Directive, + args: [ + { + selector: "[cdkHeaderCellDef]", + }, + ], + }, + ], + function () { + return [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.TemplateRef, + }, + ]; + }, + null + ); + })(); + /** + * Footer cell definition for a CDK table. + * Captures the template of a column's footer cell and as well as cell-specific properties. + */ + class CdkFooterCellDef { + constructor(/** @docs-private */ template) { + this.template = template; + } + } + CdkFooterCellDef.ɵfac = function CdkFooterCellDef_Factory(t) { + return new (t || CdkFooterCellDef)( + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_1__.TemplateRef + ) + ); + }; + CdkFooterCellDef.ɵdir = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵdefineDirective" + ]({ + type: CdkFooterCellDef, + selectors: [["", "cdkFooterCellDef", ""]], + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"]( + CdkFooterCellDef, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Directive, + args: [ + { + selector: "[cdkFooterCellDef]", + }, + ], + }, + ], + function () { + return [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.TemplateRef, + }, + ]; + }, + null + ); + })(); + // Boilerplate for applying mixins to CdkColumnDef. + /** @docs-private */ + class CdkColumnDefBase {} + const _CdkColumnDefBase = mixinHasStickyInput(CdkColumnDefBase); + /** + * Column definition for the CDK table. + * Defines a set of cells available for a table column. + */ + class CdkColumnDef extends _CdkColumnDefBase { + /** Unique name for this column. */ + get name() { + return this._name; + } + set name(name) { + this._setNameInput(name); + } + /** + * Whether this column should be sticky positioned on the end of the row. Should make sure + * that it mimics the `CanStick` mixin such that `_hasStickyChanged` is set to true if the value + * has been changed. + */ + get stickyEnd() { + return this._stickyEnd; + } + set stickyEnd(v) { + const prevValue = this._stickyEnd; + this._stickyEnd = (0, + _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__.coerceBooleanProperty)( + v + ); + this._hasStickyChanged = prevValue !== this._stickyEnd; + } + constructor(_table) { + super(); + this._table = _table; + this._stickyEnd = false; + } + /** + * Overridable method that sets the css classes that will be added to every cell in this + * column. + * In the future, columnCssClassName will change from type string[] to string and this + * will set a single string value. + * @docs-private + */ + _updateColumnCssClassName() { + this._columnCssClassName = [ + `cdk-column-${this.cssClassFriendlyName}`, + ]; + } + /** + * This has been extracted to a util because of TS 4 and VE. + * View Engine doesn't support property rename inheritance. + * TS 4.0 doesn't allow properties to override accessors or vice-versa. + * @docs-private + */ + _setNameInput(value) { + // If the directive is set without a name (updated programmatically), then this setter will + // trigger with an empty string and should not overwrite the programmatically set value. + if (value) { + this._name = value; + this.cssClassFriendlyName = value.replace(/[^a-z0-9_-]/gi, "-"); + this._updateColumnCssClassName(); + } + } + } + CdkColumnDef.ɵfac = function CdkColumnDef_Factory(t) { + return new (t || CdkColumnDef)( + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"]( + CDK_TABLE, + 8 + ) + ); + }; + CdkColumnDef.ɵdir = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵdefineDirective" + ]({ + type: CdkColumnDef, + selectors: [["", "cdkColumnDef", ""]], + contentQueries: function CdkColumnDef_ContentQueries( + rf, + ctx, + dirIndex + ) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵcontentQuery"]( + dirIndex, + CdkCellDef, + 5 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵcontentQuery"]( + dirIndex, + CdkHeaderCellDef, + 5 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵcontentQuery"]( + dirIndex, + CdkFooterCellDef, + 5 + ); + } + if (rf & 2) { + let _t; + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"]( + (_t = + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) + ) && (ctx.cell = _t.first); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"]( + (_t = + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) + ) && (ctx.headerCell = _t.first); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"]( + (_t = + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) + ) && (ctx.footerCell = _t.first); + } + }, + inputs: { + sticky: "sticky", + name: ["cdkColumnDef", "name"], + stickyEnd: "stickyEnd", + }, + features: [ + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵProvidersFeature"]([ + { + provide: "MAT_SORT_HEADER_COLUMN_DEF", + useExisting: CdkColumnDef, + }, + ]), + _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵInheritDefinitionFeature" + ], + ], + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"]( + CdkColumnDef, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Directive, + args: [ + { + selector: "[cdkColumnDef]", + inputs: ["sticky"], + providers: [ + { + provide: "MAT_SORT_HEADER_COLUMN_DEF", + useExisting: CdkColumnDef, + }, + ], + }, + ], + }, + ], + function () { + return [ + { + type: undefined, + decorators: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Inject, + args: [CDK_TABLE], + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Optional, + }, + ], + }, + ]; + }, + { + name: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Input, + args: ["cdkColumnDef"], + }, + ], + stickyEnd: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Input, + args: ["stickyEnd"], + }, + ], + cell: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ContentChild, + args: [CdkCellDef], + }, + ], + headerCell: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ContentChild, + args: [CdkHeaderCellDef], + }, + ], + footerCell: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ContentChild, + args: [CdkFooterCellDef], + }, + ], + } + ); + })(); + /** Base class for the cells. Adds a CSS classname that identifies the column it renders in. */ + class BaseCdkCell { + constructor(columnDef, elementRef) { + elementRef.nativeElement.classList.add( + ...columnDef._columnCssClassName + ); + } + } + /** Header cell template container that adds the right classes and role. */ + class CdkHeaderCell extends BaseCdkCell { + constructor(columnDef, elementRef) { + super(columnDef, elementRef); + } + } + CdkHeaderCell.ɵfac = function CdkHeaderCell_Factory(t) { + return new (t || CdkHeaderCell)( + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"]( + CdkColumnDef + ), + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_1__.ElementRef + ) + ); + }; + CdkHeaderCell.ɵdir = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵdefineDirective" + ]({ + type: CdkHeaderCell, + selectors: [["cdk-header-cell"], ["th", "cdk-header-cell", ""]], + hostAttrs: ["role", "columnheader", 1, "cdk-header-cell"], + features: [ + _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵInheritDefinitionFeature" + ], + ], + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"]( + CdkHeaderCell, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Directive, + args: [ + { + selector: "cdk-header-cell, th[cdk-header-cell]", + host: { + class: "cdk-header-cell", + role: "columnheader", + }, + }, + ], + }, + ], + function () { + return [ + { + type: CdkColumnDef, + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ElementRef, + }, + ]; + }, + null + ); + })(); + /** Footer cell template container that adds the right classes and role. */ + class CdkFooterCell extends BaseCdkCell { + constructor(columnDef, elementRef) { + super(columnDef, elementRef); + if (columnDef._table?._elementRef.nativeElement.nodeType === 1) { + const tableRole = + columnDef._table._elementRef.nativeElement.getAttribute("role"); + const role = + tableRole === "grid" || tableRole === "treegrid" + ? "gridcell" + : "cell"; + elementRef.nativeElement.setAttribute("role", role); + } + } + } + CdkFooterCell.ɵfac = function CdkFooterCell_Factory(t) { + return new (t || CdkFooterCell)( + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"]( + CdkColumnDef + ), + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_1__.ElementRef + ) + ); + }; + CdkFooterCell.ɵdir = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵdefineDirective" + ]({ + type: CdkFooterCell, + selectors: [["cdk-footer-cell"], ["td", "cdk-footer-cell", ""]], + hostAttrs: [1, "cdk-footer-cell"], + features: [ + _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵInheritDefinitionFeature" + ], + ], + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"]( + CdkFooterCell, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Directive, + args: [ + { + selector: "cdk-footer-cell, td[cdk-footer-cell]", + host: { + class: "cdk-footer-cell", + }, + }, + ], + }, + ], + function () { + return [ + { + type: CdkColumnDef, + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ElementRef, + }, + ]; + }, + null + ); + })(); + /** Cell template container that adds the right classes and role. */ + class CdkCell extends BaseCdkCell { + constructor(columnDef, elementRef) { + super(columnDef, elementRef); + if (columnDef._table?._elementRef.nativeElement.nodeType === 1) { + const tableRole = + columnDef._table._elementRef.nativeElement.getAttribute("role"); + const role = + tableRole === "grid" || tableRole === "treegrid" + ? "gridcell" + : "cell"; + elementRef.nativeElement.setAttribute("role", role); + } + } + } + CdkCell.ɵfac = function CdkCell_Factory(t) { + return new (t || CdkCell)( + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"]( + CdkColumnDef + ), + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_1__.ElementRef + ) + ); + }; + CdkCell.ɵdir = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵdefineDirective" + ]({ + type: CdkCell, + selectors: [["cdk-cell"], ["td", "cdk-cell", ""]], + hostAttrs: [1, "cdk-cell"], + features: [ + _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵInheritDefinitionFeature" + ], + ], + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"]( + CdkCell, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Directive, + args: [ + { + selector: "cdk-cell, td[cdk-cell]", + host: { + class: "cdk-cell", + }, + }, + ], + }, + ], + function () { + return [ + { + type: CdkColumnDef, + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ElementRef, + }, + ]; + }, + null + ); + })(); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** + * @docs-private + */ + class _Schedule { + constructor() { + this.tasks = []; + this.endTasks = []; + } + } + /** Injection token used to provide a coalesced style scheduler. */ + const _COALESCED_STYLE_SCHEDULER = + new _angular_core__WEBPACK_IMPORTED_MODULE_1__.InjectionToken( + "_COALESCED_STYLE_SCHEDULER" + ); + /** + * Allows grouping up CSSDom mutations after the current execution context. + * This can significantly improve performance when separate consecutive functions are + * reading from the CSSDom and then mutating it. + * + * @docs-private + */ + class _CoalescedStyleScheduler { + constructor(_ngZone) { + this._ngZone = _ngZone; + this._currentSchedule = null; + this._destroyed = new rxjs__WEBPACK_IMPORTED_MODULE_3__.Subject(); + } + /** + * Schedules the specified task to run at the end of the current VM turn. + */ + schedule(task) { + this._createScheduleIfNeeded(); + this._currentSchedule.tasks.push(task); + } + /** + * Schedules the specified task to run after other scheduled tasks at the end of the current + * VM turn. + */ + scheduleEnd(task) { + this._createScheduleIfNeeded(); + this._currentSchedule.endTasks.push(task); + } + /** Prevent any further tasks from running. */ + ngOnDestroy() { + this._destroyed.next(); + this._destroyed.complete(); + } + _createScheduleIfNeeded() { + if (this._currentSchedule) { + return; + } + this._currentSchedule = new _Schedule(); + this._getScheduleObservable() + .pipe( + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.takeUntil)( + this._destroyed + ) + ) + .subscribe(() => { + while ( + this._currentSchedule.tasks.length || + this._currentSchedule.endTasks.length + ) { + const schedule = this._currentSchedule; + // Capture new tasks scheduled by the current set of tasks. + this._currentSchedule = new _Schedule(); + for (const task of schedule.tasks) { + task(); + } + for (const task of schedule.endTasks) { + task(); + } + } + this._currentSchedule = null; + }); + } + _getScheduleObservable() { + // Use onStable when in the context of an ongoing change detection cycle so that we + // do not accidentally trigger additional cycles. + return this._ngZone.isStable + ? (0, rxjs__WEBPACK_IMPORTED_MODULE_5__.from)( + Promise.resolve(undefined) + ) + : this._ngZone.onStable.pipe( + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.take)(1) + ); + } + } + _CoalescedStyleScheduler.ɵfac = + function _CoalescedStyleScheduler_Factory(t) { + return new (t || _CoalescedStyleScheduler)( + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_1__.NgZone + ) + ); + }; + _CoalescedStyleScheduler.ɵprov = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵdefineInjectable" + ]({ + token: _CoalescedStyleScheduler, + factory: _CoalescedStyleScheduler.ɵfac, + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"]( + _CoalescedStyleScheduler, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Injectable, + }, + ], + function () { + return [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.NgZone, + }, + ]; + }, + null + ); + })(); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** + * The row template that can be used by the mat-table. Should not be used outside of the + * material library. + */ + const CDK_ROW_TEMPLATE = ``; + /** + * Base class for the CdkHeaderRowDef and CdkRowDef that handles checking their columns inputs + * for changes and notifying the table. + */ + class BaseRowDef { + constructor(/** @docs-private */ template, _differs) { + this.template = template; + this._differs = _differs; + } + ngOnChanges(changes) { + // Create a new columns differ if one does not yet exist. Initialize it based on initial value + // of the columns property or an empty array if none is provided. + if (!this._columnsDiffer) { + const columns = + (changes["columns"] && changes["columns"].currentValue) || []; + this._columnsDiffer = this._differs.find(columns).create(); + this._columnsDiffer.diff(columns); + } + } + /** + * Returns the difference between the current columns and the columns from the last diff, or null + * if there is no difference. + */ + getColumnsDiff() { + return this._columnsDiffer.diff(this.columns); + } + /** Gets this row def's relevant cell template from the provided column def. */ + extractCellTemplate(column) { + if (this instanceof CdkHeaderRowDef) { + return column.headerCell.template; + } + if (this instanceof CdkFooterRowDef) { + return column.footerCell.template; + } else { + return column.cell.template; + } + } + } + BaseRowDef.ɵfac = function BaseRowDef_Factory(t) { + return new (t || BaseRowDef)( + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_1__.TemplateRef + ), + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_1__.IterableDiffers + ) + ); + }; + BaseRowDef.ɵdir = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵdefineDirective" + ]({ + type: BaseRowDef, + features: [ + _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵNgOnChangesFeature" + ], + ], + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"]( + BaseRowDef, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Directive, + }, + ], + function () { + return [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.TemplateRef, + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.IterableDiffers, + }, + ]; + }, + null + ); + })(); + // Boilerplate for applying mixins to CdkHeaderRowDef. + /** @docs-private */ + class CdkHeaderRowDefBase extends BaseRowDef {} + const _CdkHeaderRowDefBase = mixinHasStickyInput(CdkHeaderRowDefBase); + /** + * Header row definition for the CDK table. + * Captures the header row's template and other header properties such as the columns to display. + */ + class CdkHeaderRowDef extends _CdkHeaderRowDefBase { + constructor(template, _differs, _table) { + super(template, _differs); + this._table = _table; + } + // Prerender fails to recognize that ngOnChanges in a part of this class through inheritance. + // Explicitly define it so that the method is called as part of the Angular lifecycle. + ngOnChanges(changes) { + super.ngOnChanges(changes); + } + } + CdkHeaderRowDef.ɵfac = function CdkHeaderRowDef_Factory(t) { + return new (t || CdkHeaderRowDef)( + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_1__.TemplateRef + ), + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_1__.IterableDiffers + ), + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"]( + CDK_TABLE, + 8 + ) + ); + }; + CdkHeaderRowDef.ɵdir = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵdefineDirective" + ]({ + type: CdkHeaderRowDef, + selectors: [["", "cdkHeaderRowDef", ""]], + inputs: { + columns: ["cdkHeaderRowDef", "columns"], + sticky: ["cdkHeaderRowDefSticky", "sticky"], + }, + features: [ + _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵInheritDefinitionFeature" + ], + _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵNgOnChangesFeature" + ], + ], + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"]( + CdkHeaderRowDef, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Directive, + args: [ + { + selector: "[cdkHeaderRowDef]", + inputs: [ + "columns: cdkHeaderRowDef", + "sticky: cdkHeaderRowDefSticky", + ], + }, + ], + }, + ], + function () { + return [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.TemplateRef, + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.IterableDiffers, + }, + { + type: undefined, + decorators: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Inject, + args: [CDK_TABLE], + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Optional, + }, + ], + }, + ]; + }, + null + ); + })(); + // Boilerplate for applying mixins to CdkFooterRowDef. + /** @docs-private */ + class CdkFooterRowDefBase extends BaseRowDef {} + const _CdkFooterRowDefBase = mixinHasStickyInput(CdkFooterRowDefBase); + /** + * Footer row definition for the CDK table. + * Captures the footer row's template and other footer properties such as the columns to display. + */ + class CdkFooterRowDef extends _CdkFooterRowDefBase { + constructor(template, _differs, _table) { + super(template, _differs); + this._table = _table; + } + // Prerender fails to recognize that ngOnChanges in a part of this class through inheritance. + // Explicitly define it so that the method is called as part of the Angular lifecycle. + ngOnChanges(changes) { + super.ngOnChanges(changes); + } + } + CdkFooterRowDef.ɵfac = function CdkFooterRowDef_Factory(t) { + return new (t || CdkFooterRowDef)( + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_1__.TemplateRef + ), + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_1__.IterableDiffers + ), + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"]( + CDK_TABLE, + 8 + ) + ); + }; + CdkFooterRowDef.ɵdir = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵdefineDirective" + ]({ + type: CdkFooterRowDef, + selectors: [["", "cdkFooterRowDef", ""]], + inputs: { + columns: ["cdkFooterRowDef", "columns"], + sticky: ["cdkFooterRowDefSticky", "sticky"], + }, + features: [ + _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵInheritDefinitionFeature" + ], + _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵNgOnChangesFeature" + ], + ], + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"]( + CdkFooterRowDef, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Directive, + args: [ + { + selector: "[cdkFooterRowDef]", + inputs: [ + "columns: cdkFooterRowDef", + "sticky: cdkFooterRowDefSticky", + ], + }, + ], + }, + ], + function () { + return [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.TemplateRef, + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.IterableDiffers, + }, + { + type: undefined, + decorators: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Inject, + args: [CDK_TABLE], + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Optional, + }, + ], + }, + ]; + }, + null + ); + })(); + /** + * Data row definition for the CDK table. + * Captures the header row's template and other row properties such as the columns to display and + * a when predicate that describes when this row should be used. + */ + class CdkRowDef extends BaseRowDef { + // TODO(andrewseguin): Add an input for providing a switch function to determine + // if this template should be used. + constructor(template, _differs, _table) { + super(template, _differs); + this._table = _table; + } + } + CdkRowDef.ɵfac = function CdkRowDef_Factory(t) { + return new (t || CdkRowDef)( + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_1__.TemplateRef + ), + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_1__.IterableDiffers + ), + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"]( + CDK_TABLE, + 8 + ) + ); + }; + CdkRowDef.ɵdir = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵdefineDirective" + ]({ + type: CdkRowDef, + selectors: [["", "cdkRowDef", ""]], + inputs: { + columns: ["cdkRowDefColumns", "columns"], + when: ["cdkRowDefWhen", "when"], + }, + features: [ + _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵInheritDefinitionFeature" + ], + ], + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"]( + CdkRowDef, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Directive, + args: [ + { + selector: "[cdkRowDef]", + inputs: [ + "columns: cdkRowDefColumns", + "when: cdkRowDefWhen", + ], + }, + ], + }, + ], + function () { + return [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.TemplateRef, + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.IterableDiffers, + }, + { + type: undefined, + decorators: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Inject, + args: [CDK_TABLE], + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Optional, + }, + ], + }, + ]; + }, + null + ); + })(); + /** + * Outlet for rendering cells inside of a row or header row. + * @docs-private + */ + class CdkCellOutlet { + constructor(_viewContainer) { + this._viewContainer = _viewContainer; + CdkCellOutlet.mostRecentCellOutlet = this; + } + ngOnDestroy() { + // If this was the last outlet being rendered in the view, remove the reference + // from the static property after it has been destroyed to avoid leaking memory. + if (CdkCellOutlet.mostRecentCellOutlet === this) { + CdkCellOutlet.mostRecentCellOutlet = null; + } + } + } + /** + * Static property containing the latest constructed instance of this class. + * Used by the CDK table when each CdkHeaderRow and CdkRow component is created using + * createEmbeddedView. After one of these components are created, this property will provide + * a handle to provide that component's cells and context. After init, the CdkCellOutlet will + * construct the cells with the provided context. + */ + CdkCellOutlet.mostRecentCellOutlet = null; + CdkCellOutlet.ɵfac = function CdkCellOutlet_Factory(t) { + return new (t || CdkCellOutlet)( + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_1__.ViewContainerRef + ) + ); + }; + CdkCellOutlet.ɵdir = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵdefineDirective" + ]({ + type: CdkCellOutlet, + selectors: [["", "cdkCellOutlet", ""]], + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"]( + CdkCellOutlet, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Directive, + args: [ + { + selector: "[cdkCellOutlet]", + }, + ], + }, + ], + function () { + return [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ViewContainerRef, + }, + ]; + }, + null + ); + })(); + /** Header template container that contains the cell outlet. Adds the right class and role. */ + class CdkHeaderRow {} + CdkHeaderRow.ɵfac = function CdkHeaderRow_Factory(t) { + return new (t || CdkHeaderRow)(); + }; + CdkHeaderRow.ɵcmp = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵdefineComponent" + ]({ + type: CdkHeaderRow, + selectors: [["cdk-header-row"], ["tr", "cdk-header-row", ""]], + hostAttrs: ["role", "row", 1, "cdk-header-row"], + decls: 1, + vars: 0, + consts: [["cdkCellOutlet", ""]], + template: function CdkHeaderRow_Template(rf, ctx) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵelementContainer" + ](0, 0); + } + }, + dependencies: [CdkCellOutlet], + encapsulation: 2, + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"]( + CdkHeaderRow, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Component, + args: [ + { + selector: "cdk-header-row, tr[cdk-header-row]", + template: CDK_ROW_TEMPLATE, + host: { + class: "cdk-header-row", + role: "row", + }, + // See note on CdkTable for explanation on why this uses the default change detection strategy. + // tslint:disable-next-line:validate-decorators + changeDetection: + _angular_core__WEBPACK_IMPORTED_MODULE_1__ + .ChangeDetectionStrategy.Default, + encapsulation: + _angular_core__WEBPACK_IMPORTED_MODULE_1__ + .ViewEncapsulation.None, + }, + ], + }, + ], + null, + null + ); + })(); + /** Footer template container that contains the cell outlet. Adds the right class and role. */ + class CdkFooterRow {} + CdkFooterRow.ɵfac = function CdkFooterRow_Factory(t) { + return new (t || CdkFooterRow)(); + }; + CdkFooterRow.ɵcmp = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵdefineComponent" + ]({ + type: CdkFooterRow, + selectors: [["cdk-footer-row"], ["tr", "cdk-footer-row", ""]], + hostAttrs: ["role", "row", 1, "cdk-footer-row"], + decls: 1, + vars: 0, + consts: [["cdkCellOutlet", ""]], + template: function CdkFooterRow_Template(rf, ctx) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵelementContainer" + ](0, 0); + } + }, + dependencies: [CdkCellOutlet], + encapsulation: 2, + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"]( + CdkFooterRow, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Component, + args: [ + { + selector: "cdk-footer-row, tr[cdk-footer-row]", + template: CDK_ROW_TEMPLATE, + host: { + class: "cdk-footer-row", + role: "row", + }, + // See note on CdkTable for explanation on why this uses the default change detection strategy. + // tslint:disable-next-line:validate-decorators + changeDetection: + _angular_core__WEBPACK_IMPORTED_MODULE_1__ + .ChangeDetectionStrategy.Default, + encapsulation: + _angular_core__WEBPACK_IMPORTED_MODULE_1__ + .ViewEncapsulation.None, + }, + ], + }, + ], + null, + null + ); + })(); + /** Data row template container that contains the cell outlet. Adds the right class and role. */ + class CdkRow {} + CdkRow.ɵfac = function CdkRow_Factory(t) { + return new (t || CdkRow)(); + }; + CdkRow.ɵcmp = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵdefineComponent" + ]({ + type: CdkRow, + selectors: [["cdk-row"], ["tr", "cdk-row", ""]], + hostAttrs: ["role", "row", 1, "cdk-row"], + decls: 1, + vars: 0, + consts: [["cdkCellOutlet", ""]], + template: function CdkRow_Template(rf, ctx) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵelementContainer" + ](0, 0); + } + }, + dependencies: [CdkCellOutlet], + encapsulation: 2, + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"]( + CdkRow, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Component, + args: [ + { + selector: "cdk-row, tr[cdk-row]", + template: CDK_ROW_TEMPLATE, + host: { + class: "cdk-row", + role: "row", + }, + // See note on CdkTable for explanation on why this uses the default change detection strategy. + // tslint:disable-next-line:validate-decorators + changeDetection: + _angular_core__WEBPACK_IMPORTED_MODULE_1__ + .ChangeDetectionStrategy.Default, + encapsulation: + _angular_core__WEBPACK_IMPORTED_MODULE_1__ + .ViewEncapsulation.None, + }, + ], + }, + ], + null, + null + ); + })(); + /** Row that can be used to display a message when no data is shown in the table. */ + class CdkNoDataRow { + constructor(templateRef) { + this.templateRef = templateRef; + this._contentClassName = "cdk-no-data-row"; + } + } + CdkNoDataRow.ɵfac = function CdkNoDataRow_Factory(t) { + return new (t || CdkNoDataRow)( + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_1__.TemplateRef + ) + ); + }; + CdkNoDataRow.ɵdir = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵdefineDirective" + ]({ + type: CdkNoDataRow, + selectors: [["ng-template", "cdkNoDataRow", ""]], + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"]( + CdkNoDataRow, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Directive, + args: [ + { + selector: "ng-template[cdkNoDataRow]", + }, + ], + }, + ], + function () { + return [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.TemplateRef, + }, + ]; + }, + null + ); + })(); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** + * List of all possible directions that can be used for sticky positioning. + * @docs-private + */ + const STICKY_DIRECTIONS = ["top", "bottom", "left", "right"]; + /** + * Applies and removes sticky positioning styles to the `CdkTable` rows and columns cells. + * @docs-private + */ + class StickyStyler { + /** + * @param _isNativeHtmlTable Whether the sticky logic should be based on a table + * that uses the native `` element. + * @param _stickCellCss The CSS class that will be applied to every row/cell that has + * sticky positioning applied. + * @param direction The directionality context of the table (ltr/rtl); affects column positioning + * by reversing left/right positions. + * @param _isBrowser Whether the table is currently being rendered on the server or the client. + * @param _needsPositionStickyOnElement Whether we need to specify position: sticky on cells + * using inline styles. If false, it is assumed that position: sticky is included in + * the component stylesheet for _stickCellCss. + * @param _positionListener A listener that is notified of changes to sticky rows/columns + * and their dimensions. + */ + constructor( + _isNativeHtmlTable, + _stickCellCss, + direction, + _coalescedStyleScheduler, + _isBrowser = true, + _needsPositionStickyOnElement = true, + _positionListener + ) { + this._isNativeHtmlTable = _isNativeHtmlTable; + this._stickCellCss = _stickCellCss; + this.direction = direction; + this._coalescedStyleScheduler = _coalescedStyleScheduler; + this._isBrowser = _isBrowser; + this._needsPositionStickyOnElement = _needsPositionStickyOnElement; + this._positionListener = _positionListener; + this._cachedCellWidths = []; + this._borderCellCss = { + top: `${_stickCellCss}-border-elem-top`, + bottom: `${_stickCellCss}-border-elem-bottom`, + left: `${_stickCellCss}-border-elem-left`, + right: `${_stickCellCss}-border-elem-right`, + }; + } + /** + * Clears the sticky positioning styles from the row and its cells by resetting the `position` + * style, setting the zIndex to 0, and unsetting each provided sticky direction. + * @param rows The list of rows that should be cleared from sticking in the provided directions + * @param stickyDirections The directions that should no longer be set as sticky on the rows. + */ + clearStickyPositioning(rows, stickyDirections) { + const elementsToClear = []; + for (const row of rows) { + // If the row isn't an element (e.g. if it's an `ng-container`), + // it won't have inline styles or `children` so we skip it. + if (row.nodeType !== row.ELEMENT_NODE) { + continue; + } + elementsToClear.push(row); + for (let i = 0; i < row.children.length; i++) { + elementsToClear.push(row.children[i]); + } + } + // Coalesce with sticky row/column updates (and potentially other changes like column resize). + this._coalescedStyleScheduler.schedule(() => { + for (const element of elementsToClear) { + this._removeStickyStyle(element, stickyDirections); + } + }); + } + /** + * Applies sticky left and right positions to the cells of each row according to the sticky + * states of the rendered column definitions. + * @param rows The rows that should have its set of cells stuck according to the sticky states. + * @param stickyStartStates A list of boolean states where each state represents whether the cell + * in this index position should be stuck to the start of the row. + * @param stickyEndStates A list of boolean states where each state represents whether the cell + * in this index position should be stuck to the end of the row. + * @param recalculateCellWidths Whether the sticky styler should recalculate the width of each + * column cell. If `false` cached widths will be used instead. + */ + updateStickyColumns( + rows, + stickyStartStates, + stickyEndStates, + recalculateCellWidths = true + ) { + if ( + !rows.length || + !this._isBrowser || + !( + stickyStartStates.some((state) => state) || + stickyEndStates.some((state) => state) + ) + ) { + if (this._positionListener) { + this._positionListener.stickyColumnsUpdated({ + sizes: [], + }); + this._positionListener.stickyEndColumnsUpdated({ + sizes: [], + }); + } + return; + } + const firstRow = rows[0]; + const numCells = firstRow.children.length; + const cellWidths = this._getCellWidths( + firstRow, + recalculateCellWidths + ); + const startPositions = this._getStickyStartColumnPositions( + cellWidths, + stickyStartStates + ); + const endPositions = this._getStickyEndColumnPositions( + cellWidths, + stickyEndStates + ); + const lastStickyStart = stickyStartStates.lastIndexOf(true); + const firstStickyEnd = stickyEndStates.indexOf(true); + // Coalesce with sticky row updates (and potentially other changes like column resize). + this._coalescedStyleScheduler.schedule(() => { + const isRtl = this.direction === "rtl"; + const start = isRtl ? "right" : "left"; + const end = isRtl ? "left" : "right"; + for (const row of rows) { + for (let i = 0; i < numCells; i++) { + const cell = row.children[i]; + if (stickyStartStates[i]) { + this._addStickyStyle( + cell, + start, + startPositions[i], + i === lastStickyStart + ); + } + if (stickyEndStates[i]) { + this._addStickyStyle( + cell, + end, + endPositions[i], + i === firstStickyEnd + ); + } + } + } + if (this._positionListener) { + this._positionListener.stickyColumnsUpdated({ + sizes: + lastStickyStart === -1 + ? [] + : cellWidths + .slice(0, lastStickyStart + 1) + .map((width, index) => + stickyStartStates[index] ? width : null + ), + }); + this._positionListener.stickyEndColumnsUpdated({ + sizes: + firstStickyEnd === -1 + ? [] + : cellWidths + .slice(firstStickyEnd) + .map((width, index) => + stickyEndStates[index + firstStickyEnd] + ? width + : null + ) + .reverse(), + }); + } + }); + } + /** + * Applies sticky positioning to the row's cells if using the native table layout, and to the + * row itself otherwise. + * @param rowsToStick The list of rows that should be stuck according to their corresponding + * sticky state and to the provided top or bottom position. + * @param stickyStates A list of boolean states where each state represents whether the row + * should be stuck in the particular top or bottom position. + * @param position The position direction in which the row should be stuck if that row should be + * sticky. + * + */ + stickRows(rowsToStick, stickyStates, position) { + // Since we can't measure the rows on the server, we can't stick the rows properly. + if (!this._isBrowser) { + return; + } + // If positioning the rows to the bottom, reverse their order when evaluating the sticky + // position such that the last row stuck will be "bottom: 0px" and so on. Note that the + // sticky states need to be reversed as well. + const rows = + position === "bottom" + ? rowsToStick.slice().reverse() + : rowsToStick; + const states = + position === "bottom" + ? stickyStates.slice().reverse() + : stickyStates; + // Measure row heights all at once before adding sticky styles to reduce layout thrashing. + const stickyOffsets = []; + const stickyCellHeights = []; + const elementsToStick = []; + for ( + let rowIndex = 0, stickyOffset = 0; + rowIndex < rows.length; + rowIndex++ + ) { + if (!states[rowIndex]) { + continue; + } + stickyOffsets[rowIndex] = stickyOffset; + const row = rows[rowIndex]; + elementsToStick[rowIndex] = this._isNativeHtmlTable + ? Array.from(row.children) + : [row]; + const height = row.getBoundingClientRect().height; + stickyOffset += height; + stickyCellHeights[rowIndex] = height; + } + const borderedRowIndex = states.lastIndexOf(true); + // Coalesce with other sticky row updates (top/bottom), sticky columns updates + // (and potentially other changes like column resize). + this._coalescedStyleScheduler.schedule(() => { + for (let rowIndex = 0; rowIndex < rows.length; rowIndex++) { + if (!states[rowIndex]) { + continue; + } + const offset = stickyOffsets[rowIndex]; + const isBorderedRowIndex = rowIndex === borderedRowIndex; + for (const element of elementsToStick[rowIndex]) { + this._addStickyStyle( + element, + position, + offset, + isBorderedRowIndex + ); + } + } + if (position === "top") { + this._positionListener?.stickyHeaderRowsUpdated({ + sizes: stickyCellHeights, + offsets: stickyOffsets, + elements: elementsToStick, + }); + } else { + this._positionListener?.stickyFooterRowsUpdated({ + sizes: stickyCellHeights, + offsets: stickyOffsets, + elements: elementsToStick, + }); + } + }); + } + /** + * When using the native table in Safari, sticky footer cells do not stick. The only way to stick + * footer rows is to apply sticky styling to the tfoot container. This should only be done if + * all footer rows are sticky. If not all footer rows are sticky, remove sticky positioning from + * the tfoot element. + */ + updateStickyFooterContainer(tableElement, stickyStates) { + if (!this._isNativeHtmlTable) { + return; + } + const tfoot = tableElement.querySelector("tfoot"); + // Coalesce with other sticky updates (and potentially other changes like column resize). + this._coalescedStyleScheduler.schedule(() => { + if (stickyStates.some((state) => !state)) { + this._removeStickyStyle(tfoot, ["bottom"]); + } else { + this._addStickyStyle(tfoot, "bottom", 0, false); + } + }); + } + /** + * Removes the sticky style on the element by removing the sticky cell CSS class, re-evaluating + * the zIndex, removing each of the provided sticky directions, and removing the + * sticky position if there are no more directions. + */ + _removeStickyStyle(element, stickyDirections) { + for (const dir of stickyDirections) { + element.style[dir] = ""; + element.classList.remove(this._borderCellCss[dir]); + } + // If the element no longer has any more sticky directions, remove sticky positioning and + // the sticky CSS class. + // Short-circuit checking element.style[dir] for stickyDirections as they + // were already removed above. + const hasDirection = STICKY_DIRECTIONS.some( + (dir) => + stickyDirections.indexOf(dir) === -1 && element.style[dir] + ); + if (hasDirection) { + element.style.zIndex = this._getCalculatedZIndex(element); + } else { + // When not hasDirection, _getCalculatedZIndex will always return ''. + element.style.zIndex = ""; + if (this._needsPositionStickyOnElement) { + element.style.position = ""; + } + element.classList.remove(this._stickCellCss); + } + } + /** + * Adds the sticky styling to the element by adding the sticky style class, changing position + * to be sticky (and -webkit-sticky), setting the appropriate zIndex, and adding a sticky + * direction and value. + */ + _addStickyStyle(element, dir, dirValue, isBorderElement) { + element.classList.add(this._stickCellCss); + if (isBorderElement) { + element.classList.add(this._borderCellCss[dir]); + } + element.style[dir] = `${dirValue}px`; + element.style.zIndex = this._getCalculatedZIndex(element); + if (this._needsPositionStickyOnElement) { + element.style.cssText += + "position: -webkit-sticky; position: sticky; "; + } + } + /** + * Calculate what the z-index should be for the element, depending on what directions (top, + * bottom, left, right) have been set. It should be true that elements with a top direction + * should have the highest index since these are elements like a table header. If any of those + * elements are also sticky in another direction, then they should appear above other elements + * that are only sticky top (e.g. a sticky column on a sticky header). Bottom-sticky elements + * (e.g. footer rows) should then be next in the ordering such that they are below the header + * but above any non-sticky elements. Finally, left/right sticky elements (e.g. sticky columns) + * should minimally increment so that they are above non-sticky elements but below top and bottom + * elements. + */ + _getCalculatedZIndex(element) { + const zIndexIncrements = { + top: 100, + bottom: 10, + left: 1, + right: 1, + }; + let zIndex = 0; + // Use `Iterable` instead of `Array` because TypeScript, as of 3.6.3, + // loses the array generic type in the `for of`. But we *also* have to use `Array` because + // typescript won't iterate over an `Iterable` unless you compile with `--downlevelIteration` + for (const dir of STICKY_DIRECTIONS) { + if (element.style[dir]) { + zIndex += zIndexIncrements[dir]; + } + } + return zIndex ? `${zIndex}` : ""; + } + /** Gets the widths for each cell in the provided row. */ + _getCellWidths(row, recalculateCellWidths = true) { + if (!recalculateCellWidths && this._cachedCellWidths.length) { + return this._cachedCellWidths; + } + const cellWidths = []; + const firstRowCells = row.children; + for (let i = 0; i < firstRowCells.length; i++) { + let cell = firstRowCells[i]; + cellWidths.push(cell.getBoundingClientRect().width); + } + this._cachedCellWidths = cellWidths; + return cellWidths; + } + /** + * Determines the left and right positions of each sticky column cell, which will be the + * accumulation of all sticky column cell widths to the left and right, respectively. + * Non-sticky cells do not need to have a value set since their positions will not be applied. + */ + _getStickyStartColumnPositions(widths, stickyStates) { + const positions = []; + let nextPosition = 0; + for (let i = 0; i < widths.length; i++) { + if (stickyStates[i]) { + positions[i] = nextPosition; + nextPosition += widths[i]; + } + } + return positions; + } + /** + * Determines the left and right positions of each sticky column cell, which will be the + * accumulation of all sticky column cell widths to the left and right, respectively. + * Non-sticky cells do not need to have a value set since their positions will not be applied. + */ + _getStickyEndColumnPositions(widths, stickyStates) { + const positions = []; + let nextPosition = 0; + for (let i = widths.length; i > 0; i--) { + if (stickyStates[i]) { + positions[i] = nextPosition; + nextPosition += widths[i]; + } + } + return positions; + } + } + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** + * Returns an error to be thrown when attempting to find an nonexistent column. + * @param id Id whose lookup failed. + * @docs-private + */ + function getTableUnknownColumnError(id) { + return Error(`Could not find column with id "${id}".`); + } + /** + * Returns an error to be thrown when two column definitions have the same name. + * @docs-private + */ + function getTableDuplicateColumnNameError(name) { + return Error(`Duplicate column definition name provided: "${name}".`); + } + /** + * Returns an error to be thrown when there are multiple rows that are missing a when function. + * @docs-private + */ + function getTableMultipleDefaultRowDefsError() { + return Error( + `There can only be one default row without a when predicate function.` + ); + } + /** + * Returns an error to be thrown when there are no matching row defs for a particular set of data. + * @docs-private + */ + function getTableMissingMatchingRowDefError(data) { + return Error( + `Could not find a matching row definition for the` + + `provided row data: ${JSON.stringify(data)}` + ); + } + /** + * Returns an error to be thrown when there is no row definitions present in the content. + * @docs-private + */ + function getTableMissingRowDefsError() { + return Error( + "Missing definitions for header, footer, and row; " + + "cannot determine which columns should be rendered." + ); + } + /** + * Returns an error to be thrown when the data source does not match the compatible types. + * @docs-private + */ + function getTableUnknownDataSourceError() { + return Error( + `Provided data source did not match an array, Observable, or DataSource` + ); + } + /** + * Returns an error to be thrown when the text column cannot find a parent table to inject. + * @docs-private + */ + function getTableTextColumnMissingParentTableError() { + return Error( + `Text column could not find a parent table for registration.` + ); + } + /** + * Returns an error to be thrown when a table text column doesn't have a name. + * @docs-private + */ + function getTableTextColumnMissingNameError() { + return Error(`Table text column must have a name.`); + } + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** The injection token used to specify the StickyPositioningListener. */ + const STICKY_POSITIONING_LISTENER = + new _angular_core__WEBPACK_IMPORTED_MODULE_1__.InjectionToken( + "CDK_SPL" + ); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** + * Enables the recycle view repeater strategy, which reduces rendering latency. Not compatible with + * tables that animate rows. + */ + class CdkRecycleRows {} + CdkRecycleRows.ɵfac = function CdkRecycleRows_Factory(t) { + return new (t || CdkRecycleRows)(); + }; + CdkRecycleRows.ɵdir = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵdefineDirective" + ]({ + type: CdkRecycleRows, + selectors: [ + ["cdk-table", "recycleRows", ""], + ["table", "cdk-table", "", "recycleRows", ""], + ], + features: [ + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵProvidersFeature"]([ + { + provide: + _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_0__._VIEW_REPEATER_STRATEGY, + useClass: + _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_0__._RecycleViewRepeaterStrategy, + }, + ]), + ], + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"]( + CdkRecycleRows, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Directive, + args: [ + { + selector: + "cdk-table[recycleRows], table[cdk-table][recycleRows]", + providers: [ + { + provide: + _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_0__._VIEW_REPEATER_STRATEGY, + useClass: + _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_0__._RecycleViewRepeaterStrategy, + }, + ], + }, + ], + }, + ], + null, + null + ); + })(); + /** + * Provides a handle for the table to grab the view container's ng-container to insert data rows. + * @docs-private + */ + class DataRowOutlet { + constructor(viewContainer, elementRef) { + this.viewContainer = viewContainer; + this.elementRef = elementRef; + } + } + DataRowOutlet.ɵfac = function DataRowOutlet_Factory(t) { + return new (t || DataRowOutlet)( + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_1__.ViewContainerRef + ), + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_1__.ElementRef + ) + ); + }; + DataRowOutlet.ɵdir = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵdefineDirective" + ]({ + type: DataRowOutlet, + selectors: [["", "rowOutlet", ""]], + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"]( + DataRowOutlet, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Directive, + args: [ + { + selector: "[rowOutlet]", + }, + ], + }, + ], + function () { + return [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ViewContainerRef, + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ElementRef, + }, + ]; + }, + null + ); + })(); + /** + * Provides a handle for the table to grab the view container's ng-container to insert the header. + * @docs-private + */ + class HeaderRowOutlet { + constructor(viewContainer, elementRef) { + this.viewContainer = viewContainer; + this.elementRef = elementRef; + } + } + HeaderRowOutlet.ɵfac = function HeaderRowOutlet_Factory(t) { + return new (t || HeaderRowOutlet)( + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_1__.ViewContainerRef + ), + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_1__.ElementRef + ) + ); + }; + HeaderRowOutlet.ɵdir = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵdefineDirective" + ]({ + type: HeaderRowOutlet, + selectors: [["", "headerRowOutlet", ""]], + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"]( + HeaderRowOutlet, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Directive, + args: [ + { + selector: "[headerRowOutlet]", + }, + ], + }, + ], + function () { + return [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ViewContainerRef, + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ElementRef, + }, + ]; + }, + null + ); + })(); + /** + * Provides a handle for the table to grab the view container's ng-container to insert the footer. + * @docs-private + */ + class FooterRowOutlet { + constructor(viewContainer, elementRef) { + this.viewContainer = viewContainer; + this.elementRef = elementRef; + } + } + FooterRowOutlet.ɵfac = function FooterRowOutlet_Factory(t) { + return new (t || FooterRowOutlet)( + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_1__.ViewContainerRef + ), + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_1__.ElementRef + ) + ); + }; + FooterRowOutlet.ɵdir = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵdefineDirective" + ]({ + type: FooterRowOutlet, + selectors: [["", "footerRowOutlet", ""]], + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"]( + FooterRowOutlet, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Directive, + args: [ + { + selector: "[footerRowOutlet]", + }, + ], + }, + ], + function () { + return [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ViewContainerRef, + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ElementRef, + }, + ]; + }, + null + ); + })(); + /** + * Provides a handle for the table to grab the view + * container's ng-container to insert the no data row. + * @docs-private + */ + class NoDataRowOutlet { + constructor(viewContainer, elementRef) { + this.viewContainer = viewContainer; + this.elementRef = elementRef; + } + } + NoDataRowOutlet.ɵfac = function NoDataRowOutlet_Factory(t) { + return new (t || NoDataRowOutlet)( + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_1__.ViewContainerRef + ), + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_1__.ElementRef + ) + ); + }; + NoDataRowOutlet.ɵdir = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵdefineDirective" + ]({ + type: NoDataRowOutlet, + selectors: [["", "noDataRowOutlet", ""]], + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"]( + NoDataRowOutlet, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Directive, + args: [ + { + selector: "[noDataRowOutlet]", + }, + ], + }, + ], + function () { + return [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ViewContainerRef, + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ElementRef, + }, + ]; + }, + null + ); + })(); + /** + * The table template that can be used by the mat-table. Should not be used outside of the + * material library. + * @docs-private + */ + const CDK_TABLE_TEMPLATE = + // Note that according to MDN, the `caption` element has to be projected as the **first** + // element in the table. See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/caption + ` + + + + + + +`; + /** + * Class used to conveniently type the embedded view ref for rows with a context. + * @docs-private + */ + class RowViewRef extends _angular_core__WEBPACK_IMPORTED_MODULE_1__.EmbeddedViewRef {} + /** + * A data table that can render a header row, data rows, and a footer row. + * Uses the dataSource input to determine the data to be rendered. The data can be provided either + * as a data array, an Observable stream that emits the data array to render, or a DataSource with a + * connect function that will return an Observable stream that emits the data array to render. + */ + class CdkTable { + /** + * Tracking function that will be used to check the differences in data changes. Used similarly + * to `ngFor` `trackBy` function. Optimize row operations by identifying a row based on its data + * relative to the function to know if a row should be added/removed/moved. + * Accepts a function that takes two parameters, `index` and `item`. + */ + get trackBy() { + return this._trackByFn; + } + set trackBy(fn) { + if ( + (typeof ngDevMode === "undefined" || ngDevMode) && + fn != null && + typeof fn !== "function" + ) { + console.warn( + `trackBy must be a function, but received ${JSON.stringify( + fn + )}.` + ); + } + this._trackByFn = fn; + } + /** + * The table's source of data, which can be provided in three ways (in order of complexity): + * - Simple data array (each object represents one table row) + * - Stream that emits a data array each time the array changes + * - `DataSource` object that implements the connect/disconnect interface. + * + * If a data array is provided, the table must be notified when the array's objects are + * added, removed, or moved. This can be done by calling the `renderRows()` function which will + * render the diff since the last table render. If the data array reference is changed, the table + * will automatically trigger an update to the rows. + * + * When providing an Observable stream, the table will trigger an update automatically when the + * stream emits a new array of data. + * + * Finally, when providing a `DataSource` object, the table will use the Observable stream + * provided by the connect function and trigger updates when that stream emits new data array + * values. During the table's ngOnDestroy or when the data source is removed from the table, the + * table will call the DataSource's `disconnect` function (may be useful for cleaning up any + * subscriptions registered during the connect process). + */ + get dataSource() { + return this._dataSource; + } + set dataSource(dataSource) { + if (this._dataSource !== dataSource) { + this._switchDataSource(dataSource); + } + } + /** + * Whether to allow multiple rows per data object by evaluating which rows evaluate their 'when' + * predicate to true. If `multiTemplateDataRows` is false, which is the default value, then each + * dataobject will render the first row that evaluates its when predicate to true, in the order + * defined in the table, or otherwise the default row which does not have a when predicate. + */ + get multiTemplateDataRows() { + return this._multiTemplateDataRows; + } + set multiTemplateDataRows(v) { + this._multiTemplateDataRows = (0, + _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__.coerceBooleanProperty)( + v + ); + // In Ivy if this value is set via a static attribute (e.g.
), + // this setter will be invoked before the row outlet has been defined hence the null check. + if (this._rowOutlet && this._rowOutlet.viewContainer.length) { + this._forceRenderDataRows(); + this.updateStickyColumnStyles(); + } + } + /** + * Whether to use a fixed table layout. Enabling this option will enforce consistent column widths + * and optimize rendering sticky styles for native tables. No-op for flex tables. + */ + get fixedLayout() { + return this._fixedLayout; + } + set fixedLayout(v) { + this._fixedLayout = (0, + _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__.coerceBooleanProperty)( + v + ); + // Toggling `fixedLayout` may change column widths. Sticky column styles should be recalculated. + this._forceRecalculateCellWidths = true; + this._stickyColumnStylesNeedReset = true; + } + constructor( + _differs, + _changeDetectorRef, + _elementRef, + role, + _dir, + _document, + _platform, + _viewRepeater, + _coalescedStyleScheduler, + _viewportRuler, + /** + * @deprecated `_stickyPositioningListener` parameter to become required. + * @breaking-change 13.0.0 + */ + _stickyPositioningListener, + /** + * @deprecated `_ngZone` parameter to become required. + * @breaking-change 14.0.0 + */ + _ngZone + ) { + this._differs = _differs; + this._changeDetectorRef = _changeDetectorRef; + this._elementRef = _elementRef; + this._dir = _dir; + this._platform = _platform; + this._viewRepeater = _viewRepeater; + this._coalescedStyleScheduler = _coalescedStyleScheduler; + this._viewportRuler = _viewportRuler; + this._stickyPositioningListener = _stickyPositioningListener; + this._ngZone = _ngZone; + /** Subject that emits when the component has been destroyed. */ + this._onDestroy = new rxjs__WEBPACK_IMPORTED_MODULE_3__.Subject(); + /** + * Map of all the user's defined columns (header, data, and footer cell template) identified by + * name. Collection populated by the column definitions gathered by `ContentChildren` as well as + * any custom column definitions added to `_customColumnDefs`. + */ + this._columnDefsByName = new Map(); + /** + * Column definitions that were defined outside of the direct content children of the table. + * These will be defined when, e.g., creating a wrapper around the cdkTable that has + * column definitions as *its* content child. + */ + this._customColumnDefs = new Set(); + /** + * Data row definitions that were defined outside of the direct content children of the table. + * These will be defined when, e.g., creating a wrapper around the cdkTable that has + * built-in data rows as *its* content child. + */ + this._customRowDefs = new Set(); + /** + * Header row definitions that were defined outside of the direct content children of the table. + * These will be defined when, e.g., creating a wrapper around the cdkTable that has + * built-in header rows as *its* content child. + */ + this._customHeaderRowDefs = new Set(); + /** + * Footer row definitions that were defined outside of the direct content children of the table. + * These will be defined when, e.g., creating a wrapper around the cdkTable that has a + * built-in footer row as *its* content child. + */ + this._customFooterRowDefs = new Set(); + /** + * Whether the header row definition has been changed. Triggers an update to the header row after + * content is checked. Initialized as true so that the table renders the initial set of rows. + */ + this._headerRowDefChanged = true; + /** + * Whether the footer row definition has been changed. Triggers an update to the footer row after + * content is checked. Initialized as true so that the table renders the initial set of rows. + */ + this._footerRowDefChanged = true; + /** + * Whether the sticky column styles need to be updated. Set to `true` when the visible columns + * change. + */ + this._stickyColumnStylesNeedReset = true; + /** + * Whether the sticky styler should recalculate cell widths when applying sticky styles. If + * `false`, cached values will be used instead. This is only applicable to tables with + * {@link fixedLayout} enabled. For other tables, cell widths will always be recalculated. + */ + this._forceRecalculateCellWidths = true; + /** + * Cache of the latest rendered `RenderRow` objects as a map for easy retrieval when constructing + * a new list of `RenderRow` objects for rendering rows. Since the new list is constructed with + * the cached `RenderRow` objects when possible, the row identity is preserved when the data + * and row template matches, which allows the `IterableDiffer` to check rows by reference + * and understand which rows are added/moved/removed. + * + * Implemented as a map of maps where the first key is the `data: T` object and the second is the + * `CdkRowDef` object. With the two keys, the cache points to a `RenderRow` object that + * contains an array of created pairs. The array is necessary to handle cases where the data + * array contains multiple duplicate data objects and each instantiated `RenderRow` must be + * stored. + */ + this._cachedRenderRowsMap = new Map(); + /** + * CSS class added to any row or cell that has sticky positioning applied. May be overridden by + * table subclasses. + */ + this.stickyCssClass = "cdk-table-sticky"; + /** + * Whether to manually add position: sticky to all sticky cell elements. Not needed if + * the position is set in a selector associated with the value of stickyCssClass. May be + * overridden by table subclasses + */ + this.needsPositionStickyOnElement = true; + /** Whether the no data row is currently showing anything. */ + this._isShowingNoDataRow = false; + this._multiTemplateDataRows = false; + this._fixedLayout = false; + /** + * Emits when the table completes rendering a set of data rows based on the latest data from the + * data source, even if the set of rows is empty. + */ + this.contentChanged = + new _angular_core__WEBPACK_IMPORTED_MODULE_1__.EventEmitter(); + // TODO(andrewseguin): Remove max value as the end index + // and instead calculate the view on init and scroll. + /** + * Stream containing the latest information on what rows are being displayed on screen. + * Can be used by the data source to as a heuristic of what data should be provided. + * + * @docs-private + */ + this.viewChange = + new rxjs__WEBPACK_IMPORTED_MODULE_7__.BehaviorSubject({ + start: 0, + end: Number.MAX_VALUE, + }); + if (!role) { + this._elementRef.nativeElement.setAttribute("role", "table"); + } + this._document = _document; + this._isNativeHtmlTable = + this._elementRef.nativeElement.nodeName === "TABLE"; + } + ngOnInit() { + this._setupStickyStyler(); + if (this._isNativeHtmlTable) { + this._applyNativeTableSections(); + } + // Set up the trackBy function so that it uses the `RenderRow` as its identity by default. If + // the user has provided a custom trackBy, return the result of that function as evaluated + // with the values of the `RenderRow`'s data and index. + this._dataDiffer = this._differs.find([]).create((_i, dataRow) => { + return this.trackBy + ? this.trackBy(dataRow.dataIndex, dataRow.data) + : dataRow; + }); + this._viewportRuler + .change() + .pipe( + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.takeUntil)( + this._onDestroy + ) + ) + .subscribe(() => { + this._forceRecalculateCellWidths = true; + }); + } + ngAfterContentChecked() { + // Cache the row and column definitions gathered by ContentChildren and programmatic injection. + this._cacheRowDefs(); + this._cacheColumnDefs(); + // Make sure that the user has at least added header, footer, or data row def. + if ( + !this._headerRowDefs.length && + !this._footerRowDefs.length && + !this._rowDefs.length && + (typeof ngDevMode === "undefined" || ngDevMode) + ) { + throw getTableMissingRowDefsError(); + } + // Render updates if the list of columns have been changed for the header, row, or footer defs. + const columnsChanged = this._renderUpdatedColumns(); + const rowDefsChanged = + columnsChanged || + this._headerRowDefChanged || + this._footerRowDefChanged; + // Ensure sticky column styles are reset if set to `true` elsewhere. + this._stickyColumnStylesNeedReset = + this._stickyColumnStylesNeedReset || rowDefsChanged; + this._forceRecalculateCellWidths = rowDefsChanged; + // If the header row definition has been changed, trigger a render to the header row. + if (this._headerRowDefChanged) { + this._forceRenderHeaderRows(); + this._headerRowDefChanged = false; + } + // If the footer row definition has been changed, trigger a render to the footer row. + if (this._footerRowDefChanged) { + this._forceRenderFooterRows(); + this._footerRowDefChanged = false; + } + // If there is a data source and row definitions, connect to the data source unless a + // connection has already been made. + if ( + this.dataSource && + this._rowDefs.length > 0 && + !this._renderChangeSubscription + ) { + this._observeRenderChanges(); + } else if (this._stickyColumnStylesNeedReset) { + // In the above case, _observeRenderChanges will result in updateStickyColumnStyles being + // called when it row data arrives. Otherwise, we need to call it proactively. + this.updateStickyColumnStyles(); + } + this._checkStickyStates(); + } + ngOnDestroy() { + [ + this._rowOutlet.viewContainer, + this._headerRowOutlet.viewContainer, + this._footerRowOutlet.viewContainer, + this._cachedRenderRowsMap, + this._customColumnDefs, + this._customRowDefs, + this._customHeaderRowDefs, + this._customFooterRowDefs, + this._columnDefsByName, + ].forEach((def) => { + def.clear(); + }); + this._headerRowDefs = []; + this._footerRowDefs = []; + this._defaultRowDef = null; + this._onDestroy.next(); + this._onDestroy.complete(); + if ( + (0, + _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_0__.isDataSource)( + this.dataSource + ) + ) { + this.dataSource.disconnect(this); + } + } + /** + * Renders rows based on the table's latest set of data, which was either provided directly as an + * input or retrieved through an Observable stream (directly or from a DataSource). + * Checks for differences in the data since the last diff to perform only the necessary + * changes (add/remove/move rows). + * + * If the table's data source is a DataSource or Observable, this will be invoked automatically + * each time the provided Observable stream emits a new data array. Otherwise if your data is + * an array, this function will need to be called to render any changes. + */ + renderRows() { + this._renderRows = this._getAllRenderRows(); + const changes = this._dataDiffer.diff(this._renderRows); + if (!changes) { + this._updateNoDataRow(); + this.contentChanged.next(); + return; + } + const viewContainer = this._rowOutlet.viewContainer; + this._viewRepeater.applyChanges( + changes, + viewContainer, + (record, _adjustedPreviousIndex, currentIndex) => + this._getEmbeddedViewArgs(record.item, currentIndex), + (record) => record.item.data, + (change) => { + if ( + change.operation === + 1 /* _ViewRepeaterOperation.INSERTED */ && + change.context + ) { + this._renderCellTemplateForItem( + change.record.item.rowDef, + change.context + ); + } + } + ); + // Update the meta context of a row's context data (index, count, first, last, ...) + this._updateRowIndexContext(); + // Update rows that did not get added/removed/moved but may have had their identity changed, + // e.g. if trackBy matched data on some property but the actual data reference changed. + changes.forEachIdentityChange((record) => { + const rowView = viewContainer.get(record.currentIndex); + rowView.context.$implicit = record.item.data; + }); + this._updateNoDataRow(); + // Allow the new row data to render before measuring it. + // @breaking-change 14.0.0 Remove undefined check once _ngZone is required. + if ( + this._ngZone && + _angular_core__WEBPACK_IMPORTED_MODULE_1__.NgZone.isInAngularZone() + ) { + this._ngZone.onStable + .pipe( + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.take)(1), + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.takeUntil)( + this._onDestroy + ) + ) + .subscribe(() => { + this.updateStickyColumnStyles(); + }); + } else { + this.updateStickyColumnStyles(); + } + this.contentChanged.next(); + } + /** Adds a column definition that was not included as part of the content children. */ + addColumnDef(columnDef) { + this._customColumnDefs.add(columnDef); + } + /** Removes a column definition that was not included as part of the content children. */ + removeColumnDef(columnDef) { + this._customColumnDefs.delete(columnDef); + } + /** Adds a row definition that was not included as part of the content children. */ + addRowDef(rowDef) { + this._customRowDefs.add(rowDef); + } + /** Removes a row definition that was not included as part of the content children. */ + removeRowDef(rowDef) { + this._customRowDefs.delete(rowDef); + } + /** Adds a header row definition that was not included as part of the content children. */ + addHeaderRowDef(headerRowDef) { + this._customHeaderRowDefs.add(headerRowDef); + this._headerRowDefChanged = true; + } + /** Removes a header row definition that was not included as part of the content children. */ + removeHeaderRowDef(headerRowDef) { + this._customHeaderRowDefs.delete(headerRowDef); + this._headerRowDefChanged = true; + } + /** Adds a footer row definition that was not included as part of the content children. */ + addFooterRowDef(footerRowDef) { + this._customFooterRowDefs.add(footerRowDef); + this._footerRowDefChanged = true; + } + /** Removes a footer row definition that was not included as part of the content children. */ + removeFooterRowDef(footerRowDef) { + this._customFooterRowDefs.delete(footerRowDef); + this._footerRowDefChanged = true; + } + /** Sets a no data row definition that was not included as a part of the content children. */ + setNoDataRow(noDataRow) { + this._customNoDataRow = noDataRow; + } + /** + * Updates the header sticky styles. First resets all applied styles with respect to the cells + * sticking to the top. Then, evaluating which cells need to be stuck to the top. This is + * automatically called when the header row changes its displayed set of columns, or if its + * sticky input changes. May be called manually for cases where the cell content changes outside + * of these events. + */ + updateStickyHeaderRowStyles() { + const headerRows = this._getRenderedRows(this._headerRowOutlet); + const tableElement = this._elementRef.nativeElement; + // Hide the thead element if there are no header rows. This is necessary to satisfy + // overzealous a11y checkers that fail because the `rowgroup` element does not contain + // required child `row`. + const thead = tableElement.querySelector("thead"); + if (thead) { + thead.style.display = headerRows.length ? "" : "none"; + } + const stickyStates = this._headerRowDefs.map((def) => def.sticky); + this._stickyStyler.clearStickyPositioning(headerRows, ["top"]); + this._stickyStyler.stickRows(headerRows, stickyStates, "top"); + // Reset the dirty state of the sticky input change since it has been used. + this._headerRowDefs.forEach((def) => def.resetStickyChanged()); + } + /** + * Updates the footer sticky styles. First resets all applied styles with respect to the cells + * sticking to the bottom. Then, evaluating which cells need to be stuck to the bottom. This is + * automatically called when the footer row changes its displayed set of columns, or if its + * sticky input changes. May be called manually for cases where the cell content changes outside + * of these events. + */ + updateStickyFooterRowStyles() { + const footerRows = this._getRenderedRows(this._footerRowOutlet); + const tableElement = this._elementRef.nativeElement; + // Hide the tfoot element if there are no footer rows. This is necessary to satisfy + // overzealous a11y checkers that fail because the `rowgroup` element does not contain + // required child `row`. + const tfoot = tableElement.querySelector("tfoot"); + if (tfoot) { + tfoot.style.display = footerRows.length ? "" : "none"; + } + const stickyStates = this._footerRowDefs.map((def) => def.sticky); + this._stickyStyler.clearStickyPositioning(footerRows, ["bottom"]); + this._stickyStyler.stickRows(footerRows, stickyStates, "bottom"); + this._stickyStyler.updateStickyFooterContainer( + this._elementRef.nativeElement, + stickyStates + ); + // Reset the dirty state of the sticky input change since it has been used. + this._footerRowDefs.forEach((def) => def.resetStickyChanged()); + } + /** + * Updates the column sticky styles. First resets all applied styles with respect to the cells + * sticking to the left and right. Then sticky styles are added for the left and right according + * to the column definitions for each cell in each row. This is automatically called when + * the data source provides a new set of data or when a column definition changes its sticky + * input. May be called manually for cases where the cell content changes outside of these events. + */ + updateStickyColumnStyles() { + const headerRows = this._getRenderedRows(this._headerRowOutlet); + const dataRows = this._getRenderedRows(this._rowOutlet); + const footerRows = this._getRenderedRows(this._footerRowOutlet); + // For tables not using a fixed layout, the column widths may change when new rows are rendered. + // In a table using a fixed layout, row content won't affect column width, so sticky styles + // don't need to be cleared unless either the sticky column config changes or one of the row + // defs change. + if ( + (this._isNativeHtmlTable && !this._fixedLayout) || + this._stickyColumnStylesNeedReset + ) { + // Clear the left and right positioning from all columns in the table across all rows since + // sticky columns span across all table sections (header, data, footer) + this._stickyStyler.clearStickyPositioning( + [...headerRows, ...dataRows, ...footerRows], + ["left", "right"] + ); + this._stickyColumnStylesNeedReset = false; + } + // Update the sticky styles for each header row depending on the def's sticky state + headerRows.forEach((headerRow, i) => { + this._addStickyColumnStyles([headerRow], this._headerRowDefs[i]); + }); + // Update the sticky styles for each data row depending on its def's sticky state + this._rowDefs.forEach((rowDef) => { + // Collect all the rows rendered with this row definition. + const rows = []; + for (let i = 0; i < dataRows.length; i++) { + if (this._renderRows[i].rowDef === rowDef) { + rows.push(dataRows[i]); + } + } + this._addStickyColumnStyles(rows, rowDef); + }); + // Update the sticky styles for each footer row depending on the def's sticky state + footerRows.forEach((footerRow, i) => { + this._addStickyColumnStyles([footerRow], this._footerRowDefs[i]); + }); + // Reset the dirty state of the sticky input change since it has been used. + Array.from(this._columnDefsByName.values()).forEach((def) => + def.resetStickyChanged() + ); + } + /** + * Get the list of RenderRow objects to render according to the current list of data and defined + * row definitions. If the previous list already contained a particular pair, it should be reused + * so that the differ equates their references. + */ + _getAllRenderRows() { + const renderRows = []; + // Store the cache and create a new one. Any re-used RenderRow objects will be moved into the + // new cache while unused ones can be picked up by garbage collection. + const prevCachedRenderRows = this._cachedRenderRowsMap; + this._cachedRenderRowsMap = new Map(); + // For each data object, get the list of rows that should be rendered, represented by the + // respective `RenderRow` object which is the pair of `data` and `CdkRowDef`. + for (let i = 0; i < this._data.length; i++) { + let data = this._data[i]; + const renderRowsForData = this._getRenderRowsForData( + data, + i, + prevCachedRenderRows.get(data) + ); + if (!this._cachedRenderRowsMap.has(data)) { + this._cachedRenderRowsMap.set(data, new WeakMap()); + } + for (let j = 0; j < renderRowsForData.length; j++) { + let renderRow = renderRowsForData[j]; + const cache = this._cachedRenderRowsMap.get(renderRow.data); + if (cache.has(renderRow.rowDef)) { + cache.get(renderRow.rowDef).push(renderRow); + } else { + cache.set(renderRow.rowDef, [renderRow]); + } + renderRows.push(renderRow); + } + } + return renderRows; + } + /** + * Gets a list of `RenderRow` for the provided data object and any `CdkRowDef` objects that + * should be rendered for this data. Reuses the cached RenderRow objects if they match the same + * `(T, CdkRowDef)` pair. + */ + _getRenderRowsForData(data, dataIndex, cache) { + const rowDefs = this._getRowDefs(data, dataIndex); + return rowDefs.map((rowDef) => { + const cachedRenderRows = + cache && cache.has(rowDef) ? cache.get(rowDef) : []; + if (cachedRenderRows.length) { + const dataRow = cachedRenderRows.shift(); + dataRow.dataIndex = dataIndex; + return dataRow; + } else { + return { + data, + rowDef, + dataIndex, + }; + } + }); + } + /** Update the map containing the content's column definitions. */ + _cacheColumnDefs() { + this._columnDefsByName.clear(); + const columnDefs = mergeArrayAndSet( + this._getOwnDefs(this._contentColumnDefs), + this._customColumnDefs + ); + columnDefs.forEach((columnDef) => { + if ( + this._columnDefsByName.has(columnDef.name) && + (typeof ngDevMode === "undefined" || ngDevMode) + ) { + throw getTableDuplicateColumnNameError(columnDef.name); + } + this._columnDefsByName.set(columnDef.name, columnDef); + }); + } + /** Update the list of all available row definitions that can be used. */ + _cacheRowDefs() { + this._headerRowDefs = mergeArrayAndSet( + this._getOwnDefs(this._contentHeaderRowDefs), + this._customHeaderRowDefs + ); + this._footerRowDefs = mergeArrayAndSet( + this._getOwnDefs(this._contentFooterRowDefs), + this._customFooterRowDefs + ); + this._rowDefs = mergeArrayAndSet( + this._getOwnDefs(this._contentRowDefs), + this._customRowDefs + ); + // After all row definitions are determined, find the row definition to be considered default. + const defaultRowDefs = this._rowDefs.filter((def) => !def.when); + if ( + !this.multiTemplateDataRows && + defaultRowDefs.length > 1 && + (typeof ngDevMode === "undefined" || ngDevMode) + ) { + throw getTableMultipleDefaultRowDefsError(); + } + this._defaultRowDef = defaultRowDefs[0]; + } + /** + * Check if the header, data, or footer rows have changed what columns they want to display or + * whether the sticky states have changed for the header or footer. If there is a diff, then + * re-render that section. + */ + _renderUpdatedColumns() { + const columnsDiffReducer = (acc, def) => + acc || !!def.getColumnsDiff(); + // Force re-render data rows if the list of column definitions have changed. + const dataColumnsChanged = this._rowDefs.reduce( + columnsDiffReducer, + false + ); + if (dataColumnsChanged) { + this._forceRenderDataRows(); + } + // Force re-render header/footer rows if the list of column definitions have changed. + const headerColumnsChanged = this._headerRowDefs.reduce( + columnsDiffReducer, + false + ); + if (headerColumnsChanged) { + this._forceRenderHeaderRows(); + } + const footerColumnsChanged = this._footerRowDefs.reduce( + columnsDiffReducer, + false + ); + if (footerColumnsChanged) { + this._forceRenderFooterRows(); + } + return ( + dataColumnsChanged || headerColumnsChanged || footerColumnsChanged + ); + } + /** + * Switch to the provided data source by resetting the data and unsubscribing from the current + * render change subscription if one exists. If the data source is null, interpret this by + * clearing the row outlet. Otherwise start listening for new data. + */ + _switchDataSource(dataSource) { + this._data = []; + if ( + (0, + _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_0__.isDataSource)( + this.dataSource + ) + ) { + this.dataSource.disconnect(this); + } + // Stop listening for data from the previous data source. + if (this._renderChangeSubscription) { + this._renderChangeSubscription.unsubscribe(); + this._renderChangeSubscription = null; + } + if (!dataSource) { + if (this._dataDiffer) { + this._dataDiffer.diff([]); + } + this._rowOutlet.viewContainer.clear(); + } + this._dataSource = dataSource; + } + /** Set up a subscription for the data provided by the data source. */ + _observeRenderChanges() { + // If no data source has been set, there is nothing to observe for changes. + if (!this.dataSource) { + return; + } + let dataStream; + if ( + (0, + _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_0__.isDataSource)( + this.dataSource + ) + ) { + dataStream = this.dataSource.connect(this); + } else if ( + (0, rxjs__WEBPACK_IMPORTED_MODULE_8__.isObservable)( + this.dataSource + ) + ) { + dataStream = this.dataSource; + } else if (Array.isArray(this.dataSource)) { + dataStream = (0, rxjs__WEBPACK_IMPORTED_MODULE_9__.of)( + this.dataSource + ); + } + if ( + dataStream === undefined && + (typeof ngDevMode === "undefined" || ngDevMode) + ) { + throw getTableUnknownDataSourceError(); + } + this._renderChangeSubscription = dataStream + .pipe( + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.takeUntil)( + this._onDestroy + ) + ) + .subscribe((data) => { + this._data = data || []; + this.renderRows(); + }); + } + /** + * Clears any existing content in the header row outlet and creates a new embedded view + * in the outlet using the header row definition. + */ + _forceRenderHeaderRows() { + // Clear the header row outlet if any content exists. + if (this._headerRowOutlet.viewContainer.length > 0) { + this._headerRowOutlet.viewContainer.clear(); + } + this._headerRowDefs.forEach((def, i) => + this._renderRow(this._headerRowOutlet, def, i) + ); + this.updateStickyHeaderRowStyles(); + } + /** + * Clears any existing content in the footer row outlet and creates a new embedded view + * in the outlet using the footer row definition. + */ + _forceRenderFooterRows() { + // Clear the footer row outlet if any content exists. + if (this._footerRowOutlet.viewContainer.length > 0) { + this._footerRowOutlet.viewContainer.clear(); + } + this._footerRowDefs.forEach((def, i) => + this._renderRow(this._footerRowOutlet, def, i) + ); + this.updateStickyFooterRowStyles(); + } + /** Adds the sticky column styles for the rows according to the columns' stick states. */ + _addStickyColumnStyles(rows, rowDef) { + const columnDefs = Array.from(rowDef.columns || []).map( + (columnName) => { + const columnDef = this._columnDefsByName.get(columnName); + if ( + !columnDef && + (typeof ngDevMode === "undefined" || ngDevMode) + ) { + throw getTableUnknownColumnError(columnName); + } + return columnDef; + } + ); + const stickyStartStates = columnDefs.map( + (columnDef) => columnDef.sticky + ); + const stickyEndStates = columnDefs.map( + (columnDef) => columnDef.stickyEnd + ); + this._stickyStyler.updateStickyColumns( + rows, + stickyStartStates, + stickyEndStates, + !this._fixedLayout || this._forceRecalculateCellWidths + ); + } + /** Gets the list of rows that have been rendered in the row outlet. */ + _getRenderedRows(rowOutlet) { + const renderedRows = []; + for (let i = 0; i < rowOutlet.viewContainer.length; i++) { + const viewRef = rowOutlet.viewContainer.get(i); + renderedRows.push(viewRef.rootNodes[0]); + } + return renderedRows; + } + /** + * Get the matching row definitions that should be used for this row data. If there is only + * one row definition, it is returned. Otherwise, find the row definitions that has a when + * predicate that returns true with the data. If none return true, return the default row + * definition. + */ + _getRowDefs(data, dataIndex) { + if (this._rowDefs.length == 1) { + return [this._rowDefs[0]]; + } + let rowDefs = []; + if (this.multiTemplateDataRows) { + rowDefs = this._rowDefs.filter( + (def) => !def.when || def.when(dataIndex, data) + ); + } else { + let rowDef = + this._rowDefs.find( + (def) => def.when && def.when(dataIndex, data) + ) || this._defaultRowDef; + if (rowDef) { + rowDefs.push(rowDef); + } + } + if ( + !rowDefs.length && + (typeof ngDevMode === "undefined" || ngDevMode) + ) { + throw getTableMissingMatchingRowDefError(data); + } + return rowDefs; + } + _getEmbeddedViewArgs(renderRow, index) { + const rowDef = renderRow.rowDef; + const context = { + $implicit: renderRow.data, + }; + return { + templateRef: rowDef.template, + context, + index, + }; + } + /** + * Creates a new row template in the outlet and fills it with the set of cell templates. + * Optionally takes a context to provide to the row and cells, as well as an optional index + * of where to place the new row template in the outlet. + */ + _renderRow(outlet, rowDef, index, context = {}) { + // TODO(andrewseguin): enforce that one outlet was instantiated from createEmbeddedView + const view = outlet.viewContainer.createEmbeddedView( + rowDef.template, + context, + index + ); + this._renderCellTemplateForItem(rowDef, context); + return view; + } + _renderCellTemplateForItem(rowDef, context) { + for (let cellTemplate of this._getCellTemplates(rowDef)) { + if (CdkCellOutlet.mostRecentCellOutlet) { + CdkCellOutlet.mostRecentCellOutlet._viewContainer.createEmbeddedView( + cellTemplate, + context + ); + } + } + this._changeDetectorRef.markForCheck(); + } + /** + * Updates the index-related context for each row to reflect any changes in the index of the rows, + * e.g. first/last/even/odd. + */ + _updateRowIndexContext() { + const viewContainer = this._rowOutlet.viewContainer; + for ( + let renderIndex = 0, count = viewContainer.length; + renderIndex < count; + renderIndex++ + ) { + const viewRef = viewContainer.get(renderIndex); + const context = viewRef.context; + context.count = count; + context.first = renderIndex === 0; + context.last = renderIndex === count - 1; + context.even = renderIndex % 2 === 0; + context.odd = !context.even; + if (this.multiTemplateDataRows) { + context.dataIndex = this._renderRows[renderIndex].dataIndex; + context.renderIndex = renderIndex; + } else { + context.index = this._renderRows[renderIndex].dataIndex; + } + } + } + /** Gets the column definitions for the provided row def. */ + _getCellTemplates(rowDef) { + if (!rowDef || !rowDef.columns) { + return []; + } + return Array.from(rowDef.columns, (columnId) => { + const column = this._columnDefsByName.get(columnId); + if (!column && (typeof ngDevMode === "undefined" || ngDevMode)) { + throw getTableUnknownColumnError(columnId); + } + return rowDef.extractCellTemplate(column); + }); + } + /** Adds native table sections (e.g. tbody) and moves the row outlets into them. */ + _applyNativeTableSections() { + const documentFragment = this._document.createDocumentFragment(); + const sections = [ + { + tag: "thead", + outlets: [this._headerRowOutlet], + }, + { + tag: "tbody", + outlets: [this._rowOutlet, this._noDataRowOutlet], + }, + { + tag: "tfoot", + outlets: [this._footerRowOutlet], + }, + ]; + for (const section of sections) { + const element = this._document.createElement(section.tag); + element.setAttribute("role", "rowgroup"); + for (const outlet of section.outlets) { + element.appendChild(outlet.elementRef.nativeElement); + } + documentFragment.appendChild(element); + } + // Use a DocumentFragment so we don't hit the DOM on each iteration. + this._elementRef.nativeElement.appendChild(documentFragment); + } + /** + * Forces a re-render of the data rows. Should be called in cases where there has been an input + * change that affects the evaluation of which rows should be rendered, e.g. toggling + * `multiTemplateDataRows` or adding/removing row definitions. + */ + _forceRenderDataRows() { + this._dataDiffer.diff([]); + this._rowOutlet.viewContainer.clear(); + this.renderRows(); + } + /** + * Checks if there has been a change in sticky states since last check and applies the correct + * sticky styles. Since checking resets the "dirty" state, this should only be performed once + * during a change detection and after the inputs are settled (after content check). + */ + _checkStickyStates() { + const stickyCheckReducer = (acc, d) => { + return acc || d.hasStickyChanged(); + }; + // Note that the check needs to occur for every definition since it notifies the definition + // that it can reset its dirty state. Using another operator like `some` may short-circuit + // remaining definitions and leave them in an unchecked state. + if (this._headerRowDefs.reduce(stickyCheckReducer, false)) { + this.updateStickyHeaderRowStyles(); + } + if (this._footerRowDefs.reduce(stickyCheckReducer, false)) { + this.updateStickyFooterRowStyles(); + } + if ( + Array.from(this._columnDefsByName.values()).reduce( + stickyCheckReducer, + false + ) + ) { + this._stickyColumnStylesNeedReset = true; + this.updateStickyColumnStyles(); + } + } + /** + * Creates the sticky styler that will be used for sticky rows and columns. Listens + * for directionality changes and provides the latest direction to the styler. Re-applies column + * stickiness when directionality changes. + */ + _setupStickyStyler() { + const direction = this._dir ? this._dir.value : "ltr"; + this._stickyStyler = new StickyStyler( + this._isNativeHtmlTable, + this.stickyCssClass, + direction, + this._coalescedStyleScheduler, + this._platform.isBrowser, + this.needsPositionStickyOnElement, + this._stickyPositioningListener + ); + (this._dir + ? this._dir.change + : (0, rxjs__WEBPACK_IMPORTED_MODULE_9__.of)() + ) + .pipe( + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.takeUntil)( + this._onDestroy + ) + ) + .subscribe((value) => { + this._stickyStyler.direction = value; + this.updateStickyColumnStyles(); + }); + } + /** Filters definitions that belong to this table from a QueryList. */ + _getOwnDefs(items) { + return items.filter((item) => !item._table || item._table === this); + } + /** Creates or removes the no data row, depending on whether any data is being shown. */ + _updateNoDataRow() { + const noDataRow = this._customNoDataRow || this._noDataRow; + if (!noDataRow) { + return; + } + const shouldShow = this._rowOutlet.viewContainer.length === 0; + if (shouldShow === this._isShowingNoDataRow) { + return; + } + const container = this._noDataRowOutlet.viewContainer; + if (shouldShow) { + const view = container.createEmbeddedView(noDataRow.templateRef); + const rootNode = view.rootNodes[0]; + // Only add the attributes if we have a single root node since it's hard + // to figure out which one to add it to when there are multiple. + if ( + view.rootNodes.length === 1 && + rootNode?.nodeType === this._document.ELEMENT_NODE + ) { + rootNode.setAttribute("role", "row"); + rootNode.classList.add(noDataRow._contentClassName); + } + } else { + container.clear(); + } + this._isShowingNoDataRow = shouldShow; + } + } + CdkTable.ɵfac = function CdkTable_Factory(t) { + return new (t || CdkTable)( + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_1__.IterableDiffers + ), + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_1__.ChangeDetectorRef + ), + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_1__.ElementRef + ), + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinjectAttribute"]( + "role" + ), + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"]( + _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_10__.Directionality, + 8 + ), + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"]( + _angular_common__WEBPACK_IMPORTED_MODULE_11__.DOCUMENT + ), + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"]( + _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_12__.Platform + ), + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"]( + _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_0__._VIEW_REPEATER_STRATEGY + ), + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"]( + _COALESCED_STYLE_SCHEDULER + ), + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"]( + _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_13__.ViewportRuler + ), + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"]( + STICKY_POSITIONING_LISTENER, + 12 + ), + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_1__.NgZone, + 8 + ) + ); + }; + CdkTable.ɵcmp = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵdefineComponent" + ]({ + type: CdkTable, + selectors: [["cdk-table"], ["table", "cdk-table", ""]], + contentQueries: function CdkTable_ContentQueries( + rf, + ctx, + dirIndex + ) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵcontentQuery"]( + dirIndex, + CdkNoDataRow, + 5 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵcontentQuery"]( + dirIndex, + CdkColumnDef, + 5 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵcontentQuery"]( + dirIndex, + CdkRowDef, + 5 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵcontentQuery"]( + dirIndex, + CdkHeaderRowDef, + 5 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵcontentQuery"]( + dirIndex, + CdkFooterRowDef, + 5 + ); + } + if (rf & 2) { + let _t; + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"]( + (_t = + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) + ) && (ctx._noDataRow = _t.first); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"]( + (_t = + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) + ) && (ctx._contentColumnDefs = _t); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"]( + (_t = + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) + ) && (ctx._contentRowDefs = _t); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"]( + (_t = + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) + ) && (ctx._contentHeaderRowDefs = _t); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"]( + (_t = + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) + ) && (ctx._contentFooterRowDefs = _t); + } + }, + viewQuery: function CdkTable_Query(rf, ctx) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"]( + DataRowOutlet, + 7 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"]( + HeaderRowOutlet, + 7 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"]( + FooterRowOutlet, + 7 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"]( + NoDataRowOutlet, + 7 + ); + } + if (rf & 2) { + let _t; + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"]( + (_t = + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) + ) && (ctx._rowOutlet = _t.first); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"]( + (_t = + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) + ) && (ctx._headerRowOutlet = _t.first); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"]( + (_t = + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) + ) && (ctx._footerRowOutlet = _t.first); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"]( + (_t = + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) + ) && (ctx._noDataRowOutlet = _t.first); + } + }, + hostAttrs: [1, "cdk-table"], + hostVars: 2, + hostBindings: function CdkTable_HostBindings(rf, ctx) { + if (rf & 2) { + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵclassProp"]( + "cdk-table-fixed-layout", + ctx.fixedLayout + ); + } + }, + inputs: { + trackBy: "trackBy", + dataSource: "dataSource", + multiTemplateDataRows: "multiTemplateDataRows", + fixedLayout: "fixedLayout", + }, + outputs: { + contentChanged: "contentChanged", + }, + exportAs: ["cdkTable"], + features: [ + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵProvidersFeature"]([ + { + provide: CDK_TABLE, + useExisting: CdkTable, + }, + { + provide: + _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_0__._VIEW_REPEATER_STRATEGY, + useClass: + _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_0__._DisposeViewRepeaterStrategy, + }, + { + provide: _COALESCED_STYLE_SCHEDULER, + useClass: _CoalescedStyleScheduler, + }, + // Prevent nested tables from seeing this table's StickyPositioningListener. + { + provide: STICKY_POSITIONING_LISTENER, + useValue: null, + }, + ]), + ], + ngContentSelectors: _c1, + decls: 6, + vars: 0, + consts: [ + ["headerRowOutlet", ""], + ["rowOutlet", ""], + ["noDataRowOutlet", ""], + ["footerRowOutlet", ""], + ], + template: function CdkTable_Template(rf, ctx) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojectionDef"]( + _c0 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojection"](0); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojection"]( + 1, + 1 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵelementContainer" + ](2, 0)(3, 1)(4, 2)(5, 3); + } + }, + dependencies: [ + DataRowOutlet, + HeaderRowOutlet, + FooterRowOutlet, + NoDataRowOutlet, + ], + styles: [".cdk-table-fixed-layout{table-layout:fixed}"], + encapsulation: 2, + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"]( + CdkTable, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Component, + args: [ + { + selector: "cdk-table, table[cdk-table]", + exportAs: "cdkTable", + template: CDK_TABLE_TEMPLATE, + host: { + class: "cdk-table", + "[class.cdk-table-fixed-layout]": "fixedLayout", + }, + encapsulation: + _angular_core__WEBPACK_IMPORTED_MODULE_1__ + .ViewEncapsulation.None, + changeDetection: + _angular_core__WEBPACK_IMPORTED_MODULE_1__ + .ChangeDetectionStrategy.Default, + providers: [ + { + provide: CDK_TABLE, + useExisting: CdkTable, + }, + { + provide: + _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_0__._VIEW_REPEATER_STRATEGY, + useClass: + _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_0__._DisposeViewRepeaterStrategy, + }, + { + provide: _COALESCED_STYLE_SCHEDULER, + useClass: _CoalescedStyleScheduler, + }, + // Prevent nested tables from seeing this table's StickyPositioningListener. + { + provide: STICKY_POSITIONING_LISTENER, + useValue: null, + }, + ], + styles: [".cdk-table-fixed-layout{table-layout:fixed}"], + }, + ], + }, + ], + function () { + return [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.IterableDiffers, + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ChangeDetectorRef, + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ElementRef, + }, + { + type: undefined, + decorators: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Attribute, + args: ["role"], + }, + ], + }, + { + type: _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_10__.Directionality, + decorators: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Optional, + }, + ], + }, + { + type: undefined, + decorators: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Inject, + args: [ + _angular_common__WEBPACK_IMPORTED_MODULE_11__.DOCUMENT, + ], + }, + ], + }, + { + type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_12__.Platform, + }, + { + type: undefined, + decorators: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Inject, + args: [ + _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_0__._VIEW_REPEATER_STRATEGY, + ], + }, + ], + }, + { + type: _CoalescedStyleScheduler, + decorators: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Inject, + args: [_COALESCED_STYLE_SCHEDULER], + }, + ], + }, + { + type: _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_13__.ViewportRuler, + }, + { + type: undefined, + decorators: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Optional, + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.SkipSelf, + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Inject, + args: [STICKY_POSITIONING_LISTENER], + }, + ], + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.NgZone, + decorators: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Optional, + }, + ], + }, + ]; + }, + { + trackBy: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Input, + }, + ], + dataSource: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Input, + }, + ], + multiTemplateDataRows: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Input, + }, + ], + fixedLayout: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Input, + }, + ], + contentChanged: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Output, + }, + ], + _rowOutlet: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ViewChild, + args: [ + DataRowOutlet, + { + static: true, + }, + ], + }, + ], + _headerRowOutlet: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ViewChild, + args: [ + HeaderRowOutlet, + { + static: true, + }, + ], + }, + ], + _footerRowOutlet: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ViewChild, + args: [ + FooterRowOutlet, + { + static: true, + }, + ], + }, + ], + _noDataRowOutlet: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ViewChild, + args: [ + NoDataRowOutlet, + { + static: true, + }, + ], + }, + ], + _contentColumnDefs: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ContentChildren, + args: [ + CdkColumnDef, + { + descendants: true, + }, + ], + }, + ], + _contentRowDefs: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ContentChildren, + args: [ + CdkRowDef, + { + descendants: true, + }, + ], + }, + ], + _contentHeaderRowDefs: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ContentChildren, + args: [ + CdkHeaderRowDef, + { + descendants: true, + }, + ], + }, + ], + _contentFooterRowDefs: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ContentChildren, + args: [ + CdkFooterRowDef, + { + descendants: true, + }, + ], + }, + ], + _noDataRow: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ContentChild, + args: [CdkNoDataRow], + }, + ], + } + ); + })(); + /** Utility function that gets a merged list of the entries in an array and values of a Set. */ + function mergeArrayAndSet(array, set) { + return array.concat(Array.from(set)); + } + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** + * Column that simply shows text content for the header and row cells. Assumes that the table + * is using the native table implementation (`
`). + * + * By default, the name of this column will be the header text and data property accessor. + * The header text can be overridden with the `headerText` input. Cell values can be overridden with + * the `dataAccessor` input. Change the text justification to the start or end using the `justify` + * input. + */ + class CdkTextColumn { + /** Column name that should be used to reference this column. */ + get name() { + return this._name; + } + set name(name) { + this._name = name; + // With Ivy, inputs can be initialized before static query results are + // available. In that case, we defer the synchronization until "ngOnInit" fires. + this._syncColumnDefName(); + } + constructor( + // `CdkTextColumn` is always requiring a table, but we just assert it manually + // for better error reporting. + // tslint:disable-next-line: lightweight-tokens + _table, + _options + ) { + this._table = _table; + this._options = _options; + /** Alignment of the cell values. */ + this.justify = "start"; + this._options = _options || {}; + } + ngOnInit() { + this._syncColumnDefName(); + if (this.headerText === undefined) { + this.headerText = this._createDefaultHeaderText(); + } + if (!this.dataAccessor) { + this.dataAccessor = + this._options.defaultDataAccessor || + ((data, name) => data[name]); + } + if (this._table) { + // Provide the cell and headerCell directly to the table with the static `ViewChild` query, + // since the columnDef will not pick up its content by the time the table finishes checking + // its content and initializing the rows. + this.columnDef.cell = this.cell; + this.columnDef.headerCell = this.headerCell; + this._table.addColumnDef(this.columnDef); + } else if (typeof ngDevMode === "undefined" || ngDevMode) { + throw getTableTextColumnMissingParentTableError(); + } + } + ngOnDestroy() { + if (this._table) { + this._table.removeColumnDef(this.columnDef); + } + } + /** + * Creates a default header text. Use the options' header text transformation function if one + * has been provided. Otherwise simply capitalize the column name. + */ + _createDefaultHeaderText() { + const name = this.name; + if (!name && (typeof ngDevMode === "undefined" || ngDevMode)) { + throw getTableTextColumnMissingNameError(); + } + if (this._options && this._options.defaultHeaderTextTransform) { + return this._options.defaultHeaderTextTransform(name); + } + return name[0].toUpperCase() + name.slice(1); + } + /** Synchronizes the column definition name with the text column name. */ + _syncColumnDefName() { + if (this.columnDef) { + this.columnDef.name = this.name; + } + } + } + CdkTextColumn.ɵfac = function CdkTextColumn_Factory(t) { + return new (t || CdkTextColumn)( + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"]( + CdkTable, + 8 + ), + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"]( + TEXT_COLUMN_OPTIONS, + 8 + ) + ); + }; + CdkTextColumn.ɵcmp = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵdefineComponent" + ]({ + type: CdkTextColumn, + selectors: [["cdk-text-column"]], + viewQuery: function CdkTextColumn_Query(rf, ctx) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"]( + CdkColumnDef, + 7 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"]( + CdkCellDef, + 7 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"]( + CdkHeaderCellDef, + 7 + ); + } + if (rf & 2) { + let _t; + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"]( + (_t = + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) + ) && (ctx.columnDef = _t.first); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"]( + (_t = + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) + ) && (ctx.cell = _t.first); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"]( + (_t = + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) + ) && (ctx.headerCell = _t.first); + } + }, + inputs: { + name: "name", + headerText: "headerText", + dataAccessor: "dataAccessor", + justify: "justify", + }, + decls: 3, + vars: 0, + consts: [ + ["cdkColumnDef", ""], + ["cdk-header-cell", "", 3, "text-align", 4, "cdkHeaderCellDef"], + ["cdk-cell", "", 3, "text-align", 4, "cdkCellDef"], + ["cdk-header-cell", ""], + ["cdk-cell", ""], + ], + template: function CdkTextColumn_Template(rf, ctx) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵelementContainerStart" + ](0, 0); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"]( + 1, + CdkTextColumn_th_1_Template, + 2, + 3, + "th", + 1 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"]( + 2, + CdkTextColumn_td_2_Template, + 2, + 3, + "td", + 2 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵelementContainerEnd" + ](); + } + }, + dependencies: [ + CdkCellDef, + CdkHeaderCellDef, + CdkColumnDef, + CdkCell, + CdkHeaderCell, + ], + encapsulation: 2, + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"]( + CdkTextColumn, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Component, + args: [ + { + selector: "cdk-text-column", + template: ` + + + + + `, + encapsulation: + _angular_core__WEBPACK_IMPORTED_MODULE_1__ + .ViewEncapsulation.None, + // Change detection is intentionally not set to OnPush. This component's template will be provided + // to the table to be inserted into its view. This is problematic when change detection runs since + // the bindings in this template will be evaluated _after_ the table's view is evaluated, which + // mean's the template in the table's view will not have the updated value (and in fact will cause + // an ExpressionChangedAfterItHasBeenCheckedError). + // tslint:disable-next-line:validate-decorators + changeDetection: + _angular_core__WEBPACK_IMPORTED_MODULE_1__ + .ChangeDetectionStrategy.Default, + }, + ], + }, + ], + function () { + return [ + { + type: CdkTable, + decorators: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Optional, + }, + ], + }, + { + type: undefined, + decorators: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Optional, + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Inject, + args: [TEXT_COLUMN_OPTIONS], + }, + ], + }, + ]; + }, + { + name: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Input, + }, + ], + headerText: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Input, + }, + ], + dataAccessor: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Input, + }, + ], + justify: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Input, + }, + ], + columnDef: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ViewChild, + args: [ + CdkColumnDef, + { + static: true, + }, + ], + }, + ], + cell: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ViewChild, + args: [ + CdkCellDef, + { + static: true, + }, + ], + }, + ], + headerCell: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ViewChild, + args: [ + CdkHeaderCellDef, + { + static: true, + }, + ], + }, + ], + } + ); + })(); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + const EXPORTED_DECLARATIONS = [ + CdkTable, + CdkRowDef, + CdkCellDef, + CdkCellOutlet, + CdkHeaderCellDef, + CdkFooterCellDef, + CdkColumnDef, + CdkCell, + CdkRow, + CdkHeaderCell, + CdkFooterCell, + CdkHeaderRow, + CdkHeaderRowDef, + CdkFooterRow, + CdkFooterRowDef, + DataRowOutlet, + HeaderRowOutlet, + FooterRowOutlet, + CdkTextColumn, + CdkNoDataRow, + CdkRecycleRows, + NoDataRowOutlet, + ]; + class CdkTableModule {} + CdkTableModule.ɵfac = function CdkTableModule_Factory(t) { + return new (t || CdkTableModule)(); + }; + CdkTableModule.ɵmod = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵdefineNgModule" + ]({ + type: CdkTableModule, + }); + CdkTableModule.ɵinj = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵdefineInjector" + ]({ + imports: [ + _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_13__.ScrollingModule, + ], + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"]( + CdkTableModule, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.NgModule, + args: [ + { + exports: EXPORTED_DECLARATIONS, + declarations: EXPORTED_DECLARATIONS, + imports: [ + _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_13__.ScrollingModule, + ], + }, + ], + }, + ], + null, + null + ); + })(); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + + /** + * Generated bundle index. Do not edit. + */ + + /***/ + }, + + /***/ 5288: + /*!***********************************************************!*\ + !*** ./node_modules/@angular/material/fesm2020/table.mjs ***! + \***********************************************************/ + /***/ ( + __unused_webpack___webpack_module__, + __webpack_exports__, + __webpack_require__ + ) => { + __webpack_require__.r(__webpack_exports__); + /* harmony export */ __webpack_require__.d(__webpack_exports__, { + /* harmony export */ MatCell: () => /* binding */ MatCell, + /* harmony export */ MatCellDef: () => /* binding */ MatCellDef, + /* harmony export */ MatColumnDef: () => /* binding */ MatColumnDef, + /* harmony export */ MatFooterCell: () => /* binding */ MatFooterCell, + /* harmony export */ MatFooterCellDef: () => + /* binding */ MatFooterCellDef, + /* harmony export */ MatFooterRow: () => /* binding */ MatFooterRow, + /* harmony export */ MatFooterRowDef: () => + /* binding */ MatFooterRowDef, + /* harmony export */ MatHeaderCell: () => /* binding */ MatHeaderCell, + /* harmony export */ MatHeaderCellDef: () => + /* binding */ MatHeaderCellDef, + /* harmony export */ MatHeaderRow: () => /* binding */ MatHeaderRow, + /* harmony export */ MatHeaderRowDef: () => + /* binding */ MatHeaderRowDef, + /* harmony export */ MatNoDataRow: () => /* binding */ MatNoDataRow, + /* harmony export */ MatRecycleRows: () => + /* binding */ MatRecycleRows, + /* harmony export */ MatRow: () => /* binding */ MatRow, + /* harmony export */ MatRowDef: () => /* binding */ MatRowDef, + /* harmony export */ MatTable: () => /* binding */ MatTable, + /* harmony export */ MatTableDataSource: () => + /* binding */ MatTableDataSource, + /* harmony export */ MatTableModule: () => + /* binding */ MatTableModule, + /* harmony export */ MatTextColumn: () => /* binding */ MatTextColumn, + /* harmony export */ _MatTableDataSource: () => + /* binding */ _MatTableDataSource, + /* harmony export */ + }); + /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = + __webpack_require__(/*! @angular/core */ 2560); + /* harmony import */ var _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__ = + __webpack_require__(/*! @angular/cdk/table */ 9673); + /* harmony import */ var _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_1__ = + __webpack_require__(/*! @angular/cdk/collections */ 1755); + /* harmony import */ var _angular_material_core__WEBPACK_IMPORTED_MODULE_3__ = + __webpack_require__(/*! @angular/material/core */ 9121); + /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_4__ = + __webpack_require__(/*! rxjs */ 6317); + /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_5__ = + __webpack_require__(/*! rxjs */ 228); + /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_7__ = + __webpack_require__(/*! rxjs */ 6646); + /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_8__ = + __webpack_require__(/*! rxjs */ 745); + /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_9__ = + __webpack_require__(/*! rxjs */ 6562); + /* harmony import */ var _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_6__ = + __webpack_require__(/*! @angular/cdk/coercion */ 8971); + /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_10__ = + __webpack_require__(/*! rxjs/operators */ 635); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** + * Enables the recycle view repeater strategy, which reduces rendering latency. Not compatible with + * tables that animate rows. + */ + const _c0 = [[["caption"]], [["colgroup"], ["col"]]]; + const _c1 = ["caption", "colgroup, col"]; + function MatTextColumn_th_1_Template(rf, ctx) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"]( + 0, + "th", + 3 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); + } + if (rf & 2) { + const ctx_r0 = + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵstyleProp"]( + "text-align", + ctx_r0.justify + ); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]( + " ", + ctx_r0.headerText, + " " + ); + } + } + function MatTextColumn_td_2_Template(rf, ctx) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"]( + 0, + "td", + 4 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); + } + if (rf & 2) { + const data_r2 = ctx.$implicit; + const ctx_r1 = + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵstyleProp"]( + "text-align", + ctx_r1.justify + ); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]( + " ", + ctx_r1.dataAccessor(data_r2, ctx_r1.name), + " " + ); + } + } + class MatRecycleRows {} + MatRecycleRows.ɵfac = function MatRecycleRows_Factory(t) { + return new (t || MatRecycleRows)(); + }; + MatRecycleRows.ɵdir = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineDirective" + ]({ + type: MatRecycleRows, + selectors: [ + ["mat-table", "recycleRows", ""], + ["table", "mat-table", "", "recycleRows", ""], + ], + features: [ + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([ + { + provide: + _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_1__._VIEW_REPEATER_STRATEGY, + useClass: + _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_1__._RecycleViewRepeaterStrategy, + }, + ]), + ], + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + MatRecycleRows, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive, + args: [ + { + selector: + "mat-table[recycleRows], table[mat-table][recycleRows]", + providers: [ + { + provide: + _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_1__._VIEW_REPEATER_STRATEGY, + useClass: + _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_1__._RecycleViewRepeaterStrategy, + }, + ], + }, + ], + }, + ], + null, + null + ); + })(); + class MatTable extends _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkTable { + constructor() { + super(...arguments); + /** Overrides the sticky CSS class set by the `CdkTable`. */ + this.stickyCssClass = "mat-mdc-table-sticky"; + /** Overrides the need to add position: sticky on every sticky cell element in `CdkTable`. */ + this.needsPositionStickyOnElement = false; + } + ngOnInit() { + super.ngOnInit(); + // After ngOnInit, the `CdkTable` has created and inserted the table sections (thead, tbody, + // tfoot). MDC requires the `mdc-data-table__content` class to be added to the body. Note that + // this only applies to native tables, because we don't wrap the content of flexbox-based ones. + if (this._isNativeHtmlTable) { + const tbody = + this._elementRef.nativeElement.querySelector("tbody"); + tbody.classList.add("mdc-data-table__content"); + } + } + } + MatTable.ɵfac = /* @__PURE__ */ (function () { + let ɵMatTable_BaseFactory; + return function MatTable_Factory(t) { + return ( + ɵMatTable_BaseFactory || + (ɵMatTable_BaseFactory = + _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵgetInheritedFactory" + ](MatTable)) + )(t || MatTable); + }; + })(); + MatTable.ɵcmp = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineComponent" + ]({ + type: MatTable, + selectors: [["mat-table"], ["table", "mat-table", ""]], + hostAttrs: [1, "mat-mdc-table", "mdc-data-table__table"], + hostVars: 2, + hostBindings: function MatTable_HostBindings(rf, ctx) { + if (rf & 2) { + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]( + "mdc-table-fixed-layout", + ctx.fixedLayout + ); + } + }, + exportAs: ["matTable"], + features: [ + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([ + { + provide: + _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkTable, + useExisting: MatTable, + }, + { + provide: + _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CDK_TABLE, + useExisting: MatTable, + }, + { + provide: + _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__._COALESCED_STYLE_SCHEDULER, + useClass: + _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__._CoalescedStyleScheduler, + }, + // TODO(michaeljamesparsons) Abstract the view repeater strategy to a directive API so this code + // is only included in the build if used. + { + provide: + _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_1__._VIEW_REPEATER_STRATEGY, + useClass: + _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_1__._DisposeViewRepeaterStrategy, + }, + // Prevent nested tables from seeing this table's StickyPositioningListener. + { + provide: + _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.STICKY_POSITIONING_LISTENER, + useValue: null, + }, + ]), + _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵInheritDefinitionFeature" + ], + ], + ngContentSelectors: _c1, + decls: 6, + vars: 0, + consts: [ + ["headerRowOutlet", ""], + ["rowOutlet", ""], + ["noDataRowOutlet", ""], + ["footerRowOutlet", ""], + ], + template: function MatTable_Template(rf, ctx) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojectionDef"]( + _c0 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojection"](0); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojection"]( + 1, + 1 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵelementContainer" + ](2, 0)(3, 1)(4, 2)(5, 3); + } + }, + dependencies: [ + _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.DataRowOutlet, + _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.HeaderRowOutlet, + _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.FooterRowOutlet, + _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.NoDataRowOutlet, + ], + styles: [ + ".mdc-data-table{border-radius:var(--mdc-shape-medium, 4px);border-width:1px;border-style:solid}.mdc-data-table .mdc-data-table__header-cell:first-child{border-top-left-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table .mdc-data-table__header-cell:first-child,.mdc-data-table .mdc-data-table__header-cell:first-child[dir=rtl]{border-top-right-radius:var(--mdc-shape-medium, 4px);border-top-left-radius:0}.mdc-data-table .mdc-data-table__header-cell:last-child{border-top-right-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table .mdc-data-table__header-cell:last-child,.mdc-data-table .mdc-data-table__header-cell:last-child[dir=rtl]{border-top-left-radius:var(--mdc-shape-medium, 4px);border-top-right-radius:0}.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:first-child{border-bottom-left-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:first-child,.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:first-child[dir=rtl]{border-bottom-right-radius:var(--mdc-shape-medium, 4px);border-bottom-left-radius:0}.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:last-child{border-bottom-right-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:last-child,.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:last-child[dir=rtl]{border-bottom-left-radius:var(--mdc-shape-medium, 4px);border-bottom-right-radius:0}.mdc-data-table__cell,.mdc-data-table__header-cell{border-bottom-width:1px;border-bottom-style:solid}.mdc-data-table__pagination{border-top-width:1px;border-top-style:solid}.mdc-data-table__row:last-child .mdc-data-table__cell{border-bottom:none}.mdc-data-table__row{height:52px}.mdc-data-table__pagination{min-height:52px}.mdc-data-table__header-row{height:56px}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 16px 0 16px}.mdc-data-table__header-cell--checkbox,.mdc-data-table__cell--checkbox{padding-left:4px;padding-right:0}[dir=rtl] .mdc-data-table__header-cell--checkbox,[dir=rtl] .mdc-data-table__cell--checkbox,.mdc-data-table__header-cell--checkbox[dir=rtl],.mdc-data-table__cell--checkbox[dir=rtl]{padding-left:0;padding-right:4px}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell,.mdc-data-table__cell[dir=rtl]{text-align:right}.mdc-data-table__cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__cell--numeric,.mdc-data-table__cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__cell--checkbox{width:1px}.mdc-data-table__header-cell{box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mdc-data-table__header-cell,.mdc-data-table__header-cell[dir=rtl]{text-align:right}.mdc-data-table__header-cell--checkbox{width:1px}.mdc-data-table__header-cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__header-cell--numeric,.mdc-data-table__header-cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__sort-icon-button{width:28px;height:28px;padding:2px;transform:rotate(0.0001deg);margin-left:4px;margin-right:0;opacity:0}.mdc-data-table__sort-icon-button .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:28px;height:28px;margin-top:0px;margin-bottom:0px;margin-right:0px;margin-left:0px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:28px;left:50%;width:28px;transform:translate(-50%, -50%)}[dir=rtl] .mdc-data-table__sort-icon-button,.mdc-data-table__sort-icon-button[dir=rtl]{margin-left:0;margin-right:4px}.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button{margin-left:0;margin-right:4px}[dir=rtl] .mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button[dir=rtl]{margin-left:4px;margin-right:0}.mdc-data-table__header-cell--sorted-descending .mdc-data-table__sort-icon-button{transform:rotate(-180deg)}.mdc-data-table__sort-icon-button:focus,.mdc-data-table__header-cell:hover .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--sorted .mdc-data-table__sort-icon-button{opacity:1}.mdc-data-table__header-cell-wrapper{align-items:center;display:inline-flex;vertical-align:middle}.mdc-data-table__header-cell--with-sort{cursor:pointer}.mdc-data-table__sort-status-label{clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}.mdc-data-table--sticky-header .mdc-data-table__header-cell{position:sticky;top:0;z-index:1}.mdc-data-table{-webkit-overflow-scrolling:touch;display:inline-flex;flex-direction:column;box-sizing:border-box;position:relative}.mdc-data-table__table-container{-webkit-overflow-scrolling:touch;overflow-x:auto;width:100%}.mdc-data-table__table{min-width:100%;border:0;white-space:nowrap;border-spacing:0;table-layout:fixed}.mdc-data-table__header-cell{box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mdc-data-table__header-cell,.mdc-data-table__header-cell[dir=rtl]{text-align:right}.mdc-data-table__header-cell--checkbox{width:1px}.mdc-data-table__header-cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__header-cell--numeric,.mdc-data-table__header-cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__sort-icon-button{width:28px;height:28px;padding:2px;transform:rotate(0.0001deg);margin-left:4px;margin-right:0;opacity:0}.mdc-data-table__sort-icon-button .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:28px;height:28px;margin-top:0px;margin-bottom:0px;margin-right:0px;margin-left:0px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:28px;left:50%;width:28px;transform:translate(-50%, -50%)}[dir=rtl] .mdc-data-table__sort-icon-button,.mdc-data-table__sort-icon-button[dir=rtl]{margin-left:0;margin-right:4px}.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button{margin-left:0;margin-right:4px}[dir=rtl] .mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button[dir=rtl]{margin-left:4px;margin-right:0}.mdc-data-table__header-cell--sorted-descending .mdc-data-table__sort-icon-button{transform:rotate(-180deg)}.mdc-data-table__sort-icon-button:focus,.mdc-data-table__header-cell:hover .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--sorted .mdc-data-table__sort-icon-button{opacity:1}.mdc-data-table__header-cell-wrapper{align-items:center;display:inline-flex;vertical-align:middle}.mdc-data-table__header-cell--with-sort{cursor:pointer}.mdc-data-table__sort-status-label{clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell,.mdc-data-table__cell[dir=rtl]{text-align:right}.mdc-data-table__cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__cell--numeric,.mdc-data-table__cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__cell--checkbox{width:1px}.mdc-data-table__pagination{box-sizing:border-box;display:flex;justify-content:flex-end}.mdc-data-table__pagination-trailing{margin-left:4px;margin-right:0;align-items:center;display:flex;flex-wrap:wrap;justify-content:flex-end}[dir=rtl] .mdc-data-table__pagination-trailing,.mdc-data-table__pagination-trailing[dir=rtl]{margin-left:0;margin-right:4px}.mdc-data-table__pagination-navigation{align-items:center;display:flex}.mdc-data-table__pagination-button{margin-left:0;margin-right:4px}[dir=rtl] .mdc-data-table__pagination-button .mdc-button__icon,.mdc-data-table__pagination-button .mdc-button__icon[dir=rtl]{transform:rotate(180deg)}[dir=rtl] .mdc-data-table__pagination-button,.mdc-data-table__pagination-button[dir=rtl]{margin-left:4px;margin-right:0}.mdc-data-table__pagination-total{margin-left:14px;margin-right:36px;white-space:nowrap}[dir=rtl] .mdc-data-table__pagination-total,.mdc-data-table__pagination-total[dir=rtl]{margin-left:36px;margin-right:14px}.mdc-data-table__pagination-rows-per-page{margin-left:0;margin-right:22px;align-items:center;display:inline-flex}[dir=rtl] .mdc-data-table__pagination-rows-per-page,.mdc-data-table__pagination-rows-per-page[dir=rtl]{margin-left:22px;margin-right:0}.mdc-data-table__pagination-rows-per-page-label{margin-left:0;margin-right:12px;white-space:nowrap}[dir=rtl] .mdc-data-table__pagination-rows-per-page-label,.mdc-data-table__pagination-rows-per-page-label[dir=rtl]{margin-left:12px;margin-right:0}.mdc-data-table__pagination-rows-per-page-select{min-width:var(--mdc-menu-min-width, 80px);margin:8px 0}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor{width:100%;min-width:80px}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor{height:36px}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-floating-label--float-above{font-size:.75rem}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-data-table__pagination-rows-per-page-select .mdc-select__dropdown-icon{width:20px;height:20px}.mdc-data-table__pagination-rows-per-page-select.mdc-select--outlined .mdc-select__anchor :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 56px)}.mdc-data-table__pagination-rows-per-page-select .mdc-list-item.mdc-list-item--with-one-line{height:36px}.mdc-data-table__progress-indicator{display:none;position:absolute;width:100%}.mdc-data-table--in-progress .mdc-data-table__progress-indicator{display:block}.mdc-data-table__scrim{background-color:var(--mdc-theme-surface, #fff);height:100%;opacity:.32;position:absolute;top:0;width:100%}mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}.mat-mdc-table-sticky{position:sticky !important}.mat-mdc-table{table-layout:auto;white-space:normal}mat-row.mat-mdc-row,mat-header-row.mat-mdc-header-row,mat-footer-row.mat-mdc-footer-row{border-bottom:none}.mat-mdc-table tbody,.mat-mdc-table tfoot,.mat-mdc-table thead,.mat-mdc-cell,.mat-mdc-footer-cell,.mat-mdc-header-row,.mat-mdc-row,.mat-mdc-footer-row,.mat-mdc-table .mat-mdc-header-cell{background:inherit}.mat-mdc-table .mat-mdc-row:hover,.mat-mdc-table .mat-mdc-footer-row:hover{background-color:inherit}.mat-mdc-table mat-header-row.mat-mdc-header-row,.mat-mdc-table mat-row.mat-mdc-row,.mat-mdc-table mat-footer-row.mat-mdc-footer-cell{height:unset}mat-header-cell.mat-mdc-header-cell,mat-cell.mat-mdc-cell,mat-footer-cell.mat-mdc-footer-cell{align-self:stretch}", + ], + encapsulation: 2, + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + MatTable, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Component, + args: [ + { + selector: "mat-table, table[mat-table]", + exportAs: "matTable", + template: + _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CDK_TABLE_TEMPLATE, + host: { + class: "mat-mdc-table mdc-data-table__table", + "[class.mdc-table-fixed-layout]": "fixedLayout", + }, + providers: [ + { + provide: + _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkTable, + useExisting: MatTable, + }, + { + provide: + _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CDK_TABLE, + useExisting: MatTable, + }, + { + provide: + _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__._COALESCED_STYLE_SCHEDULER, + useClass: + _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__._CoalescedStyleScheduler, + }, + // TODO(michaeljamesparsons) Abstract the view repeater strategy to a directive API so this code + // is only included in the build if used. + { + provide: + _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_1__._VIEW_REPEATER_STRATEGY, + useClass: + _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_1__._DisposeViewRepeaterStrategy, + }, + // Prevent nested tables from seeing this table's StickyPositioningListener. + { + provide: + _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.STICKY_POSITIONING_LISTENER, + useValue: null, + }, + ], + encapsulation: + _angular_core__WEBPACK_IMPORTED_MODULE_0__ + .ViewEncapsulation.None, + changeDetection: + _angular_core__WEBPACK_IMPORTED_MODULE_0__ + .ChangeDetectionStrategy.Default, + styles: [ + ".mdc-data-table{border-radius:var(--mdc-shape-medium, 4px);border-width:1px;border-style:solid}.mdc-data-table .mdc-data-table__header-cell:first-child{border-top-left-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table .mdc-data-table__header-cell:first-child,.mdc-data-table .mdc-data-table__header-cell:first-child[dir=rtl]{border-top-right-radius:var(--mdc-shape-medium, 4px);border-top-left-radius:0}.mdc-data-table .mdc-data-table__header-cell:last-child{border-top-right-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table .mdc-data-table__header-cell:last-child,.mdc-data-table .mdc-data-table__header-cell:last-child[dir=rtl]{border-top-left-radius:var(--mdc-shape-medium, 4px);border-top-right-radius:0}.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:first-child{border-bottom-left-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:first-child,.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:first-child[dir=rtl]{border-bottom-right-radius:var(--mdc-shape-medium, 4px);border-bottom-left-radius:0}.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:last-child{border-bottom-right-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:last-child,.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:last-child[dir=rtl]{border-bottom-left-radius:var(--mdc-shape-medium, 4px);border-bottom-right-radius:0}.mdc-data-table__cell,.mdc-data-table__header-cell{border-bottom-width:1px;border-bottom-style:solid}.mdc-data-table__pagination{border-top-width:1px;border-top-style:solid}.mdc-data-table__row:last-child .mdc-data-table__cell{border-bottom:none}.mdc-data-table__row{height:52px}.mdc-data-table__pagination{min-height:52px}.mdc-data-table__header-row{height:56px}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 16px 0 16px}.mdc-data-table__header-cell--checkbox,.mdc-data-table__cell--checkbox{padding-left:4px;padding-right:0}[dir=rtl] .mdc-data-table__header-cell--checkbox,[dir=rtl] .mdc-data-table__cell--checkbox,.mdc-data-table__header-cell--checkbox[dir=rtl],.mdc-data-table__cell--checkbox[dir=rtl]{padding-left:0;padding-right:4px}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell,.mdc-data-table__cell[dir=rtl]{text-align:right}.mdc-data-table__cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__cell--numeric,.mdc-data-table__cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__cell--checkbox{width:1px}.mdc-data-table__header-cell{box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mdc-data-table__header-cell,.mdc-data-table__header-cell[dir=rtl]{text-align:right}.mdc-data-table__header-cell--checkbox{width:1px}.mdc-data-table__header-cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__header-cell--numeric,.mdc-data-table__header-cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__sort-icon-button{width:28px;height:28px;padding:2px;transform:rotate(0.0001deg);margin-left:4px;margin-right:0;opacity:0}.mdc-data-table__sort-icon-button .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:28px;height:28px;margin-top:0px;margin-bottom:0px;margin-right:0px;margin-left:0px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:28px;left:50%;width:28px;transform:translate(-50%, -50%)}[dir=rtl] .mdc-data-table__sort-icon-button,.mdc-data-table__sort-icon-button[dir=rtl]{margin-left:0;margin-right:4px}.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button{margin-left:0;margin-right:4px}[dir=rtl] .mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button[dir=rtl]{margin-left:4px;margin-right:0}.mdc-data-table__header-cell--sorted-descending .mdc-data-table__sort-icon-button{transform:rotate(-180deg)}.mdc-data-table__sort-icon-button:focus,.mdc-data-table__header-cell:hover .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--sorted .mdc-data-table__sort-icon-button{opacity:1}.mdc-data-table__header-cell-wrapper{align-items:center;display:inline-flex;vertical-align:middle}.mdc-data-table__header-cell--with-sort{cursor:pointer}.mdc-data-table__sort-status-label{clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}.mdc-data-table--sticky-header .mdc-data-table__header-cell{position:sticky;top:0;z-index:1}.mdc-data-table{-webkit-overflow-scrolling:touch;display:inline-flex;flex-direction:column;box-sizing:border-box;position:relative}.mdc-data-table__table-container{-webkit-overflow-scrolling:touch;overflow-x:auto;width:100%}.mdc-data-table__table{min-width:100%;border:0;white-space:nowrap;border-spacing:0;table-layout:fixed}.mdc-data-table__header-cell{box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mdc-data-table__header-cell,.mdc-data-table__header-cell[dir=rtl]{text-align:right}.mdc-data-table__header-cell--checkbox{width:1px}.mdc-data-table__header-cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__header-cell--numeric,.mdc-data-table__header-cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__sort-icon-button{width:28px;height:28px;padding:2px;transform:rotate(0.0001deg);margin-left:4px;margin-right:0;opacity:0}.mdc-data-table__sort-icon-button .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:28px;height:28px;margin-top:0px;margin-bottom:0px;margin-right:0px;margin-left:0px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:28px;left:50%;width:28px;transform:translate(-50%, -50%)}[dir=rtl] .mdc-data-table__sort-icon-button,.mdc-data-table__sort-icon-button[dir=rtl]{margin-left:0;margin-right:4px}.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button{margin-left:0;margin-right:4px}[dir=rtl] .mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button[dir=rtl]{margin-left:4px;margin-right:0}.mdc-data-table__header-cell--sorted-descending .mdc-data-table__sort-icon-button{transform:rotate(-180deg)}.mdc-data-table__sort-icon-button:focus,.mdc-data-table__header-cell:hover .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--sorted .mdc-data-table__sort-icon-button{opacity:1}.mdc-data-table__header-cell-wrapper{align-items:center;display:inline-flex;vertical-align:middle}.mdc-data-table__header-cell--with-sort{cursor:pointer}.mdc-data-table__sort-status-label{clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell,.mdc-data-table__cell[dir=rtl]{text-align:right}.mdc-data-table__cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__cell--numeric,.mdc-data-table__cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__cell--checkbox{width:1px}.mdc-data-table__pagination{box-sizing:border-box;display:flex;justify-content:flex-end}.mdc-data-table__pagination-trailing{margin-left:4px;margin-right:0;align-items:center;display:flex;flex-wrap:wrap;justify-content:flex-end}[dir=rtl] .mdc-data-table__pagination-trailing,.mdc-data-table__pagination-trailing[dir=rtl]{margin-left:0;margin-right:4px}.mdc-data-table__pagination-navigation{align-items:center;display:flex}.mdc-data-table__pagination-button{margin-left:0;margin-right:4px}[dir=rtl] .mdc-data-table__pagination-button .mdc-button__icon,.mdc-data-table__pagination-button .mdc-button__icon[dir=rtl]{transform:rotate(180deg)}[dir=rtl] .mdc-data-table__pagination-button,.mdc-data-table__pagination-button[dir=rtl]{margin-left:4px;margin-right:0}.mdc-data-table__pagination-total{margin-left:14px;margin-right:36px;white-space:nowrap}[dir=rtl] .mdc-data-table__pagination-total,.mdc-data-table__pagination-total[dir=rtl]{margin-left:36px;margin-right:14px}.mdc-data-table__pagination-rows-per-page{margin-left:0;margin-right:22px;align-items:center;display:inline-flex}[dir=rtl] .mdc-data-table__pagination-rows-per-page,.mdc-data-table__pagination-rows-per-page[dir=rtl]{margin-left:22px;margin-right:0}.mdc-data-table__pagination-rows-per-page-label{margin-left:0;margin-right:12px;white-space:nowrap}[dir=rtl] .mdc-data-table__pagination-rows-per-page-label,.mdc-data-table__pagination-rows-per-page-label[dir=rtl]{margin-left:12px;margin-right:0}.mdc-data-table__pagination-rows-per-page-select{min-width:var(--mdc-menu-min-width, 80px);margin:8px 0}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor{width:100%;min-width:80px}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor{height:36px}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-floating-label--float-above{font-size:.75rem}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-data-table__pagination-rows-per-page-select .mdc-select__dropdown-icon{width:20px;height:20px}.mdc-data-table__pagination-rows-per-page-select.mdc-select--outlined .mdc-select__anchor :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 56px)}.mdc-data-table__pagination-rows-per-page-select .mdc-list-item.mdc-list-item--with-one-line{height:36px}.mdc-data-table__progress-indicator{display:none;position:absolute;width:100%}.mdc-data-table--in-progress .mdc-data-table__progress-indicator{display:block}.mdc-data-table__scrim{background-color:var(--mdc-theme-surface, #fff);height:100%;opacity:.32;position:absolute;top:0;width:100%}mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}.mat-mdc-table-sticky{position:sticky !important}.mat-mdc-table{table-layout:auto;white-space:normal}mat-row.mat-mdc-row,mat-header-row.mat-mdc-header-row,mat-footer-row.mat-mdc-footer-row{border-bottom:none}.mat-mdc-table tbody,.mat-mdc-table tfoot,.mat-mdc-table thead,.mat-mdc-cell,.mat-mdc-footer-cell,.mat-mdc-header-row,.mat-mdc-row,.mat-mdc-footer-row,.mat-mdc-table .mat-mdc-header-cell{background:inherit}.mat-mdc-table .mat-mdc-row:hover,.mat-mdc-table .mat-mdc-footer-row:hover{background-color:inherit}.mat-mdc-table mat-header-row.mat-mdc-header-row,.mat-mdc-table mat-row.mat-mdc-row,.mat-mdc-table mat-footer-row.mat-mdc-footer-cell{height:unset}mat-header-cell.mat-mdc-header-cell,mat-cell.mat-mdc-cell,mat-footer-cell.mat-mdc-footer-cell{align-self:stretch}", + ], + }, + ], + }, + ], + null, + null + ); + })(); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** + * Cell definition for the mat-table. + * Captures the template of a column's data row cell as well as cell-specific properties. + */ + class MatCellDef extends _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkCellDef {} + MatCellDef.ɵfac = /* @__PURE__ */ (function () { + let ɵMatCellDef_BaseFactory; + return function MatCellDef_Factory(t) { + return ( + ɵMatCellDef_BaseFactory || + (ɵMatCellDef_BaseFactory = + _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵgetInheritedFactory" + ](MatCellDef)) + )(t || MatCellDef); + }; + })(); + MatCellDef.ɵdir = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineDirective" + ]({ + type: MatCellDef, + selectors: [["", "matCellDef", ""]], + features: [ + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([ + { + provide: + _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkCellDef, + useExisting: MatCellDef, + }, + ]), + _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵInheritDefinitionFeature" + ], + ], + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + MatCellDef, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive, + args: [ + { + selector: "[matCellDef]", + providers: [ + { + provide: + _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkCellDef, + useExisting: MatCellDef, + }, + ], + }, + ], + }, + ], + null, + null + ); + })(); + /** + * Header cell definition for the mat-table. + * Captures the template of a column's header cell and as well as cell-specific properties. + */ + class MatHeaderCellDef extends _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkHeaderCellDef {} + MatHeaderCellDef.ɵfac = /* @__PURE__ */ (function () { + let ɵMatHeaderCellDef_BaseFactory; + return function MatHeaderCellDef_Factory(t) { + return ( + ɵMatHeaderCellDef_BaseFactory || + (ɵMatHeaderCellDef_BaseFactory = + _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵgetInheritedFactory" + ](MatHeaderCellDef)) + )(t || MatHeaderCellDef); + }; + })(); + MatHeaderCellDef.ɵdir = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineDirective" + ]({ + type: MatHeaderCellDef, + selectors: [["", "matHeaderCellDef", ""]], + features: [ + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([ + { + provide: + _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkHeaderCellDef, + useExisting: MatHeaderCellDef, + }, + ]), + _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵInheritDefinitionFeature" + ], + ], + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + MatHeaderCellDef, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive, + args: [ + { + selector: "[matHeaderCellDef]", + providers: [ + { + provide: + _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkHeaderCellDef, + useExisting: MatHeaderCellDef, + }, + ], + }, + ], + }, + ], + null, + null + ); + })(); + /** + * Footer cell definition for the mat-table. + * Captures the template of a column's footer cell and as well as cell-specific properties. + */ + class MatFooterCellDef extends _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkFooterCellDef {} + MatFooterCellDef.ɵfac = /* @__PURE__ */ (function () { + let ɵMatFooterCellDef_BaseFactory; + return function MatFooterCellDef_Factory(t) { + return ( + ɵMatFooterCellDef_BaseFactory || + (ɵMatFooterCellDef_BaseFactory = + _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵgetInheritedFactory" + ](MatFooterCellDef)) + )(t || MatFooterCellDef); + }; + })(); + MatFooterCellDef.ɵdir = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineDirective" + ]({ + type: MatFooterCellDef, + selectors: [["", "matFooterCellDef", ""]], + features: [ + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([ + { + provide: + _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkFooterCellDef, + useExisting: MatFooterCellDef, + }, + ]), + _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵInheritDefinitionFeature" + ], + ], + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + MatFooterCellDef, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive, + args: [ + { + selector: "[matFooterCellDef]", + providers: [ + { + provide: + _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkFooterCellDef, + useExisting: MatFooterCellDef, + }, + ], + }, + ], + }, + ], + null, + null + ); + })(); + /** + * Column definition for the mat-table. + * Defines a set of cells available for a table column. + */ + class MatColumnDef extends _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkColumnDef { + /** Unique name for this column. */ + get name() { + return this._name; + } + set name(name) { + this._setNameInput(name); + } + /** + * Add "mat-column-" prefix in addition to "cdk-column-" prefix. + * In the future, this will only add "mat-column-" and columnCssClassName + * will change from type string[] to string. + * @docs-private + */ + _updateColumnCssClassName() { + super._updateColumnCssClassName(); + this._columnCssClassName.push( + `mat-column-${this.cssClassFriendlyName}` + ); + } + } + MatColumnDef.ɵfac = /* @__PURE__ */ (function () { + let ɵMatColumnDef_BaseFactory; + return function MatColumnDef_Factory(t) { + return ( + ɵMatColumnDef_BaseFactory || + (ɵMatColumnDef_BaseFactory = + _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵgetInheritedFactory" + ](MatColumnDef)) + )(t || MatColumnDef); + }; + })(); + MatColumnDef.ɵdir = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineDirective" + ]({ + type: MatColumnDef, + selectors: [["", "matColumnDef", ""]], + inputs: { + sticky: "sticky", + name: ["matColumnDef", "name"], + }, + features: [ + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([ + { + provide: + _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkColumnDef, + useExisting: MatColumnDef, + }, + { + provide: "MAT_SORT_HEADER_COLUMN_DEF", + useExisting: MatColumnDef, + }, + ]), + _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵInheritDefinitionFeature" + ], + ], + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + MatColumnDef, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive, + args: [ + { + selector: "[matColumnDef]", + inputs: ["sticky"], + providers: [ + { + provide: + _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkColumnDef, + useExisting: MatColumnDef, + }, + { + provide: "MAT_SORT_HEADER_COLUMN_DEF", + useExisting: MatColumnDef, + }, + ], + }, + ], + }, + ], + null, + { + name: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input, + args: ["matColumnDef"], + }, + ], + } + ); + })(); + /** Header cell template container that adds the right classes and role. */ + class MatHeaderCell extends _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkHeaderCell {} + MatHeaderCell.ɵfac = /* @__PURE__ */ (function () { + let ɵMatHeaderCell_BaseFactory; + return function MatHeaderCell_Factory(t) { + return ( + ɵMatHeaderCell_BaseFactory || + (ɵMatHeaderCell_BaseFactory = + _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵgetInheritedFactory" + ](MatHeaderCell)) + )(t || MatHeaderCell); + }; + })(); + MatHeaderCell.ɵdir = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineDirective" + ]({ + type: MatHeaderCell, + selectors: [["mat-header-cell"], ["th", "mat-header-cell", ""]], + hostAttrs: [ + "role", + "columnheader", + 1, + "mat-mdc-header-cell", + "mdc-data-table__header-cell", + ], + features: [ + _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵInheritDefinitionFeature" + ], + ], + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + MatHeaderCell, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive, + args: [ + { + selector: "mat-header-cell, th[mat-header-cell]", + host: { + class: + "mat-mdc-header-cell mdc-data-table__header-cell", + role: "columnheader", + }, + }, + ], + }, + ], + null, + null + ); + })(); + /** Footer cell template container that adds the right classes and role. */ + class MatFooterCell extends _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkFooterCell {} + MatFooterCell.ɵfac = /* @__PURE__ */ (function () { + let ɵMatFooterCell_BaseFactory; + return function MatFooterCell_Factory(t) { + return ( + ɵMatFooterCell_BaseFactory || + (ɵMatFooterCell_BaseFactory = + _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵgetInheritedFactory" + ](MatFooterCell)) + )(t || MatFooterCell); + }; + })(); + MatFooterCell.ɵdir = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineDirective" + ]({ + type: MatFooterCell, + selectors: [["mat-footer-cell"], ["td", "mat-footer-cell", ""]], + hostAttrs: [1, "mat-mdc-footer-cell", "mdc-data-table__cell"], + features: [ + _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵInheritDefinitionFeature" + ], + ], + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + MatFooterCell, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive, + args: [ + { + selector: "mat-footer-cell, td[mat-footer-cell]", + host: { + class: "mat-mdc-footer-cell mdc-data-table__cell", + }, + }, + ], + }, + ], + null, + null + ); + })(); + /** Cell template container that adds the right classes and role. */ + class MatCell extends _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkCell {} + MatCell.ɵfac = /* @__PURE__ */ (function () { + let ɵMatCell_BaseFactory; + return function MatCell_Factory(t) { + return ( + ɵMatCell_BaseFactory || + (ɵMatCell_BaseFactory = + _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵgetInheritedFactory" + ](MatCell)) + )(t || MatCell); + }; + })(); + MatCell.ɵdir = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineDirective" + ]({ + type: MatCell, + selectors: [["mat-cell"], ["td", "mat-cell", ""]], + hostAttrs: [1, "mat-mdc-cell", "mdc-data-table__cell"], + features: [ + _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵInheritDefinitionFeature" + ], + ], + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + MatCell, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive, + args: [ + { + selector: "mat-cell, td[mat-cell]", + host: { + class: "mat-mdc-cell mdc-data-table__cell", + }, + }, + ], + }, + ], + null, + null + ); + })(); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** + * Header row definition for the mat-table. + * Captures the header row's template and other header properties such as the columns to display. + */ + class MatHeaderRowDef extends _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkHeaderRowDef {} + MatHeaderRowDef.ɵfac = /* @__PURE__ */ (function () { + let ɵMatHeaderRowDef_BaseFactory; + return function MatHeaderRowDef_Factory(t) { + return ( + ɵMatHeaderRowDef_BaseFactory || + (ɵMatHeaderRowDef_BaseFactory = + _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵgetInheritedFactory" + ](MatHeaderRowDef)) + )(t || MatHeaderRowDef); + }; + })(); + MatHeaderRowDef.ɵdir = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineDirective" + ]({ + type: MatHeaderRowDef, + selectors: [["", "matHeaderRowDef", ""]], + inputs: { + columns: ["matHeaderRowDef", "columns"], + sticky: ["matHeaderRowDefSticky", "sticky"], + }, + features: [ + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([ + { + provide: + _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkHeaderRowDef, + useExisting: MatHeaderRowDef, + }, + ]), + _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵInheritDefinitionFeature" + ], + ], + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + MatHeaderRowDef, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive, + args: [ + { + selector: "[matHeaderRowDef]", + providers: [ + { + provide: + _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkHeaderRowDef, + useExisting: MatHeaderRowDef, + }, + ], + inputs: [ + "columns: matHeaderRowDef", + "sticky: matHeaderRowDefSticky", + ], + }, + ], + }, + ], + null, + null + ); + })(); + /** + * Footer row definition for the mat-table. + * Captures the footer row's template and other footer properties such as the columns to display. + */ + class MatFooterRowDef extends _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkFooterRowDef {} + MatFooterRowDef.ɵfac = /* @__PURE__ */ (function () { + let ɵMatFooterRowDef_BaseFactory; + return function MatFooterRowDef_Factory(t) { + return ( + ɵMatFooterRowDef_BaseFactory || + (ɵMatFooterRowDef_BaseFactory = + _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵgetInheritedFactory" + ](MatFooterRowDef)) + )(t || MatFooterRowDef); + }; + })(); + MatFooterRowDef.ɵdir = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineDirective" + ]({ + type: MatFooterRowDef, + selectors: [["", "matFooterRowDef", ""]], + inputs: { + columns: ["matFooterRowDef", "columns"], + sticky: ["matFooterRowDefSticky", "sticky"], + }, + features: [ + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([ + { + provide: + _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkFooterRowDef, + useExisting: MatFooterRowDef, + }, + ]), + _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵInheritDefinitionFeature" + ], + ], + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + MatFooterRowDef, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive, + args: [ + { + selector: "[matFooterRowDef]", + providers: [ + { + provide: + _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkFooterRowDef, + useExisting: MatFooterRowDef, + }, + ], + inputs: [ + "columns: matFooterRowDef", + "sticky: matFooterRowDefSticky", + ], + }, + ], + }, + ], + null, + null + ); + })(); + /** + * Data row definition for the mat-table. + * Captures the data row's template and other properties such as the columns to display and + * a when predicate that describes when this row should be used. + */ + class MatRowDef extends _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkRowDef {} + MatRowDef.ɵfac = /* @__PURE__ */ (function () { + let ɵMatRowDef_BaseFactory; + return function MatRowDef_Factory(t) { + return ( + ɵMatRowDef_BaseFactory || + (ɵMatRowDef_BaseFactory = + _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵgetInheritedFactory" + ](MatRowDef)) + )(t || MatRowDef); + }; + })(); + MatRowDef.ɵdir = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineDirective" + ]({ + type: MatRowDef, + selectors: [["", "matRowDef", ""]], + inputs: { + columns: ["matRowDefColumns", "columns"], + when: ["matRowDefWhen", "when"], + }, + features: [ + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([ + { + provide: + _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkRowDef, + useExisting: MatRowDef, + }, + ]), + _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵInheritDefinitionFeature" + ], + ], + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + MatRowDef, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive, + args: [ + { + selector: "[matRowDef]", + providers: [ + { + provide: + _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkRowDef, + useExisting: MatRowDef, + }, + ], + inputs: [ + "columns: matRowDefColumns", + "when: matRowDefWhen", + ], + }, + ], + }, + ], + null, + null + ); + })(); + /** Footer template container that contains the cell outlet. Adds the right class and role. */ + class MatHeaderRow extends _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkHeaderRow {} + MatHeaderRow.ɵfac = /* @__PURE__ */ (function () { + let ɵMatHeaderRow_BaseFactory; + return function MatHeaderRow_Factory(t) { + return ( + ɵMatHeaderRow_BaseFactory || + (ɵMatHeaderRow_BaseFactory = + _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵgetInheritedFactory" + ](MatHeaderRow)) + )(t || MatHeaderRow); + }; + })(); + MatHeaderRow.ɵcmp = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineComponent" + ]({ + type: MatHeaderRow, + selectors: [["mat-header-row"], ["tr", "mat-header-row", ""]], + hostAttrs: [ + "role", + "row", + 1, + "mat-mdc-header-row", + "mdc-data-table__header-row", + ], + exportAs: ["matHeaderRow"], + features: [ + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([ + { + provide: + _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkHeaderRow, + useExisting: MatHeaderRow, + }, + ]), + _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵInheritDefinitionFeature" + ], + ], + decls: 1, + vars: 0, + consts: [["cdkCellOutlet", ""]], + template: function MatHeaderRow_Template(rf, ctx) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵelementContainer" + ](0, 0); + } + }, + dependencies: [ + _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkCellOutlet, + ], + encapsulation: 2, + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + MatHeaderRow, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Component, + args: [ + { + selector: "mat-header-row, tr[mat-header-row]", + template: + _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CDK_ROW_TEMPLATE, + host: { + class: "mat-mdc-header-row mdc-data-table__header-row", + role: "row", + }, + // See note on CdkTable for explanation on why this uses the default change detection strategy. + // tslint:disable-next-line:validate-decorators + changeDetection: + _angular_core__WEBPACK_IMPORTED_MODULE_0__ + .ChangeDetectionStrategy.Default, + encapsulation: + _angular_core__WEBPACK_IMPORTED_MODULE_0__ + .ViewEncapsulation.None, + exportAs: "matHeaderRow", + providers: [ + { + provide: + _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkHeaderRow, + useExisting: MatHeaderRow, + }, + ], + }, + ], + }, + ], + null, + null + ); + })(); + /** Footer template container that contains the cell outlet. Adds the right class and role. */ + class MatFooterRow extends _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkFooterRow {} + MatFooterRow.ɵfac = /* @__PURE__ */ (function () { + let ɵMatFooterRow_BaseFactory; + return function MatFooterRow_Factory(t) { + return ( + ɵMatFooterRow_BaseFactory || + (ɵMatFooterRow_BaseFactory = + _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵgetInheritedFactory" + ](MatFooterRow)) + )(t || MatFooterRow); + }; + })(); + MatFooterRow.ɵcmp = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineComponent" + ]({ + type: MatFooterRow, + selectors: [["mat-footer-row"], ["tr", "mat-footer-row", ""]], + hostAttrs: [ + "role", + "row", + 1, + "mat-mdc-footer-row", + "mdc-data-table__row", + ], + exportAs: ["matFooterRow"], + features: [ + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([ + { + provide: + _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkFooterRow, + useExisting: MatFooterRow, + }, + ]), + _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵInheritDefinitionFeature" + ], + ], + decls: 1, + vars: 0, + consts: [["cdkCellOutlet", ""]], + template: function MatFooterRow_Template(rf, ctx) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵelementContainer" + ](0, 0); + } + }, + dependencies: [ + _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkCellOutlet, + ], + encapsulation: 2, + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + MatFooterRow, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Component, + args: [ + { + selector: "mat-footer-row, tr[mat-footer-row]", + template: + _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CDK_ROW_TEMPLATE, + host: { + class: "mat-mdc-footer-row mdc-data-table__row", + role: "row", + }, + // See note on CdkTable for explanation on why this uses the default change detection strategy. + // tslint:disable-next-line:validate-decorators + changeDetection: + _angular_core__WEBPACK_IMPORTED_MODULE_0__ + .ChangeDetectionStrategy.Default, + encapsulation: + _angular_core__WEBPACK_IMPORTED_MODULE_0__ + .ViewEncapsulation.None, + exportAs: "matFooterRow", + providers: [ + { + provide: + _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkFooterRow, + useExisting: MatFooterRow, + }, + ], + }, + ], + }, + ], + null, + null + ); + })(); + /** Data row template container that contains the cell outlet. Adds the right class and role. */ + class MatRow extends _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkRow {} + MatRow.ɵfac = /* @__PURE__ */ (function () { + let ɵMatRow_BaseFactory; + return function MatRow_Factory(t) { + return ( + ɵMatRow_BaseFactory || + (ɵMatRow_BaseFactory = + _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵgetInheritedFactory" + ](MatRow)) + )(t || MatRow); + }; + })(); + MatRow.ɵcmp = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineComponent" + ]({ + type: MatRow, + selectors: [["mat-row"], ["tr", "mat-row", ""]], + hostAttrs: ["role", "row", 1, "mat-mdc-row", "mdc-data-table__row"], + exportAs: ["matRow"], + features: [ + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([ + { + provide: + _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkRow, + useExisting: MatRow, + }, + ]), + _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵInheritDefinitionFeature" + ], + ], + decls: 1, + vars: 0, + consts: [["cdkCellOutlet", ""]], + template: function MatRow_Template(rf, ctx) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵelementContainer" + ](0, 0); + } + }, + dependencies: [ + _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkCellOutlet, + ], + encapsulation: 2, + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + MatRow, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Component, + args: [ + { + selector: "mat-row, tr[mat-row]", + template: + _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CDK_ROW_TEMPLATE, + host: { + class: "mat-mdc-row mdc-data-table__row", + role: "row", + }, + // See note on CdkTable for explanation on why this uses the default change detection strategy. + // tslint:disable-next-line:validate-decorators + changeDetection: + _angular_core__WEBPACK_IMPORTED_MODULE_0__ + .ChangeDetectionStrategy.Default, + encapsulation: + _angular_core__WEBPACK_IMPORTED_MODULE_0__ + .ViewEncapsulation.None, + exportAs: "matRow", + providers: [ + { + provide: + _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkRow, + useExisting: MatRow, + }, + ], + }, + ], + }, + ], + null, + null + ); + })(); + /** Row that can be used to display a message when no data is shown in the table. */ + class MatNoDataRow extends _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkNoDataRow { + constructor() { + super(...arguments); + this._contentClassName = "mat-mdc-no-data-row"; + } + } + MatNoDataRow.ɵfac = /* @__PURE__ */ (function () { + let ɵMatNoDataRow_BaseFactory; + return function MatNoDataRow_Factory(t) { + return ( + ɵMatNoDataRow_BaseFactory || + (ɵMatNoDataRow_BaseFactory = + _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵgetInheritedFactory" + ](MatNoDataRow)) + )(t || MatNoDataRow); + }; + })(); + MatNoDataRow.ɵdir = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineDirective" + ]({ + type: MatNoDataRow, + selectors: [["ng-template", "matNoDataRow", ""]], + features: [ + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([ + { + provide: + _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkNoDataRow, + useExisting: MatNoDataRow, + }, + ]), + _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵInheritDefinitionFeature" + ], + ], + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + MatNoDataRow, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive, + args: [ + { + selector: "ng-template[matNoDataRow]", + providers: [ + { + provide: + _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkNoDataRow, + useExisting: MatNoDataRow, + }, + ], + }, + ], + }, + ], + null, + null + ); + })(); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** + * Column that simply shows text content for the header and row cells. Assumes that the table + * is using the native table implementation (`
+ {{headerText}} + + {{dataAccessor(data, name)}} +
`). + * + * By default, the name of this column will be the header text and data property accessor. + * The header text can be overridden with the `headerText` input. Cell values can be overridden with + * the `dataAccessor` input. Change the text justification to the start or end using the `justify` + * input. + */ + class MatTextColumn extends _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkTextColumn {} + MatTextColumn.ɵfac = /* @__PURE__ */ (function () { + let ɵMatTextColumn_BaseFactory; + return function MatTextColumn_Factory(t) { + return ( + ɵMatTextColumn_BaseFactory || + (ɵMatTextColumn_BaseFactory = + _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵgetInheritedFactory" + ](MatTextColumn)) + )(t || MatTextColumn); + }; + })(); + MatTextColumn.ɵcmp = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineComponent" + ]({ + type: MatTextColumn, + selectors: [["mat-text-column"]], + features: [ + _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵInheritDefinitionFeature" + ], + ], + decls: 3, + vars: 0, + consts: [ + ["matColumnDef", ""], + ["mat-header-cell", "", 3, "text-align", 4, "matHeaderCellDef"], + ["mat-cell", "", 3, "text-align", 4, "matCellDef"], + ["mat-header-cell", ""], + ["mat-cell", ""], + ], + template: function MatTextColumn_Template(rf, ctx) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵelementContainerStart" + ](0, 0); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"]( + 1, + MatTextColumn_th_1_Template, + 2, + 3, + "th", + 1 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"]( + 2, + MatTextColumn_td_2_Template, + 2, + 3, + "td", + 2 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵelementContainerEnd" + ](); + } + }, + dependencies: [ + MatHeaderCellDef, + MatColumnDef, + MatCellDef, + MatHeaderCell, + MatCell, + ], + encapsulation: 2, + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + MatTextColumn, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Component, + args: [ + { + selector: "mat-text-column", + template: ` + + + + + `, + encapsulation: + _angular_core__WEBPACK_IMPORTED_MODULE_0__ + .ViewEncapsulation.None, + // Change detection is intentionally not set to OnPush. This component's template will be provided + // to the table to be inserted into its view. This is problematic when change detection runs since + // the bindings in this template will be evaluated _after_ the table's view is evaluated, which + // mean's the template in the table's view will not have the updated value (and in fact will cause + // an ExpressionChangedAfterItHasBeenCheckedError). + // tslint:disable-next-line:validate-decorators + changeDetection: + _angular_core__WEBPACK_IMPORTED_MODULE_0__ + .ChangeDetectionStrategy.Default, + }, + ], + }, + ], + null, + null + ); + })(); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + const EXPORTED_DECLARATIONS = [ + // Table + MatTable, + MatRecycleRows, + // Template defs + MatHeaderCellDef, + MatHeaderRowDef, + MatColumnDef, + MatCellDef, + MatRowDef, + MatFooterCellDef, + MatFooterRowDef, + // Cell directives + MatHeaderCell, + MatCell, + MatFooterCell, + // Row directives + MatHeaderRow, + MatRow, + MatFooterRow, + MatNoDataRow, + MatTextColumn, + ]; + class MatTableModule {} + MatTableModule.ɵfac = function MatTableModule_Factory(t) { + return new (t || MatTableModule)(); + }; + MatTableModule.ɵmod = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineNgModule" + ]({ + type: MatTableModule, + }); + MatTableModule.ɵinj = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineInjector" + ]({ + imports: [ + _angular_material_core__WEBPACK_IMPORTED_MODULE_3__.MatCommonModule, + _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkTableModule, + _angular_material_core__WEBPACK_IMPORTED_MODULE_3__.MatCommonModule, + ], + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + MatTableModule, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgModule, + args: [ + { + imports: [ + _angular_material_core__WEBPACK_IMPORTED_MODULE_3__.MatCommonModule, + _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkTableModule, + ], + exports: [ + _angular_material_core__WEBPACK_IMPORTED_MODULE_3__.MatCommonModule, + EXPORTED_DECLARATIONS, + ], + declarations: EXPORTED_DECLARATIONS, + }, + ], + }, + ], + null, + null + ); + })(); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** + * Corresponds to `Number.MAX_SAFE_INTEGER`. Moved out into a variable here due to + * flaky browser support and the value not being defined in Closure's typings. + */ + const MAX_SAFE_INTEGER = 9007199254740991; + /** Shared base class with MDC-based implementation. */ + class _MatTableDataSource extends _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_1__.DataSource { + /** Array of data that should be rendered by the table, where each object represents one row. */ + get data() { + return this._data.value; + } + set data(data) { + data = Array.isArray(data) ? data : []; + this._data.next(data); + // Normally the `filteredData` is updated by the re-render + // subscription, but that won't happen if it's inactive. + if (!this._renderChangesSubscription) { + this._filterData(data); + } + } + /** + * Filter term that should be used to filter out objects from the data array. To override how + * data objects match to this filter string, provide a custom function for filterPredicate. + */ + get filter() { + return this._filter.value; + } + set filter(filter) { + this._filter.next(filter); + // Normally the `filteredData` is updated by the re-render + // subscription, but that won't happen if it's inactive. + if (!this._renderChangesSubscription) { + this._filterData(this.data); + } + } + /** + * Instance of the MatSort directive used by the table to control its sorting. Sort changes + * emitted by the MatSort will trigger an update to the table's rendered data. + */ + get sort() { + return this._sort; + } + set sort(sort) { + this._sort = sort; + this._updateChangeSubscription(); + } + /** + * Instance of the paginator component used by the table to control what page of the data is + * displayed. Page changes emitted by the paginator will trigger an update to the + * table's rendered data. + * + * Note that the data source uses the paginator's properties to calculate which page of data + * should be displayed. If the paginator receives its properties as template inputs, + * e.g. `[pageLength]=100` or `[pageIndex]=1`, then be sure that the paginator's view has been + * initialized before assigning it to this data source. + */ + get paginator() { + return this._paginator; + } + set paginator(paginator) { + this._paginator = paginator; + this._updateChangeSubscription(); + } + constructor(initialData = []) { + super(); + /** Stream emitting render data to the table (depends on ordered data changes). */ + this._renderData = + new rxjs__WEBPACK_IMPORTED_MODULE_4__.BehaviorSubject([]); + /** Stream that emits when a new filter string is set on the data source. */ + this._filter = + new rxjs__WEBPACK_IMPORTED_MODULE_4__.BehaviorSubject(""); + /** Used to react to internal changes of the paginator that are made by the data source itself. */ + this._internalPageChanges = + new rxjs__WEBPACK_IMPORTED_MODULE_5__.Subject(); + /** + * Subscription to the changes that should trigger an update to the table's rendered rows, such + * as filtering, sorting, pagination, or base data changes. + */ + this._renderChangesSubscription = null; + /** + * Data accessor function that is used for accessing data properties for sorting through + * the default sortData function. + * This default function assumes that the sort header IDs (which defaults to the column name) + * matches the data's properties (e.g. column Xyz represents data['Xyz']). + * May be set to a custom function for different behavior. + * @param data Data object that is being accessed. + * @param sortHeaderId The name of the column that represents the data. + */ + this.sortingDataAccessor = (data, sortHeaderId) => { + const value = data[sortHeaderId]; + if ( + (0, + _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_6__._isNumberValue)( + value + ) + ) { + const numberValue = Number(value); + // Numbers beyond `MAX_SAFE_INTEGER` can't be compared reliably so we + // leave them as strings. For more info: https://goo.gl/y5vbSg + return numberValue < MAX_SAFE_INTEGER ? numberValue : value; + } + return value; + }; + /** + * Gets a sorted copy of the data array based on the state of the MatSort. Called + * after changes are made to the filtered data or when sort changes are emitted from MatSort. + * By default, the function retrieves the active sort and its direction and compares data + * by retrieving data using the sortingDataAccessor. May be overridden for a custom implementation + * of data ordering. + * @param data The array of data that should be sorted. + * @param sort The connected MatSort that holds the current sort state. + */ + this.sortData = (data, sort) => { + const active = sort.active; + const direction = sort.direction; + if (!active || direction == "") { + return data; + } + return data.sort((a, b) => { + let valueA = this.sortingDataAccessor(a, active); + let valueB = this.sortingDataAccessor(b, active); + // If there are data in the column that can be converted to a number, + // it must be ensured that the rest of the data + // is of the same type so as not to order incorrectly. + const valueAType = typeof valueA; + const valueBType = typeof valueB; + if (valueAType !== valueBType) { + if (valueAType === "number") { + valueA += ""; + } + if (valueBType === "number") { + valueB += ""; + } + } + // If both valueA and valueB exist (truthy), then compare the two. Otherwise, check if + // one value exists while the other doesn't. In this case, existing value should come last. + // This avoids inconsistent results when comparing values to undefined/null. + // If neither value exists, return 0 (equal). + let comparatorResult = 0; + if (valueA != null && valueB != null) { + // Check if one value is greater than the other; if equal, comparatorResult should remain 0. + if (valueA > valueB) { + comparatorResult = 1; + } else if (valueA < valueB) { + comparatorResult = -1; + } + } else if (valueA != null) { + comparatorResult = 1; + } else if (valueB != null) { + comparatorResult = -1; + } + return comparatorResult * (direction == "asc" ? 1 : -1); + }); + }; + /** + * Checks if a data object matches the data source's filter string. By default, each data object + * is converted to a string of its properties and returns true if the filter has + * at least one occurrence in that string. By default, the filter string has its whitespace + * trimmed and the match is case-insensitive. May be overridden for a custom implementation of + * filter matching. + * @param data Data object used to check against the filter. + * @param filter Filter string that has been set on the data source. + * @returns Whether the filter matches against the data + */ + this.filterPredicate = (data, filter) => { + // Transform the data into a lowercase string of all property values. + const dataStr = Object.keys(data) + .reduce((currentTerm, key) => { + // Use an obscure Unicode character to delimit the words in the concatenated string. + // This avoids matches where the values of two columns combined will match the user's query + // (e.g. `Flute` and `Stop` will match `Test`). The character is intended to be something + // that has a very low chance of being typed in by somebody in a text field. This one in + // particular is "White up-pointing triangle with dot" from + // https://en.wikipedia.org/wiki/List_of_Unicode_characters + return currentTerm + data[key] + "◬"; + }, "") + .toLowerCase(); + // Transform the filter by converting it to lowercase and removing whitespace. + const transformedFilter = filter.trim().toLowerCase(); + return dataStr.indexOf(transformedFilter) != -1; + }; + this._data = new rxjs__WEBPACK_IMPORTED_MODULE_4__.BehaviorSubject( + initialData + ); + this._updateChangeSubscription(); + } + /** + * Subscribe to changes that should trigger an update to the table's rendered rows. When the + * changes occur, process the current state of the filter, sort, and pagination along with + * the provided base data and send it to the table for rendering. + */ + _updateChangeSubscription() { + // Sorting and/or pagination should be watched if sort and/or paginator are provided. + // The events should emit whenever the component emits a change or initializes, or if no + // component is provided, a stream with just a null event should be provided. + // The `sortChange` and `pageChange` acts as a signal to the combineLatests below so that the + // pipeline can progress to the next step. Note that the value from these streams are not used, + // they purely act as a signal to progress in the pipeline. + const sortChange = this._sort + ? (0, rxjs__WEBPACK_IMPORTED_MODULE_7__.merge)( + this._sort.sortChange, + this._sort.initialized + ) + : (0, rxjs__WEBPACK_IMPORTED_MODULE_8__.of)(null); + const pageChange = this._paginator + ? (0, rxjs__WEBPACK_IMPORTED_MODULE_7__.merge)( + this._paginator.page, + this._internalPageChanges, + this._paginator.initialized + ) + : (0, rxjs__WEBPACK_IMPORTED_MODULE_8__.of)(null); + const dataStream = this._data; + // Watch for base data or filter changes to provide a filtered set of data. + const filteredData = (0, + rxjs__WEBPACK_IMPORTED_MODULE_9__.combineLatest)([ + dataStream, + this._filter, + ]).pipe( + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.map)(([data]) => + this._filterData(data) + ) + ); + // Watch for filtered data or sort changes to provide an ordered set of data. + const orderedData = (0, + rxjs__WEBPACK_IMPORTED_MODULE_9__.combineLatest)([ + filteredData, + sortChange, + ]).pipe( + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.map)(([data]) => + this._orderData(data) + ) + ); + // Watch for ordered data or page changes to provide a paged set of data. + const paginatedData = (0, + rxjs__WEBPACK_IMPORTED_MODULE_9__.combineLatest)([ + orderedData, + pageChange, + ]).pipe( + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.map)(([data]) => + this._pageData(data) + ) + ); + // Watched for paged data changes and send the result to the table to render. + this._renderChangesSubscription?.unsubscribe(); + this._renderChangesSubscription = paginatedData.subscribe((data) => + this._renderData.next(data) + ); + } + /** + * Returns a filtered data array where each filter object contains the filter string within + * the result of the filterTermAccessor function. If no filter is set, returns the data array + * as provided. + */ + _filterData(data) { + // If there is a filter string, filter out data that does not contain it. + // Each data object is converted to a string using the function defined by filterTermAccessor. + // May be overridden for customization. + this.filteredData = + this.filter == null || this.filter === "" + ? data + : data.filter((obj) => this.filterPredicate(obj, this.filter)); + if (this.paginator) { + this._updatePaginator(this.filteredData.length); + } + return this.filteredData; + } + /** + * Returns a sorted copy of the data if MatSort has a sort applied, otherwise just returns the + * data array as provided. Uses the default data accessor for data lookup, unless a + * sortDataAccessor function is defined. + */ + _orderData(data) { + // If there is no active sort or direction, return the data without trying to sort. + if (!this.sort) { + return data; + } + return this.sortData(data.slice(), this.sort); + } + /** + * Returns a paged slice of the provided data array according to the provided paginator's page + * index and length. If there is no paginator provided, returns the data array as provided. + */ + _pageData(data) { + if (!this.paginator) { + return data; + } + const startIndex = + this.paginator.pageIndex * this.paginator.pageSize; + return data.slice(startIndex, startIndex + this.paginator.pageSize); + } + /** + * Updates the paginator to reflect the length of the filtered data, and makes sure that the page + * index does not exceed the paginator's last page. Values are changed in a resolved promise to + * guard against making property changes within a round of change detection. + */ + _updatePaginator(filteredDataLength) { + Promise.resolve().then(() => { + const paginator = this.paginator; + if (!paginator) { + return; + } + paginator.length = filteredDataLength; + // If the page index is set beyond the page, reduce it to the last page. + if (paginator.pageIndex > 0) { + const lastPageIndex = + Math.ceil(paginator.length / paginator.pageSize) - 1 || 0; + const newPageIndex = Math.min( + paginator.pageIndex, + lastPageIndex + ); + if (newPageIndex !== paginator.pageIndex) { + paginator.pageIndex = newPageIndex; + // Since the paginator only emits after user-generated changes, + // we need our own stream so we know to should re-render the data. + this._internalPageChanges.next(); + } + } + }); + } + /** + * Used by the MatTable. Called when it connects to the data source. + * @docs-private + */ + connect() { + if (!this._renderChangesSubscription) { + this._updateChangeSubscription(); + } + return this._renderData; + } + /** + * Used by the MatTable. Called when it disconnects from the data source. + * @docs-private + */ + disconnect() { + this._renderChangesSubscription?.unsubscribe(); + this._renderChangesSubscription = null; + } + } + /** + * Data source that accepts a client-side data array and includes native support of filtering, + * sorting (using MatSort), and pagination (using MatPaginator). + * + * Allows for sort customization by overriding sortingDataAccessor, which defines how data + * properties are accessed. Also allows for filter customization by overriding filterTermAccessor, + * which defines how row data is converted to a string for filter matching. + * + * **Note:** This class is meant to be a simple data source to help you get started. As such + * it isn't equipped to handle some more advanced cases like robust i18n support or server-side + * interactions. If your app needs to support more advanced use cases, consider implementing your + * own `DataSource`. + */ + class MatTableDataSource extends _MatTableDataSource {} + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + + /** + * Generated bundle index. Do not edit. + */ + + /***/ + }, + }, +]); +//# sourceMappingURL=src_app_admin_admin_module_ts.js.map diff --git a/cdk/cdk.out/asset.705042e10eb8fb6d7d7475c39e61e09836398336585ba5ef9814a4a774e8e009/src_app_admin_admin_module_ts.js.map b/cdk/cdk.out/asset.705042e10eb8fb6d7d7475c39e61e09836398336585ba5ef9814a4a774e8e009/src_app_admin_admin_module_ts.js.map new file mode 100644 index 00000000..16028fc1 --- /dev/null +++ b/cdk/cdk.out/asset.705042e10eb8fb6d7d7475c39e61e09836398336585ba5ef9814a4a774e8e009/src_app_admin_admin_module_ts.js.map @@ -0,0 +1 @@ +{"version":3,"file":"src_app_admin_admin_module_ts.js","mappings":";;;;;;;;;;;;;;;;;;AACuD;AACK;AAC0B;AACT;;;AAE7E,MAAMI,MAAM,GAAW,CACrB;EACEC,IAAI,EAAE,QAAQ;EACdC,SAAS,EAAEL,qEAAeA;CAC3B,EACD;EACEI,IAAI,EAAE,UAAU;EAChBC,SAAS,EAAEJ,+FAAuBA;CACnC,EACD;EACEG,IAAI,EAAE,cAAc;EACpBC,SAAS,EAAEH,sFAAoBA;CAChC,EACD;EACEE,IAAI,EAAE,qBAAqB;EAC3BC,SAAS,EAAEH,sFAAoBA;CAChC,CACF;AAMK,MAAOI,kBAAkB;;mBAAlBA,kBAAkB;AAAA;;QAAlBA;AAAkB;;YAHnBP,kEAAqB,CAACI,MAAM,CAAC,EAC7BJ,yDAAY;AAAA;;sHAEXO,kBAAkB;IAAAE,UAAAA,yDAAAA;IAAAC,UAFnBV,yDAAY;EAA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qiB,kBAAkB;MACrC;MACA,IAAIxC,SAAS,CAACsC,SAAS,GAAG,CAAC,EAAE;QACzB,MAAMI,aAAa,GAAGC,IAAI,CAACC,IAAI,CAAC5C,SAAS,CAAC7f,MAAM,GAAG6f,SAAS,CAACuC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC;QAC/E,MAAMM,YAAY,GAAGF,IAAI,CAACG,GAAG,CAAC9C,SAAS,CAACsC,SAAS,EAAEI,aAAa,CAAC;QACjE,IAAIG,YAAY,KAAK7C,SAAS,CAACsC,SAAS,EAAE;UACtCtC,SAAS,CAACsC,SAAS,GAAGO,YAAY;UAClC;UACA;UACA,IAAI,CAACzC,oBAAoB,CAAC5jB,IAAI,EAAE;QACpC;MACJ;IACJ,CAAC,CAAC;EACN;EACA;AACJ;AACA;AACA;EACI4d,OAAO,GAAG;IACN,IAAI,CAAC,IAAI,CAACsF,0BAA0B,EAAE;MAClC,IAAI,CAACK,yBAAyB,EAAE;IACpC;IACA,OAAO,IAAI,CAACI,WAAW;EAC3B;EACA;AACJ;AACA;AACA;EACI7K,UAAU,GAAG;IACT,IAAI,CAACoK,0BAA0B,EAAExF,WAAW,EAAE;IAC9C,IAAI,CAACwF,0BAA0B,GAAG,IAAI;EAC1C;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMqD,kBAAkB,SAAStD,mBAAmB,CAAC;;AAGrD;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA","sources":["./src/app/admin/admin-routing.module.ts","./src/app/admin/admin.module.ts","./src/app/admin/edit-product/edit-product.component.ts","./src/app/admin/edit-product/edit-product.component.html","./src/app/admin/manage-products/manage-products.component.html","./src/app/admin/manage-products/manage-products.component.ts","./src/app/admin/manage-products/manage-products.service.ts","./src/app/admin/orders/orders.component.html","./src/app/admin/orders/orders.component.ts","./src/app/admin/orders/orders.service.ts","./src/app/shared/file-picker/file-picker.component.ts","./src/app/shared/file-picker/file-picker.component.html","./src/app/shared/file-picker/file-picker.module.ts","./node_modules/@angular/cdk/fesm2020/table.mjs","./node_modules/@angular/material/fesm2020/table.mjs"],"sourcesContent":["import { NgModule } from '@angular/core';\r\nimport { RouterModule, Routes } from '@angular/router';\r\nimport { OrdersComponent } from './orders/orders.component';\r\nimport { ManageProductsComponent } from './manage-products/manage-products.component';\r\nimport { EditProductComponent } from './edit-product/edit-product.component';\r\n\r\nconst routes: Routes = [\r\n {\r\n path: 'orders',\r\n component: OrdersComponent,\r\n },\r\n {\r\n path: 'products',\r\n component: ManageProductsComponent,\r\n },\r\n {\r\n path: 'products/new',\r\n component: EditProductComponent,\r\n },\r\n {\r\n path: 'products/:productId',\r\n component: EditProductComponent,\r\n },\r\n];\r\n\r\n@NgModule({\r\n imports: [RouterModule.forChild(routes)],\r\n exports: [RouterModule],\r\n})\r\nexport class AdminRoutingModule {}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { MatCardModule } from '@angular/material/card';\r\nimport { MatInputModule } from '@angular/material/input';\r\nimport { MatProgressSpinnerModule } from '@angular/material/progress-spinner';\r\n\r\nimport { AdminRoutingModule } from './admin-routing.module';\r\nimport { OrdersComponent } from './orders/orders.component';\r\nimport { MatTableModule } from '@angular/material/table';\r\nimport { OrdersService } from './orders/orders.service';\r\nimport { ManageProductsComponent } from './manage-products/manage-products.component';\r\nimport { MatButtonModule } from '@angular/material/button';\r\nimport { FilePickerModule } from '../shared/file-picker/file-picker.module';\r\nimport { ManageProductsService } from './manage-products/manage-products.service';\r\nimport { EditProductComponent } from './edit-product/edit-product.component';\r\n\r\n@NgModule({\r\n declarations: [\r\n OrdersComponent,\r\n ManageProductsComponent,\r\n EditProductComponent,\r\n ],\r\n imports: [\r\n AdminRoutingModule,\r\n CommonModule,\r\n FilePickerModule,\r\n MatCardModule,\r\n MatInputModule,\r\n MatTableModule,\r\n MatButtonModule,\r\n MatProgressSpinnerModule,\r\n ReactiveFormsModule,\r\n ],\r\n providers: [OrdersService, ManageProductsService],\r\n})\r\nexport class AdminModule {}\r\n","import {\r\n ChangeDetectionStrategy,\r\n Component,\r\n OnDestroy,\r\n OnInit,\r\n} from '@angular/core';\r\nimport {\r\n AbstractControl,\r\n UntypedFormBuilder,\r\n UntypedFormGroup,\r\n Validators,\r\n} from '@angular/forms';\r\nimport { ActivatedRoute, Router } from '@angular/router';\r\n\r\nimport { BehaviorSubject, Subject } from 'rxjs';\r\nimport { finalize, takeUntil } from 'rxjs/operators';\r\n\r\nimport { Product } from '../../products/product.interface';\r\nimport { ProductsService } from '../../products/products.service';\r\nimport { NotificationService } from '../../core/notification.service';\r\n\r\n@Component({\r\n selector: 'app-edit-product',\r\n templateUrl: './edit-product.component.html',\r\n styleUrls: ['./edit-product.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\nexport class EditProductComponent implements OnInit, OnDestroy {\r\n form: UntypedFormGroup;\r\n productId: string | null = null;\r\n requestInProgress = false;\r\n\r\n loaded$ = new BehaviorSubject(false);\r\n\r\n private readonly onDestroy$: Subject = new Subject();\r\n\r\n constructor(\r\n private readonly activatedRoute: ActivatedRoute,\r\n private readonly fb: UntypedFormBuilder,\r\n private readonly notificationService: NotificationService,\r\n private readonly productsService: ProductsService,\r\n private readonly router: Router\r\n ) {\r\n this.form = this.fb.group({\r\n title: ['', Validators.required],\r\n description: ['', Validators.required],\r\n price: ['', Validators.required],\r\n count: ['', Validators.required],\r\n });\r\n }\r\n\r\n get countCtrl(): AbstractControl {\r\n return this.form.get('count') as AbstractControl;\r\n }\r\n\r\n get descriptionCtrl(): AbstractControl {\r\n return this.form.get('description') as AbstractControl;\r\n }\r\n\r\n get priceCtrl(): AbstractControl {\r\n return this.form.get('price') as AbstractControl;\r\n }\r\n\r\n get titleCtrl(): AbstractControl {\r\n return this.form.get('title') as AbstractControl;\r\n }\r\n\r\n ngOnInit(): void {\r\n const productId = this.activatedRoute.snapshot.paramMap.get('productId');\r\n\r\n if (!productId) {\r\n this.loaded$.next(true);\r\n return;\r\n }\r\n\r\n this.productsService\r\n .getProductById(productId)\r\n .pipe(\r\n finalize(() => this.loaded$.next(true)),\r\n takeUntil(this.onDestroy$)\r\n )\r\n .subscribe((product) => {\r\n if (product) {\r\n this.form.patchValue(product);\r\n this.productId = product.id;\r\n }\r\n });\r\n }\r\n\r\n ngOnDestroy(): void {\r\n this.onDestroy$.next();\r\n this.onDestroy$.complete();\r\n }\r\n\r\n editProduct(): void {\r\n const product: Product = this.form.value;\r\n if (!product) {\r\n return;\r\n }\r\n\r\n const editProduct$ = this.productId\r\n ? this.productsService.editProduct(this.productId, product)\r\n : this.productsService.createNewProduct(product);\r\n\r\n this.requestInProgress = true;\r\n editProduct$.subscribe(\r\n () => this.router.navigate(['../'], { relativeTo: this.activatedRoute }),\r\n (error: unknown) => {\r\n console.warn(error);\r\n this.requestInProgress = false;\r\n this.notificationService.showError(\r\n `Failed to ${this.productId ? 'edit' : 'create'} product`\r\n );\r\n }\r\n );\r\n }\r\n}\r\n","\r\n

\r\n {{ productId ? \"Edit product\" : \"Create new product\" }}\r\n

\r\n\r\n \r\n
\r\n
\r\n \r\n Title\r\n \r\n \r\n Product title is required\r\n \r\n \r\n
\r\n\r\n
\r\n \r\n Description\r\n \r\n \r\n Product description is required\r\n \r\n \r\n
\r\n\r\n
\r\n \r\n Price ($)\r\n \r\n \r\n Product price is required\r\n \r\n \r\n
\r\n\r\n
\r\n \r\n Count\r\n \r\n \r\n Product count is required\r\n \r\n \r\n
\r\n \r\n
\r\n\r\n \r\n \r\n \r\n save product\r\n \r\n \r\n
\r\n\r\n\r\n
\r\n \r\n
\r\n
\r\n","

Manage products

\r\n\r\n
\r\n \r\n\r\n \r\n create product\r\n \r\n
\r\n\r\n
+ {{headerText}} + + {{dataAccessor(data, name)}} +
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n
Title\r\n {{ product.title }}\r\n Description{{ product.description }}Price\r\n {{ product.price | number: \"1.2-2\" | currency }}\r\n Count{{ product.count }}Action\r\n \r\n manage\r\n \r\n \r\n
\r\n","import { ChangeDetectorRef, Component, OnInit } from '@angular/core';\r\nimport { Observable } from 'rxjs';\r\nimport { Product } from '../../products/product.interface';\r\nimport { ProductsService } from '../../products/products.service';\r\nimport { ManageProductsService } from './manage-products.service';\r\n\r\n@Component({\r\n selector: 'app-manage-products',\r\n templateUrl: './manage-products.component.html',\r\n styleUrls: ['./manage-products.component.scss'],\r\n})\r\nexport class ManageProductsComponent implements OnInit {\r\n readonly columns = ['from', 'description', 'price', 'count', 'action'];\r\n\r\n selectedFile: File | null = null;\r\n\r\n products$!: Observable;\r\n\r\n constructor(\r\n private readonly productsService: ProductsService,\r\n private readonly manageProductsService: ManageProductsService,\r\n private readonly cdr: ChangeDetectorRef\r\n ) {}\r\n\r\n ngOnInit(): void {\r\n this.products$ = this.productsService.getProducts();\r\n }\r\n\r\n onUploadCSV(): void {\r\n if (!this.selectedFile) {\r\n return;\r\n }\r\n\r\n this.manageProductsService\r\n .uploadProductsCSV(this.selectedFile)\r\n .subscribe(() => {\r\n this.selectedFile = null;\r\n this.cdr.markForCheck();\r\n });\r\n }\r\n}\r\n","import { Injectable, Injector } from '@angular/core';\r\nimport { EMPTY, Observable } from 'rxjs';\r\nimport { ApiService } from '../../core/api.service';\r\nimport { switchMap } from 'rxjs/operators';\r\n\r\n@Injectable()\r\nexport class ManageProductsService extends ApiService {\r\n constructor(injector: Injector) {\r\n super(injector);\r\n }\r\n\r\n uploadProductsCSV(file: File): Observable {\r\n if (!this.endpointEnabled('import')) {\r\n console.warn(\r\n 'Endpoint \"import\" is disabled. To enable change your environment.ts config'\r\n );\r\n return EMPTY;\r\n }\r\n\r\n return this.getPreSignedUrl(file.name).pipe(\r\n switchMap((url) =>\r\n this.http.put(url, file, {\r\n headers: {\r\n // eslint-disable-next-line @typescript-eslint/naming-convention\r\n 'Content-Type': 'text/csv',\r\n },\r\n })\r\n )\r\n );\r\n }\r\n\r\n private getPreSignedUrl(fileName: string): Observable {\r\n const url = this.getUrl('import', 'import');\r\n\r\n return this.http.get(url, {\r\n params: {\r\n name: fileName,\r\n },\r\n });\r\n }\r\n}\r\n","

Manage orders

\r\n\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n
From\r\n {{ order.address.firstName }} {{ order.address.firstName }}\r\n Count{{ order.items.length }}Address{{ order.address.address }}Status{{ order.items.length }}Action{{ order.items.length }}
\r\n","import { Component, OnInit } from '@angular/core';\r\nimport { OrdersService } from './orders.service';\r\nimport { Observable } from 'rxjs';\r\nimport { Order } from './order.interface';\r\n\r\n@Component({\r\n selector: 'app-orders',\r\n templateUrl: './orders.component.html',\r\n styleUrls: ['./orders.component.scss'],\r\n})\r\nexport class OrdersComponent implements OnInit {\r\n readonly columns = ['from', 'count', 'address', 'status', 'action'];\r\n\r\n orders$!: Observable;\r\n\r\n constructor(private readonly ordersService: OrdersService) {}\r\n\r\n ngOnInit(): void {\r\n this.orders$ = this.ordersService.getOrders();\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { Observable, of } from 'rxjs';\r\nimport { Order } from './order.interface';\r\n\r\n@Injectable()\r\nexport class OrdersService {\r\n constructor() {}\r\n\r\n getOrders(): Observable {\r\n return of([]);\r\n }\r\n}\r\n","import { Component, EventEmitter, Input, Output } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'app-file-picker',\r\n templateUrl: './file-picker.component.html',\r\n styleUrls: ['./file-picker.component.scss'],\r\n})\r\nexport class FilePickerComponent {\r\n @Input() file: File | null = null;\r\n\r\n @Output() fileChange = new EventEmitter();\r\n @Output() uploadClick = new EventEmitter();\r\n\r\n selectFile(files: FileList | null): void {\r\n if (!files?.length) {\r\n this.removeFile();\r\n return;\r\n }\r\n\r\n const file = files.item(0) as File;\r\n\r\n if (!['text/csv', 'application/vnd.ms-excel'].includes(file.type)) {\r\n this.removeFile();\r\n return;\r\n }\r\n\r\n this.fileChange.emit(file);\r\n this.file = file;\r\n }\r\n\r\n removeFile(): void {\r\n this.file = null;\r\n this.fileChange.emit(null);\r\n }\r\n}\r\n","\r\n\r\n
\r\n \r\n Selected file: {{ file.name }}\r\n\r\n \r\n Upload\r\n \r\n \r\n \r\n
\r\n\r\n\r\n Select file to upload\r\n \r\n\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FilePickerComponent } from './file-picker.component';\r\nimport { MatButtonModule } from '@angular/material/button';\r\n\r\n@NgModule({\r\n declarations: [FilePickerComponent],\r\n imports: [CommonModule, MatButtonModule],\r\n exports: [FilePickerComponent],\r\n})\r\nexport class FilePickerModule {}\r\n","import * as i1 from '@angular/cdk/bidi';\nimport { coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { _VIEW_REPEATER_STRATEGY, _RecycleViewRepeaterStrategy, isDataSource, _DisposeViewRepeaterStrategy } from '@angular/cdk/collections';\nexport { DataSource } from '@angular/cdk/collections';\nimport * as i2 from '@angular/cdk/platform';\nimport * as i3 from '@angular/cdk/scrolling';\nimport { ScrollingModule } from '@angular/cdk/scrolling';\nimport { DOCUMENT } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { InjectionToken, Directive, Inject, Optional, Input, ContentChild, Injectable, Component, ChangeDetectionStrategy, ViewEncapsulation, EmbeddedViewRef, EventEmitter, NgZone, Attribute, SkipSelf, Output, ViewChild, ContentChildren, NgModule } from '@angular/core';\nimport { Subject, from, BehaviorSubject, isObservable, of } from 'rxjs';\nimport { takeUntil, take } from 'rxjs/operators';\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Mixin to provide a directive with a function that checks if the sticky input has been\n * changed since the last time the function was called. Essentially adds a dirty-check to the\n * sticky value.\n * @docs-private\n */\nfunction mixinHasStickyInput(base) {\n return class extends base {\n /** Whether sticky positioning should be applied. */\n get sticky() {\n return this._sticky;\n }\n set sticky(v) {\n const prevValue = this._sticky;\n this._sticky = coerceBooleanProperty(v);\n this._hasStickyChanged = prevValue !== this._sticky;\n }\n /** Whether the sticky value has changed since this was last called. */\n hasStickyChanged() {\n const hasStickyChanged = this._hasStickyChanged;\n this._hasStickyChanged = false;\n return hasStickyChanged;\n }\n /** Resets the dirty check for cases where the sticky state has been used without checking. */\n resetStickyChanged() {\n this._hasStickyChanged = false;\n }\n constructor(...args) {\n super(...args);\n this._sticky = false;\n /** Whether the sticky input has changed since it was last checked. */\n this._hasStickyChanged = false;\n }\n };\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Used to provide a table to some of the sub-components without causing a circular dependency.\n * @docs-private\n */\nconst CDK_TABLE = new InjectionToken('CDK_TABLE');\n/** Injection token that can be used to specify the text column options. */\nconst TEXT_COLUMN_OPTIONS = new InjectionToken('text-column-options');\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Cell definition for a CDK table.\n * Captures the template of a column's data row cell as well as cell-specific properties.\n */\nclass CdkCellDef {\n constructor(/** @docs-private */ template) {\n this.template = template;\n }\n}\nCdkCellDef.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: CdkCellDef, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });\nCdkCellDef.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"15.1.0\", type: CdkCellDef, selector: \"[cdkCellDef]\", ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: CdkCellDef, decorators: [{\n type: Directive,\n args: [{ selector: '[cdkCellDef]' }]\n }], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });\n/**\n * Header cell definition for a CDK table.\n * Captures the template of a column's header cell and as well as cell-specific properties.\n */\nclass CdkHeaderCellDef {\n constructor(/** @docs-private */ template) {\n this.template = template;\n }\n}\nCdkHeaderCellDef.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: CdkHeaderCellDef, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });\nCdkHeaderCellDef.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"15.1.0\", type: CdkHeaderCellDef, selector: \"[cdkHeaderCellDef]\", ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: CdkHeaderCellDef, decorators: [{\n type: Directive,\n args: [{ selector: '[cdkHeaderCellDef]' }]\n }], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });\n/**\n * Footer cell definition for a CDK table.\n * Captures the template of a column's footer cell and as well as cell-specific properties.\n */\nclass CdkFooterCellDef {\n constructor(/** @docs-private */ template) {\n this.template = template;\n }\n}\nCdkFooterCellDef.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: CdkFooterCellDef, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });\nCdkFooterCellDef.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"15.1.0\", type: CdkFooterCellDef, selector: \"[cdkFooterCellDef]\", ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: CdkFooterCellDef, decorators: [{\n type: Directive,\n args: [{ selector: '[cdkFooterCellDef]' }]\n }], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });\n// Boilerplate for applying mixins to CdkColumnDef.\n/** @docs-private */\nclass CdkColumnDefBase {\n}\nconst _CdkColumnDefBase = mixinHasStickyInput(CdkColumnDefBase);\n/**\n * Column definition for the CDK table.\n * Defines a set of cells available for a table column.\n */\nclass CdkColumnDef extends _CdkColumnDefBase {\n /** Unique name for this column. */\n get name() {\n return this._name;\n }\n set name(name) {\n this._setNameInput(name);\n }\n /**\n * Whether this column should be sticky positioned on the end of the row. Should make sure\n * that it mimics the `CanStick` mixin such that `_hasStickyChanged` is set to true if the value\n * has been changed.\n */\n get stickyEnd() {\n return this._stickyEnd;\n }\n set stickyEnd(v) {\n const prevValue = this._stickyEnd;\n this._stickyEnd = coerceBooleanProperty(v);\n this._hasStickyChanged = prevValue !== this._stickyEnd;\n }\n constructor(_table) {\n super();\n this._table = _table;\n this._stickyEnd = false;\n }\n /**\n * Overridable method that sets the css classes that will be added to every cell in this\n * column.\n * In the future, columnCssClassName will change from type string[] to string and this\n * will set a single string value.\n * @docs-private\n */\n _updateColumnCssClassName() {\n this._columnCssClassName = [`cdk-column-${this.cssClassFriendlyName}`];\n }\n /**\n * This has been extracted to a util because of TS 4 and VE.\n * View Engine doesn't support property rename inheritance.\n * TS 4.0 doesn't allow properties to override accessors or vice-versa.\n * @docs-private\n */\n _setNameInput(value) {\n // If the directive is set without a name (updated programmatically), then this setter will\n // trigger with an empty string and should not overwrite the programmatically set value.\n if (value) {\n this._name = value;\n this.cssClassFriendlyName = value.replace(/[^a-z0-9_-]/gi, '-');\n this._updateColumnCssClassName();\n }\n }\n}\nCdkColumnDef.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: CdkColumnDef, deps: [{ token: CDK_TABLE, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\nCdkColumnDef.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"15.1.0\", type: CdkColumnDef, selector: \"[cdkColumnDef]\", inputs: { sticky: \"sticky\", name: [\"cdkColumnDef\", \"name\"], stickyEnd: \"stickyEnd\" }, providers: [{ provide: 'MAT_SORT_HEADER_COLUMN_DEF', useExisting: CdkColumnDef }], queries: [{ propertyName: \"cell\", first: true, predicate: CdkCellDef, descendants: true }, { propertyName: \"headerCell\", first: true, predicate: CdkHeaderCellDef, descendants: true }, { propertyName: \"footerCell\", first: true, predicate: CdkFooterCellDef, descendants: true }], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: CdkColumnDef, decorators: [{\n type: Directive,\n args: [{\n selector: '[cdkColumnDef]',\n inputs: ['sticky'],\n providers: [{ provide: 'MAT_SORT_HEADER_COLUMN_DEF', useExisting: CdkColumnDef }],\n }]\n }], ctorParameters: function () { return [{ type: undefined, decorators: [{\n type: Inject,\n args: [CDK_TABLE]\n }, {\n type: Optional\n }] }]; }, propDecorators: { name: [{\n type: Input,\n args: ['cdkColumnDef']\n }], stickyEnd: [{\n type: Input,\n args: ['stickyEnd']\n }], cell: [{\n type: ContentChild,\n args: [CdkCellDef]\n }], headerCell: [{\n type: ContentChild,\n args: [CdkHeaderCellDef]\n }], footerCell: [{\n type: ContentChild,\n args: [CdkFooterCellDef]\n }] } });\n/** Base class for the cells. Adds a CSS classname that identifies the column it renders in. */\nclass BaseCdkCell {\n constructor(columnDef, elementRef) {\n elementRef.nativeElement.classList.add(...columnDef._columnCssClassName);\n }\n}\n/** Header cell template container that adds the right classes and role. */\nclass CdkHeaderCell extends BaseCdkCell {\n constructor(columnDef, elementRef) {\n super(columnDef, elementRef);\n }\n}\nCdkHeaderCell.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: CdkHeaderCell, deps: [{ token: CdkColumnDef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });\nCdkHeaderCell.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"15.1.0\", type: CdkHeaderCell, selector: \"cdk-header-cell, th[cdk-header-cell]\", host: { attributes: { \"role\": \"columnheader\" }, classAttribute: \"cdk-header-cell\" }, usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: CdkHeaderCell, decorators: [{\n type: Directive,\n args: [{\n selector: 'cdk-header-cell, th[cdk-header-cell]',\n host: {\n 'class': 'cdk-header-cell',\n 'role': 'columnheader',\n },\n }]\n }], ctorParameters: function () { return [{ type: CdkColumnDef }, { type: i0.ElementRef }]; } });\n/** Footer cell template container that adds the right classes and role. */\nclass CdkFooterCell extends BaseCdkCell {\n constructor(columnDef, elementRef) {\n super(columnDef, elementRef);\n if (columnDef._table?._elementRef.nativeElement.nodeType === 1) {\n const tableRole = columnDef._table._elementRef.nativeElement.getAttribute('role');\n const role = tableRole === 'grid' || tableRole === 'treegrid' ? 'gridcell' : 'cell';\n elementRef.nativeElement.setAttribute('role', role);\n }\n }\n}\nCdkFooterCell.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: CdkFooterCell, deps: [{ token: CdkColumnDef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });\nCdkFooterCell.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"15.1.0\", type: CdkFooterCell, selector: \"cdk-footer-cell, td[cdk-footer-cell]\", host: { classAttribute: \"cdk-footer-cell\" }, usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: CdkFooterCell, decorators: [{\n type: Directive,\n args: [{\n selector: 'cdk-footer-cell, td[cdk-footer-cell]',\n host: {\n 'class': 'cdk-footer-cell',\n },\n }]\n }], ctorParameters: function () { return [{ type: CdkColumnDef }, { type: i0.ElementRef }]; } });\n/** Cell template container that adds the right classes and role. */\nclass CdkCell extends BaseCdkCell {\n constructor(columnDef, elementRef) {\n super(columnDef, elementRef);\n if (columnDef._table?._elementRef.nativeElement.nodeType === 1) {\n const tableRole = columnDef._table._elementRef.nativeElement.getAttribute('role');\n const role = tableRole === 'grid' || tableRole === 'treegrid' ? 'gridcell' : 'cell';\n elementRef.nativeElement.setAttribute('role', role);\n }\n }\n}\nCdkCell.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: CdkCell, deps: [{ token: CdkColumnDef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });\nCdkCell.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"15.1.0\", type: CdkCell, selector: \"cdk-cell, td[cdk-cell]\", host: { classAttribute: \"cdk-cell\" }, usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: CdkCell, decorators: [{\n type: Directive,\n args: [{\n selector: 'cdk-cell, td[cdk-cell]',\n host: {\n 'class': 'cdk-cell',\n },\n }]\n }], ctorParameters: function () { return [{ type: CdkColumnDef }, { type: i0.ElementRef }]; } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * @docs-private\n */\nclass _Schedule {\n constructor() {\n this.tasks = [];\n this.endTasks = [];\n }\n}\n/** Injection token used to provide a coalesced style scheduler. */\nconst _COALESCED_STYLE_SCHEDULER = new InjectionToken('_COALESCED_STYLE_SCHEDULER');\n/**\n * Allows grouping up CSSDom mutations after the current execution context.\n * This can significantly improve performance when separate consecutive functions are\n * reading from the CSSDom and then mutating it.\n *\n * @docs-private\n */\nclass _CoalescedStyleScheduler {\n constructor(_ngZone) {\n this._ngZone = _ngZone;\n this._currentSchedule = null;\n this._destroyed = new Subject();\n }\n /**\n * Schedules the specified task to run at the end of the current VM turn.\n */\n schedule(task) {\n this._createScheduleIfNeeded();\n this._currentSchedule.tasks.push(task);\n }\n /**\n * Schedules the specified task to run after other scheduled tasks at the end of the current\n * VM turn.\n */\n scheduleEnd(task) {\n this._createScheduleIfNeeded();\n this._currentSchedule.endTasks.push(task);\n }\n /** Prevent any further tasks from running. */\n ngOnDestroy() {\n this._destroyed.next();\n this._destroyed.complete();\n }\n _createScheduleIfNeeded() {\n if (this._currentSchedule) {\n return;\n }\n this._currentSchedule = new _Schedule();\n this._getScheduleObservable()\n .pipe(takeUntil(this._destroyed))\n .subscribe(() => {\n while (this._currentSchedule.tasks.length || this._currentSchedule.endTasks.length) {\n const schedule = this._currentSchedule;\n // Capture new tasks scheduled by the current set of tasks.\n this._currentSchedule = new _Schedule();\n for (const task of schedule.tasks) {\n task();\n }\n for (const task of schedule.endTasks) {\n task();\n }\n }\n this._currentSchedule = null;\n });\n }\n _getScheduleObservable() {\n // Use onStable when in the context of an ongoing change detection cycle so that we\n // do not accidentally trigger additional cycles.\n return this._ngZone.isStable\n ? from(Promise.resolve(undefined))\n : this._ngZone.onStable.pipe(take(1));\n }\n}\n_CoalescedStyleScheduler.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: _CoalescedStyleScheduler, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });\n_CoalescedStyleScheduler.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: _CoalescedStyleScheduler });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: _CoalescedStyleScheduler, decorators: [{\n type: Injectable\n }], ctorParameters: function () { return [{ type: i0.NgZone }]; } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * The row template that can be used by the mat-table. Should not be used outside of the\n * material library.\n */\nconst CDK_ROW_TEMPLATE = ``;\n/**\n * Base class for the CdkHeaderRowDef and CdkRowDef that handles checking their columns inputs\n * for changes and notifying the table.\n */\nclass BaseRowDef {\n constructor(\n /** @docs-private */ template, _differs) {\n this.template = template;\n this._differs = _differs;\n }\n ngOnChanges(changes) {\n // Create a new columns differ if one does not yet exist. Initialize it based on initial value\n // of the columns property or an empty array if none is provided.\n if (!this._columnsDiffer) {\n const columns = (changes['columns'] && changes['columns'].currentValue) || [];\n this._columnsDiffer = this._differs.find(columns).create();\n this._columnsDiffer.diff(columns);\n }\n }\n /**\n * Returns the difference between the current columns and the columns from the last diff, or null\n * if there is no difference.\n */\n getColumnsDiff() {\n return this._columnsDiffer.diff(this.columns);\n }\n /** Gets this row def's relevant cell template from the provided column def. */\n extractCellTemplate(column) {\n if (this instanceof CdkHeaderRowDef) {\n return column.headerCell.template;\n }\n if (this instanceof CdkFooterRowDef) {\n return column.footerCell.template;\n }\n else {\n return column.cell.template;\n }\n }\n}\nBaseRowDef.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: BaseRowDef, deps: [{ token: i0.TemplateRef }, { token: i0.IterableDiffers }], target: i0.ɵɵFactoryTarget.Directive });\nBaseRowDef.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"15.1.0\", type: BaseRowDef, usesOnChanges: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: BaseRowDef, decorators: [{\n type: Directive\n }], ctorParameters: function () { return [{ type: i0.TemplateRef }, { type: i0.IterableDiffers }]; } });\n// Boilerplate for applying mixins to CdkHeaderRowDef.\n/** @docs-private */\nclass CdkHeaderRowDefBase extends BaseRowDef {\n}\nconst _CdkHeaderRowDefBase = mixinHasStickyInput(CdkHeaderRowDefBase);\n/**\n * Header row definition for the CDK table.\n * Captures the header row's template and other header properties such as the columns to display.\n */\nclass CdkHeaderRowDef extends _CdkHeaderRowDefBase {\n constructor(template, _differs, _table) {\n super(template, _differs);\n this._table = _table;\n }\n // Prerender fails to recognize that ngOnChanges in a part of this class through inheritance.\n // Explicitly define it so that the method is called as part of the Angular lifecycle.\n ngOnChanges(changes) {\n super.ngOnChanges(changes);\n }\n}\nCdkHeaderRowDef.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: CdkHeaderRowDef, deps: [{ token: i0.TemplateRef }, { token: i0.IterableDiffers }, { token: CDK_TABLE, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\nCdkHeaderRowDef.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"15.1.0\", type: CdkHeaderRowDef, selector: \"[cdkHeaderRowDef]\", inputs: { columns: [\"cdkHeaderRowDef\", \"columns\"], sticky: [\"cdkHeaderRowDefSticky\", \"sticky\"] }, usesInheritance: true, usesOnChanges: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: CdkHeaderRowDef, decorators: [{\n type: Directive,\n args: [{\n selector: '[cdkHeaderRowDef]',\n inputs: ['columns: cdkHeaderRowDef', 'sticky: cdkHeaderRowDefSticky'],\n }]\n }], ctorParameters: function () { return [{ type: i0.TemplateRef }, { type: i0.IterableDiffers }, { type: undefined, decorators: [{\n type: Inject,\n args: [CDK_TABLE]\n }, {\n type: Optional\n }] }]; } });\n// Boilerplate for applying mixins to CdkFooterRowDef.\n/** @docs-private */\nclass CdkFooterRowDefBase extends BaseRowDef {\n}\nconst _CdkFooterRowDefBase = mixinHasStickyInput(CdkFooterRowDefBase);\n/**\n * Footer row definition for the CDK table.\n * Captures the footer row's template and other footer properties such as the columns to display.\n */\nclass CdkFooterRowDef extends _CdkFooterRowDefBase {\n constructor(template, _differs, _table) {\n super(template, _differs);\n this._table = _table;\n }\n // Prerender fails to recognize that ngOnChanges in a part of this class through inheritance.\n // Explicitly define it so that the method is called as part of the Angular lifecycle.\n ngOnChanges(changes) {\n super.ngOnChanges(changes);\n }\n}\nCdkFooterRowDef.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: CdkFooterRowDef, deps: [{ token: i0.TemplateRef }, { token: i0.IterableDiffers }, { token: CDK_TABLE, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\nCdkFooterRowDef.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"15.1.0\", type: CdkFooterRowDef, selector: \"[cdkFooterRowDef]\", inputs: { columns: [\"cdkFooterRowDef\", \"columns\"], sticky: [\"cdkFooterRowDefSticky\", \"sticky\"] }, usesInheritance: true, usesOnChanges: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: CdkFooterRowDef, decorators: [{\n type: Directive,\n args: [{\n selector: '[cdkFooterRowDef]',\n inputs: ['columns: cdkFooterRowDef', 'sticky: cdkFooterRowDefSticky'],\n }]\n }], ctorParameters: function () { return [{ type: i0.TemplateRef }, { type: i0.IterableDiffers }, { type: undefined, decorators: [{\n type: Inject,\n args: [CDK_TABLE]\n }, {\n type: Optional\n }] }]; } });\n/**\n * Data row definition for the CDK table.\n * Captures the header row's template and other row properties such as the columns to display and\n * a when predicate that describes when this row should be used.\n */\nclass CdkRowDef extends BaseRowDef {\n // TODO(andrewseguin): Add an input for providing a switch function to determine\n // if this template should be used.\n constructor(template, _differs, _table) {\n super(template, _differs);\n this._table = _table;\n }\n}\nCdkRowDef.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: CdkRowDef, deps: [{ token: i0.TemplateRef }, { token: i0.IterableDiffers }, { token: CDK_TABLE, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\nCdkRowDef.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"15.1.0\", type: CdkRowDef, selector: \"[cdkRowDef]\", inputs: { columns: [\"cdkRowDefColumns\", \"columns\"], when: [\"cdkRowDefWhen\", \"when\"] }, usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: CdkRowDef, decorators: [{\n type: Directive,\n args: [{\n selector: '[cdkRowDef]',\n inputs: ['columns: cdkRowDefColumns', 'when: cdkRowDefWhen'],\n }]\n }], ctorParameters: function () { return [{ type: i0.TemplateRef }, { type: i0.IterableDiffers }, { type: undefined, decorators: [{\n type: Inject,\n args: [CDK_TABLE]\n }, {\n type: Optional\n }] }]; } });\n/**\n * Outlet for rendering cells inside of a row or header row.\n * @docs-private\n */\nclass CdkCellOutlet {\n constructor(_viewContainer) {\n this._viewContainer = _viewContainer;\n CdkCellOutlet.mostRecentCellOutlet = this;\n }\n ngOnDestroy() {\n // If this was the last outlet being rendered in the view, remove the reference\n // from the static property after it has been destroyed to avoid leaking memory.\n if (CdkCellOutlet.mostRecentCellOutlet === this) {\n CdkCellOutlet.mostRecentCellOutlet = null;\n }\n }\n}\n/**\n * Static property containing the latest constructed instance of this class.\n * Used by the CDK table when each CdkHeaderRow and CdkRow component is created using\n * createEmbeddedView. After one of these components are created, this property will provide\n * a handle to provide that component's cells and context. After init, the CdkCellOutlet will\n * construct the cells with the provided context.\n */\nCdkCellOutlet.mostRecentCellOutlet = null;\nCdkCellOutlet.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: CdkCellOutlet, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });\nCdkCellOutlet.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"15.1.0\", type: CdkCellOutlet, selector: \"[cdkCellOutlet]\", ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: CdkCellOutlet, decorators: [{\n type: Directive,\n args: [{ selector: '[cdkCellOutlet]' }]\n }], ctorParameters: function () { return [{ type: i0.ViewContainerRef }]; } });\n/** Header template container that contains the cell outlet. Adds the right class and role. */\nclass CdkHeaderRow {\n}\nCdkHeaderRow.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: CdkHeaderRow, deps: [], target: i0.ɵɵFactoryTarget.Component });\nCdkHeaderRow.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"15.1.0\", type: CdkHeaderRow, selector: \"cdk-header-row, tr[cdk-header-row]\", host: { attributes: { \"role\": \"row\" }, classAttribute: \"cdk-header-row\" }, ngImport: i0, template: \"\", isInline: true, dependencies: [{ kind: \"directive\", type: CdkCellOutlet, selector: \"[cdkCellOutlet]\" }], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: CdkHeaderRow, decorators: [{\n type: Component,\n args: [{\n selector: 'cdk-header-row, tr[cdk-header-row]',\n template: CDK_ROW_TEMPLATE,\n host: {\n 'class': 'cdk-header-row',\n 'role': 'row',\n },\n // See note on CdkTable for explanation on why this uses the default change detection strategy.\n // tslint:disable-next-line:validate-decorators\n changeDetection: ChangeDetectionStrategy.Default,\n encapsulation: ViewEncapsulation.None,\n }]\n }] });\n/** Footer template container that contains the cell outlet. Adds the right class and role. */\nclass CdkFooterRow {\n}\nCdkFooterRow.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: CdkFooterRow, deps: [], target: i0.ɵɵFactoryTarget.Component });\nCdkFooterRow.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"15.1.0\", type: CdkFooterRow, selector: \"cdk-footer-row, tr[cdk-footer-row]\", host: { attributes: { \"role\": \"row\" }, classAttribute: \"cdk-footer-row\" }, ngImport: i0, template: \"\", isInline: true, dependencies: [{ kind: \"directive\", type: CdkCellOutlet, selector: \"[cdkCellOutlet]\" }], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: CdkFooterRow, decorators: [{\n type: Component,\n args: [{\n selector: 'cdk-footer-row, tr[cdk-footer-row]',\n template: CDK_ROW_TEMPLATE,\n host: {\n 'class': 'cdk-footer-row',\n 'role': 'row',\n },\n // See note on CdkTable for explanation on why this uses the default change detection strategy.\n // tslint:disable-next-line:validate-decorators\n changeDetection: ChangeDetectionStrategy.Default,\n encapsulation: ViewEncapsulation.None,\n }]\n }] });\n/** Data row template container that contains the cell outlet. Adds the right class and role. */\nclass CdkRow {\n}\nCdkRow.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: CdkRow, deps: [], target: i0.ɵɵFactoryTarget.Component });\nCdkRow.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"15.1.0\", type: CdkRow, selector: \"cdk-row, tr[cdk-row]\", host: { attributes: { \"role\": \"row\" }, classAttribute: \"cdk-row\" }, ngImport: i0, template: \"\", isInline: true, dependencies: [{ kind: \"directive\", type: CdkCellOutlet, selector: \"[cdkCellOutlet]\" }], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: CdkRow, decorators: [{\n type: Component,\n args: [{\n selector: 'cdk-row, tr[cdk-row]',\n template: CDK_ROW_TEMPLATE,\n host: {\n 'class': 'cdk-row',\n 'role': 'row',\n },\n // See note on CdkTable for explanation on why this uses the default change detection strategy.\n // tslint:disable-next-line:validate-decorators\n changeDetection: ChangeDetectionStrategy.Default,\n encapsulation: ViewEncapsulation.None,\n }]\n }] });\n/** Row that can be used to display a message when no data is shown in the table. */\nclass CdkNoDataRow {\n constructor(templateRef) {\n this.templateRef = templateRef;\n this._contentClassName = 'cdk-no-data-row';\n }\n}\nCdkNoDataRow.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: CdkNoDataRow, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });\nCdkNoDataRow.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"15.1.0\", type: CdkNoDataRow, selector: \"ng-template[cdkNoDataRow]\", ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: CdkNoDataRow, decorators: [{\n type: Directive,\n args: [{\n selector: 'ng-template[cdkNoDataRow]',\n }]\n }], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * List of all possible directions that can be used for sticky positioning.\n * @docs-private\n */\nconst STICKY_DIRECTIONS = ['top', 'bottom', 'left', 'right'];\n/**\n * Applies and removes sticky positioning styles to the `CdkTable` rows and columns cells.\n * @docs-private\n */\nclass StickyStyler {\n /**\n * @param _isNativeHtmlTable Whether the sticky logic should be based on a table\n * that uses the native `` element.\n * @param _stickCellCss The CSS class that will be applied to every row/cell that has\n * sticky positioning applied.\n * @param direction The directionality context of the table (ltr/rtl); affects column positioning\n * by reversing left/right positions.\n * @param _isBrowser Whether the table is currently being rendered on the server or the client.\n * @param _needsPositionStickyOnElement Whether we need to specify position: sticky on cells\n * using inline styles. If false, it is assumed that position: sticky is included in\n * the component stylesheet for _stickCellCss.\n * @param _positionListener A listener that is notified of changes to sticky rows/columns\n * and their dimensions.\n */\n constructor(_isNativeHtmlTable, _stickCellCss, direction, _coalescedStyleScheduler, _isBrowser = true, _needsPositionStickyOnElement = true, _positionListener) {\n this._isNativeHtmlTable = _isNativeHtmlTable;\n this._stickCellCss = _stickCellCss;\n this.direction = direction;\n this._coalescedStyleScheduler = _coalescedStyleScheduler;\n this._isBrowser = _isBrowser;\n this._needsPositionStickyOnElement = _needsPositionStickyOnElement;\n this._positionListener = _positionListener;\n this._cachedCellWidths = [];\n this._borderCellCss = {\n 'top': `${_stickCellCss}-border-elem-top`,\n 'bottom': `${_stickCellCss}-border-elem-bottom`,\n 'left': `${_stickCellCss}-border-elem-left`,\n 'right': `${_stickCellCss}-border-elem-right`,\n };\n }\n /**\n * Clears the sticky positioning styles from the row and its cells by resetting the `position`\n * style, setting the zIndex to 0, and unsetting each provided sticky direction.\n * @param rows The list of rows that should be cleared from sticking in the provided directions\n * @param stickyDirections The directions that should no longer be set as sticky on the rows.\n */\n clearStickyPositioning(rows, stickyDirections) {\n const elementsToClear = [];\n for (const row of rows) {\n // If the row isn't an element (e.g. if it's an `ng-container`),\n // it won't have inline styles or `children` so we skip it.\n if (row.nodeType !== row.ELEMENT_NODE) {\n continue;\n }\n elementsToClear.push(row);\n for (let i = 0; i < row.children.length; i++) {\n elementsToClear.push(row.children[i]);\n }\n }\n // Coalesce with sticky row/column updates (and potentially other changes like column resize).\n this._coalescedStyleScheduler.schedule(() => {\n for (const element of elementsToClear) {\n this._removeStickyStyle(element, stickyDirections);\n }\n });\n }\n /**\n * Applies sticky left and right positions to the cells of each row according to the sticky\n * states of the rendered column definitions.\n * @param rows The rows that should have its set of cells stuck according to the sticky states.\n * @param stickyStartStates A list of boolean states where each state represents whether the cell\n * in this index position should be stuck to the start of the row.\n * @param stickyEndStates A list of boolean states where each state represents whether the cell\n * in this index position should be stuck to the end of the row.\n * @param recalculateCellWidths Whether the sticky styler should recalculate the width of each\n * column cell. If `false` cached widths will be used instead.\n */\n updateStickyColumns(rows, stickyStartStates, stickyEndStates, recalculateCellWidths = true) {\n if (!rows.length ||\n !this._isBrowser ||\n !(stickyStartStates.some(state => state) || stickyEndStates.some(state => state))) {\n if (this._positionListener) {\n this._positionListener.stickyColumnsUpdated({ sizes: [] });\n this._positionListener.stickyEndColumnsUpdated({ sizes: [] });\n }\n return;\n }\n const firstRow = rows[0];\n const numCells = firstRow.children.length;\n const cellWidths = this._getCellWidths(firstRow, recalculateCellWidths);\n const startPositions = this._getStickyStartColumnPositions(cellWidths, stickyStartStates);\n const endPositions = this._getStickyEndColumnPositions(cellWidths, stickyEndStates);\n const lastStickyStart = stickyStartStates.lastIndexOf(true);\n const firstStickyEnd = stickyEndStates.indexOf(true);\n // Coalesce with sticky row updates (and potentially other changes like column resize).\n this._coalescedStyleScheduler.schedule(() => {\n const isRtl = this.direction === 'rtl';\n const start = isRtl ? 'right' : 'left';\n const end = isRtl ? 'left' : 'right';\n for (const row of rows) {\n for (let i = 0; i < numCells; i++) {\n const cell = row.children[i];\n if (stickyStartStates[i]) {\n this._addStickyStyle(cell, start, startPositions[i], i === lastStickyStart);\n }\n if (stickyEndStates[i]) {\n this._addStickyStyle(cell, end, endPositions[i], i === firstStickyEnd);\n }\n }\n }\n if (this._positionListener) {\n this._positionListener.stickyColumnsUpdated({\n sizes: lastStickyStart === -1\n ? []\n : cellWidths\n .slice(0, lastStickyStart + 1)\n .map((width, index) => (stickyStartStates[index] ? width : null)),\n });\n this._positionListener.stickyEndColumnsUpdated({\n sizes: firstStickyEnd === -1\n ? []\n : cellWidths\n .slice(firstStickyEnd)\n .map((width, index) => (stickyEndStates[index + firstStickyEnd] ? width : null))\n .reverse(),\n });\n }\n });\n }\n /**\n * Applies sticky positioning to the row's cells if using the native table layout, and to the\n * row itself otherwise.\n * @param rowsToStick The list of rows that should be stuck according to their corresponding\n * sticky state and to the provided top or bottom position.\n * @param stickyStates A list of boolean states where each state represents whether the row\n * should be stuck in the particular top or bottom position.\n * @param position The position direction in which the row should be stuck if that row should be\n * sticky.\n *\n */\n stickRows(rowsToStick, stickyStates, position) {\n // Since we can't measure the rows on the server, we can't stick the rows properly.\n if (!this._isBrowser) {\n return;\n }\n // If positioning the rows to the bottom, reverse their order when evaluating the sticky\n // position such that the last row stuck will be \"bottom: 0px\" and so on. Note that the\n // sticky states need to be reversed as well.\n const rows = position === 'bottom' ? rowsToStick.slice().reverse() : rowsToStick;\n const states = position === 'bottom' ? stickyStates.slice().reverse() : stickyStates;\n // Measure row heights all at once before adding sticky styles to reduce layout thrashing.\n const stickyOffsets = [];\n const stickyCellHeights = [];\n const elementsToStick = [];\n for (let rowIndex = 0, stickyOffset = 0; rowIndex < rows.length; rowIndex++) {\n if (!states[rowIndex]) {\n continue;\n }\n stickyOffsets[rowIndex] = stickyOffset;\n const row = rows[rowIndex];\n elementsToStick[rowIndex] = this._isNativeHtmlTable\n ? Array.from(row.children)\n : [row];\n const height = row.getBoundingClientRect().height;\n stickyOffset += height;\n stickyCellHeights[rowIndex] = height;\n }\n const borderedRowIndex = states.lastIndexOf(true);\n // Coalesce with other sticky row updates (top/bottom), sticky columns updates\n // (and potentially other changes like column resize).\n this._coalescedStyleScheduler.schedule(() => {\n for (let rowIndex = 0; rowIndex < rows.length; rowIndex++) {\n if (!states[rowIndex]) {\n continue;\n }\n const offset = stickyOffsets[rowIndex];\n const isBorderedRowIndex = rowIndex === borderedRowIndex;\n for (const element of elementsToStick[rowIndex]) {\n this._addStickyStyle(element, position, offset, isBorderedRowIndex);\n }\n }\n if (position === 'top') {\n this._positionListener?.stickyHeaderRowsUpdated({\n sizes: stickyCellHeights,\n offsets: stickyOffsets,\n elements: elementsToStick,\n });\n }\n else {\n this._positionListener?.stickyFooterRowsUpdated({\n sizes: stickyCellHeights,\n offsets: stickyOffsets,\n elements: elementsToStick,\n });\n }\n });\n }\n /**\n * When using the native table in Safari, sticky footer cells do not stick. The only way to stick\n * footer rows is to apply sticky styling to the tfoot container. This should only be done if\n * all footer rows are sticky. If not all footer rows are sticky, remove sticky positioning from\n * the tfoot element.\n */\n updateStickyFooterContainer(tableElement, stickyStates) {\n if (!this._isNativeHtmlTable) {\n return;\n }\n const tfoot = tableElement.querySelector('tfoot');\n // Coalesce with other sticky updates (and potentially other changes like column resize).\n this._coalescedStyleScheduler.schedule(() => {\n if (stickyStates.some(state => !state)) {\n this._removeStickyStyle(tfoot, ['bottom']);\n }\n else {\n this._addStickyStyle(tfoot, 'bottom', 0, false);\n }\n });\n }\n /**\n * Removes the sticky style on the element by removing the sticky cell CSS class, re-evaluating\n * the zIndex, removing each of the provided sticky directions, and removing the\n * sticky position if there are no more directions.\n */\n _removeStickyStyle(element, stickyDirections) {\n for (const dir of stickyDirections) {\n element.style[dir] = '';\n element.classList.remove(this._borderCellCss[dir]);\n }\n // If the element no longer has any more sticky directions, remove sticky positioning and\n // the sticky CSS class.\n // Short-circuit checking element.style[dir] for stickyDirections as they\n // were already removed above.\n const hasDirection = STICKY_DIRECTIONS.some(dir => stickyDirections.indexOf(dir) === -1 && element.style[dir]);\n if (hasDirection) {\n element.style.zIndex = this._getCalculatedZIndex(element);\n }\n else {\n // When not hasDirection, _getCalculatedZIndex will always return ''.\n element.style.zIndex = '';\n if (this._needsPositionStickyOnElement) {\n element.style.position = '';\n }\n element.classList.remove(this._stickCellCss);\n }\n }\n /**\n * Adds the sticky styling to the element by adding the sticky style class, changing position\n * to be sticky (and -webkit-sticky), setting the appropriate zIndex, and adding a sticky\n * direction and value.\n */\n _addStickyStyle(element, dir, dirValue, isBorderElement) {\n element.classList.add(this._stickCellCss);\n if (isBorderElement) {\n element.classList.add(this._borderCellCss[dir]);\n }\n element.style[dir] = `${dirValue}px`;\n element.style.zIndex = this._getCalculatedZIndex(element);\n if (this._needsPositionStickyOnElement) {\n element.style.cssText += 'position: -webkit-sticky; position: sticky; ';\n }\n }\n /**\n * Calculate what the z-index should be for the element, depending on what directions (top,\n * bottom, left, right) have been set. It should be true that elements with a top direction\n * should have the highest index since these are elements like a table header. If any of those\n * elements are also sticky in another direction, then they should appear above other elements\n * that are only sticky top (e.g. a sticky column on a sticky header). Bottom-sticky elements\n * (e.g. footer rows) should then be next in the ordering such that they are below the header\n * but above any non-sticky elements. Finally, left/right sticky elements (e.g. sticky columns)\n * should minimally increment so that they are above non-sticky elements but below top and bottom\n * elements.\n */\n _getCalculatedZIndex(element) {\n const zIndexIncrements = {\n top: 100,\n bottom: 10,\n left: 1,\n right: 1,\n };\n let zIndex = 0;\n // Use `Iterable` instead of `Array` because TypeScript, as of 3.6.3,\n // loses the array generic type in the `for of`. But we *also* have to use `Array` because\n // typescript won't iterate over an `Iterable` unless you compile with `--downlevelIteration`\n for (const dir of STICKY_DIRECTIONS) {\n if (element.style[dir]) {\n zIndex += zIndexIncrements[dir];\n }\n }\n return zIndex ? `${zIndex}` : '';\n }\n /** Gets the widths for each cell in the provided row. */\n _getCellWidths(row, recalculateCellWidths = true) {\n if (!recalculateCellWidths && this._cachedCellWidths.length) {\n return this._cachedCellWidths;\n }\n const cellWidths = [];\n const firstRowCells = row.children;\n for (let i = 0; i < firstRowCells.length; i++) {\n let cell = firstRowCells[i];\n cellWidths.push(cell.getBoundingClientRect().width);\n }\n this._cachedCellWidths = cellWidths;\n return cellWidths;\n }\n /**\n * Determines the left and right positions of each sticky column cell, which will be the\n * accumulation of all sticky column cell widths to the left and right, respectively.\n * Non-sticky cells do not need to have a value set since their positions will not be applied.\n */\n _getStickyStartColumnPositions(widths, stickyStates) {\n const positions = [];\n let nextPosition = 0;\n for (let i = 0; i < widths.length; i++) {\n if (stickyStates[i]) {\n positions[i] = nextPosition;\n nextPosition += widths[i];\n }\n }\n return positions;\n }\n /**\n * Determines the left and right positions of each sticky column cell, which will be the\n * accumulation of all sticky column cell widths to the left and right, respectively.\n * Non-sticky cells do not need to have a value set since their positions will not be applied.\n */\n _getStickyEndColumnPositions(widths, stickyStates) {\n const positions = [];\n let nextPosition = 0;\n for (let i = widths.length; i > 0; i--) {\n if (stickyStates[i]) {\n positions[i] = nextPosition;\n nextPosition += widths[i];\n }\n }\n return positions;\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Returns an error to be thrown when attempting to find an nonexistent column.\n * @param id Id whose lookup failed.\n * @docs-private\n */\nfunction getTableUnknownColumnError(id) {\n return Error(`Could not find column with id \"${id}\".`);\n}\n/**\n * Returns an error to be thrown when two column definitions have the same name.\n * @docs-private\n */\nfunction getTableDuplicateColumnNameError(name) {\n return Error(`Duplicate column definition name provided: \"${name}\".`);\n}\n/**\n * Returns an error to be thrown when there are multiple rows that are missing a when function.\n * @docs-private\n */\nfunction getTableMultipleDefaultRowDefsError() {\n return Error(`There can only be one default row without a when predicate function.`);\n}\n/**\n * Returns an error to be thrown when there are no matching row defs for a particular set of data.\n * @docs-private\n */\nfunction getTableMissingMatchingRowDefError(data) {\n return Error(`Could not find a matching row definition for the` +\n `provided row data: ${JSON.stringify(data)}`);\n}\n/**\n * Returns an error to be thrown when there is no row definitions present in the content.\n * @docs-private\n */\nfunction getTableMissingRowDefsError() {\n return Error('Missing definitions for header, footer, and row; ' +\n 'cannot determine which columns should be rendered.');\n}\n/**\n * Returns an error to be thrown when the data source does not match the compatible types.\n * @docs-private\n */\nfunction getTableUnknownDataSourceError() {\n return Error(`Provided data source did not match an array, Observable, or DataSource`);\n}\n/**\n * Returns an error to be thrown when the text column cannot find a parent table to inject.\n * @docs-private\n */\nfunction getTableTextColumnMissingParentTableError() {\n return Error(`Text column could not find a parent table for registration.`);\n}\n/**\n * Returns an error to be thrown when a table text column doesn't have a name.\n * @docs-private\n */\nfunction getTableTextColumnMissingNameError() {\n return Error(`Table text column must have a name.`);\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** The injection token used to specify the StickyPositioningListener. */\nconst STICKY_POSITIONING_LISTENER = new InjectionToken('CDK_SPL');\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Enables the recycle view repeater strategy, which reduces rendering latency. Not compatible with\n * tables that animate rows.\n */\nclass CdkRecycleRows {\n}\nCdkRecycleRows.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: CdkRecycleRows, deps: [], target: i0.ɵɵFactoryTarget.Directive });\nCdkRecycleRows.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"15.1.0\", type: CdkRecycleRows, selector: \"cdk-table[recycleRows], table[cdk-table][recycleRows]\", providers: [{ provide: _VIEW_REPEATER_STRATEGY, useClass: _RecycleViewRepeaterStrategy }], ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: CdkRecycleRows, decorators: [{\n type: Directive,\n args: [{\n selector: 'cdk-table[recycleRows], table[cdk-table][recycleRows]',\n providers: [{ provide: _VIEW_REPEATER_STRATEGY, useClass: _RecycleViewRepeaterStrategy }],\n }]\n }] });\n/**\n * Provides a handle for the table to grab the view container's ng-container to insert data rows.\n * @docs-private\n */\nclass DataRowOutlet {\n constructor(viewContainer, elementRef) {\n this.viewContainer = viewContainer;\n this.elementRef = elementRef;\n }\n}\nDataRowOutlet.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: DataRowOutlet, deps: [{ token: i0.ViewContainerRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });\nDataRowOutlet.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"15.1.0\", type: DataRowOutlet, selector: \"[rowOutlet]\", ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: DataRowOutlet, decorators: [{\n type: Directive,\n args: [{ selector: '[rowOutlet]' }]\n }], ctorParameters: function () { return [{ type: i0.ViewContainerRef }, { type: i0.ElementRef }]; } });\n/**\n * Provides a handle for the table to grab the view container's ng-container to insert the header.\n * @docs-private\n */\nclass HeaderRowOutlet {\n constructor(viewContainer, elementRef) {\n this.viewContainer = viewContainer;\n this.elementRef = elementRef;\n }\n}\nHeaderRowOutlet.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: HeaderRowOutlet, deps: [{ token: i0.ViewContainerRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });\nHeaderRowOutlet.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"15.1.0\", type: HeaderRowOutlet, selector: \"[headerRowOutlet]\", ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: HeaderRowOutlet, decorators: [{\n type: Directive,\n args: [{ selector: '[headerRowOutlet]' }]\n }], ctorParameters: function () { return [{ type: i0.ViewContainerRef }, { type: i0.ElementRef }]; } });\n/**\n * Provides a handle for the table to grab the view container's ng-container to insert the footer.\n * @docs-private\n */\nclass FooterRowOutlet {\n constructor(viewContainer, elementRef) {\n this.viewContainer = viewContainer;\n this.elementRef = elementRef;\n }\n}\nFooterRowOutlet.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: FooterRowOutlet, deps: [{ token: i0.ViewContainerRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });\nFooterRowOutlet.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"15.1.0\", type: FooterRowOutlet, selector: \"[footerRowOutlet]\", ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: FooterRowOutlet, decorators: [{\n type: Directive,\n args: [{ selector: '[footerRowOutlet]' }]\n }], ctorParameters: function () { return [{ type: i0.ViewContainerRef }, { type: i0.ElementRef }]; } });\n/**\n * Provides a handle for the table to grab the view\n * container's ng-container to insert the no data row.\n * @docs-private\n */\nclass NoDataRowOutlet {\n constructor(viewContainer, elementRef) {\n this.viewContainer = viewContainer;\n this.elementRef = elementRef;\n }\n}\nNoDataRowOutlet.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: NoDataRowOutlet, deps: [{ token: i0.ViewContainerRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });\nNoDataRowOutlet.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"15.1.0\", type: NoDataRowOutlet, selector: \"[noDataRowOutlet]\", ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: NoDataRowOutlet, decorators: [{\n type: Directive,\n args: [{ selector: '[noDataRowOutlet]' }]\n }], ctorParameters: function () { return [{ type: i0.ViewContainerRef }, { type: i0.ElementRef }]; } });\n/**\n * The table template that can be used by the mat-table. Should not be used outside of the\n * material library.\n * @docs-private\n */\nconst CDK_TABLE_TEMPLATE = \n// Note that according to MDN, the `caption` element has to be projected as the **first**\n// element in the table. See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/caption\n`\n \n \n \n \n \n \n`;\n/**\n * Class used to conveniently type the embedded view ref for rows with a context.\n * @docs-private\n */\nclass RowViewRef extends EmbeddedViewRef {\n}\n/**\n * A data table that can render a header row, data rows, and a footer row.\n * Uses the dataSource input to determine the data to be rendered. The data can be provided either\n * as a data array, an Observable stream that emits the data array to render, or a DataSource with a\n * connect function that will return an Observable stream that emits the data array to render.\n */\nclass CdkTable {\n /**\n * Tracking function that will be used to check the differences in data changes. Used similarly\n * to `ngFor` `trackBy` function. Optimize row operations by identifying a row based on its data\n * relative to the function to know if a row should be added/removed/moved.\n * Accepts a function that takes two parameters, `index` and `item`.\n */\n get trackBy() {\n return this._trackByFn;\n }\n set trackBy(fn) {\n if ((typeof ngDevMode === 'undefined' || ngDevMode) && fn != null && typeof fn !== 'function') {\n console.warn(`trackBy must be a function, but received ${JSON.stringify(fn)}.`);\n }\n this._trackByFn = fn;\n }\n /**\n * The table's source of data, which can be provided in three ways (in order of complexity):\n * - Simple data array (each object represents one table row)\n * - Stream that emits a data array each time the array changes\n * - `DataSource` object that implements the connect/disconnect interface.\n *\n * If a data array is provided, the table must be notified when the array's objects are\n * added, removed, or moved. This can be done by calling the `renderRows()` function which will\n * render the diff since the last table render. If the data array reference is changed, the table\n * will automatically trigger an update to the rows.\n *\n * When providing an Observable stream, the table will trigger an update automatically when the\n * stream emits a new array of data.\n *\n * Finally, when providing a `DataSource` object, the table will use the Observable stream\n * provided by the connect function and trigger updates when that stream emits new data array\n * values. During the table's ngOnDestroy or when the data source is removed from the table, the\n * table will call the DataSource's `disconnect` function (may be useful for cleaning up any\n * subscriptions registered during the connect process).\n */\n get dataSource() {\n return this._dataSource;\n }\n set dataSource(dataSource) {\n if (this._dataSource !== dataSource) {\n this._switchDataSource(dataSource);\n }\n }\n /**\n * Whether to allow multiple rows per data object by evaluating which rows evaluate their 'when'\n * predicate to true. If `multiTemplateDataRows` is false, which is the default value, then each\n * dataobject will render the first row that evaluates its when predicate to true, in the order\n * defined in the table, or otherwise the default row which does not have a when predicate.\n */\n get multiTemplateDataRows() {\n return this._multiTemplateDataRows;\n }\n set multiTemplateDataRows(v) {\n this._multiTemplateDataRows = coerceBooleanProperty(v);\n // In Ivy if this value is set via a static attribute (e.g.
),\n // this setter will be invoked before the row outlet has been defined hence the null check.\n if (this._rowOutlet && this._rowOutlet.viewContainer.length) {\n this._forceRenderDataRows();\n this.updateStickyColumnStyles();\n }\n }\n /**\n * Whether to use a fixed table layout. Enabling this option will enforce consistent column widths\n * and optimize rendering sticky styles for native tables. No-op for flex tables.\n */\n get fixedLayout() {\n return this._fixedLayout;\n }\n set fixedLayout(v) {\n this._fixedLayout = coerceBooleanProperty(v);\n // Toggling `fixedLayout` may change column widths. Sticky column styles should be recalculated.\n this._forceRecalculateCellWidths = true;\n this._stickyColumnStylesNeedReset = true;\n }\n constructor(_differs, _changeDetectorRef, _elementRef, role, _dir, _document, _platform, _viewRepeater, _coalescedStyleScheduler, _viewportRuler, \n /**\n * @deprecated `_stickyPositioningListener` parameter to become required.\n * @breaking-change 13.0.0\n */\n _stickyPositioningListener, \n /**\n * @deprecated `_ngZone` parameter to become required.\n * @breaking-change 14.0.0\n */\n _ngZone) {\n this._differs = _differs;\n this._changeDetectorRef = _changeDetectorRef;\n this._elementRef = _elementRef;\n this._dir = _dir;\n this._platform = _platform;\n this._viewRepeater = _viewRepeater;\n this._coalescedStyleScheduler = _coalescedStyleScheduler;\n this._viewportRuler = _viewportRuler;\n this._stickyPositioningListener = _stickyPositioningListener;\n this._ngZone = _ngZone;\n /** Subject that emits when the component has been destroyed. */\n this._onDestroy = new Subject();\n /**\n * Map of all the user's defined columns (header, data, and footer cell template) identified by\n * name. Collection populated by the column definitions gathered by `ContentChildren` as well as\n * any custom column definitions added to `_customColumnDefs`.\n */\n this._columnDefsByName = new Map();\n /**\n * Column definitions that were defined outside of the direct content children of the table.\n * These will be defined when, e.g., creating a wrapper around the cdkTable that has\n * column definitions as *its* content child.\n */\n this._customColumnDefs = new Set();\n /**\n * Data row definitions that were defined outside of the direct content children of the table.\n * These will be defined when, e.g., creating a wrapper around the cdkTable that has\n * built-in data rows as *its* content child.\n */\n this._customRowDefs = new Set();\n /**\n * Header row definitions that were defined outside of the direct content children of the table.\n * These will be defined when, e.g., creating a wrapper around the cdkTable that has\n * built-in header rows as *its* content child.\n */\n this._customHeaderRowDefs = new Set();\n /**\n * Footer row definitions that were defined outside of the direct content children of the table.\n * These will be defined when, e.g., creating a wrapper around the cdkTable that has a\n * built-in footer row as *its* content child.\n */\n this._customFooterRowDefs = new Set();\n /**\n * Whether the header row definition has been changed. Triggers an update to the header row after\n * content is checked. Initialized as true so that the table renders the initial set of rows.\n */\n this._headerRowDefChanged = true;\n /**\n * Whether the footer row definition has been changed. Triggers an update to the footer row after\n * content is checked. Initialized as true so that the table renders the initial set of rows.\n */\n this._footerRowDefChanged = true;\n /**\n * Whether the sticky column styles need to be updated. Set to `true` when the visible columns\n * change.\n */\n this._stickyColumnStylesNeedReset = true;\n /**\n * Whether the sticky styler should recalculate cell widths when applying sticky styles. If\n * `false`, cached values will be used instead. This is only applicable to tables with\n * {@link fixedLayout} enabled. For other tables, cell widths will always be recalculated.\n */\n this._forceRecalculateCellWidths = true;\n /**\n * Cache of the latest rendered `RenderRow` objects as a map for easy retrieval when constructing\n * a new list of `RenderRow` objects for rendering rows. Since the new list is constructed with\n * the cached `RenderRow` objects when possible, the row identity is preserved when the data\n * and row template matches, which allows the `IterableDiffer` to check rows by reference\n * and understand which rows are added/moved/removed.\n *\n * Implemented as a map of maps where the first key is the `data: T` object and the second is the\n * `CdkRowDef` object. With the two keys, the cache points to a `RenderRow` object that\n * contains an array of created pairs. The array is necessary to handle cases where the data\n * array contains multiple duplicate data objects and each instantiated `RenderRow` must be\n * stored.\n */\n this._cachedRenderRowsMap = new Map();\n /**\n * CSS class added to any row or cell that has sticky positioning applied. May be overridden by\n * table subclasses.\n */\n this.stickyCssClass = 'cdk-table-sticky';\n /**\n * Whether to manually add position: sticky to all sticky cell elements. Not needed if\n * the position is set in a selector associated with the value of stickyCssClass. May be\n * overridden by table subclasses\n */\n this.needsPositionStickyOnElement = true;\n /** Whether the no data row is currently showing anything. */\n this._isShowingNoDataRow = false;\n this._multiTemplateDataRows = false;\n this._fixedLayout = false;\n /**\n * Emits when the table completes rendering a set of data rows based on the latest data from the\n * data source, even if the set of rows is empty.\n */\n this.contentChanged = new EventEmitter();\n // TODO(andrewseguin): Remove max value as the end index\n // and instead calculate the view on init and scroll.\n /**\n * Stream containing the latest information on what rows are being displayed on screen.\n * Can be used by the data source to as a heuristic of what data should be provided.\n *\n * @docs-private\n */\n this.viewChange = new BehaviorSubject({\n start: 0,\n end: Number.MAX_VALUE,\n });\n if (!role) {\n this._elementRef.nativeElement.setAttribute('role', 'table');\n }\n this._document = _document;\n this._isNativeHtmlTable = this._elementRef.nativeElement.nodeName === 'TABLE';\n }\n ngOnInit() {\n this._setupStickyStyler();\n if (this._isNativeHtmlTable) {\n this._applyNativeTableSections();\n }\n // Set up the trackBy function so that it uses the `RenderRow` as its identity by default. If\n // the user has provided a custom trackBy, return the result of that function as evaluated\n // with the values of the `RenderRow`'s data and index.\n this._dataDiffer = this._differs.find([]).create((_i, dataRow) => {\n return this.trackBy ? this.trackBy(dataRow.dataIndex, dataRow.data) : dataRow;\n });\n this._viewportRuler\n .change()\n .pipe(takeUntil(this._onDestroy))\n .subscribe(() => {\n this._forceRecalculateCellWidths = true;\n });\n }\n ngAfterContentChecked() {\n // Cache the row and column definitions gathered by ContentChildren and programmatic injection.\n this._cacheRowDefs();\n this._cacheColumnDefs();\n // Make sure that the user has at least added header, footer, or data row def.\n if (!this._headerRowDefs.length &&\n !this._footerRowDefs.length &&\n !this._rowDefs.length &&\n (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw getTableMissingRowDefsError();\n }\n // Render updates if the list of columns have been changed for the header, row, or footer defs.\n const columnsChanged = this._renderUpdatedColumns();\n const rowDefsChanged = columnsChanged || this._headerRowDefChanged || this._footerRowDefChanged;\n // Ensure sticky column styles are reset if set to `true` elsewhere.\n this._stickyColumnStylesNeedReset = this._stickyColumnStylesNeedReset || rowDefsChanged;\n this._forceRecalculateCellWidths = rowDefsChanged;\n // If the header row definition has been changed, trigger a render to the header row.\n if (this._headerRowDefChanged) {\n this._forceRenderHeaderRows();\n this._headerRowDefChanged = false;\n }\n // If the footer row definition has been changed, trigger a render to the footer row.\n if (this._footerRowDefChanged) {\n this._forceRenderFooterRows();\n this._footerRowDefChanged = false;\n }\n // If there is a data source and row definitions, connect to the data source unless a\n // connection has already been made.\n if (this.dataSource && this._rowDefs.length > 0 && !this._renderChangeSubscription) {\n this._observeRenderChanges();\n }\n else if (this._stickyColumnStylesNeedReset) {\n // In the above case, _observeRenderChanges will result in updateStickyColumnStyles being\n // called when it row data arrives. Otherwise, we need to call it proactively.\n this.updateStickyColumnStyles();\n }\n this._checkStickyStates();\n }\n ngOnDestroy() {\n [\n this._rowOutlet.viewContainer,\n this._headerRowOutlet.viewContainer,\n this._footerRowOutlet.viewContainer,\n this._cachedRenderRowsMap,\n this._customColumnDefs,\n this._customRowDefs,\n this._customHeaderRowDefs,\n this._customFooterRowDefs,\n this._columnDefsByName,\n ].forEach(def => {\n def.clear();\n });\n this._headerRowDefs = [];\n this._footerRowDefs = [];\n this._defaultRowDef = null;\n this._onDestroy.next();\n this._onDestroy.complete();\n if (isDataSource(this.dataSource)) {\n this.dataSource.disconnect(this);\n }\n }\n /**\n * Renders rows based on the table's latest set of data, which was either provided directly as an\n * input or retrieved through an Observable stream (directly or from a DataSource).\n * Checks for differences in the data since the last diff to perform only the necessary\n * changes (add/remove/move rows).\n *\n * If the table's data source is a DataSource or Observable, this will be invoked automatically\n * each time the provided Observable stream emits a new data array. Otherwise if your data is\n * an array, this function will need to be called to render any changes.\n */\n renderRows() {\n this._renderRows = this._getAllRenderRows();\n const changes = this._dataDiffer.diff(this._renderRows);\n if (!changes) {\n this._updateNoDataRow();\n this.contentChanged.next();\n return;\n }\n const viewContainer = this._rowOutlet.viewContainer;\n this._viewRepeater.applyChanges(changes, viewContainer, (record, _adjustedPreviousIndex, currentIndex) => this._getEmbeddedViewArgs(record.item, currentIndex), record => record.item.data, (change) => {\n if (change.operation === 1 /* _ViewRepeaterOperation.INSERTED */ && change.context) {\n this._renderCellTemplateForItem(change.record.item.rowDef, change.context);\n }\n });\n // Update the meta context of a row's context data (index, count, first, last, ...)\n this._updateRowIndexContext();\n // Update rows that did not get added/removed/moved but may have had their identity changed,\n // e.g. if trackBy matched data on some property but the actual data reference changed.\n changes.forEachIdentityChange((record) => {\n const rowView = viewContainer.get(record.currentIndex);\n rowView.context.$implicit = record.item.data;\n });\n this._updateNoDataRow();\n // Allow the new row data to render before measuring it.\n // @breaking-change 14.0.0 Remove undefined check once _ngZone is required.\n if (this._ngZone && NgZone.isInAngularZone()) {\n this._ngZone.onStable.pipe(take(1), takeUntil(this._onDestroy)).subscribe(() => {\n this.updateStickyColumnStyles();\n });\n }\n else {\n this.updateStickyColumnStyles();\n }\n this.contentChanged.next();\n }\n /** Adds a column definition that was not included as part of the content children. */\n addColumnDef(columnDef) {\n this._customColumnDefs.add(columnDef);\n }\n /** Removes a column definition that was not included as part of the content children. */\n removeColumnDef(columnDef) {\n this._customColumnDefs.delete(columnDef);\n }\n /** Adds a row definition that was not included as part of the content children. */\n addRowDef(rowDef) {\n this._customRowDefs.add(rowDef);\n }\n /** Removes a row definition that was not included as part of the content children. */\n removeRowDef(rowDef) {\n this._customRowDefs.delete(rowDef);\n }\n /** Adds a header row definition that was not included as part of the content children. */\n addHeaderRowDef(headerRowDef) {\n this._customHeaderRowDefs.add(headerRowDef);\n this._headerRowDefChanged = true;\n }\n /** Removes a header row definition that was not included as part of the content children. */\n removeHeaderRowDef(headerRowDef) {\n this._customHeaderRowDefs.delete(headerRowDef);\n this._headerRowDefChanged = true;\n }\n /** Adds a footer row definition that was not included as part of the content children. */\n addFooterRowDef(footerRowDef) {\n this._customFooterRowDefs.add(footerRowDef);\n this._footerRowDefChanged = true;\n }\n /** Removes a footer row definition that was not included as part of the content children. */\n removeFooterRowDef(footerRowDef) {\n this._customFooterRowDefs.delete(footerRowDef);\n this._footerRowDefChanged = true;\n }\n /** Sets a no data row definition that was not included as a part of the content children. */\n setNoDataRow(noDataRow) {\n this._customNoDataRow = noDataRow;\n }\n /**\n * Updates the header sticky styles. First resets all applied styles with respect to the cells\n * sticking to the top. Then, evaluating which cells need to be stuck to the top. This is\n * automatically called when the header row changes its displayed set of columns, or if its\n * sticky input changes. May be called manually for cases where the cell content changes outside\n * of these events.\n */\n updateStickyHeaderRowStyles() {\n const headerRows = this._getRenderedRows(this._headerRowOutlet);\n const tableElement = this._elementRef.nativeElement;\n // Hide the thead element if there are no header rows. This is necessary to satisfy\n // overzealous a11y checkers that fail because the `rowgroup` element does not contain\n // required child `row`.\n const thead = tableElement.querySelector('thead');\n if (thead) {\n thead.style.display = headerRows.length ? '' : 'none';\n }\n const stickyStates = this._headerRowDefs.map(def => def.sticky);\n this._stickyStyler.clearStickyPositioning(headerRows, ['top']);\n this._stickyStyler.stickRows(headerRows, stickyStates, 'top');\n // Reset the dirty state of the sticky input change since it has been used.\n this._headerRowDefs.forEach(def => def.resetStickyChanged());\n }\n /**\n * Updates the footer sticky styles. First resets all applied styles with respect to the cells\n * sticking to the bottom. Then, evaluating which cells need to be stuck to the bottom. This is\n * automatically called when the footer row changes its displayed set of columns, or if its\n * sticky input changes. May be called manually for cases where the cell content changes outside\n * of these events.\n */\n updateStickyFooterRowStyles() {\n const footerRows = this._getRenderedRows(this._footerRowOutlet);\n const tableElement = this._elementRef.nativeElement;\n // Hide the tfoot element if there are no footer rows. This is necessary to satisfy\n // overzealous a11y checkers that fail because the `rowgroup` element does not contain\n // required child `row`.\n const tfoot = tableElement.querySelector('tfoot');\n if (tfoot) {\n tfoot.style.display = footerRows.length ? '' : 'none';\n }\n const stickyStates = this._footerRowDefs.map(def => def.sticky);\n this._stickyStyler.clearStickyPositioning(footerRows, ['bottom']);\n this._stickyStyler.stickRows(footerRows, stickyStates, 'bottom');\n this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement, stickyStates);\n // Reset the dirty state of the sticky input change since it has been used.\n this._footerRowDefs.forEach(def => def.resetStickyChanged());\n }\n /**\n * Updates the column sticky styles. First resets all applied styles with respect to the cells\n * sticking to the left and right. Then sticky styles are added for the left and right according\n * to the column definitions for each cell in each row. This is automatically called when\n * the data source provides a new set of data or when a column definition changes its sticky\n * input. May be called manually for cases where the cell content changes outside of these events.\n */\n updateStickyColumnStyles() {\n const headerRows = this._getRenderedRows(this._headerRowOutlet);\n const dataRows = this._getRenderedRows(this._rowOutlet);\n const footerRows = this._getRenderedRows(this._footerRowOutlet);\n // For tables not using a fixed layout, the column widths may change when new rows are rendered.\n // In a table using a fixed layout, row content won't affect column width, so sticky styles\n // don't need to be cleared unless either the sticky column config changes or one of the row\n // defs change.\n if ((this._isNativeHtmlTable && !this._fixedLayout) || this._stickyColumnStylesNeedReset) {\n // Clear the left and right positioning from all columns in the table across all rows since\n // sticky columns span across all table sections (header, data, footer)\n this._stickyStyler.clearStickyPositioning([...headerRows, ...dataRows, ...footerRows], ['left', 'right']);\n this._stickyColumnStylesNeedReset = false;\n }\n // Update the sticky styles for each header row depending on the def's sticky state\n headerRows.forEach((headerRow, i) => {\n this._addStickyColumnStyles([headerRow], this._headerRowDefs[i]);\n });\n // Update the sticky styles for each data row depending on its def's sticky state\n this._rowDefs.forEach(rowDef => {\n // Collect all the rows rendered with this row definition.\n const rows = [];\n for (let i = 0; i < dataRows.length; i++) {\n if (this._renderRows[i].rowDef === rowDef) {\n rows.push(dataRows[i]);\n }\n }\n this._addStickyColumnStyles(rows, rowDef);\n });\n // Update the sticky styles for each footer row depending on the def's sticky state\n footerRows.forEach((footerRow, i) => {\n this._addStickyColumnStyles([footerRow], this._footerRowDefs[i]);\n });\n // Reset the dirty state of the sticky input change since it has been used.\n Array.from(this._columnDefsByName.values()).forEach(def => def.resetStickyChanged());\n }\n /**\n * Get the list of RenderRow objects to render according to the current list of data and defined\n * row definitions. If the previous list already contained a particular pair, it should be reused\n * so that the differ equates their references.\n */\n _getAllRenderRows() {\n const renderRows = [];\n // Store the cache and create a new one. Any re-used RenderRow objects will be moved into the\n // new cache while unused ones can be picked up by garbage collection.\n const prevCachedRenderRows = this._cachedRenderRowsMap;\n this._cachedRenderRowsMap = new Map();\n // For each data object, get the list of rows that should be rendered, represented by the\n // respective `RenderRow` object which is the pair of `data` and `CdkRowDef`.\n for (let i = 0; i < this._data.length; i++) {\n let data = this._data[i];\n const renderRowsForData = this._getRenderRowsForData(data, i, prevCachedRenderRows.get(data));\n if (!this._cachedRenderRowsMap.has(data)) {\n this._cachedRenderRowsMap.set(data, new WeakMap());\n }\n for (let j = 0; j < renderRowsForData.length; j++) {\n let renderRow = renderRowsForData[j];\n const cache = this._cachedRenderRowsMap.get(renderRow.data);\n if (cache.has(renderRow.rowDef)) {\n cache.get(renderRow.rowDef).push(renderRow);\n }\n else {\n cache.set(renderRow.rowDef, [renderRow]);\n }\n renderRows.push(renderRow);\n }\n }\n return renderRows;\n }\n /**\n * Gets a list of `RenderRow` for the provided data object and any `CdkRowDef` objects that\n * should be rendered for this data. Reuses the cached RenderRow objects if they match the same\n * `(T, CdkRowDef)` pair.\n */\n _getRenderRowsForData(data, dataIndex, cache) {\n const rowDefs = this._getRowDefs(data, dataIndex);\n return rowDefs.map(rowDef => {\n const cachedRenderRows = cache && cache.has(rowDef) ? cache.get(rowDef) : [];\n if (cachedRenderRows.length) {\n const dataRow = cachedRenderRows.shift();\n dataRow.dataIndex = dataIndex;\n return dataRow;\n }\n else {\n return { data, rowDef, dataIndex };\n }\n });\n }\n /** Update the map containing the content's column definitions. */\n _cacheColumnDefs() {\n this._columnDefsByName.clear();\n const columnDefs = mergeArrayAndSet(this._getOwnDefs(this._contentColumnDefs), this._customColumnDefs);\n columnDefs.forEach(columnDef => {\n if (this._columnDefsByName.has(columnDef.name) &&\n (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw getTableDuplicateColumnNameError(columnDef.name);\n }\n this._columnDefsByName.set(columnDef.name, columnDef);\n });\n }\n /** Update the list of all available row definitions that can be used. */\n _cacheRowDefs() {\n this._headerRowDefs = mergeArrayAndSet(this._getOwnDefs(this._contentHeaderRowDefs), this._customHeaderRowDefs);\n this._footerRowDefs = mergeArrayAndSet(this._getOwnDefs(this._contentFooterRowDefs), this._customFooterRowDefs);\n this._rowDefs = mergeArrayAndSet(this._getOwnDefs(this._contentRowDefs), this._customRowDefs);\n // After all row definitions are determined, find the row definition to be considered default.\n const defaultRowDefs = this._rowDefs.filter(def => !def.when);\n if (!this.multiTemplateDataRows &&\n defaultRowDefs.length > 1 &&\n (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw getTableMultipleDefaultRowDefsError();\n }\n this._defaultRowDef = defaultRowDefs[0];\n }\n /**\n * Check if the header, data, or footer rows have changed what columns they want to display or\n * whether the sticky states have changed for the header or footer. If there is a diff, then\n * re-render that section.\n */\n _renderUpdatedColumns() {\n const columnsDiffReducer = (acc, def) => acc || !!def.getColumnsDiff();\n // Force re-render data rows if the list of column definitions have changed.\n const dataColumnsChanged = this._rowDefs.reduce(columnsDiffReducer, false);\n if (dataColumnsChanged) {\n this._forceRenderDataRows();\n }\n // Force re-render header/footer rows if the list of column definitions have changed.\n const headerColumnsChanged = this._headerRowDefs.reduce(columnsDiffReducer, false);\n if (headerColumnsChanged) {\n this._forceRenderHeaderRows();\n }\n const footerColumnsChanged = this._footerRowDefs.reduce(columnsDiffReducer, false);\n if (footerColumnsChanged) {\n this._forceRenderFooterRows();\n }\n return dataColumnsChanged || headerColumnsChanged || footerColumnsChanged;\n }\n /**\n * Switch to the provided data source by resetting the data and unsubscribing from the current\n * render change subscription if one exists. If the data source is null, interpret this by\n * clearing the row outlet. Otherwise start listening for new data.\n */\n _switchDataSource(dataSource) {\n this._data = [];\n if (isDataSource(this.dataSource)) {\n this.dataSource.disconnect(this);\n }\n // Stop listening for data from the previous data source.\n if (this._renderChangeSubscription) {\n this._renderChangeSubscription.unsubscribe();\n this._renderChangeSubscription = null;\n }\n if (!dataSource) {\n if (this._dataDiffer) {\n this._dataDiffer.diff([]);\n }\n this._rowOutlet.viewContainer.clear();\n }\n this._dataSource = dataSource;\n }\n /** Set up a subscription for the data provided by the data source. */\n _observeRenderChanges() {\n // If no data source has been set, there is nothing to observe for changes.\n if (!this.dataSource) {\n return;\n }\n let dataStream;\n if (isDataSource(this.dataSource)) {\n dataStream = this.dataSource.connect(this);\n }\n else if (isObservable(this.dataSource)) {\n dataStream = this.dataSource;\n }\n else if (Array.isArray(this.dataSource)) {\n dataStream = of(this.dataSource);\n }\n if (dataStream === undefined && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw getTableUnknownDataSourceError();\n }\n this._renderChangeSubscription = dataStream\n .pipe(takeUntil(this._onDestroy))\n .subscribe(data => {\n this._data = data || [];\n this.renderRows();\n });\n }\n /**\n * Clears any existing content in the header row outlet and creates a new embedded view\n * in the outlet using the header row definition.\n */\n _forceRenderHeaderRows() {\n // Clear the header row outlet if any content exists.\n if (this._headerRowOutlet.viewContainer.length > 0) {\n this._headerRowOutlet.viewContainer.clear();\n }\n this._headerRowDefs.forEach((def, i) => this._renderRow(this._headerRowOutlet, def, i));\n this.updateStickyHeaderRowStyles();\n }\n /**\n * Clears any existing content in the footer row outlet and creates a new embedded view\n * in the outlet using the footer row definition.\n */\n _forceRenderFooterRows() {\n // Clear the footer row outlet if any content exists.\n if (this._footerRowOutlet.viewContainer.length > 0) {\n this._footerRowOutlet.viewContainer.clear();\n }\n this._footerRowDefs.forEach((def, i) => this._renderRow(this._footerRowOutlet, def, i));\n this.updateStickyFooterRowStyles();\n }\n /** Adds the sticky column styles for the rows according to the columns' stick states. */\n _addStickyColumnStyles(rows, rowDef) {\n const columnDefs = Array.from(rowDef.columns || []).map(columnName => {\n const columnDef = this._columnDefsByName.get(columnName);\n if (!columnDef && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw getTableUnknownColumnError(columnName);\n }\n return columnDef;\n });\n const stickyStartStates = columnDefs.map(columnDef => columnDef.sticky);\n const stickyEndStates = columnDefs.map(columnDef => columnDef.stickyEnd);\n this._stickyStyler.updateStickyColumns(rows, stickyStartStates, stickyEndStates, !this._fixedLayout || this._forceRecalculateCellWidths);\n }\n /** Gets the list of rows that have been rendered in the row outlet. */\n _getRenderedRows(rowOutlet) {\n const renderedRows = [];\n for (let i = 0; i < rowOutlet.viewContainer.length; i++) {\n const viewRef = rowOutlet.viewContainer.get(i);\n renderedRows.push(viewRef.rootNodes[0]);\n }\n return renderedRows;\n }\n /**\n * Get the matching row definitions that should be used for this row data. If there is only\n * one row definition, it is returned. Otherwise, find the row definitions that has a when\n * predicate that returns true with the data. If none return true, return the default row\n * definition.\n */\n _getRowDefs(data, dataIndex) {\n if (this._rowDefs.length == 1) {\n return [this._rowDefs[0]];\n }\n let rowDefs = [];\n if (this.multiTemplateDataRows) {\n rowDefs = this._rowDefs.filter(def => !def.when || def.when(dataIndex, data));\n }\n else {\n let rowDef = this._rowDefs.find(def => def.when && def.when(dataIndex, data)) || this._defaultRowDef;\n if (rowDef) {\n rowDefs.push(rowDef);\n }\n }\n if (!rowDefs.length && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw getTableMissingMatchingRowDefError(data);\n }\n return rowDefs;\n }\n _getEmbeddedViewArgs(renderRow, index) {\n const rowDef = renderRow.rowDef;\n const context = { $implicit: renderRow.data };\n return {\n templateRef: rowDef.template,\n context,\n index,\n };\n }\n /**\n * Creates a new row template in the outlet and fills it with the set of cell templates.\n * Optionally takes a context to provide to the row and cells, as well as an optional index\n * of where to place the new row template in the outlet.\n */\n _renderRow(outlet, rowDef, index, context = {}) {\n // TODO(andrewseguin): enforce that one outlet was instantiated from createEmbeddedView\n const view = outlet.viewContainer.createEmbeddedView(rowDef.template, context, index);\n this._renderCellTemplateForItem(rowDef, context);\n return view;\n }\n _renderCellTemplateForItem(rowDef, context) {\n for (let cellTemplate of this._getCellTemplates(rowDef)) {\n if (CdkCellOutlet.mostRecentCellOutlet) {\n CdkCellOutlet.mostRecentCellOutlet._viewContainer.createEmbeddedView(cellTemplate, context);\n }\n }\n this._changeDetectorRef.markForCheck();\n }\n /**\n * Updates the index-related context for each row to reflect any changes in the index of the rows,\n * e.g. first/last/even/odd.\n */\n _updateRowIndexContext() {\n const viewContainer = this._rowOutlet.viewContainer;\n for (let renderIndex = 0, count = viewContainer.length; renderIndex < count; renderIndex++) {\n const viewRef = viewContainer.get(renderIndex);\n const context = viewRef.context;\n context.count = count;\n context.first = renderIndex === 0;\n context.last = renderIndex === count - 1;\n context.even = renderIndex % 2 === 0;\n context.odd = !context.even;\n if (this.multiTemplateDataRows) {\n context.dataIndex = this._renderRows[renderIndex].dataIndex;\n context.renderIndex = renderIndex;\n }\n else {\n context.index = this._renderRows[renderIndex].dataIndex;\n }\n }\n }\n /** Gets the column definitions for the provided row def. */\n _getCellTemplates(rowDef) {\n if (!rowDef || !rowDef.columns) {\n return [];\n }\n return Array.from(rowDef.columns, columnId => {\n const column = this._columnDefsByName.get(columnId);\n if (!column && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw getTableUnknownColumnError(columnId);\n }\n return rowDef.extractCellTemplate(column);\n });\n }\n /** Adds native table sections (e.g. tbody) and moves the row outlets into them. */\n _applyNativeTableSections() {\n const documentFragment = this._document.createDocumentFragment();\n const sections = [\n { tag: 'thead', outlets: [this._headerRowOutlet] },\n { tag: 'tbody', outlets: [this._rowOutlet, this._noDataRowOutlet] },\n { tag: 'tfoot', outlets: [this._footerRowOutlet] },\n ];\n for (const section of sections) {\n const element = this._document.createElement(section.tag);\n element.setAttribute('role', 'rowgroup');\n for (const outlet of section.outlets) {\n element.appendChild(outlet.elementRef.nativeElement);\n }\n documentFragment.appendChild(element);\n }\n // Use a DocumentFragment so we don't hit the DOM on each iteration.\n this._elementRef.nativeElement.appendChild(documentFragment);\n }\n /**\n * Forces a re-render of the data rows. Should be called in cases where there has been an input\n * change that affects the evaluation of which rows should be rendered, e.g. toggling\n * `multiTemplateDataRows` or adding/removing row definitions.\n */\n _forceRenderDataRows() {\n this._dataDiffer.diff([]);\n this._rowOutlet.viewContainer.clear();\n this.renderRows();\n }\n /**\n * Checks if there has been a change in sticky states since last check and applies the correct\n * sticky styles. Since checking resets the \"dirty\" state, this should only be performed once\n * during a change detection and after the inputs are settled (after content check).\n */\n _checkStickyStates() {\n const stickyCheckReducer = (acc, d) => {\n return acc || d.hasStickyChanged();\n };\n // Note that the check needs to occur for every definition since it notifies the definition\n // that it can reset its dirty state. Using another operator like `some` may short-circuit\n // remaining definitions and leave them in an unchecked state.\n if (this._headerRowDefs.reduce(stickyCheckReducer, false)) {\n this.updateStickyHeaderRowStyles();\n }\n if (this._footerRowDefs.reduce(stickyCheckReducer, false)) {\n this.updateStickyFooterRowStyles();\n }\n if (Array.from(this._columnDefsByName.values()).reduce(stickyCheckReducer, false)) {\n this._stickyColumnStylesNeedReset = true;\n this.updateStickyColumnStyles();\n }\n }\n /**\n * Creates the sticky styler that will be used for sticky rows and columns. Listens\n * for directionality changes and provides the latest direction to the styler. Re-applies column\n * stickiness when directionality changes.\n */\n _setupStickyStyler() {\n const direction = this._dir ? this._dir.value : 'ltr';\n this._stickyStyler = new StickyStyler(this._isNativeHtmlTable, this.stickyCssClass, direction, this._coalescedStyleScheduler, this._platform.isBrowser, this.needsPositionStickyOnElement, this._stickyPositioningListener);\n (this._dir ? this._dir.change : of())\n .pipe(takeUntil(this._onDestroy))\n .subscribe(value => {\n this._stickyStyler.direction = value;\n this.updateStickyColumnStyles();\n });\n }\n /** Filters definitions that belong to this table from a QueryList. */\n _getOwnDefs(items) {\n return items.filter(item => !item._table || item._table === this);\n }\n /** Creates or removes the no data row, depending on whether any data is being shown. */\n _updateNoDataRow() {\n const noDataRow = this._customNoDataRow || this._noDataRow;\n if (!noDataRow) {\n return;\n }\n const shouldShow = this._rowOutlet.viewContainer.length === 0;\n if (shouldShow === this._isShowingNoDataRow) {\n return;\n }\n const container = this._noDataRowOutlet.viewContainer;\n if (shouldShow) {\n const view = container.createEmbeddedView(noDataRow.templateRef);\n const rootNode = view.rootNodes[0];\n // Only add the attributes if we have a single root node since it's hard\n // to figure out which one to add it to when there are multiple.\n if (view.rootNodes.length === 1 && rootNode?.nodeType === this._document.ELEMENT_NODE) {\n rootNode.setAttribute('role', 'row');\n rootNode.classList.add(noDataRow._contentClassName);\n }\n }\n else {\n container.clear();\n }\n this._isShowingNoDataRow = shouldShow;\n }\n}\nCdkTable.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: CdkTable, deps: [{ token: i0.IterableDiffers }, { token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: 'role', attribute: true }, { token: i1.Directionality, optional: true }, { token: DOCUMENT }, { token: i2.Platform }, { token: _VIEW_REPEATER_STRATEGY }, { token: _COALESCED_STYLE_SCHEDULER }, { token: i3.ViewportRuler }, { token: STICKY_POSITIONING_LISTENER, optional: true, skipSelf: true }, { token: i0.NgZone, optional: true }], target: i0.ɵɵFactoryTarget.Component });\nCdkTable.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"15.1.0\", type: CdkTable, selector: \"cdk-table, table[cdk-table]\", inputs: { trackBy: \"trackBy\", dataSource: \"dataSource\", multiTemplateDataRows: \"multiTemplateDataRows\", fixedLayout: \"fixedLayout\" }, outputs: { contentChanged: \"contentChanged\" }, host: { properties: { \"class.cdk-table-fixed-layout\": \"fixedLayout\" }, classAttribute: \"cdk-table\" }, providers: [\n { provide: CDK_TABLE, useExisting: CdkTable },\n { provide: _VIEW_REPEATER_STRATEGY, useClass: _DisposeViewRepeaterStrategy },\n { provide: _COALESCED_STYLE_SCHEDULER, useClass: _CoalescedStyleScheduler },\n // Prevent nested tables from seeing this table's StickyPositioningListener.\n { provide: STICKY_POSITIONING_LISTENER, useValue: null },\n ], queries: [{ propertyName: \"_noDataRow\", first: true, predicate: CdkNoDataRow, descendants: true }, { propertyName: \"_contentColumnDefs\", predicate: CdkColumnDef, descendants: true }, { propertyName: \"_contentRowDefs\", predicate: CdkRowDef, descendants: true }, { propertyName: \"_contentHeaderRowDefs\", predicate: CdkHeaderRowDef, descendants: true }, { propertyName: \"_contentFooterRowDefs\", predicate: CdkFooterRowDef, descendants: true }], viewQueries: [{ propertyName: \"_rowOutlet\", first: true, predicate: DataRowOutlet, descendants: true, static: true }, { propertyName: \"_headerRowOutlet\", first: true, predicate: HeaderRowOutlet, descendants: true, static: true }, { propertyName: \"_footerRowOutlet\", first: true, predicate: FooterRowOutlet, descendants: true, static: true }, { propertyName: \"_noDataRowOutlet\", first: true, predicate: NoDataRowOutlet, descendants: true, static: true }], exportAs: [\"cdkTable\"], ngImport: i0, template: \"\\n \\n \\n \\n \\n \\n \\n\", isInline: true, styles: [\".cdk-table-fixed-layout{table-layout:fixed}\"], dependencies: [{ kind: \"directive\", type: DataRowOutlet, selector: \"[rowOutlet]\" }, { kind: \"directive\", type: HeaderRowOutlet, selector: \"[headerRowOutlet]\" }, { kind: \"directive\", type: FooterRowOutlet, selector: \"[footerRowOutlet]\" }, { kind: \"directive\", type: NoDataRowOutlet, selector: \"[noDataRowOutlet]\" }], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: CdkTable, decorators: [{\n type: Component,\n args: [{ selector: 'cdk-table, table[cdk-table]', exportAs: 'cdkTable', template: CDK_TABLE_TEMPLATE, host: {\n 'class': 'cdk-table',\n '[class.cdk-table-fixed-layout]': 'fixedLayout',\n }, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.Default, providers: [\n { provide: CDK_TABLE, useExisting: CdkTable },\n { provide: _VIEW_REPEATER_STRATEGY, useClass: _DisposeViewRepeaterStrategy },\n { provide: _COALESCED_STYLE_SCHEDULER, useClass: _CoalescedStyleScheduler },\n // Prevent nested tables from seeing this table's StickyPositioningListener.\n { provide: STICKY_POSITIONING_LISTENER, useValue: null },\n ], styles: [\".cdk-table-fixed-layout{table-layout:fixed}\"] }]\n }], ctorParameters: function () { return [{ type: i0.IterableDiffers }, { type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: undefined, decorators: [{\n type: Attribute,\n args: ['role']\n }] }, { type: i1.Directionality, decorators: [{\n type: Optional\n }] }, { type: undefined, decorators: [{\n type: Inject,\n args: [DOCUMENT]\n }] }, { type: i2.Platform }, { type: undefined, decorators: [{\n type: Inject,\n args: [_VIEW_REPEATER_STRATEGY]\n }] }, { type: _CoalescedStyleScheduler, decorators: [{\n type: Inject,\n args: [_COALESCED_STYLE_SCHEDULER]\n }] }, { type: i3.ViewportRuler }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: SkipSelf\n }, {\n type: Inject,\n args: [STICKY_POSITIONING_LISTENER]\n }] }, { type: i0.NgZone, decorators: [{\n type: Optional\n }] }]; }, propDecorators: { trackBy: [{\n type: Input\n }], dataSource: [{\n type: Input\n }], multiTemplateDataRows: [{\n type: Input\n }], fixedLayout: [{\n type: Input\n }], contentChanged: [{\n type: Output\n }], _rowOutlet: [{\n type: ViewChild,\n args: [DataRowOutlet, { static: true }]\n }], _headerRowOutlet: [{\n type: ViewChild,\n args: [HeaderRowOutlet, { static: true }]\n }], _footerRowOutlet: [{\n type: ViewChild,\n args: [FooterRowOutlet, { static: true }]\n }], _noDataRowOutlet: [{\n type: ViewChild,\n args: [NoDataRowOutlet, { static: true }]\n }], _contentColumnDefs: [{\n type: ContentChildren,\n args: [CdkColumnDef, { descendants: true }]\n }], _contentRowDefs: [{\n type: ContentChildren,\n args: [CdkRowDef, { descendants: true }]\n }], _contentHeaderRowDefs: [{\n type: ContentChildren,\n args: [CdkHeaderRowDef, {\n descendants: true,\n }]\n }], _contentFooterRowDefs: [{\n type: ContentChildren,\n args: [CdkFooterRowDef, {\n descendants: true,\n }]\n }], _noDataRow: [{\n type: ContentChild,\n args: [CdkNoDataRow]\n }] } });\n/** Utility function that gets a merged list of the entries in an array and values of a Set. */\nfunction mergeArrayAndSet(array, set) {\n return array.concat(Array.from(set));\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Column that simply shows text content for the header and row cells. Assumes that the table\n * is using the native table implementation (`
`).\n *\n * By default, the name of this column will be the header text and data property accessor.\n * The header text can be overridden with the `headerText` input. Cell values can be overridden with\n * the `dataAccessor` input. Change the text justification to the start or end using the `justify`\n * input.\n */\nclass CdkTextColumn {\n /** Column name that should be used to reference this column. */\n get name() {\n return this._name;\n }\n set name(name) {\n this._name = name;\n // With Ivy, inputs can be initialized before static query results are\n // available. In that case, we defer the synchronization until \"ngOnInit\" fires.\n this._syncColumnDefName();\n }\n constructor(\n // `CdkTextColumn` is always requiring a table, but we just assert it manually\n // for better error reporting.\n // tslint:disable-next-line: lightweight-tokens\n _table, _options) {\n this._table = _table;\n this._options = _options;\n /** Alignment of the cell values. */\n this.justify = 'start';\n this._options = _options || {};\n }\n ngOnInit() {\n this._syncColumnDefName();\n if (this.headerText === undefined) {\n this.headerText = this._createDefaultHeaderText();\n }\n if (!this.dataAccessor) {\n this.dataAccessor =\n this._options.defaultDataAccessor || ((data, name) => data[name]);\n }\n if (this._table) {\n // Provide the cell and headerCell directly to the table with the static `ViewChild` query,\n // since the columnDef will not pick up its content by the time the table finishes checking\n // its content and initializing the rows.\n this.columnDef.cell = this.cell;\n this.columnDef.headerCell = this.headerCell;\n this._table.addColumnDef(this.columnDef);\n }\n else if (typeof ngDevMode === 'undefined' || ngDevMode) {\n throw getTableTextColumnMissingParentTableError();\n }\n }\n ngOnDestroy() {\n if (this._table) {\n this._table.removeColumnDef(this.columnDef);\n }\n }\n /**\n * Creates a default header text. Use the options' header text transformation function if one\n * has been provided. Otherwise simply capitalize the column name.\n */\n _createDefaultHeaderText() {\n const name = this.name;\n if (!name && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw getTableTextColumnMissingNameError();\n }\n if (this._options && this._options.defaultHeaderTextTransform) {\n return this._options.defaultHeaderTextTransform(name);\n }\n return name[0].toUpperCase() + name.slice(1);\n }\n /** Synchronizes the column definition name with the text column name. */\n _syncColumnDefName() {\n if (this.columnDef) {\n this.columnDef.name = this.name;\n }\n }\n}\nCdkTextColumn.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: CdkTextColumn, deps: [{ token: CdkTable, optional: true }, { token: TEXT_COLUMN_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Component });\nCdkTextColumn.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"15.1.0\", type: CdkTextColumn, selector: \"cdk-text-column\", inputs: { name: \"name\", headerText: \"headerText\", dataAccessor: \"dataAccessor\", justify: \"justify\" }, viewQueries: [{ propertyName: \"columnDef\", first: true, predicate: CdkColumnDef, descendants: true, static: true }, { propertyName: \"cell\", first: true, predicate: CdkCellDef, descendants: true, static: true }, { propertyName: \"headerCell\", first: true, predicate: CdkHeaderCellDef, descendants: true, static: true }], ngImport: i0, template: `\n \n \n \n \n `, isInline: true, dependencies: [{ kind: \"directive\", type: CdkCellDef, selector: \"[cdkCellDef]\" }, { kind: \"directive\", type: CdkHeaderCellDef, selector: \"[cdkHeaderCellDef]\" }, { kind: \"directive\", type: CdkColumnDef, selector: \"[cdkColumnDef]\", inputs: [\"sticky\", \"cdkColumnDef\", \"stickyEnd\"] }, { kind: \"directive\", type: CdkCell, selector: \"cdk-cell, td[cdk-cell]\" }, { kind: \"directive\", type: CdkHeaderCell, selector: \"cdk-header-cell, th[cdk-header-cell]\" }], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: CdkTextColumn, decorators: [{\n type: Component,\n args: [{\n selector: 'cdk-text-column',\n template: `\n \n \n \n \n `,\n encapsulation: ViewEncapsulation.None,\n // Change detection is intentionally not set to OnPush. This component's template will be provided\n // to the table to be inserted into its view. This is problematic when change detection runs since\n // the bindings in this template will be evaluated _after_ the table's view is evaluated, which\n // mean's the template in the table's view will not have the updated value (and in fact will cause\n // an ExpressionChangedAfterItHasBeenCheckedError).\n // tslint:disable-next-line:validate-decorators\n changeDetection: ChangeDetectionStrategy.Default,\n }]\n }], ctorParameters: function () { return [{ type: CdkTable, decorators: [{\n type: Optional\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [TEXT_COLUMN_OPTIONS]\n }] }]; }, propDecorators: { name: [{\n type: Input\n }], headerText: [{\n type: Input\n }], dataAccessor: [{\n type: Input\n }], justify: [{\n type: Input\n }], columnDef: [{\n type: ViewChild,\n args: [CdkColumnDef, { static: true }]\n }], cell: [{\n type: ViewChild,\n args: [CdkCellDef, { static: true }]\n }], headerCell: [{\n type: ViewChild,\n args: [CdkHeaderCellDef, { static: true }]\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nconst EXPORTED_DECLARATIONS = [\n CdkTable,\n CdkRowDef,\n CdkCellDef,\n CdkCellOutlet,\n CdkHeaderCellDef,\n CdkFooterCellDef,\n CdkColumnDef,\n CdkCell,\n CdkRow,\n CdkHeaderCell,\n CdkFooterCell,\n CdkHeaderRow,\n CdkHeaderRowDef,\n CdkFooterRow,\n CdkFooterRowDef,\n DataRowOutlet,\n HeaderRowOutlet,\n FooterRowOutlet,\n CdkTextColumn,\n CdkNoDataRow,\n CdkRecycleRows,\n NoDataRowOutlet,\n];\nclass CdkTableModule {\n}\nCdkTableModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: CdkTableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nCdkTableModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"15.1.0\", ngImport: i0, type: CdkTableModule, declarations: [CdkTable,\n CdkRowDef,\n CdkCellDef,\n CdkCellOutlet,\n CdkHeaderCellDef,\n CdkFooterCellDef,\n CdkColumnDef,\n CdkCell,\n CdkRow,\n CdkHeaderCell,\n CdkFooterCell,\n CdkHeaderRow,\n CdkHeaderRowDef,\n CdkFooterRow,\n CdkFooterRowDef,\n DataRowOutlet,\n HeaderRowOutlet,\n FooterRowOutlet,\n CdkTextColumn,\n CdkNoDataRow,\n CdkRecycleRows,\n NoDataRowOutlet], imports: [ScrollingModule], exports: [CdkTable,\n CdkRowDef,\n CdkCellDef,\n CdkCellOutlet,\n CdkHeaderCellDef,\n CdkFooterCellDef,\n CdkColumnDef,\n CdkCell,\n CdkRow,\n CdkHeaderCell,\n CdkFooterCell,\n CdkHeaderRow,\n CdkHeaderRowDef,\n CdkFooterRow,\n CdkFooterRowDef,\n DataRowOutlet,\n HeaderRowOutlet,\n FooterRowOutlet,\n CdkTextColumn,\n CdkNoDataRow,\n CdkRecycleRows,\n NoDataRowOutlet] });\nCdkTableModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: CdkTableModule, imports: [ScrollingModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: CdkTableModule, decorators: [{\n type: NgModule,\n args: [{\n exports: EXPORTED_DECLARATIONS,\n declarations: EXPORTED_DECLARATIONS,\n imports: [ScrollingModule],\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { BaseCdkCell, BaseRowDef, CDK_ROW_TEMPLATE, CDK_TABLE, CDK_TABLE_TEMPLATE, CdkCell, CdkCellDef, CdkCellOutlet, CdkColumnDef, CdkFooterCell, CdkFooterCellDef, CdkFooterRow, CdkFooterRowDef, CdkHeaderCell, CdkHeaderCellDef, CdkHeaderRow, CdkHeaderRowDef, CdkNoDataRow, CdkRecycleRows, CdkRow, CdkRowDef, CdkTable, CdkTableModule, CdkTextColumn, DataRowOutlet, FooterRowOutlet, HeaderRowOutlet, NoDataRowOutlet, STICKY_DIRECTIONS, STICKY_POSITIONING_LISTENER, StickyStyler, TEXT_COLUMN_OPTIONS, _COALESCED_STYLE_SCHEDULER, _CoalescedStyleScheduler, _Schedule, mixinHasStickyInput };\n","import * as i0 from '@angular/core';\nimport { Directive, Component, ViewEncapsulation, ChangeDetectionStrategy, Input, NgModule } from '@angular/core';\nimport * as i1 from '@angular/cdk/table';\nimport { CdkTable, CDK_TABLE, _COALESCED_STYLE_SCHEDULER, _CoalescedStyleScheduler, STICKY_POSITIONING_LISTENER, CDK_TABLE_TEMPLATE, CdkCellDef, CdkHeaderCellDef, CdkFooterCellDef, CdkColumnDef, CdkHeaderCell, CdkFooterCell, CdkCell, CdkHeaderRowDef, CdkFooterRowDef, CdkRowDef, CdkHeaderRow, CDK_ROW_TEMPLATE, CdkFooterRow, CdkRow, CdkNoDataRow, CdkTextColumn, CdkTableModule } from '@angular/cdk/table';\nimport { _VIEW_REPEATER_STRATEGY, _RecycleViewRepeaterStrategy, _DisposeViewRepeaterStrategy, DataSource } from '@angular/cdk/collections';\nimport { MatCommonModule } from '@angular/material/core';\nimport { BehaviorSubject, Subject, merge, of, combineLatest } from 'rxjs';\nimport { _isNumberValue } from '@angular/cdk/coercion';\nimport { map } from 'rxjs/operators';\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Enables the recycle view repeater strategy, which reduces rendering latency. Not compatible with\n * tables that animate rows.\n */\nclass MatRecycleRows {\n}\nMatRecycleRows.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: MatRecycleRows, deps: [], target: i0.ɵɵFactoryTarget.Directive });\nMatRecycleRows.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"15.1.0\", type: MatRecycleRows, selector: \"mat-table[recycleRows], table[mat-table][recycleRows]\", providers: [{ provide: _VIEW_REPEATER_STRATEGY, useClass: _RecycleViewRepeaterStrategy }], ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: MatRecycleRows, decorators: [{\n type: Directive,\n args: [{\n selector: 'mat-table[recycleRows], table[mat-table][recycleRows]',\n providers: [{ provide: _VIEW_REPEATER_STRATEGY, useClass: _RecycleViewRepeaterStrategy }],\n }]\n }] });\nclass MatTable extends CdkTable {\n constructor() {\n super(...arguments);\n /** Overrides the sticky CSS class set by the `CdkTable`. */\n this.stickyCssClass = 'mat-mdc-table-sticky';\n /** Overrides the need to add position: sticky on every sticky cell element in `CdkTable`. */\n this.needsPositionStickyOnElement = false;\n }\n ngOnInit() {\n super.ngOnInit();\n // After ngOnInit, the `CdkTable` has created and inserted the table sections (thead, tbody,\n // tfoot). MDC requires the `mdc-data-table__content` class to be added to the body. Note that\n // this only applies to native tables, because we don't wrap the content of flexbox-based ones.\n if (this._isNativeHtmlTable) {\n const tbody = this._elementRef.nativeElement.querySelector('tbody');\n tbody.classList.add('mdc-data-table__content');\n }\n }\n}\nMatTable.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: MatTable, deps: null, target: i0.ɵɵFactoryTarget.Component });\nMatTable.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"15.1.0\", type: MatTable, selector: \"mat-table, table[mat-table]\", host: { properties: { \"class.mdc-table-fixed-layout\": \"fixedLayout\" }, classAttribute: \"mat-mdc-table mdc-data-table__table\" }, providers: [\n { provide: CdkTable, useExisting: MatTable },\n { provide: CDK_TABLE, useExisting: MatTable },\n { provide: _COALESCED_STYLE_SCHEDULER, useClass: _CoalescedStyleScheduler },\n // TODO(michaeljamesparsons) Abstract the view repeater strategy to a directive API so this code\n // is only included in the build if used.\n { provide: _VIEW_REPEATER_STRATEGY, useClass: _DisposeViewRepeaterStrategy },\n // Prevent nested tables from seeing this table's StickyPositioningListener.\n { provide: STICKY_POSITIONING_LISTENER, useValue: null },\n ], exportAs: [\"matTable\"], usesInheritance: true, ngImport: i0, template: \"\\n \\n \\n \\n \\n \\n \\n\", isInline: true, styles: [\".mdc-data-table{border-radius:var(--mdc-shape-medium, 4px);border-width:1px;border-style:solid}.mdc-data-table .mdc-data-table__header-cell:first-child{border-top-left-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table .mdc-data-table__header-cell:first-child,.mdc-data-table .mdc-data-table__header-cell:first-child[dir=rtl]{border-top-right-radius:var(--mdc-shape-medium, 4px);border-top-left-radius:0}.mdc-data-table .mdc-data-table__header-cell:last-child{border-top-right-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table .mdc-data-table__header-cell:last-child,.mdc-data-table .mdc-data-table__header-cell:last-child[dir=rtl]{border-top-left-radius:var(--mdc-shape-medium, 4px);border-top-right-radius:0}.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:first-child{border-bottom-left-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:first-child,.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:first-child[dir=rtl]{border-bottom-right-radius:var(--mdc-shape-medium, 4px);border-bottom-left-radius:0}.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:last-child{border-bottom-right-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:last-child,.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:last-child[dir=rtl]{border-bottom-left-radius:var(--mdc-shape-medium, 4px);border-bottom-right-radius:0}.mdc-data-table__cell,.mdc-data-table__header-cell{border-bottom-width:1px;border-bottom-style:solid}.mdc-data-table__pagination{border-top-width:1px;border-top-style:solid}.mdc-data-table__row:last-child .mdc-data-table__cell{border-bottom:none}.mdc-data-table__row{height:52px}.mdc-data-table__pagination{min-height:52px}.mdc-data-table__header-row{height:56px}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 16px 0 16px}.mdc-data-table__header-cell--checkbox,.mdc-data-table__cell--checkbox{padding-left:4px;padding-right:0}[dir=rtl] .mdc-data-table__header-cell--checkbox,[dir=rtl] .mdc-data-table__cell--checkbox,.mdc-data-table__header-cell--checkbox[dir=rtl],.mdc-data-table__cell--checkbox[dir=rtl]{padding-left:0;padding-right:4px}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell,.mdc-data-table__cell[dir=rtl]{text-align:right}.mdc-data-table__cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__cell--numeric,.mdc-data-table__cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__cell--checkbox{width:1px}.mdc-data-table__header-cell{box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mdc-data-table__header-cell,.mdc-data-table__header-cell[dir=rtl]{text-align:right}.mdc-data-table__header-cell--checkbox{width:1px}.mdc-data-table__header-cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__header-cell--numeric,.mdc-data-table__header-cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__sort-icon-button{width:28px;height:28px;padding:2px;transform:rotate(0.0001deg);margin-left:4px;margin-right:0;opacity:0}.mdc-data-table__sort-icon-button .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:28px;height:28px;margin-top:0px;margin-bottom:0px;margin-right:0px;margin-left:0px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:28px;left:50%;width:28px;transform:translate(-50%, -50%)}[dir=rtl] .mdc-data-table__sort-icon-button,.mdc-data-table__sort-icon-button[dir=rtl]{margin-left:0;margin-right:4px}.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button{margin-left:0;margin-right:4px}[dir=rtl] .mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button[dir=rtl]{margin-left:4px;margin-right:0}.mdc-data-table__header-cell--sorted-descending .mdc-data-table__sort-icon-button{transform:rotate(-180deg)}.mdc-data-table__sort-icon-button:focus,.mdc-data-table__header-cell:hover .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--sorted .mdc-data-table__sort-icon-button{opacity:1}.mdc-data-table__header-cell-wrapper{align-items:center;display:inline-flex;vertical-align:middle}.mdc-data-table__header-cell--with-sort{cursor:pointer}.mdc-data-table__sort-status-label{clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}.mdc-data-table--sticky-header .mdc-data-table__header-cell{position:sticky;top:0;z-index:1}.mdc-data-table{-webkit-overflow-scrolling:touch;display:inline-flex;flex-direction:column;box-sizing:border-box;position:relative}.mdc-data-table__table-container{-webkit-overflow-scrolling:touch;overflow-x:auto;width:100%}.mdc-data-table__table{min-width:100%;border:0;white-space:nowrap;border-spacing:0;table-layout:fixed}.mdc-data-table__header-cell{box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mdc-data-table__header-cell,.mdc-data-table__header-cell[dir=rtl]{text-align:right}.mdc-data-table__header-cell--checkbox{width:1px}.mdc-data-table__header-cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__header-cell--numeric,.mdc-data-table__header-cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__sort-icon-button{width:28px;height:28px;padding:2px;transform:rotate(0.0001deg);margin-left:4px;margin-right:0;opacity:0}.mdc-data-table__sort-icon-button .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:28px;height:28px;margin-top:0px;margin-bottom:0px;margin-right:0px;margin-left:0px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:28px;left:50%;width:28px;transform:translate(-50%, -50%)}[dir=rtl] .mdc-data-table__sort-icon-button,.mdc-data-table__sort-icon-button[dir=rtl]{margin-left:0;margin-right:4px}.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button{margin-left:0;margin-right:4px}[dir=rtl] .mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button[dir=rtl]{margin-left:4px;margin-right:0}.mdc-data-table__header-cell--sorted-descending .mdc-data-table__sort-icon-button{transform:rotate(-180deg)}.mdc-data-table__sort-icon-button:focus,.mdc-data-table__header-cell:hover .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--sorted .mdc-data-table__sort-icon-button{opacity:1}.mdc-data-table__header-cell-wrapper{align-items:center;display:inline-flex;vertical-align:middle}.mdc-data-table__header-cell--with-sort{cursor:pointer}.mdc-data-table__sort-status-label{clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell,.mdc-data-table__cell[dir=rtl]{text-align:right}.mdc-data-table__cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__cell--numeric,.mdc-data-table__cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__cell--checkbox{width:1px}.mdc-data-table__pagination{box-sizing:border-box;display:flex;justify-content:flex-end}.mdc-data-table__pagination-trailing{margin-left:4px;margin-right:0;align-items:center;display:flex;flex-wrap:wrap;justify-content:flex-end}[dir=rtl] .mdc-data-table__pagination-trailing,.mdc-data-table__pagination-trailing[dir=rtl]{margin-left:0;margin-right:4px}.mdc-data-table__pagination-navigation{align-items:center;display:flex}.mdc-data-table__pagination-button{margin-left:0;margin-right:4px}[dir=rtl] .mdc-data-table__pagination-button .mdc-button__icon,.mdc-data-table__pagination-button .mdc-button__icon[dir=rtl]{transform:rotate(180deg)}[dir=rtl] .mdc-data-table__pagination-button,.mdc-data-table__pagination-button[dir=rtl]{margin-left:4px;margin-right:0}.mdc-data-table__pagination-total{margin-left:14px;margin-right:36px;white-space:nowrap}[dir=rtl] .mdc-data-table__pagination-total,.mdc-data-table__pagination-total[dir=rtl]{margin-left:36px;margin-right:14px}.mdc-data-table__pagination-rows-per-page{margin-left:0;margin-right:22px;align-items:center;display:inline-flex}[dir=rtl] .mdc-data-table__pagination-rows-per-page,.mdc-data-table__pagination-rows-per-page[dir=rtl]{margin-left:22px;margin-right:0}.mdc-data-table__pagination-rows-per-page-label{margin-left:0;margin-right:12px;white-space:nowrap}[dir=rtl] .mdc-data-table__pagination-rows-per-page-label,.mdc-data-table__pagination-rows-per-page-label[dir=rtl]{margin-left:12px;margin-right:0}.mdc-data-table__pagination-rows-per-page-select{min-width:var(--mdc-menu-min-width, 80px);margin:8px 0}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor{width:100%;min-width:80px}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor{height:36px}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-floating-label--float-above{font-size:.75rem}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-data-table__pagination-rows-per-page-select .mdc-select__dropdown-icon{width:20px;height:20px}.mdc-data-table__pagination-rows-per-page-select.mdc-select--outlined .mdc-select__anchor :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 56px)}.mdc-data-table__pagination-rows-per-page-select .mdc-list-item.mdc-list-item--with-one-line{height:36px}.mdc-data-table__progress-indicator{display:none;position:absolute;width:100%}.mdc-data-table--in-progress .mdc-data-table__progress-indicator{display:block}.mdc-data-table__scrim{background-color:var(--mdc-theme-surface, #fff);height:100%;opacity:.32;position:absolute;top:0;width:100%}mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}.mat-mdc-table-sticky{position:sticky !important}.mat-mdc-table{table-layout:auto;white-space:normal}mat-row.mat-mdc-row,mat-header-row.mat-mdc-header-row,mat-footer-row.mat-mdc-footer-row{border-bottom:none}.mat-mdc-table tbody,.mat-mdc-table tfoot,.mat-mdc-table thead,.mat-mdc-cell,.mat-mdc-footer-cell,.mat-mdc-header-row,.mat-mdc-row,.mat-mdc-footer-row,.mat-mdc-table .mat-mdc-header-cell{background:inherit}.mat-mdc-table .mat-mdc-row:hover,.mat-mdc-table .mat-mdc-footer-row:hover{background-color:inherit}.mat-mdc-table mat-header-row.mat-mdc-header-row,.mat-mdc-table mat-row.mat-mdc-row,.mat-mdc-table mat-footer-row.mat-mdc-footer-cell{height:unset}mat-header-cell.mat-mdc-header-cell,mat-cell.mat-mdc-cell,mat-footer-cell.mat-mdc-footer-cell{align-self:stretch}\"], dependencies: [{ kind: \"directive\", type: i1.DataRowOutlet, selector: \"[rowOutlet]\" }, { kind: \"directive\", type: i1.HeaderRowOutlet, selector: \"[headerRowOutlet]\" }, { kind: \"directive\", type: i1.FooterRowOutlet, selector: \"[footerRowOutlet]\" }, { kind: \"directive\", type: i1.NoDataRowOutlet, selector: \"[noDataRowOutlet]\" }], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: MatTable, decorators: [{\n type: Component,\n args: [{ selector: 'mat-table, table[mat-table]', exportAs: 'matTable', template: CDK_TABLE_TEMPLATE, host: {\n 'class': 'mat-mdc-table mdc-data-table__table',\n '[class.mdc-table-fixed-layout]': 'fixedLayout',\n }, providers: [\n { provide: CdkTable, useExisting: MatTable },\n { provide: CDK_TABLE, useExisting: MatTable },\n { provide: _COALESCED_STYLE_SCHEDULER, useClass: _CoalescedStyleScheduler },\n // TODO(michaeljamesparsons) Abstract the view repeater strategy to a directive API so this code\n // is only included in the build if used.\n { provide: _VIEW_REPEATER_STRATEGY, useClass: _DisposeViewRepeaterStrategy },\n // Prevent nested tables from seeing this table's StickyPositioningListener.\n { provide: STICKY_POSITIONING_LISTENER, useValue: null },\n ], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.Default, styles: [\".mdc-data-table{border-radius:var(--mdc-shape-medium, 4px);border-width:1px;border-style:solid}.mdc-data-table .mdc-data-table__header-cell:first-child{border-top-left-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table .mdc-data-table__header-cell:first-child,.mdc-data-table .mdc-data-table__header-cell:first-child[dir=rtl]{border-top-right-radius:var(--mdc-shape-medium, 4px);border-top-left-radius:0}.mdc-data-table .mdc-data-table__header-cell:last-child{border-top-right-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table .mdc-data-table__header-cell:last-child,.mdc-data-table .mdc-data-table__header-cell:last-child[dir=rtl]{border-top-left-radius:var(--mdc-shape-medium, 4px);border-top-right-radius:0}.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:first-child{border-bottom-left-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:first-child,.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:first-child[dir=rtl]{border-bottom-right-radius:var(--mdc-shape-medium, 4px);border-bottom-left-radius:0}.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:last-child{border-bottom-right-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:last-child,.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:last-child[dir=rtl]{border-bottom-left-radius:var(--mdc-shape-medium, 4px);border-bottom-right-radius:0}.mdc-data-table__cell,.mdc-data-table__header-cell{border-bottom-width:1px;border-bottom-style:solid}.mdc-data-table__pagination{border-top-width:1px;border-top-style:solid}.mdc-data-table__row:last-child .mdc-data-table__cell{border-bottom:none}.mdc-data-table__row{height:52px}.mdc-data-table__pagination{min-height:52px}.mdc-data-table__header-row{height:56px}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 16px 0 16px}.mdc-data-table__header-cell--checkbox,.mdc-data-table__cell--checkbox{padding-left:4px;padding-right:0}[dir=rtl] .mdc-data-table__header-cell--checkbox,[dir=rtl] .mdc-data-table__cell--checkbox,.mdc-data-table__header-cell--checkbox[dir=rtl],.mdc-data-table__cell--checkbox[dir=rtl]{padding-left:0;padding-right:4px}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell,.mdc-data-table__cell[dir=rtl]{text-align:right}.mdc-data-table__cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__cell--numeric,.mdc-data-table__cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__cell--checkbox{width:1px}.mdc-data-table__header-cell{box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mdc-data-table__header-cell,.mdc-data-table__header-cell[dir=rtl]{text-align:right}.mdc-data-table__header-cell--checkbox{width:1px}.mdc-data-table__header-cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__header-cell--numeric,.mdc-data-table__header-cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__sort-icon-button{width:28px;height:28px;padding:2px;transform:rotate(0.0001deg);margin-left:4px;margin-right:0;opacity:0}.mdc-data-table__sort-icon-button .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:28px;height:28px;margin-top:0px;margin-bottom:0px;margin-right:0px;margin-left:0px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:28px;left:50%;width:28px;transform:translate(-50%, -50%)}[dir=rtl] .mdc-data-table__sort-icon-button,.mdc-data-table__sort-icon-button[dir=rtl]{margin-left:0;margin-right:4px}.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button{margin-left:0;margin-right:4px}[dir=rtl] .mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button[dir=rtl]{margin-left:4px;margin-right:0}.mdc-data-table__header-cell--sorted-descending .mdc-data-table__sort-icon-button{transform:rotate(-180deg)}.mdc-data-table__sort-icon-button:focus,.mdc-data-table__header-cell:hover .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--sorted .mdc-data-table__sort-icon-button{opacity:1}.mdc-data-table__header-cell-wrapper{align-items:center;display:inline-flex;vertical-align:middle}.mdc-data-table__header-cell--with-sort{cursor:pointer}.mdc-data-table__sort-status-label{clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}.mdc-data-table--sticky-header .mdc-data-table__header-cell{position:sticky;top:0;z-index:1}.mdc-data-table{-webkit-overflow-scrolling:touch;display:inline-flex;flex-direction:column;box-sizing:border-box;position:relative}.mdc-data-table__table-container{-webkit-overflow-scrolling:touch;overflow-x:auto;width:100%}.mdc-data-table__table{min-width:100%;border:0;white-space:nowrap;border-spacing:0;table-layout:fixed}.mdc-data-table__header-cell{box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mdc-data-table__header-cell,.mdc-data-table__header-cell[dir=rtl]{text-align:right}.mdc-data-table__header-cell--checkbox{width:1px}.mdc-data-table__header-cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__header-cell--numeric,.mdc-data-table__header-cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__sort-icon-button{width:28px;height:28px;padding:2px;transform:rotate(0.0001deg);margin-left:4px;margin-right:0;opacity:0}.mdc-data-table__sort-icon-button .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:28px;height:28px;margin-top:0px;margin-bottom:0px;margin-right:0px;margin-left:0px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:28px;left:50%;width:28px;transform:translate(-50%, -50%)}[dir=rtl] .mdc-data-table__sort-icon-button,.mdc-data-table__sort-icon-button[dir=rtl]{margin-left:0;margin-right:4px}.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button{margin-left:0;margin-right:4px}[dir=rtl] .mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button[dir=rtl]{margin-left:4px;margin-right:0}.mdc-data-table__header-cell--sorted-descending .mdc-data-table__sort-icon-button{transform:rotate(-180deg)}.mdc-data-table__sort-icon-button:focus,.mdc-data-table__header-cell:hover .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--sorted .mdc-data-table__sort-icon-button{opacity:1}.mdc-data-table__header-cell-wrapper{align-items:center;display:inline-flex;vertical-align:middle}.mdc-data-table__header-cell--with-sort{cursor:pointer}.mdc-data-table__sort-status-label{clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell,.mdc-data-table__cell[dir=rtl]{text-align:right}.mdc-data-table__cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__cell--numeric,.mdc-data-table__cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__cell--checkbox{width:1px}.mdc-data-table__pagination{box-sizing:border-box;display:flex;justify-content:flex-end}.mdc-data-table__pagination-trailing{margin-left:4px;margin-right:0;align-items:center;display:flex;flex-wrap:wrap;justify-content:flex-end}[dir=rtl] .mdc-data-table__pagination-trailing,.mdc-data-table__pagination-trailing[dir=rtl]{margin-left:0;margin-right:4px}.mdc-data-table__pagination-navigation{align-items:center;display:flex}.mdc-data-table__pagination-button{margin-left:0;margin-right:4px}[dir=rtl] .mdc-data-table__pagination-button .mdc-button__icon,.mdc-data-table__pagination-button .mdc-button__icon[dir=rtl]{transform:rotate(180deg)}[dir=rtl] .mdc-data-table__pagination-button,.mdc-data-table__pagination-button[dir=rtl]{margin-left:4px;margin-right:0}.mdc-data-table__pagination-total{margin-left:14px;margin-right:36px;white-space:nowrap}[dir=rtl] .mdc-data-table__pagination-total,.mdc-data-table__pagination-total[dir=rtl]{margin-left:36px;margin-right:14px}.mdc-data-table__pagination-rows-per-page{margin-left:0;margin-right:22px;align-items:center;display:inline-flex}[dir=rtl] .mdc-data-table__pagination-rows-per-page,.mdc-data-table__pagination-rows-per-page[dir=rtl]{margin-left:22px;margin-right:0}.mdc-data-table__pagination-rows-per-page-label{margin-left:0;margin-right:12px;white-space:nowrap}[dir=rtl] .mdc-data-table__pagination-rows-per-page-label,.mdc-data-table__pagination-rows-per-page-label[dir=rtl]{margin-left:12px;margin-right:0}.mdc-data-table__pagination-rows-per-page-select{min-width:var(--mdc-menu-min-width, 80px);margin:8px 0}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor{width:100%;min-width:80px}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor{height:36px}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-floating-label--float-above{font-size:.75rem}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-data-table__pagination-rows-per-page-select .mdc-select__dropdown-icon{width:20px;height:20px}.mdc-data-table__pagination-rows-per-page-select.mdc-select--outlined .mdc-select__anchor :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 56px)}.mdc-data-table__pagination-rows-per-page-select .mdc-list-item.mdc-list-item--with-one-line{height:36px}.mdc-data-table__progress-indicator{display:none;position:absolute;width:100%}.mdc-data-table--in-progress .mdc-data-table__progress-indicator{display:block}.mdc-data-table__scrim{background-color:var(--mdc-theme-surface, #fff);height:100%;opacity:.32;position:absolute;top:0;width:100%}mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}.mat-mdc-table-sticky{position:sticky !important}.mat-mdc-table{table-layout:auto;white-space:normal}mat-row.mat-mdc-row,mat-header-row.mat-mdc-header-row,mat-footer-row.mat-mdc-footer-row{border-bottom:none}.mat-mdc-table tbody,.mat-mdc-table tfoot,.mat-mdc-table thead,.mat-mdc-cell,.mat-mdc-footer-cell,.mat-mdc-header-row,.mat-mdc-row,.mat-mdc-footer-row,.mat-mdc-table .mat-mdc-header-cell{background:inherit}.mat-mdc-table .mat-mdc-row:hover,.mat-mdc-table .mat-mdc-footer-row:hover{background-color:inherit}.mat-mdc-table mat-header-row.mat-mdc-header-row,.mat-mdc-table mat-row.mat-mdc-row,.mat-mdc-table mat-footer-row.mat-mdc-footer-cell{height:unset}mat-header-cell.mat-mdc-header-cell,mat-cell.mat-mdc-cell,mat-footer-cell.mat-mdc-footer-cell{align-self:stretch}\"] }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Cell definition for the mat-table.\n * Captures the template of a column's data row cell as well as cell-specific properties.\n */\nclass MatCellDef extends CdkCellDef {\n}\nMatCellDef.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: MatCellDef, deps: null, target: i0.ɵɵFactoryTarget.Directive });\nMatCellDef.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"15.1.0\", type: MatCellDef, selector: \"[matCellDef]\", providers: [{ provide: CdkCellDef, useExisting: MatCellDef }], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: MatCellDef, decorators: [{\n type: Directive,\n args: [{\n selector: '[matCellDef]',\n providers: [{ provide: CdkCellDef, useExisting: MatCellDef }],\n }]\n }] });\n/**\n * Header cell definition for the mat-table.\n * Captures the template of a column's header cell and as well as cell-specific properties.\n */\nclass MatHeaderCellDef extends CdkHeaderCellDef {\n}\nMatHeaderCellDef.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: MatHeaderCellDef, deps: null, target: i0.ɵɵFactoryTarget.Directive });\nMatHeaderCellDef.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"15.1.0\", type: MatHeaderCellDef, selector: \"[matHeaderCellDef]\", providers: [{ provide: CdkHeaderCellDef, useExisting: MatHeaderCellDef }], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: MatHeaderCellDef, decorators: [{\n type: Directive,\n args: [{\n selector: '[matHeaderCellDef]',\n providers: [{ provide: CdkHeaderCellDef, useExisting: MatHeaderCellDef }],\n }]\n }] });\n/**\n * Footer cell definition for the mat-table.\n * Captures the template of a column's footer cell and as well as cell-specific properties.\n */\nclass MatFooterCellDef extends CdkFooterCellDef {\n}\nMatFooterCellDef.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: MatFooterCellDef, deps: null, target: i0.ɵɵFactoryTarget.Directive });\nMatFooterCellDef.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"15.1.0\", type: MatFooterCellDef, selector: \"[matFooterCellDef]\", providers: [{ provide: CdkFooterCellDef, useExisting: MatFooterCellDef }], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: MatFooterCellDef, decorators: [{\n type: Directive,\n args: [{\n selector: '[matFooterCellDef]',\n providers: [{ provide: CdkFooterCellDef, useExisting: MatFooterCellDef }],\n }]\n }] });\n/**\n * Column definition for the mat-table.\n * Defines a set of cells available for a table column.\n */\nclass MatColumnDef extends CdkColumnDef {\n /** Unique name for this column. */\n get name() {\n return this._name;\n }\n set name(name) {\n this._setNameInput(name);\n }\n /**\n * Add \"mat-column-\" prefix in addition to \"cdk-column-\" prefix.\n * In the future, this will only add \"mat-column-\" and columnCssClassName\n * will change from type string[] to string.\n * @docs-private\n */\n _updateColumnCssClassName() {\n super._updateColumnCssClassName();\n this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`);\n }\n}\nMatColumnDef.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: MatColumnDef, deps: null, target: i0.ɵɵFactoryTarget.Directive });\nMatColumnDef.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"15.1.0\", type: MatColumnDef, selector: \"[matColumnDef]\", inputs: { sticky: \"sticky\", name: [\"matColumnDef\", \"name\"] }, providers: [\n { provide: CdkColumnDef, useExisting: MatColumnDef },\n { provide: 'MAT_SORT_HEADER_COLUMN_DEF', useExisting: MatColumnDef },\n ], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: MatColumnDef, decorators: [{\n type: Directive,\n args: [{\n selector: '[matColumnDef]',\n inputs: ['sticky'],\n providers: [\n { provide: CdkColumnDef, useExisting: MatColumnDef },\n { provide: 'MAT_SORT_HEADER_COLUMN_DEF', useExisting: MatColumnDef },\n ],\n }]\n }], propDecorators: { name: [{\n type: Input,\n args: ['matColumnDef']\n }] } });\n/** Header cell template container that adds the right classes and role. */\nclass MatHeaderCell extends CdkHeaderCell {\n}\nMatHeaderCell.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: MatHeaderCell, deps: null, target: i0.ɵɵFactoryTarget.Directive });\nMatHeaderCell.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"15.1.0\", type: MatHeaderCell, selector: \"mat-header-cell, th[mat-header-cell]\", host: { attributes: { \"role\": \"columnheader\" }, classAttribute: \"mat-mdc-header-cell mdc-data-table__header-cell\" }, usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: MatHeaderCell, decorators: [{\n type: Directive,\n args: [{\n selector: 'mat-header-cell, th[mat-header-cell]',\n host: {\n 'class': 'mat-mdc-header-cell mdc-data-table__header-cell',\n 'role': 'columnheader',\n },\n }]\n }] });\n/** Footer cell template container that adds the right classes and role. */\nclass MatFooterCell extends CdkFooterCell {\n}\nMatFooterCell.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: MatFooterCell, deps: null, target: i0.ɵɵFactoryTarget.Directive });\nMatFooterCell.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"15.1.0\", type: MatFooterCell, selector: \"mat-footer-cell, td[mat-footer-cell]\", host: { classAttribute: \"mat-mdc-footer-cell mdc-data-table__cell\" }, usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: MatFooterCell, decorators: [{\n type: Directive,\n args: [{\n selector: 'mat-footer-cell, td[mat-footer-cell]',\n host: {\n 'class': 'mat-mdc-footer-cell mdc-data-table__cell',\n },\n }]\n }] });\n/** Cell template container that adds the right classes and role. */\nclass MatCell extends CdkCell {\n}\nMatCell.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: MatCell, deps: null, target: i0.ɵɵFactoryTarget.Directive });\nMatCell.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"15.1.0\", type: MatCell, selector: \"mat-cell, td[mat-cell]\", host: { classAttribute: \"mat-mdc-cell mdc-data-table__cell\" }, usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: MatCell, decorators: [{\n type: Directive,\n args: [{\n selector: 'mat-cell, td[mat-cell]',\n host: {\n 'class': 'mat-mdc-cell mdc-data-table__cell',\n },\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Header row definition for the mat-table.\n * Captures the header row's template and other header properties such as the columns to display.\n */\nclass MatHeaderRowDef extends CdkHeaderRowDef {\n}\nMatHeaderRowDef.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: MatHeaderRowDef, deps: null, target: i0.ɵɵFactoryTarget.Directive });\nMatHeaderRowDef.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"15.1.0\", type: MatHeaderRowDef, selector: \"[matHeaderRowDef]\", inputs: { columns: [\"matHeaderRowDef\", \"columns\"], sticky: [\"matHeaderRowDefSticky\", \"sticky\"] }, providers: [{ provide: CdkHeaderRowDef, useExisting: MatHeaderRowDef }], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: MatHeaderRowDef, decorators: [{\n type: Directive,\n args: [{\n selector: '[matHeaderRowDef]',\n providers: [{ provide: CdkHeaderRowDef, useExisting: MatHeaderRowDef }],\n inputs: ['columns: matHeaderRowDef', 'sticky: matHeaderRowDefSticky'],\n }]\n }] });\n/**\n * Footer row definition for the mat-table.\n * Captures the footer row's template and other footer properties such as the columns to display.\n */\nclass MatFooterRowDef extends CdkFooterRowDef {\n}\nMatFooterRowDef.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: MatFooterRowDef, deps: null, target: i0.ɵɵFactoryTarget.Directive });\nMatFooterRowDef.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"15.1.0\", type: MatFooterRowDef, selector: \"[matFooterRowDef]\", inputs: { columns: [\"matFooterRowDef\", \"columns\"], sticky: [\"matFooterRowDefSticky\", \"sticky\"] }, providers: [{ provide: CdkFooterRowDef, useExisting: MatFooterRowDef }], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: MatFooterRowDef, decorators: [{\n type: Directive,\n args: [{\n selector: '[matFooterRowDef]',\n providers: [{ provide: CdkFooterRowDef, useExisting: MatFooterRowDef }],\n inputs: ['columns: matFooterRowDef', 'sticky: matFooterRowDefSticky'],\n }]\n }] });\n/**\n * Data row definition for the mat-table.\n * Captures the data row's template and other properties such as the columns to display and\n * a when predicate that describes when this row should be used.\n */\nclass MatRowDef extends CdkRowDef {\n}\nMatRowDef.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: MatRowDef, deps: null, target: i0.ɵɵFactoryTarget.Directive });\nMatRowDef.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"15.1.0\", type: MatRowDef, selector: \"[matRowDef]\", inputs: { columns: [\"matRowDefColumns\", \"columns\"], when: [\"matRowDefWhen\", \"when\"] }, providers: [{ provide: CdkRowDef, useExisting: MatRowDef }], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: MatRowDef, decorators: [{\n type: Directive,\n args: [{\n selector: '[matRowDef]',\n providers: [{ provide: CdkRowDef, useExisting: MatRowDef }],\n inputs: ['columns: matRowDefColumns', 'when: matRowDefWhen'],\n }]\n }] });\n/** Footer template container that contains the cell outlet. Adds the right class and role. */\nclass MatHeaderRow extends CdkHeaderRow {\n}\nMatHeaderRow.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: MatHeaderRow, deps: null, target: i0.ɵɵFactoryTarget.Component });\nMatHeaderRow.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"15.1.0\", type: MatHeaderRow, selector: \"mat-header-row, tr[mat-header-row]\", host: { attributes: { \"role\": \"row\" }, classAttribute: \"mat-mdc-header-row mdc-data-table__header-row\" }, providers: [{ provide: CdkHeaderRow, useExisting: MatHeaderRow }], exportAs: [\"matHeaderRow\"], usesInheritance: true, ngImport: i0, template: \"\", isInline: true, dependencies: [{ kind: \"directive\", type: i1.CdkCellOutlet, selector: \"[cdkCellOutlet]\" }], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: MatHeaderRow, decorators: [{\n type: Component,\n args: [{\n selector: 'mat-header-row, tr[mat-header-row]',\n template: CDK_ROW_TEMPLATE,\n host: {\n 'class': 'mat-mdc-header-row mdc-data-table__header-row',\n 'role': 'row',\n },\n // See note on CdkTable for explanation on why this uses the default change detection strategy.\n // tslint:disable-next-line:validate-decorators\n changeDetection: ChangeDetectionStrategy.Default,\n encapsulation: ViewEncapsulation.None,\n exportAs: 'matHeaderRow',\n providers: [{ provide: CdkHeaderRow, useExisting: MatHeaderRow }],\n }]\n }] });\n/** Footer template container that contains the cell outlet. Adds the right class and role. */\nclass MatFooterRow extends CdkFooterRow {\n}\nMatFooterRow.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: MatFooterRow, deps: null, target: i0.ɵɵFactoryTarget.Component });\nMatFooterRow.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"15.1.0\", type: MatFooterRow, selector: \"mat-footer-row, tr[mat-footer-row]\", host: { attributes: { \"role\": \"row\" }, classAttribute: \"mat-mdc-footer-row mdc-data-table__row\" }, providers: [{ provide: CdkFooterRow, useExisting: MatFooterRow }], exportAs: [\"matFooterRow\"], usesInheritance: true, ngImport: i0, template: \"\", isInline: true, dependencies: [{ kind: \"directive\", type: i1.CdkCellOutlet, selector: \"[cdkCellOutlet]\" }], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: MatFooterRow, decorators: [{\n type: Component,\n args: [{\n selector: 'mat-footer-row, tr[mat-footer-row]',\n template: CDK_ROW_TEMPLATE,\n host: {\n 'class': 'mat-mdc-footer-row mdc-data-table__row',\n 'role': 'row',\n },\n // See note on CdkTable for explanation on why this uses the default change detection strategy.\n // tslint:disable-next-line:validate-decorators\n changeDetection: ChangeDetectionStrategy.Default,\n encapsulation: ViewEncapsulation.None,\n exportAs: 'matFooterRow',\n providers: [{ provide: CdkFooterRow, useExisting: MatFooterRow }],\n }]\n }] });\n/** Data row template container that contains the cell outlet. Adds the right class and role. */\nclass MatRow extends CdkRow {\n}\nMatRow.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: MatRow, deps: null, target: i0.ɵɵFactoryTarget.Component });\nMatRow.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"15.1.0\", type: MatRow, selector: \"mat-row, tr[mat-row]\", host: { attributes: { \"role\": \"row\" }, classAttribute: \"mat-mdc-row mdc-data-table__row\" }, providers: [{ provide: CdkRow, useExisting: MatRow }], exportAs: [\"matRow\"], usesInheritance: true, ngImport: i0, template: \"\", isInline: true, dependencies: [{ kind: \"directive\", type: i1.CdkCellOutlet, selector: \"[cdkCellOutlet]\" }], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: MatRow, decorators: [{\n type: Component,\n args: [{\n selector: 'mat-row, tr[mat-row]',\n template: CDK_ROW_TEMPLATE,\n host: {\n 'class': 'mat-mdc-row mdc-data-table__row',\n 'role': 'row',\n },\n // See note on CdkTable for explanation on why this uses the default change detection strategy.\n // tslint:disable-next-line:validate-decorators\n changeDetection: ChangeDetectionStrategy.Default,\n encapsulation: ViewEncapsulation.None,\n exportAs: 'matRow',\n providers: [{ provide: CdkRow, useExisting: MatRow }],\n }]\n }] });\n/** Row that can be used to display a message when no data is shown in the table. */\nclass MatNoDataRow extends CdkNoDataRow {\n constructor() {\n super(...arguments);\n this._contentClassName = 'mat-mdc-no-data-row';\n }\n}\nMatNoDataRow.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: MatNoDataRow, deps: null, target: i0.ɵɵFactoryTarget.Directive });\nMatNoDataRow.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"15.1.0\", type: MatNoDataRow, selector: \"ng-template[matNoDataRow]\", providers: [{ provide: CdkNoDataRow, useExisting: MatNoDataRow }], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: MatNoDataRow, decorators: [{\n type: Directive,\n args: [{\n selector: 'ng-template[matNoDataRow]',\n providers: [{ provide: CdkNoDataRow, useExisting: MatNoDataRow }],\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Column that simply shows text content for the header and row cells. Assumes that the table\n * is using the native table implementation (`
\n {{headerText}}\n \n {{dataAccessor(data, name)}}\n \n {{headerText}}\n \n {{dataAccessor(data, name)}}\n
`).\n *\n * By default, the name of this column will be the header text and data property accessor.\n * The header text can be overridden with the `headerText` input. Cell values can be overridden with\n * the `dataAccessor` input. Change the text justification to the start or end using the `justify`\n * input.\n */\nclass MatTextColumn extends CdkTextColumn {\n}\nMatTextColumn.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: MatTextColumn, deps: null, target: i0.ɵɵFactoryTarget.Component });\nMatTextColumn.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"15.1.0\", type: MatTextColumn, selector: \"mat-text-column\", usesInheritance: true, ngImport: i0, template: `\n \n \n \n \n `, isInline: true, dependencies: [{ kind: \"directive\", type: MatHeaderCellDef, selector: \"[matHeaderCellDef]\" }, { kind: \"directive\", type: MatColumnDef, selector: \"[matColumnDef]\", inputs: [\"sticky\", \"matColumnDef\"] }, { kind: \"directive\", type: MatCellDef, selector: \"[matCellDef]\" }, { kind: \"directive\", type: MatHeaderCell, selector: \"mat-header-cell, th[mat-header-cell]\" }, { kind: \"directive\", type: MatCell, selector: \"mat-cell, td[mat-cell]\" }], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: MatTextColumn, decorators: [{\n type: Component,\n args: [{\n selector: 'mat-text-column',\n template: `\n \n \n \n \n `,\n encapsulation: ViewEncapsulation.None,\n // Change detection is intentionally not set to OnPush. This component's template will be provided\n // to the table to be inserted into its view. This is problematic when change detection runs since\n // the bindings in this template will be evaluated _after_ the table's view is evaluated, which\n // mean's the template in the table's view will not have the updated value (and in fact will cause\n // an ExpressionChangedAfterItHasBeenCheckedError).\n // tslint:disable-next-line:validate-decorators\n changeDetection: ChangeDetectionStrategy.Default,\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nconst EXPORTED_DECLARATIONS = [\n // Table\n MatTable,\n MatRecycleRows,\n // Template defs\n MatHeaderCellDef,\n MatHeaderRowDef,\n MatColumnDef,\n MatCellDef,\n MatRowDef,\n MatFooterCellDef,\n MatFooterRowDef,\n // Cell directives\n MatHeaderCell,\n MatCell,\n MatFooterCell,\n // Row directives\n MatHeaderRow,\n MatRow,\n MatFooterRow,\n MatNoDataRow,\n MatTextColumn,\n];\nclass MatTableModule {\n}\nMatTableModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: MatTableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nMatTableModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"15.1.0\", ngImport: i0, type: MatTableModule, declarations: [\n // Table\n MatTable,\n MatRecycleRows,\n // Template defs\n MatHeaderCellDef,\n MatHeaderRowDef,\n MatColumnDef,\n MatCellDef,\n MatRowDef,\n MatFooterCellDef,\n MatFooterRowDef,\n // Cell directives\n MatHeaderCell,\n MatCell,\n MatFooterCell,\n // Row directives\n MatHeaderRow,\n MatRow,\n MatFooterRow,\n MatNoDataRow,\n MatTextColumn], imports: [MatCommonModule, CdkTableModule], exports: [MatCommonModule, \n // Table\n MatTable,\n MatRecycleRows,\n // Template defs\n MatHeaderCellDef,\n MatHeaderRowDef,\n MatColumnDef,\n MatCellDef,\n MatRowDef,\n MatFooterCellDef,\n MatFooterRowDef,\n // Cell directives\n MatHeaderCell,\n MatCell,\n MatFooterCell,\n // Row directives\n MatHeaderRow,\n MatRow,\n MatFooterRow,\n MatNoDataRow,\n MatTextColumn] });\nMatTableModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: MatTableModule, imports: [MatCommonModule, CdkTableModule, MatCommonModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"15.1.0\", ngImport: i0, type: MatTableModule, decorators: [{\n type: NgModule,\n args: [{\n imports: [MatCommonModule, CdkTableModule],\n exports: [MatCommonModule, EXPORTED_DECLARATIONS],\n declarations: EXPORTED_DECLARATIONS,\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Corresponds to `Number.MAX_SAFE_INTEGER`. Moved out into a variable here due to\n * flaky browser support and the value not being defined in Closure's typings.\n */\nconst MAX_SAFE_INTEGER = 9007199254740991;\n/** Shared base class with MDC-based implementation. */\nclass _MatTableDataSource extends DataSource {\n /** Array of data that should be rendered by the table, where each object represents one row. */\n get data() {\n return this._data.value;\n }\n set data(data) {\n data = Array.isArray(data) ? data : [];\n this._data.next(data);\n // Normally the `filteredData` is updated by the re-render\n // subscription, but that won't happen if it's inactive.\n if (!this._renderChangesSubscription) {\n this._filterData(data);\n }\n }\n /**\n * Filter term that should be used to filter out objects from the data array. To override how\n * data objects match to this filter string, provide a custom function for filterPredicate.\n */\n get filter() {\n return this._filter.value;\n }\n set filter(filter) {\n this._filter.next(filter);\n // Normally the `filteredData` is updated by the re-render\n // subscription, but that won't happen if it's inactive.\n if (!this._renderChangesSubscription) {\n this._filterData(this.data);\n }\n }\n /**\n * Instance of the MatSort directive used by the table to control its sorting. Sort changes\n * emitted by the MatSort will trigger an update to the table's rendered data.\n */\n get sort() {\n return this._sort;\n }\n set sort(sort) {\n this._sort = sort;\n this._updateChangeSubscription();\n }\n /**\n * Instance of the paginator component used by the table to control what page of the data is\n * displayed. Page changes emitted by the paginator will trigger an update to the\n * table's rendered data.\n *\n * Note that the data source uses the paginator's properties to calculate which page of data\n * should be displayed. If the paginator receives its properties as template inputs,\n * e.g. `[pageLength]=100` or `[pageIndex]=1`, then be sure that the paginator's view has been\n * initialized before assigning it to this data source.\n */\n get paginator() {\n return this._paginator;\n }\n set paginator(paginator) {\n this._paginator = paginator;\n this._updateChangeSubscription();\n }\n constructor(initialData = []) {\n super();\n /** Stream emitting render data to the table (depends on ordered data changes). */\n this._renderData = new BehaviorSubject([]);\n /** Stream that emits when a new filter string is set on the data source. */\n this._filter = new BehaviorSubject('');\n /** Used to react to internal changes of the paginator that are made by the data source itself. */\n this._internalPageChanges = new Subject();\n /**\n * Subscription to the changes that should trigger an update to the table's rendered rows, such\n * as filtering, sorting, pagination, or base data changes.\n */\n this._renderChangesSubscription = null;\n /**\n * Data accessor function that is used for accessing data properties for sorting through\n * the default sortData function.\n * This default function assumes that the sort header IDs (which defaults to the column name)\n * matches the data's properties (e.g. column Xyz represents data['Xyz']).\n * May be set to a custom function for different behavior.\n * @param data Data object that is being accessed.\n * @param sortHeaderId The name of the column that represents the data.\n */\n this.sortingDataAccessor = (data, sortHeaderId) => {\n const value = data[sortHeaderId];\n if (_isNumberValue(value)) {\n const numberValue = Number(value);\n // Numbers beyond `MAX_SAFE_INTEGER` can't be compared reliably so we\n // leave them as strings. For more info: https://goo.gl/y5vbSg\n return numberValue < MAX_SAFE_INTEGER ? numberValue : value;\n }\n return value;\n };\n /**\n * Gets a sorted copy of the data array based on the state of the MatSort. Called\n * after changes are made to the filtered data or when sort changes are emitted from MatSort.\n * By default, the function retrieves the active sort and its direction and compares data\n * by retrieving data using the sortingDataAccessor. May be overridden for a custom implementation\n * of data ordering.\n * @param data The array of data that should be sorted.\n * @param sort The connected MatSort that holds the current sort state.\n */\n this.sortData = (data, sort) => {\n const active = sort.active;\n const direction = sort.direction;\n if (!active || direction == '') {\n return data;\n }\n return data.sort((a, b) => {\n let valueA = this.sortingDataAccessor(a, active);\n let valueB = this.sortingDataAccessor(b, active);\n // If there are data in the column that can be converted to a number,\n // it must be ensured that the rest of the data\n // is of the same type so as not to order incorrectly.\n const valueAType = typeof valueA;\n const valueBType = typeof valueB;\n if (valueAType !== valueBType) {\n if (valueAType === 'number') {\n valueA += '';\n }\n if (valueBType === 'number') {\n valueB += '';\n }\n }\n // If both valueA and valueB exist (truthy), then compare the two. Otherwise, check if\n // one value exists while the other doesn't. In this case, existing value should come last.\n // This avoids inconsistent results when comparing values to undefined/null.\n // If neither value exists, return 0 (equal).\n let comparatorResult = 0;\n if (valueA != null && valueB != null) {\n // Check if one value is greater than the other; if equal, comparatorResult should remain 0.\n if (valueA > valueB) {\n comparatorResult = 1;\n }\n else if (valueA < valueB) {\n comparatorResult = -1;\n }\n }\n else if (valueA != null) {\n comparatorResult = 1;\n }\n else if (valueB != null) {\n comparatorResult = -1;\n }\n return comparatorResult * (direction == 'asc' ? 1 : -1);\n });\n };\n /**\n * Checks if a data object matches the data source's filter string. By default, each data object\n * is converted to a string of its properties and returns true if the filter has\n * at least one occurrence in that string. By default, the filter string has its whitespace\n * trimmed and the match is case-insensitive. May be overridden for a custom implementation of\n * filter matching.\n * @param data Data object used to check against the filter.\n * @param filter Filter string that has been set on the data source.\n * @returns Whether the filter matches against the data\n */\n this.filterPredicate = (data, filter) => {\n // Transform the data into a lowercase string of all property values.\n const dataStr = Object.keys(data)\n .reduce((currentTerm, key) => {\n // Use an obscure Unicode character to delimit the words in the concatenated string.\n // This avoids matches where the values of two columns combined will match the user's query\n // (e.g. `Flute` and `Stop` will match `Test`). The character is intended to be something\n // that has a very low chance of being typed in by somebody in a text field. This one in\n // particular is \"White up-pointing triangle with dot\" from\n // https://en.wikipedia.org/wiki/List_of_Unicode_characters\n return currentTerm + data[key] + '◬';\n }, '')\n .toLowerCase();\n // Transform the filter by converting it to lowercase and removing whitespace.\n const transformedFilter = filter.trim().toLowerCase();\n return dataStr.indexOf(transformedFilter) != -1;\n };\n this._data = new BehaviorSubject(initialData);\n this._updateChangeSubscription();\n }\n /**\n * Subscribe to changes that should trigger an update to the table's rendered rows. When the\n * changes occur, process the current state of the filter, sort, and pagination along with\n * the provided base data and send it to the table for rendering.\n */\n _updateChangeSubscription() {\n // Sorting and/or pagination should be watched if sort and/or paginator are provided.\n // The events should emit whenever the component emits a change or initializes, or if no\n // component is provided, a stream with just a null event should be provided.\n // The `sortChange` and `pageChange` acts as a signal to the combineLatests below so that the\n // pipeline can progress to the next step. Note that the value from these streams are not used,\n // they purely act as a signal to progress in the pipeline.\n const sortChange = this._sort\n ? merge(this._sort.sortChange, this._sort.initialized)\n : of(null);\n const pageChange = this._paginator\n ? merge(this._paginator.page, this._internalPageChanges, this._paginator.initialized)\n : of(null);\n const dataStream = this._data;\n // Watch for base data or filter changes to provide a filtered set of data.\n const filteredData = combineLatest([dataStream, this._filter]).pipe(map(([data]) => this._filterData(data)));\n // Watch for filtered data or sort changes to provide an ordered set of data.\n const orderedData = combineLatest([filteredData, sortChange]).pipe(map(([data]) => this._orderData(data)));\n // Watch for ordered data or page changes to provide a paged set of data.\n const paginatedData = combineLatest([orderedData, pageChange]).pipe(map(([data]) => this._pageData(data)));\n // Watched for paged data changes and send the result to the table to render.\n this._renderChangesSubscription?.unsubscribe();\n this._renderChangesSubscription = paginatedData.subscribe(data => this._renderData.next(data));\n }\n /**\n * Returns a filtered data array where each filter object contains the filter string within\n * the result of the filterTermAccessor function. If no filter is set, returns the data array\n * as provided.\n */\n _filterData(data) {\n // If there is a filter string, filter out data that does not contain it.\n // Each data object is converted to a string using the function defined by filterTermAccessor.\n // May be overridden for customization.\n this.filteredData =\n this.filter == null || this.filter === ''\n ? data\n : data.filter(obj => this.filterPredicate(obj, this.filter));\n if (this.paginator) {\n this._updatePaginator(this.filteredData.length);\n }\n return this.filteredData;\n }\n /**\n * Returns a sorted copy of the data if MatSort has a sort applied, otherwise just returns the\n * data array as provided. Uses the default data accessor for data lookup, unless a\n * sortDataAccessor function is defined.\n */\n _orderData(data) {\n // If there is no active sort or direction, return the data without trying to sort.\n if (!this.sort) {\n return data;\n }\n return this.sortData(data.slice(), this.sort);\n }\n /**\n * Returns a paged slice of the provided data array according to the provided paginator's page\n * index and length. If there is no paginator provided, returns the data array as provided.\n */\n _pageData(data) {\n if (!this.paginator) {\n return data;\n }\n const startIndex = this.paginator.pageIndex * this.paginator.pageSize;\n return data.slice(startIndex, startIndex + this.paginator.pageSize);\n }\n /**\n * Updates the paginator to reflect the length of the filtered data, and makes sure that the page\n * index does not exceed the paginator's last page. Values are changed in a resolved promise to\n * guard against making property changes within a round of change detection.\n */\n _updatePaginator(filteredDataLength) {\n Promise.resolve().then(() => {\n const paginator = this.paginator;\n if (!paginator) {\n return;\n }\n paginator.length = filteredDataLength;\n // If the page index is set beyond the page, reduce it to the last page.\n if (paginator.pageIndex > 0) {\n const lastPageIndex = Math.ceil(paginator.length / paginator.pageSize) - 1 || 0;\n const newPageIndex = Math.min(paginator.pageIndex, lastPageIndex);\n if (newPageIndex !== paginator.pageIndex) {\n paginator.pageIndex = newPageIndex;\n // Since the paginator only emits after user-generated changes,\n // we need our own stream so we know to should re-render the data.\n this._internalPageChanges.next();\n }\n }\n });\n }\n /**\n * Used by the MatTable. Called when it connects to the data source.\n * @docs-private\n */\n connect() {\n if (!this._renderChangesSubscription) {\n this._updateChangeSubscription();\n }\n return this._renderData;\n }\n /**\n * Used by the MatTable. Called when it disconnects from the data source.\n * @docs-private\n */\n disconnect() {\n this._renderChangesSubscription?.unsubscribe();\n this._renderChangesSubscription = null;\n }\n}\n/**\n * Data source that accepts a client-side data array and includes native support of filtering,\n * sorting (using MatSort), and pagination (using MatPaginator).\n *\n * Allows for sort customization by overriding sortingDataAccessor, which defines how data\n * properties are accessed. Also allows for filter customization by overriding filterTermAccessor,\n * which defines how row data is converted to a string for filter matching.\n *\n * **Note:** This class is meant to be a simple data source to help you get started. As such\n * it isn't equipped to handle some more advanced cases like robust i18n support or server-side\n * interactions. If your app needs to support more advanced use cases, consider implementing your\n * own `DataSource`.\n */\nclass MatTableDataSource extends _MatTableDataSource {\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { MatCell, MatCellDef, MatColumnDef, MatFooterCell, MatFooterCellDef, MatFooterRow, MatFooterRowDef, MatHeaderCell, MatHeaderCellDef, MatHeaderRow, MatHeaderRowDef, MatNoDataRow, MatRecycleRows, MatRow, MatRowDef, MatTable, MatTableDataSource, MatTableModule, MatTextColumn, _MatTableDataSource };\n"],"names":["RouterModule","OrdersComponent","ManageProductsComponent","EditProductComponent","routes","path","component","AdminRoutingModule","forChild","imports","exports","CommonModule","ReactiveFormsModule","MatCardModule","MatInputModule","MatProgressSpinnerModule","MatTableModule","OrdersService","MatButtonModule","FilePickerModule","ManageProductsService","AdminModule","declarations","Validators","BehaviorSubject","Subject","finalize","takeUntil","i0","constructor","activatedRoute","fb","notificationService","productsService","router","form","group","title","required","description","price","count","countCtrl","get","descriptionCtrl","priceCtrl","titleCtrl","ngOnInit","productId","snapshot","paramMap","loaded$","next","getProductById","pipe","onDestroy$","subscribe","product","patchValue","id","ngOnDestroy","complete","editProduct","value","editProduct$","createNewProduct","requestInProgress","navigate","relativeTo","error","console","warn","showError","selectors","decls","vars","consts","template","manageProductsService","cdr","products$","getProducts","onUploadCSV","selectedFile","uploadProductsCSV","markForCheck","ctx","EMPTY","ApiService","switchMap","injector","file","endpointEnabled","getPreSignedUrl","name","url","http","put","headers","fileName","getUrl","params","factory","ordersService","orders$","getOrders","of","EventEmitter","FilePickerComponent","selectFile","files","length","removeFile","item","includes","type","fileChange","emit","inputs","outputs","uploadClick","i1","coerceBooleanProperty","_VIEW_REPEATER_STRATEGY","_RecycleViewRepeaterStrategy","isDataSource","_DisposeViewRepeaterStrategy","DataSource","i2","i3","ScrollingModule","DOCUMENT","InjectionToken","Directive","Inject","Optional","Input","ContentChild","Injectable","Component","ChangeDetectionStrategy","ViewEncapsulation","EmbeddedViewRef","NgZone","Attribute","SkipSelf","Output","ViewChild","ContentChildren","NgModule","from","isObservable","take","mixinHasStickyInput","base","sticky","_sticky","v","prevValue","_hasStickyChanged","hasStickyChanged","resetStickyChanged","args","CDK_TABLE","TEXT_COLUMN_OPTIONS","CdkCellDef","ɵfac","TemplateRef","ɵdir","selector","CdkHeaderCellDef","CdkFooterCellDef","CdkColumnDefBase","_CdkColumnDefBase","CdkColumnDef","_name","_setNameInput","stickyEnd","_stickyEnd","_table","_updateColumnCssClassName","_columnCssClassName","cssClassFriendlyName","replace","provide","useExisting","providers","undefined","decorators","cell","headerCell","footerCell","BaseCdkCell","columnDef","elementRef","nativeElement","classList","add","CdkHeaderCell","ElementRef","host","CdkFooterCell","_elementRef","nodeType","tableRole","getAttribute","role","setAttribute","CdkCell","_Schedule","tasks","endTasks","_COALESCED_STYLE_SCHEDULER","_CoalescedStyleScheduler","_ngZone","_currentSchedule","_destroyed","schedule","task","_createScheduleIfNeeded","push","scheduleEnd","_getScheduleObservable","isStable","Promise","resolve","onStable","ɵprov","CDK_ROW_TEMPLATE","BaseRowDef","_differs","ngOnChanges","changes","_columnsDiffer","columns","currentValue","find","create","diff","getColumnsDiff","extractCellTemplate","column","CdkHeaderRowDef","CdkFooterRowDef","IterableDiffers","CdkHeaderRowDefBase","_CdkHeaderRowDefBase","CdkFooterRowDefBase","_CdkFooterRowDefBase","CdkRowDef","CdkCellOutlet","_viewContainer","mostRecentCellOutlet","ViewContainerRef","CdkHeaderRow","ɵcmp","changeDetection","Default","encapsulation","None","CdkFooterRow","CdkRow","CdkNoDataRow","templateRef","_contentClassName","STICKY_DIRECTIONS","StickyStyler","_isNativeHtmlTable","_stickCellCss","direction","_coalescedStyleScheduler","_isBrowser","_needsPositionStickyOnElement","_positionListener","_cachedCellWidths","_borderCellCss","clearStickyPositioning","rows","stickyDirections","elementsToClear","row","ELEMENT_NODE","i","children","element","_removeStickyStyle","updateStickyColumns","stickyStartStates","stickyEndStates","recalculateCellWidths","some","state","stickyColumnsUpdated","sizes","stickyEndColumnsUpdated","firstRow","numCells","cellWidths","_getCellWidths","startPositions","_getStickyStartColumnPositions","endPositions","_getStickyEndColumnPositions","lastStickyStart","lastIndexOf","firstStickyEnd","indexOf","isRtl","start","end","_addStickyStyle","slice","map","width","index","reverse","stickRows","rowsToStick","stickyStates","position","states","stickyOffsets","stickyCellHeights","elementsToStick","rowIndex","stickyOffset","Array","height","getBoundingClientRect","borderedRowIndex","offset","isBorderedRowIndex","stickyHeaderRowsUpdated","offsets","elements","stickyFooterRowsUpdated","updateStickyFooterContainer","tableElement","tfoot","querySelector","dir","style","remove","hasDirection","zIndex","_getCalculatedZIndex","dirValue","isBorderElement","cssText","zIndexIncrements","top","bottom","left","right","firstRowCells","widths","positions","nextPosition","getTableUnknownColumnError","Error","getTableDuplicateColumnNameError","getTableMultipleDefaultRowDefsError","getTableMissingMatchingRowDefError","data","JSON","stringify","getTableMissingRowDefsError","getTableUnknownDataSourceError","getTableTextColumnMissingParentTableError","getTableTextColumnMissingNameError","STICKY_POSITIONING_LISTENER","CdkRecycleRows","useClass","DataRowOutlet","viewContainer","HeaderRowOutlet","FooterRowOutlet","NoDataRowOutlet","CDK_TABLE_TEMPLATE","RowViewRef","CdkTable","trackBy","_trackByFn","fn","ngDevMode","dataSource","_dataSource","_switchDataSource","multiTemplateDataRows","_multiTemplateDataRows","_rowOutlet","_forceRenderDataRows","updateStickyColumnStyles","fixedLayout","_fixedLayout","_forceRecalculateCellWidths","_stickyColumnStylesNeedReset","_changeDetectorRef","_dir","_document","_platform","_viewRepeater","_viewportRuler","_stickyPositioningListener","_onDestroy","_columnDefsByName","Map","_customColumnDefs","Set","_customRowDefs","_customHeaderRowDefs","_customFooterRowDefs","_headerRowDefChanged","_footerRowDefChanged","_cachedRenderRowsMap","stickyCssClass","needsPositionStickyOnElement","_isShowingNoDataRow","contentChanged","viewChange","Number","MAX_VALUE","nodeName","_setupStickyStyler","_applyNativeTableSections","_dataDiffer","_i","dataRow","dataIndex","change","ngAfterContentChecked","_cacheRowDefs","_cacheColumnDefs","_headerRowDefs","_footerRowDefs","_rowDefs","columnsChanged","_renderUpdatedColumns","rowDefsChanged","_forceRenderHeaderRows","_forceRenderFooterRows","_renderChangeSubscription","_observeRenderChanges","_checkStickyStates","_headerRowOutlet","_footerRowOutlet","forEach","def","clear","_defaultRowDef","disconnect","renderRows","_renderRows","_getAllRenderRows","_updateNoDataRow","applyChanges","record","_adjustedPreviousIndex","currentIndex","_getEmbeddedViewArgs","operation","context","_renderCellTemplateForItem","rowDef","_updateRowIndexContext","forEachIdentityChange","rowView","$implicit","isInAngularZone","addColumnDef","removeColumnDef","delete","addRowDef","removeRowDef","addHeaderRowDef","headerRowDef","removeHeaderRowDef","addFooterRowDef","footerRowDef","removeFooterRowDef","setNoDataRow","noDataRow","_customNoDataRow","updateStickyHeaderRowStyles","headerRows","_getRenderedRows","thead","display","_stickyStyler","updateStickyFooterRowStyles","footerRows","dataRows","headerRow","_addStickyColumnStyles","footerRow","values","prevCachedRenderRows","_data","renderRowsForData","_getRenderRowsForData","has","set","WeakMap","j","renderRow","cache","rowDefs","_getRowDefs","cachedRenderRows","shift","columnDefs","mergeArrayAndSet","_getOwnDefs","_contentColumnDefs","_contentHeaderRowDefs","_contentFooterRowDefs","_contentRowDefs","defaultRowDefs","filter","when","columnsDiffReducer","acc","dataColumnsChanged","reduce","headerColumnsChanged","footerColumnsChanged","unsubscribe","dataStream","connect","isArray","_renderRow","columnName","rowOutlet","renderedRows","viewRef","rootNodes","outlet","view","createEmbeddedView","cellTemplate","_getCellTemplates","renderIndex","first","last","even","odd","columnId","documentFragment","createDocumentFragment","sections","tag","outlets","_noDataRowOutlet","section","createElement","appendChild","stickyCheckReducer","d","isBrowser","items","_noDataRow","shouldShow","container","rootNode","ChangeDetectorRef","Directionality","Platform","ViewportRuler","useValue","exportAs","styles","static","descendants","array","concat","CdkTextColumn","_syncColumnDefName","_options","justify","headerText","_createDefaultHeaderText","dataAccessor","defaultDataAccessor","defaultHeaderTextTransform","toUpperCase","EXPORTED_DECLARATIONS","CdkTableModule","ɵmod","ɵinj","MatCommonModule","merge","combineLatest","_isNumberValue","MatRecycleRows","MatTable","arguments","tbody","MatCellDef","MatHeaderCellDef","MatFooterCellDef","MatColumnDef","MatHeaderCell","MatFooterCell","MatCell","MatHeaderRowDef","MatFooterRowDef","MatRowDef","MatHeaderRow","MatFooterRow","MatRow","MatNoDataRow","MatTextColumn","MAX_SAFE_INTEGER","_MatTableDataSource","_renderChangesSubscription","_filterData","_filter","sort","_sort","_updateChangeSubscription","paginator","_paginator","initialData","_renderData","_internalPageChanges","sortingDataAccessor","sortHeaderId","numberValue","sortData","active","a","b","valueA","valueB","valueAType","valueBType","comparatorResult","filterPredicate","dataStr","Object","keys","currentTerm","key","toLowerCase","transformedFilter","trim","sortChange","initialized","pageChange","page","filteredData","orderedData","_orderData","paginatedData","_pageData","obj","_updatePaginator","startIndex","pageIndex","pageSize","filteredDataLength","then","lastPageIndex","Math","ceil","newPageIndex","min","MatTableDataSource"],"sourceRoot":"webpack:///","x_google_ignoreList":[13,14]} \ No newline at end of file diff --git a/cdk/cdk.out/asset.705042e10eb8fb6d7d7475c39e61e09836398336585ba5ef9814a4a774e8e009/styles.css b/cdk/cdk.out/asset.705042e10eb8fb6d7d7475c39e61e09836398336585ba5ef9814a4a774e8e009/styles.css new file mode 100644 index 00000000..42b96e1d --- /dev/null +++ b/cdk/cdk.out/asset.705042e10eb8fb6d7d7475c39e61e09836398336585ba5ef9814a4a774e8e009/styles.css @@ -0,0 +1,11371 @@ +/*!**********************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].rules[0].oneOf[0].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[5].rules[0].oneOf[0].use[2]!./node_modules/@angular/material/prebuilt-themes/indigo-pink.css?ngGlobalStyle ***! + \**********************************************************************************************************************************************************************************************************************************************************************/ +.mat-ripple { + overflow: hidden; + position: relative; +} +.mat-ripple:not(:empty) { + transform: translateZ(0); +} +.mat-ripple.mat-ripple-unbounded { + overflow: visible; +} +.mat-ripple-element { + position: absolute; + border-radius: 50%; + pointer-events: none; + transition: opacity, transform 0ms cubic-bezier(0, 0, 0.2, 1); + transform: scale3d(0, 0, 0); +} +.cdk-high-contrast-active .mat-ripple-element { + display: none; +} +.cdk-visually-hidden { + border: 0; + clip: rect(0 0 0 0); + height: 1px; + margin: -1px; + overflow: hidden; + padding: 0; + position: absolute; + width: 1px; + white-space: nowrap; + outline: 0; + -webkit-appearance: none; + -moz-appearance: none; + left: 0; +} +[dir="rtl"] .cdk-visually-hidden { + left: auto; + right: 0; +} +.cdk-overlay-container, +.cdk-global-overlay-wrapper { + pointer-events: none; + top: 0; + left: 0; + height: 100%; + width: 100%; +} +.cdk-overlay-container { + position: fixed; + z-index: 1000; +} +.cdk-overlay-container:empty { + display: none; +} +.cdk-global-overlay-wrapper { + display: flex; + position: absolute; + z-index: 1000; +} +.cdk-overlay-pane { + position: absolute; + pointer-events: auto; + box-sizing: border-box; + z-index: 1000; + display: flex; + max-width: 100%; + max-height: 100%; +} +.cdk-overlay-backdrop { + position: absolute; + top: 0; + bottom: 0; + left: 0; + right: 0; + z-index: 1000; + pointer-events: auto; + -webkit-tap-highlight-color: rgba(0, 0, 0, 0); + transition: opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1); + opacity: 0; +} +.cdk-overlay-backdrop.cdk-overlay-backdrop-showing { + opacity: 1; +} +.cdk-high-contrast-active .cdk-overlay-backdrop.cdk-overlay-backdrop-showing { + opacity: 0.6; +} +.cdk-overlay-dark-backdrop { + background: rgba(0, 0, 0, 0.32); +} +.cdk-overlay-transparent-backdrop { + transition: visibility 1ms linear, opacity 1ms linear; + visibility: hidden; + opacity: 1; +} +.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing { + opacity: 0; + visibility: visible; +} +.cdk-overlay-backdrop-noop-animation { + transition: none; +} +.cdk-overlay-connected-position-bounding-box { + position: absolute; + z-index: 1000; + display: flex; + flex-direction: column; + min-width: 1px; + min-height: 1px; +} +.cdk-global-scrollblock { + position: fixed; + width: 100%; + overflow-y: scroll; +} +textarea.cdk-textarea-autosize { + resize: none; +} +textarea.cdk-textarea-autosize-measuring { + padding: 2px 0 !important; + box-sizing: content-box !important; + height: auto !important; + overflow: hidden !important; +} +textarea.cdk-textarea-autosize-measuring-firefox { + padding: 2px 0 !important; + box-sizing: content-box !important; + height: 0 !important; +} +@keyframes cdk-text-field-autofill-start { + /*!*/ +} +@keyframes cdk-text-field-autofill-end { + /*!*/ +} +.cdk-text-field-autofill-monitored:-webkit-autofill { + animation: cdk-text-field-autofill-start 0s 1ms; +} +.cdk-text-field-autofill-monitored:not(:-webkit-autofill) { + animation: cdk-text-field-autofill-end 0s 1ms; +} +.mat-focus-indicator { + position: relative; +} +.mat-focus-indicator::before { + top: 0; + left: 0; + right: 0; + bottom: 0; + position: absolute; + box-sizing: border-box; + pointer-events: none; + display: var(--mat-focus-indicator-display, none); + border: var(--mat-focus-indicator-border-width, 3px) + var(--mat-focus-indicator-border-style, solid) + var(--mat-focus-indicator-border-color, transparent); + border-radius: var(--mat-focus-indicator-border-radius, 4px); +} +.mat-focus-indicator:focus::before { + content: ""; +} +.cdk-high-contrast-active { + --mat-focus-indicator-display: block; +} +.mat-mdc-focus-indicator { + position: relative; +} +.mat-mdc-focus-indicator::before { + top: 0; + left: 0; + right: 0; + bottom: 0; + position: absolute; + box-sizing: border-box; + pointer-events: none; + display: var(--mat-mdc-focus-indicator-display, none); + border: var(--mat-mdc-focus-indicator-border-width, 3px) + var(--mat-mdc-focus-indicator-border-style, solid) + var(--mat-mdc-focus-indicator-border-color, transparent); + border-radius: var(--mat-mdc-focus-indicator-border-radius, 4px); +} +.mat-mdc-focus-indicator:focus::before { + content: ""; +} +.cdk-high-contrast-active { + --mat-mdc-focus-indicator-display: block; +} +.mat-ripple-element { + background-color: rgba(0, 0, 0, 0.1); +} +.mat-mdc-option { + color: var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87)); +} +.mat-mdc-option:hover:not(.mdc-list-item--disabled), +.mat-mdc-option:focus:not(.mdc-list-item--disabled), +.mat-mdc-option.mat-mdc-option-active, +.mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple):not( + .mdc-list-item--disabled + ) { + background: rgba(0, 0, 0, 0.04); +} +.mat-primary + .mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) + .mdc-list-item__primary-text { + color: var(--mdc-theme-primary, #3f51b5); +} +.mat-accent + .mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) + .mdc-list-item__primary-text { + color: var(--mdc-theme-secondary, #ff4081); +} +.mat-warn + .mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) + .mdc-list-item__primary-text { + color: var(--mdc-theme-error, #f44336); +} +.mat-mdc-optgroup-label { + color: var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87)); +} +.mat-pseudo-checkbox { + color: rgba(0, 0, 0, 0.54); +} +.mat-pseudo-checkbox::after { + color: #fafafa; +} +.mat-pseudo-checkbox-disabled { + color: #b0b0b0; +} +.mat-primary .mat-pseudo-checkbox-checked, +.mat-primary .mat-pseudo-checkbox-indeterminate { + background: #3f51b5; +} +.mat-pseudo-checkbox-checked, +.mat-pseudo-checkbox-indeterminate, +.mat-accent .mat-pseudo-checkbox-checked, +.mat-accent .mat-pseudo-checkbox-indeterminate { + background: #ff4081; +} +.mat-warn .mat-pseudo-checkbox-checked, +.mat-warn .mat-pseudo-checkbox-indeterminate { + background: #f44336; +} +.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled, +.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled { + background: #b0b0b0; +} +.mat-app-background { + background-color: #fafafa; + color: rgba(0, 0, 0, 0.87); +} +.mat-elevation-z0, +.mat-mdc-elevation-specific.mat-elevation-z0 { + box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0.2), + 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12); +} +.mat-elevation-z1, +.mat-mdc-elevation-specific.mat-elevation-z1 { + box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2), + 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12); +} +.mat-elevation-z2, +.mat-mdc-elevation-specific.mat-elevation-z2 { + box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), + 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12); +} +.mat-elevation-z3, +.mat-mdc-elevation-specific.mat-elevation-z3 { + box-shadow: 0px 3px 3px -2px rgba(0, 0, 0, 0.2), + 0px 3px 4px 0px rgba(0, 0, 0, 0.14), 0px 1px 8px 0px rgba(0, 0, 0, 0.12); +} +.mat-elevation-z4, +.mat-mdc-elevation-specific.mat-elevation-z4 { + box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), + 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12); +} +.mat-elevation-z5, +.mat-mdc-elevation-specific.mat-elevation-z5 { + box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2), + 0px 5px 8px 0px rgba(0, 0, 0, 0.14), 0px 1px 14px 0px rgba(0, 0, 0, 0.12); +} +.mat-elevation-z6, +.mat-mdc-elevation-specific.mat-elevation-z6 { + box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2), + 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12); +} +.mat-elevation-z7, +.mat-mdc-elevation-specific.mat-elevation-z7 { + box-shadow: 0px 4px 5px -2px rgba(0, 0, 0, 0.2), + 0px 7px 10px 1px rgba(0, 0, 0, 0.14), 0px 2px 16px 1px rgba(0, 0, 0, 0.12); +} +.mat-elevation-z8, +.mat-mdc-elevation-specific.mat-elevation-z8 { + box-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), + 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12); +} +.mat-elevation-z9, +.mat-mdc-elevation-specific.mat-elevation-z9 { + box-shadow: 0px 5px 6px -3px rgba(0, 0, 0, 0.2), + 0px 9px 12px 1px rgba(0, 0, 0, 0.14), 0px 3px 16px 2px rgba(0, 0, 0, 0.12); +} +.mat-elevation-z10, +.mat-mdc-elevation-specific.mat-elevation-z10 { + box-shadow: 0px 6px 6px -3px rgba(0, 0, 0, 0.2), + 0px 10px 14px 1px rgba(0, 0, 0, 0.14), 0px 4px 18px 3px rgba(0, 0, 0, 0.12); +} +.mat-elevation-z11, +.mat-mdc-elevation-specific.mat-elevation-z11 { + box-shadow: 0px 6px 7px -4px rgba(0, 0, 0, 0.2), + 0px 11px 15px 1px rgba(0, 0, 0, 0.14), 0px 4px 20px 3px rgba(0, 0, 0, 0.12); +} +.mat-elevation-z12, +.mat-mdc-elevation-specific.mat-elevation-z12 { + box-shadow: 0px 7px 8px -4px rgba(0, 0, 0, 0.2), + 0px 12px 17px 2px rgba(0, 0, 0, 0.14), 0px 5px 22px 4px rgba(0, 0, 0, 0.12); +} +.mat-elevation-z13, +.mat-mdc-elevation-specific.mat-elevation-z13 { + box-shadow: 0px 7px 8px -4px rgba(0, 0, 0, 0.2), + 0px 13px 19px 2px rgba(0, 0, 0, 0.14), 0px 5px 24px 4px rgba(0, 0, 0, 0.12); +} +.mat-elevation-z14, +.mat-mdc-elevation-specific.mat-elevation-z14 { + box-shadow: 0px 7px 9px -4px rgba(0, 0, 0, 0.2), + 0px 14px 21px 2px rgba(0, 0, 0, 0.14), 0px 5px 26px 4px rgba(0, 0, 0, 0.12); +} +.mat-elevation-z15, +.mat-mdc-elevation-specific.mat-elevation-z15 { + box-shadow: 0px 8px 9px -5px rgba(0, 0, 0, 0.2), + 0px 15px 22px 2px rgba(0, 0, 0, 0.14), 0px 6px 28px 5px rgba(0, 0, 0, 0.12); +} +.mat-elevation-z16, +.mat-mdc-elevation-specific.mat-elevation-z16 { + box-shadow: 0px 8px 10px -5px rgba(0, 0, 0, 0.2), + 0px 16px 24px 2px rgba(0, 0, 0, 0.14), 0px 6px 30px 5px rgba(0, 0, 0, 0.12); +} +.mat-elevation-z17, +.mat-mdc-elevation-specific.mat-elevation-z17 { + box-shadow: 0px 8px 11px -5px rgba(0, 0, 0, 0.2), + 0px 17px 26px 2px rgba(0, 0, 0, 0.14), 0px 6px 32px 5px rgba(0, 0, 0, 0.12); +} +.mat-elevation-z18, +.mat-mdc-elevation-specific.mat-elevation-z18 { + box-shadow: 0px 9px 11px -5px rgba(0, 0, 0, 0.2), + 0px 18px 28px 2px rgba(0, 0, 0, 0.14), 0px 7px 34px 6px rgba(0, 0, 0, 0.12); +} +.mat-elevation-z19, +.mat-mdc-elevation-specific.mat-elevation-z19 { + box-shadow: 0px 9px 12px -6px rgba(0, 0, 0, 0.2), + 0px 19px 29px 2px rgba(0, 0, 0, 0.14), 0px 7px 36px 6px rgba(0, 0, 0, 0.12); +} +.mat-elevation-z20, +.mat-mdc-elevation-specific.mat-elevation-z20 { + box-shadow: 0px 10px 13px -6px rgba(0, 0, 0, 0.2), + 0px 20px 31px 3px rgba(0, 0, 0, 0.14), 0px 8px 38px 7px rgba(0, 0, 0, 0.12); +} +.mat-elevation-z21, +.mat-mdc-elevation-specific.mat-elevation-z21 { + box-shadow: 0px 10px 13px -6px rgba(0, 0, 0, 0.2), + 0px 21px 33px 3px rgba(0, 0, 0, 0.14), 0px 8px 40px 7px rgba(0, 0, 0, 0.12); +} +.mat-elevation-z22, +.mat-mdc-elevation-specific.mat-elevation-z22 { + box-shadow: 0px 10px 14px -6px rgba(0, 0, 0, 0.2), + 0px 22px 35px 3px rgba(0, 0, 0, 0.14), 0px 8px 42px 7px rgba(0, 0, 0, 0.12); +} +.mat-elevation-z23, +.mat-mdc-elevation-specific.mat-elevation-z23 { + box-shadow: 0px 11px 14px -7px rgba(0, 0, 0, 0.2), + 0px 23px 36px 3px rgba(0, 0, 0, 0.14), 0px 9px 44px 8px rgba(0, 0, 0, 0.12); +} +.mat-elevation-z24, +.mat-mdc-elevation-specific.mat-elevation-z24 { + box-shadow: 0px 11px 15px -7px rgba(0, 0, 0, 0.2), + 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12); +} +.mat-theme-loaded-marker { + display: none; +} +.mat-mdc-option { + -moz-osx-font-smoothing: grayscale; + -webkit-font-smoothing: antialiased; + font-family: var( + --mdc-typography-body1-font-family, + var(--mdc-typography-font-family, Roboto, sans-serif) + ); + font-size: var(--mdc-typography-body1-font-size, 16px); + line-height: var(--mdc-typography-body1-line-height, 24px); + font-weight: var(--mdc-typography-body1-font-weight, 400); + letter-spacing: var(--mdc-typography-body1-letter-spacing, 0.03125em); +} +.mat-mdc-card { + box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2), + 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12); + --mdc-elevated-card-container-color: #fff; +} +.mat-mdc-card-outlined { + box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0.2), + 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12); + --mdc-outlined-card-outline-color: #e0e0e0; +} +.mat-mdc-card-subtitle { + color: rgba(0, 0, 0, 0.54); +} +.mat-mdc-card-title { + -moz-osx-font-smoothing: grayscale; + -webkit-font-smoothing: antialiased; + font-family: var( + --mdc-typography-headline6-font-family, + var(--mdc-typography-font-family, Roboto, sans-serif) + ); + font-size: var(--mdc-typography-headline6-font-size, 20px); + line-height: var(--mdc-typography-headline6-line-height, 32px); + font-weight: var(--mdc-typography-headline6-font-weight, 500); + letter-spacing: var(--mdc-typography-headline6-letter-spacing, 0.0125em); + -webkit-text-decoration: var( + --mdc-typography-headline6-text-decoration, + inherit + ); + text-decoration: var(--mdc-typography-headline6-text-decoration, inherit); + text-transform: var(--mdc-typography-headline6-text-transform, none); +} +.mat-mdc-card-subtitle { + -moz-osx-font-smoothing: grayscale; + -webkit-font-smoothing: antialiased; + font-family: var( + --mdc-typography-subtitle2-font-family, + var(--mdc-typography-font-family, Roboto, sans-serif) + ); + font-size: var(--mdc-typography-subtitle2-font-size, 14px); + line-height: var(--mdc-typography-subtitle2-line-height, 22px); + font-weight: var(--mdc-typography-subtitle2-font-weight, 500); + letter-spacing: var( + --mdc-typography-subtitle2-letter-spacing, + 0.0071428571em + ); + -webkit-text-decoration: var( + --mdc-typography-subtitle2-text-decoration, + inherit + ); + text-decoration: var(--mdc-typography-subtitle2-text-decoration, inherit); + text-transform: var(--mdc-typography-subtitle2-text-transform, none); +} +.mat-mdc-progress-bar { + --mdc-linear-progress-active-indicator-color: #3f51b5; +} +.mat-mdc-progress-bar .mdc-linear-progress__buffer-dots { + background-image: url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='none slice'%3E%3Ccircle cx='1' cy='1' r='1' fill='rgba(63, 81, 181, 0.25)'/%3E%3C/svg%3E"); +} +.mat-mdc-progress-bar .mdc-linear-progress__buffer-bar { + background-color: rgba(63, 81, 181, 0.25); +} +.mat-mdc-progress-bar.mat-accent { + --mdc-linear-progress-active-indicator-color: #ff4081; +} +.mat-mdc-progress-bar.mat-accent .mdc-linear-progress__buffer-dots { + background-image: url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='none slice'%3E%3Ccircle cx='1' cy='1' r='1' fill='rgba(255, 64, 129, 0.25)'/%3E%3C/svg%3E"); +} +.mat-mdc-progress-bar.mat-accent .mdc-linear-progress__buffer-bar { + background-color: rgba(255, 64, 129, 0.25); +} +.mat-mdc-progress-bar.mat-warn { + --mdc-linear-progress-active-indicator-color: #f44336; +} +.mat-mdc-progress-bar.mat-warn .mdc-linear-progress__buffer-dots { + background-image: url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='none slice'%3E%3Ccircle cx='1' cy='1' r='1' fill='rgba(244, 67, 54, 0.25)'/%3E%3C/svg%3E"); +} +.mat-mdc-progress-bar.mat-warn .mdc-linear-progress__buffer-bar { + background-color: rgba(244, 67, 54, 0.25); +} +.mat-mdc-tooltip { + --mdc-plain-tooltip-container-color: #616161; + --mdc-plain-tooltip-supporting-text-color: white; +} +.mat-mdc-tooltip { + --mdc-plain-tooltip-supporting-text-font: Roboto, sans-serif; + --mdc-plain-tooltip-supporting-text-size: 12px; + --mdc-plain-tooltip-supporting-text-weight: 400; + --mdc-plain-tooltip-supporting-text-tracking: 0.0333333333em; +} +.mdc-text-field:not(.mdc-text-field--disabled) .mdc-floating-label { + color: rgba(0, 0, 0, 0.6); +} +.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__input { + color: rgba(0, 0, 0, 0.87); +} +@media all { + .mdc-text-field:not(.mdc-text-field--disabled) + .mdc-text-field__input::placeholder { + color: rgba(0, 0, 0, 0.6); + } +} +@media all { + .mdc-text-field:not(.mdc-text-field--disabled) + .mdc-text-field__input:-ms-input-placeholder { + color: rgba(0, 0, 0, 0.6); + } +} +.mdc-text-field .mdc-text-field__input { + caret-color: var(--mdc-theme-primary, #3f51b5); +} +.mdc-text-field:not(.mdc-text-field--disabled) + + .mdc-text-field-helper-line + .mdc-text-field-helper-text { + color: rgba(0, 0, 0, 0.6); +} +.mdc-text-field:not(.mdc-text-field--disabled) + .mdc-text-field-character-counter, +.mdc-text-field:not(.mdc-text-field--disabled) + + .mdc-text-field-helper-line + .mdc-text-field-character-counter { + color: rgba(0, 0, 0, 0.6); +} +.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__icon--leading { + color: rgba(0, 0, 0, 0.54); +} +.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__icon--trailing { + color: rgba(0, 0, 0, 0.54); +} +.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__affix--prefix { + color: rgba(0, 0, 0, 0.6); +} +.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__affix--suffix { + color: rgba(0, 0, 0, 0.6); +} +.mdc-text-field--filled .mdc-text-field__ripple::before, +.mdc-text-field--filled .mdc-text-field__ripple::after { + background-color: var(--mdc-ripple-color, rgba(0, 0, 0, 0.87)); +} +.mdc-text-field--filled:hover .mdc-text-field__ripple::before, +.mdc-text-field--filled.mdc-ripple-surface--hover + .mdc-text-field__ripple::before { + opacity: var(--mdc-ripple-hover-opacity, 0.04); +} +.mdc-text-field--filled.mdc-ripple-upgraded--background-focused + .mdc-text-field__ripple::before, +.mdc-text-field--filled:not(.mdc-ripple-upgraded):focus + .mdc-text-field__ripple::before { + opacity: var(--mdc-ripple-focus-opacity, 0.12); +} +.mdc-text-field--filled:not(.mdc-text-field--disabled) { + background-color: whitesmoke; +} +.mdc-text-field--filled:not(.mdc-text-field--disabled) + .mdc-line-ripple::before { + border-bottom-color: rgba(0, 0, 0, 0.42); +} +.mdc-text-field--filled:not(.mdc-text-field--disabled):hover + .mdc-line-ripple::before { + border-bottom-color: rgba(0, 0, 0, 0.87); +} +.mdc-text-field--filled .mdc-line-ripple::after { + border-bottom-color: var(--mdc-theme-primary, #3f51b5); +} +.mdc-text-field--outlined:not(.mdc-text-field--disabled) + .mdc-notched-outline__leading, +.mdc-text-field--outlined:not(.mdc-text-field--disabled) + .mdc-notched-outline__notch, +.mdc-text-field--outlined:not(.mdc-text-field--disabled) + .mdc-notched-outline__trailing { + border-color: rgba(0, 0, 0, 0.38); +} +.mdc-text-field--outlined:not(.mdc-text-field--disabled):not( + .mdc-text-field--focused + ):hover + .mdc-notched-outline + .mdc-notched-outline__leading, +.mdc-text-field--outlined:not(.mdc-text-field--disabled):not( + .mdc-text-field--focused + ):hover + .mdc-notched-outline + .mdc-notched-outline__notch, +.mdc-text-field--outlined:not(.mdc-text-field--disabled):not( + .mdc-text-field--focused + ):hover + .mdc-notched-outline + .mdc-notched-outline__trailing { + border-color: rgba(0, 0, 0, 0.87); +} +.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused + .mdc-notched-outline__leading, +.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused + .mdc-notched-outline__notch, +.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused + .mdc-notched-outline__trailing { + border-color: var(--mdc-theme-primary, #3f51b5); +} +.mdc-text-field--outlined .mdc-text-field__ripple::before, +.mdc-text-field--outlined .mdc-text-field__ripple::after { + background-color: var(--mdc-ripple-color, transparent); +} +.mdc-text-field--focused:not(.mdc-text-field--disabled) .mdc-floating-label { + color: rgba(63, 81, 181, 0.87); +} +.mdc-text-field--invalid:not(.mdc-text-field--disabled):hover + .mdc-line-ripple::before { + border-bottom-color: var(--mdc-theme-error, #f44336); +} +.mdc-text-field--invalid:not(.mdc-text-field--disabled) + .mdc-line-ripple::after { + border-bottom-color: var(--mdc-theme-error, #f44336); +} +.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label { + color: var(--mdc-theme-error, #f44336); +} +.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--invalid + + .mdc-text-field-helper-line + .mdc-text-field-helper-text--validation-msg { + color: var(--mdc-theme-error, #f44336); +} +.mdc-text-field--invalid .mdc-text-field__input { + caret-color: var(--mdc-theme-error, #f44336); +} +.mdc-text-field--invalid:not(.mdc-text-field--disabled) + .mdc-text-field__icon--trailing { + color: var(--mdc-theme-error, #f44336); +} +.mdc-text-field--invalid:not(.mdc-text-field--disabled) + .mdc-line-ripple::before { + border-bottom-color: var(--mdc-theme-error, #f44336); +} +.mdc-text-field--invalid:not(.mdc-text-field--disabled) + .mdc-notched-outline__leading, +.mdc-text-field--invalid:not(.mdc-text-field--disabled) + .mdc-notched-outline__notch, +.mdc-text-field--invalid:not(.mdc-text-field--disabled) + .mdc-notched-outline__trailing { + border-color: var(--mdc-theme-error, #f44336); +} +.mdc-text-field--invalid:not(.mdc-text-field--disabled):not( + .mdc-text-field--focused + ):hover + .mdc-notched-outline + .mdc-notched-outline__leading, +.mdc-text-field--invalid:not(.mdc-text-field--disabled):not( + .mdc-text-field--focused + ):hover + .mdc-notched-outline + .mdc-notched-outline__notch, +.mdc-text-field--invalid:not(.mdc-text-field--disabled):not( + .mdc-text-field--focused + ):hover + .mdc-notched-outline + .mdc-notched-outline__trailing { + border-color: var(--mdc-theme-error, #f44336); +} +.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused + .mdc-notched-outline__leading, +.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused + .mdc-notched-outline__notch, +.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused + .mdc-notched-outline__trailing { + border-color: var(--mdc-theme-error, #f44336); +} +.mdc-text-field--disabled .mdc-text-field__input { + color: rgba(0, 0, 0, 0.38); +} +@media all { + .mdc-text-field--disabled .mdc-text-field__input::placeholder { + color: rgba(0, 0, 0, 0.38); + } +} +@media all { + .mdc-text-field--disabled .mdc-text-field__input:-ms-input-placeholder { + color: rgba(0, 0, 0, 0.38); + } +} +.mdc-text-field--disabled .mdc-floating-label { + color: rgba(0, 0, 0, 0.38); +} +.mdc-text-field--disabled + + .mdc-text-field-helper-line + .mdc-text-field-helper-text { + color: rgba(0, 0, 0, 0.38); +} +.mdc-text-field--disabled .mdc-text-field-character-counter, +.mdc-text-field--disabled + + .mdc-text-field-helper-line + .mdc-text-field-character-counter { + color: rgba(0, 0, 0, 0.38); +} +.mdc-text-field--disabled .mdc-text-field__icon--leading { + color: rgba(0, 0, 0, 0.3); +} +.mdc-text-field--disabled .mdc-text-field__icon--trailing { + color: rgba(0, 0, 0, 0.3); +} +.mdc-text-field--disabled .mdc-text-field__affix--prefix { + color: rgba(0, 0, 0, 0.38); +} +.mdc-text-field--disabled .mdc-text-field__affix--suffix { + color: rgba(0, 0, 0, 0.38); +} +.mdc-text-field--disabled .mdc-line-ripple::before { + border-bottom-color: rgba(0, 0, 0, 0.06); +} +.mdc-text-field--disabled .mdc-notched-outline__leading, +.mdc-text-field--disabled .mdc-notched-outline__notch, +.mdc-text-field--disabled .mdc-notched-outline__trailing { + border-color: rgba(0, 0, 0, 0.06); +} +@media screen and (forced-colors: active), (-ms-high-contrast: active) { + .mdc-text-field--disabled .mdc-text-field__input::placeholder { + color: GrayText; + } +} +@media screen and (forced-colors: active), (-ms-high-contrast: active) { + .mdc-text-field--disabled .mdc-text-field__input:-ms-input-placeholder { + color: GrayText; + } +} +@media screen and (forced-colors: active), (-ms-high-contrast: active) { + .mdc-text-field--disabled .mdc-floating-label { + color: GrayText; + } +} +@media screen and (forced-colors: active), (-ms-high-contrast: active) { + .mdc-text-field--disabled + + .mdc-text-field-helper-line + .mdc-text-field-helper-text { + color: GrayText; + } +} +@media screen and (forced-colors: active), (-ms-high-contrast: active) { + .mdc-text-field--disabled .mdc-text-field-character-counter, + .mdc-text-field--disabled + + .mdc-text-field-helper-line + .mdc-text-field-character-counter { + color: GrayText; + } +} +@media screen and (forced-colors: active), (-ms-high-contrast: active) { + .mdc-text-field--disabled .mdc-text-field__icon--leading { + color: GrayText; + } +} +@media screen and (forced-colors: active), (-ms-high-contrast: active) { + .mdc-text-field--disabled .mdc-text-field__icon--trailing { + color: GrayText; + } +} +@media screen and (forced-colors: active), (-ms-high-contrast: active) { + .mdc-text-field--disabled .mdc-text-field__affix--prefix { + color: GrayText; + } +} +@media screen and (forced-colors: active), (-ms-high-contrast: active) { + .mdc-text-field--disabled .mdc-text-field__affix--suffix { + color: GrayText; + } +} +@media screen and (forced-colors: active), (-ms-high-contrast: active) { + .mdc-text-field--disabled .mdc-line-ripple::before { + border-bottom-color: GrayText; + } +} +@media screen and (forced-colors: active), (-ms-high-contrast: active) { + .mdc-text-field--disabled .mdc-notched-outline__leading, + .mdc-text-field--disabled .mdc-notched-outline__notch, + .mdc-text-field--disabled .mdc-notched-outline__trailing { + border-color: GrayText; + } +} +.mdc-text-field--disabled.mdc-text-field--filled { + background-color: #fafafa; +} +.mat-mdc-form-field-error { + color: var(--mdc-theme-error, #f44336); +} +.mat-mdc-form-field-focus-overlay { + background-color: rgba(0, 0, 0, 0.87); +} +.mat-mdc-form-field:hover .mat-mdc-form-field-focus-overlay { + opacity: 0.04; +} +.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay { + opacity: 0.12; +} +.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after { + color: rgba(0, 0, 0, 0.54); +} +.mat-mdc-form-field-type-mat-native-select.mat-focused.mat-primary + .mat-mdc-form-field-infix::after { + color: rgba(63, 81, 181, 0.87); +} +.mat-mdc-form-field-type-mat-native-select.mat-focused.mat-accent + .mat-mdc-form-field-infix::after { + color: rgba(255, 64, 129, 0.87); +} +.mat-mdc-form-field-type-mat-native-select.mat-focused.mat-warn + .mat-mdc-form-field-infix::after { + color: rgba(244, 67, 54, 0.87); +} +.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled + .mat-mdc-form-field-infix::after { + color: rgba(0, 0, 0, 0.38); +} +.mat-mdc-form-field.mat-accent .mdc-text-field__input { + caret-color: var(--mdc-theme-secondary, #ff4081); +} +.mat-mdc-form-field.mat-accent:not(.mdc-text-field--disabled) + .mdc-line-ripple::after { + border-bottom-color: var(--mdc-theme-secondary, #ff4081); +} +.mat-mdc-form-field.mat-accent + .mdc-text-field--focused:not(.mdc-text-field--disabled) + .mdc-floating-label { + color: rgba(255, 64, 129, 0.87); +} +.mat-mdc-form-field.mat-accent + .mdc-text-field--invalid:not(.mdc-text-field--disabled):hover + .mdc-line-ripple::before { + border-bottom-color: var(--mdc-theme-error, #f44336); +} +.mat-mdc-form-field.mat-accent + .mdc-text-field--invalid:not(.mdc-text-field--disabled) + .mdc-line-ripple::after { + border-bottom-color: var(--mdc-theme-error, #f44336); +} +.mat-mdc-form-field.mat-accent + .mdc-text-field--invalid:not(.mdc-text-field--disabled) + .mdc-floating-label { + color: var(--mdc-theme-error, #f44336); +} +.mat-mdc-form-field.mat-accent + .mdc-text-field--invalid:not( + .mdc-text-field--disabled + ).mdc-text-field--invalid + + .mdc-text-field-helper-line + .mdc-text-field-helper-text--validation-msg { + color: var(--mdc-theme-error, #f44336); +} +.mat-mdc-form-field.mat-accent .mdc-text-field--invalid .mdc-text-field__input { + caret-color: var(--mdc-theme-error, #f44336); +} +.mat-mdc-form-field.mat-accent + .mdc-text-field--invalid:not(.mdc-text-field--disabled) + .mdc-text-field__icon--trailing { + color: var(--mdc-theme-error, #f44336); +} +.mat-mdc-form-field.mat-accent + .mdc-text-field--invalid:not(.mdc-text-field--disabled) + .mdc-line-ripple::before { + border-bottom-color: var(--mdc-theme-error, #f44336); +} +.mat-mdc-form-field.mat-accent + .mdc-text-field--invalid:not(.mdc-text-field--disabled) + .mdc-notched-outline__leading, +.mat-mdc-form-field.mat-accent + .mdc-text-field--invalid:not(.mdc-text-field--disabled) + .mdc-notched-outline__notch, +.mat-mdc-form-field.mat-accent + .mdc-text-field--invalid:not(.mdc-text-field--disabled) + .mdc-notched-outline__trailing { + border-color: var(--mdc-theme-error, #f44336); +} +.mat-mdc-form-field.mat-accent + .mdc-text-field--invalid:not(.mdc-text-field--disabled):not( + .mdc-text-field--focused + ):hover + .mdc-notched-outline + .mdc-notched-outline__leading, +.mat-mdc-form-field.mat-accent + .mdc-text-field--invalid:not(.mdc-text-field--disabled):not( + .mdc-text-field--focused + ):hover + .mdc-notched-outline + .mdc-notched-outline__notch, +.mat-mdc-form-field.mat-accent + .mdc-text-field--invalid:not(.mdc-text-field--disabled):not( + .mdc-text-field--focused + ):hover + .mdc-notched-outline + .mdc-notched-outline__trailing { + border-color: var(--mdc-theme-error, #f44336); +} +.mat-mdc-form-field.mat-accent + .mdc-text-field--invalid:not( + .mdc-text-field--disabled + ).mdc-text-field--focused + .mdc-notched-outline__leading, +.mat-mdc-form-field.mat-accent + .mdc-text-field--invalid:not( + .mdc-text-field--disabled + ).mdc-text-field--focused + .mdc-notched-outline__notch, +.mat-mdc-form-field.mat-accent + .mdc-text-field--invalid:not( + .mdc-text-field--disabled + ).mdc-text-field--focused + .mdc-notched-outline__trailing { + border-color: var(--mdc-theme-error, #f44336); +} +.mat-mdc-form-field.mat-accent + .mdc-text-field--outlined:not( + .mdc-text-field--disabled + ).mdc-text-field--focused + .mdc-notched-outline__leading, +.mat-mdc-form-field.mat-accent + .mdc-text-field--outlined:not( + .mdc-text-field--disabled + ).mdc-text-field--focused + .mdc-notched-outline__notch, +.mat-mdc-form-field.mat-accent + .mdc-text-field--outlined:not( + .mdc-text-field--disabled + ).mdc-text-field--focused + .mdc-notched-outline__trailing { + border-color: var(--mdc-theme-secondary, #ff4081); +} +.mat-mdc-form-field.mat-warn .mdc-text-field__input { + caret-color: var(--mdc-theme-error, #f44336); +} +.mat-mdc-form-field.mat-warn:not(.mdc-text-field--disabled) + .mdc-line-ripple::after { + border-bottom-color: var(--mdc-theme-error, #f44336); +} +.mat-mdc-form-field.mat-warn + .mdc-text-field--focused:not(.mdc-text-field--disabled) + .mdc-floating-label { + color: rgba(244, 67, 54, 0.87); +} +.mat-mdc-form-field.mat-warn + .mdc-text-field--invalid:not(.mdc-text-field--disabled):hover + .mdc-line-ripple::before { + border-bottom-color: var(--mdc-theme-error, #f44336); +} +.mat-mdc-form-field.mat-warn + .mdc-text-field--invalid:not(.mdc-text-field--disabled) + .mdc-line-ripple::after { + border-bottom-color: var(--mdc-theme-error, #f44336); +} +.mat-mdc-form-field.mat-warn + .mdc-text-field--invalid:not(.mdc-text-field--disabled) + .mdc-floating-label { + color: var(--mdc-theme-error, #f44336); +} +.mat-mdc-form-field.mat-warn + .mdc-text-field--invalid:not( + .mdc-text-field--disabled + ).mdc-text-field--invalid + + .mdc-text-field-helper-line + .mdc-text-field-helper-text--validation-msg { + color: var(--mdc-theme-error, #f44336); +} +.mat-mdc-form-field.mat-warn .mdc-text-field--invalid .mdc-text-field__input { + caret-color: var(--mdc-theme-error, #f44336); +} +.mat-mdc-form-field.mat-warn + .mdc-text-field--invalid:not(.mdc-text-field--disabled) + .mdc-text-field__icon--trailing { + color: var(--mdc-theme-error, #f44336); +} +.mat-mdc-form-field.mat-warn + .mdc-text-field--invalid:not(.mdc-text-field--disabled) + .mdc-line-ripple::before { + border-bottom-color: var(--mdc-theme-error, #f44336); +} +.mat-mdc-form-field.mat-warn + .mdc-text-field--invalid:not(.mdc-text-field--disabled) + .mdc-notched-outline__leading, +.mat-mdc-form-field.mat-warn + .mdc-text-field--invalid:not(.mdc-text-field--disabled) + .mdc-notched-outline__notch, +.mat-mdc-form-field.mat-warn + .mdc-text-field--invalid:not(.mdc-text-field--disabled) + .mdc-notched-outline__trailing { + border-color: var(--mdc-theme-error, #f44336); +} +.mat-mdc-form-field.mat-warn + .mdc-text-field--invalid:not(.mdc-text-field--disabled):not( + .mdc-text-field--focused + ):hover + .mdc-notched-outline + .mdc-notched-outline__leading, +.mat-mdc-form-field.mat-warn + .mdc-text-field--invalid:not(.mdc-text-field--disabled):not( + .mdc-text-field--focused + ):hover + .mdc-notched-outline + .mdc-notched-outline__notch, +.mat-mdc-form-field.mat-warn + .mdc-text-field--invalid:not(.mdc-text-field--disabled):not( + .mdc-text-field--focused + ):hover + .mdc-notched-outline + .mdc-notched-outline__trailing { + border-color: var(--mdc-theme-error, #f44336); +} +.mat-mdc-form-field.mat-warn + .mdc-text-field--invalid:not( + .mdc-text-field--disabled + ).mdc-text-field--focused + .mdc-notched-outline__leading, +.mat-mdc-form-field.mat-warn + .mdc-text-field--invalid:not( + .mdc-text-field--disabled + ).mdc-text-field--focused + .mdc-notched-outline__notch, +.mat-mdc-form-field.mat-warn + .mdc-text-field--invalid:not( + .mdc-text-field--disabled + ).mdc-text-field--focused + .mdc-notched-outline__trailing { + border-color: var(--mdc-theme-error, #f44336); +} +.mat-mdc-form-field.mat-warn + .mdc-text-field--outlined:not( + .mdc-text-field--disabled + ).mdc-text-field--focused + .mdc-notched-outline__leading, +.mat-mdc-form-field.mat-warn + .mdc-text-field--outlined:not( + .mdc-text-field--disabled + ).mdc-text-field--focused + .mdc-notched-outline__notch, +.mat-mdc-form-field.mat-warn + .mdc-text-field--outlined:not( + .mdc-text-field--disabled + ).mdc-text-field--focused + .mdc-notched-outline__trailing { + border-color: var(--mdc-theme-error, #f44336); +} +.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field + .mdc-notched-outline__notch { + border-left: 1px solid rgba(0, 0, 0, 0); +} +[dir="rtl"] + .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field + .mdc-notched-outline__notch { + border-left: none; + border-right: 1px solid rgba(0, 0, 0, 0); +} +.mat-mdc-form-field-infix { + min-height: 56px; +} +.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label { + top: 28px; +} +.mat-mdc-text-field-wrapper.mdc-text-field--outlined + .mdc-notched-outline--upgraded + .mdc-floating-label--float-above { + --mat-mdc-form-field-label-transform: translateY(-34.75px) + scale(var(--mat-mdc-form-field-floating-label-scale, 0.75)); + transform: var(--mat-mdc-form-field-label-transform); +} +.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mat-mdc-form-field-infix { + padding-top: 16px; + padding-bottom: 16px; +} +.mat-mdc-text-field-wrapper:not(.mdc-text-field--outlined) + .mat-mdc-form-field-infix { + padding-top: 24px; + padding-bottom: 8px; +} +.mdc-text-field--no-label:not(.mdc-text-field--outlined):not( + .mdc-text-field--textarea + ) + .mat-mdc-form-field-infix { + padding-top: 16px; + padding-bottom: 16px; +} +.mdc-text-field__input { + -moz-osx-font-smoothing: grayscale; + -webkit-font-smoothing: antialiased; + font-family: var( + --mdc-typography-subtitle1-font-family, + var(--mdc-typography-font-family, Roboto, sans-serif) + ); + font-size: var(--mdc-typography-subtitle1-font-size, 16px); + font-weight: var(--mdc-typography-subtitle1-font-weight, 400); + letter-spacing: var(--mdc-typography-subtitle1-letter-spacing, 0.009375em); + -webkit-text-decoration: var( + --mdc-typography-subtitle1-text-decoration, + inherit + ); + text-decoration: var(--mdc-typography-subtitle1-text-decoration, inherit); + text-transform: var(--mdc-typography-subtitle1-text-transform, none); +} +.mdc-text-field__affix { + -moz-osx-font-smoothing: grayscale; + -webkit-font-smoothing: antialiased; + font-family: var( + --mdc-typography-subtitle1-font-family, + var(--mdc-typography-font-family, Roboto, sans-serif) + ); + font-size: var(--mdc-typography-subtitle1-font-size, 16px); + font-weight: var(--mdc-typography-subtitle1-font-weight, 400); + letter-spacing: var(--mdc-typography-subtitle1-letter-spacing, 0.009375em); + -webkit-text-decoration: var( + --mdc-typography-subtitle1-text-decoration, + inherit + ); + text-decoration: var(--mdc-typography-subtitle1-text-decoration, inherit); + text-transform: var(--mdc-typography-subtitle1-text-transform, none); +} +.mdc-text-field--textarea .mdc-text-field__input { + line-height: 1.5rem; +} +.mdc-floating-label { + -moz-osx-font-smoothing: grayscale; + -webkit-font-smoothing: antialiased; + font-family: var( + --mdc-typography-subtitle1-font-family, + var(--mdc-typography-font-family, Roboto, sans-serif) + ); + font-size: var(--mdc-typography-subtitle1-font-size, 16px); + font-weight: var(--mdc-typography-subtitle1-font-weight, 400); + letter-spacing: var(--mdc-typography-subtitle1-letter-spacing, 0.009375em); + -webkit-text-decoration: var( + --mdc-typography-subtitle1-text-decoration, + inherit + ); + text-decoration: var(--mdc-typography-subtitle1-text-decoration, inherit); + text-transform: var(--mdc-typography-subtitle1-text-transform, none); +} +.mat-mdc-form-field-subscript-wrapper, +.mat-mdc-form-field-bottom-align::before { + -moz-osx-font-smoothing: grayscale; + -webkit-font-smoothing: antialiased; + font-family: var( + --mdc-typography-caption-font-family, + var(--mdc-typography-font-family, Roboto, sans-serif) + ); + font-size: var(--mdc-typography-caption-font-size, 12px); + line-height: var(--mdc-typography-caption-line-height, 20px); + font-weight: var(--mdc-typography-caption-font-weight, 400); + letter-spacing: var(--mdc-typography-caption-letter-spacing, 0.0333333333em); + -webkit-text-decoration: var( + --mdc-typography-caption-text-decoration, + inherit + ); + text-decoration: var(--mdc-typography-caption-text-decoration, inherit); + text-transform: var(--mdc-typography-caption-text-transform, none); +} +.mat-mdc-form-field, +.mat-mdc-floating-label { + -moz-osx-font-smoothing: grayscale; + -webkit-font-smoothing: antialiased; + font-family: var( + --mdc-typography-body1-font-family, + var(--mdc-typography-font-family, Roboto, sans-serif) + ); + font-size: var(--mdc-typography-body1-font-size, 16px); + line-height: var(--mdc-typography-body1-line-height, 24px); + font-weight: var(--mdc-typography-body1-font-weight, 400); + letter-spacing: var(--mdc-typography-body1-letter-spacing, 0.03125em); + -webkit-text-decoration: var(--mdc-typography-body1-text-decoration, inherit); + text-decoration: var(--mdc-typography-body1-text-decoration, inherit); + text-transform: var(--mdc-typography-body1-text-transform, none); +} +.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above { + font-size: calc(16px * var(--mat-mdc-form-field-floating-label-scale, 0.75)); +} +.mat-mdc-form-field + .mdc-text-field--outlined + .mdc-notched-outline--upgraded + .mdc-floating-label--float-above { + font-size: 16px; +} +.mdc-menu-surface { + box-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), + 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12); + background-color: var(--mdc-theme-surface, #fff); + color: var(--mdc-theme-on-surface, #000); +} +.mdc-list-item__primary-text { + color: var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87)); +} +.mdc-list-item__secondary-text { + color: var(--mdc-theme-text-secondary-on-background, rgba(0, 0, 0, 0.54)); +} +.mdc-list-item__overline-text { + color: var(--mdc-theme-text-hint-on-background, rgba(0, 0, 0, 0.38)); +} +.mdc-list-item--with-leading-icon .mdc-list-item__start, +.mdc-list-item--with-trailing-icon .mdc-list-item__end { + background-color: transparent; +} +.mdc-list-item--with-leading-icon .mdc-list-item__start, +.mdc-list-item--with-trailing-icon .mdc-list-item__end { + color: var(--mdc-theme-text-icon-on-background, rgba(0, 0, 0, 0.38)); +} +.mdc-list-item__end { + color: var(--mdc-theme-text-hint-on-background, rgba(0, 0, 0, 0.38)); +} +.mdc-list-item--disabled .mdc-list-item__start, +.mdc-list-item--disabled .mdc-list-item__content, +.mdc-list-item--disabled .mdc-list-item__end { + opacity: 0.38; +} +.mdc-list-item--disabled .mdc-list-item__primary-text { + color: var(--mdc-theme-on-surface, #000); +} +.mdc-list-item--disabled .mdc-list-item__secondary-text { + color: var(--mdc-theme-on-surface, #000); +} +.mdc-list-item--disabled .mdc-list-item__overline-text { + color: var(--mdc-theme-on-surface, #000); +} +.mdc-list-item--disabled.mdc-list-item--with-leading-icon + .mdc-list-item__start { + color: var(--mdc-theme-on-surface, #000); +} +.mdc-list-item--disabled.mdc-list-item--with-trailing-icon .mdc-list-item__end { + color: var(--mdc-theme-on-surface, #000); +} +.mdc-list-item--disabled.mdc-list-item--with-trailing-meta .mdc-list-item__end { + color: var(--mdc-theme-on-surface, #000); +} +.mdc-list-item--selected .mdc-list-item__primary-text, +.mdc-list-item--activated .mdc-list-item__primary-text { + color: var(--mdc-theme-primary, #3f51b5); +} +.mdc-list-item--selected.mdc-list-item--with-leading-icon .mdc-list-item__start, +.mdc-list-item--activated.mdc-list-item--with-leading-icon + .mdc-list-item__start { + color: var(--mdc-theme-primary, #3f51b5); +} +.mdc-deprecated-list-group__subheader { + color: var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87)); +} +.mdc-list-divider::after { + border-bottom-color: white; +} +.mdc-list-divider { + background-color: rgba(0, 0, 0, 0.12); +} +.mat-mdc-select-value { + color: rgba(0, 0, 0, 0.87); +} +.mat-mdc-select-placeholder { + color: rgba(0, 0, 0, 0.6); +} +.mat-mdc-select-disabled .mat-mdc-select-value { + color: rgba(0, 0, 0, 0.38); +} +.mat-mdc-select-arrow { + color: rgba(0, 0, 0, 0.54); +} +.mat-mdc-form-field.mat-focused.mat-primary .mat-mdc-select-arrow { + color: rgba(63, 81, 181, 0.87); +} +.mat-mdc-form-field.mat-focused.mat-accent .mat-mdc-select-arrow { + color: rgba(255, 64, 129, 0.87); +} +.mat-mdc-form-field.mat-focused.mat-warn .mat-mdc-select-arrow { + color: rgba(244, 67, 54, 0.87); +} +.mat-mdc-form-field + .mat-mdc-select.mat-mdc-select-invalid + .mat-mdc-select-arrow { + color: rgba(244, 67, 54, 0.87); +} +.mat-mdc-form-field + .mat-mdc-select.mat-mdc-select-disabled + .mat-mdc-select-arrow { + color: rgba(0, 0, 0, 0.38); +} +.mat-mdc-select-panel { + -moz-osx-font-smoothing: grayscale; + -webkit-font-smoothing: antialiased; + font-family: var( + --mdc-typography-subtitle1-font-family, + var(--mdc-typography-font-family, Roboto, sans-serif) + ); + font-size: var(--mdc-typography-subtitle1-font-size, 16px); + line-height: var(--mdc-typography-subtitle1-line-height, 28px); + font-weight: var(--mdc-typography-subtitle1-font-weight, 400); + letter-spacing: var(--mdc-typography-subtitle1-letter-spacing, 0.009375em); + -webkit-text-decoration: var( + --mdc-typography-subtitle1-text-decoration, + inherit + ); + text-decoration: var(--mdc-typography-subtitle1-text-decoration, inherit); + text-transform: var(--mdc-typography-subtitle1-text-transform, none); + line-height: 24px; +} +.mat-mdc-select { + -moz-osx-font-smoothing: grayscale; + -webkit-font-smoothing: antialiased; + font-family: var( + --mdc-typography-body1-font-family, + var(--mdc-typography-font-family, Roboto, sans-serif) + ); + font-size: var(--mdc-typography-body1-font-size, 16px); + line-height: var(--mdc-typography-body1-line-height, 24px); + font-weight: var(--mdc-typography-body1-font-weight, 400); + letter-spacing: var(--mdc-typography-body1-letter-spacing, 0.03125em); + -webkit-text-decoration: var(--mdc-typography-body1-text-decoration, inherit); + text-decoration: var(--mdc-typography-body1-text-decoration, inherit); + text-transform: var(--mdc-typography-body1-text-transform, none); +} +.mdc-menu-surface { + box-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), + 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12); + background-color: var(--mdc-theme-surface, #fff); + color: var(--mdc-theme-on-surface, #000); +} +.mdc-list-item__primary-text { + color: var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87)); +} +.mdc-list-item__secondary-text { + color: var(--mdc-theme-text-secondary-on-background, rgba(0, 0, 0, 0.54)); +} +.mdc-list-item__overline-text { + color: var(--mdc-theme-text-hint-on-background, rgba(0, 0, 0, 0.38)); +} +.mdc-list-item--with-leading-icon .mdc-list-item__start, +.mdc-list-item--with-trailing-icon .mdc-list-item__end { + background-color: transparent; +} +.mdc-list-item--with-leading-icon .mdc-list-item__start, +.mdc-list-item--with-trailing-icon .mdc-list-item__end { + color: var(--mdc-theme-text-icon-on-background, rgba(0, 0, 0, 0.38)); +} +.mdc-list-item__end { + color: var(--mdc-theme-text-hint-on-background, rgba(0, 0, 0, 0.38)); +} +.mdc-list-item--disabled .mdc-list-item__start, +.mdc-list-item--disabled .mdc-list-item__content, +.mdc-list-item--disabled .mdc-list-item__end { + opacity: 0.38; +} +.mdc-list-item--disabled .mdc-list-item__primary-text { + color: var(--mdc-theme-on-surface, #000); +} +.mdc-list-item--disabled .mdc-list-item__secondary-text { + color: var(--mdc-theme-on-surface, #000); +} +.mdc-list-item--disabled .mdc-list-item__overline-text { + color: var(--mdc-theme-on-surface, #000); +} +.mdc-list-item--disabled.mdc-list-item--with-leading-icon + .mdc-list-item__start { + color: var(--mdc-theme-on-surface, #000); +} +.mdc-list-item--disabled.mdc-list-item--with-trailing-icon .mdc-list-item__end { + color: var(--mdc-theme-on-surface, #000); +} +.mdc-list-item--disabled.mdc-list-item--with-trailing-meta .mdc-list-item__end { + color: var(--mdc-theme-on-surface, #000); +} +.mdc-list-item--selected .mdc-list-item__primary-text, +.mdc-list-item--activated .mdc-list-item__primary-text { + color: var(--mdc-theme-primary, #3f51b5); +} +.mdc-list-item--selected.mdc-list-item--with-leading-icon .mdc-list-item__start, +.mdc-list-item--activated.mdc-list-item--with-leading-icon + .mdc-list-item__start { + color: var(--mdc-theme-primary, #3f51b5); +} +.mdc-deprecated-list-group__subheader { + color: var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87)); +} +.mdc-list-divider::after { + border-bottom-color: white; +} +.mdc-list-divider { + background-color: rgba(0, 0, 0, 0.12); +} +.mat-mdc-autocomplete-panel { + -moz-osx-font-smoothing: grayscale; + -webkit-font-smoothing: antialiased; + font-family: var( + --mdc-typography-subtitle1-font-family, + var(--mdc-typography-font-family, Roboto, sans-serif) + ); + font-size: var(--mdc-typography-subtitle1-font-size, 16px); + line-height: var(--mdc-typography-subtitle1-line-height, 28px); + font-weight: var(--mdc-typography-subtitle1-font-weight, 400); + letter-spacing: var(--mdc-typography-subtitle1-letter-spacing, 0.009375em); + -webkit-text-decoration: var( + --mdc-typography-subtitle1-text-decoration, + inherit + ); + text-decoration: var(--mdc-typography-subtitle1-text-decoration, inherit); + text-transform: var(--mdc-typography-subtitle1-text-transform, none); + line-height: 24px; +} +.mat-mdc-dialog-container { + --mdc-dialog-container-color: white; + --mdc-dialog-with-divider-divider-color: rgba(0, 0, 0, 0.12); + --mdc-dialog-subhead-color: rgba(0, 0, 0, 0.87); + --mdc-dialog-supporting-text-color: rgba(0, 0, 0, 0.6); +} +.mat-mdc-dialog-container { + --mdc-dialog-subhead-font: Roboto, sans-serif; + --mdc-dialog-subhead-line-height: 32px; + --mdc-dialog-subhead-size: 20px; + --mdc-dialog-subhead-weight: 500; + --mdc-dialog-subhead-tracking: 0.0125em; + --mdc-dialog-supporting-text-font: Roboto, sans-serif; + --mdc-dialog-supporting-text-line-height: 24px; + --mdc-dialog-supporting-text-size: 16px; + --mdc-dialog-supporting-text-weight: 400; + --mdc-dialog-supporting-text-tracking: 0.03125em; +} +.mat-mdc-standard-chip { + --mdc-chip-elevated-container-color: #e0e0e0; + --mdc-chip-elevated-disabled-container-color: #e0e0e0; + --mdc-chip-label-text-color: #212121; + --mdc-chip-disabled-label-text-color: #212121; + --mdc-chip-with-icon-icon-color: #212121; + --mdc-chip-with-icon-disabled-icon-color: #212121; + --mdc-chip-with-trailing-icon-disabled-trailing-icon-color: #212121; + --mdc-chip-with-trailing-icon-trailing-icon-color: #212121; + --mdc-chip-with-icon-selected-icon-color: #212121; +} +.mat-mdc-standard-chip.mat-primary.mat-mdc-chip-selected, +.mat-mdc-standard-chip.mat-primary.mat-mdc-chip-highlighted { + --mdc-chip-elevated-container-color: #3f51b5; + --mdc-chip-elevated-disabled-container-color: #3f51b5; + --mdc-chip-label-text-color: white; + --mdc-chip-disabled-label-text-color: white; + --mdc-chip-with-icon-icon-color: white; + --mdc-chip-with-icon-disabled-icon-color: white; + --mdc-chip-with-trailing-icon-disabled-trailing-icon-color: white; + --mdc-chip-with-trailing-icon-trailing-icon-color: white; + --mdc-chip-with-icon-selected-icon-color: white; +} +.mat-mdc-standard-chip.mat-accent.mat-mdc-chip-selected, +.mat-mdc-standard-chip.mat-accent.mat-mdc-chip-highlighted { + --mdc-chip-elevated-container-color: #ff4081; + --mdc-chip-elevated-disabled-container-color: #ff4081; + --mdc-chip-label-text-color: white; + --mdc-chip-disabled-label-text-color: white; + --mdc-chip-with-icon-icon-color: white; + --mdc-chip-with-icon-disabled-icon-color: white; + --mdc-chip-with-trailing-icon-disabled-trailing-icon-color: white; + --mdc-chip-with-trailing-icon-trailing-icon-color: white; + --mdc-chip-with-icon-selected-icon-color: white; +} +.mat-mdc-standard-chip.mat-warn.mat-mdc-chip-selected, +.mat-mdc-standard-chip.mat-warn.mat-mdc-chip-highlighted { + --mdc-chip-elevated-container-color: #f44336; + --mdc-chip-elevated-disabled-container-color: #f44336; + --mdc-chip-label-text-color: white; + --mdc-chip-disabled-label-text-color: white; + --mdc-chip-with-icon-icon-color: white; + --mdc-chip-with-icon-disabled-icon-color: white; + --mdc-chip-with-trailing-icon-disabled-trailing-icon-color: white; + --mdc-chip-with-trailing-icon-trailing-icon-color: white; + --mdc-chip-with-icon-selected-icon-color: white; +} +.mat-mdc-chip-focus-overlay { + background: #000; +} +.mat-mdc-chip { + height: 32px; +} +.mat-mdc-standard-chip { + -moz-osx-font-smoothing: grayscale; + -webkit-font-smoothing: antialiased; + font-family: var( + --mdc-typography-body2-font-family, + var(--mdc-typography-font-family, Roboto, sans-serif) + ); + font-size: var(--mdc-typography-body2-font-size, 14px); + line-height: var(--mdc-typography-body2-line-height, 20px); + font-weight: var(--mdc-typography-body2-font-weight, 400); + letter-spacing: var(--mdc-typography-body2-letter-spacing, 0.0178571429em); + -webkit-text-decoration: var(--mdc-typography-body2-text-decoration, inherit); + text-decoration: var(--mdc-typography-body2-text-decoration, inherit); + text-transform: var(--mdc-typography-body2-text-transform, none); +} +.mat-mdc-slide-toggle { + --mdc-switch-disabled-selected-handle-color: #424242; + --mdc-switch-disabled-unselected-handle-color: #424242; + --mdc-switch-disabled-selected-track-color: #424242; + --mdc-switch-disabled-unselected-track-color: #424242; + --mdc-switch-unselected-focus-state-layer-color: #424242; + --mdc-switch-unselected-pressed-state-layer-color: #424242; + --mdc-switch-unselected-hover-state-layer-color: #424242; + --mdc-switch-unselected-focus-track-color: #e0e0e0; + --mdc-switch-unselected-hover-track-color: #e0e0e0; + --mdc-switch-unselected-pressed-track-color: #e0e0e0; + --mdc-switch-unselected-track-color: #e0e0e0; + --mdc-switch-unselected-focus-handle-color: #212121; + --mdc-switch-unselected-hover-handle-color: #212121; + --mdc-switch-unselected-pressed-handle-color: #212121; + --mdc-switch-handle-surface-color: var(--mdc-theme-surface, #fff); + --mdc-switch-unselected-handle-color: #616161; + --mdc-switch-selected-icon-color: #fff; + --mdc-switch-disabled-selected-icon-color: #fff; + --mdc-switch-disabled-unselected-icon-color: #fff; + --mdc-switch-unselected-icon-color: #fff; +} +.mat-mdc-slide-toggle .mdc-form-field { + color: var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87)); +} +.mat-mdc-slide-toggle .mdc-switch--disabled + label { + color: rgba(0, 0, 0, 0.38); +} +.mat-mdc-slide-toggle.mat-primary { + --mdc-switch-selected-focus-state-layer-color: #3949ab; + --mdc-switch-selected-handle-color: #3949ab; + --mdc-switch-selected-hover-state-layer-color: #3949ab; + --mdc-switch-selected-pressed-state-layer-color: #3949ab; + --mdc-switch-selected-focus-handle-color: #1a237e; + --mdc-switch-selected-hover-handle-color: #1a237e; + --mdc-switch-selected-pressed-handle-color: #1a237e; + --mdc-switch-selected-focus-track-color: #7986cb; + --mdc-switch-selected-hover-track-color: #7986cb; + --mdc-switch-selected-pressed-track-color: #7986cb; + --mdc-switch-selected-track-color: #7986cb; +} +.mat-mdc-slide-toggle.mat-accent { + --mdc-switch-selected-focus-state-layer-color: #d81b60; + --mdc-switch-selected-handle-color: #d81b60; + --mdc-switch-selected-hover-state-layer-color: #d81b60; + --mdc-switch-selected-pressed-state-layer-color: #d81b60; + --mdc-switch-selected-focus-handle-color: #880e4f; + --mdc-switch-selected-hover-handle-color: #880e4f; + --mdc-switch-selected-pressed-handle-color: #880e4f; + --mdc-switch-selected-focus-track-color: #f06292; + --mdc-switch-selected-hover-track-color: #f06292; + --mdc-switch-selected-pressed-track-color: #f06292; + --mdc-switch-selected-track-color: #f06292; +} +.mat-mdc-slide-toggle.mat-warn { + --mdc-switch-selected-focus-state-layer-color: #e53935; + --mdc-switch-selected-handle-color: #e53935; + --mdc-switch-selected-hover-state-layer-color: #e53935; + --mdc-switch-selected-pressed-state-layer-color: #e53935; + --mdc-switch-selected-focus-handle-color: #b71c1c; + --mdc-switch-selected-hover-handle-color: #b71c1c; + --mdc-switch-selected-pressed-handle-color: #b71c1c; + --mdc-switch-selected-focus-track-color: #e57373; + --mdc-switch-selected-hover-track-color: #e57373; + --mdc-switch-selected-pressed-track-color: #e57373; + --mdc-switch-selected-track-color: #e57373; +} +.mat-mdc-slide-toggle { + --mdc-switch-state-layer-size: 48px; +} +.mdc-form-field { + -moz-osx-font-smoothing: grayscale; + -webkit-font-smoothing: antialiased; + font-family: var( + --mdc-typography-body2-font-family, + var(--mdc-typography-font-family, Roboto, sans-serif) + ); + font-size: var(--mdc-typography-body2-font-size, 14px); + line-height: var(--mdc-typography-body2-line-height, 20px); + font-weight: var(--mdc-typography-body2-font-weight, 400); + letter-spacing: var(--mdc-typography-body2-letter-spacing, 0.0178571429em); + -webkit-text-decoration: var(--mdc-typography-body2-text-decoration, inherit); + text-decoration: var(--mdc-typography-body2-text-decoration, inherit); + text-transform: var(--mdc-typography-body2-text-transform, none); +} +.mat-mdc-radio-button .mdc-form-field { + color: var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87)); +} +.mat-mdc-radio-button.mat-primary { + --mdc-radio-disabled-selected-icon-color: #000; + --mdc-radio-disabled-unselected-icon-color: #000; + --mdc-radio-unselected-focus-icon-color: #212121; + --mdc-radio-unselected-hover-icon-color: #212121; + --mdc-radio-unselected-icon-color: rgba(0, 0, 0, 0.54); + --mdc-radio-unselected-pressed-icon-color: rgba(0, 0, 0, 0.54); + --mdc-radio-selected-focus-icon-color: #3f51b5; + --mdc-radio-selected-hover-icon-color: #3f51b5; + --mdc-radio-selected-icon-color: #3f51b5; + --mdc-radio-selected-pressed-icon-color: #3f51b5; + --mat-mdc-radio-ripple-color: #000; + --mat-mdc-radio-checked-ripple-color: #3f51b5; +} +.mat-mdc-radio-button.mat-primary .mdc-radio--disabled + label { + color: rgba(0, 0, 0, 0.38); +} +.mat-mdc-radio-button.mat-accent { + --mdc-radio-disabled-selected-icon-color: #000; + --mdc-radio-disabled-unselected-icon-color: #000; + --mdc-radio-unselected-focus-icon-color: #212121; + --mdc-radio-unselected-hover-icon-color: #212121; + --mdc-radio-unselected-icon-color: rgba(0, 0, 0, 0.54); + --mdc-radio-unselected-pressed-icon-color: rgba(0, 0, 0, 0.54); + --mdc-radio-selected-focus-icon-color: #ff4081; + --mdc-radio-selected-hover-icon-color: #ff4081; + --mdc-radio-selected-icon-color: #ff4081; + --mdc-radio-selected-pressed-icon-color: #ff4081; + --mat-mdc-radio-ripple-color: #000; + --mat-mdc-radio-checked-ripple-color: #ff4081; +} +.mat-mdc-radio-button.mat-accent .mdc-radio--disabled + label { + color: rgba(0, 0, 0, 0.38); +} +.mat-mdc-radio-button.mat-warn { + --mdc-radio-disabled-selected-icon-color: #000; + --mdc-radio-disabled-unselected-icon-color: #000; + --mdc-radio-unselected-focus-icon-color: #212121; + --mdc-radio-unselected-hover-icon-color: #212121; + --mdc-radio-unselected-icon-color: rgba(0, 0, 0, 0.54); + --mdc-radio-unselected-pressed-icon-color: rgba(0, 0, 0, 0.54); + --mdc-radio-selected-focus-icon-color: #f44336; + --mdc-radio-selected-hover-icon-color: #f44336; + --mdc-radio-selected-icon-color: #f44336; + --mdc-radio-selected-pressed-icon-color: #f44336; + --mat-mdc-radio-ripple-color: #000; + --mat-mdc-radio-checked-ripple-color: #f44336; +} +.mat-mdc-radio-button.mat-warn .mdc-radio--disabled + label { + color: rgba(0, 0, 0, 0.38); +} +.mat-mdc-radio-button .mdc-radio { + padding: calc((40px - 20px) / 2); +} +.mat-mdc-radio-button .mdc-radio .mdc-radio__background::before { + top: calc(-1 * (40px - 20px) / 2); + left: calc(-1 * (40px - 20px) / 2); + width: 40px; + height: 40px; +} +.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control { + top: calc((40px - 40px) / 2); + right: calc((40px - 40px) / 2); + left: calc((40px - 40px) / 2); + width: 40px; + height: 40px; +} +.mdc-form-field { + -moz-osx-font-smoothing: grayscale; + -webkit-font-smoothing: antialiased; + font-family: var( + --mdc-typography-body2-font-family, + var(--mdc-typography-font-family, Roboto, sans-serif) + ); + font-size: var(--mdc-typography-body2-font-size, 14px); + line-height: var(--mdc-typography-body2-line-height, 20px); + font-weight: var(--mdc-typography-body2-font-weight, 400); + letter-spacing: var(--mdc-typography-body2-letter-spacing, 0.0178571429em); + -webkit-text-decoration: var(--mdc-typography-body2-text-decoration, inherit); + text-decoration: var(--mdc-typography-body2-text-decoration, inherit); + text-transform: var(--mdc-typography-body2-text-transform, none); +} +.mat-mdc-slider { + --mdc-slider-label-container-color: black; + --mdc-slider-label-label-text-color: white; + --mdc-slider-disabled-handle-color: #000; + --mdc-slider-disabled-active-track-color: #000; + --mdc-slider-disabled-inactive-track-color: #000; + --mdc-slider-with-tick-marks-disabled-container-color: #000; + --mat-mdc-slider-value-indicator-opacity: 0.6; +} +.mat-mdc-slider.mat-primary { + --mdc-slider-handle-color: #3f51b5; + --mdc-slider-focus-handle-color: #3f51b5; + --mdc-slider-hover-handle-color: #3f51b5; + --mdc-slider-active-track-color: #3f51b5; + --mdc-slider-inactive-track-color: #3f51b5; + --mdc-slider-with-tick-marks-active-container-color: #fff; + --mdc-slider-with-tick-marks-inactive-container-color: #3f51b5; + --mat-mdc-slider-ripple-color: #3f51b5; + --mat-mdc-slider-hover-ripple-color: rgba(63, 81, 181, 0.05); + --mat-mdc-slider-focus-ripple-color: rgba(63, 81, 181, 0.2); +} +.mat-mdc-slider.mat-accent { + --mdc-slider-handle-color: #ff4081; + --mdc-slider-focus-handle-color: #ff4081; + --mdc-slider-hover-handle-color: #ff4081; + --mdc-slider-active-track-color: #ff4081; + --mdc-slider-inactive-track-color: #ff4081; + --mdc-slider-with-tick-marks-active-container-color: #fff; + --mdc-slider-with-tick-marks-inactive-container-color: #ff4081; + --mat-mdc-slider-ripple-color: #ff4081; + --mat-mdc-slider-hover-ripple-color: rgba(255, 64, 129, 0.05); + --mat-mdc-slider-focus-ripple-color: rgba(255, 64, 129, 0.2); +} +.mat-mdc-slider.mat-warn { + --mdc-slider-handle-color: #f44336; + --mdc-slider-focus-handle-color: #f44336; + --mdc-slider-hover-handle-color: #f44336; + --mdc-slider-active-track-color: #f44336; + --mdc-slider-inactive-track-color: #f44336; + --mdc-slider-with-tick-marks-active-container-color: #fff; + --mdc-slider-with-tick-marks-inactive-container-color: #f44336; + --mat-mdc-slider-ripple-color: #f44336; + --mat-mdc-slider-hover-ripple-color: rgba(244, 67, 54, 0.05); + --mat-mdc-slider-focus-ripple-color: rgba(244, 67, 54, 0.2); +} +.mat-mdc-slider { + --mdc-slider-label-label-text-font: Roboto, sans-serif; + --mdc-slider-label-label-text-size: 14px; + --mdc-slider-label-label-text-line-height: 22px; + --mdc-slider-label-label-text-tracking: 0.0071428571em; + --mdc-slider-label-label-text-weight: 500; +} +.mdc-menu-surface { + box-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), + 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12); + background-color: var(--mdc-theme-surface, #fff); + color: var(--mdc-theme-on-surface, #000); +} +.mdc-list-item__primary-text { + color: var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87)); +} +.mdc-list-item__secondary-text { + color: var(--mdc-theme-text-secondary-on-background, rgba(0, 0, 0, 0.54)); +} +.mdc-list-item__overline-text { + color: var(--mdc-theme-text-hint-on-background, rgba(0, 0, 0, 0.38)); +} +.mdc-list-item--with-leading-icon .mdc-list-item__start, +.mdc-list-item--with-trailing-icon .mdc-list-item__end { + background-color: transparent; +} +.mdc-list-item--with-leading-icon .mdc-list-item__start, +.mdc-list-item--with-trailing-icon .mdc-list-item__end { + color: var(--mdc-theme-text-icon-on-background, rgba(0, 0, 0, 0.38)); +} +.mdc-list-item__end { + color: var(--mdc-theme-text-hint-on-background, rgba(0, 0, 0, 0.38)); +} +.mdc-list-item--disabled .mdc-list-item__start, +.mdc-list-item--disabled .mdc-list-item__content, +.mdc-list-item--disabled .mdc-list-item__end { + opacity: 0.38; +} +.mdc-list-item--disabled .mdc-list-item__primary-text { + color: var(--mdc-theme-on-surface, #000); +} +.mdc-list-item--disabled .mdc-list-item__secondary-text { + color: var(--mdc-theme-on-surface, #000); +} +.mdc-list-item--disabled .mdc-list-item__overline-text { + color: var(--mdc-theme-on-surface, #000); +} +.mdc-list-item--disabled.mdc-list-item--with-leading-icon + .mdc-list-item__start { + color: var(--mdc-theme-on-surface, #000); +} +.mdc-list-item--disabled.mdc-list-item--with-trailing-icon .mdc-list-item__end { + color: var(--mdc-theme-on-surface, #000); +} +.mdc-list-item--disabled.mdc-list-item--with-trailing-meta .mdc-list-item__end { + color: var(--mdc-theme-on-surface, #000); +} +.mdc-list-item--selected .mdc-list-item__primary-text, +.mdc-list-item--activated .mdc-list-item__primary-text { + color: var(--mdc-theme-primary, #3f51b5); +} +.mdc-list-item--selected.mdc-list-item--with-leading-icon .mdc-list-item__start, +.mdc-list-item--activated.mdc-list-item--with-leading-icon + .mdc-list-item__start { + color: var(--mdc-theme-primary, #3f51b5); +} +.mdc-deprecated-list-group__subheader { + color: var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87)); +} +.mdc-list-divider::after { + border-bottom-color: white; +} +.mdc-list-divider { + background-color: rgba(0, 0, 0, 0.12); +} +.mat-mdc-menu-item[disabled], +.mat-mdc-menu-item[disabled] .mat-mdc-menu-submenu-icon, +.mat-mdc-menu-item[disabled] .mat-icon-no-color { + color: var(--mdc-theme-text-disabled-on-background, rgba(0, 0, 0, 0.38)); +} +.mat-mdc-menu-item .mat-icon-no-color, +.mat-mdc-menu-submenu-icon { + color: var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87)); +} +.mat-mdc-menu-item:hover:not([disabled]), +.mat-mdc-menu-item.cdk-program-focused:not([disabled]), +.mat-mdc-menu-item.cdk-keyboard-focused:not([disabled]), +.mat-mdc-menu-item-highlighted:not([disabled]) { + background: rgba(0, 0, 0, 0.04); +} +.mat-mdc-menu-content { + -moz-osx-font-smoothing: grayscale; + -webkit-font-smoothing: antialiased; + font-family: var( + --mdc-typography-subtitle1-font-family, + var(--mdc-typography-font-family, Roboto, sans-serif) + ); + font-size: var(--mdc-typography-subtitle1-font-size, 16px); + line-height: var(--mdc-typography-subtitle1-line-height, 28px); + font-weight: var(--mdc-typography-subtitle1-font-weight, 400); + letter-spacing: var(--mdc-typography-subtitle1-letter-spacing, 0.009375em); + -webkit-text-decoration: var( + --mdc-typography-subtitle1-text-decoration, + inherit + ); + text-decoration: var(--mdc-typography-subtitle1-text-decoration, inherit); + text-transform: var(--mdc-typography-subtitle1-text-transform, none); + line-height: 24px; +} +.mat-mdc-menu-content, +.mat-mdc-menu-content .mat-mdc-menu-item .mdc-list-item__primary-text { + -moz-osx-font-smoothing: grayscale; + -webkit-font-smoothing: antialiased; + font-family: var( + --mdc-typography-body1-font-family, + var(--mdc-typography-font-family, Roboto, sans-serif) + ); + font-size: var(--mdc-typography-body1-font-size, 16px); + line-height: var(--mdc-typography-body1-line-height, 24px); + font-weight: var(--mdc-typography-body1-font-weight, 400); + letter-spacing: var(--mdc-typography-body1-letter-spacing, 0.03125em); + -webkit-text-decoration: var(--mdc-typography-body1-text-decoration, inherit); + text-decoration: var(--mdc-typography-body1-text-decoration, inherit); + text-transform: var(--mdc-typography-body1-text-transform, none); +} +.mat-mdc-list-item-interactive::before { + background: #000; +} +.mat-mdc-list-item-interactive:not(:focus):not( + .mdc-list-item--disabled + ):hover::before { + opacity: 0.04; +} +.mat-mdc-list-item-interactive:focus::before { + opacity: 0.12; +} +.mat-mdc-list-item-interactive.mdc-list-item--selected::before { + background: #3f51b5; + opacity: 0.08; +} +.mat-mdc-list-item-interactive.mdc-list-item--selected:not(:focus):not( + .mdc-list-item--disabled + ):hover::before { + opacity: 0.12; +} +.mdc-list-item__primary-text { + color: var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87)); +} +.mdc-list-item__secondary-text { + color: var(--mdc-theme-text-secondary-on-background, rgba(0, 0, 0, 0.54)); +} +.mdc-list-item__overline-text { + color: var(--mdc-theme-text-hint-on-background, rgba(0, 0, 0, 0.38)); +} +.mdc-list-item--with-leading-icon .mdc-list-item__start, +.mdc-list-item--with-trailing-icon .mdc-list-item__end { + background-color: transparent; +} +.mdc-list-item--with-leading-icon .mdc-list-item__start, +.mdc-list-item--with-trailing-icon .mdc-list-item__end { + color: var(--mdc-theme-text-icon-on-background, rgba(0, 0, 0, 0.38)); +} +.mdc-list-item__end { + color: var(--mdc-theme-text-hint-on-background, rgba(0, 0, 0, 0.38)); +} +.mdc-list-item--disabled .mdc-list-item__start, +.mdc-list-item--disabled .mdc-list-item__content, +.mdc-list-item--disabled .mdc-list-item__end { + opacity: 0.38; +} +.mdc-list-item--disabled .mdc-list-item__primary-text { + color: var(--mdc-theme-on-surface, #000); +} +.mdc-list-item--disabled .mdc-list-item__secondary-text { + color: var(--mdc-theme-on-surface, #000); +} +.mdc-list-item--disabled .mdc-list-item__overline-text { + color: var(--mdc-theme-on-surface, #000); +} +.mdc-list-item--disabled.mdc-list-item--with-leading-icon + .mdc-list-item__start { + color: var(--mdc-theme-on-surface, #000); +} +.mdc-list-item--disabled.mdc-list-item--with-trailing-icon .mdc-list-item__end { + color: var(--mdc-theme-on-surface, #000); +} +.mdc-list-item--disabled.mdc-list-item--with-trailing-meta .mdc-list-item__end { + color: var(--mdc-theme-on-surface, #000); +} +.mdc-list-item--selected .mdc-list-item__primary-text, +.mdc-list-item--activated .mdc-list-item__primary-text { + color: var(--mdc-theme-primary, #3f51b5); +} +.mdc-list-item--selected.mdc-list-item--with-leading-icon .mdc-list-item__start, +.mdc-list-item--activated.mdc-list-item--with-leading-icon + .mdc-list-item__start { + color: var(--mdc-theme-primary, #3f51b5); +} +.mdc-deprecated-list-group__subheader { + color: var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87)); +} +.mdc-list-divider::after { + border-bottom-color: white; +} +.mdc-list-divider { + background-color: rgba(0, 0, 0, 0.12); +} +.mat-mdc-list-option .mdc-list-item__start, +.mat-mdc-list-option .mdc-list-item__end { + --mdc-checkbox-selected-checkmark-color: #fff; + --mdc-checkbox-selected-focus-icon-color: #3f51b5; + --mdc-checkbox-selected-hover-icon-color: #3f51b5; + --mdc-checkbox-selected-icon-color: #3f51b5; + --mdc-checkbox-selected-pressed-icon-color: #3f51b5; + --mdc-checkbox-unselected-focus-icon-color: #212121; + --mdc-checkbox-unselected-hover-icon-color: #212121; + --mdc-checkbox-disabled-selected-icon-color: rgba(0, 0, 0, 0.38); + --mdc-checkbox-disabled-unselected-icon-color: rgba(0, 0, 0, 0.38); + --mdc-checkbox-unselected-icon-color: rgba(0, 0, 0, 0.54); + --mdc-checkbox-unselected-pressed-icon-color: rgba(0, 0, 0, 0.54); +} +.mat-mdc-list-option .mdc-list-item__start, +.mat-mdc-list-option .mdc-list-item__end { + --mdc-radio-disabled-selected-icon-color: #000; + --mdc-radio-disabled-unselected-icon-color: #000; + --mdc-radio-unselected-focus-icon-color: #212121; + --mdc-radio-unselected-hover-icon-color: #212121; + --mdc-radio-unselected-icon-color: rgba(0, 0, 0, 0.54); + --mdc-radio-unselected-pressed-icon-color: rgba(0, 0, 0, 0.54); + --mdc-radio-selected-focus-icon-color: #3f51b5; + --mdc-radio-selected-hover-icon-color: #3f51b5; + --mdc-radio-selected-icon-color: #3f51b5; + --mdc-radio-selected-pressed-icon-color: #3f51b5; + --mat-mdc-radio-ripple-color: #000; + --mat-mdc-radio-checked-ripple-color: #3f51b5; +} +.mat-mdc-list-option .mdc-list-item__start .mdc-radio--disabled + label, +.mat-mdc-list-option .mdc-list-item__end .mdc-radio--disabled + label { + color: rgba(0, 0, 0, 0.38); +} +.mat-mdc-list-option.mat-accent .mdc-list-item__start, +.mat-mdc-list-option.mat-accent .mdc-list-item__end { + --mdc-checkbox-selected-checkmark-color: #fff; + --mdc-checkbox-selected-focus-icon-color: #ff4081; + --mdc-checkbox-selected-hover-icon-color: #ff4081; + --mdc-checkbox-selected-icon-color: #ff4081; + --mdc-checkbox-selected-pressed-icon-color: #ff4081; + --mdc-checkbox-unselected-focus-icon-color: #212121; + --mdc-checkbox-unselected-hover-icon-color: #212121; + --mdc-checkbox-disabled-selected-icon-color: rgba(0, 0, 0, 0.38); + --mdc-checkbox-disabled-unselected-icon-color: rgba(0, 0, 0, 0.38); + --mdc-checkbox-unselected-icon-color: rgba(0, 0, 0, 0.54); + --mdc-checkbox-unselected-pressed-icon-color: rgba(0, 0, 0, 0.54); +} +.mat-mdc-list-option.mat-accent .mdc-list-item__start, +.mat-mdc-list-option.mat-accent .mdc-list-item__end { + --mdc-radio-disabled-selected-icon-color: #000; + --mdc-radio-disabled-unselected-icon-color: #000; + --mdc-radio-unselected-focus-icon-color: #212121; + --mdc-radio-unselected-hover-icon-color: #212121; + --mdc-radio-unselected-icon-color: rgba(0, 0, 0, 0.54); + --mdc-radio-unselected-pressed-icon-color: rgba(0, 0, 0, 0.54); + --mdc-radio-selected-focus-icon-color: #ff4081; + --mdc-radio-selected-hover-icon-color: #ff4081; + --mdc-radio-selected-icon-color: #ff4081; + --mdc-radio-selected-pressed-icon-color: #ff4081; + --mat-mdc-radio-ripple-color: #000; + --mat-mdc-radio-checked-ripple-color: #ff4081; +} +.mat-mdc-list-option.mat-accent + .mdc-list-item__start + .mdc-radio--disabled + + label, +.mat-mdc-list-option.mat-accent + .mdc-list-item__end + .mdc-radio--disabled + + label { + color: rgba(0, 0, 0, 0.38); +} +.mat-mdc-list-option.mat-warn .mdc-list-item__start, +.mat-mdc-list-option.mat-warn .mdc-list-item__end { + --mdc-checkbox-selected-checkmark-color: #fff; + --mdc-checkbox-selected-focus-icon-color: #f44336; + --mdc-checkbox-selected-hover-icon-color: #f44336; + --mdc-checkbox-selected-icon-color: #f44336; + --mdc-checkbox-selected-pressed-icon-color: #f44336; + --mdc-checkbox-unselected-focus-icon-color: #212121; + --mdc-checkbox-unselected-hover-icon-color: #212121; + --mdc-checkbox-disabled-selected-icon-color: rgba(0, 0, 0, 0.38); + --mdc-checkbox-disabled-unselected-icon-color: rgba(0, 0, 0, 0.38); + --mdc-checkbox-unselected-icon-color: rgba(0, 0, 0, 0.54); + --mdc-checkbox-unselected-pressed-icon-color: rgba(0, 0, 0, 0.54); +} +.mat-mdc-list-option.mat-warn .mdc-list-item__start, +.mat-mdc-list-option.mat-warn .mdc-list-item__end { + --mdc-radio-disabled-selected-icon-color: #000; + --mdc-radio-disabled-unselected-icon-color: #000; + --mdc-radio-unselected-focus-icon-color: #212121; + --mdc-radio-unselected-hover-icon-color: #212121; + --mdc-radio-unselected-icon-color: rgba(0, 0, 0, 0.54); + --mdc-radio-unselected-pressed-icon-color: rgba(0, 0, 0, 0.54); + --mdc-radio-selected-focus-icon-color: #f44336; + --mdc-radio-selected-hover-icon-color: #f44336; + --mdc-radio-selected-icon-color: #f44336; + --mdc-radio-selected-pressed-icon-color: #f44336; + --mat-mdc-radio-ripple-color: #000; + --mat-mdc-radio-checked-ripple-color: #f44336; +} +.mat-mdc-list-option.mat-warn + .mdc-list-item__start + .mdc-radio--disabled + + label, +.mat-mdc-list-option.mat-warn .mdc-list-item__end .mdc-radio--disabled + label { + color: rgba(0, 0, 0, 0.38); +} +.mat-mdc-list-item.mdc-list-item--with-one-line { + height: 48px; +} +.mat-mdc-list-item.mdc-list-item--with-leading-avatar.mdc-list-item--with-one-line, +.mat-mdc-list-item.mdc-list-item--with-leading-icon.mdc-list-item--with-one-line, +.mat-mdc-list-item.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-one-line, +.mat-mdc-list-item.mdc-list-item--with-leading-checkbox.mdc-list-item--with-one-line, +.mat-mdc-list-item.mdc-list-item--with-leading-radio.mdc-list-item--with-one-line, +.mat-mdc-list-item.mdc-list-item--with-leading-switch.mdc-list-item--with-one-line { + height: 56px; +} +.mat-mdc-list-item.mdc-list-item--with-leading-image.mdc-list-item--with-one-line, +.mat-mdc-list-item.mdc-list-item--with-leading-video.mdc-list-item--with-one-line { + height: 72px; +} +.mat-mdc-list-item.mdc-list-item--with-two-lines { + height: 64px; +} +.mat-mdc-list-item.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines, +.mat-mdc-list-item.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines, +.mat-mdc-list-item.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines, +.mat-mdc-list-item.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines, +.mat-mdc-list-item.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines, +.mat-mdc-list-item.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines, +.mat-mdc-list-item.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines, +.mat-mdc-list-item.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines { + height: 72px; +} +.mat-mdc-list-item.mdc-list-item--with-three-lines { + height: 88px; +} +.mat-mdc-list-option-with-trailing-avatar.mdc-list-item--with-one-line { + height: 56px; +} +.mat-mdc-list-option-with-trailing-avatar.mdc-list-item--with-two-lines { + height: 72px; +} +.mdc-list { + -moz-osx-font-smoothing: grayscale; + -webkit-font-smoothing: antialiased; + font-family: var( + --mdc-typography-subtitle1-font-family, + var(--mdc-typography-font-family, Roboto, sans-serif) + ); + font-size: var(--mdc-typography-subtitle1-font-size, 16px); + line-height: var(--mdc-typography-subtitle1-line-height, 28px); + font-weight: var(--mdc-typography-subtitle1-font-weight, 400); + letter-spacing: var(--mdc-typography-subtitle1-letter-spacing, 0.009375em); + -webkit-text-decoration: var( + --mdc-typography-subtitle1-text-decoration, + inherit + ); + text-decoration: var(--mdc-typography-subtitle1-text-decoration, inherit); + text-transform: var(--mdc-typography-subtitle1-text-transform, none); + line-height: 24px; +} +.mdc-list-item__primary-text { + -moz-osx-font-smoothing: grayscale; + -webkit-font-smoothing: antialiased; + font-family: var( + --mdc-typography-subtitle1-font-family, + var(--mdc-typography-font-family, Roboto, sans-serif) + ); + font-size: var(--mdc-typography-subtitle1-font-size, 16px); + line-height: var(--mdc-typography-subtitle1-line-height, 28px); + font-weight: var(--mdc-typography-subtitle1-font-weight, 400); + letter-spacing: var(--mdc-typography-subtitle1-letter-spacing, 0.009375em); + -webkit-text-decoration: var( + --mdc-typography-subtitle1-text-decoration, + inherit + ); + text-decoration: var(--mdc-typography-subtitle1-text-decoration, inherit); + text-transform: var(--mdc-typography-subtitle1-text-transform, none); +} +.mdc-list-item__secondary-text { + -moz-osx-font-smoothing: grayscale; + -webkit-font-smoothing: antialiased; + font-family: var( + --mdc-typography-body2-font-family, + var(--mdc-typography-font-family, Roboto, sans-serif) + ); + font-size: var(--mdc-typography-body2-font-size, 14px); + line-height: var(--mdc-typography-body2-line-height, 20px); + font-weight: var(--mdc-typography-body2-font-weight, 400); + letter-spacing: var(--mdc-typography-body2-letter-spacing, 0.0178571429em); + -webkit-text-decoration: var(--mdc-typography-body2-text-decoration, inherit); + text-decoration: var(--mdc-typography-body2-text-decoration, inherit); + text-transform: var(--mdc-typography-body2-text-transform, none); +} +.mdc-list-item__overline-text { + -moz-osx-font-smoothing: grayscale; + -webkit-font-smoothing: antialiased; + font-family: var( + --mdc-typography-overline-font-family, + var(--mdc-typography-font-family, Roboto, sans-serif) + ); + font-size: var(--mdc-typography-overline-font-size, 12px); + line-height: var(--mdc-typography-overline-line-height, 32px); + font-weight: var(--mdc-typography-overline-font-weight, 500); + letter-spacing: var(--mdc-typography-overline-letter-spacing, 0.1666666667em); + -webkit-text-decoration: var(--mdc-typography-overline-text-decoration, none); + text-decoration: var(--mdc-typography-overline-text-decoration, none); + text-transform: var(--mdc-typography-overline-text-transform, none); +} +.mdc-list-item--with-trailing-meta .mdc-list-item__end { + -moz-osx-font-smoothing: grayscale; + -webkit-font-smoothing: antialiased; + font-family: var( + --mdc-typography-caption-font-family, + var(--mdc-typography-font-family, Roboto, sans-serif) + ); + font-size: var(--mdc-typography-caption-font-size, 12px); + line-height: var(--mdc-typography-caption-line-height, 20px); + font-weight: var(--mdc-typography-caption-font-weight, 400); + letter-spacing: var(--mdc-typography-caption-letter-spacing, 0.0333333333em); + -webkit-text-decoration: var( + --mdc-typography-caption-text-decoration, + inherit + ); + text-decoration: var(--mdc-typography-caption-text-decoration, inherit); + text-transform: var(--mdc-typography-caption-text-transform, none); +} +.mdc-list-group__subheader { + -moz-osx-font-smoothing: grayscale; + -webkit-font-smoothing: antialiased; + font-family: var( + --mdc-typography-subtitle1-font-family, + var(--mdc-typography-font-family, Roboto, sans-serif) + ); + font-size: var(--mdc-typography-subtitle1-font-size, 16px); + line-height: var(--mdc-typography-subtitle1-line-height, 28px); + font-weight: var(--mdc-typography-subtitle1-font-weight, 400); + letter-spacing: var(--mdc-typography-subtitle1-letter-spacing, 0.009375em); + -webkit-text-decoration: var( + --mdc-typography-subtitle1-text-decoration, + inherit + ); + text-decoration: var(--mdc-typography-subtitle1-text-decoration, inherit); + text-transform: var(--mdc-typography-subtitle1-text-transform, none); +} +.mdc-list-item--with-trailing-meta .mdc-list-item__end { + -moz-osx-font-smoothing: grayscale; + -webkit-font-smoothing: antialiased; + font-family: var( + --mdc-typography-caption-font-family, + var(--mdc-typography-font-family, Roboto, sans-serif) + ); + font-size: var(--mdc-typography-caption-font-size, 12px); + line-height: var(--mdc-typography-caption-line-height, 20px); + font-weight: var(--mdc-typography-caption-font-weight, 400); + letter-spacing: var(--mdc-typography-caption-letter-spacing, 0.0333333333em); + -webkit-text-decoration: var( + --mdc-typography-caption-text-decoration, + inherit + ); + text-decoration: var(--mdc-typography-caption-text-decoration, inherit); + text-transform: var(--mdc-typography-caption-text-transform, none); +} +@media all and (-ms-high-contrast: none) { + .mat-mdc-list-option + .mdc-list-item__start + .mdc-checkbox + .mdc-checkbox__focus-ring, + .mat-mdc-list-option + .mdc-list-item__end + .mdc-checkbox + .mdc-checkbox__focus-ring { + display: none; + } +} +.mat-mdc-list-item .mdc-list-item__primary-text { + font: 400 16px/24px Roboto, sans-serif; + letter-spacing: 0.03125em; +} +.mat-mdc-paginator { + background: #fff; + color: rgba(0, 0, 0, 0.87); +} +.mat-mdc-paginator-icon { + fill: rgba(0, 0, 0, 0.54); +} +.mat-mdc-paginator-decrement, +.mat-mdc-paginator-increment { + border-top: 2px solid rgba(0, 0, 0, 0.54); + border-right: 2px solid rgba(0, 0, 0, 0.54); +} +.mat-mdc-paginator-first, +.mat-mdc-paginator-last { + border-top: 2px solid rgba(0, 0, 0, 0.54); +} +.mat-mdc-icon-button[disabled] .mat-mdc-paginator-decrement, +.mat-mdc-icon-button[disabled] .mat-mdc-paginator-increment, +.mat-mdc-icon-button[disabled] .mat-mdc-paginator-first, +.mat-mdc-icon-button[disabled] .mat-mdc-paginator-last { + border-color: rgba(0, 0, 0, 0.12); +} +.mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon { + fill: rgba(0, 0, 0, 0.12); +} +.mat-mdc-paginator .mat-mdc-form-field-infix { + min-height: 40px; +} +.mat-mdc-paginator + .mat-mdc-text-field-wrapper + .mat-mdc-form-field-flex + .mat-mdc-floating-label { + top: 20px; +} +.mat-mdc-paginator + .mat-mdc-text-field-wrapper.mdc-text-field--outlined + .mdc-notched-outline--upgraded + .mdc-floating-label--float-above { + --mat-mdc-form-field-label-transform: translateY(-26.75px) + scale(var(--mat-mdc-form-field-floating-label-scale, 0.75)); + transform: var(--mat-mdc-form-field-label-transform); +} +.mat-mdc-paginator + .mat-mdc-text-field-wrapper.mdc-text-field--outlined + .mat-mdc-form-field-infix { + padding-top: 8px; + padding-bottom: 8px; +} +.mat-mdc-paginator + .mat-mdc-text-field-wrapper:not(.mdc-text-field--outlined) + .mat-mdc-form-field-infix { + padding-top: 8px; + padding-bottom: 8px; +} +.mat-mdc-paginator + .mdc-text-field--no-label:not(.mdc-text-field--outlined):not( + .mdc-text-field--textarea + ) + .mat-mdc-form-field-infix { + padding-top: 8px; + padding-bottom: 8px; +} +.mat-mdc-paginator + .mat-mdc-text-field-wrapper:not(.mdc-text-field--outlined) + .mat-mdc-floating-label { + display: none; +} +.mat-mdc-paginator-container { + min-height: 56px; +} +.mat-mdc-paginator { + -moz-osx-font-smoothing: grayscale; + -webkit-font-smoothing: antialiased; + font-family: var( + --mdc-typography-caption-font-family, + var(--mdc-typography-font-family, Roboto, sans-serif) + ); + font-size: var(--mdc-typography-caption-font-size, 12px); + line-height: var(--mdc-typography-caption-line-height, 20px); + font-weight: var(--mdc-typography-caption-font-weight, 400); + letter-spacing: var(--mdc-typography-caption-letter-spacing, 0.0333333333em); + -webkit-text-decoration: var( + --mdc-typography-caption-text-decoration, + inherit + ); + text-decoration: var(--mdc-typography-caption-text-decoration, inherit); + text-transform: var(--mdc-typography-caption-text-transform, none); +} +.mat-mdc-paginator .mat-mdc-select-value { + font-size: 12px; +} +.mat-mdc-tab, +.mat-mdc-tab-link { + background-color: rgba(0, 0, 0, 0); +} +.mat-mdc-tab .mdc-tab__text-label, +.mat-mdc-tab-link .mdc-tab__text-label { + color: rgba(0, 0, 0, 0.6); +} +.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__ripple::before, +.mat-mdc-tab.mat-mdc-tab-disabled .mat-ripple-element, +.mat-mdc-tab-link.mat-mdc-tab-disabled .mdc-tab__ripple::before, +.mat-mdc-tab-link.mat-mdc-tab-disabled .mat-ripple-element { + background-color: rgba(0, 0, 0, 0.38); +} +.mat-mdc-tab:not(.mat-mdc-tab-disabled).mdc-tab--active .mdc-tab__text-label, +.mat-mdc-tab-link:not(.mat-mdc-tab-disabled).mdc-tab--active + .mdc-tab__text-label { + color: #3f51b5; +} +.mat-mdc-tab:not(.mat-mdc-tab-disabled) .mdc-tab-indicator__content--underline, +.mat-mdc-tab-link:not(.mat-mdc-tab-disabled) + .mdc-tab-indicator__content--underline { + border-color: var(--mdc-tab-indicator-active-indicator-color, #3f51b5); +} +.mdc-tab__ripple::before, +.mat-mdc-tab .mat-ripple-element, +.mat-mdc-tab-header-pagination .mat-ripple-element, +.mat-mdc-tab-link .mat-ripple-element { + background-color: #3f51b5; +} +.mat-mdc-tab-group.mat-accent + .mat-mdc-tab:not(.mat-mdc-tab-disabled).mdc-tab--active + .mdc-tab__text-label, +.mat-mdc-tab-group.mat-accent + .mat-mdc-tab-link:not(.mat-mdc-tab-disabled).mdc-tab--active + .mdc-tab__text-label, +.mat-mdc-tab-nav-bar.mat-accent + .mat-mdc-tab:not(.mat-mdc-tab-disabled).mdc-tab--active + .mdc-tab__text-label, +.mat-mdc-tab-nav-bar.mat-accent + .mat-mdc-tab-link:not(.mat-mdc-tab-disabled).mdc-tab--active + .mdc-tab__text-label { + color: #ff4081; +} +.mat-mdc-tab-group.mat-accent + .mat-mdc-tab:not(.mat-mdc-tab-disabled) + .mdc-tab-indicator__content--underline, +.mat-mdc-tab-group.mat-accent + .mat-mdc-tab-link:not(.mat-mdc-tab-disabled) + .mdc-tab-indicator__content--underline, +.mat-mdc-tab-nav-bar.mat-accent + .mat-mdc-tab:not(.mat-mdc-tab-disabled) + .mdc-tab-indicator__content--underline, +.mat-mdc-tab-nav-bar.mat-accent + .mat-mdc-tab-link:not(.mat-mdc-tab-disabled) + .mdc-tab-indicator__content--underline { + border-color: var(--mdc-tab-indicator-active-indicator-color, #ff4081); +} +.mat-mdc-tab-group.mat-accent .mdc-tab__ripple::before, +.mat-mdc-tab-group.mat-accent .mat-mdc-tab .mat-ripple-element, +.mat-mdc-tab-group.mat-accent + .mat-mdc-tab-header-pagination + .mat-ripple-element, +.mat-mdc-tab-group.mat-accent .mat-mdc-tab-link .mat-ripple-element, +.mat-mdc-tab-nav-bar.mat-accent .mdc-tab__ripple::before, +.mat-mdc-tab-nav-bar.mat-accent .mat-mdc-tab .mat-ripple-element, +.mat-mdc-tab-nav-bar.mat-accent + .mat-mdc-tab-header-pagination + .mat-ripple-element, +.mat-mdc-tab-nav-bar.mat-accent .mat-mdc-tab-link .mat-ripple-element { + background-color: #ff4081; +} +.mat-mdc-tab-group.mat-warn + .mat-mdc-tab:not(.mat-mdc-tab-disabled).mdc-tab--active + .mdc-tab__text-label, +.mat-mdc-tab-group.mat-warn + .mat-mdc-tab-link:not(.mat-mdc-tab-disabled).mdc-tab--active + .mdc-tab__text-label, +.mat-mdc-tab-nav-bar.mat-warn + .mat-mdc-tab:not(.mat-mdc-tab-disabled).mdc-tab--active + .mdc-tab__text-label, +.mat-mdc-tab-nav-bar.mat-warn + .mat-mdc-tab-link:not(.mat-mdc-tab-disabled).mdc-tab--active + .mdc-tab__text-label { + color: #f44336; +} +.mat-mdc-tab-group.mat-warn + .mat-mdc-tab:not(.mat-mdc-tab-disabled) + .mdc-tab-indicator__content--underline, +.mat-mdc-tab-group.mat-warn + .mat-mdc-tab-link:not(.mat-mdc-tab-disabled) + .mdc-tab-indicator__content--underline, +.mat-mdc-tab-nav-bar.mat-warn + .mat-mdc-tab:not(.mat-mdc-tab-disabled) + .mdc-tab-indicator__content--underline, +.mat-mdc-tab-nav-bar.mat-warn + .mat-mdc-tab-link:not(.mat-mdc-tab-disabled) + .mdc-tab-indicator__content--underline { + border-color: var(--mdc-tab-indicator-active-indicator-color, #f44336); +} +.mat-mdc-tab-group.mat-warn .mdc-tab__ripple::before, +.mat-mdc-tab-group.mat-warn .mat-mdc-tab .mat-ripple-element, +.mat-mdc-tab-group.mat-warn .mat-mdc-tab-header-pagination .mat-ripple-element, +.mat-mdc-tab-group.mat-warn .mat-mdc-tab-link .mat-ripple-element, +.mat-mdc-tab-nav-bar.mat-warn .mdc-tab__ripple::before, +.mat-mdc-tab-nav-bar.mat-warn .mat-mdc-tab .mat-ripple-element, +.mat-mdc-tab-nav-bar.mat-warn + .mat-mdc-tab-header-pagination + .mat-ripple-element, +.mat-mdc-tab-nav-bar.mat-warn .mat-mdc-tab-link .mat-ripple-element { + background-color: #f44336; +} +.mat-mdc-tab-group.mat-background-primary, +.mat-mdc-tab-nav-bar.mat-background-primary { + --mat-mdc-tab-header-with-background-background-color: #3f51b5; + --mat-mdc-tab-header-with-background-foreground-color: #fff; +} +.mat-mdc-tab-group.mat-background-accent, +.mat-mdc-tab-nav-bar.mat-background-accent { + --mat-mdc-tab-header-with-background-background-color: #ff4081; + --mat-mdc-tab-header-with-background-foreground-color: #fff; +} +.mat-mdc-tab-group.mat-background-warn, +.mat-mdc-tab-nav-bar.mat-background-warn { + --mat-mdc-tab-header-with-background-background-color: #f44336; + --mat-mdc-tab-header-with-background-foreground-color: #fff; +} +.mat-mdc-tab-header-pagination-chevron { + border-color: var(--mdc-theme-on-surface, #000); +} +.mat-mdc-tab-header .mdc-tab { + height: 48px; +} +.mdc-tab { + -moz-osx-font-smoothing: grayscale; + -webkit-font-smoothing: antialiased; + font-family: var( + --mdc-typography-button-font-family, + var(--mdc-typography-font-family, Roboto, sans-serif) + ); + font-size: var(--mdc-typography-button-font-size, 14px); + line-height: var(--mdc-typography-button-line-height, 36px); + font-weight: var(--mdc-typography-button-font-weight, 500); + letter-spacing: var(--mdc-typography-button-letter-spacing, 0.0892857143em); + -webkit-text-decoration: var(--mdc-typography-button-text-decoration, none); + text-decoration: var(--mdc-typography-button-text-decoration, none); + text-transform: var(--mdc-typography-button-text-transform, none); +} +.mat-mdc-checkbox .mdc-form-field { + color: var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87)); +} +.mat-mdc-checkbox .mat-ripple-element { + background-color: rgba(0, 0, 0, 0.1); +} +.mat-mdc-checkbox .mdc-checkbox__ripple { + background: #000; +} +.mat-mdc-checkbox.mat-primary { + --mdc-checkbox-selected-checkmark-color: #fff; + --mdc-checkbox-selected-focus-icon-color: #3f51b5; + --mdc-checkbox-selected-hover-icon-color: #3f51b5; + --mdc-checkbox-selected-icon-color: #3f51b5; + --mdc-checkbox-selected-pressed-icon-color: #3f51b5; + --mdc-checkbox-unselected-focus-icon-color: #212121; + --mdc-checkbox-unselected-hover-icon-color: #212121; + --mdc-checkbox-disabled-selected-icon-color: rgba(0, 0, 0, 0.38); + --mdc-checkbox-disabled-unselected-icon-color: rgba(0, 0, 0, 0.38); + --mdc-checkbox-unselected-icon-color: rgba(0, 0, 0, 0.54); + --mdc-checkbox-unselected-pressed-icon-color: rgba(0, 0, 0, 0.54); +} +.mat-mdc-checkbox.mat-primary + .mdc-checkbox--selected + ~ .mat-mdc-checkbox-ripple + .mat-ripple-element { + background-color: rgba(63, 81, 181, 0.1); +} +.mat-mdc-checkbox.mat-primary .mdc-checkbox--selected ~ .mdc-checkbox__ripple { + background: #3f51b5; +} +.mat-mdc-checkbox.mat-accent { + --mdc-checkbox-selected-checkmark-color: #fff; + --mdc-checkbox-selected-focus-icon-color: #ff4081; + --mdc-checkbox-selected-hover-icon-color: #ff4081; + --mdc-checkbox-selected-icon-color: #ff4081; + --mdc-checkbox-selected-pressed-icon-color: #ff4081; + --mdc-checkbox-unselected-focus-icon-color: #212121; + --mdc-checkbox-unselected-hover-icon-color: #212121; + --mdc-checkbox-disabled-selected-icon-color: rgba(0, 0, 0, 0.38); + --mdc-checkbox-disabled-unselected-icon-color: rgba(0, 0, 0, 0.38); + --mdc-checkbox-unselected-icon-color: rgba(0, 0, 0, 0.54); + --mdc-checkbox-unselected-pressed-icon-color: rgba(0, 0, 0, 0.54); +} +.mat-mdc-checkbox.mat-accent + .mdc-checkbox--selected + ~ .mat-mdc-checkbox-ripple + .mat-ripple-element { + background-color: rgba(255, 64, 129, 0.1); +} +.mat-mdc-checkbox.mat-accent .mdc-checkbox--selected ~ .mdc-checkbox__ripple { + background: #ff4081; +} +.mat-mdc-checkbox.mat-warn { + --mdc-checkbox-selected-checkmark-color: #fff; + --mdc-checkbox-selected-focus-icon-color: #f44336; + --mdc-checkbox-selected-hover-icon-color: #f44336; + --mdc-checkbox-selected-icon-color: #f44336; + --mdc-checkbox-selected-pressed-icon-color: #f44336; + --mdc-checkbox-unselected-focus-icon-color: #212121; + --mdc-checkbox-unselected-hover-icon-color: #212121; + --mdc-checkbox-disabled-selected-icon-color: rgba(0, 0, 0, 0.38); + --mdc-checkbox-disabled-unselected-icon-color: rgba(0, 0, 0, 0.38); + --mdc-checkbox-unselected-icon-color: rgba(0, 0, 0, 0.54); + --mdc-checkbox-unselected-pressed-icon-color: rgba(0, 0, 0, 0.54); +} +.mat-mdc-checkbox.mat-warn + .mdc-checkbox--selected + ~ .mat-mdc-checkbox-ripple + .mat-ripple-element { + background-color: rgba(244, 67, 54, 0.1); +} +.mat-mdc-checkbox.mat-warn .mdc-checkbox--selected ~ .mdc-checkbox__ripple { + background: #f44336; +} +.mat-mdc-checkbox-disabled label { + color: rgba(0, 0, 0, 0.38); +} +.mat-mdc-checkbox .mdc-checkbox { + padding: calc((var(--mdc-checkbox-ripple-size, 40px) - 18px) / 2); + margin: calc((var(--mdc-checkbox-touch-target-size, 40px) - 40px) / 2); +} +.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__background { + top: calc((var(--mdc-checkbox-ripple-size, 40px) - 18px) / 2); + left: calc((var(--mdc-checkbox-ripple-size, 40px) - 18px) / 2); +} +.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control { + top: calc((40px - var(--mdc-checkbox-touch-target-size, 40px)) / 2); + right: calc((40px - var(--mdc-checkbox-touch-target-size, 40px)) / 2); + left: calc((40px - var(--mdc-checkbox-touch-target-size, 40px)) / 2); + width: var(--mdc-checkbox-touch-target-size, 40px); + height: var(--mdc-checkbox-touch-target-size, 40px); +} +@media all and (-ms-high-contrast: none) { + .mdc-checkbox .mdc-checkbox__focus-ring { + display: none; + } +} +.mdc-form-field { + -moz-osx-font-smoothing: grayscale; + -webkit-font-smoothing: antialiased; + font-family: var( + --mdc-typography-body2-font-family, + var(--mdc-typography-font-family, Roboto, sans-serif) + ); + font-size: var(--mdc-typography-body2-font-size, 14px); + line-height: var(--mdc-typography-body2-line-height, 20px); + font-weight: var(--mdc-typography-body2-font-weight, 400); + letter-spacing: var(--mdc-typography-body2-letter-spacing, 0.0178571429em); + -webkit-text-decoration: var(--mdc-typography-body2-text-decoration, inherit); + text-decoration: var(--mdc-typography-body2-text-decoration, inherit); + text-transform: var(--mdc-typography-body2-text-transform, none); +} +.mat-mdc-button.mat-unthemed { + --mdc-text-button-label-text-color: #000; +} +.mat-mdc-button.mat-primary { + --mdc-text-button-label-text-color: #3f51b5; +} +.mat-mdc-button.mat-accent { + --mdc-text-button-label-text-color: #ff4081; +} +.mat-mdc-button.mat-warn { + --mdc-text-button-label-text-color: #f44336; +} +.mat-mdc-button[disabled][disabled] { + --mdc-text-button-disabled-label-text-color: rgba(0, 0, 0, 0.38); + --mdc-text-button-label-text-color: rgba(0, 0, 0, 0.38); +} +.mat-mdc-unelevated-button.mat-unthemed { + --mdc-filled-button-container-color: #fff; + --mdc-filled-button-label-text-color: #000; +} +.mat-mdc-unelevated-button.mat-primary { + --mdc-filled-button-container-color: #3f51b5; + --mdc-filled-button-label-text-color: #fff; +} +.mat-mdc-unelevated-button.mat-accent { + --mdc-filled-button-container-color: #ff4081; + --mdc-filled-button-label-text-color: #fff; +} +.mat-mdc-unelevated-button.mat-warn { + --mdc-filled-button-container-color: #f44336; + --mdc-filled-button-label-text-color: #fff; +} +.mat-mdc-unelevated-button[disabled][disabled] { + --mdc-filled-button-disabled-container-color: rgba(0, 0, 0, 0.12); + --mdc-filled-button-disabled-label-text-color: rgba(0, 0, 0, 0.38); + --mdc-filled-button-container-color: rgba(0, 0, 0, 0.12); + --mdc-filled-button-label-text-color: rgba(0, 0, 0, 0.38); +} +.mat-mdc-raised-button.mat-unthemed { + --mdc-protected-button-container-color: #fff; + --mdc-protected-button-label-text-color: #000; +} +.mat-mdc-raised-button.mat-primary { + --mdc-protected-button-container-color: #3f51b5; + --mdc-protected-button-label-text-color: #fff; +} +.mat-mdc-raised-button.mat-accent { + --mdc-protected-button-container-color: #ff4081; + --mdc-protected-button-label-text-color: #fff; +} +.mat-mdc-raised-button.mat-warn { + --mdc-protected-button-container-color: #f44336; + --mdc-protected-button-label-text-color: #fff; +} +.mat-mdc-raised-button[disabled][disabled] { + --mdc-protected-button-disabled-container-color: rgba(0, 0, 0, 0.12); + --mdc-protected-button-disabled-label-text-color: rgba(0, 0, 0, 0.38); + --mdc-protected-button-container-color: rgba(0, 0, 0, 0.12); + --mdc-protected-button-label-text-color: rgba(0, 0, 0, 0.38); + --mdc-protected-button-container-elevation: 0; +} +.mat-mdc-outlined-button { + --mdc-outlined-button-outline-color: rgba(0, 0, 0, 0.12); +} +.mat-mdc-outlined-button.mat-unthemed { + --mdc-outlined-button-label-text-color: #000; +} +.mat-mdc-outlined-button.mat-primary { + --mdc-outlined-button-label-text-color: #3f51b5; +} +.mat-mdc-outlined-button.mat-accent { + --mdc-outlined-button-label-text-color: #ff4081; +} +.mat-mdc-outlined-button.mat-warn { + --mdc-outlined-button-label-text-color: #f44336; +} +.mat-mdc-outlined-button[disabled][disabled] { + --mdc-outlined-button-label-text-color: rgba(0, 0, 0, 0.38); + --mdc-outlined-button-disabled-label-text-color: rgba(0, 0, 0, 0.38); + --mdc-outlined-button-outline-color: rgba(0, 0, 0, 0.12); + --mdc-outlined-button-disabled-outline-color: rgba(0, 0, 0, 0.12); +} +.mat-mdc-button, +.mat-mdc-outlined-button { + --mat-mdc-button-persistent-ripple-color: #000; + --mat-mdc-button-ripple-color: rgba(0, 0, 0, 0.1); +} +.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before, +.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before { + opacity: 0.04; +} +.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before, +.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before, +.mat-mdc-outlined-button.cdk-program-focused + .mat-mdc-button-persistent-ripple::before, +.mat-mdc-outlined-button.cdk-keyboard-focused + .mat-mdc-button-persistent-ripple::before { + opacity: 0.12; +} +.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before, +.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before { + opacity: 0.12; +} +.mat-mdc-button.mat-primary, +.mat-mdc-outlined-button.mat-primary { + --mat-mdc-button-persistent-ripple-color: #3f51b5; + --mat-mdc-button-ripple-color: rgba(63, 81, 181, 0.1); +} +.mat-mdc-button.mat-accent, +.mat-mdc-outlined-button.mat-accent { + --mat-mdc-button-persistent-ripple-color: #ff4081; + --mat-mdc-button-ripple-color: rgba(255, 64, 129, 0.1); +} +.mat-mdc-button.mat-warn, +.mat-mdc-outlined-button.mat-warn { + --mat-mdc-button-persistent-ripple-color: #f44336; + --mat-mdc-button-ripple-color: rgba(244, 67, 54, 0.1); +} +.mat-mdc-raised-button, +.mat-mdc-unelevated-button { + --mat-mdc-button-persistent-ripple-color: #000; + --mat-mdc-button-ripple-color: rgba(0, 0, 0, 0.1); +} +.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before, +.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before { + opacity: 0.04; +} +.mat-mdc-raised-button.cdk-program-focused + .mat-mdc-button-persistent-ripple::before, +.mat-mdc-raised-button.cdk-keyboard-focused + .mat-mdc-button-persistent-ripple::before, +.mat-mdc-unelevated-button.cdk-program-focused + .mat-mdc-button-persistent-ripple::before, +.mat-mdc-unelevated-button.cdk-keyboard-focused + .mat-mdc-button-persistent-ripple::before { + opacity: 0.12; +} +.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before, +.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before { + opacity: 0.12; +} +.mat-mdc-raised-button.mat-primary, +.mat-mdc-unelevated-button.mat-primary { + --mat-mdc-button-persistent-ripple-color: #fff; + --mat-mdc-button-ripple-color: rgba(255, 255, 255, 0.1); +} +.mat-mdc-raised-button.mat-accent, +.mat-mdc-unelevated-button.mat-accent { + --mat-mdc-button-persistent-ripple-color: #fff; + --mat-mdc-button-ripple-color: rgba(255, 255, 255, 0.1); +} +.mat-mdc-raised-button.mat-warn, +.mat-mdc-unelevated-button.mat-warn { + --mat-mdc-button-persistent-ripple-color: #fff; + --mat-mdc-button-ripple-color: rgba(255, 255, 255, 0.1); +} +.mat-mdc-button.mat-mdc-button-base, +.mat-mdc-raised-button.mat-mdc-button-base, +.mat-mdc-unelevated-button.mat-mdc-button-base, +.mat-mdc-outlined-button.mat-mdc-button-base { + height: 36px; +} +.mdc-button { + -moz-osx-font-smoothing: grayscale; + -webkit-font-smoothing: antialiased; + font-family: var( + --mdc-typography-button-font-family, + var(--mdc-typography-font-family, Roboto, sans-serif) + ); + font-size: var(--mdc-typography-button-font-size, 14px); + line-height: var(--mdc-typography-button-line-height, 36px); + font-weight: var(--mdc-typography-button-font-weight, 500); + letter-spacing: var(--mdc-typography-button-letter-spacing, 0.0892857143em); + -webkit-text-decoration: var(--mdc-typography-button-text-decoration, none); + text-decoration: var(--mdc-typography-button-text-decoration, none); + text-transform: var(--mdc-typography-button-text-transform, none); +} +.mat-mdc-icon-button { + --mat-mdc-button-persistent-ripple-color: #000; + --mat-mdc-button-ripple-color: rgba(0, 0, 0, 0.1); +} +.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before { + opacity: 0.04; +} +.mat-mdc-icon-button.cdk-program-focused + .mat-mdc-button-persistent-ripple::before, +.mat-mdc-icon-button.cdk-keyboard-focused + .mat-mdc-button-persistent-ripple::before { + opacity: 0.12; +} +.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before { + opacity: 0.12; +} +.mat-mdc-icon-button.mat-primary { + --mat-mdc-button-persistent-ripple-color: #3f51b5; + --mat-mdc-button-ripple-color: rgba(63, 81, 181, 0.1); +} +.mat-mdc-icon-button.mat-accent { + --mat-mdc-button-persistent-ripple-color: #ff4081; + --mat-mdc-button-ripple-color: rgba(255, 64, 129, 0.1); +} +.mat-mdc-icon-button.mat-warn { + --mat-mdc-button-persistent-ripple-color: #f44336; + --mat-mdc-button-ripple-color: rgba(244, 67, 54, 0.1); +} +.mat-mdc-icon-button.mat-primary { + --mdc-icon-button-icon-color: #3f51b5; +} +.mat-mdc-icon-button.mat-accent { + --mdc-icon-button-icon-color: #ff4081; +} +.mat-mdc-icon-button.mat-warn { + --mdc-icon-button-icon-color: #f44336; +} +.mat-mdc-icon-button[disabled][disabled] { + --mdc-icon-button-icon-color: rgba(0, 0, 0, 0.38); + --mdc-icon-button-disabled-icon-color: rgba(0, 0, 0, 0.38); +} +.mat-mdc-icon-button.mat-mdc-button-base { + width: 48px; + height: 48px; + padding: 12px; +} +.mat-mdc-icon-button.mat-mdc-button-base .mdc-icon-button__focus-ring { + max-height: 48px; + max-width: 48px; +} +.mat-mdc-icon-button.mat-mdc-button-base.mdc-icon-button--reduced-size + .mdc-icon-button__ripple { + width: 40px; + height: 40px; + margin-top: 4px; + margin-bottom: 4px; + margin-right: 4px; + margin-left: 4px; +} +.mat-mdc-icon-button.mat-mdc-button-base.mdc-icon-button--reduced-size + .mdc-icon-button__focus-ring { + max-height: 40px; + max-width: 40px; +} +.mat-mdc-icon-button.mat-mdc-button-base .mdc-icon-button__touch { + position: absolute; + top: 50%; + height: 48px; + left: 50%; + width: 48px; + transform: translate(-50%, -50%); +} +.mat-mdc-fab, +.mat-mdc-mini-fab { + --mat-mdc-button-persistent-ripple-color: #000; + --mat-mdc-button-ripple-color: rgba(0, 0, 0, 0.1); +} +.mat-mdc-fab:hover .mat-mdc-button-persistent-ripple::before, +.mat-mdc-mini-fab:hover .mat-mdc-button-persistent-ripple::before { + opacity: 0.04; +} +.mat-mdc-fab.cdk-program-focused .mat-mdc-button-persistent-ripple::before, +.mat-mdc-fab.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before, +.mat-mdc-mini-fab.cdk-program-focused .mat-mdc-button-persistent-ripple::before, +.mat-mdc-mini-fab.cdk-keyboard-focused + .mat-mdc-button-persistent-ripple::before { + opacity: 0.12; +} +.mat-mdc-fab:active .mat-mdc-button-persistent-ripple::before, +.mat-mdc-mini-fab:active .mat-mdc-button-persistent-ripple::before { + opacity: 0.12; +} +.mat-mdc-fab.mat-primary, +.mat-mdc-mini-fab.mat-primary { + --mat-mdc-button-persistent-ripple-color: #fff; + --mat-mdc-button-ripple-color: rgba(255, 255, 255, 0.1); +} +.mat-mdc-fab.mat-accent, +.mat-mdc-mini-fab.mat-accent { + --mat-mdc-button-persistent-ripple-color: #fff; + --mat-mdc-button-ripple-color: rgba(255, 255, 255, 0.1); +} +.mat-mdc-fab.mat-warn, +.mat-mdc-mini-fab.mat-warn { + --mat-mdc-button-persistent-ripple-color: #fff; + --mat-mdc-button-ripple-color: rgba(255, 255, 255, 0.1); +} +.mat-mdc-fab.mat-unthemed, +.mat-mdc-mini-fab.mat-unthemed { + --mdc-fab-container-color: #fff; + --mdc-fab-icon-color: #000; + --mat-mdc-fab-color: #000; +} +.mat-mdc-fab.mat-primary, +.mat-mdc-mini-fab.mat-primary { + --mdc-fab-container-color: #3f51b5; + --mdc-fab-icon-color: #fff; + --mat-mdc-fab-color: #fff; +} +.mat-mdc-fab.mat-accent, +.mat-mdc-mini-fab.mat-accent { + --mdc-fab-container-color: #ff4081; + --mdc-fab-icon-color: #fff; + --mat-mdc-fab-color: #fff; +} +.mat-mdc-fab.mat-warn, +.mat-mdc-mini-fab.mat-warn { + --mdc-fab-container-color: #f44336; + --mdc-fab-icon-color: #fff; + --mat-mdc-fab-color: #fff; +} +.mat-mdc-fab[disabled][disabled], +.mat-mdc-mini-fab[disabled][disabled] { + --mdc-fab-container-color: rgba(0, 0, 0, 0.12); + --mdc-fab-icon-color: rgba(0, 0, 0, 0.38); + --mat-mdc-fab-color: rgba(0, 0, 0, 0.38); +} +.mdc-fab--extended { + -moz-osx-font-smoothing: grayscale; + -webkit-font-smoothing: antialiased; + font-family: var( + --mdc-typography-button-font-family, + var(--mdc-typography-font-family, Roboto, sans-serif) + ); + font-size: var(--mdc-typography-button-font-size, 14px); + line-height: var(--mdc-typography-button-line-height, 36px); + font-weight: var(--mdc-typography-button-font-weight, 500); + letter-spacing: var(--mdc-typography-button-letter-spacing, 0.0892857143em); + -webkit-text-decoration: var(--mdc-typography-button-text-decoration, none); + text-decoration: var(--mdc-typography-button-text-decoration, none); + text-transform: var(--mdc-typography-button-text-transform, none); +} +.mat-mdc-snack-bar-container { + --mat-mdc-snack-bar-button-color: #ff4081; + --mdc-snackbar-container-color: #333333; + --mdc-snackbar-supporting-text-color: rgba(255, 255, 255, 0.87); +} +.mat-mdc-snack-bar-container { + --mdc-snackbar-supporting-text-font: Roboto, sans-serif; + --mdc-snackbar-supporting-text-line-height: 20px; + --mdc-snackbar-supporting-text-size: 14px; + --mdc-snackbar-supporting-text-weight: 400; +} +.mdc-data-table { + background-color: var(--mdc-theme-surface, #fff); + border-color: rgba(0, 0, 0, 0.12); +} +.mdc-data-table__row { + background-color: inherit; +} +.mdc-data-table__header-cell { + background-color: var(--mdc-theme-surface, #fff); +} +.mdc-data-table__row--selected { + background-color: rgba(63, 81, 181, 0.04); +} +.mdc-data-table__pagination-rows-per-page-select--outlined:not( + .mdc-select--disabled + ) + .mdc-notched-outline__leading, +.mdc-data-table__pagination-rows-per-page-select--outlined:not( + .mdc-select--disabled + ) + .mdc-notched-outline__notch, +.mdc-data-table__pagination-rows-per-page-select--outlined:not( + .mdc-select--disabled + ) + .mdc-notched-outline__trailing { + border-color: rgba(0, 0, 0, 0.12); +} +.mdc-data-table__cell, +.mdc-data-table__header-cell { + border-bottom-color: rgba(0, 0, 0, 0.12); +} +.mdc-data-table__pagination { + border-top-color: rgba(0, 0, 0, 0.12); +} +.mdc-data-table__row:not(.mdc-data-table__row--selected):hover { + background-color: rgba(0, 0, 0, 0.04); +} +.mdc-data-table__header-cell { + color: rgba(0, 0, 0, 0.87); +} +.mdc-data-table__pagination-total, +.mdc-data-table__pagination-rows-per-page-label, +.mdc-data-table__cell { + color: rgba(0, 0, 0, 0.87); +} +.mat-mdc-table { + background: #fff; +} +.mat-mdc-table .mdc-data-table__row { + height: 52px; +} +.mat-mdc-table .mdc-data-table__pagination { + min-height: 52px; +} +.mat-mdc-table .mdc-data-table__header-row { + height: 56px; +} +.mdc-data-table__content { + -moz-osx-font-smoothing: grayscale; + -webkit-font-smoothing: antialiased; + font-family: var( + --mdc-typography-body2-font-family, + var(--mdc-typography-font-family, Roboto, sans-serif) + ); + font-size: var(--mdc-typography-body2-font-size, 14px); + line-height: var(--mdc-typography-body2-line-height, 20px); + font-weight: var(--mdc-typography-body2-font-weight, 400); + letter-spacing: var(--mdc-typography-body2-letter-spacing, 0.0178571429em); + -webkit-text-decoration: var(--mdc-typography-body2-text-decoration, inherit); + text-decoration: var(--mdc-typography-body2-text-decoration, inherit); + text-transform: var(--mdc-typography-body2-text-transform, none); +} +.mdc-data-table__cell { + -moz-osx-font-smoothing: grayscale; + -webkit-font-smoothing: antialiased; + font-family: var( + --mdc-typography-body2-font-family, + var(--mdc-typography-font-family, Roboto, sans-serif) + ); + font-size: var(--mdc-typography-body2-font-size, 14px); + line-height: var(--mdc-typography-body2-line-height, 20px); + font-weight: var(--mdc-typography-body2-font-weight, 400); + letter-spacing: var(--mdc-typography-body2-letter-spacing, 0.0178571429em); + -webkit-text-decoration: var(--mdc-typography-body2-text-decoration, inherit); + text-decoration: var(--mdc-typography-body2-text-decoration, inherit); + text-transform: var(--mdc-typography-body2-text-transform, none); +} +.mdc-data-table__header-cell { + -moz-osx-font-smoothing: grayscale; + -webkit-font-smoothing: antialiased; + font-family: var( + --mdc-typography-subtitle2-font-family, + var(--mdc-typography-font-family, Roboto, sans-serif) + ); + font-size: var(--mdc-typography-subtitle2-font-size, 14px); + line-height: var(--mdc-typography-subtitle2-line-height, 22px); + font-weight: var(--mdc-typography-subtitle2-font-weight, 500); + letter-spacing: var( + --mdc-typography-subtitle2-letter-spacing, + 0.0071428571em + ); + -webkit-text-decoration: var( + --mdc-typography-subtitle2-text-decoration, + inherit + ); + text-decoration: var(--mdc-typography-subtitle2-text-decoration, inherit); + text-transform: var(--mdc-typography-subtitle2-text-transform, none); +} +.mat-mdc-progress-spinner { + --mdc-circular-progress-active-indicator-color: #3f51b5; +} +.mat-mdc-progress-spinner.mat-accent { + --mdc-circular-progress-active-indicator-color: #ff4081; +} +.mat-mdc-progress-spinner.mat-warn { + --mdc-circular-progress-active-indicator-color: #f44336; +} +.mat-badge { + position: relative; +} +.mat-badge.mat-badge { + overflow: visible; +} +.mat-badge-hidden .mat-badge-content { + display: none; +} +.mat-badge-content { + position: absolute; + text-align: center; + display: inline-block; + border-radius: 50%; + transition: transform 200ms ease-in-out; + transform: scale(0.6); + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + pointer-events: none; +} +.ng-animate-disabled .mat-badge-content, +.mat-badge-content._mat-animation-noopable { + transition: none; +} +.mat-badge-content.mat-badge-active { + transform: none; +} +.mat-badge-small .mat-badge-content { + width: 16px; + height: 16px; + line-height: 16px; +} +.mat-badge-small.mat-badge-above .mat-badge-content { + top: -8px; +} +.mat-badge-small.mat-badge-below .mat-badge-content { + bottom: -8px; +} +.mat-badge-small.mat-badge-before .mat-badge-content { + left: -16px; +} +[dir="rtl"] .mat-badge-small.mat-badge-before .mat-badge-content { + left: auto; + right: -16px; +} +.mat-badge-small.mat-badge-after .mat-badge-content { + right: -16px; +} +[dir="rtl"] .mat-badge-small.mat-badge-after .mat-badge-content { + right: auto; + left: -16px; +} +.mat-badge-small.mat-badge-overlap.mat-badge-before .mat-badge-content { + left: -8px; +} +[dir="rtl"] + .mat-badge-small.mat-badge-overlap.mat-badge-before + .mat-badge-content { + left: auto; + right: -8px; +} +.mat-badge-small.mat-badge-overlap.mat-badge-after .mat-badge-content { + right: -8px; +} +[dir="rtl"] + .mat-badge-small.mat-badge-overlap.mat-badge-after + .mat-badge-content { + right: auto; + left: -8px; +} +.mat-badge-medium .mat-badge-content { + width: 22px; + height: 22px; + line-height: 22px; +} +.mat-badge-medium.mat-badge-above .mat-badge-content { + top: -11px; +} +.mat-badge-medium.mat-badge-below .mat-badge-content { + bottom: -11px; +} +.mat-badge-medium.mat-badge-before .mat-badge-content { + left: -22px; +} +[dir="rtl"] .mat-badge-medium.mat-badge-before .mat-badge-content { + left: auto; + right: -22px; +} +.mat-badge-medium.mat-badge-after .mat-badge-content { + right: -22px; +} +[dir="rtl"] .mat-badge-medium.mat-badge-after .mat-badge-content { + right: auto; + left: -22px; +} +.mat-badge-medium.mat-badge-overlap.mat-badge-before .mat-badge-content { + left: -11px; +} +[dir="rtl"] + .mat-badge-medium.mat-badge-overlap.mat-badge-before + .mat-badge-content { + left: auto; + right: -11px; +} +.mat-badge-medium.mat-badge-overlap.mat-badge-after .mat-badge-content { + right: -11px; +} +[dir="rtl"] + .mat-badge-medium.mat-badge-overlap.mat-badge-after + .mat-badge-content { + right: auto; + left: -11px; +} +.mat-badge-large .mat-badge-content { + width: 28px; + height: 28px; + line-height: 28px; +} +.mat-badge-large.mat-badge-above .mat-badge-content { + top: -14px; +} +.mat-badge-large.mat-badge-below .mat-badge-content { + bottom: -14px; +} +.mat-badge-large.mat-badge-before .mat-badge-content { + left: -28px; +} +[dir="rtl"] .mat-badge-large.mat-badge-before .mat-badge-content { + left: auto; + right: -28px; +} +.mat-badge-large.mat-badge-after .mat-badge-content { + right: -28px; +} +[dir="rtl"] .mat-badge-large.mat-badge-after .mat-badge-content { + right: auto; + left: -28px; +} +.mat-badge-large.mat-badge-overlap.mat-badge-before .mat-badge-content { + left: -14px; +} +[dir="rtl"] + .mat-badge-large.mat-badge-overlap.mat-badge-before + .mat-badge-content { + left: auto; + right: -14px; +} +.mat-badge-large.mat-badge-overlap.mat-badge-after .mat-badge-content { + right: -14px; +} +[dir="rtl"] + .mat-badge-large.mat-badge-overlap.mat-badge-after + .mat-badge-content { + right: auto; + left: -14px; +} +.mat-badge-content { + color: #fff; + background: #3f51b5; +} +.cdk-high-contrast-active .mat-badge-content { + outline: solid 1px; + border-radius: 0; +} +.mat-badge-accent .mat-badge-content { + background: #ff4081; + color: #fff; +} +.mat-badge-warn .mat-badge-content { + color: #fff; + background: #f44336; +} +.mat-badge-disabled .mat-badge-content { + background: #b9b9b9; + color: rgba(0, 0, 0, 0.38); +} +.mat-badge-content { + font-weight: 600; + font-size: 12px; + font-family: Roboto, sans-serif; +} +.mat-badge-small .mat-badge-content { + font-size: 9px; +} +.mat-badge-large .mat-badge-content { + font-size: 24px; +} +.mat-bottom-sheet-container { + box-shadow: 0px 8px 10px -5px rgba(0, 0, 0, 0.2), + 0px 16px 24px 2px rgba(0, 0, 0, 0.14), 0px 6px 30px 5px rgba(0, 0, 0, 0.12); + background: #fff; + color: rgba(0, 0, 0, 0.87); +} +.mat-bottom-sheet-container { + font: 400 14px/20px Roboto, sans-serif; + letter-spacing: 0.0178571429em; +} +.mat-button-toggle-standalone:not([class*="mat-elevation-z"]), +.mat-button-toggle-group:not([class*="mat-elevation-z"]) { + box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), + 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12); +} +.mat-button-toggle-standalone.mat-button-toggle-appearance-standard:not( + [class*="mat-elevation-z"] + ), +.mat-button-toggle-group-appearance-standard:not([class*="mat-elevation-z"]) { + box-shadow: none; +} +.mat-button-toggle { + color: rgba(0, 0, 0, 0.38); +} +.mat-button-toggle .mat-button-toggle-focus-overlay { + background-color: rgba(0, 0, 0, 0.12); +} +.mat-button-toggle-appearance-standard { + color: rgba(0, 0, 0, 0.87); + background: #fff; +} +.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay { + background-color: #000; +} +.mat-button-toggle-group-appearance-standard + .mat-button-toggle + + .mat-button-toggle { + border-left: solid 1px #e0e0e0; +} +[dir="rtl"] + .mat-button-toggle-group-appearance-standard + .mat-button-toggle + + .mat-button-toggle { + border-left: none; + border-right: solid 1px #e0e0e0; +} +.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical + .mat-button-toggle + + .mat-button-toggle { + border-left: none; + border-right: none; + border-top: solid 1px #e0e0e0; +} +.mat-button-toggle-checked { + background-color: #e0e0e0; + color: rgba(0, 0, 0, 0.54); +} +.mat-button-toggle-checked.mat-button-toggle-appearance-standard { + color: rgba(0, 0, 0, 0.87); +} +.mat-button-toggle-disabled { + color: rgba(0, 0, 0, 0.26); + background-color: #eee; +} +.mat-button-toggle-disabled.mat-button-toggle-appearance-standard { + background: #fff; +} +.mat-button-toggle-disabled.mat-button-toggle-checked { + background-color: #bdbdbd; +} +.mat-button-toggle-standalone.mat-button-toggle-appearance-standard, +.mat-button-toggle-group-appearance-standard { + border: solid 1px #e0e0e0; +} +.mat-button-toggle-appearance-standard .mat-button-toggle-label-content { + line-height: 48px; +} +.mat-button-toggle { + font-family: Roboto, sans-serif; +} +.mat-calendar-arrow { + fill: rgba(0, 0, 0, 0.54); +} +.mat-datepicker-toggle, +.mat-datepicker-content .mat-calendar-next-button, +.mat-datepicker-content .mat-calendar-previous-button { + color: rgba(0, 0, 0, 0.54); +} +.mat-calendar-table-header-divider::after { + background: rgba(0, 0, 0, 0.12); +} +.mat-calendar-table-header, +.mat-calendar-body-label { + color: rgba(0, 0, 0, 0.54); +} +.mat-calendar-body-cell-content, +.mat-date-range-input-separator { + color: rgba(0, 0, 0, 0.87); + border-color: rgba(0, 0, 0, 0); +} +.mat-calendar-body-disabled + > .mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not( + .mat-calendar-body-comparison-identical + ) { + color: rgba(0, 0, 0, 0.38); +} +.mat-form-field-disabled .mat-date-range-input-separator { + color: rgba(0, 0, 0, 0.38); +} +.mat-calendar-body-in-preview { + color: rgba(0, 0, 0, 0.24); +} +.mat-calendar-body-today:not(.mat-calendar-body-selected):not( + .mat-calendar-body-comparison-identical + ) { + border-color: rgba(0, 0, 0, 0.38); +} +.mat-calendar-body-disabled + > .mat-calendar-body-today:not(.mat-calendar-body-selected):not( + .mat-calendar-body-comparison-identical + ) { + border-color: rgba(0, 0, 0, 0.18); +} +.mat-calendar-body-in-range::before { + background: rgba(63, 81, 181, 0.2); +} +.mat-calendar-body-comparison-identical, +.mat-calendar-body-in-comparison-range::before { + background: rgba(249, 171, 0, 0.2); +} +.mat-calendar-body-comparison-bridge-start::before, +[dir="rtl"] .mat-calendar-body-comparison-bridge-end::before { + background: linear-gradient( + to right, + rgba(63, 81, 181, 0.2) 50%, + rgba(249, 171, 0, 0.2) 50% + ); +} +.mat-calendar-body-comparison-bridge-end::before, +[dir="rtl"] .mat-calendar-body-comparison-bridge-start::before { + background: linear-gradient( + to left, + rgba(63, 81, 181, 0.2) 50%, + rgba(249, 171, 0, 0.2) 50% + ); +} +.mat-calendar-body-in-range > .mat-calendar-body-comparison-identical, +.mat-calendar-body-in-comparison-range.mat-calendar-body-in-range::after { + background: #a8dab5; +} +.mat-calendar-body-comparison-identical.mat-calendar-body-selected, +.mat-calendar-body-in-comparison-range > .mat-calendar-body-selected { + background: #46a35e; +} +.mat-calendar-body-selected { + background-color: #3f51b5; + color: #fff; +} +.mat-calendar-body-disabled > .mat-calendar-body-selected { + background-color: rgba(63, 81, 181, 0.4); +} +.mat-calendar-body-today.mat-calendar-body-selected { + box-shadow: inset 0 0 0 1px #fff; +} +.cdk-keyboard-focused + .mat-calendar-body-active + > .mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not( + .mat-calendar-body-comparison-identical + ), +.cdk-program-focused + .mat-calendar-body-active + > .mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not( + .mat-calendar-body-comparison-identical + ) { + background-color: rgba(63, 81, 181, 0.3); +} +@media (hover: hover) { + .mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover + > .mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not( + .mat-calendar-body-comparison-identical + ) { + background-color: rgba(63, 81, 181, 0.3); + } +} +.mat-datepicker-content { + box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), + 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12); + background-color: #fff; + color: rgba(0, 0, 0, 0.87); +} +.mat-datepicker-content.mat-accent .mat-calendar-body-in-range::before { + background: rgba(255, 64, 129, 0.2); +} +.mat-datepicker-content.mat-accent .mat-calendar-body-comparison-identical, +.mat-datepicker-content.mat-accent + .mat-calendar-body-in-comparison-range::before { + background: rgba(249, 171, 0, 0.2); +} +.mat-datepicker-content.mat-accent + .mat-calendar-body-comparison-bridge-start::before, +.mat-datepicker-content.mat-accent + [dir="rtl"] + .mat-calendar-body-comparison-bridge-end::before { + background: linear-gradient( + to right, + rgba(255, 64, 129, 0.2) 50%, + rgba(249, 171, 0, 0.2) 50% + ); +} +.mat-datepicker-content.mat-accent + .mat-calendar-body-comparison-bridge-end::before, +.mat-datepicker-content.mat-accent + [dir="rtl"] + .mat-calendar-body-comparison-bridge-start::before { + background: linear-gradient( + to left, + rgba(255, 64, 129, 0.2) 50%, + rgba(249, 171, 0, 0.2) 50% + ); +} +.mat-datepicker-content.mat-accent + .mat-calendar-body-in-range + > .mat-calendar-body-comparison-identical, +.mat-datepicker-content.mat-accent + .mat-calendar-body-in-comparison-range.mat-calendar-body-in-range::after { + background: #a8dab5; +} +.mat-datepicker-content.mat-accent + .mat-calendar-body-comparison-identical.mat-calendar-body-selected, +.mat-datepicker-content.mat-accent + .mat-calendar-body-in-comparison-range + > .mat-calendar-body-selected { + background: #46a35e; +} +.mat-datepicker-content.mat-accent .mat-calendar-body-selected { + background-color: #ff4081; + color: #fff; +} +.mat-datepicker-content.mat-accent + .mat-calendar-body-disabled + > .mat-calendar-body-selected { + background-color: rgba(255, 64, 129, 0.4); +} +.mat-datepicker-content.mat-accent + .mat-calendar-body-today.mat-calendar-body-selected { + box-shadow: inset 0 0 0 1px #fff; +} +.mat-datepicker-content.mat-accent + .cdk-keyboard-focused + .mat-calendar-body-active + > .mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not( + .mat-calendar-body-comparison-identical + ), +.mat-datepicker-content.mat-accent + .cdk-program-focused + .mat-calendar-body-active + > .mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not( + .mat-calendar-body-comparison-identical + ) { + background-color: rgba(255, 64, 129, 0.3); +} +@media (hover: hover) { + .mat-datepicker-content.mat-accent + .mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover + > .mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not( + .mat-calendar-body-comparison-identical + ) { + background-color: rgba(255, 64, 129, 0.3); + } +} +.mat-datepicker-content.mat-warn .mat-calendar-body-in-range::before { + background: rgba(244, 67, 54, 0.2); +} +.mat-datepicker-content.mat-warn .mat-calendar-body-comparison-identical, +.mat-datepicker-content.mat-warn + .mat-calendar-body-in-comparison-range::before { + background: rgba(249, 171, 0, 0.2); +} +.mat-datepicker-content.mat-warn + .mat-calendar-body-comparison-bridge-start::before, +.mat-datepicker-content.mat-warn + [dir="rtl"] + .mat-calendar-body-comparison-bridge-end::before { + background: linear-gradient( + to right, + rgba(244, 67, 54, 0.2) 50%, + rgba(249, 171, 0, 0.2) 50% + ); +} +.mat-datepicker-content.mat-warn + .mat-calendar-body-comparison-bridge-end::before, +.mat-datepicker-content.mat-warn + [dir="rtl"] + .mat-calendar-body-comparison-bridge-start::before { + background: linear-gradient( + to left, + rgba(244, 67, 54, 0.2) 50%, + rgba(249, 171, 0, 0.2) 50% + ); +} +.mat-datepicker-content.mat-warn + .mat-calendar-body-in-range + > .mat-calendar-body-comparison-identical, +.mat-datepicker-content.mat-warn + .mat-calendar-body-in-comparison-range.mat-calendar-body-in-range::after { + background: #a8dab5; +} +.mat-datepicker-content.mat-warn + .mat-calendar-body-comparison-identical.mat-calendar-body-selected, +.mat-datepicker-content.mat-warn + .mat-calendar-body-in-comparison-range + > .mat-calendar-body-selected { + background: #46a35e; +} +.mat-datepicker-content.mat-warn .mat-calendar-body-selected { + background-color: #f44336; + color: #fff; +} +.mat-datepicker-content.mat-warn + .mat-calendar-body-disabled + > .mat-calendar-body-selected { + background-color: rgba(244, 67, 54, 0.4); +} +.mat-datepicker-content.mat-warn + .mat-calendar-body-today.mat-calendar-body-selected { + box-shadow: inset 0 0 0 1px #fff; +} +.mat-datepicker-content.mat-warn + .cdk-keyboard-focused + .mat-calendar-body-active + > .mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not( + .mat-calendar-body-comparison-identical + ), +.mat-datepicker-content.mat-warn + .cdk-program-focused + .mat-calendar-body-active + > .mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not( + .mat-calendar-body-comparison-identical + ) { + background-color: rgba(244, 67, 54, 0.3); +} +@media (hover: hover) { + .mat-datepicker-content.mat-warn + .mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover + > .mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not( + .mat-calendar-body-comparison-identical + ) { + background-color: rgba(244, 67, 54, 0.3); + } +} +.mat-datepicker-content-touch { + box-shadow: 0px 11px 15px -7px rgba(0, 0, 0, 0.2), + 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12); +} +.mat-datepicker-toggle-active { + color: #3f51b5; +} +.mat-datepicker-toggle-active.mat-accent { + color: #ff4081; +} +.mat-datepicker-toggle-active.mat-warn { + color: #f44336; +} +.mat-date-range-input-inner[disabled] { + color: rgba(0, 0, 0, 0.38); +} +.mat-calendar-controls .mat-mdc-icon-button.mat-mdc-button-base { + width: 40px; + height: 40px; + padding: 8px; +} +.mat-calendar-controls + .mat-mdc-icon-button.mat-mdc-button-base + .mdc-icon-button__focus-ring { + max-height: 40px; + max-width: 40px; +} +.mat-calendar-controls + .mat-mdc-icon-button.mat-mdc-button-base.mdc-icon-button--reduced-size + .mdc-icon-button__ripple { + width: 40px; + height: 40px; + margin-top: 0px; + margin-bottom: 0px; + margin-right: 0px; + margin-left: 0px; +} +.mat-calendar-controls + .mat-mdc-icon-button.mat-mdc-button-base.mdc-icon-button--reduced-size + .mdc-icon-button__focus-ring { + max-height: 40px; + max-width: 40px; +} +.mat-calendar-controls + .mat-mdc-icon-button.mat-mdc-button-base + .mdc-icon-button__touch { + position: absolute; + top: 50%; + height: 40px; + left: 50%; + width: 40px; + transform: translate(-50%, -50%); +} +.mat-calendar-controls + .mat-mdc-icon-button.mat-mdc-button-base + .mat-mdc-button-touch-target { + display: none; +} +.mat-calendar { + font-family: Roboto, sans-serif; +} +.mat-calendar-body { + font-size: 13px; +} +.mat-calendar-body-label, +.mat-calendar-period-button { + font-size: 14px; + font-weight: 500; +} +.mat-calendar-table-header th { + font-size: 11px; + font-weight: 400; +} +.mat-divider { + border-top-color: rgba(0, 0, 0, 0.12); +} +.mat-divider-vertical { + border-right-color: rgba(0, 0, 0, 0.12); +} +.mat-expansion-panel { + background: #fff; + color: rgba(0, 0, 0, 0.87); +} +.mat-expansion-panel:not([class*="mat-elevation-z"]) { + box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), + 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12); +} +.mat-action-row { + border-top-color: rgba(0, 0, 0, 0.12); +} +.mat-expansion-panel + .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled="true"]), +.mat-expansion-panel + .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled="true"]), +.mat-expansion-panel:not(.mat-expanded) + .mat-expansion-panel-header:hover:not([aria-disabled="true"]) { + background: rgba(0, 0, 0, 0.04); +} +@media (hover: none) { + .mat-expansion-panel:not(.mat-expanded):not([aria-disabled="true"]) + .mat-expansion-panel-header:hover { + background: #fff; + } +} +.mat-expansion-panel-header-title { + color: rgba(0, 0, 0, 0.87); +} +.mat-expansion-panel-header-description, +.mat-expansion-indicator::after { + color: rgba(0, 0, 0, 0.54); +} +.mat-expansion-panel-header[aria-disabled="true"] { + color: rgba(0, 0, 0, 0.26); +} +.mat-expansion-panel-header[aria-disabled="true"] + .mat-expansion-panel-header-title, +.mat-expansion-panel-header[aria-disabled="true"] + .mat-expansion-panel-header-description { + color: inherit; +} +.mat-expansion-panel-header { + height: 48px; +} +.mat-expansion-panel-header.mat-expanded { + height: 64px; +} +.mat-expansion-panel-header { + font-family: Roboto, sans-serif; + font-size: 14px; + font-weight: 500; +} +.mat-expansion-panel-content { + font: 400 14px/20px Roboto, sans-serif; + letter-spacing: 0.0178571429em; +} +.mat-grid-tile-header, +.mat-grid-tile-footer { + font-size: 14px; +} +.mat-grid-tile-header .mat-line, +.mat-grid-tile-footer .mat-line { + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + display: block; + box-sizing: border-box; +} +.mat-grid-tile-header .mat-line:nth-child(n + 2), +.mat-grid-tile-footer .mat-line:nth-child(n + 2) { + font-size: 12px; +} +.mat-icon.mat-primary { + color: #3f51b5; +} +.mat-icon.mat-accent { + color: #ff4081; +} +.mat-icon.mat-warn { + color: #f44336; +} +.mat-drawer-container { + background-color: #fafafa; + color: rgba(0, 0, 0, 0.87); +} +.mat-drawer { + background-color: #fff; + color: rgba(0, 0, 0, 0.87); +} +.mat-drawer.mat-drawer-push { + background-color: #fff; +} +.mat-drawer:not(.mat-drawer-side) { + box-shadow: 0px 8px 10px -5px rgba(0, 0, 0, 0.2), + 0px 16px 24px 2px rgba(0, 0, 0, 0.14), 0px 6px 30px 5px rgba(0, 0, 0, 0.12); +} +.mat-drawer-side { + border-right: solid 1px rgba(0, 0, 0, 0.12); +} +.mat-drawer-side.mat-drawer-end { + border-left: solid 1px rgba(0, 0, 0, 0.12); + border-right: none; +} +[dir="rtl"] .mat-drawer-side { + border-left: solid 1px rgba(0, 0, 0, 0.12); + border-right: none; +} +[dir="rtl"] .mat-drawer-side.mat-drawer-end { + border-left: none; + border-right: solid 1px rgba(0, 0, 0, 0.12); +} +.mat-drawer-backdrop.mat-drawer-shown { + background-color: rgba(0, 0, 0, 0.6); +} +.mat-step-header.cdk-keyboard-focused, +.mat-step-header.cdk-program-focused, +.mat-step-header:hover:not([aria-disabled]), +.mat-step-header:hover[aria-disabled="false"] { + background-color: rgba(0, 0, 0, 0.04); +} +.mat-step-header:hover[aria-disabled="true"] { + cursor: default; +} +@media (hover: none) { + .mat-step-header:hover { + background: none; + } +} +.mat-step-header .mat-step-label, +.mat-step-header .mat-step-optional { + color: rgba(0, 0, 0, 0.54); +} +.mat-step-header .mat-step-icon { + background-color: rgba(0, 0, 0, 0.54); + color: #fff; +} +.mat-step-header .mat-step-icon-selected, +.mat-step-header .mat-step-icon-state-done, +.mat-step-header .mat-step-icon-state-edit { + background-color: #3f51b5; + color: #fff; +} +.mat-step-header.mat-accent .mat-step-icon { + color: #fff; +} +.mat-step-header.mat-accent .mat-step-icon-selected, +.mat-step-header.mat-accent .mat-step-icon-state-done, +.mat-step-header.mat-accent .mat-step-icon-state-edit { + background-color: #ff4081; + color: #fff; +} +.mat-step-header.mat-warn .mat-step-icon { + color: #fff; +} +.mat-step-header.mat-warn .mat-step-icon-selected, +.mat-step-header.mat-warn .mat-step-icon-state-done, +.mat-step-header.mat-warn .mat-step-icon-state-edit { + background-color: #f44336; + color: #fff; +} +.mat-step-header .mat-step-icon-state-error { + background-color: rgba(0, 0, 0, 0); + color: #f44336; +} +.mat-step-header .mat-step-label.mat-step-label-active { + color: rgba(0, 0, 0, 0.87); +} +.mat-step-header .mat-step-label.mat-step-label-error { + color: #f44336; +} +.mat-stepper-horizontal, +.mat-stepper-vertical { + background-color: #fff; +} +.mat-stepper-vertical-line::before { + border-left-color: rgba(0, 0, 0, 0.12); +} +.mat-horizontal-stepper-header::before, +.mat-horizontal-stepper-header::after, +.mat-stepper-horizontal-line { + border-top-color: rgba(0, 0, 0, 0.12); +} +.mat-horizontal-stepper-header { + height: 72px; +} +.mat-stepper-label-position-bottom .mat-horizontal-stepper-header, +.mat-vertical-stepper-header { + padding: 24px 24px; +} +.mat-stepper-vertical-line::before { + top: -16px; + bottom: -16px; +} +.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::after, +.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::before { + top: 36px; +} +.mat-stepper-label-position-bottom .mat-stepper-horizontal-line { + top: 36px; +} +.mat-stepper-vertical, +.mat-stepper-horizontal { + font-family: Roboto, sans-serif; +} +.mat-step-label { + font-size: 14px; + font-weight: 400; +} +.mat-step-sub-label-error { + font-weight: normal; +} +.mat-step-label-error { + font-size: 16px; +} +.mat-step-label-selected { + font-size: 16px; + font-weight: 400; +} +.mat-sort-header-arrow { + color: #757575; +} +.mat-toolbar { + background: #f5f5f5; + color: rgba(0, 0, 0, 0.87); +} +.mat-toolbar.mat-primary { + background: #3f51b5; + color: #fff; +} +.mat-toolbar.mat-accent { + background: #ff4081; + color: #fff; +} +.mat-toolbar.mat-warn { + background: #f44336; + color: #fff; +} +.mat-toolbar .mat-form-field-underline, +.mat-toolbar .mat-form-field-ripple, +.mat-toolbar .mat-focused .mat-form-field-ripple { + background-color: currentColor; +} +.mat-toolbar .mat-form-field-label, +.mat-toolbar .mat-focused .mat-form-field-label, +.mat-toolbar .mat-select-value, +.mat-toolbar .mat-select-arrow, +.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow { + color: inherit; +} +.mat-toolbar .mat-input-element { + caret-color: currentColor; +} +.mat-toolbar-multiple-rows { + min-height: 64px; +} +.mat-toolbar-row, +.mat-toolbar-single-row { + height: 64px; +} +@media (max-width: 599px) { + .mat-toolbar-multiple-rows { + min-height: 56px; + } + .mat-toolbar-row, + .mat-toolbar-single-row { + height: 56px; + } +} +.mat-toolbar, +.mat-toolbar h1, +.mat-toolbar h2, +.mat-toolbar h3, +.mat-toolbar h4, +.mat-toolbar h5, +.mat-toolbar h6 { + font: 500 20px/32px Roboto, sans-serif; + letter-spacing: 0.0125em; + margin: 0; +} +.mat-tree { + background: #fff; +} +.mat-tree-node, +.mat-nested-tree-node { + color: rgba(0, 0, 0, 0.87); +} +.mat-tree-node { + min-height: 48px; +} +.mat-tree { + font-family: Roboto, sans-serif; +} +.mat-tree-node, +.mat-nested-tree-node { + font-weight: 400; + font-size: 14px; +} +.mat-h1, +.mat-headline-5, +.mat-typography .mat-h1, +.mat-typography .mat-headline-5, +.mat-typography h1 { + font: 400 24px/32px Roboto, sans-serif; + letter-spacing: normal; + margin: 0 0 16px; +} +.mat-h2, +.mat-headline-6, +.mat-typography .mat-h2, +.mat-typography .mat-headline-6, +.mat-typography h2 { + font: 500 20px/32px Roboto, sans-serif; + letter-spacing: 0.0125em; + margin: 0 0 16px; +} +.mat-h3, +.mat-subtitle-1, +.mat-typography .mat-h3, +.mat-typography .mat-subtitle-1, +.mat-typography h3 { + font: 400 16px/28px Roboto, sans-serif; + letter-spacing: 0.009375em; + margin: 0 0 16px; +} +.mat-h4, +.mat-body-1, +.mat-typography .mat-h4, +.mat-typography .mat-body-1, +.mat-typography h4 { + font: 400 16px/24px Roboto, sans-serif; + letter-spacing: 0.03125em; + margin: 0 0 16px; +} +.mat-h5, +.mat-typography .mat-h5, +.mat-typography h5 { + font: 400 calc(14px * 0.83) / 20px Roboto, sans-serif; + margin: 0 0 12px; +} +.mat-h6, +.mat-typography .mat-h6, +.mat-typography h6 { + font: 400 calc(14px * 0.67) / 20px Roboto, sans-serif; + margin: 0 0 12px; +} +.mat-body-strong, +.mat-subtitle-2, +.mat-typography .mat-body-strong, +.mat-typography .mat-subtitle-2 { + font: 500 14px/22px Roboto, sans-serif; + letter-spacing: 0.0071428571em; +} +.mat-body, +.mat-body-2, +.mat-typography .mat-body, +.mat-typography .mat-body-2, +.mat-typography { + font: 400 14px/20px Roboto, sans-serif; + letter-spacing: 0.0178571429em; +} +.mat-body p, +.mat-body-2 p, +.mat-typography .mat-body p, +.mat-typography .mat-body-2 p, +.mat-typography p { + margin: 0 0 12px; +} +.mat-small, +.mat-caption, +.mat-typography .mat-small, +.mat-typography .mat-caption { + font: 400 12px/20px Roboto, sans-serif; + letter-spacing: 0.0333333333em; +} +.mat-headline-1, +.mat-typography .mat-headline-1 { + font: 300 96px/96px Roboto, sans-serif; + letter-spacing: -0.015625em; + margin: 0 0 56px; +} +.mat-headline-2, +.mat-typography .mat-headline-2 { + font: 300 60px/60px Roboto, sans-serif; + letter-spacing: -0.0083333333em; + margin: 0 0 64px; +} +.mat-headline-3, +.mat-typography .mat-headline-3 { + font: 400 48px/50px Roboto, sans-serif; + letter-spacing: normal; + margin: 0 0 64px; +} +.mat-headline-4, +.mat-typography .mat-headline-4 { + font: 400 34px/40px Roboto, sans-serif; + letter-spacing: 0.0073529412em; + margin: 0 0 64px; +} +/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[6].rules[0].oneOf[0].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[6].rules[0].oneOf[0].use[2]!./node_modules/resolve-url-loader/index.js??ruleSet[1].rules[6].rules[1].use[0]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[6].rules[1].use[1]!./src/styles.scss?ngGlobalStyle ***! + \***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ +@charset "UTF-8"; +/* You can add global styles to this file, and also import other style files */ +html, +body { + height: 100%; +} + +/*! + * Bootstrap Reboot v4.6.0 (https://getbootstrap.com/) + * Copyright 2011-2021 The Bootstrap Authors + * Copyright 2011-2021 Twitter, Inc. + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) + * Forked from Normalize.css, licensed MIT (https://github.com/necolas/normalize.css/blob/master/LICENSE.md) + */ +*, +*::before, +*::after { + box-sizing: border-box; +} + +html { + font-family: sans-serif; + line-height: 1.15; + -webkit-text-size-adjust: 100%; + -webkit-tap-highlight-color: rgba(0, 0, 0, 0); +} + +article, +aside, +figcaption, +figure, +footer, +header, +hgroup, +main, +nav, +section { + display: block; +} + +body { + margin: 0; + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, + "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, + "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; + font-size: 1rem; + font-weight: 400; + line-height: 1.5; + color: #212529; + text-align: left; + background-color: #fff; +} + +[tabindex="-1"]:focus:not(:focus-visible) { + outline: 0 !important; +} + +hr { + box-sizing: content-box; + height: 0; + overflow: visible; +} + +h1, +h2, +h3, +h4, +h5, +h6 { + margin-top: 0; + margin-bottom: 0.5rem; +} + +p { + margin-top: 0; + margin-bottom: 1rem; +} + +abbr[title], +abbr[data-original-title] { + text-decoration: underline; + -webkit-text-decoration: underline dotted; + text-decoration: underline dotted; + cursor: help; + border-bottom: 0; + -webkit-text-decoration-skip-ink: none; + text-decoration-skip-ink: none; +} + +address { + margin-bottom: 1rem; + font-style: normal; + line-height: inherit; +} + +ol, +ul, +dl { + margin-top: 0; + margin-bottom: 1rem; +} + +ol ol, +ul ul, +ol ul, +ul ol { + margin-bottom: 0; +} + +dt { + font-weight: 700; +} + +dd { + margin-bottom: 0.5rem; + margin-left: 0; +} + +blockquote { + margin: 0 0 1rem; +} + +b, +strong { + font-weight: bolder; +} + +small { + font-size: 80%; +} + +sub, +sup { + position: relative; + font-size: 75%; + line-height: 0; + vertical-align: baseline; +} + +sub { + bottom: -0.25em; +} + +sup { + top: -0.5em; +} + +a { + color: #007bff; + text-decoration: none; + background-color: transparent; +} +a:hover { + color: #0056b3; + text-decoration: underline; +} + +a:not([href]):not([class]) { + color: inherit; + text-decoration: none; +} +a:not([href]):not([class]):hover { + color: inherit; + text-decoration: none; +} + +pre, +code, +kbd, +samp { + font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", + "Courier New", monospace; + font-size: 1em; +} + +pre { + margin-top: 0; + margin-bottom: 1rem; + overflow: auto; + -ms-overflow-style: scrollbar; +} + +figure { + margin: 0 0 1rem; +} + +img { + vertical-align: middle; + border-style: none; +} + +svg { + overflow: hidden; + vertical-align: middle; +} + +table { + border-collapse: collapse; +} + +caption { + padding-top: 0.75rem; + padding-bottom: 0.75rem; + color: #6c757d; + text-align: left; + caption-side: bottom; +} + +th { + text-align: inherit; + text-align: -webkit-match-parent; +} + +label { + display: inline-block; + margin-bottom: 0.5rem; +} + +button { + border-radius: 0; +} + +button:focus:not(:focus-visible) { + outline: 0; +} + +input, +button, +select, +optgroup, +textarea { + margin: 0; + font-family: inherit; + font-size: inherit; + line-height: inherit; +} + +button, +input { + overflow: visible; +} + +button, +select { + text-transform: none; +} + +[role="button"] { + cursor: pointer; +} + +select { + word-wrap: normal; +} + +button, +[type="button"], +[type="reset"], +[type="submit"] { + -webkit-appearance: button; +} + +button:not(:disabled), +[type="button"]:not(:disabled), +[type="reset"]:not(:disabled), +[type="submit"]:not(:disabled) { + cursor: pointer; +} + +button::-moz-focus-inner, +[type="button"]::-moz-focus-inner, +[type="reset"]::-moz-focus-inner, +[type="submit"]::-moz-focus-inner { + padding: 0; + border-style: none; +} + +input[type="radio"], +input[type="checkbox"] { + box-sizing: border-box; + padding: 0; +} + +textarea { + overflow: auto; + resize: vertical; +} + +fieldset { + min-width: 0; + padding: 0; + margin: 0; + border: 0; +} + +legend { + display: block; + width: 100%; + max-width: 100%; + padding: 0; + margin-bottom: 0.5rem; + font-size: 1.5rem; + line-height: inherit; + color: inherit; + white-space: normal; +} + +progress { + vertical-align: baseline; +} + +[type="number"]::-webkit-inner-spin-button, +[type="number"]::-webkit-outer-spin-button { + height: auto; +} + +[type="search"] { + outline-offset: -2px; + -webkit-appearance: none; +} + +[type="search"]::-webkit-search-decoration { + -webkit-appearance: none; +} + +::-webkit-file-upload-button { + font: inherit; + -webkit-appearance: button; +} + +output { + display: inline-block; +} + +summary { + display: list-item; + cursor: pointer; +} + +template { + display: none; +} + +[hidden] { + display: none !important; +} + +.align-baseline { + vertical-align: baseline !important; +} + +.align-top { + vertical-align: top !important; +} + +.align-middle { + vertical-align: middle !important; +} + +.align-bottom { + vertical-align: bottom !important; +} + +.align-text-bottom { + vertical-align: text-bottom !important; +} + +.align-text-top { + vertical-align: text-top !important; +} + +.bg-primary { + background-color: #007bff !important; +} + +a.bg-primary:hover, +a.bg-primary:focus, +button.bg-primary:hover, +button.bg-primary:focus { + background-color: #0062cc !important; +} + +.bg-secondary { + background-color: #6c757d !important; +} + +a.bg-secondary:hover, +a.bg-secondary:focus, +button.bg-secondary:hover, +button.bg-secondary:focus { + background-color: #545b62 !important; +} + +.bg-success { + background-color: #28a745 !important; +} + +a.bg-success:hover, +a.bg-success:focus, +button.bg-success:hover, +button.bg-success:focus { + background-color: #1e7e34 !important; +} + +.bg-info { + background-color: #17a2b8 !important; +} + +a.bg-info:hover, +a.bg-info:focus, +button.bg-info:hover, +button.bg-info:focus { + background-color: #117a8b !important; +} + +.bg-warning { + background-color: #ffc107 !important; +} + +a.bg-warning:hover, +a.bg-warning:focus, +button.bg-warning:hover, +button.bg-warning:focus { + background-color: #d39e00 !important; +} + +.bg-danger { + background-color: #dc3545 !important; +} + +a.bg-danger:hover, +a.bg-danger:focus, +button.bg-danger:hover, +button.bg-danger:focus { + background-color: #bd2130 !important; +} + +.bg-light { + background-color: #f8f9fa !important; +} + +a.bg-light:hover, +a.bg-light:focus, +button.bg-light:hover, +button.bg-light:focus { + background-color: #dae0e5 !important; +} + +.bg-dark { + background-color: #343a40 !important; +} + +a.bg-dark:hover, +a.bg-dark:focus, +button.bg-dark:hover, +button.bg-dark:focus { + background-color: #1d2124 !important; +} + +.bg-white { + background-color: #fff !important; +} + +.bg-transparent { + background-color: transparent !important; +} + +.border { + border: 1px solid #dee2e6 !important; +} + +.border-top { + border-top: 1px solid #dee2e6 !important; +} + +.border-right { + border-right: 1px solid #dee2e6 !important; +} + +.border-bottom { + border-bottom: 1px solid #dee2e6 !important; +} + +.border-left { + border-left: 1px solid #dee2e6 !important; +} + +.border-0 { + border: 0 !important; +} + +.border-top-0 { + border-top: 0 !important; +} + +.border-right-0 { + border-right: 0 !important; +} + +.border-bottom-0 { + border-bottom: 0 !important; +} + +.border-left-0 { + border-left: 0 !important; +} + +.border-primary { + border-color: #007bff !important; +} + +.border-secondary { + border-color: #6c757d !important; +} + +.border-success { + border-color: #28a745 !important; +} + +.border-info { + border-color: #17a2b8 !important; +} + +.border-warning { + border-color: #ffc107 !important; +} + +.border-danger { + border-color: #dc3545 !important; +} + +.border-light { + border-color: #f8f9fa !important; +} + +.border-dark { + border-color: #343a40 !important; +} + +.border-white { + border-color: #fff !important; +} + +.rounded-sm { + border-radius: 0.2rem !important; +} + +.rounded { + border-radius: 0.25rem !important; +} + +.rounded-top { + border-top-left-radius: 0.25rem !important; + border-top-right-radius: 0.25rem !important; +} + +.rounded-right { + border-top-right-radius: 0.25rem !important; + border-bottom-right-radius: 0.25rem !important; +} + +.rounded-bottom { + border-bottom-right-radius: 0.25rem !important; + border-bottom-left-radius: 0.25rem !important; +} + +.rounded-left { + border-top-left-radius: 0.25rem !important; + border-bottom-left-radius: 0.25rem !important; +} + +.rounded-lg { + border-radius: 0.3rem !important; +} + +.rounded-circle { + border-radius: 50% !important; +} + +.rounded-pill { + border-radius: 50rem !important; +} + +.rounded-0 { + border-radius: 0 !important; +} + +.clearfix::after { + display: block; + clear: both; + content: ""; +} + +.d-none { + display: none !important; +} + +.d-inline { + display: inline !important; +} + +.d-inline-block { + display: inline-block !important; +} + +.d-block { + display: block !important; +} + +.d-table { + display: table !important; +} + +.d-table-row { + display: table-row !important; +} + +.d-table-cell { + display: table-cell !important; +} + +.d-flex { + display: flex !important; +} + +.d-inline-flex { + display: inline-flex !important; +} + +@media (min-width: 576px) { + .d-sm-none { + display: none !important; + } + .d-sm-inline { + display: inline !important; + } + .d-sm-inline-block { + display: inline-block !important; + } + .d-sm-block { + display: block !important; + } + .d-sm-table { + display: table !important; + } + .d-sm-table-row { + display: table-row !important; + } + .d-sm-table-cell { + display: table-cell !important; + } + .d-sm-flex { + display: flex !important; + } + .d-sm-inline-flex { + display: inline-flex !important; + } +} +@media (min-width: 768px) { + .d-md-none { + display: none !important; + } + .d-md-inline { + display: inline !important; + } + .d-md-inline-block { + display: inline-block !important; + } + .d-md-block { + display: block !important; + } + .d-md-table { + display: table !important; + } + .d-md-table-row { + display: table-row !important; + } + .d-md-table-cell { + display: table-cell !important; + } + .d-md-flex { + display: flex !important; + } + .d-md-inline-flex { + display: inline-flex !important; + } +} +@media (min-width: 992px) { + .d-lg-none { + display: none !important; + } + .d-lg-inline { + display: inline !important; + } + .d-lg-inline-block { + display: inline-block !important; + } + .d-lg-block { + display: block !important; + } + .d-lg-table { + display: table !important; + } + .d-lg-table-row { + display: table-row !important; + } + .d-lg-table-cell { + display: table-cell !important; + } + .d-lg-flex { + display: flex !important; + } + .d-lg-inline-flex { + display: inline-flex !important; + } +} +@media (min-width: 1200px) { + .d-xl-none { + display: none !important; + } + .d-xl-inline { + display: inline !important; + } + .d-xl-inline-block { + display: inline-block !important; + } + .d-xl-block { + display: block !important; + } + .d-xl-table { + display: table !important; + } + .d-xl-table-row { + display: table-row !important; + } + .d-xl-table-cell { + display: table-cell !important; + } + .d-xl-flex { + display: flex !important; + } + .d-xl-inline-flex { + display: inline-flex !important; + } +} +@media print { + .d-print-none { + display: none !important; + } + .d-print-inline { + display: inline !important; + } + .d-print-inline-block { + display: inline-block !important; + } + .d-print-block { + display: block !important; + } + .d-print-table { + display: table !important; + } + .d-print-table-row { + display: table-row !important; + } + .d-print-table-cell { + display: table-cell !important; + } + .d-print-flex { + display: flex !important; + } + .d-print-inline-flex { + display: inline-flex !important; + } +} +.embed-responsive { + position: relative; + display: block; + width: 100%; + padding: 0; + overflow: hidden; +} +.embed-responsive::before { + display: block; + content: ""; +} +.embed-responsive .embed-responsive-item, +.embed-responsive iframe, +.embed-responsive embed, +.embed-responsive object, +.embed-responsive video { + position: absolute; + top: 0; + bottom: 0; + left: 0; + width: 100%; + height: 100%; + border: 0; +} + +.embed-responsive-21by9::before { + padding-top: 42.8571428571%; +} + +.embed-responsive-16by9::before { + padding-top: 56.25%; +} + +.embed-responsive-4by3::before { + padding-top: 75%; +} + +.embed-responsive-1by1::before { + padding-top: 100%; +} + +.embed-responsive-21by9::before { + padding-top: 42.8571428571%; +} + +.embed-responsive-16by9::before { + padding-top: 56.25%; +} + +.embed-responsive-4by3::before { + padding-top: 75%; +} + +.embed-responsive-1by1::before { + padding-top: 100%; +} + +.flex-row { + flex-direction: row !important; +} + +.flex-column { + flex-direction: column !important; +} + +.flex-row-reverse { + flex-direction: row-reverse !important; +} + +.flex-column-reverse { + flex-direction: column-reverse !important; +} + +.flex-wrap { + flex-wrap: wrap !important; +} + +.flex-nowrap { + flex-wrap: nowrap !important; +} + +.flex-wrap-reverse { + flex-wrap: wrap-reverse !important; +} + +.flex-fill { + flex: 1 1 auto !important; +} + +.flex-grow-0 { + flex-grow: 0 !important; +} + +.flex-grow-1 { + flex-grow: 1 !important; +} + +.flex-shrink-0 { + flex-shrink: 0 !important; +} + +.flex-shrink-1 { + flex-shrink: 1 !important; +} + +.justify-content-start { + justify-content: flex-start !important; +} + +.justify-content-end { + justify-content: flex-end !important; +} + +.justify-content-center { + justify-content: center !important; +} + +.justify-content-between { + justify-content: space-between !important; +} + +.justify-content-around { + justify-content: space-around !important; +} + +.align-items-start { + align-items: flex-start !important; +} + +.align-items-end { + align-items: flex-end !important; +} + +.align-items-center { + align-items: center !important; +} + +.align-items-baseline { + align-items: baseline !important; +} + +.align-items-stretch { + align-items: stretch !important; +} + +.align-content-start { + align-content: flex-start !important; +} + +.align-content-end { + align-content: flex-end !important; +} + +.align-content-center { + align-content: center !important; +} + +.align-content-between { + align-content: space-between !important; +} + +.align-content-around { + align-content: space-around !important; +} + +.align-content-stretch { + align-content: stretch !important; +} + +.align-self-auto { + align-self: auto !important; +} + +.align-self-start { + align-self: flex-start !important; +} + +.align-self-end { + align-self: flex-end !important; +} + +.align-self-center { + align-self: center !important; +} + +.align-self-baseline { + align-self: baseline !important; +} + +.align-self-stretch { + align-self: stretch !important; +} + +@media (min-width: 576px) { + .flex-sm-row { + flex-direction: row !important; + } + .flex-sm-column { + flex-direction: column !important; + } + .flex-sm-row-reverse { + flex-direction: row-reverse !important; + } + .flex-sm-column-reverse { + flex-direction: column-reverse !important; + } + .flex-sm-wrap { + flex-wrap: wrap !important; + } + .flex-sm-nowrap { + flex-wrap: nowrap !important; + } + .flex-sm-wrap-reverse { + flex-wrap: wrap-reverse !important; + } + .flex-sm-fill { + flex: 1 1 auto !important; + } + .flex-sm-grow-0 { + flex-grow: 0 !important; + } + .flex-sm-grow-1 { + flex-grow: 1 !important; + } + .flex-sm-shrink-0 { + flex-shrink: 0 !important; + } + .flex-sm-shrink-1 { + flex-shrink: 1 !important; + } + .justify-content-sm-start { + justify-content: flex-start !important; + } + .justify-content-sm-end { + justify-content: flex-end !important; + } + .justify-content-sm-center { + justify-content: center !important; + } + .justify-content-sm-between { + justify-content: space-between !important; + } + .justify-content-sm-around { + justify-content: space-around !important; + } + .align-items-sm-start { + align-items: flex-start !important; + } + .align-items-sm-end { + align-items: flex-end !important; + } + .align-items-sm-center { + align-items: center !important; + } + .align-items-sm-baseline { + align-items: baseline !important; + } + .align-items-sm-stretch { + align-items: stretch !important; + } + .align-content-sm-start { + align-content: flex-start !important; + } + .align-content-sm-end { + align-content: flex-end !important; + } + .align-content-sm-center { + align-content: center !important; + } + .align-content-sm-between { + align-content: space-between !important; + } + .align-content-sm-around { + align-content: space-around !important; + } + .align-content-sm-stretch { + align-content: stretch !important; + } + .align-self-sm-auto { + align-self: auto !important; + } + .align-self-sm-start { + align-self: flex-start !important; + } + .align-self-sm-end { + align-self: flex-end !important; + } + .align-self-sm-center { + align-self: center !important; + } + .align-self-sm-baseline { + align-self: baseline !important; + } + .align-self-sm-stretch { + align-self: stretch !important; + } +} +@media (min-width: 768px) { + .flex-md-row { + flex-direction: row !important; + } + .flex-md-column { + flex-direction: column !important; + } + .flex-md-row-reverse { + flex-direction: row-reverse !important; + } + .flex-md-column-reverse { + flex-direction: column-reverse !important; + } + .flex-md-wrap { + flex-wrap: wrap !important; + } + .flex-md-nowrap { + flex-wrap: nowrap !important; + } + .flex-md-wrap-reverse { + flex-wrap: wrap-reverse !important; + } + .flex-md-fill { + flex: 1 1 auto !important; + } + .flex-md-grow-0 { + flex-grow: 0 !important; + } + .flex-md-grow-1 { + flex-grow: 1 !important; + } + .flex-md-shrink-0 { + flex-shrink: 0 !important; + } + .flex-md-shrink-1 { + flex-shrink: 1 !important; + } + .justify-content-md-start { + justify-content: flex-start !important; + } + .justify-content-md-end { + justify-content: flex-end !important; + } + .justify-content-md-center { + justify-content: center !important; + } + .justify-content-md-between { + justify-content: space-between !important; + } + .justify-content-md-around { + justify-content: space-around !important; + } + .align-items-md-start { + align-items: flex-start !important; + } + .align-items-md-end { + align-items: flex-end !important; + } + .align-items-md-center { + align-items: center !important; + } + .align-items-md-baseline { + align-items: baseline !important; + } + .align-items-md-stretch { + align-items: stretch !important; + } + .align-content-md-start { + align-content: flex-start !important; + } + .align-content-md-end { + align-content: flex-end !important; + } + .align-content-md-center { + align-content: center !important; + } + .align-content-md-between { + align-content: space-between !important; + } + .align-content-md-around { + align-content: space-around !important; + } + .align-content-md-stretch { + align-content: stretch !important; + } + .align-self-md-auto { + align-self: auto !important; + } + .align-self-md-start { + align-self: flex-start !important; + } + .align-self-md-end { + align-self: flex-end !important; + } + .align-self-md-center { + align-self: center !important; + } + .align-self-md-baseline { + align-self: baseline !important; + } + .align-self-md-stretch { + align-self: stretch !important; + } +} +@media (min-width: 992px) { + .flex-lg-row { + flex-direction: row !important; + } + .flex-lg-column { + flex-direction: column !important; + } + .flex-lg-row-reverse { + flex-direction: row-reverse !important; + } + .flex-lg-column-reverse { + flex-direction: column-reverse !important; + } + .flex-lg-wrap { + flex-wrap: wrap !important; + } + .flex-lg-nowrap { + flex-wrap: nowrap !important; + } + .flex-lg-wrap-reverse { + flex-wrap: wrap-reverse !important; + } + .flex-lg-fill { + flex: 1 1 auto !important; + } + .flex-lg-grow-0 { + flex-grow: 0 !important; + } + .flex-lg-grow-1 { + flex-grow: 1 !important; + } + .flex-lg-shrink-0 { + flex-shrink: 0 !important; + } + .flex-lg-shrink-1 { + flex-shrink: 1 !important; + } + .justify-content-lg-start { + justify-content: flex-start !important; + } + .justify-content-lg-end { + justify-content: flex-end !important; + } + .justify-content-lg-center { + justify-content: center !important; + } + .justify-content-lg-between { + justify-content: space-between !important; + } + .justify-content-lg-around { + justify-content: space-around !important; + } + .align-items-lg-start { + align-items: flex-start !important; + } + .align-items-lg-end { + align-items: flex-end !important; + } + .align-items-lg-center { + align-items: center !important; + } + .align-items-lg-baseline { + align-items: baseline !important; + } + .align-items-lg-stretch { + align-items: stretch !important; + } + .align-content-lg-start { + align-content: flex-start !important; + } + .align-content-lg-end { + align-content: flex-end !important; + } + .align-content-lg-center { + align-content: center !important; + } + .align-content-lg-between { + align-content: space-between !important; + } + .align-content-lg-around { + align-content: space-around !important; + } + .align-content-lg-stretch { + align-content: stretch !important; + } + .align-self-lg-auto { + align-self: auto !important; + } + .align-self-lg-start { + align-self: flex-start !important; + } + .align-self-lg-end { + align-self: flex-end !important; + } + .align-self-lg-center { + align-self: center !important; + } + .align-self-lg-baseline { + align-self: baseline !important; + } + .align-self-lg-stretch { + align-self: stretch !important; + } +} +@media (min-width: 1200px) { + .flex-xl-row { + flex-direction: row !important; + } + .flex-xl-column { + flex-direction: column !important; + } + .flex-xl-row-reverse { + flex-direction: row-reverse !important; + } + .flex-xl-column-reverse { + flex-direction: column-reverse !important; + } + .flex-xl-wrap { + flex-wrap: wrap !important; + } + .flex-xl-nowrap { + flex-wrap: nowrap !important; + } + .flex-xl-wrap-reverse { + flex-wrap: wrap-reverse !important; + } + .flex-xl-fill { + flex: 1 1 auto !important; + } + .flex-xl-grow-0 { + flex-grow: 0 !important; + } + .flex-xl-grow-1 { + flex-grow: 1 !important; + } + .flex-xl-shrink-0 { + flex-shrink: 0 !important; + } + .flex-xl-shrink-1 { + flex-shrink: 1 !important; + } + .justify-content-xl-start { + justify-content: flex-start !important; + } + .justify-content-xl-end { + justify-content: flex-end !important; + } + .justify-content-xl-center { + justify-content: center !important; + } + .justify-content-xl-between { + justify-content: space-between !important; + } + .justify-content-xl-around { + justify-content: space-around !important; + } + .align-items-xl-start { + align-items: flex-start !important; + } + .align-items-xl-end { + align-items: flex-end !important; + } + .align-items-xl-center { + align-items: center !important; + } + .align-items-xl-baseline { + align-items: baseline !important; + } + .align-items-xl-stretch { + align-items: stretch !important; + } + .align-content-xl-start { + align-content: flex-start !important; + } + .align-content-xl-end { + align-content: flex-end !important; + } + .align-content-xl-center { + align-content: center !important; + } + .align-content-xl-between { + align-content: space-between !important; + } + .align-content-xl-around { + align-content: space-around !important; + } + .align-content-xl-stretch { + align-content: stretch !important; + } + .align-self-xl-auto { + align-self: auto !important; + } + .align-self-xl-start { + align-self: flex-start !important; + } + .align-self-xl-end { + align-self: flex-end !important; + } + .align-self-xl-center { + align-self: center !important; + } + .align-self-xl-baseline { + align-self: baseline !important; + } + .align-self-xl-stretch { + align-self: stretch !important; + } +} +.float-left { + float: left !important; +} + +.float-right { + float: right !important; +} + +.float-none { + float: none !important; +} + +@media (min-width: 576px) { + .float-sm-left { + float: left !important; + } + .float-sm-right { + float: right !important; + } + .float-sm-none { + float: none !important; + } +} +@media (min-width: 768px) { + .float-md-left { + float: left !important; + } + .float-md-right { + float: right !important; + } + .float-md-none { + float: none !important; + } +} +@media (min-width: 992px) { + .float-lg-left { + float: left !important; + } + .float-lg-right { + float: right !important; + } + .float-lg-none { + float: none !important; + } +} +@media (min-width: 1200px) { + .float-xl-left { + float: left !important; + } + .float-xl-right { + float: right !important; + } + .float-xl-none { + float: none !important; + } +} +.user-select-all { + -webkit-user-select: all !important; + user-select: all !important; +} + +.user-select-auto { + -webkit-user-select: auto !important; + user-select: auto !important; +} + +.user-select-none { + -webkit-user-select: none !important; + user-select: none !important; +} + +.overflow-auto { + overflow: auto !important; +} + +.overflow-hidden { + overflow: hidden !important; +} + +.position-static { + position: static !important; +} + +.position-relative { + position: relative !important; +} + +.position-absolute { + position: absolute !important; +} + +.position-fixed { + position: fixed !important; +} + +.position-sticky { + position: sticky !important; +} + +.fixed-top { + position: fixed; + top: 0; + right: 0; + left: 0; + z-index: 1030; +} + +.fixed-bottom { + position: fixed; + right: 0; + bottom: 0; + left: 0; + z-index: 1030; +} + +@supports (position: sticky) { + .sticky-top { + position: sticky; + top: 0; + z-index: 1020; + } +} + +.sr-only { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + white-space: nowrap; + border: 0; +} + +.sr-only-focusable:active, +.sr-only-focusable:focus { + position: static; + width: auto; + height: auto; + overflow: visible; + clip: auto; + white-space: normal; +} + +.shadow-sm { + box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important; +} + +.shadow { + box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important; +} + +.shadow-lg { + box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important; +} + +.shadow-none { + box-shadow: none !important; +} + +.w-25 { + width: 25% !important; +} + +.w-50 { + width: 50% !important; +} + +.w-75 { + width: 75% !important; +} + +.w-100 { + width: 100% !important; +} + +.w-auto { + width: auto !important; +} + +.h-25 { + height: 25% !important; +} + +.h-50 { + height: 50% !important; +} + +.h-75 { + height: 75% !important; +} + +.h-100 { + height: 100% !important; +} + +.h-auto { + height: auto !important; +} + +.mw-100 { + max-width: 100% !important; +} + +.mh-100 { + max-height: 100% !important; +} + +.min-vw-100 { + min-width: 100vw !important; +} + +.min-vh-100 { + min-height: 100vh !important; +} + +.vw-100 { + width: 100vw !important; +} + +.vh-100 { + height: 100vh !important; +} + +.m-0 { + margin: 0 !important; +} + +.mt-0, +.my-0 { + margin-top: 0 !important; +} + +.mr-0, +.mx-0 { + margin-right: 0 !important; +} + +.mb-0, +.my-0 { + margin-bottom: 0 !important; +} + +.ml-0, +.mx-0 { + margin-left: 0 !important; +} + +.m-1 { + margin: 0.25rem !important; +} + +.mt-1, +.my-1 { + margin-top: 0.25rem !important; +} + +.mr-1, +.mx-1 { + margin-right: 0.25rem !important; +} + +.mb-1, +.my-1 { + margin-bottom: 0.25rem !important; +} + +.ml-1, +.mx-1 { + margin-left: 0.25rem !important; +} + +.m-2 { + margin: 0.5rem !important; +} + +.mt-2, +.my-2 { + margin-top: 0.5rem !important; +} + +.mr-2, +.mx-2 { + margin-right: 0.5rem !important; +} + +.mb-2, +.my-2 { + margin-bottom: 0.5rem !important; +} + +.ml-2, +.mx-2 { + margin-left: 0.5rem !important; +} + +.m-3 { + margin: 1rem !important; +} + +.mt-3, +.my-3 { + margin-top: 1rem !important; +} + +.mr-3, +.mx-3 { + margin-right: 1rem !important; +} + +.mb-3, +.my-3 { + margin-bottom: 1rem !important; +} + +.ml-3, +.mx-3 { + margin-left: 1rem !important; +} + +.m-4 { + margin: 1.5rem !important; +} + +.mt-4, +.my-4 { + margin-top: 1.5rem !important; +} + +.mr-4, +.mx-4 { + margin-right: 1.5rem !important; +} + +.mb-4, +.my-4 { + margin-bottom: 1.5rem !important; +} + +.ml-4, +.mx-4 { + margin-left: 1.5rem !important; +} + +.m-5 { + margin: 3rem !important; +} + +.mt-5, +.my-5 { + margin-top: 3rem !important; +} + +.mr-5, +.mx-5 { + margin-right: 3rem !important; +} + +.mb-5, +.my-5 { + margin-bottom: 3rem !important; +} + +.ml-5, +.mx-5 { + margin-left: 3rem !important; +} + +.p-0 { + padding: 0 !important; +} + +.pt-0, +.py-0 { + padding-top: 0 !important; +} + +.pr-0, +.px-0 { + padding-right: 0 !important; +} + +.pb-0, +.py-0 { + padding-bottom: 0 !important; +} + +.pl-0, +.px-0 { + padding-left: 0 !important; +} + +.p-1 { + padding: 0.25rem !important; +} + +.pt-1, +.py-1 { + padding-top: 0.25rem !important; +} + +.pr-1, +.px-1 { + padding-right: 0.25rem !important; +} + +.pb-1, +.py-1 { + padding-bottom: 0.25rem !important; +} + +.pl-1, +.px-1 { + padding-left: 0.25rem !important; +} + +.p-2 { + padding: 0.5rem !important; +} + +.pt-2, +.py-2 { + padding-top: 0.5rem !important; +} + +.pr-2, +.px-2 { + padding-right: 0.5rem !important; +} + +.pb-2, +.py-2 { + padding-bottom: 0.5rem !important; +} + +.pl-2, +.px-2 { + padding-left: 0.5rem !important; +} + +.p-3 { + padding: 1rem !important; +} + +.pt-3, +.py-3 { + padding-top: 1rem !important; +} + +.pr-3, +.px-3 { + padding-right: 1rem !important; +} + +.pb-3, +.py-3 { + padding-bottom: 1rem !important; +} + +.pl-3, +.px-3 { + padding-left: 1rem !important; +} + +.p-4 { + padding: 1.5rem !important; +} + +.pt-4, +.py-4 { + padding-top: 1.5rem !important; +} + +.pr-4, +.px-4 { + padding-right: 1.5rem !important; +} + +.pb-4, +.py-4 { + padding-bottom: 1.5rem !important; +} + +.pl-4, +.px-4 { + padding-left: 1.5rem !important; +} + +.p-5 { + padding: 3rem !important; +} + +.pt-5, +.py-5 { + padding-top: 3rem !important; +} + +.pr-5, +.px-5 { + padding-right: 3rem !important; +} + +.pb-5, +.py-5 { + padding-bottom: 3rem !important; +} + +.pl-5, +.px-5 { + padding-left: 3rem !important; +} + +.m-n1 { + margin: -0.25rem !important; +} + +.mt-n1, +.my-n1 { + margin-top: -0.25rem !important; +} + +.mr-n1, +.mx-n1 { + margin-right: -0.25rem !important; +} + +.mb-n1, +.my-n1 { + margin-bottom: -0.25rem !important; +} + +.ml-n1, +.mx-n1 { + margin-left: -0.25rem !important; +} + +.m-n2 { + margin: -0.5rem !important; +} + +.mt-n2, +.my-n2 { + margin-top: -0.5rem !important; +} + +.mr-n2, +.mx-n2 { + margin-right: -0.5rem !important; +} + +.mb-n2, +.my-n2 { + margin-bottom: -0.5rem !important; +} + +.ml-n2, +.mx-n2 { + margin-left: -0.5rem !important; +} + +.m-n3 { + margin: -1rem !important; +} + +.mt-n3, +.my-n3 { + margin-top: -1rem !important; +} + +.mr-n3, +.mx-n3 { + margin-right: -1rem !important; +} + +.mb-n3, +.my-n3 { + margin-bottom: -1rem !important; +} + +.ml-n3, +.mx-n3 { + margin-left: -1rem !important; +} + +.m-n4 { + margin: -1.5rem !important; +} + +.mt-n4, +.my-n4 { + margin-top: -1.5rem !important; +} + +.mr-n4, +.mx-n4 { + margin-right: -1.5rem !important; +} + +.mb-n4, +.my-n4 { + margin-bottom: -1.5rem !important; +} + +.ml-n4, +.mx-n4 { + margin-left: -1.5rem !important; +} + +.m-n5 { + margin: -3rem !important; +} + +.mt-n5, +.my-n5 { + margin-top: -3rem !important; +} + +.mr-n5, +.mx-n5 { + margin-right: -3rem !important; +} + +.mb-n5, +.my-n5 { + margin-bottom: -3rem !important; +} + +.ml-n5, +.mx-n5 { + margin-left: -3rem !important; +} + +.m-auto { + margin: auto !important; +} + +.mt-auto, +.my-auto { + margin-top: auto !important; +} + +.mr-auto, +.mx-auto { + margin-right: auto !important; +} + +.mb-auto, +.my-auto { + margin-bottom: auto !important; +} + +.ml-auto, +.mx-auto { + margin-left: auto !important; +} + +@media (min-width: 576px) { + .m-sm-0 { + margin: 0 !important; + } + .mt-sm-0, + .my-sm-0 { + margin-top: 0 !important; + } + .mr-sm-0, + .mx-sm-0 { + margin-right: 0 !important; + } + .mb-sm-0, + .my-sm-0 { + margin-bottom: 0 !important; + } + .ml-sm-0, + .mx-sm-0 { + margin-left: 0 !important; + } + .m-sm-1 { + margin: 0.25rem !important; + } + .mt-sm-1, + .my-sm-1 { + margin-top: 0.25rem !important; + } + .mr-sm-1, + .mx-sm-1 { + margin-right: 0.25rem !important; + } + .mb-sm-1, + .my-sm-1 { + margin-bottom: 0.25rem !important; + } + .ml-sm-1, + .mx-sm-1 { + margin-left: 0.25rem !important; + } + .m-sm-2 { + margin: 0.5rem !important; + } + .mt-sm-2, + .my-sm-2 { + margin-top: 0.5rem !important; + } + .mr-sm-2, + .mx-sm-2 { + margin-right: 0.5rem !important; + } + .mb-sm-2, + .my-sm-2 { + margin-bottom: 0.5rem !important; + } + .ml-sm-2, + .mx-sm-2 { + margin-left: 0.5rem !important; + } + .m-sm-3 { + margin: 1rem !important; + } + .mt-sm-3, + .my-sm-3 { + margin-top: 1rem !important; + } + .mr-sm-3, + .mx-sm-3 { + margin-right: 1rem !important; + } + .mb-sm-3, + .my-sm-3 { + margin-bottom: 1rem !important; + } + .ml-sm-3, + .mx-sm-3 { + margin-left: 1rem !important; + } + .m-sm-4 { + margin: 1.5rem !important; + } + .mt-sm-4, + .my-sm-4 { + margin-top: 1.5rem !important; + } + .mr-sm-4, + .mx-sm-4 { + margin-right: 1.5rem !important; + } + .mb-sm-4, + .my-sm-4 { + margin-bottom: 1.5rem !important; + } + .ml-sm-4, + .mx-sm-4 { + margin-left: 1.5rem !important; + } + .m-sm-5 { + margin: 3rem !important; + } + .mt-sm-5, + .my-sm-5 { + margin-top: 3rem !important; + } + .mr-sm-5, + .mx-sm-5 { + margin-right: 3rem !important; + } + .mb-sm-5, + .my-sm-5 { + margin-bottom: 3rem !important; + } + .ml-sm-5, + .mx-sm-5 { + margin-left: 3rem !important; + } + .p-sm-0 { + padding: 0 !important; + } + .pt-sm-0, + .py-sm-0 { + padding-top: 0 !important; + } + .pr-sm-0, + .px-sm-0 { + padding-right: 0 !important; + } + .pb-sm-0, + .py-sm-0 { + padding-bottom: 0 !important; + } + .pl-sm-0, + .px-sm-0 { + padding-left: 0 !important; + } + .p-sm-1 { + padding: 0.25rem !important; + } + .pt-sm-1, + .py-sm-1 { + padding-top: 0.25rem !important; + } + .pr-sm-1, + .px-sm-1 { + padding-right: 0.25rem !important; + } + .pb-sm-1, + .py-sm-1 { + padding-bottom: 0.25rem !important; + } + .pl-sm-1, + .px-sm-1 { + padding-left: 0.25rem !important; + } + .p-sm-2 { + padding: 0.5rem !important; + } + .pt-sm-2, + .py-sm-2 { + padding-top: 0.5rem !important; + } + .pr-sm-2, + .px-sm-2 { + padding-right: 0.5rem !important; + } + .pb-sm-2, + .py-sm-2 { + padding-bottom: 0.5rem !important; + } + .pl-sm-2, + .px-sm-2 { + padding-left: 0.5rem !important; + } + .p-sm-3 { + padding: 1rem !important; + } + .pt-sm-3, + .py-sm-3 { + padding-top: 1rem !important; + } + .pr-sm-3, + .px-sm-3 { + padding-right: 1rem !important; + } + .pb-sm-3, + .py-sm-3 { + padding-bottom: 1rem !important; + } + .pl-sm-3, + .px-sm-3 { + padding-left: 1rem !important; + } + .p-sm-4 { + padding: 1.5rem !important; + } + .pt-sm-4, + .py-sm-4 { + padding-top: 1.5rem !important; + } + .pr-sm-4, + .px-sm-4 { + padding-right: 1.5rem !important; + } + .pb-sm-4, + .py-sm-4 { + padding-bottom: 1.5rem !important; + } + .pl-sm-4, + .px-sm-4 { + padding-left: 1.5rem !important; + } + .p-sm-5 { + padding: 3rem !important; + } + .pt-sm-5, + .py-sm-5 { + padding-top: 3rem !important; + } + .pr-sm-5, + .px-sm-5 { + padding-right: 3rem !important; + } + .pb-sm-5, + .py-sm-5 { + padding-bottom: 3rem !important; + } + .pl-sm-5, + .px-sm-5 { + padding-left: 3rem !important; + } + .m-sm-n1 { + margin: -0.25rem !important; + } + .mt-sm-n1, + .my-sm-n1 { + margin-top: -0.25rem !important; + } + .mr-sm-n1, + .mx-sm-n1 { + margin-right: -0.25rem !important; + } + .mb-sm-n1, + .my-sm-n1 { + margin-bottom: -0.25rem !important; + } + .ml-sm-n1, + .mx-sm-n1 { + margin-left: -0.25rem !important; + } + .m-sm-n2 { + margin: -0.5rem !important; + } + .mt-sm-n2, + .my-sm-n2 { + margin-top: -0.5rem !important; + } + .mr-sm-n2, + .mx-sm-n2 { + margin-right: -0.5rem !important; + } + .mb-sm-n2, + .my-sm-n2 { + margin-bottom: -0.5rem !important; + } + .ml-sm-n2, + .mx-sm-n2 { + margin-left: -0.5rem !important; + } + .m-sm-n3 { + margin: -1rem !important; + } + .mt-sm-n3, + .my-sm-n3 { + margin-top: -1rem !important; + } + .mr-sm-n3, + .mx-sm-n3 { + margin-right: -1rem !important; + } + .mb-sm-n3, + .my-sm-n3 { + margin-bottom: -1rem !important; + } + .ml-sm-n3, + .mx-sm-n3 { + margin-left: -1rem !important; + } + .m-sm-n4 { + margin: -1.5rem !important; + } + .mt-sm-n4, + .my-sm-n4 { + margin-top: -1.5rem !important; + } + .mr-sm-n4, + .mx-sm-n4 { + margin-right: -1.5rem !important; + } + .mb-sm-n4, + .my-sm-n4 { + margin-bottom: -1.5rem !important; + } + .ml-sm-n4, + .mx-sm-n4 { + margin-left: -1.5rem !important; + } + .m-sm-n5 { + margin: -3rem !important; + } + .mt-sm-n5, + .my-sm-n5 { + margin-top: -3rem !important; + } + .mr-sm-n5, + .mx-sm-n5 { + margin-right: -3rem !important; + } + .mb-sm-n5, + .my-sm-n5 { + margin-bottom: -3rem !important; + } + .ml-sm-n5, + .mx-sm-n5 { + margin-left: -3rem !important; + } + .m-sm-auto { + margin: auto !important; + } + .mt-sm-auto, + .my-sm-auto { + margin-top: auto !important; + } + .mr-sm-auto, + .mx-sm-auto { + margin-right: auto !important; + } + .mb-sm-auto, + .my-sm-auto { + margin-bottom: auto !important; + } + .ml-sm-auto, + .mx-sm-auto { + margin-left: auto !important; + } +} +@media (min-width: 768px) { + .m-md-0 { + margin: 0 !important; + } + .mt-md-0, + .my-md-0 { + margin-top: 0 !important; + } + .mr-md-0, + .mx-md-0 { + margin-right: 0 !important; + } + .mb-md-0, + .my-md-0 { + margin-bottom: 0 !important; + } + .ml-md-0, + .mx-md-0 { + margin-left: 0 !important; + } + .m-md-1 { + margin: 0.25rem !important; + } + .mt-md-1, + .my-md-1 { + margin-top: 0.25rem !important; + } + .mr-md-1, + .mx-md-1 { + margin-right: 0.25rem !important; + } + .mb-md-1, + .my-md-1 { + margin-bottom: 0.25rem !important; + } + .ml-md-1, + .mx-md-1 { + margin-left: 0.25rem !important; + } + .m-md-2 { + margin: 0.5rem !important; + } + .mt-md-2, + .my-md-2 { + margin-top: 0.5rem !important; + } + .mr-md-2, + .mx-md-2 { + margin-right: 0.5rem !important; + } + .mb-md-2, + .my-md-2 { + margin-bottom: 0.5rem !important; + } + .ml-md-2, + .mx-md-2 { + margin-left: 0.5rem !important; + } + .m-md-3 { + margin: 1rem !important; + } + .mt-md-3, + .my-md-3 { + margin-top: 1rem !important; + } + .mr-md-3, + .mx-md-3 { + margin-right: 1rem !important; + } + .mb-md-3, + .my-md-3 { + margin-bottom: 1rem !important; + } + .ml-md-3, + .mx-md-3 { + margin-left: 1rem !important; + } + .m-md-4 { + margin: 1.5rem !important; + } + .mt-md-4, + .my-md-4 { + margin-top: 1.5rem !important; + } + .mr-md-4, + .mx-md-4 { + margin-right: 1.5rem !important; + } + .mb-md-4, + .my-md-4 { + margin-bottom: 1.5rem !important; + } + .ml-md-4, + .mx-md-4 { + margin-left: 1.5rem !important; + } + .m-md-5 { + margin: 3rem !important; + } + .mt-md-5, + .my-md-5 { + margin-top: 3rem !important; + } + .mr-md-5, + .mx-md-5 { + margin-right: 3rem !important; + } + .mb-md-5, + .my-md-5 { + margin-bottom: 3rem !important; + } + .ml-md-5, + .mx-md-5 { + margin-left: 3rem !important; + } + .p-md-0 { + padding: 0 !important; + } + .pt-md-0, + .py-md-0 { + padding-top: 0 !important; + } + .pr-md-0, + .px-md-0 { + padding-right: 0 !important; + } + .pb-md-0, + .py-md-0 { + padding-bottom: 0 !important; + } + .pl-md-0, + .px-md-0 { + padding-left: 0 !important; + } + .p-md-1 { + padding: 0.25rem !important; + } + .pt-md-1, + .py-md-1 { + padding-top: 0.25rem !important; + } + .pr-md-1, + .px-md-1 { + padding-right: 0.25rem !important; + } + .pb-md-1, + .py-md-1 { + padding-bottom: 0.25rem !important; + } + .pl-md-1, + .px-md-1 { + padding-left: 0.25rem !important; + } + .p-md-2 { + padding: 0.5rem !important; + } + .pt-md-2, + .py-md-2 { + padding-top: 0.5rem !important; + } + .pr-md-2, + .px-md-2 { + padding-right: 0.5rem !important; + } + .pb-md-2, + .py-md-2 { + padding-bottom: 0.5rem !important; + } + .pl-md-2, + .px-md-2 { + padding-left: 0.5rem !important; + } + .p-md-3 { + padding: 1rem !important; + } + .pt-md-3, + .py-md-3 { + padding-top: 1rem !important; + } + .pr-md-3, + .px-md-3 { + padding-right: 1rem !important; + } + .pb-md-3, + .py-md-3 { + padding-bottom: 1rem !important; + } + .pl-md-3, + .px-md-3 { + padding-left: 1rem !important; + } + .p-md-4 { + padding: 1.5rem !important; + } + .pt-md-4, + .py-md-4 { + padding-top: 1.5rem !important; + } + .pr-md-4, + .px-md-4 { + padding-right: 1.5rem !important; + } + .pb-md-4, + .py-md-4 { + padding-bottom: 1.5rem !important; + } + .pl-md-4, + .px-md-4 { + padding-left: 1.5rem !important; + } + .p-md-5 { + padding: 3rem !important; + } + .pt-md-5, + .py-md-5 { + padding-top: 3rem !important; + } + .pr-md-5, + .px-md-5 { + padding-right: 3rem !important; + } + .pb-md-5, + .py-md-5 { + padding-bottom: 3rem !important; + } + .pl-md-5, + .px-md-5 { + padding-left: 3rem !important; + } + .m-md-n1 { + margin: -0.25rem !important; + } + .mt-md-n1, + .my-md-n1 { + margin-top: -0.25rem !important; + } + .mr-md-n1, + .mx-md-n1 { + margin-right: -0.25rem !important; + } + .mb-md-n1, + .my-md-n1 { + margin-bottom: -0.25rem !important; + } + .ml-md-n1, + .mx-md-n1 { + margin-left: -0.25rem !important; + } + .m-md-n2 { + margin: -0.5rem !important; + } + .mt-md-n2, + .my-md-n2 { + margin-top: -0.5rem !important; + } + .mr-md-n2, + .mx-md-n2 { + margin-right: -0.5rem !important; + } + .mb-md-n2, + .my-md-n2 { + margin-bottom: -0.5rem !important; + } + .ml-md-n2, + .mx-md-n2 { + margin-left: -0.5rem !important; + } + .m-md-n3 { + margin: -1rem !important; + } + .mt-md-n3, + .my-md-n3 { + margin-top: -1rem !important; + } + .mr-md-n3, + .mx-md-n3 { + margin-right: -1rem !important; + } + .mb-md-n3, + .my-md-n3 { + margin-bottom: -1rem !important; + } + .ml-md-n3, + .mx-md-n3 { + margin-left: -1rem !important; + } + .m-md-n4 { + margin: -1.5rem !important; + } + .mt-md-n4, + .my-md-n4 { + margin-top: -1.5rem !important; + } + .mr-md-n4, + .mx-md-n4 { + margin-right: -1.5rem !important; + } + .mb-md-n4, + .my-md-n4 { + margin-bottom: -1.5rem !important; + } + .ml-md-n4, + .mx-md-n4 { + margin-left: -1.5rem !important; + } + .m-md-n5 { + margin: -3rem !important; + } + .mt-md-n5, + .my-md-n5 { + margin-top: -3rem !important; + } + .mr-md-n5, + .mx-md-n5 { + margin-right: -3rem !important; + } + .mb-md-n5, + .my-md-n5 { + margin-bottom: -3rem !important; + } + .ml-md-n5, + .mx-md-n5 { + margin-left: -3rem !important; + } + .m-md-auto { + margin: auto !important; + } + .mt-md-auto, + .my-md-auto { + margin-top: auto !important; + } + .mr-md-auto, + .mx-md-auto { + margin-right: auto !important; + } + .mb-md-auto, + .my-md-auto { + margin-bottom: auto !important; + } + .ml-md-auto, + .mx-md-auto { + margin-left: auto !important; + } +} +@media (min-width: 992px) { + .m-lg-0 { + margin: 0 !important; + } + .mt-lg-0, + .my-lg-0 { + margin-top: 0 !important; + } + .mr-lg-0, + .mx-lg-0 { + margin-right: 0 !important; + } + .mb-lg-0, + .my-lg-0 { + margin-bottom: 0 !important; + } + .ml-lg-0, + .mx-lg-0 { + margin-left: 0 !important; + } + .m-lg-1 { + margin: 0.25rem !important; + } + .mt-lg-1, + .my-lg-1 { + margin-top: 0.25rem !important; + } + .mr-lg-1, + .mx-lg-1 { + margin-right: 0.25rem !important; + } + .mb-lg-1, + .my-lg-1 { + margin-bottom: 0.25rem !important; + } + .ml-lg-1, + .mx-lg-1 { + margin-left: 0.25rem !important; + } + .m-lg-2 { + margin: 0.5rem !important; + } + .mt-lg-2, + .my-lg-2 { + margin-top: 0.5rem !important; + } + .mr-lg-2, + .mx-lg-2 { + margin-right: 0.5rem !important; + } + .mb-lg-2, + .my-lg-2 { + margin-bottom: 0.5rem !important; + } + .ml-lg-2, + .mx-lg-2 { + margin-left: 0.5rem !important; + } + .m-lg-3 { + margin: 1rem !important; + } + .mt-lg-3, + .my-lg-3 { + margin-top: 1rem !important; + } + .mr-lg-3, + .mx-lg-3 { + margin-right: 1rem !important; + } + .mb-lg-3, + .my-lg-3 { + margin-bottom: 1rem !important; + } + .ml-lg-3, + .mx-lg-3 { + margin-left: 1rem !important; + } + .m-lg-4 { + margin: 1.5rem !important; + } + .mt-lg-4, + .my-lg-4 { + margin-top: 1.5rem !important; + } + .mr-lg-4, + .mx-lg-4 { + margin-right: 1.5rem !important; + } + .mb-lg-4, + .my-lg-4 { + margin-bottom: 1.5rem !important; + } + .ml-lg-4, + .mx-lg-4 { + margin-left: 1.5rem !important; + } + .m-lg-5 { + margin: 3rem !important; + } + .mt-lg-5, + .my-lg-5 { + margin-top: 3rem !important; + } + .mr-lg-5, + .mx-lg-5 { + margin-right: 3rem !important; + } + .mb-lg-5, + .my-lg-5 { + margin-bottom: 3rem !important; + } + .ml-lg-5, + .mx-lg-5 { + margin-left: 3rem !important; + } + .p-lg-0 { + padding: 0 !important; + } + .pt-lg-0, + .py-lg-0 { + padding-top: 0 !important; + } + .pr-lg-0, + .px-lg-0 { + padding-right: 0 !important; + } + .pb-lg-0, + .py-lg-0 { + padding-bottom: 0 !important; + } + .pl-lg-0, + .px-lg-0 { + padding-left: 0 !important; + } + .p-lg-1 { + padding: 0.25rem !important; + } + .pt-lg-1, + .py-lg-1 { + padding-top: 0.25rem !important; + } + .pr-lg-1, + .px-lg-1 { + padding-right: 0.25rem !important; + } + .pb-lg-1, + .py-lg-1 { + padding-bottom: 0.25rem !important; + } + .pl-lg-1, + .px-lg-1 { + padding-left: 0.25rem !important; + } + .p-lg-2 { + padding: 0.5rem !important; + } + .pt-lg-2, + .py-lg-2 { + padding-top: 0.5rem !important; + } + .pr-lg-2, + .px-lg-2 { + padding-right: 0.5rem !important; + } + .pb-lg-2, + .py-lg-2 { + padding-bottom: 0.5rem !important; + } + .pl-lg-2, + .px-lg-2 { + padding-left: 0.5rem !important; + } + .p-lg-3 { + padding: 1rem !important; + } + .pt-lg-3, + .py-lg-3 { + padding-top: 1rem !important; + } + .pr-lg-3, + .px-lg-3 { + padding-right: 1rem !important; + } + .pb-lg-3, + .py-lg-3 { + padding-bottom: 1rem !important; + } + .pl-lg-3, + .px-lg-3 { + padding-left: 1rem !important; + } + .p-lg-4 { + padding: 1.5rem !important; + } + .pt-lg-4, + .py-lg-4 { + padding-top: 1.5rem !important; + } + .pr-lg-4, + .px-lg-4 { + padding-right: 1.5rem !important; + } + .pb-lg-4, + .py-lg-4 { + padding-bottom: 1.5rem !important; + } + .pl-lg-4, + .px-lg-4 { + padding-left: 1.5rem !important; + } + .p-lg-5 { + padding: 3rem !important; + } + .pt-lg-5, + .py-lg-5 { + padding-top: 3rem !important; + } + .pr-lg-5, + .px-lg-5 { + padding-right: 3rem !important; + } + .pb-lg-5, + .py-lg-5 { + padding-bottom: 3rem !important; + } + .pl-lg-5, + .px-lg-5 { + padding-left: 3rem !important; + } + .m-lg-n1 { + margin: -0.25rem !important; + } + .mt-lg-n1, + .my-lg-n1 { + margin-top: -0.25rem !important; + } + .mr-lg-n1, + .mx-lg-n1 { + margin-right: -0.25rem !important; + } + .mb-lg-n1, + .my-lg-n1 { + margin-bottom: -0.25rem !important; + } + .ml-lg-n1, + .mx-lg-n1 { + margin-left: -0.25rem !important; + } + .m-lg-n2 { + margin: -0.5rem !important; + } + .mt-lg-n2, + .my-lg-n2 { + margin-top: -0.5rem !important; + } + .mr-lg-n2, + .mx-lg-n2 { + margin-right: -0.5rem !important; + } + .mb-lg-n2, + .my-lg-n2 { + margin-bottom: -0.5rem !important; + } + .ml-lg-n2, + .mx-lg-n2 { + margin-left: -0.5rem !important; + } + .m-lg-n3 { + margin: -1rem !important; + } + .mt-lg-n3, + .my-lg-n3 { + margin-top: -1rem !important; + } + .mr-lg-n3, + .mx-lg-n3 { + margin-right: -1rem !important; + } + .mb-lg-n3, + .my-lg-n3 { + margin-bottom: -1rem !important; + } + .ml-lg-n3, + .mx-lg-n3 { + margin-left: -1rem !important; + } + .m-lg-n4 { + margin: -1.5rem !important; + } + .mt-lg-n4, + .my-lg-n4 { + margin-top: -1.5rem !important; + } + .mr-lg-n4, + .mx-lg-n4 { + margin-right: -1.5rem !important; + } + .mb-lg-n4, + .my-lg-n4 { + margin-bottom: -1.5rem !important; + } + .ml-lg-n4, + .mx-lg-n4 { + margin-left: -1.5rem !important; + } + .m-lg-n5 { + margin: -3rem !important; + } + .mt-lg-n5, + .my-lg-n5 { + margin-top: -3rem !important; + } + .mr-lg-n5, + .mx-lg-n5 { + margin-right: -3rem !important; + } + .mb-lg-n5, + .my-lg-n5 { + margin-bottom: -3rem !important; + } + .ml-lg-n5, + .mx-lg-n5 { + margin-left: -3rem !important; + } + .m-lg-auto { + margin: auto !important; + } + .mt-lg-auto, + .my-lg-auto { + margin-top: auto !important; + } + .mr-lg-auto, + .mx-lg-auto { + margin-right: auto !important; + } + .mb-lg-auto, + .my-lg-auto { + margin-bottom: auto !important; + } + .ml-lg-auto, + .mx-lg-auto { + margin-left: auto !important; + } +} +@media (min-width: 1200px) { + .m-xl-0 { + margin: 0 !important; + } + .mt-xl-0, + .my-xl-0 { + margin-top: 0 !important; + } + .mr-xl-0, + .mx-xl-0 { + margin-right: 0 !important; + } + .mb-xl-0, + .my-xl-0 { + margin-bottom: 0 !important; + } + .ml-xl-0, + .mx-xl-0 { + margin-left: 0 !important; + } + .m-xl-1 { + margin: 0.25rem !important; + } + .mt-xl-1, + .my-xl-1 { + margin-top: 0.25rem !important; + } + .mr-xl-1, + .mx-xl-1 { + margin-right: 0.25rem !important; + } + .mb-xl-1, + .my-xl-1 { + margin-bottom: 0.25rem !important; + } + .ml-xl-1, + .mx-xl-1 { + margin-left: 0.25rem !important; + } + .m-xl-2 { + margin: 0.5rem !important; + } + .mt-xl-2, + .my-xl-2 { + margin-top: 0.5rem !important; + } + .mr-xl-2, + .mx-xl-2 { + margin-right: 0.5rem !important; + } + .mb-xl-2, + .my-xl-2 { + margin-bottom: 0.5rem !important; + } + .ml-xl-2, + .mx-xl-2 { + margin-left: 0.5rem !important; + } + .m-xl-3 { + margin: 1rem !important; + } + .mt-xl-3, + .my-xl-3 { + margin-top: 1rem !important; + } + .mr-xl-3, + .mx-xl-3 { + margin-right: 1rem !important; + } + .mb-xl-3, + .my-xl-3 { + margin-bottom: 1rem !important; + } + .ml-xl-3, + .mx-xl-3 { + margin-left: 1rem !important; + } + .m-xl-4 { + margin: 1.5rem !important; + } + .mt-xl-4, + .my-xl-4 { + margin-top: 1.5rem !important; + } + .mr-xl-4, + .mx-xl-4 { + margin-right: 1.5rem !important; + } + .mb-xl-4, + .my-xl-4 { + margin-bottom: 1.5rem !important; + } + .ml-xl-4, + .mx-xl-4 { + margin-left: 1.5rem !important; + } + .m-xl-5 { + margin: 3rem !important; + } + .mt-xl-5, + .my-xl-5 { + margin-top: 3rem !important; + } + .mr-xl-5, + .mx-xl-5 { + margin-right: 3rem !important; + } + .mb-xl-5, + .my-xl-5 { + margin-bottom: 3rem !important; + } + .ml-xl-5, + .mx-xl-5 { + margin-left: 3rem !important; + } + .p-xl-0 { + padding: 0 !important; + } + .pt-xl-0, + .py-xl-0 { + padding-top: 0 !important; + } + .pr-xl-0, + .px-xl-0 { + padding-right: 0 !important; + } + .pb-xl-0, + .py-xl-0 { + padding-bottom: 0 !important; + } + .pl-xl-0, + .px-xl-0 { + padding-left: 0 !important; + } + .p-xl-1 { + padding: 0.25rem !important; + } + .pt-xl-1, + .py-xl-1 { + padding-top: 0.25rem !important; + } + .pr-xl-1, + .px-xl-1 { + padding-right: 0.25rem !important; + } + .pb-xl-1, + .py-xl-1 { + padding-bottom: 0.25rem !important; + } + .pl-xl-1, + .px-xl-1 { + padding-left: 0.25rem !important; + } + .p-xl-2 { + padding: 0.5rem !important; + } + .pt-xl-2, + .py-xl-2 { + padding-top: 0.5rem !important; + } + .pr-xl-2, + .px-xl-2 { + padding-right: 0.5rem !important; + } + .pb-xl-2, + .py-xl-2 { + padding-bottom: 0.5rem !important; + } + .pl-xl-2, + .px-xl-2 { + padding-left: 0.5rem !important; + } + .p-xl-3 { + padding: 1rem !important; + } + .pt-xl-3, + .py-xl-3 { + padding-top: 1rem !important; + } + .pr-xl-3, + .px-xl-3 { + padding-right: 1rem !important; + } + .pb-xl-3, + .py-xl-3 { + padding-bottom: 1rem !important; + } + .pl-xl-3, + .px-xl-3 { + padding-left: 1rem !important; + } + .p-xl-4 { + padding: 1.5rem !important; + } + .pt-xl-4, + .py-xl-4 { + padding-top: 1.5rem !important; + } + .pr-xl-4, + .px-xl-4 { + padding-right: 1.5rem !important; + } + .pb-xl-4, + .py-xl-4 { + padding-bottom: 1.5rem !important; + } + .pl-xl-4, + .px-xl-4 { + padding-left: 1.5rem !important; + } + .p-xl-5 { + padding: 3rem !important; + } + .pt-xl-5, + .py-xl-5 { + padding-top: 3rem !important; + } + .pr-xl-5, + .px-xl-5 { + padding-right: 3rem !important; + } + .pb-xl-5, + .py-xl-5 { + padding-bottom: 3rem !important; + } + .pl-xl-5, + .px-xl-5 { + padding-left: 3rem !important; + } + .m-xl-n1 { + margin: -0.25rem !important; + } + .mt-xl-n1, + .my-xl-n1 { + margin-top: -0.25rem !important; + } + .mr-xl-n1, + .mx-xl-n1 { + margin-right: -0.25rem !important; + } + .mb-xl-n1, + .my-xl-n1 { + margin-bottom: -0.25rem !important; + } + .ml-xl-n1, + .mx-xl-n1 { + margin-left: -0.25rem !important; + } + .m-xl-n2 { + margin: -0.5rem !important; + } + .mt-xl-n2, + .my-xl-n2 { + margin-top: -0.5rem !important; + } + .mr-xl-n2, + .mx-xl-n2 { + margin-right: -0.5rem !important; + } + .mb-xl-n2, + .my-xl-n2 { + margin-bottom: -0.5rem !important; + } + .ml-xl-n2, + .mx-xl-n2 { + margin-left: -0.5rem !important; + } + .m-xl-n3 { + margin: -1rem !important; + } + .mt-xl-n3, + .my-xl-n3 { + margin-top: -1rem !important; + } + .mr-xl-n3, + .mx-xl-n3 { + margin-right: -1rem !important; + } + .mb-xl-n3, + .my-xl-n3 { + margin-bottom: -1rem !important; + } + .ml-xl-n3, + .mx-xl-n3 { + margin-left: -1rem !important; + } + .m-xl-n4 { + margin: -1.5rem !important; + } + .mt-xl-n4, + .my-xl-n4 { + margin-top: -1.5rem !important; + } + .mr-xl-n4, + .mx-xl-n4 { + margin-right: -1.5rem !important; + } + .mb-xl-n4, + .my-xl-n4 { + margin-bottom: -1.5rem !important; + } + .ml-xl-n4, + .mx-xl-n4 { + margin-left: -1.5rem !important; + } + .m-xl-n5 { + margin: -3rem !important; + } + .mt-xl-n5, + .my-xl-n5 { + margin-top: -3rem !important; + } + .mr-xl-n5, + .mx-xl-n5 { + margin-right: -3rem !important; + } + .mb-xl-n5, + .my-xl-n5 { + margin-bottom: -3rem !important; + } + .ml-xl-n5, + .mx-xl-n5 { + margin-left: -3rem !important; + } + .m-xl-auto { + margin: auto !important; + } + .mt-xl-auto, + .my-xl-auto { + margin-top: auto !important; + } + .mr-xl-auto, + .mx-xl-auto { + margin-right: auto !important; + } + .mb-xl-auto, + .my-xl-auto { + margin-bottom: auto !important; + } + .ml-xl-auto, + .mx-xl-auto { + margin-left: auto !important; + } +} +.stretched-link::after { + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; + z-index: 1; + pointer-events: auto; + content: ""; + background-color: rgba(0, 0, 0, 0); +} + +.text-monospace { + font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", + "Courier New", monospace !important; +} + +.text-justify { + text-align: justify !important; +} + +.text-wrap { + white-space: normal !important; +} + +.text-nowrap { + white-space: nowrap !important; +} + +.text-truncate { + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + +.text-left { + text-align: left !important; +} + +.text-right { + text-align: right !important; +} + +.text-center { + text-align: center !important; +} + +@media (min-width: 576px) { + .text-sm-left { + text-align: left !important; + } + .text-sm-right { + text-align: right !important; + } + .text-sm-center { + text-align: center !important; + } +} +@media (min-width: 768px) { + .text-md-left { + text-align: left !important; + } + .text-md-right { + text-align: right !important; + } + .text-md-center { + text-align: center !important; + } +} +@media (min-width: 992px) { + .text-lg-left { + text-align: left !important; + } + .text-lg-right { + text-align: right !important; + } + .text-lg-center { + text-align: center !important; + } +} +@media (min-width: 1200px) { + .text-xl-left { + text-align: left !important; + } + .text-xl-right { + text-align: right !important; + } + .text-xl-center { + text-align: center !important; + } +} +.text-lowercase { + text-transform: lowercase !important; +} + +.text-uppercase { + text-transform: uppercase !important; +} + +.text-capitalize { + text-transform: capitalize !important; +} + +.font-weight-light { + font-weight: 300 !important; +} + +.font-weight-lighter { + font-weight: lighter !important; +} + +.font-weight-normal { + font-weight: 400 !important; +} + +.font-weight-bold { + font-weight: 700 !important; +} + +.font-weight-bolder { + font-weight: bolder !important; +} + +.font-italic { + font-style: italic !important; +} + +.text-white { + color: #fff !important; +} + +.text-primary { + color: #007bff !important; +} + +a.text-primary:hover, +a.text-primary:focus { + color: #0056b3 !important; +} + +.text-secondary { + color: #6c757d !important; +} + +a.text-secondary:hover, +a.text-secondary:focus { + color: #494f54 !important; +} + +.text-success { + color: #28a745 !important; +} + +a.text-success:hover, +a.text-success:focus { + color: #19692c !important; +} + +.text-info { + color: #17a2b8 !important; +} + +a.text-info:hover, +a.text-info:focus { + color: #0f6674 !important; +} + +.text-warning { + color: #ffc107 !important; +} + +a.text-warning:hover, +a.text-warning:focus { + color: #ba8b00 !important; +} + +.text-danger { + color: #dc3545 !important; +} + +a.text-danger:hover, +a.text-danger:focus { + color: #a71d2a !important; +} + +.text-light { + color: #f8f9fa !important; +} + +a.text-light:hover, +a.text-light:focus { + color: #cbd3da !important; +} + +.text-dark { + color: #343a40 !important; +} + +a.text-dark:hover, +a.text-dark:focus { + color: #121416 !important; +} + +.text-body { + color: #212529 !important; +} + +.text-muted { + color: #6c757d !important; +} + +.text-black-50 { + color: rgba(0, 0, 0, 0.5) !important; +} + +.text-white-50 { + color: rgba(255, 255, 255, 0.5) !important; +} + +.text-hide { + font: 0/0 a; + color: transparent; + text-shadow: none; + background-color: transparent; + border: 0; +} + +.text-decoration-none { + text-decoration: none !important; +} + +.text-break { + word-break: break-word !important; + word-wrap: break-word !important; +} + +.text-reset { + color: inherit !important; +} + +.visible { + visibility: visible !important; +} + +.invisible { + visibility: hidden !important; +} + +/*! + * Bootstrap Grid v4.6.0 (https://getbootstrap.com/) + * Copyright 2011-2021 The Bootstrap Authors + * Copyright 2011-2021 Twitter, Inc. + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) + */ +html { + box-sizing: border-box; + -ms-overflow-style: scrollbar; +} + +*, +*::before, +*::after { + box-sizing: inherit; +} + +.container, +.container-fluid, +.container-xl, +.container-lg, +.container-md, +.container-sm { + width: 100%; + padding-right: 15px; + padding-left: 15px; + margin-right: auto; + margin-left: auto; +} + +@media (min-width: 576px) { + .container-sm, + .container { + max-width: 540px; + } +} +@media (min-width: 768px) { + .container-md, + .container-sm, + .container { + max-width: 720px; + } +} +@media (min-width: 992px) { + .container-lg, + .container-md, + .container-sm, + .container { + max-width: 960px; + } +} +@media (min-width: 1200px) { + .container-xl, + .container-lg, + .container-md, + .container-sm, + .container { + max-width: 1140px; + } +} +.row { + display: flex; + flex-wrap: wrap; + margin-right: -15px; + margin-left: -15px; +} + +.no-gutters { + margin-right: 0; + margin-left: 0; +} +.no-gutters > .col, +.no-gutters > [class*="col-"] { + padding-right: 0; + padding-left: 0; +} + +.col-xl, +.col-xl-auto, +.col-xl-12, +.col-xl-11, +.col-xl-10, +.col-xl-9, +.col-xl-8, +.col-xl-7, +.col-xl-6, +.col-xl-5, +.col-xl-4, +.col-xl-3, +.col-xl-2, +.col-xl-1, +.col-lg, +.col-lg-auto, +.col-lg-12, +.col-lg-11, +.col-lg-10, +.col-lg-9, +.col-lg-8, +.col-lg-7, +.col-lg-6, +.col-lg-5, +.col-lg-4, +.col-lg-3, +.col-lg-2, +.col-lg-1, +.col-md, +.col-md-auto, +.col-md-12, +.col-md-11, +.col-md-10, +.col-md-9, +.col-md-8, +.col-md-7, +.col-md-6, +.col-md-5, +.col-md-4, +.col-md-3, +.col-md-2, +.col-md-1, +.col-sm, +.col-sm-auto, +.col-sm-12, +.col-sm-11, +.col-sm-10, +.col-sm-9, +.col-sm-8, +.col-sm-7, +.col-sm-6, +.col-sm-5, +.col-sm-4, +.col-sm-3, +.col-sm-2, +.col-sm-1, +.col, +.col-auto, +.col-12, +.col-11, +.col-10, +.col-9, +.col-8, +.col-7, +.col-6, +.col-5, +.col-4, +.col-3, +.col-2, +.col-1 { + position: relative; + width: 100%; + padding-right: 15px; + padding-left: 15px; +} + +.col { + flex-basis: 0; + flex-grow: 1; + max-width: 100%; +} + +.row-cols-1 > * { + flex: 0 0 100%; + max-width: 100%; +} + +.row-cols-2 > * { + flex: 0 0 50%; + max-width: 50%; +} + +.row-cols-3 > * { + flex: 0 0 33.3333333333%; + max-width: 33.3333333333%; +} + +.row-cols-4 > * { + flex: 0 0 25%; + max-width: 25%; +} + +.row-cols-5 > * { + flex: 0 0 20%; + max-width: 20%; +} + +.row-cols-6 > * { + flex: 0 0 16.6666666667%; + max-width: 16.6666666667%; +} + +.col-auto { + flex: 0 0 auto; + width: auto; + max-width: 100%; +} + +.col-1 { + flex: 0 0 8.3333333333%; + max-width: 8.3333333333%; +} + +.col-2 { + flex: 0 0 16.6666666667%; + max-width: 16.6666666667%; +} + +.col-3 { + flex: 0 0 25%; + max-width: 25%; +} + +.col-4 { + flex: 0 0 33.3333333333%; + max-width: 33.3333333333%; +} + +.col-5 { + flex: 0 0 41.6666666667%; + max-width: 41.6666666667%; +} + +.col-6 { + flex: 0 0 50%; + max-width: 50%; +} + +.col-7 { + flex: 0 0 58.3333333333%; + max-width: 58.3333333333%; +} + +.col-8 { + flex: 0 0 66.6666666667%; + max-width: 66.6666666667%; +} + +.col-9 { + flex: 0 0 75%; + max-width: 75%; +} + +.col-10 { + flex: 0 0 83.3333333333%; + max-width: 83.3333333333%; +} + +.col-11 { + flex: 0 0 91.6666666667%; + max-width: 91.6666666667%; +} + +.col-12 { + flex: 0 0 100%; + max-width: 100%; +} + +.order-first { + order: -1; +} + +.order-last { + order: 13; +} + +.order-0 { + order: 0; +} + +.order-1 { + order: 1; +} + +.order-2 { + order: 2; +} + +.order-3 { + order: 3; +} + +.order-4 { + order: 4; +} + +.order-5 { + order: 5; +} + +.order-6 { + order: 6; +} + +.order-7 { + order: 7; +} + +.order-8 { + order: 8; +} + +.order-9 { + order: 9; +} + +.order-10 { + order: 10; +} + +.order-11 { + order: 11; +} + +.order-12 { + order: 12; +} + +.offset-1 { + margin-left: 8.3333333333%; +} + +.offset-2 { + margin-left: 16.6666666667%; +} + +.offset-3 { + margin-left: 25%; +} + +.offset-4 { + margin-left: 33.3333333333%; +} + +.offset-5 { + margin-left: 41.6666666667%; +} + +.offset-6 { + margin-left: 50%; +} + +.offset-7 { + margin-left: 58.3333333333%; +} + +.offset-8 { + margin-left: 66.6666666667%; +} + +.offset-9 { + margin-left: 75%; +} + +.offset-10 { + margin-left: 83.3333333333%; +} + +.offset-11 { + margin-left: 91.6666666667%; +} + +@media (min-width: 576px) { + .col-sm { + flex-basis: 0; + flex-grow: 1; + max-width: 100%; + } + .row-cols-sm-1 > * { + flex: 0 0 100%; + max-width: 100%; + } + .row-cols-sm-2 > * { + flex: 0 0 50%; + max-width: 50%; + } + .row-cols-sm-3 > * { + flex: 0 0 33.3333333333%; + max-width: 33.3333333333%; + } + .row-cols-sm-4 > * { + flex: 0 0 25%; + max-width: 25%; + } + .row-cols-sm-5 > * { + flex: 0 0 20%; + max-width: 20%; + } + .row-cols-sm-6 > * { + flex: 0 0 16.6666666667%; + max-width: 16.6666666667%; + } + .col-sm-auto { + flex: 0 0 auto; + width: auto; + max-width: 100%; + } + .col-sm-1 { + flex: 0 0 8.3333333333%; + max-width: 8.3333333333%; + } + .col-sm-2 { + flex: 0 0 16.6666666667%; + max-width: 16.6666666667%; + } + .col-sm-3 { + flex: 0 0 25%; + max-width: 25%; + } + .col-sm-4 { + flex: 0 0 33.3333333333%; + max-width: 33.3333333333%; + } + .col-sm-5 { + flex: 0 0 41.6666666667%; + max-width: 41.6666666667%; + } + .col-sm-6 { + flex: 0 0 50%; + max-width: 50%; + } + .col-sm-7 { + flex: 0 0 58.3333333333%; + max-width: 58.3333333333%; + } + .col-sm-8 { + flex: 0 0 66.6666666667%; + max-width: 66.6666666667%; + } + .col-sm-9 { + flex: 0 0 75%; + max-width: 75%; + } + .col-sm-10 { + flex: 0 0 83.3333333333%; + max-width: 83.3333333333%; + } + .col-sm-11 { + flex: 0 0 91.6666666667%; + max-width: 91.6666666667%; + } + .col-sm-12 { + flex: 0 0 100%; + max-width: 100%; + } + .order-sm-first { + order: -1; + } + .order-sm-last { + order: 13; + } + .order-sm-0 { + order: 0; + } + .order-sm-1 { + order: 1; + } + .order-sm-2 { + order: 2; + } + .order-sm-3 { + order: 3; + } + .order-sm-4 { + order: 4; + } + .order-sm-5 { + order: 5; + } + .order-sm-6 { + order: 6; + } + .order-sm-7 { + order: 7; + } + .order-sm-8 { + order: 8; + } + .order-sm-9 { + order: 9; + } + .order-sm-10 { + order: 10; + } + .order-sm-11 { + order: 11; + } + .order-sm-12 { + order: 12; + } + .offset-sm-0 { + margin-left: 0; + } + .offset-sm-1 { + margin-left: 8.3333333333%; + } + .offset-sm-2 { + margin-left: 16.6666666667%; + } + .offset-sm-3 { + margin-left: 25%; + } + .offset-sm-4 { + margin-left: 33.3333333333%; + } + .offset-sm-5 { + margin-left: 41.6666666667%; + } + .offset-sm-6 { + margin-left: 50%; + } + .offset-sm-7 { + margin-left: 58.3333333333%; + } + .offset-sm-8 { + margin-left: 66.6666666667%; + } + .offset-sm-9 { + margin-left: 75%; + } + .offset-sm-10 { + margin-left: 83.3333333333%; + } + .offset-sm-11 { + margin-left: 91.6666666667%; + } +} +@media (min-width: 768px) { + .col-md { + flex-basis: 0; + flex-grow: 1; + max-width: 100%; + } + .row-cols-md-1 > * { + flex: 0 0 100%; + max-width: 100%; + } + .row-cols-md-2 > * { + flex: 0 0 50%; + max-width: 50%; + } + .row-cols-md-3 > * { + flex: 0 0 33.3333333333%; + max-width: 33.3333333333%; + } + .row-cols-md-4 > * { + flex: 0 0 25%; + max-width: 25%; + } + .row-cols-md-5 > * { + flex: 0 0 20%; + max-width: 20%; + } + .row-cols-md-6 > * { + flex: 0 0 16.6666666667%; + max-width: 16.6666666667%; + } + .col-md-auto { + flex: 0 0 auto; + width: auto; + max-width: 100%; + } + .col-md-1 { + flex: 0 0 8.3333333333%; + max-width: 8.3333333333%; + } + .col-md-2 { + flex: 0 0 16.6666666667%; + max-width: 16.6666666667%; + } + .col-md-3 { + flex: 0 0 25%; + max-width: 25%; + } + .col-md-4 { + flex: 0 0 33.3333333333%; + max-width: 33.3333333333%; + } + .col-md-5 { + flex: 0 0 41.6666666667%; + max-width: 41.6666666667%; + } + .col-md-6 { + flex: 0 0 50%; + max-width: 50%; + } + .col-md-7 { + flex: 0 0 58.3333333333%; + max-width: 58.3333333333%; + } + .col-md-8 { + flex: 0 0 66.6666666667%; + max-width: 66.6666666667%; + } + .col-md-9 { + flex: 0 0 75%; + max-width: 75%; + } + .col-md-10 { + flex: 0 0 83.3333333333%; + max-width: 83.3333333333%; + } + .col-md-11 { + flex: 0 0 91.6666666667%; + max-width: 91.6666666667%; + } + .col-md-12 { + flex: 0 0 100%; + max-width: 100%; + } + .order-md-first { + order: -1; + } + .order-md-last { + order: 13; + } + .order-md-0 { + order: 0; + } + .order-md-1 { + order: 1; + } + .order-md-2 { + order: 2; + } + .order-md-3 { + order: 3; + } + .order-md-4 { + order: 4; + } + .order-md-5 { + order: 5; + } + .order-md-6 { + order: 6; + } + .order-md-7 { + order: 7; + } + .order-md-8 { + order: 8; + } + .order-md-9 { + order: 9; + } + .order-md-10 { + order: 10; + } + .order-md-11 { + order: 11; + } + .order-md-12 { + order: 12; + } + .offset-md-0 { + margin-left: 0; + } + .offset-md-1 { + margin-left: 8.3333333333%; + } + .offset-md-2 { + margin-left: 16.6666666667%; + } + .offset-md-3 { + margin-left: 25%; + } + .offset-md-4 { + margin-left: 33.3333333333%; + } + .offset-md-5 { + margin-left: 41.6666666667%; + } + .offset-md-6 { + margin-left: 50%; + } + .offset-md-7 { + margin-left: 58.3333333333%; + } + .offset-md-8 { + margin-left: 66.6666666667%; + } + .offset-md-9 { + margin-left: 75%; + } + .offset-md-10 { + margin-left: 83.3333333333%; + } + .offset-md-11 { + margin-left: 91.6666666667%; + } +} +@media (min-width: 992px) { + .col-lg { + flex-basis: 0; + flex-grow: 1; + max-width: 100%; + } + .row-cols-lg-1 > * { + flex: 0 0 100%; + max-width: 100%; + } + .row-cols-lg-2 > * { + flex: 0 0 50%; + max-width: 50%; + } + .row-cols-lg-3 > * { + flex: 0 0 33.3333333333%; + max-width: 33.3333333333%; + } + .row-cols-lg-4 > * { + flex: 0 0 25%; + max-width: 25%; + } + .row-cols-lg-5 > * { + flex: 0 0 20%; + max-width: 20%; + } + .row-cols-lg-6 > * { + flex: 0 0 16.6666666667%; + max-width: 16.6666666667%; + } + .col-lg-auto { + flex: 0 0 auto; + width: auto; + max-width: 100%; + } + .col-lg-1 { + flex: 0 0 8.3333333333%; + max-width: 8.3333333333%; + } + .col-lg-2 { + flex: 0 0 16.6666666667%; + max-width: 16.6666666667%; + } + .col-lg-3 { + flex: 0 0 25%; + max-width: 25%; + } + .col-lg-4 { + flex: 0 0 33.3333333333%; + max-width: 33.3333333333%; + } + .col-lg-5 { + flex: 0 0 41.6666666667%; + max-width: 41.6666666667%; + } + .col-lg-6 { + flex: 0 0 50%; + max-width: 50%; + } + .col-lg-7 { + flex: 0 0 58.3333333333%; + max-width: 58.3333333333%; + } + .col-lg-8 { + flex: 0 0 66.6666666667%; + max-width: 66.6666666667%; + } + .col-lg-9 { + flex: 0 0 75%; + max-width: 75%; + } + .col-lg-10 { + flex: 0 0 83.3333333333%; + max-width: 83.3333333333%; + } + .col-lg-11 { + flex: 0 0 91.6666666667%; + max-width: 91.6666666667%; + } + .col-lg-12 { + flex: 0 0 100%; + max-width: 100%; + } + .order-lg-first { + order: -1; + } + .order-lg-last { + order: 13; + } + .order-lg-0 { + order: 0; + } + .order-lg-1 { + order: 1; + } + .order-lg-2 { + order: 2; + } + .order-lg-3 { + order: 3; + } + .order-lg-4 { + order: 4; + } + .order-lg-5 { + order: 5; + } + .order-lg-6 { + order: 6; + } + .order-lg-7 { + order: 7; + } + .order-lg-8 { + order: 8; + } + .order-lg-9 { + order: 9; + } + .order-lg-10 { + order: 10; + } + .order-lg-11 { + order: 11; + } + .order-lg-12 { + order: 12; + } + .offset-lg-0 { + margin-left: 0; + } + .offset-lg-1 { + margin-left: 8.3333333333%; + } + .offset-lg-2 { + margin-left: 16.6666666667%; + } + .offset-lg-3 { + margin-left: 25%; + } + .offset-lg-4 { + margin-left: 33.3333333333%; + } + .offset-lg-5 { + margin-left: 41.6666666667%; + } + .offset-lg-6 { + margin-left: 50%; + } + .offset-lg-7 { + margin-left: 58.3333333333%; + } + .offset-lg-8 { + margin-left: 66.6666666667%; + } + .offset-lg-9 { + margin-left: 75%; + } + .offset-lg-10 { + margin-left: 83.3333333333%; + } + .offset-lg-11 { + margin-left: 91.6666666667%; + } +} +@media (min-width: 1200px) { + .col-xl { + flex-basis: 0; + flex-grow: 1; + max-width: 100%; + } + .row-cols-xl-1 > * { + flex: 0 0 100%; + max-width: 100%; + } + .row-cols-xl-2 > * { + flex: 0 0 50%; + max-width: 50%; + } + .row-cols-xl-3 > * { + flex: 0 0 33.3333333333%; + max-width: 33.3333333333%; + } + .row-cols-xl-4 > * { + flex: 0 0 25%; + max-width: 25%; + } + .row-cols-xl-5 > * { + flex: 0 0 20%; + max-width: 20%; + } + .row-cols-xl-6 > * { + flex: 0 0 16.6666666667%; + max-width: 16.6666666667%; + } + .col-xl-auto { + flex: 0 0 auto; + width: auto; + max-width: 100%; + } + .col-xl-1 { + flex: 0 0 8.3333333333%; + max-width: 8.3333333333%; + } + .col-xl-2 { + flex: 0 0 16.6666666667%; + max-width: 16.6666666667%; + } + .col-xl-3 { + flex: 0 0 25%; + max-width: 25%; + } + .col-xl-4 { + flex: 0 0 33.3333333333%; + max-width: 33.3333333333%; + } + .col-xl-5 { + flex: 0 0 41.6666666667%; + max-width: 41.6666666667%; + } + .col-xl-6 { + flex: 0 0 50%; + max-width: 50%; + } + .col-xl-7 { + flex: 0 0 58.3333333333%; + max-width: 58.3333333333%; + } + .col-xl-8 { + flex: 0 0 66.6666666667%; + max-width: 66.6666666667%; + } + .col-xl-9 { + flex: 0 0 75%; + max-width: 75%; + } + .col-xl-10 { + flex: 0 0 83.3333333333%; + max-width: 83.3333333333%; + } + .col-xl-11 { + flex: 0 0 91.6666666667%; + max-width: 91.6666666667%; + } + .col-xl-12 { + flex: 0 0 100%; + max-width: 100%; + } + .order-xl-first { + order: -1; + } + .order-xl-last { + order: 13; + } + .order-xl-0 { + order: 0; + } + .order-xl-1 { + order: 1; + } + .order-xl-2 { + order: 2; + } + .order-xl-3 { + order: 3; + } + .order-xl-4 { + order: 4; + } + .order-xl-5 { + order: 5; + } + .order-xl-6 { + order: 6; + } + .order-xl-7 { + order: 7; + } + .order-xl-8 { + order: 8; + } + .order-xl-9 { + order: 9; + } + .order-xl-10 { + order: 10; + } + .order-xl-11 { + order: 11; + } + .order-xl-12 { + order: 12; + } + .offset-xl-0 { + margin-left: 0; + } + .offset-xl-1 { + margin-left: 8.3333333333%; + } + .offset-xl-2 { + margin-left: 16.6666666667%; + } + .offset-xl-3 { + margin-left: 25%; + } + .offset-xl-4 { + margin-left: 33.3333333333%; + } + .offset-xl-5 { + margin-left: 41.6666666667%; + } + .offset-xl-6 { + margin-left: 50%; + } + .offset-xl-7 { + margin-left: 58.3333333333%; + } + .offset-xl-8 { + margin-left: 66.6666666667%; + } + .offset-xl-9 { + margin-left: 75%; + } + .offset-xl-10 { + margin-left: 83.3333333333%; + } + .offset-xl-11 { + margin-left: 91.6666666667%; + } +} +.d-none { + display: none !important; +} + +.d-inline { + display: inline !important; +} + +.d-inline-block { + display: inline-block !important; +} + +.d-block { + display: block !important; +} + +.d-table { + display: table !important; +} + +.d-table-row { + display: table-row !important; +} + +.d-table-cell { + display: table-cell !important; +} + +.d-flex { + display: flex !important; +} + +.d-inline-flex { + display: inline-flex !important; +} + +@media (min-width: 576px) { + .d-sm-none { + display: none !important; + } + .d-sm-inline { + display: inline !important; + } + .d-sm-inline-block { + display: inline-block !important; + } + .d-sm-block { + display: block !important; + } + .d-sm-table { + display: table !important; + } + .d-sm-table-row { + display: table-row !important; + } + .d-sm-table-cell { + display: table-cell !important; + } + .d-sm-flex { + display: flex !important; + } + .d-sm-inline-flex { + display: inline-flex !important; + } +} +@media (min-width: 768px) { + .d-md-none { + display: none !important; + } + .d-md-inline { + display: inline !important; + } + .d-md-inline-block { + display: inline-block !important; + } + .d-md-block { + display: block !important; + } + .d-md-table { + display: table !important; + } + .d-md-table-row { + display: table-row !important; + } + .d-md-table-cell { + display: table-cell !important; + } + .d-md-flex { + display: flex !important; + } + .d-md-inline-flex { + display: inline-flex !important; + } +} +@media (min-width: 992px) { + .d-lg-none { + display: none !important; + } + .d-lg-inline { + display: inline !important; + } + .d-lg-inline-block { + display: inline-block !important; + } + .d-lg-block { + display: block !important; + } + .d-lg-table { + display: table !important; + } + .d-lg-table-row { + display: table-row !important; + } + .d-lg-table-cell { + display: table-cell !important; + } + .d-lg-flex { + display: flex !important; + } + .d-lg-inline-flex { + display: inline-flex !important; + } +} +@media (min-width: 1200px) { + .d-xl-none { + display: none !important; + } + .d-xl-inline { + display: inline !important; + } + .d-xl-inline-block { + display: inline-block !important; + } + .d-xl-block { + display: block !important; + } + .d-xl-table { + display: table !important; + } + .d-xl-table-row { + display: table-row !important; + } + .d-xl-table-cell { + display: table-cell !important; + } + .d-xl-flex { + display: flex !important; + } + .d-xl-inline-flex { + display: inline-flex !important; + } +} +@media print { + .d-print-none { + display: none !important; + } + .d-print-inline { + display: inline !important; + } + .d-print-inline-block { + display: inline-block !important; + } + .d-print-block { + display: block !important; + } + .d-print-table { + display: table !important; + } + .d-print-table-row { + display: table-row !important; + } + .d-print-table-cell { + display: table-cell !important; + } + .d-print-flex { + display: flex !important; + } + .d-print-inline-flex { + display: inline-flex !important; + } +} +.flex-row { + flex-direction: row !important; +} + +.flex-column { + flex-direction: column !important; +} + +.flex-row-reverse { + flex-direction: row-reverse !important; +} + +.flex-column-reverse { + flex-direction: column-reverse !important; +} + +.flex-wrap { + flex-wrap: wrap !important; +} + +.flex-nowrap { + flex-wrap: nowrap !important; +} + +.flex-wrap-reverse { + flex-wrap: wrap-reverse !important; +} + +.flex-fill { + flex: 1 1 auto !important; +} + +.flex-grow-0 { + flex-grow: 0 !important; +} + +.flex-grow-1 { + flex-grow: 1 !important; +} + +.flex-shrink-0 { + flex-shrink: 0 !important; +} + +.flex-shrink-1 { + flex-shrink: 1 !important; +} + +.justify-content-start { + justify-content: flex-start !important; +} + +.justify-content-end { + justify-content: flex-end !important; +} + +.justify-content-center { + justify-content: center !important; +} + +.justify-content-between { + justify-content: space-between !important; +} + +.justify-content-around { + justify-content: space-around !important; +} + +.align-items-start { + align-items: flex-start !important; +} + +.align-items-end { + align-items: flex-end !important; +} + +.align-items-center { + align-items: center !important; +} + +.align-items-baseline { + align-items: baseline !important; +} + +.align-items-stretch { + align-items: stretch !important; +} + +.align-content-start { + align-content: flex-start !important; +} + +.align-content-end { + align-content: flex-end !important; +} + +.align-content-center { + align-content: center !important; +} + +.align-content-between { + align-content: space-between !important; +} + +.align-content-around { + align-content: space-around !important; +} + +.align-content-stretch { + align-content: stretch !important; +} + +.align-self-auto { + align-self: auto !important; +} + +.align-self-start { + align-self: flex-start !important; +} + +.align-self-end { + align-self: flex-end !important; +} + +.align-self-center { + align-self: center !important; +} + +.align-self-baseline { + align-self: baseline !important; +} + +.align-self-stretch { + align-self: stretch !important; +} + +@media (min-width: 576px) { + .flex-sm-row { + flex-direction: row !important; + } + .flex-sm-column { + flex-direction: column !important; + } + .flex-sm-row-reverse { + flex-direction: row-reverse !important; + } + .flex-sm-column-reverse { + flex-direction: column-reverse !important; + } + .flex-sm-wrap { + flex-wrap: wrap !important; + } + .flex-sm-nowrap { + flex-wrap: nowrap !important; + } + .flex-sm-wrap-reverse { + flex-wrap: wrap-reverse !important; + } + .flex-sm-fill { + flex: 1 1 auto !important; + } + .flex-sm-grow-0 { + flex-grow: 0 !important; + } + .flex-sm-grow-1 { + flex-grow: 1 !important; + } + .flex-sm-shrink-0 { + flex-shrink: 0 !important; + } + .flex-sm-shrink-1 { + flex-shrink: 1 !important; + } + .justify-content-sm-start { + justify-content: flex-start !important; + } + .justify-content-sm-end { + justify-content: flex-end !important; + } + .justify-content-sm-center { + justify-content: center !important; + } + .justify-content-sm-between { + justify-content: space-between !important; + } + .justify-content-sm-around { + justify-content: space-around !important; + } + .align-items-sm-start { + align-items: flex-start !important; + } + .align-items-sm-end { + align-items: flex-end !important; + } + .align-items-sm-center { + align-items: center !important; + } + .align-items-sm-baseline { + align-items: baseline !important; + } + .align-items-sm-stretch { + align-items: stretch !important; + } + .align-content-sm-start { + align-content: flex-start !important; + } + .align-content-sm-end { + align-content: flex-end !important; + } + .align-content-sm-center { + align-content: center !important; + } + .align-content-sm-between { + align-content: space-between !important; + } + .align-content-sm-around { + align-content: space-around !important; + } + .align-content-sm-stretch { + align-content: stretch !important; + } + .align-self-sm-auto { + align-self: auto !important; + } + .align-self-sm-start { + align-self: flex-start !important; + } + .align-self-sm-end { + align-self: flex-end !important; + } + .align-self-sm-center { + align-self: center !important; + } + .align-self-sm-baseline { + align-self: baseline !important; + } + .align-self-sm-stretch { + align-self: stretch !important; + } +} +@media (min-width: 768px) { + .flex-md-row { + flex-direction: row !important; + } + .flex-md-column { + flex-direction: column !important; + } + .flex-md-row-reverse { + flex-direction: row-reverse !important; + } + .flex-md-column-reverse { + flex-direction: column-reverse !important; + } + .flex-md-wrap { + flex-wrap: wrap !important; + } + .flex-md-nowrap { + flex-wrap: nowrap !important; + } + .flex-md-wrap-reverse { + flex-wrap: wrap-reverse !important; + } + .flex-md-fill { + flex: 1 1 auto !important; + } + .flex-md-grow-0 { + flex-grow: 0 !important; + } + .flex-md-grow-1 { + flex-grow: 1 !important; + } + .flex-md-shrink-0 { + flex-shrink: 0 !important; + } + .flex-md-shrink-1 { + flex-shrink: 1 !important; + } + .justify-content-md-start { + justify-content: flex-start !important; + } + .justify-content-md-end { + justify-content: flex-end !important; + } + .justify-content-md-center { + justify-content: center !important; + } + .justify-content-md-between { + justify-content: space-between !important; + } + .justify-content-md-around { + justify-content: space-around !important; + } + .align-items-md-start { + align-items: flex-start !important; + } + .align-items-md-end { + align-items: flex-end !important; + } + .align-items-md-center { + align-items: center !important; + } + .align-items-md-baseline { + align-items: baseline !important; + } + .align-items-md-stretch { + align-items: stretch !important; + } + .align-content-md-start { + align-content: flex-start !important; + } + .align-content-md-end { + align-content: flex-end !important; + } + .align-content-md-center { + align-content: center !important; + } + .align-content-md-between { + align-content: space-between !important; + } + .align-content-md-around { + align-content: space-around !important; + } + .align-content-md-stretch { + align-content: stretch !important; + } + .align-self-md-auto { + align-self: auto !important; + } + .align-self-md-start { + align-self: flex-start !important; + } + .align-self-md-end { + align-self: flex-end !important; + } + .align-self-md-center { + align-self: center !important; + } + .align-self-md-baseline { + align-self: baseline !important; + } + .align-self-md-stretch { + align-self: stretch !important; + } +} +@media (min-width: 992px) { + .flex-lg-row { + flex-direction: row !important; + } + .flex-lg-column { + flex-direction: column !important; + } + .flex-lg-row-reverse { + flex-direction: row-reverse !important; + } + .flex-lg-column-reverse { + flex-direction: column-reverse !important; + } + .flex-lg-wrap { + flex-wrap: wrap !important; + } + .flex-lg-nowrap { + flex-wrap: nowrap !important; + } + .flex-lg-wrap-reverse { + flex-wrap: wrap-reverse !important; + } + .flex-lg-fill { + flex: 1 1 auto !important; + } + .flex-lg-grow-0 { + flex-grow: 0 !important; + } + .flex-lg-grow-1 { + flex-grow: 1 !important; + } + .flex-lg-shrink-0 { + flex-shrink: 0 !important; + } + .flex-lg-shrink-1 { + flex-shrink: 1 !important; + } + .justify-content-lg-start { + justify-content: flex-start !important; + } + .justify-content-lg-end { + justify-content: flex-end !important; + } + .justify-content-lg-center { + justify-content: center !important; + } + .justify-content-lg-between { + justify-content: space-between !important; + } + .justify-content-lg-around { + justify-content: space-around !important; + } + .align-items-lg-start { + align-items: flex-start !important; + } + .align-items-lg-end { + align-items: flex-end !important; + } + .align-items-lg-center { + align-items: center !important; + } + .align-items-lg-baseline { + align-items: baseline !important; + } + .align-items-lg-stretch { + align-items: stretch !important; + } + .align-content-lg-start { + align-content: flex-start !important; + } + .align-content-lg-end { + align-content: flex-end !important; + } + .align-content-lg-center { + align-content: center !important; + } + .align-content-lg-between { + align-content: space-between !important; + } + .align-content-lg-around { + align-content: space-around !important; + } + .align-content-lg-stretch { + align-content: stretch !important; + } + .align-self-lg-auto { + align-self: auto !important; + } + .align-self-lg-start { + align-self: flex-start !important; + } + .align-self-lg-end { + align-self: flex-end !important; + } + .align-self-lg-center { + align-self: center !important; + } + .align-self-lg-baseline { + align-self: baseline !important; + } + .align-self-lg-stretch { + align-self: stretch !important; + } +} +@media (min-width: 1200px) { + .flex-xl-row { + flex-direction: row !important; + } + .flex-xl-column { + flex-direction: column !important; + } + .flex-xl-row-reverse { + flex-direction: row-reverse !important; + } + .flex-xl-column-reverse { + flex-direction: column-reverse !important; + } + .flex-xl-wrap { + flex-wrap: wrap !important; + } + .flex-xl-nowrap { + flex-wrap: nowrap !important; + } + .flex-xl-wrap-reverse { + flex-wrap: wrap-reverse !important; + } + .flex-xl-fill { + flex: 1 1 auto !important; + } + .flex-xl-grow-0 { + flex-grow: 0 !important; + } + .flex-xl-grow-1 { + flex-grow: 1 !important; + } + .flex-xl-shrink-0 { + flex-shrink: 0 !important; + } + .flex-xl-shrink-1 { + flex-shrink: 1 !important; + } + .justify-content-xl-start { + justify-content: flex-start !important; + } + .justify-content-xl-end { + justify-content: flex-end !important; + } + .justify-content-xl-center { + justify-content: center !important; + } + .justify-content-xl-between { + justify-content: space-between !important; + } + .justify-content-xl-around { + justify-content: space-around !important; + } + .align-items-xl-start { + align-items: flex-start !important; + } + .align-items-xl-end { + align-items: flex-end !important; + } + .align-items-xl-center { + align-items: center !important; + } + .align-items-xl-baseline { + align-items: baseline !important; + } + .align-items-xl-stretch { + align-items: stretch !important; + } + .align-content-xl-start { + align-content: flex-start !important; + } + .align-content-xl-end { + align-content: flex-end !important; + } + .align-content-xl-center { + align-content: center !important; + } + .align-content-xl-between { + align-content: space-between !important; + } + .align-content-xl-around { + align-content: space-around !important; + } + .align-content-xl-stretch { + align-content: stretch !important; + } + .align-self-xl-auto { + align-self: auto !important; + } + .align-self-xl-start { + align-self: flex-start !important; + } + .align-self-xl-end { + align-self: flex-end !important; + } + .align-self-xl-center { + align-self: center !important; + } + .align-self-xl-baseline { + align-self: baseline !important; + } + .align-self-xl-stretch { + align-self: stretch !important; + } +} +.m-0 { + margin: 0 !important; +} + +.mt-0, +.my-0 { + margin-top: 0 !important; +} + +.mr-0, +.mx-0 { + margin-right: 0 !important; +} + +.mb-0, +.my-0 { + margin-bottom: 0 !important; +} + +.ml-0, +.mx-0 { + margin-left: 0 !important; +} + +.m-1 { + margin: 0.25rem !important; +} + +.mt-1, +.my-1 { + margin-top: 0.25rem !important; +} + +.mr-1, +.mx-1 { + margin-right: 0.25rem !important; +} + +.mb-1, +.my-1 { + margin-bottom: 0.25rem !important; +} + +.ml-1, +.mx-1 { + margin-left: 0.25rem !important; +} + +.m-2 { + margin: 0.5rem !important; +} + +.mt-2, +.my-2 { + margin-top: 0.5rem !important; +} + +.mr-2, +.mx-2 { + margin-right: 0.5rem !important; +} + +.mb-2, +.my-2 { + margin-bottom: 0.5rem !important; +} + +.ml-2, +.mx-2 { + margin-left: 0.5rem !important; +} + +.m-3 { + margin: 1rem !important; +} + +.mt-3, +.my-3 { + margin-top: 1rem !important; +} + +.mr-3, +.mx-3 { + margin-right: 1rem !important; +} + +.mb-3, +.my-3 { + margin-bottom: 1rem !important; +} + +.ml-3, +.mx-3 { + margin-left: 1rem !important; +} + +.m-4 { + margin: 1.5rem !important; +} + +.mt-4, +.my-4 { + margin-top: 1.5rem !important; +} + +.mr-4, +.mx-4 { + margin-right: 1.5rem !important; +} + +.mb-4, +.my-4 { + margin-bottom: 1.5rem !important; +} + +.ml-4, +.mx-4 { + margin-left: 1.5rem !important; +} + +.m-5 { + margin: 3rem !important; +} + +.mt-5, +.my-5 { + margin-top: 3rem !important; +} + +.mr-5, +.mx-5 { + margin-right: 3rem !important; +} + +.mb-5, +.my-5 { + margin-bottom: 3rem !important; +} + +.ml-5, +.mx-5 { + margin-left: 3rem !important; +} + +.p-0 { + padding: 0 !important; +} + +.pt-0, +.py-0 { + padding-top: 0 !important; +} + +.pr-0, +.px-0 { + padding-right: 0 !important; +} + +.pb-0, +.py-0 { + padding-bottom: 0 !important; +} + +.pl-0, +.px-0 { + padding-left: 0 !important; +} + +.p-1 { + padding: 0.25rem !important; +} + +.pt-1, +.py-1 { + padding-top: 0.25rem !important; +} + +.pr-1, +.px-1 { + padding-right: 0.25rem !important; +} + +.pb-1, +.py-1 { + padding-bottom: 0.25rem !important; +} + +.pl-1, +.px-1 { + padding-left: 0.25rem !important; +} + +.p-2 { + padding: 0.5rem !important; +} + +.pt-2, +.py-2 { + padding-top: 0.5rem !important; +} + +.pr-2, +.px-2 { + padding-right: 0.5rem !important; +} + +.pb-2, +.py-2 { + padding-bottom: 0.5rem !important; +} + +.pl-2, +.px-2 { + padding-left: 0.5rem !important; +} + +.p-3 { + padding: 1rem !important; +} + +.pt-3, +.py-3 { + padding-top: 1rem !important; +} + +.pr-3, +.px-3 { + padding-right: 1rem !important; +} + +.pb-3, +.py-3 { + padding-bottom: 1rem !important; +} + +.pl-3, +.px-3 { + padding-left: 1rem !important; +} + +.p-4 { + padding: 1.5rem !important; +} + +.pt-4, +.py-4 { + padding-top: 1.5rem !important; +} + +.pr-4, +.px-4 { + padding-right: 1.5rem !important; +} + +.pb-4, +.py-4 { + padding-bottom: 1.5rem !important; +} + +.pl-4, +.px-4 { + padding-left: 1.5rem !important; +} + +.p-5 { + padding: 3rem !important; +} + +.pt-5, +.py-5 { + padding-top: 3rem !important; +} + +.pr-5, +.px-5 { + padding-right: 3rem !important; +} + +.pb-5, +.py-5 { + padding-bottom: 3rem !important; +} + +.pl-5, +.px-5 { + padding-left: 3rem !important; +} + +.m-n1 { + margin: -0.25rem !important; +} + +.mt-n1, +.my-n1 { + margin-top: -0.25rem !important; +} + +.mr-n1, +.mx-n1 { + margin-right: -0.25rem !important; +} + +.mb-n1, +.my-n1 { + margin-bottom: -0.25rem !important; +} + +.ml-n1, +.mx-n1 { + margin-left: -0.25rem !important; +} + +.m-n2 { + margin: -0.5rem !important; +} + +.mt-n2, +.my-n2 { + margin-top: -0.5rem !important; +} + +.mr-n2, +.mx-n2 { + margin-right: -0.5rem !important; +} + +.mb-n2, +.my-n2 { + margin-bottom: -0.5rem !important; +} + +.ml-n2, +.mx-n2 { + margin-left: -0.5rem !important; +} + +.m-n3 { + margin: -1rem !important; +} + +.mt-n3, +.my-n3 { + margin-top: -1rem !important; +} + +.mr-n3, +.mx-n3 { + margin-right: -1rem !important; +} + +.mb-n3, +.my-n3 { + margin-bottom: -1rem !important; +} + +.ml-n3, +.mx-n3 { + margin-left: -1rem !important; +} + +.m-n4 { + margin: -1.5rem !important; +} + +.mt-n4, +.my-n4 { + margin-top: -1.5rem !important; +} + +.mr-n4, +.mx-n4 { + margin-right: -1.5rem !important; +} + +.mb-n4, +.my-n4 { + margin-bottom: -1.5rem !important; +} + +.ml-n4, +.mx-n4 { + margin-left: -1.5rem !important; +} + +.m-n5 { + margin: -3rem !important; +} + +.mt-n5, +.my-n5 { + margin-top: -3rem !important; +} + +.mr-n5, +.mx-n5 { + margin-right: -3rem !important; +} + +.mb-n5, +.my-n5 { + margin-bottom: -3rem !important; +} + +.ml-n5, +.mx-n5 { + margin-left: -3rem !important; +} + +.m-auto { + margin: auto !important; +} + +.mt-auto, +.my-auto { + margin-top: auto !important; +} + +.mr-auto, +.mx-auto { + margin-right: auto !important; +} + +.mb-auto, +.my-auto { + margin-bottom: auto !important; +} + +.ml-auto, +.mx-auto { + margin-left: auto !important; +} + +@media (min-width: 576px) { + .m-sm-0 { + margin: 0 !important; + } + .mt-sm-0, + .my-sm-0 { + margin-top: 0 !important; + } + .mr-sm-0, + .mx-sm-0 { + margin-right: 0 !important; + } + .mb-sm-0, + .my-sm-0 { + margin-bottom: 0 !important; + } + .ml-sm-0, + .mx-sm-0 { + margin-left: 0 !important; + } + .m-sm-1 { + margin: 0.25rem !important; + } + .mt-sm-1, + .my-sm-1 { + margin-top: 0.25rem !important; + } + .mr-sm-1, + .mx-sm-1 { + margin-right: 0.25rem !important; + } + .mb-sm-1, + .my-sm-1 { + margin-bottom: 0.25rem !important; + } + .ml-sm-1, + .mx-sm-1 { + margin-left: 0.25rem !important; + } + .m-sm-2 { + margin: 0.5rem !important; + } + .mt-sm-2, + .my-sm-2 { + margin-top: 0.5rem !important; + } + .mr-sm-2, + .mx-sm-2 { + margin-right: 0.5rem !important; + } + .mb-sm-2, + .my-sm-2 { + margin-bottom: 0.5rem !important; + } + .ml-sm-2, + .mx-sm-2 { + margin-left: 0.5rem !important; + } + .m-sm-3 { + margin: 1rem !important; + } + .mt-sm-3, + .my-sm-3 { + margin-top: 1rem !important; + } + .mr-sm-3, + .mx-sm-3 { + margin-right: 1rem !important; + } + .mb-sm-3, + .my-sm-3 { + margin-bottom: 1rem !important; + } + .ml-sm-3, + .mx-sm-3 { + margin-left: 1rem !important; + } + .m-sm-4 { + margin: 1.5rem !important; + } + .mt-sm-4, + .my-sm-4 { + margin-top: 1.5rem !important; + } + .mr-sm-4, + .mx-sm-4 { + margin-right: 1.5rem !important; + } + .mb-sm-4, + .my-sm-4 { + margin-bottom: 1.5rem !important; + } + .ml-sm-4, + .mx-sm-4 { + margin-left: 1.5rem !important; + } + .m-sm-5 { + margin: 3rem !important; + } + .mt-sm-5, + .my-sm-5 { + margin-top: 3rem !important; + } + .mr-sm-5, + .mx-sm-5 { + margin-right: 3rem !important; + } + .mb-sm-5, + .my-sm-5 { + margin-bottom: 3rem !important; + } + .ml-sm-5, + .mx-sm-5 { + margin-left: 3rem !important; + } + .p-sm-0 { + padding: 0 !important; + } + .pt-sm-0, + .py-sm-0 { + padding-top: 0 !important; + } + .pr-sm-0, + .px-sm-0 { + padding-right: 0 !important; + } + .pb-sm-0, + .py-sm-0 { + padding-bottom: 0 !important; + } + .pl-sm-0, + .px-sm-0 { + padding-left: 0 !important; + } + .p-sm-1 { + padding: 0.25rem !important; + } + .pt-sm-1, + .py-sm-1 { + padding-top: 0.25rem !important; + } + .pr-sm-1, + .px-sm-1 { + padding-right: 0.25rem !important; + } + .pb-sm-1, + .py-sm-1 { + padding-bottom: 0.25rem !important; + } + .pl-sm-1, + .px-sm-1 { + padding-left: 0.25rem !important; + } + .p-sm-2 { + padding: 0.5rem !important; + } + .pt-sm-2, + .py-sm-2 { + padding-top: 0.5rem !important; + } + .pr-sm-2, + .px-sm-2 { + padding-right: 0.5rem !important; + } + .pb-sm-2, + .py-sm-2 { + padding-bottom: 0.5rem !important; + } + .pl-sm-2, + .px-sm-2 { + padding-left: 0.5rem !important; + } + .p-sm-3 { + padding: 1rem !important; + } + .pt-sm-3, + .py-sm-3 { + padding-top: 1rem !important; + } + .pr-sm-3, + .px-sm-3 { + padding-right: 1rem !important; + } + .pb-sm-3, + .py-sm-3 { + padding-bottom: 1rem !important; + } + .pl-sm-3, + .px-sm-3 { + padding-left: 1rem !important; + } + .p-sm-4 { + padding: 1.5rem !important; + } + .pt-sm-4, + .py-sm-4 { + padding-top: 1.5rem !important; + } + .pr-sm-4, + .px-sm-4 { + padding-right: 1.5rem !important; + } + .pb-sm-4, + .py-sm-4 { + padding-bottom: 1.5rem !important; + } + .pl-sm-4, + .px-sm-4 { + padding-left: 1.5rem !important; + } + .p-sm-5 { + padding: 3rem !important; + } + .pt-sm-5, + .py-sm-5 { + padding-top: 3rem !important; + } + .pr-sm-5, + .px-sm-5 { + padding-right: 3rem !important; + } + .pb-sm-5, + .py-sm-5 { + padding-bottom: 3rem !important; + } + .pl-sm-5, + .px-sm-5 { + padding-left: 3rem !important; + } + .m-sm-n1 { + margin: -0.25rem !important; + } + .mt-sm-n1, + .my-sm-n1 { + margin-top: -0.25rem !important; + } + .mr-sm-n1, + .mx-sm-n1 { + margin-right: -0.25rem !important; + } + .mb-sm-n1, + .my-sm-n1 { + margin-bottom: -0.25rem !important; + } + .ml-sm-n1, + .mx-sm-n1 { + margin-left: -0.25rem !important; + } + .m-sm-n2 { + margin: -0.5rem !important; + } + .mt-sm-n2, + .my-sm-n2 { + margin-top: -0.5rem !important; + } + .mr-sm-n2, + .mx-sm-n2 { + margin-right: -0.5rem !important; + } + .mb-sm-n2, + .my-sm-n2 { + margin-bottom: -0.5rem !important; + } + .ml-sm-n2, + .mx-sm-n2 { + margin-left: -0.5rem !important; + } + .m-sm-n3 { + margin: -1rem !important; + } + .mt-sm-n3, + .my-sm-n3 { + margin-top: -1rem !important; + } + .mr-sm-n3, + .mx-sm-n3 { + margin-right: -1rem !important; + } + .mb-sm-n3, + .my-sm-n3 { + margin-bottom: -1rem !important; + } + .ml-sm-n3, + .mx-sm-n3 { + margin-left: -1rem !important; + } + .m-sm-n4 { + margin: -1.5rem !important; + } + .mt-sm-n4, + .my-sm-n4 { + margin-top: -1.5rem !important; + } + .mr-sm-n4, + .mx-sm-n4 { + margin-right: -1.5rem !important; + } + .mb-sm-n4, + .my-sm-n4 { + margin-bottom: -1.5rem !important; + } + .ml-sm-n4, + .mx-sm-n4 { + margin-left: -1.5rem !important; + } + .m-sm-n5 { + margin: -3rem !important; + } + .mt-sm-n5, + .my-sm-n5 { + margin-top: -3rem !important; + } + .mr-sm-n5, + .mx-sm-n5 { + margin-right: -3rem !important; + } + .mb-sm-n5, + .my-sm-n5 { + margin-bottom: -3rem !important; + } + .ml-sm-n5, + .mx-sm-n5 { + margin-left: -3rem !important; + } + .m-sm-auto { + margin: auto !important; + } + .mt-sm-auto, + .my-sm-auto { + margin-top: auto !important; + } + .mr-sm-auto, + .mx-sm-auto { + margin-right: auto !important; + } + .mb-sm-auto, + .my-sm-auto { + margin-bottom: auto !important; + } + .ml-sm-auto, + .mx-sm-auto { + margin-left: auto !important; + } +} +@media (min-width: 768px) { + .m-md-0 { + margin: 0 !important; + } + .mt-md-0, + .my-md-0 { + margin-top: 0 !important; + } + .mr-md-0, + .mx-md-0 { + margin-right: 0 !important; + } + .mb-md-0, + .my-md-0 { + margin-bottom: 0 !important; + } + .ml-md-0, + .mx-md-0 { + margin-left: 0 !important; + } + .m-md-1 { + margin: 0.25rem !important; + } + .mt-md-1, + .my-md-1 { + margin-top: 0.25rem !important; + } + .mr-md-1, + .mx-md-1 { + margin-right: 0.25rem !important; + } + .mb-md-1, + .my-md-1 { + margin-bottom: 0.25rem !important; + } + .ml-md-1, + .mx-md-1 { + margin-left: 0.25rem !important; + } + .m-md-2 { + margin: 0.5rem !important; + } + .mt-md-2, + .my-md-2 { + margin-top: 0.5rem !important; + } + .mr-md-2, + .mx-md-2 { + margin-right: 0.5rem !important; + } + .mb-md-2, + .my-md-2 { + margin-bottom: 0.5rem !important; + } + .ml-md-2, + .mx-md-2 { + margin-left: 0.5rem !important; + } + .m-md-3 { + margin: 1rem !important; + } + .mt-md-3, + .my-md-3 { + margin-top: 1rem !important; + } + .mr-md-3, + .mx-md-3 { + margin-right: 1rem !important; + } + .mb-md-3, + .my-md-3 { + margin-bottom: 1rem !important; + } + .ml-md-3, + .mx-md-3 { + margin-left: 1rem !important; + } + .m-md-4 { + margin: 1.5rem !important; + } + .mt-md-4, + .my-md-4 { + margin-top: 1.5rem !important; + } + .mr-md-4, + .mx-md-4 { + margin-right: 1.5rem !important; + } + .mb-md-4, + .my-md-4 { + margin-bottom: 1.5rem !important; + } + .ml-md-4, + .mx-md-4 { + margin-left: 1.5rem !important; + } + .m-md-5 { + margin: 3rem !important; + } + .mt-md-5, + .my-md-5 { + margin-top: 3rem !important; + } + .mr-md-5, + .mx-md-5 { + margin-right: 3rem !important; + } + .mb-md-5, + .my-md-5 { + margin-bottom: 3rem !important; + } + .ml-md-5, + .mx-md-5 { + margin-left: 3rem !important; + } + .p-md-0 { + padding: 0 !important; + } + .pt-md-0, + .py-md-0 { + padding-top: 0 !important; + } + .pr-md-0, + .px-md-0 { + padding-right: 0 !important; + } + .pb-md-0, + .py-md-0 { + padding-bottom: 0 !important; + } + .pl-md-0, + .px-md-0 { + padding-left: 0 !important; + } + .p-md-1 { + padding: 0.25rem !important; + } + .pt-md-1, + .py-md-1 { + padding-top: 0.25rem !important; + } + .pr-md-1, + .px-md-1 { + padding-right: 0.25rem !important; + } + .pb-md-1, + .py-md-1 { + padding-bottom: 0.25rem !important; + } + .pl-md-1, + .px-md-1 { + padding-left: 0.25rem !important; + } + .p-md-2 { + padding: 0.5rem !important; + } + .pt-md-2, + .py-md-2 { + padding-top: 0.5rem !important; + } + .pr-md-2, + .px-md-2 { + padding-right: 0.5rem !important; + } + .pb-md-2, + .py-md-2 { + padding-bottom: 0.5rem !important; + } + .pl-md-2, + .px-md-2 { + padding-left: 0.5rem !important; + } + .p-md-3 { + padding: 1rem !important; + } + .pt-md-3, + .py-md-3 { + padding-top: 1rem !important; + } + .pr-md-3, + .px-md-3 { + padding-right: 1rem !important; + } + .pb-md-3, + .py-md-3 { + padding-bottom: 1rem !important; + } + .pl-md-3, + .px-md-3 { + padding-left: 1rem !important; + } + .p-md-4 { + padding: 1.5rem !important; + } + .pt-md-4, + .py-md-4 { + padding-top: 1.5rem !important; + } + .pr-md-4, + .px-md-4 { + padding-right: 1.5rem !important; + } + .pb-md-4, + .py-md-4 { + padding-bottom: 1.5rem !important; + } + .pl-md-4, + .px-md-4 { + padding-left: 1.5rem !important; + } + .p-md-5 { + padding: 3rem !important; + } + .pt-md-5, + .py-md-5 { + padding-top: 3rem !important; + } + .pr-md-5, + .px-md-5 { + padding-right: 3rem !important; + } + .pb-md-5, + .py-md-5 { + padding-bottom: 3rem !important; + } + .pl-md-5, + .px-md-5 { + padding-left: 3rem !important; + } + .m-md-n1 { + margin: -0.25rem !important; + } + .mt-md-n1, + .my-md-n1 { + margin-top: -0.25rem !important; + } + .mr-md-n1, + .mx-md-n1 { + margin-right: -0.25rem !important; + } + .mb-md-n1, + .my-md-n1 { + margin-bottom: -0.25rem !important; + } + .ml-md-n1, + .mx-md-n1 { + margin-left: -0.25rem !important; + } + .m-md-n2 { + margin: -0.5rem !important; + } + .mt-md-n2, + .my-md-n2 { + margin-top: -0.5rem !important; + } + .mr-md-n2, + .mx-md-n2 { + margin-right: -0.5rem !important; + } + .mb-md-n2, + .my-md-n2 { + margin-bottom: -0.5rem !important; + } + .ml-md-n2, + .mx-md-n2 { + margin-left: -0.5rem !important; + } + .m-md-n3 { + margin: -1rem !important; + } + .mt-md-n3, + .my-md-n3 { + margin-top: -1rem !important; + } + .mr-md-n3, + .mx-md-n3 { + margin-right: -1rem !important; + } + .mb-md-n3, + .my-md-n3 { + margin-bottom: -1rem !important; + } + .ml-md-n3, + .mx-md-n3 { + margin-left: -1rem !important; + } + .m-md-n4 { + margin: -1.5rem !important; + } + .mt-md-n4, + .my-md-n4 { + margin-top: -1.5rem !important; + } + .mr-md-n4, + .mx-md-n4 { + margin-right: -1.5rem !important; + } + .mb-md-n4, + .my-md-n4 { + margin-bottom: -1.5rem !important; + } + .ml-md-n4, + .mx-md-n4 { + margin-left: -1.5rem !important; + } + .m-md-n5 { + margin: -3rem !important; + } + .mt-md-n5, + .my-md-n5 { + margin-top: -3rem !important; + } + .mr-md-n5, + .mx-md-n5 { + margin-right: -3rem !important; + } + .mb-md-n5, + .my-md-n5 { + margin-bottom: -3rem !important; + } + .ml-md-n5, + .mx-md-n5 { + margin-left: -3rem !important; + } + .m-md-auto { + margin: auto !important; + } + .mt-md-auto, + .my-md-auto { + margin-top: auto !important; + } + .mr-md-auto, + .mx-md-auto { + margin-right: auto !important; + } + .mb-md-auto, + .my-md-auto { + margin-bottom: auto !important; + } + .ml-md-auto, + .mx-md-auto { + margin-left: auto !important; + } +} +@media (min-width: 992px) { + .m-lg-0 { + margin: 0 !important; + } + .mt-lg-0, + .my-lg-0 { + margin-top: 0 !important; + } + .mr-lg-0, + .mx-lg-0 { + margin-right: 0 !important; + } + .mb-lg-0, + .my-lg-0 { + margin-bottom: 0 !important; + } + .ml-lg-0, + .mx-lg-0 { + margin-left: 0 !important; + } + .m-lg-1 { + margin: 0.25rem !important; + } + .mt-lg-1, + .my-lg-1 { + margin-top: 0.25rem !important; + } + .mr-lg-1, + .mx-lg-1 { + margin-right: 0.25rem !important; + } + .mb-lg-1, + .my-lg-1 { + margin-bottom: 0.25rem !important; + } + .ml-lg-1, + .mx-lg-1 { + margin-left: 0.25rem !important; + } + .m-lg-2 { + margin: 0.5rem !important; + } + .mt-lg-2, + .my-lg-2 { + margin-top: 0.5rem !important; + } + .mr-lg-2, + .mx-lg-2 { + margin-right: 0.5rem !important; + } + .mb-lg-2, + .my-lg-2 { + margin-bottom: 0.5rem !important; + } + .ml-lg-2, + .mx-lg-2 { + margin-left: 0.5rem !important; + } + .m-lg-3 { + margin: 1rem !important; + } + .mt-lg-3, + .my-lg-3 { + margin-top: 1rem !important; + } + .mr-lg-3, + .mx-lg-3 { + margin-right: 1rem !important; + } + .mb-lg-3, + .my-lg-3 { + margin-bottom: 1rem !important; + } + .ml-lg-3, + .mx-lg-3 { + margin-left: 1rem !important; + } + .m-lg-4 { + margin: 1.5rem !important; + } + .mt-lg-4, + .my-lg-4 { + margin-top: 1.5rem !important; + } + .mr-lg-4, + .mx-lg-4 { + margin-right: 1.5rem !important; + } + .mb-lg-4, + .my-lg-4 { + margin-bottom: 1.5rem !important; + } + .ml-lg-4, + .mx-lg-4 { + margin-left: 1.5rem !important; + } + .m-lg-5 { + margin: 3rem !important; + } + .mt-lg-5, + .my-lg-5 { + margin-top: 3rem !important; + } + .mr-lg-5, + .mx-lg-5 { + margin-right: 3rem !important; + } + .mb-lg-5, + .my-lg-5 { + margin-bottom: 3rem !important; + } + .ml-lg-5, + .mx-lg-5 { + margin-left: 3rem !important; + } + .p-lg-0 { + padding: 0 !important; + } + .pt-lg-0, + .py-lg-0 { + padding-top: 0 !important; + } + .pr-lg-0, + .px-lg-0 { + padding-right: 0 !important; + } + .pb-lg-0, + .py-lg-0 { + padding-bottom: 0 !important; + } + .pl-lg-0, + .px-lg-0 { + padding-left: 0 !important; + } + .p-lg-1 { + padding: 0.25rem !important; + } + .pt-lg-1, + .py-lg-1 { + padding-top: 0.25rem !important; + } + .pr-lg-1, + .px-lg-1 { + padding-right: 0.25rem !important; + } + .pb-lg-1, + .py-lg-1 { + padding-bottom: 0.25rem !important; + } + .pl-lg-1, + .px-lg-1 { + padding-left: 0.25rem !important; + } + .p-lg-2 { + padding: 0.5rem !important; + } + .pt-lg-2, + .py-lg-2 { + padding-top: 0.5rem !important; + } + .pr-lg-2, + .px-lg-2 { + padding-right: 0.5rem !important; + } + .pb-lg-2, + .py-lg-2 { + padding-bottom: 0.5rem !important; + } + .pl-lg-2, + .px-lg-2 { + padding-left: 0.5rem !important; + } + .p-lg-3 { + padding: 1rem !important; + } + .pt-lg-3, + .py-lg-3 { + padding-top: 1rem !important; + } + .pr-lg-3, + .px-lg-3 { + padding-right: 1rem !important; + } + .pb-lg-3, + .py-lg-3 { + padding-bottom: 1rem !important; + } + .pl-lg-3, + .px-lg-3 { + padding-left: 1rem !important; + } + .p-lg-4 { + padding: 1.5rem !important; + } + .pt-lg-4, + .py-lg-4 { + padding-top: 1.5rem !important; + } + .pr-lg-4, + .px-lg-4 { + padding-right: 1.5rem !important; + } + .pb-lg-4, + .py-lg-4 { + padding-bottom: 1.5rem !important; + } + .pl-lg-4, + .px-lg-4 { + padding-left: 1.5rem !important; + } + .p-lg-5 { + padding: 3rem !important; + } + .pt-lg-5, + .py-lg-5 { + padding-top: 3rem !important; + } + .pr-lg-5, + .px-lg-5 { + padding-right: 3rem !important; + } + .pb-lg-5, + .py-lg-5 { + padding-bottom: 3rem !important; + } + .pl-lg-5, + .px-lg-5 { + padding-left: 3rem !important; + } + .m-lg-n1 { + margin: -0.25rem !important; + } + .mt-lg-n1, + .my-lg-n1 { + margin-top: -0.25rem !important; + } + .mr-lg-n1, + .mx-lg-n1 { + margin-right: -0.25rem !important; + } + .mb-lg-n1, + .my-lg-n1 { + margin-bottom: -0.25rem !important; + } + .ml-lg-n1, + .mx-lg-n1 { + margin-left: -0.25rem !important; + } + .m-lg-n2 { + margin: -0.5rem !important; + } + .mt-lg-n2, + .my-lg-n2 { + margin-top: -0.5rem !important; + } + .mr-lg-n2, + .mx-lg-n2 { + margin-right: -0.5rem !important; + } + .mb-lg-n2, + .my-lg-n2 { + margin-bottom: -0.5rem !important; + } + .ml-lg-n2, + .mx-lg-n2 { + margin-left: -0.5rem !important; + } + .m-lg-n3 { + margin: -1rem !important; + } + .mt-lg-n3, + .my-lg-n3 { + margin-top: -1rem !important; + } + .mr-lg-n3, + .mx-lg-n3 { + margin-right: -1rem !important; + } + .mb-lg-n3, + .my-lg-n3 { + margin-bottom: -1rem !important; + } + .ml-lg-n3, + .mx-lg-n3 { + margin-left: -1rem !important; + } + .m-lg-n4 { + margin: -1.5rem !important; + } + .mt-lg-n4, + .my-lg-n4 { + margin-top: -1.5rem !important; + } + .mr-lg-n4, + .mx-lg-n4 { + margin-right: -1.5rem !important; + } + .mb-lg-n4, + .my-lg-n4 { + margin-bottom: -1.5rem !important; + } + .ml-lg-n4, + .mx-lg-n4 { + margin-left: -1.5rem !important; + } + .m-lg-n5 { + margin: -3rem !important; + } + .mt-lg-n5, + .my-lg-n5 { + margin-top: -3rem !important; + } + .mr-lg-n5, + .mx-lg-n5 { + margin-right: -3rem !important; + } + .mb-lg-n5, + .my-lg-n5 { + margin-bottom: -3rem !important; + } + .ml-lg-n5, + .mx-lg-n5 { + margin-left: -3rem !important; + } + .m-lg-auto { + margin: auto !important; + } + .mt-lg-auto, + .my-lg-auto { + margin-top: auto !important; + } + .mr-lg-auto, + .mx-lg-auto { + margin-right: auto !important; + } + .mb-lg-auto, + .my-lg-auto { + margin-bottom: auto !important; + } + .ml-lg-auto, + .mx-lg-auto { + margin-left: auto !important; + } +} +@media (min-width: 1200px) { + .m-xl-0 { + margin: 0 !important; + } + .mt-xl-0, + .my-xl-0 { + margin-top: 0 !important; + } + .mr-xl-0, + .mx-xl-0 { + margin-right: 0 !important; + } + .mb-xl-0, + .my-xl-0 { + margin-bottom: 0 !important; + } + .ml-xl-0, + .mx-xl-0 { + margin-left: 0 !important; + } + .m-xl-1 { + margin: 0.25rem !important; + } + .mt-xl-1, + .my-xl-1 { + margin-top: 0.25rem !important; + } + .mr-xl-1, + .mx-xl-1 { + margin-right: 0.25rem !important; + } + .mb-xl-1, + .my-xl-1 { + margin-bottom: 0.25rem !important; + } + .ml-xl-1, + .mx-xl-1 { + margin-left: 0.25rem !important; + } + .m-xl-2 { + margin: 0.5rem !important; + } + .mt-xl-2, + .my-xl-2 { + margin-top: 0.5rem !important; + } + .mr-xl-2, + .mx-xl-2 { + margin-right: 0.5rem !important; + } + .mb-xl-2, + .my-xl-2 { + margin-bottom: 0.5rem !important; + } + .ml-xl-2, + .mx-xl-2 { + margin-left: 0.5rem !important; + } + .m-xl-3 { + margin: 1rem !important; + } + .mt-xl-3, + .my-xl-3 { + margin-top: 1rem !important; + } + .mr-xl-3, + .mx-xl-3 { + margin-right: 1rem !important; + } + .mb-xl-3, + .my-xl-3 { + margin-bottom: 1rem !important; + } + .ml-xl-3, + .mx-xl-3 { + margin-left: 1rem !important; + } + .m-xl-4 { + margin: 1.5rem !important; + } + .mt-xl-4, + .my-xl-4 { + margin-top: 1.5rem !important; + } + .mr-xl-4, + .mx-xl-4 { + margin-right: 1.5rem !important; + } + .mb-xl-4, + .my-xl-4 { + margin-bottom: 1.5rem !important; + } + .ml-xl-4, + .mx-xl-4 { + margin-left: 1.5rem !important; + } + .m-xl-5 { + margin: 3rem !important; + } + .mt-xl-5, + .my-xl-5 { + margin-top: 3rem !important; + } + .mr-xl-5, + .mx-xl-5 { + margin-right: 3rem !important; + } + .mb-xl-5, + .my-xl-5 { + margin-bottom: 3rem !important; + } + .ml-xl-5, + .mx-xl-5 { + margin-left: 3rem !important; + } + .p-xl-0 { + padding: 0 !important; + } + .pt-xl-0, + .py-xl-0 { + padding-top: 0 !important; + } + .pr-xl-0, + .px-xl-0 { + padding-right: 0 !important; + } + .pb-xl-0, + .py-xl-0 { + padding-bottom: 0 !important; + } + .pl-xl-0, + .px-xl-0 { + padding-left: 0 !important; + } + .p-xl-1 { + padding: 0.25rem !important; + } + .pt-xl-1, + .py-xl-1 { + padding-top: 0.25rem !important; + } + .pr-xl-1, + .px-xl-1 { + padding-right: 0.25rem !important; + } + .pb-xl-1, + .py-xl-1 { + padding-bottom: 0.25rem !important; + } + .pl-xl-1, + .px-xl-1 { + padding-left: 0.25rem !important; + } + .p-xl-2 { + padding: 0.5rem !important; + } + .pt-xl-2, + .py-xl-2 { + padding-top: 0.5rem !important; + } + .pr-xl-2, + .px-xl-2 { + padding-right: 0.5rem !important; + } + .pb-xl-2, + .py-xl-2 { + padding-bottom: 0.5rem !important; + } + .pl-xl-2, + .px-xl-2 { + padding-left: 0.5rem !important; + } + .p-xl-3 { + padding: 1rem !important; + } + .pt-xl-3, + .py-xl-3 { + padding-top: 1rem !important; + } + .pr-xl-3, + .px-xl-3 { + padding-right: 1rem !important; + } + .pb-xl-3, + .py-xl-3 { + padding-bottom: 1rem !important; + } + .pl-xl-3, + .px-xl-3 { + padding-left: 1rem !important; + } + .p-xl-4 { + padding: 1.5rem !important; + } + .pt-xl-4, + .py-xl-4 { + padding-top: 1.5rem !important; + } + .pr-xl-4, + .px-xl-4 { + padding-right: 1.5rem !important; + } + .pb-xl-4, + .py-xl-4 { + padding-bottom: 1.5rem !important; + } + .pl-xl-4, + .px-xl-4 { + padding-left: 1.5rem !important; + } + .p-xl-5 { + padding: 3rem !important; + } + .pt-xl-5, + .py-xl-5 { + padding-top: 3rem !important; + } + .pr-xl-5, + .px-xl-5 { + padding-right: 3rem !important; + } + .pb-xl-5, + .py-xl-5 { + padding-bottom: 3rem !important; + } + .pl-xl-5, + .px-xl-5 { + padding-left: 3rem !important; + } + .m-xl-n1 { + margin: -0.25rem !important; + } + .mt-xl-n1, + .my-xl-n1 { + margin-top: -0.25rem !important; + } + .mr-xl-n1, + .mx-xl-n1 { + margin-right: -0.25rem !important; + } + .mb-xl-n1, + .my-xl-n1 { + margin-bottom: -0.25rem !important; + } + .ml-xl-n1, + .mx-xl-n1 { + margin-left: -0.25rem !important; + } + .m-xl-n2 { + margin: -0.5rem !important; + } + .mt-xl-n2, + .my-xl-n2 { + margin-top: -0.5rem !important; + } + .mr-xl-n2, + .mx-xl-n2 { + margin-right: -0.5rem !important; + } + .mb-xl-n2, + .my-xl-n2 { + margin-bottom: -0.5rem !important; + } + .ml-xl-n2, + .mx-xl-n2 { + margin-left: -0.5rem !important; + } + .m-xl-n3 { + margin: -1rem !important; + } + .mt-xl-n3, + .my-xl-n3 { + margin-top: -1rem !important; + } + .mr-xl-n3, + .mx-xl-n3 { + margin-right: -1rem !important; + } + .mb-xl-n3, + .my-xl-n3 { + margin-bottom: -1rem !important; + } + .ml-xl-n3, + .mx-xl-n3 { + margin-left: -1rem !important; + } + .m-xl-n4 { + margin: -1.5rem !important; + } + .mt-xl-n4, + .my-xl-n4 { + margin-top: -1.5rem !important; + } + .mr-xl-n4, + .mx-xl-n4 { + margin-right: -1.5rem !important; + } + .mb-xl-n4, + .my-xl-n4 { + margin-bottom: -1.5rem !important; + } + .ml-xl-n4, + .mx-xl-n4 { + margin-left: -1.5rem !important; + } + .m-xl-n5 { + margin: -3rem !important; + } + .mt-xl-n5, + .my-xl-n5 { + margin-top: -3rem !important; + } + .mr-xl-n5, + .mx-xl-n5 { + margin-right: -3rem !important; + } + .mb-xl-n5, + .my-xl-n5 { + margin-bottom: -3rem !important; + } + .ml-xl-n5, + .mx-xl-n5 { + margin-left: -3rem !important; + } + .m-xl-auto { + margin: auto !important; + } + .mt-xl-auto, + .my-xl-auto { + margin-top: auto !important; + } + .mr-xl-auto, + .mx-xl-auto { + margin-right: auto !important; + } + .mb-xl-auto, + .my-xl-auto { + margin-bottom: auto !important; + } + .ml-xl-auto, + .mx-xl-auto { + margin-left: auto !important; + } +} +h1, +h2, +h3, +h4, +h5, +h6, +.h1, +.h2, +.h3, +.h4, +.h5, +.h6 { + margin-bottom: 0.5rem; + font-weight: 500; + line-height: 1.2; +} + +h1, +.h1 { + font-size: 2.5rem; +} + +h2, +.h2 { + font-size: 2rem; +} + +h3, +.h3 { + font-size: 1.75rem; +} + +h4, +.h4 { + font-size: 1.5rem; +} + +h5, +.h5 { + font-size: 1.25rem; +} + +h6, +.h6 { + font-size: 1rem; +} + +.lead { + font-size: 1.25rem; + font-weight: 300; +} + +.display-1 { + font-size: 6rem; + font-weight: 300; + line-height: 1.2; +} + +.display-2 { + font-size: 5.5rem; + font-weight: 300; + line-height: 1.2; +} + +.display-3 { + font-size: 4.5rem; + font-weight: 300; + line-height: 1.2; +} + +.display-4 { + font-size: 3.5rem; + font-weight: 300; + line-height: 1.2; +} + +hr { + margin-top: 1rem; + margin-bottom: 1rem; + border: 0; + border-top: 1px solid rgba(0, 0, 0, 0.1); +} + +small, +.small { + font-size: 80%; + font-weight: 400; +} + +mark, +.mark { + padding: 0.2em; + background-color: #fcf8e3; +} + +.list-unstyled { + padding-left: 0; + list-style: none; +} + +.list-inline { + padding-left: 0; + list-style: none; +} + +.list-inline-item { + display: inline-block; +} +.list-inline-item:not(:last-child) { + margin-right: 0.5rem; +} + +.initialism { + font-size: 90%; + text-transform: uppercase; +} + +.blockquote { + margin-bottom: 1rem; + font-size: 1.25rem; +} + +.blockquote-footer { + display: block; + font-size: 80%; + color: #6c757d; +} +.blockquote-footer::before { + content: "— "; +} + +body { + overflow-y: scroll; +} + +.mat-icon-button { + line-height: 1 !important; +} + +.shop-snackbar-error { + background-color: #ff0015; + color: white; +} +.shop-snackbar-error button { + color: white; + border: 1px solid; +} + +/*# sourceMappingURL=styles.css.map*/ diff --git a/cdk/cdk.out/asset.705042e10eb8fb6d7d7475c39e61e09836398336585ba5ef9814a4a774e8e009/styles.css.map b/cdk/cdk.out/asset.705042e10eb8fb6d7d7475c39e61e09836398336585ba5ef9814a4a774e8e009/styles.css.map new file mode 100644 index 00000000..57afd19a --- /dev/null +++ b/cdk/cdk.out/asset.705042e10eb8fb6d7d7475c39e61e09836398336585ba5ef9814a4a774e8e009/styles.css.map @@ -0,0 +1 @@ +{"version":3,"file":"styles.css","mappings":";;;AAAA,YAAY,eAAe,CAAC,iBAAiB,CAAC,wBAAwB,uBAAuB,CAAC,iCAAiC,gBAAgB,CAAC,oBAAoB,iBAAiB,CAAC,iBAAiB,CAAC,mBAAmB,CAAC,2DAA2D,CAAC,0BAA0B,CAAC,8CAA8C,YAAY,CAAC,qBAAqB,QAAQ,CAAC,kBAAkB,CAAC,UAAU,CAAC,WAAW,CAAC,eAAe,CAAC,SAAS,CAAC,iBAAiB,CAAC,SAAS,CAAC,kBAAkB,CAAC,SAAS,CAAC,uBAAuB,CAAC,oBAAoB,CAAC,MAAM,CAAC,+BAA+B,SAAS,CAAC,OAAO,CAAC,mDAAmD,mBAAmB,CAAC,KAAK,CAAC,MAAM,CAAC,WAAW,CAAC,UAAU,CAAC,uBAAuB,cAAc,CAAC,YAAY,CAAC,6BAA6B,YAAY,CAAC,4BAA4B,YAAY,CAAC,iBAAiB,CAAC,YAAY,CAAC,kBAAkB,iBAAiB,CAAC,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/BsR4B;E+BrR5B,gB/B4Q4B;AHosN9B;;AkC98NA;E9ByFM,iBAtCa;E8BjDjB,gB/BkR4B;E+BjR5B,gB/BuQ4B;AH0sN9B;;AkC/8NA;E9BoFM,iBAtCa;E8B5CjB,gB/B8Q4B;E+B7Q5B,gB/BkQ4B;AHgtN9B;;AkC18NA;EACE,gB/BgFO;E+B/EP,mB/B+EO;E+B9EP;EACA;AlC68NF;;AkCr8NA;;E9BMI;E8BHF,gB/B0N4B;AH8uN9B;;AkCr8NA;;EAEE,c/BkQ4B;E+BjQ5B,yB/B0Q4B;AH8rN9B;;AkCh8NA;EC/EE;EACA;AnCmhOF;;AkCh8NA;ECpFE;EACA;AnCwhOF;;AkCl8NA;EACE;AlCq8NF;AkCn8NE;EACE,oB/BoP0B;AHitN9B;;AkC37NA;E9BjCI;E8BmCF;AlC87NF;;AkC17NA;EACE,mB/BuBO;ECRH,kBAtCa;AJq9NnB;;AkC17NA;EACE;E9B7CE;E8B+CF,c/B1GS;AHuiOX;AkC37NE;EACE;AlC67NJ;;AAziOA;EACE;AA4iOF;;AAziOA;EAEE;AA2iOF;;AAviOA;EACE;EACA;AA0iOF;AAxiOE;EACE;EACA;AA0iOJ,C","sources":["./node_modules/@angular/material/prebuilt-themes/indigo-pink.css","./src/styles.scss","./node_modules/bootstrap/scss/bootstrap-reboot.scss","./node_modules/bootstrap/scss/_reboot.scss","./node_modules/bootstrap/scss/_variables.scss","./node_modules/bootstrap/scss/vendor/_rfs.scss","./node_modules/bootstrap/scss/mixins/_hover.scss","./node_modules/bootstrap/scss/utilities/_align.scss","./node_modules/bootstrap/scss/mixins/_background-variant.scss","./node_modules/bootstrap/scss/utilities/_background.scss","./node_modules/bootstrap/scss/utilities/_borders.scss","./node_modules/bootstrap/scss/mixins/_clearfix.scss","./node_modules/bootstrap/scss/utilities/_display.scss","./node_modules/bootstrap/scss/mixins/_breakpoints.scss","./node_modules/bootstrap/scss/utilities/_embed.scss","./node_modules/bootstrap/scss/utilities/_flex.scss","./node_modules/bootstrap/scss/utilities/_float.scss","./node_modules/bootstrap/scss/utilities/_interactions.scss","./node_modules/bootstrap/scss/utilities/_overflow.scss","./node_modules/bootstrap/scss/utilities/_position.scss","./node_modules/bootstrap/scss/utilities/_screenreaders.scss","./node_modules/bootstrap/scss/mixins/_screen-reader.scss","./node_modules/bootstrap/scss/utilities/_shadows.scss","./node_modules/bootstrap/scss/utilities/_sizing.scss","./node_modules/bootstrap/scss/utilities/_spacing.scss","./node_modules/bootstrap/scss/utilities/_stretched-link.scss","./node_modules/bootstrap/scss/utilities/_text.scss","./node_modules/bootstrap/scss/mixins/_text-truncate.scss","./node_modules/bootstrap/scss/mixins/_text-emphasis.scss","./node_modules/bootstrap/scss/mixins/_text-hide.scss","./node_modules/bootstrap/scss/utilities/_visibility.scss","./node_modules/bootstrap/scss/bootstrap-grid.scss","./node_modules/bootstrap/scss/_grid.scss","./node_modules/bootstrap/scss/mixins/_grid.scss","./node_modules/bootstrap/scss/mixins/_grid-framework.scss","./node_modules/bootstrap/scss/_type.scss","./node_modules/bootstrap/scss/mixins/_lists.scss"],"sourcesContent":[".mat-ripple{overflow:hidden;position:relative}.mat-ripple:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded{overflow:visible}.mat-ripple-element{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0, 0, 0.2, 1);transform:scale3d(0, 0, 0)}.cdk-high-contrast-active .mat-ripple-element{display:none}.cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0}.cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed;z-index:1000}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:1}.cdk-high-contrast-active .cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:.6}.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}textarea.cdk-textarea-autosize{resize:none}textarea.cdk-textarea-autosize-measuring{padding:2px 0 !important;box-sizing:content-box !important;height:auto !important;overflow:hidden !important}textarea.cdk-textarea-autosize-measuring-firefox{padding:2px 0 !important;box-sizing:content-box !important;height:0 !important}@keyframes cdk-text-field-autofill-start{/*!*/}@keyframes cdk-text-field-autofill-end{/*!*/}.cdk-text-field-autofill-monitored:-webkit-autofill{animation:cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored:not(:-webkit-autofill){animation:cdk-text-field-autofill-end 0s 1ms}.mat-focus-indicator{position:relative}.mat-focus-indicator::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border:var(--mat-focus-indicator-border-width, 3px) var(--mat-focus-indicator-border-style, solid) var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator:focus::before{content:\"\"}.cdk-high-contrast-active{--mat-focus-indicator-display: block}.mat-mdc-focus-indicator{position:relative}.mat-mdc-focus-indicator::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-mdc-focus-indicator-display, none);border:var(--mat-mdc-focus-indicator-border-width, 3px) var(--mat-mdc-focus-indicator-border-style, solid) var(--mat-mdc-focus-indicator-border-color, transparent);border-radius:var(--mat-mdc-focus-indicator-border-radius, 4px)}.mat-mdc-focus-indicator:focus::before{content:\"\"}.cdk-high-contrast-active{--mat-mdc-focus-indicator-display: block}.mat-ripple-element{background-color:rgba(0,0,0,.1)}.mat-mdc-option{color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87))}.mat-mdc-option:hover:not(.mdc-list-item--disabled),.mat-mdc-option:focus:not(.mdc-list-item--disabled),.mat-mdc-option.mat-mdc-option-active,.mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple):not(.mdc-list-item--disabled){background:rgba(0,0,0,.04)}.mat-primary .mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mdc-theme-primary, #3f51b5)}.mat-accent .mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mdc-theme-secondary, #ff4081)}.mat-warn .mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mdc-theme-error, #f44336)}.mat-mdc-optgroup-label{color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87))}.mat-pseudo-checkbox{color:rgba(0,0,0,.54)}.mat-pseudo-checkbox::after{color:#fafafa}.mat-pseudo-checkbox-disabled{color:#b0b0b0}.mat-primary .mat-pseudo-checkbox-checked,.mat-primary .mat-pseudo-checkbox-indeterminate{background:#3f51b5}.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-indeterminate,.mat-accent .mat-pseudo-checkbox-checked,.mat-accent .mat-pseudo-checkbox-indeterminate{background:#ff4081}.mat-warn .mat-pseudo-checkbox-checked,.mat-warn .mat-pseudo-checkbox-indeterminate{background:#f44336}.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background:#b0b0b0}.mat-app-background{background-color:#fafafa;color:rgba(0,0,0,.87)}.mat-elevation-z0,.mat-mdc-elevation-specific.mat-elevation-z0{box-shadow:0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12)}.mat-elevation-z1,.mat-mdc-elevation-specific.mat-elevation-z1{box-shadow:0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12)}.mat-elevation-z2,.mat-mdc-elevation-specific.mat-elevation-z2{box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}.mat-elevation-z3,.mat-mdc-elevation-specific.mat-elevation-z3{box-shadow:0px 3px 3px -2px rgba(0, 0, 0, 0.2), 0px 3px 4px 0px rgba(0, 0, 0, 0.14), 0px 1px 8px 0px rgba(0, 0, 0, 0.12)}.mat-elevation-z4,.mat-mdc-elevation-specific.mat-elevation-z4{box-shadow:0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12)}.mat-elevation-z5,.mat-mdc-elevation-specific.mat-elevation-z5{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 5px 8px 0px rgba(0, 0, 0, 0.14), 0px 1px 14px 0px rgba(0, 0, 0, 0.12)}.mat-elevation-z6,.mat-mdc-elevation-specific.mat-elevation-z6{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12)}.mat-elevation-z7,.mat-mdc-elevation-specific.mat-elevation-z7{box-shadow:0px 4px 5px -2px rgba(0, 0, 0, 0.2), 0px 7px 10px 1px rgba(0, 0, 0, 0.14), 0px 2px 16px 1px rgba(0, 0, 0, 0.12)}.mat-elevation-z8,.mat-mdc-elevation-specific.mat-elevation-z8{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12)}.mat-elevation-z9,.mat-mdc-elevation-specific.mat-elevation-z9{box-shadow:0px 5px 6px -3px rgba(0, 0, 0, 0.2), 0px 9px 12px 1px rgba(0, 0, 0, 0.14), 0px 3px 16px 2px rgba(0, 0, 0, 0.12)}.mat-elevation-z10,.mat-mdc-elevation-specific.mat-elevation-z10{box-shadow:0px 6px 6px -3px rgba(0, 0, 0, 0.2), 0px 10px 14px 1px rgba(0, 0, 0, 0.14), 0px 4px 18px 3px rgba(0, 0, 0, 0.12)}.mat-elevation-z11,.mat-mdc-elevation-specific.mat-elevation-z11{box-shadow:0px 6px 7px -4px rgba(0, 0, 0, 0.2), 0px 11px 15px 1px rgba(0, 0, 0, 0.14), 0px 4px 20px 3px rgba(0, 0, 0, 0.12)}.mat-elevation-z12,.mat-mdc-elevation-specific.mat-elevation-z12{box-shadow:0px 7px 8px -4px rgba(0, 0, 0, 0.2), 0px 12px 17px 2px rgba(0, 0, 0, 0.14), 0px 5px 22px 4px rgba(0, 0, 0, 0.12)}.mat-elevation-z13,.mat-mdc-elevation-specific.mat-elevation-z13{box-shadow:0px 7px 8px -4px rgba(0, 0, 0, 0.2), 0px 13px 19px 2px rgba(0, 0, 0, 0.14), 0px 5px 24px 4px rgba(0, 0, 0, 0.12)}.mat-elevation-z14,.mat-mdc-elevation-specific.mat-elevation-z14{box-shadow:0px 7px 9px -4px rgba(0, 0, 0, 0.2), 0px 14px 21px 2px rgba(0, 0, 0, 0.14), 0px 5px 26px 4px rgba(0, 0, 0, 0.12)}.mat-elevation-z15,.mat-mdc-elevation-specific.mat-elevation-z15{box-shadow:0px 8px 9px -5px rgba(0, 0, 0, 0.2), 0px 15px 22px 2px rgba(0, 0, 0, 0.14), 0px 6px 28px 5px rgba(0, 0, 0, 0.12)}.mat-elevation-z16,.mat-mdc-elevation-specific.mat-elevation-z16{box-shadow:0px 8px 10px -5px rgba(0, 0, 0, 0.2), 0px 16px 24px 2px rgba(0, 0, 0, 0.14), 0px 6px 30px 5px rgba(0, 0, 0, 0.12)}.mat-elevation-z17,.mat-mdc-elevation-specific.mat-elevation-z17{box-shadow:0px 8px 11px -5px rgba(0, 0, 0, 0.2), 0px 17px 26px 2px rgba(0, 0, 0, 0.14), 0px 6px 32px 5px rgba(0, 0, 0, 0.12)}.mat-elevation-z18,.mat-mdc-elevation-specific.mat-elevation-z18{box-shadow:0px 9px 11px -5px rgba(0, 0, 0, 0.2), 0px 18px 28px 2px rgba(0, 0, 0, 0.14), 0px 7px 34px 6px rgba(0, 0, 0, 0.12)}.mat-elevation-z19,.mat-mdc-elevation-specific.mat-elevation-z19{box-shadow:0px 9px 12px -6px rgba(0, 0, 0, 0.2), 0px 19px 29px 2px rgba(0, 0, 0, 0.14), 0px 7px 36px 6px rgba(0, 0, 0, 0.12)}.mat-elevation-z20,.mat-mdc-elevation-specific.mat-elevation-z20{box-shadow:0px 10px 13px -6px rgba(0, 0, 0, 0.2), 0px 20px 31px 3px rgba(0, 0, 0, 0.14), 0px 8px 38px 7px rgba(0, 0, 0, 0.12)}.mat-elevation-z21,.mat-mdc-elevation-specific.mat-elevation-z21{box-shadow:0px 10px 13px -6px rgba(0, 0, 0, 0.2), 0px 21px 33px 3px rgba(0, 0, 0, 0.14), 0px 8px 40px 7px rgba(0, 0, 0, 0.12)}.mat-elevation-z22,.mat-mdc-elevation-specific.mat-elevation-z22{box-shadow:0px 10px 14px -6px rgba(0, 0, 0, 0.2), 0px 22px 35px 3px rgba(0, 0, 0, 0.14), 0px 8px 42px 7px rgba(0, 0, 0, 0.12)}.mat-elevation-z23,.mat-mdc-elevation-specific.mat-elevation-z23{box-shadow:0px 11px 14px -7px rgba(0, 0, 0, 0.2), 0px 23px 36px 3px rgba(0, 0, 0, 0.14), 0px 9px 44px 8px rgba(0, 0, 0, 0.12)}.mat-elevation-z24,.mat-mdc-elevation-specific.mat-elevation-z24{box-shadow:0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12)}.mat-theme-loaded-marker{display:none}.mat-mdc-option{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-body1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:var(--mdc-typography-body1-font-size, 16px);line-height:var(--mdc-typography-body1-line-height, 24px);font-weight:var(--mdc-typography-body1-font-weight, 400);letter-spacing:var(--mdc-typography-body1-letter-spacing, 0.03125em)}.mat-mdc-card{box-shadow:0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12);--mdc-elevated-card-container-color:#fff}.mat-mdc-card-outlined{box-shadow:0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12);--mdc-outlined-card-outline-color:#e0e0e0}.mat-mdc-card-subtitle{color:rgba(0,0,0,.54)}.mat-mdc-card-title{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-headline6-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:var(--mdc-typography-headline6-font-size, 20px);line-height:var(--mdc-typography-headline6-line-height, 32px);font-weight:var(--mdc-typography-headline6-font-weight, 500);letter-spacing:var(--mdc-typography-headline6-letter-spacing, 0.0125em);text-decoration:var(--mdc-typography-headline6-text-decoration, inherit);text-transform:var(--mdc-typography-headline6-text-transform, none)}.mat-mdc-card-subtitle{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-subtitle2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:var(--mdc-typography-subtitle2-font-size, 14px);line-height:var(--mdc-typography-subtitle2-line-height, 22px);font-weight:var(--mdc-typography-subtitle2-font-weight, 500);letter-spacing:var(--mdc-typography-subtitle2-letter-spacing, 0.0071428571em);text-decoration:var(--mdc-typography-subtitle2-text-decoration, inherit);text-transform:var(--mdc-typography-subtitle2-text-transform, none)}.mat-mdc-progress-bar{--mdc-linear-progress-active-indicator-color:#3f51b5}.mat-mdc-progress-bar .mdc-linear-progress__buffer-dots{background-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='none slice'%3E%3Ccircle cx='1' cy='1' r='1' fill='rgba(63, 81, 181, 0.25)'/%3E%3C/svg%3E\")}.mat-mdc-progress-bar .mdc-linear-progress__buffer-bar{background-color:rgba(63, 81, 181, 0.25)}.mat-mdc-progress-bar.mat-accent{--mdc-linear-progress-active-indicator-color:#ff4081}.mat-mdc-progress-bar.mat-accent .mdc-linear-progress__buffer-dots{background-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='none slice'%3E%3Ccircle cx='1' cy='1' r='1' fill='rgba(255, 64, 129, 0.25)'/%3E%3C/svg%3E\")}.mat-mdc-progress-bar.mat-accent .mdc-linear-progress__buffer-bar{background-color:rgba(255, 64, 129, 0.25)}.mat-mdc-progress-bar.mat-warn{--mdc-linear-progress-active-indicator-color:#f44336}.mat-mdc-progress-bar.mat-warn .mdc-linear-progress__buffer-dots{background-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='none slice'%3E%3Ccircle cx='1' cy='1' r='1' fill='rgba(244, 67, 54, 0.25)'/%3E%3C/svg%3E\")}.mat-mdc-progress-bar.mat-warn .mdc-linear-progress__buffer-bar{background-color:rgba(244, 67, 54, 0.25)}.mat-mdc-tooltip{--mdc-plain-tooltip-container-color:#616161;--mdc-plain-tooltip-supporting-text-color:white}.mat-mdc-tooltip{--mdc-plain-tooltip-supporting-text-font:Roboto, sans-serif;--mdc-plain-tooltip-supporting-text-size:12px;--mdc-plain-tooltip-supporting-text-weight:400;--mdc-plain-tooltip-supporting-text-tracking:0.0333333333em}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-floating-label{color:rgba(0, 0, 0, 0.6)}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__input{color:rgba(0, 0, 0, 0.87)}@media all{.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:rgba(0, 0, 0, 0.6)}}@media all{.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:rgba(0, 0, 0, 0.6)}}.mdc-text-field .mdc-text-field__input{caret-color:var(--mdc-theme-primary, #3f51b5)}.mdc-text-field:not(.mdc-text-field--disabled)+.mdc-text-field-helper-line .mdc-text-field-helper-text{color:rgba(0, 0, 0, 0.6)}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field-character-counter,.mdc-text-field:not(.mdc-text-field--disabled)+.mdc-text-field-helper-line .mdc-text-field-character-counter{color:rgba(0, 0, 0, 0.6)}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__icon--leading{color:rgba(0, 0, 0, 0.54)}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__icon--trailing{color:rgba(0, 0, 0, 0.54)}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__affix--prefix{color:rgba(0, 0, 0, 0.6)}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__affix--suffix{color:rgba(0, 0, 0, 0.6)}.mdc-text-field--filled .mdc-text-field__ripple::before,.mdc-text-field--filled .mdc-text-field__ripple::after{background-color:var(--mdc-ripple-color, rgba(0, 0, 0, 0.87))}.mdc-text-field--filled:hover .mdc-text-field__ripple::before,.mdc-text-field--filled.mdc-ripple-surface--hover .mdc-text-field__ripple::before{opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-text-field--filled.mdc-ripple-upgraded--background-focused .mdc-text-field__ripple::before,.mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:whitesmoke}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:rgba(0, 0, 0, 0.42)}.mdc-text-field--filled:not(.mdc-text-field--disabled):hover .mdc-line-ripple::before{border-bottom-color:rgba(0, 0, 0, 0.87)}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-color:var(--mdc-theme-primary, #3f51b5)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:rgba(0, 0, 0, 0.38)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:rgba(0, 0, 0, 0.87)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-theme-primary, #3f51b5)}.mdc-text-field--outlined .mdc-text-field__ripple::before,.mdc-text-field--outlined .mdc-text-field__ripple::after{background-color:var(--mdc-ripple-color, transparent)}.mdc-text-field--focused:not(.mdc-text-field--disabled) .mdc-floating-label{color:rgba(63, 81, 181, 0.87)}.mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-theme-error, #f44336)}.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-theme-error, #f44336)}.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mdc-theme-error, #f44336)}.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{color:var(--mdc-theme-error, #f44336)}.mdc-text-field--invalid .mdc-text-field__input{caret-color:var(--mdc-theme-error, #f44336)}.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__icon--trailing{color:var(--mdc-theme-error, #f44336)}.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-theme-error, #f44336)}.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-theme-error, #f44336)}.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-theme-error, #f44336)}.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-theme-error, #f44336)}.mdc-text-field--disabled .mdc-text-field__input{color:rgba(0, 0, 0, 0.38)}@media all{.mdc-text-field--disabled .mdc-text-field__input::placeholder{color:rgba(0, 0, 0, 0.38)}}@media all{.mdc-text-field--disabled .mdc-text-field__input:-ms-input-placeholder{color:rgba(0, 0, 0, 0.38)}}.mdc-text-field--disabled .mdc-floating-label{color:rgba(0, 0, 0, 0.38)}.mdc-text-field--disabled+.mdc-text-field-helper-line .mdc-text-field-helper-text{color:rgba(0, 0, 0, 0.38)}.mdc-text-field--disabled .mdc-text-field-character-counter,.mdc-text-field--disabled+.mdc-text-field-helper-line .mdc-text-field-character-counter{color:rgba(0, 0, 0, 0.38)}.mdc-text-field--disabled .mdc-text-field__icon--leading{color:rgba(0, 0, 0, 0.3)}.mdc-text-field--disabled .mdc-text-field__icon--trailing{color:rgba(0, 0, 0, 0.3)}.mdc-text-field--disabled .mdc-text-field__affix--prefix{color:rgba(0, 0, 0, 0.38)}.mdc-text-field--disabled .mdc-text-field__affix--suffix{color:rgba(0, 0, 0, 0.38)}.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:rgba(0, 0, 0, 0.06)}.mdc-text-field--disabled .mdc-notched-outline__leading,.mdc-text-field--disabled .mdc-notched-outline__notch,.mdc-text-field--disabled .mdc-notched-outline__trailing{border-color:rgba(0, 0, 0, 0.06)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled .mdc-text-field__input::placeholder{color:GrayText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled .mdc-text-field__input:-ms-input-placeholder{color:GrayText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled .mdc-floating-label{color:GrayText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled+.mdc-text-field-helper-line .mdc-text-field-helper-text{color:GrayText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled .mdc-text-field-character-counter,.mdc-text-field--disabled+.mdc-text-field-helper-line .mdc-text-field-character-counter{color:GrayText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled .mdc-text-field__icon--leading{color:GrayText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled .mdc-text-field__icon--trailing{color:GrayText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled .mdc-text-field__affix--prefix{color:GrayText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled .mdc-text-field__affix--suffix{color:GrayText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:GrayText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled .mdc-notched-outline__leading,.mdc-text-field--disabled .mdc-notched-outline__notch,.mdc-text-field--disabled .mdc-notched-outline__trailing{border-color:GrayText}}.mdc-text-field--disabled.mdc-text-field--filled{background-color:#fafafa}.mat-mdc-form-field-error{color:var(--mdc-theme-error, #f44336)}.mat-mdc-form-field-focus-overlay{background-color:rgba(0,0,0,.87)}.mat-mdc-form-field:hover .mat-mdc-form-field-focus-overlay{opacity:.04}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:.12}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{color:rgba(0,0,0,.54)}.mat-mdc-form-field-type-mat-native-select.mat-focused.mat-primary .mat-mdc-form-field-infix::after{color:rgba(63,81,181,.87)}.mat-mdc-form-field-type-mat-native-select.mat-focused.mat-accent .mat-mdc-form-field-infix::after{color:rgba(255,64,129,.87)}.mat-mdc-form-field-type-mat-native-select.mat-focused.mat-warn .mat-mdc-form-field-infix::after{color:rgba(244,67,54,.87)}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after{color:rgba(0,0,0,.38)}.mat-mdc-form-field.mat-accent .mdc-text-field__input{caret-color:var(--mdc-theme-secondary, #ff4081)}.mat-mdc-form-field.mat-accent:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-theme-secondary, #ff4081)}.mat-mdc-form-field.mat-accent .mdc-text-field--focused:not(.mdc-text-field--disabled) .mdc-floating-label{color:rgba(255, 64, 129, 0.87)}.mat-mdc-form-field.mat-accent .mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-theme-error, #f44336)}.mat-mdc-form-field.mat-accent .mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-theme-error, #f44336)}.mat-mdc-form-field.mat-accent .mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mdc-theme-error, #f44336)}.mat-mdc-form-field.mat-accent .mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{color:var(--mdc-theme-error, #f44336)}.mat-mdc-form-field.mat-accent .mdc-text-field--invalid .mdc-text-field__input{caret-color:var(--mdc-theme-error, #f44336)}.mat-mdc-form-field.mat-accent .mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__icon--trailing{color:var(--mdc-theme-error, #f44336)}.mat-mdc-form-field.mat-accent .mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-theme-error, #f44336)}.mat-mdc-form-field.mat-accent .mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mat-mdc-form-field.mat-accent .mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mat-mdc-form-field.mat-accent .mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-theme-error, #f44336)}.mat-mdc-form-field.mat-accent .mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mat-mdc-form-field.mat-accent .mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mat-mdc-form-field.mat-accent .mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-theme-error, #f44336)}.mat-mdc-form-field.mat-accent .mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mat-mdc-form-field.mat-accent .mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mat-mdc-form-field.mat-accent .mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-theme-error, #f44336)}.mat-mdc-form-field.mat-accent .mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mat-mdc-form-field.mat-accent .mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mat-mdc-form-field.mat-accent .mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-theme-secondary, #ff4081)}.mat-mdc-form-field.mat-warn .mdc-text-field__input{caret-color:var(--mdc-theme-error, #f44336)}.mat-mdc-form-field.mat-warn:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-theme-error, #f44336)}.mat-mdc-form-field.mat-warn .mdc-text-field--focused:not(.mdc-text-field--disabled) .mdc-floating-label{color:rgba(244, 67, 54, 0.87)}.mat-mdc-form-field.mat-warn .mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-theme-error, #f44336)}.mat-mdc-form-field.mat-warn .mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-theme-error, #f44336)}.mat-mdc-form-field.mat-warn .mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mdc-theme-error, #f44336)}.mat-mdc-form-field.mat-warn .mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{color:var(--mdc-theme-error, #f44336)}.mat-mdc-form-field.mat-warn .mdc-text-field--invalid .mdc-text-field__input{caret-color:var(--mdc-theme-error, #f44336)}.mat-mdc-form-field.mat-warn .mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__icon--trailing{color:var(--mdc-theme-error, #f44336)}.mat-mdc-form-field.mat-warn .mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-theme-error, #f44336)}.mat-mdc-form-field.mat-warn .mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mat-mdc-form-field.mat-warn .mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mat-mdc-form-field.mat-warn .mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-theme-error, #f44336)}.mat-mdc-form-field.mat-warn .mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mat-mdc-form-field.mat-warn .mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mat-mdc-form-field.mat-warn .mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-theme-error, #f44336)}.mat-mdc-form-field.mat-warn .mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mat-mdc-form-field.mat-warn .mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mat-mdc-form-field.mat-warn .mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-theme-error, #f44336)}.mat-mdc-form-field.mat-warn .mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mat-mdc-form-field.mat-warn .mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mat-mdc-form-field.mat-warn .mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-theme-error, #f44336)}.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:1px solid rgba(0,0,0,0)}[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:none;border-right:1px solid rgba(0,0,0,0)}.mat-mdc-form-field-infix{min-height:56px}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:28px}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{--mat-mdc-form-field-label-transform: translateY( -34.75px) scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));transform:var(--mat-mdc-form-field-label-transform)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mat-mdc-form-field-infix{padding-top:16px;padding-bottom:16px}.mat-mdc-text-field-wrapper:not(.mdc-text-field--outlined) .mat-mdc-form-field-infix{padding-top:24px;padding-bottom:8px}.mdc-text-field--no-label:not(.mdc-text-field--outlined):not(.mdc-text-field--textarea) .mat-mdc-form-field-infix{padding-top:16px;padding-bottom:16px}.mdc-text-field__input{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:var(--mdc-typography-subtitle1-font-size, 16px);font-weight:var(--mdc-typography-subtitle1-font-weight, 400);letter-spacing:var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-transform:var(--mdc-typography-subtitle1-text-transform, none)}.mdc-text-field__affix{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:var(--mdc-typography-subtitle1-font-size, 16px);font-weight:var(--mdc-typography-subtitle1-font-weight, 400);letter-spacing:var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-transform:var(--mdc-typography-subtitle1-text-transform, none)}.mdc-text-field--textarea .mdc-text-field__input{line-height:1.5rem}.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:var(--mdc-typography-subtitle1-font-size, 16px);font-weight:var(--mdc-typography-subtitle1-font-weight, 400);letter-spacing:var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-transform:var(--mdc-typography-subtitle1-text-transform, none)}.mat-mdc-form-field-subscript-wrapper,.mat-mdc-form-field-bottom-align::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-caption-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:var(--mdc-typography-caption-font-size, 12px);line-height:var(--mdc-typography-caption-line-height, 20px);font-weight:var(--mdc-typography-caption-font-weight, 400);letter-spacing:var(--mdc-typography-caption-letter-spacing, 0.0333333333em);text-decoration:var(--mdc-typography-caption-text-decoration, inherit);text-transform:var(--mdc-typography-caption-text-transform, none)}.mat-mdc-form-field,.mat-mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-body1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:var(--mdc-typography-body1-font-size, 16px);line-height:var(--mdc-typography-body1-line-height, 24px);font-weight:var(--mdc-typography-body1-font-weight, 400);letter-spacing:var(--mdc-typography-body1-letter-spacing, 0.03125em);text-decoration:var(--mdc-typography-body1-text-decoration, inherit);text-transform:var(--mdc-typography-body1-text-transform, none)}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(16px * var(--mat-mdc-form-field-floating-label-scale, 0.75))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:16px}.mdc-menu-surface{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);background-color:var(--mdc-theme-surface, #fff);color:var(--mdc-theme-on-surface, #000)}.mdc-list-item__primary-text{color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87))}.mdc-list-item__secondary-text{color:var(--mdc-theme-text-secondary-on-background, rgba(0, 0, 0, 0.54))}.mdc-list-item__overline-text{color:var(--mdc-theme-text-hint-on-background, rgba(0, 0, 0, 0.38))}.mdc-list-item--with-leading-icon .mdc-list-item__start,.mdc-list-item--with-trailing-icon .mdc-list-item__end{background-color:transparent}.mdc-list-item--with-leading-icon .mdc-list-item__start,.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mdc-theme-text-icon-on-background, rgba(0, 0, 0, 0.38))}.mdc-list-item__end{color:var(--mdc-theme-text-hint-on-background, rgba(0, 0, 0, 0.38))}.mdc-list-item--disabled .mdc-list-item__start,.mdc-list-item--disabled .mdc-list-item__content,.mdc-list-item--disabled .mdc-list-item__end{opacity:0.38}.mdc-list-item--disabled .mdc-list-item__primary-text{color:var(--mdc-theme-on-surface, #000)}.mdc-list-item--disabled .mdc-list-item__secondary-text{color:var(--mdc-theme-on-surface, #000)}.mdc-list-item--disabled .mdc-list-item__overline-text{color:var(--mdc-theme-on-surface, #000)}.mdc-list-item--disabled.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mdc-theme-on-surface, #000)}.mdc-list-item--disabled.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mdc-theme-on-surface, #000)}.mdc-list-item--disabled.mdc-list-item--with-trailing-meta .mdc-list-item__end{color:var(--mdc-theme-on-surface, #000)}.mdc-list-item--selected .mdc-list-item__primary-text,.mdc-list-item--activated .mdc-list-item__primary-text{color:var(--mdc-theme-primary, #3f51b5)}.mdc-list-item--selected.mdc-list-item--with-leading-icon .mdc-list-item__start,.mdc-list-item--activated.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mdc-theme-primary, #3f51b5)}.mdc-deprecated-list-group__subheader{color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87))}.mdc-list-divider::after{border-bottom-color:white}.mdc-list-divider{background-color:rgba(0, 0, 0, 0.12)}.mat-mdc-select-value{color:rgba(0,0,0,.87)}.mat-mdc-select-placeholder{color:rgba(0,0,0,.6)}.mat-mdc-select-disabled .mat-mdc-select-value{color:rgba(0,0,0,.38)}.mat-mdc-select-arrow{color:rgba(0,0,0,.54)}.mat-mdc-form-field.mat-focused.mat-primary .mat-mdc-select-arrow{color:rgba(63,81,181,.87)}.mat-mdc-form-field.mat-focused.mat-accent .mat-mdc-select-arrow{color:rgba(255,64,129,.87)}.mat-mdc-form-field.mat-focused.mat-warn .mat-mdc-select-arrow{color:rgba(244,67,54,.87)}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow{color:rgba(244,67,54,.87)}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:rgba(0,0,0,.38)}.mat-mdc-select-panel{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:var(--mdc-typography-subtitle1-font-size, 16px);line-height:var(--mdc-typography-subtitle1-line-height, 28px);font-weight:var(--mdc-typography-subtitle1-font-weight, 400);letter-spacing:var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-transform:var(--mdc-typography-subtitle1-text-transform, none);line-height:24px}.mat-mdc-select{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-body1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:var(--mdc-typography-body1-font-size, 16px);line-height:var(--mdc-typography-body1-line-height, 24px);font-weight:var(--mdc-typography-body1-font-weight, 400);letter-spacing:var(--mdc-typography-body1-letter-spacing, 0.03125em);text-decoration:var(--mdc-typography-body1-text-decoration, inherit);text-transform:var(--mdc-typography-body1-text-transform, none)}.mdc-menu-surface{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);background-color:var(--mdc-theme-surface, #fff);color:var(--mdc-theme-on-surface, #000)}.mdc-list-item__primary-text{color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87))}.mdc-list-item__secondary-text{color:var(--mdc-theme-text-secondary-on-background, rgba(0, 0, 0, 0.54))}.mdc-list-item__overline-text{color:var(--mdc-theme-text-hint-on-background, rgba(0, 0, 0, 0.38))}.mdc-list-item--with-leading-icon .mdc-list-item__start,.mdc-list-item--with-trailing-icon .mdc-list-item__end{background-color:transparent}.mdc-list-item--with-leading-icon .mdc-list-item__start,.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mdc-theme-text-icon-on-background, rgba(0, 0, 0, 0.38))}.mdc-list-item__end{color:var(--mdc-theme-text-hint-on-background, rgba(0, 0, 0, 0.38))}.mdc-list-item--disabled .mdc-list-item__start,.mdc-list-item--disabled .mdc-list-item__content,.mdc-list-item--disabled .mdc-list-item__end{opacity:0.38}.mdc-list-item--disabled .mdc-list-item__primary-text{color:var(--mdc-theme-on-surface, #000)}.mdc-list-item--disabled .mdc-list-item__secondary-text{color:var(--mdc-theme-on-surface, #000)}.mdc-list-item--disabled .mdc-list-item__overline-text{color:var(--mdc-theme-on-surface, #000)}.mdc-list-item--disabled.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mdc-theme-on-surface, #000)}.mdc-list-item--disabled.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mdc-theme-on-surface, #000)}.mdc-list-item--disabled.mdc-list-item--with-trailing-meta .mdc-list-item__end{color:var(--mdc-theme-on-surface, #000)}.mdc-list-item--selected .mdc-list-item__primary-text,.mdc-list-item--activated .mdc-list-item__primary-text{color:var(--mdc-theme-primary, #3f51b5)}.mdc-list-item--selected.mdc-list-item--with-leading-icon .mdc-list-item__start,.mdc-list-item--activated.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mdc-theme-primary, #3f51b5)}.mdc-deprecated-list-group__subheader{color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87))}.mdc-list-divider::after{border-bottom-color:white}.mdc-list-divider{background-color:rgba(0, 0, 0, 0.12)}.mat-mdc-autocomplete-panel{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:var(--mdc-typography-subtitle1-font-size, 16px);line-height:var(--mdc-typography-subtitle1-line-height, 28px);font-weight:var(--mdc-typography-subtitle1-font-weight, 400);letter-spacing:var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-transform:var(--mdc-typography-subtitle1-text-transform, none);line-height:24px}.mat-mdc-dialog-container{--mdc-dialog-container-color:white;--mdc-dialog-with-divider-divider-color:rgba(0, 0, 0, 0.12);--mdc-dialog-subhead-color:rgba(0, 0, 0, 0.87);--mdc-dialog-supporting-text-color:rgba(0, 0, 0, 0.6)}.mat-mdc-dialog-container{--mdc-dialog-subhead-font:Roboto, sans-serif;--mdc-dialog-subhead-line-height:32px;--mdc-dialog-subhead-size:20px;--mdc-dialog-subhead-weight:500;--mdc-dialog-subhead-tracking:0.0125em;--mdc-dialog-supporting-text-font:Roboto, sans-serif;--mdc-dialog-supporting-text-line-height:24px;--mdc-dialog-supporting-text-size:16px;--mdc-dialog-supporting-text-weight:400;--mdc-dialog-supporting-text-tracking:0.03125em}.mat-mdc-standard-chip{--mdc-chip-elevated-container-color:#e0e0e0;--mdc-chip-elevated-disabled-container-color:#e0e0e0;--mdc-chip-label-text-color:#212121;--mdc-chip-disabled-label-text-color:#212121;--mdc-chip-with-icon-icon-color:#212121;--mdc-chip-with-icon-disabled-icon-color:#212121;--mdc-chip-with-trailing-icon-disabled-trailing-icon-color:#212121;--mdc-chip-with-trailing-icon-trailing-icon-color:#212121;--mdc-chip-with-icon-selected-icon-color:#212121}.mat-mdc-standard-chip.mat-primary.mat-mdc-chip-selected,.mat-mdc-standard-chip.mat-primary.mat-mdc-chip-highlighted{--mdc-chip-elevated-container-color:#3f51b5;--mdc-chip-elevated-disabled-container-color:#3f51b5;--mdc-chip-label-text-color:white;--mdc-chip-disabled-label-text-color:white;--mdc-chip-with-icon-icon-color:white;--mdc-chip-with-icon-disabled-icon-color:white;--mdc-chip-with-trailing-icon-disabled-trailing-icon-color:white;--mdc-chip-with-trailing-icon-trailing-icon-color:white;--mdc-chip-with-icon-selected-icon-color:white}.mat-mdc-standard-chip.mat-accent.mat-mdc-chip-selected,.mat-mdc-standard-chip.mat-accent.mat-mdc-chip-highlighted{--mdc-chip-elevated-container-color:#ff4081;--mdc-chip-elevated-disabled-container-color:#ff4081;--mdc-chip-label-text-color:white;--mdc-chip-disabled-label-text-color:white;--mdc-chip-with-icon-icon-color:white;--mdc-chip-with-icon-disabled-icon-color:white;--mdc-chip-with-trailing-icon-disabled-trailing-icon-color:white;--mdc-chip-with-trailing-icon-trailing-icon-color:white;--mdc-chip-with-icon-selected-icon-color:white}.mat-mdc-standard-chip.mat-warn.mat-mdc-chip-selected,.mat-mdc-standard-chip.mat-warn.mat-mdc-chip-highlighted{--mdc-chip-elevated-container-color:#f44336;--mdc-chip-elevated-disabled-container-color:#f44336;--mdc-chip-label-text-color:white;--mdc-chip-disabled-label-text-color:white;--mdc-chip-with-icon-icon-color:white;--mdc-chip-with-icon-disabled-icon-color:white;--mdc-chip-with-trailing-icon-disabled-trailing-icon-color:white;--mdc-chip-with-trailing-icon-trailing-icon-color:white;--mdc-chip-with-icon-selected-icon-color:white}.mat-mdc-chip-focus-overlay{background:#000}.mat-mdc-chip{height:32px}.mat-mdc-standard-chip{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:var(--mdc-typography-body2-font-size, 14px);line-height:var(--mdc-typography-body2-line-height, 20px);font-weight:var(--mdc-typography-body2-font-weight, 400);letter-spacing:var(--mdc-typography-body2-letter-spacing, 0.0178571429em);text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-transform:var(--mdc-typography-body2-text-transform, none)}.mat-mdc-slide-toggle{--mdc-switch-disabled-selected-handle-color:#424242;--mdc-switch-disabled-unselected-handle-color:#424242;--mdc-switch-disabled-selected-track-color:#424242;--mdc-switch-disabled-unselected-track-color:#424242;--mdc-switch-unselected-focus-state-layer-color:#424242;--mdc-switch-unselected-pressed-state-layer-color:#424242;--mdc-switch-unselected-hover-state-layer-color:#424242;--mdc-switch-unselected-focus-track-color:#e0e0e0;--mdc-switch-unselected-hover-track-color:#e0e0e0;--mdc-switch-unselected-pressed-track-color:#e0e0e0;--mdc-switch-unselected-track-color:#e0e0e0;--mdc-switch-unselected-focus-handle-color:#212121;--mdc-switch-unselected-hover-handle-color:#212121;--mdc-switch-unselected-pressed-handle-color:#212121;--mdc-switch-handle-surface-color:var(--mdc-theme-surface, #fff);--mdc-switch-unselected-handle-color:#616161;--mdc-switch-selected-icon-color:#fff;--mdc-switch-disabled-selected-icon-color:#fff;--mdc-switch-disabled-unselected-icon-color:#fff;--mdc-switch-unselected-icon-color:#fff}.mat-mdc-slide-toggle .mdc-form-field{color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87))}.mat-mdc-slide-toggle .mdc-switch--disabled+label{color:rgba(0,0,0,.38)}.mat-mdc-slide-toggle.mat-primary{--mdc-switch-selected-focus-state-layer-color:#3949ab;--mdc-switch-selected-handle-color:#3949ab;--mdc-switch-selected-hover-state-layer-color:#3949ab;--mdc-switch-selected-pressed-state-layer-color:#3949ab;--mdc-switch-selected-focus-handle-color:#1a237e;--mdc-switch-selected-hover-handle-color:#1a237e;--mdc-switch-selected-pressed-handle-color:#1a237e;--mdc-switch-selected-focus-track-color:#7986cb;--mdc-switch-selected-hover-track-color:#7986cb;--mdc-switch-selected-pressed-track-color:#7986cb;--mdc-switch-selected-track-color:#7986cb}.mat-mdc-slide-toggle.mat-accent{--mdc-switch-selected-focus-state-layer-color:#d81b60;--mdc-switch-selected-handle-color:#d81b60;--mdc-switch-selected-hover-state-layer-color:#d81b60;--mdc-switch-selected-pressed-state-layer-color:#d81b60;--mdc-switch-selected-focus-handle-color:#880e4f;--mdc-switch-selected-hover-handle-color:#880e4f;--mdc-switch-selected-pressed-handle-color:#880e4f;--mdc-switch-selected-focus-track-color:#f06292;--mdc-switch-selected-hover-track-color:#f06292;--mdc-switch-selected-pressed-track-color:#f06292;--mdc-switch-selected-track-color:#f06292}.mat-mdc-slide-toggle.mat-warn{--mdc-switch-selected-focus-state-layer-color:#e53935;--mdc-switch-selected-handle-color:#e53935;--mdc-switch-selected-hover-state-layer-color:#e53935;--mdc-switch-selected-pressed-state-layer-color:#e53935;--mdc-switch-selected-focus-handle-color:#b71c1c;--mdc-switch-selected-hover-handle-color:#b71c1c;--mdc-switch-selected-pressed-handle-color:#b71c1c;--mdc-switch-selected-focus-track-color:#e57373;--mdc-switch-selected-hover-track-color:#e57373;--mdc-switch-selected-pressed-track-color:#e57373;--mdc-switch-selected-track-color:#e57373}.mat-mdc-slide-toggle{--mdc-switch-state-layer-size:48px}.mdc-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:var(--mdc-typography-body2-font-size, 14px);line-height:var(--mdc-typography-body2-line-height, 20px);font-weight:var(--mdc-typography-body2-font-weight, 400);letter-spacing:var(--mdc-typography-body2-letter-spacing, 0.0178571429em);text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-transform:var(--mdc-typography-body2-text-transform, none)}.mat-mdc-radio-button .mdc-form-field{color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87))}.mat-mdc-radio-button.mat-primary{--mdc-radio-disabled-selected-icon-color:#000;--mdc-radio-disabled-unselected-icon-color:#000;--mdc-radio-unselected-focus-icon-color:#212121;--mdc-radio-unselected-hover-icon-color:#212121;--mdc-radio-unselected-icon-color:rgba(0, 0, 0, 0.54);--mdc-radio-unselected-pressed-icon-color:rgba(0, 0, 0, 0.54);--mdc-radio-selected-focus-icon-color:#3f51b5;--mdc-radio-selected-hover-icon-color:#3f51b5;--mdc-radio-selected-icon-color:#3f51b5;--mdc-radio-selected-pressed-icon-color:#3f51b5;--mat-mdc-radio-ripple-color: #000;--mat-mdc-radio-checked-ripple-color: #3f51b5}.mat-mdc-radio-button.mat-primary .mdc-radio--disabled+label{color:rgba(0,0,0,.38)}.mat-mdc-radio-button.mat-accent{--mdc-radio-disabled-selected-icon-color:#000;--mdc-radio-disabled-unselected-icon-color:#000;--mdc-radio-unselected-focus-icon-color:#212121;--mdc-radio-unselected-hover-icon-color:#212121;--mdc-radio-unselected-icon-color:rgba(0, 0, 0, 0.54);--mdc-radio-unselected-pressed-icon-color:rgba(0, 0, 0, 0.54);--mdc-radio-selected-focus-icon-color:#ff4081;--mdc-radio-selected-hover-icon-color:#ff4081;--mdc-radio-selected-icon-color:#ff4081;--mdc-radio-selected-pressed-icon-color:#ff4081;--mat-mdc-radio-ripple-color: #000;--mat-mdc-radio-checked-ripple-color: #ff4081}.mat-mdc-radio-button.mat-accent .mdc-radio--disabled+label{color:rgba(0,0,0,.38)}.mat-mdc-radio-button.mat-warn{--mdc-radio-disabled-selected-icon-color:#000;--mdc-radio-disabled-unselected-icon-color:#000;--mdc-radio-unselected-focus-icon-color:#212121;--mdc-radio-unselected-hover-icon-color:#212121;--mdc-radio-unselected-icon-color:rgba(0, 0, 0, 0.54);--mdc-radio-unselected-pressed-icon-color:rgba(0, 0, 0, 0.54);--mdc-radio-selected-focus-icon-color:#f44336;--mdc-radio-selected-hover-icon-color:#f44336;--mdc-radio-selected-icon-color:#f44336;--mdc-radio-selected-pressed-icon-color:#f44336;--mat-mdc-radio-ripple-color: #000;--mat-mdc-radio-checked-ripple-color: #f44336}.mat-mdc-radio-button.mat-warn .mdc-radio--disabled+label{color:rgba(0,0,0,.38)}.mat-mdc-radio-button .mdc-radio{padding:calc((40px - 20px) / 2)}.mat-mdc-radio-button .mdc-radio .mdc-radio__background::before{top:calc(-1 * (40px - 20px) / 2);left:calc(-1 * (40px - 20px) / 2);width:40px;height:40px}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control{top:calc((40px - 40px) / 2);right:calc((40px - 40px) / 2);left:calc((40px - 40px) / 2);width:40px;height:40px}.mdc-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:var(--mdc-typography-body2-font-size, 14px);line-height:var(--mdc-typography-body2-line-height, 20px);font-weight:var(--mdc-typography-body2-font-weight, 400);letter-spacing:var(--mdc-typography-body2-letter-spacing, 0.0178571429em);text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-transform:var(--mdc-typography-body2-text-transform, none)}.mat-mdc-slider{--mdc-slider-label-container-color:black;--mdc-slider-label-label-text-color:white;--mdc-slider-disabled-handle-color:#000;--mdc-slider-disabled-active-track-color:#000;--mdc-slider-disabled-inactive-track-color:#000;--mdc-slider-with-tick-marks-disabled-container-color:#000;--mat-mdc-slider-value-indicator-opacity: 0.6}.mat-mdc-slider.mat-primary{--mdc-slider-handle-color:#3f51b5;--mdc-slider-focus-handle-color:#3f51b5;--mdc-slider-hover-handle-color:#3f51b5;--mdc-slider-active-track-color:#3f51b5;--mdc-slider-inactive-track-color:#3f51b5;--mdc-slider-with-tick-marks-active-container-color:#fff;--mdc-slider-with-tick-marks-inactive-container-color:#3f51b5;--mat-mdc-slider-ripple-color: #3f51b5;--mat-mdc-slider-hover-ripple-color: rgba(63, 81, 181, 0.05);--mat-mdc-slider-focus-ripple-color: rgba(63, 81, 181, 0.2)}.mat-mdc-slider.mat-accent{--mdc-slider-handle-color:#ff4081;--mdc-slider-focus-handle-color:#ff4081;--mdc-slider-hover-handle-color:#ff4081;--mdc-slider-active-track-color:#ff4081;--mdc-slider-inactive-track-color:#ff4081;--mdc-slider-with-tick-marks-active-container-color:#fff;--mdc-slider-with-tick-marks-inactive-container-color:#ff4081;--mat-mdc-slider-ripple-color: #ff4081;--mat-mdc-slider-hover-ripple-color: rgba(255, 64, 129, 0.05);--mat-mdc-slider-focus-ripple-color: rgba(255, 64, 129, 0.2)}.mat-mdc-slider.mat-warn{--mdc-slider-handle-color:#f44336;--mdc-slider-focus-handle-color:#f44336;--mdc-slider-hover-handle-color:#f44336;--mdc-slider-active-track-color:#f44336;--mdc-slider-inactive-track-color:#f44336;--mdc-slider-with-tick-marks-active-container-color:#fff;--mdc-slider-with-tick-marks-inactive-container-color:#f44336;--mat-mdc-slider-ripple-color: #f44336;--mat-mdc-slider-hover-ripple-color: rgba(244, 67, 54, 0.05);--mat-mdc-slider-focus-ripple-color: rgba(244, 67, 54, 0.2)}.mat-mdc-slider{--mdc-slider-label-label-text-font:Roboto, sans-serif;--mdc-slider-label-label-text-size:14px;--mdc-slider-label-label-text-line-height:22px;--mdc-slider-label-label-text-tracking:0.0071428571em;--mdc-slider-label-label-text-weight:500}.mdc-menu-surface{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);background-color:var(--mdc-theme-surface, #fff);color:var(--mdc-theme-on-surface, #000)}.mdc-list-item__primary-text{color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87))}.mdc-list-item__secondary-text{color:var(--mdc-theme-text-secondary-on-background, rgba(0, 0, 0, 0.54))}.mdc-list-item__overline-text{color:var(--mdc-theme-text-hint-on-background, rgba(0, 0, 0, 0.38))}.mdc-list-item--with-leading-icon .mdc-list-item__start,.mdc-list-item--with-trailing-icon .mdc-list-item__end{background-color:transparent}.mdc-list-item--with-leading-icon .mdc-list-item__start,.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mdc-theme-text-icon-on-background, rgba(0, 0, 0, 0.38))}.mdc-list-item__end{color:var(--mdc-theme-text-hint-on-background, rgba(0, 0, 0, 0.38))}.mdc-list-item--disabled .mdc-list-item__start,.mdc-list-item--disabled .mdc-list-item__content,.mdc-list-item--disabled .mdc-list-item__end{opacity:0.38}.mdc-list-item--disabled .mdc-list-item__primary-text{color:var(--mdc-theme-on-surface, #000)}.mdc-list-item--disabled .mdc-list-item__secondary-text{color:var(--mdc-theme-on-surface, #000)}.mdc-list-item--disabled .mdc-list-item__overline-text{color:var(--mdc-theme-on-surface, #000)}.mdc-list-item--disabled.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mdc-theme-on-surface, #000)}.mdc-list-item--disabled.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mdc-theme-on-surface, #000)}.mdc-list-item--disabled.mdc-list-item--with-trailing-meta .mdc-list-item__end{color:var(--mdc-theme-on-surface, #000)}.mdc-list-item--selected .mdc-list-item__primary-text,.mdc-list-item--activated .mdc-list-item__primary-text{color:var(--mdc-theme-primary, #3f51b5)}.mdc-list-item--selected.mdc-list-item--with-leading-icon .mdc-list-item__start,.mdc-list-item--activated.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mdc-theme-primary, #3f51b5)}.mdc-deprecated-list-group__subheader{color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87))}.mdc-list-divider::after{border-bottom-color:white}.mdc-list-divider{background-color:rgba(0, 0, 0, 0.12)}.mat-mdc-menu-item[disabled],.mat-mdc-menu-item[disabled] .mat-mdc-menu-submenu-icon,.mat-mdc-menu-item[disabled] .mat-icon-no-color{color:var(--mdc-theme-text-disabled-on-background, rgba(0, 0, 0, 0.38))}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-submenu-icon{color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87))}.mat-mdc-menu-item:hover:not([disabled]),.mat-mdc-menu-item.cdk-program-focused:not([disabled]),.mat-mdc-menu-item.cdk-keyboard-focused:not([disabled]),.mat-mdc-menu-item-highlighted:not([disabled]){background:rgba(0,0,0,.04)}.mat-mdc-menu-content{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:var(--mdc-typography-subtitle1-font-size, 16px);line-height:var(--mdc-typography-subtitle1-line-height, 28px);font-weight:var(--mdc-typography-subtitle1-font-weight, 400);letter-spacing:var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-transform:var(--mdc-typography-subtitle1-text-transform, none);line-height:24px}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mdc-list-item__primary-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-body1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:var(--mdc-typography-body1-font-size, 16px);line-height:var(--mdc-typography-body1-line-height, 24px);font-weight:var(--mdc-typography-body1-font-weight, 400);letter-spacing:var(--mdc-typography-body1-letter-spacing, 0.03125em);text-decoration:var(--mdc-typography-body1-text-decoration, inherit);text-transform:var(--mdc-typography-body1-text-transform, none)}.mat-mdc-list-item-interactive::before{background:#000}.mat-mdc-list-item-interactive:not(:focus):not(.mdc-list-item--disabled):hover::before{opacity:.04}.mat-mdc-list-item-interactive:focus::before{opacity:.12}.mat-mdc-list-item-interactive.mdc-list-item--selected::before{background:#3f51b5;opacity:.08}.mat-mdc-list-item-interactive.mdc-list-item--selected:not(:focus):not(.mdc-list-item--disabled):hover::before{opacity:.12}.mdc-list-item__primary-text{color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87))}.mdc-list-item__secondary-text{color:var(--mdc-theme-text-secondary-on-background, rgba(0, 0, 0, 0.54))}.mdc-list-item__overline-text{color:var(--mdc-theme-text-hint-on-background, rgba(0, 0, 0, 0.38))}.mdc-list-item--with-leading-icon .mdc-list-item__start,.mdc-list-item--with-trailing-icon .mdc-list-item__end{background-color:transparent}.mdc-list-item--with-leading-icon .mdc-list-item__start,.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mdc-theme-text-icon-on-background, rgba(0, 0, 0, 0.38))}.mdc-list-item__end{color:var(--mdc-theme-text-hint-on-background, rgba(0, 0, 0, 0.38))}.mdc-list-item--disabled .mdc-list-item__start,.mdc-list-item--disabled .mdc-list-item__content,.mdc-list-item--disabled .mdc-list-item__end{opacity:0.38}.mdc-list-item--disabled .mdc-list-item__primary-text{color:var(--mdc-theme-on-surface, #000)}.mdc-list-item--disabled .mdc-list-item__secondary-text{color:var(--mdc-theme-on-surface, #000)}.mdc-list-item--disabled .mdc-list-item__overline-text{color:var(--mdc-theme-on-surface, #000)}.mdc-list-item--disabled.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mdc-theme-on-surface, #000)}.mdc-list-item--disabled.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mdc-theme-on-surface, #000)}.mdc-list-item--disabled.mdc-list-item--with-trailing-meta .mdc-list-item__end{color:var(--mdc-theme-on-surface, #000)}.mdc-list-item--selected .mdc-list-item__primary-text,.mdc-list-item--activated .mdc-list-item__primary-text{color:var(--mdc-theme-primary, #3f51b5)}.mdc-list-item--selected.mdc-list-item--with-leading-icon .mdc-list-item__start,.mdc-list-item--activated.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mdc-theme-primary, #3f51b5)}.mdc-deprecated-list-group__subheader{color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87))}.mdc-list-divider::after{border-bottom-color:white}.mdc-list-divider{background-color:rgba(0, 0, 0, 0.12)}.mat-mdc-list-option .mdc-list-item__start,.mat-mdc-list-option .mdc-list-item__end{--mdc-checkbox-selected-checkmark-color:#fff;--mdc-checkbox-selected-focus-icon-color:#3f51b5;--mdc-checkbox-selected-hover-icon-color:#3f51b5;--mdc-checkbox-selected-icon-color:#3f51b5;--mdc-checkbox-selected-pressed-icon-color:#3f51b5;--mdc-checkbox-unselected-focus-icon-color:#212121;--mdc-checkbox-unselected-hover-icon-color:#212121;--mdc-checkbox-disabled-selected-icon-color:rgba(0, 0, 0, 0.38);--mdc-checkbox-disabled-unselected-icon-color:rgba(0, 0, 0, 0.38);--mdc-checkbox-unselected-icon-color:rgba(0, 0, 0, 0.54);--mdc-checkbox-unselected-pressed-icon-color:rgba(0, 0, 0, 0.54)}.mat-mdc-list-option .mdc-list-item__start,.mat-mdc-list-option .mdc-list-item__end{--mdc-radio-disabled-selected-icon-color:#000;--mdc-radio-disabled-unselected-icon-color:#000;--mdc-radio-unselected-focus-icon-color:#212121;--mdc-radio-unselected-hover-icon-color:#212121;--mdc-radio-unselected-icon-color:rgba(0, 0, 0, 0.54);--mdc-radio-unselected-pressed-icon-color:rgba(0, 0, 0, 0.54);--mdc-radio-selected-focus-icon-color:#3f51b5;--mdc-radio-selected-hover-icon-color:#3f51b5;--mdc-radio-selected-icon-color:#3f51b5;--mdc-radio-selected-pressed-icon-color:#3f51b5;--mat-mdc-radio-ripple-color: #000;--mat-mdc-radio-checked-ripple-color: #3f51b5}.mat-mdc-list-option .mdc-list-item__start .mdc-radio--disabled+label,.mat-mdc-list-option .mdc-list-item__end .mdc-radio--disabled+label{color:rgba(0,0,0,.38)}.mat-mdc-list-option.mat-accent .mdc-list-item__start,.mat-mdc-list-option.mat-accent .mdc-list-item__end{--mdc-checkbox-selected-checkmark-color:#fff;--mdc-checkbox-selected-focus-icon-color:#ff4081;--mdc-checkbox-selected-hover-icon-color:#ff4081;--mdc-checkbox-selected-icon-color:#ff4081;--mdc-checkbox-selected-pressed-icon-color:#ff4081;--mdc-checkbox-unselected-focus-icon-color:#212121;--mdc-checkbox-unselected-hover-icon-color:#212121;--mdc-checkbox-disabled-selected-icon-color:rgba(0, 0, 0, 0.38);--mdc-checkbox-disabled-unselected-icon-color:rgba(0, 0, 0, 0.38);--mdc-checkbox-unselected-icon-color:rgba(0, 0, 0, 0.54);--mdc-checkbox-unselected-pressed-icon-color:rgba(0, 0, 0, 0.54)}.mat-mdc-list-option.mat-accent .mdc-list-item__start,.mat-mdc-list-option.mat-accent .mdc-list-item__end{--mdc-radio-disabled-selected-icon-color:#000;--mdc-radio-disabled-unselected-icon-color:#000;--mdc-radio-unselected-focus-icon-color:#212121;--mdc-radio-unselected-hover-icon-color:#212121;--mdc-radio-unselected-icon-color:rgba(0, 0, 0, 0.54);--mdc-radio-unselected-pressed-icon-color:rgba(0, 0, 0, 0.54);--mdc-radio-selected-focus-icon-color:#ff4081;--mdc-radio-selected-hover-icon-color:#ff4081;--mdc-radio-selected-icon-color:#ff4081;--mdc-radio-selected-pressed-icon-color:#ff4081;--mat-mdc-radio-ripple-color: #000;--mat-mdc-radio-checked-ripple-color: #ff4081}.mat-mdc-list-option.mat-accent .mdc-list-item__start .mdc-radio--disabled+label,.mat-mdc-list-option.mat-accent .mdc-list-item__end .mdc-radio--disabled+label{color:rgba(0,0,0,.38)}.mat-mdc-list-option.mat-warn .mdc-list-item__start,.mat-mdc-list-option.mat-warn .mdc-list-item__end{--mdc-checkbox-selected-checkmark-color:#fff;--mdc-checkbox-selected-focus-icon-color:#f44336;--mdc-checkbox-selected-hover-icon-color:#f44336;--mdc-checkbox-selected-icon-color:#f44336;--mdc-checkbox-selected-pressed-icon-color:#f44336;--mdc-checkbox-unselected-focus-icon-color:#212121;--mdc-checkbox-unselected-hover-icon-color:#212121;--mdc-checkbox-disabled-selected-icon-color:rgba(0, 0, 0, 0.38);--mdc-checkbox-disabled-unselected-icon-color:rgba(0, 0, 0, 0.38);--mdc-checkbox-unselected-icon-color:rgba(0, 0, 0, 0.54);--mdc-checkbox-unselected-pressed-icon-color:rgba(0, 0, 0, 0.54)}.mat-mdc-list-option.mat-warn .mdc-list-item__start,.mat-mdc-list-option.mat-warn .mdc-list-item__end{--mdc-radio-disabled-selected-icon-color:#000;--mdc-radio-disabled-unselected-icon-color:#000;--mdc-radio-unselected-focus-icon-color:#212121;--mdc-radio-unselected-hover-icon-color:#212121;--mdc-radio-unselected-icon-color:rgba(0, 0, 0, 0.54);--mdc-radio-unselected-pressed-icon-color:rgba(0, 0, 0, 0.54);--mdc-radio-selected-focus-icon-color:#f44336;--mdc-radio-selected-hover-icon-color:#f44336;--mdc-radio-selected-icon-color:#f44336;--mdc-radio-selected-pressed-icon-color:#f44336;--mat-mdc-radio-ripple-color: #000;--mat-mdc-radio-checked-ripple-color: #f44336}.mat-mdc-list-option.mat-warn .mdc-list-item__start .mdc-radio--disabled+label,.mat-mdc-list-option.mat-warn .mdc-list-item__end .mdc-radio--disabled+label{color:rgba(0,0,0,.38)}.mat-mdc-list-item.mdc-list-item--with-one-line{height:48px}.mat-mdc-list-item.mdc-list-item--with-leading-avatar.mdc-list-item--with-one-line,.mat-mdc-list-item.mdc-list-item--with-leading-icon.mdc-list-item--with-one-line,.mat-mdc-list-item.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-one-line,.mat-mdc-list-item.mdc-list-item--with-leading-checkbox.mdc-list-item--with-one-line,.mat-mdc-list-item.mdc-list-item--with-leading-radio.mdc-list-item--with-one-line,.mat-mdc-list-item.mdc-list-item--with-leading-switch.mdc-list-item--with-one-line{height:56px}.mat-mdc-list-item.mdc-list-item--with-leading-image.mdc-list-item--with-one-line,.mat-mdc-list-item.mdc-list-item--with-leading-video.mdc-list-item--with-one-line{height:72px}.mat-mdc-list-item.mdc-list-item--with-two-lines{height:64px}.mat-mdc-list-item.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines,.mat-mdc-list-item.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines,.mat-mdc-list-item.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines,.mat-mdc-list-item.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines,.mat-mdc-list-item.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines,.mat-mdc-list-item.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines,.mat-mdc-list-item.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines,.mat-mdc-list-item.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines{height:72px}.mat-mdc-list-item.mdc-list-item--with-three-lines{height:88px}.mat-mdc-list-option-with-trailing-avatar.mdc-list-item--with-one-line{height:56px}.mat-mdc-list-option-with-trailing-avatar.mdc-list-item--with-two-lines{height:72px}.mdc-list{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:var(--mdc-typography-subtitle1-font-size, 16px);line-height:var(--mdc-typography-subtitle1-line-height, 28px);font-weight:var(--mdc-typography-subtitle1-font-weight, 400);letter-spacing:var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-transform:var(--mdc-typography-subtitle1-text-transform, none);line-height:24px}.mdc-list-item__primary-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:var(--mdc-typography-subtitle1-font-size, 16px);line-height:var(--mdc-typography-subtitle1-line-height, 28px);font-weight:var(--mdc-typography-subtitle1-font-weight, 400);letter-spacing:var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-transform:var(--mdc-typography-subtitle1-text-transform, none)}.mdc-list-item__secondary-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:var(--mdc-typography-body2-font-size, 14px);line-height:var(--mdc-typography-body2-line-height, 20px);font-weight:var(--mdc-typography-body2-font-weight, 400);letter-spacing:var(--mdc-typography-body2-letter-spacing, 0.0178571429em);text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-transform:var(--mdc-typography-body2-text-transform, none)}.mdc-list-item__overline-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-overline-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:var(--mdc-typography-overline-font-size, 12px);line-height:var(--mdc-typography-overline-line-height, 32px);font-weight:var(--mdc-typography-overline-font-weight, 500);letter-spacing:var(--mdc-typography-overline-letter-spacing, 0.1666666667em);text-decoration:var(--mdc-typography-overline-text-decoration, none);text-transform:var(--mdc-typography-overline-text-transform, none)}.mdc-list-item--with-trailing-meta .mdc-list-item__end{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-caption-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:var(--mdc-typography-caption-font-size, 12px);line-height:var(--mdc-typography-caption-line-height, 20px);font-weight:var(--mdc-typography-caption-font-weight, 400);letter-spacing:var(--mdc-typography-caption-letter-spacing, 0.0333333333em);text-decoration:var(--mdc-typography-caption-text-decoration, inherit);text-transform:var(--mdc-typography-caption-text-transform, none)}.mdc-list-group__subheader{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:var(--mdc-typography-subtitle1-font-size, 16px);line-height:var(--mdc-typography-subtitle1-line-height, 28px);font-weight:var(--mdc-typography-subtitle1-font-weight, 400);letter-spacing:var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-transform:var(--mdc-typography-subtitle1-text-transform, none)}.mdc-list-item--with-trailing-meta .mdc-list-item__end{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-caption-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:var(--mdc-typography-caption-font-size, 12px);line-height:var(--mdc-typography-caption-line-height, 20px);font-weight:var(--mdc-typography-caption-font-weight, 400);letter-spacing:var(--mdc-typography-caption-letter-spacing, 0.0333333333em);text-decoration:var(--mdc-typography-caption-text-decoration, inherit);text-transform:var(--mdc-typography-caption-text-transform, none)}@media all and (-ms-high-contrast: none){.mat-mdc-list-option .mdc-list-item__start .mdc-checkbox .mdc-checkbox__focus-ring,.mat-mdc-list-option .mdc-list-item__end .mdc-checkbox .mdc-checkbox__focus-ring{display:none}}.mat-mdc-list-item .mdc-list-item__primary-text{font:400 16px/24px Roboto, sans-serif;letter-spacing:.03125em}.mat-mdc-paginator{background:#fff;color:rgba(0,0,0,.87)}.mat-mdc-paginator-icon{fill:rgba(0,0,0,.54)}.mat-mdc-paginator-decrement,.mat-mdc-paginator-increment{border-top:2px solid rgba(0,0,0,.54);border-right:2px solid rgba(0,0,0,.54)}.mat-mdc-paginator-first,.mat-mdc-paginator-last{border-top:2px solid rgba(0,0,0,.54)}.mat-mdc-icon-button[disabled] .mat-mdc-paginator-decrement,.mat-mdc-icon-button[disabled] .mat-mdc-paginator-increment,.mat-mdc-icon-button[disabled] .mat-mdc-paginator-first,.mat-mdc-icon-button[disabled] .mat-mdc-paginator-last{border-color:rgba(0,0,0,.12)}.mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon{fill:rgba(0,0,0,.12)}.mat-mdc-paginator .mat-mdc-form-field-infix{min-height:40px}.mat-mdc-paginator .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:20px}.mat-mdc-paginator .mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{--mat-mdc-form-field-label-transform: translateY( -26.75px) scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));transform:var(--mat-mdc-form-field-label-transform)}.mat-mdc-paginator .mat-mdc-text-field-wrapper.mdc-text-field--outlined .mat-mdc-form-field-infix{padding-top:8px;padding-bottom:8px}.mat-mdc-paginator .mat-mdc-text-field-wrapper:not(.mdc-text-field--outlined) .mat-mdc-form-field-infix{padding-top:8px;padding-bottom:8px}.mat-mdc-paginator .mdc-text-field--no-label:not(.mdc-text-field--outlined):not(.mdc-text-field--textarea) .mat-mdc-form-field-infix{padding-top:8px;padding-bottom:8px}.mat-mdc-paginator .mat-mdc-text-field-wrapper:not(.mdc-text-field--outlined) .mat-mdc-floating-label{display:none}.mat-mdc-paginator-container{min-height:56px}.mat-mdc-paginator{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-caption-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:var(--mdc-typography-caption-font-size, 12px);line-height:var(--mdc-typography-caption-line-height, 20px);font-weight:var(--mdc-typography-caption-font-weight, 400);letter-spacing:var(--mdc-typography-caption-letter-spacing, 0.0333333333em);text-decoration:var(--mdc-typography-caption-text-decoration, inherit);text-transform:var(--mdc-typography-caption-text-transform, none)}.mat-mdc-paginator .mat-mdc-select-value{font-size:12px}.mat-mdc-tab,.mat-mdc-tab-link{background-color:rgba(0,0,0,0)}.mat-mdc-tab .mdc-tab__text-label,.mat-mdc-tab-link .mdc-tab__text-label{color:rgba(0, 0, 0, 0.6)}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab.mat-mdc-tab-disabled .mat-ripple-element,.mat-mdc-tab-link.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab-link.mat-mdc-tab-disabled .mat-ripple-element{background-color:rgba(0,0,0,.38)}.mat-mdc-tab:not(.mat-mdc-tab-disabled).mdc-tab--active .mdc-tab__text-label,.mat-mdc-tab-link:not(.mat-mdc-tab-disabled).mdc-tab--active .mdc-tab__text-label{color:#3f51b5}.mat-mdc-tab:not(.mat-mdc-tab-disabled) .mdc-tab-indicator__content--underline,.mat-mdc-tab-link:not(.mat-mdc-tab-disabled) .mdc-tab-indicator__content--underline{border-color:var(--mdc-tab-indicator-active-indicator-color, #3f51b5)}.mdc-tab__ripple::before,.mat-mdc-tab .mat-ripple-element,.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-link .mat-ripple-element{background-color:#3f51b5}.mat-mdc-tab-group.mat-accent .mat-mdc-tab:not(.mat-mdc-tab-disabled).mdc-tab--active .mdc-tab__text-label,.mat-mdc-tab-group.mat-accent .mat-mdc-tab-link:not(.mat-mdc-tab-disabled).mdc-tab--active .mdc-tab__text-label,.mat-mdc-tab-nav-bar.mat-accent .mat-mdc-tab:not(.mat-mdc-tab-disabled).mdc-tab--active .mdc-tab__text-label,.mat-mdc-tab-nav-bar.mat-accent .mat-mdc-tab-link:not(.mat-mdc-tab-disabled).mdc-tab--active .mdc-tab__text-label{color:#ff4081}.mat-mdc-tab-group.mat-accent .mat-mdc-tab:not(.mat-mdc-tab-disabled) .mdc-tab-indicator__content--underline,.mat-mdc-tab-group.mat-accent .mat-mdc-tab-link:not(.mat-mdc-tab-disabled) .mdc-tab-indicator__content--underline,.mat-mdc-tab-nav-bar.mat-accent .mat-mdc-tab:not(.mat-mdc-tab-disabled) .mdc-tab-indicator__content--underline,.mat-mdc-tab-nav-bar.mat-accent .mat-mdc-tab-link:not(.mat-mdc-tab-disabled) .mdc-tab-indicator__content--underline{border-color:var(--mdc-tab-indicator-active-indicator-color, #ff4081)}.mat-mdc-tab-group.mat-accent .mdc-tab__ripple::before,.mat-mdc-tab-group.mat-accent .mat-mdc-tab .mat-ripple-element,.mat-mdc-tab-group.mat-accent .mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-group.mat-accent .mat-mdc-tab-link .mat-ripple-element,.mat-mdc-tab-nav-bar.mat-accent .mdc-tab__ripple::before,.mat-mdc-tab-nav-bar.mat-accent .mat-mdc-tab .mat-ripple-element,.mat-mdc-tab-nav-bar.mat-accent .mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-nav-bar.mat-accent .mat-mdc-tab-link .mat-ripple-element{background-color:#ff4081}.mat-mdc-tab-group.mat-warn .mat-mdc-tab:not(.mat-mdc-tab-disabled).mdc-tab--active .mdc-tab__text-label,.mat-mdc-tab-group.mat-warn .mat-mdc-tab-link:not(.mat-mdc-tab-disabled).mdc-tab--active .mdc-tab__text-label,.mat-mdc-tab-nav-bar.mat-warn .mat-mdc-tab:not(.mat-mdc-tab-disabled).mdc-tab--active .mdc-tab__text-label,.mat-mdc-tab-nav-bar.mat-warn .mat-mdc-tab-link:not(.mat-mdc-tab-disabled).mdc-tab--active .mdc-tab__text-label{color:#f44336}.mat-mdc-tab-group.mat-warn .mat-mdc-tab:not(.mat-mdc-tab-disabled) .mdc-tab-indicator__content--underline,.mat-mdc-tab-group.mat-warn .mat-mdc-tab-link:not(.mat-mdc-tab-disabled) .mdc-tab-indicator__content--underline,.mat-mdc-tab-nav-bar.mat-warn .mat-mdc-tab:not(.mat-mdc-tab-disabled) .mdc-tab-indicator__content--underline,.mat-mdc-tab-nav-bar.mat-warn .mat-mdc-tab-link:not(.mat-mdc-tab-disabled) .mdc-tab-indicator__content--underline{border-color:var(--mdc-tab-indicator-active-indicator-color, #f44336)}.mat-mdc-tab-group.mat-warn .mdc-tab__ripple::before,.mat-mdc-tab-group.mat-warn .mat-mdc-tab .mat-ripple-element,.mat-mdc-tab-group.mat-warn .mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-group.mat-warn .mat-mdc-tab-link .mat-ripple-element,.mat-mdc-tab-nav-bar.mat-warn .mdc-tab__ripple::before,.mat-mdc-tab-nav-bar.mat-warn .mat-mdc-tab .mat-ripple-element,.mat-mdc-tab-nav-bar.mat-warn .mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-nav-bar.mat-warn .mat-mdc-tab-link .mat-ripple-element{background-color:#f44336}.mat-mdc-tab-group.mat-background-primary,.mat-mdc-tab-nav-bar.mat-background-primary{--mat-mdc-tab-header-with-background-background-color: #3f51b5;--mat-mdc-tab-header-with-background-foreground-color: #fff}.mat-mdc-tab-group.mat-background-accent,.mat-mdc-tab-nav-bar.mat-background-accent{--mat-mdc-tab-header-with-background-background-color: #ff4081;--mat-mdc-tab-header-with-background-foreground-color: #fff}.mat-mdc-tab-group.mat-background-warn,.mat-mdc-tab-nav-bar.mat-background-warn{--mat-mdc-tab-header-with-background-background-color: #f44336;--mat-mdc-tab-header-with-background-foreground-color: #fff}.mat-mdc-tab-header-pagination-chevron{border-color:var(--mdc-theme-on-surface, #000)}.mat-mdc-tab-header .mdc-tab{height:48px}.mdc-tab{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-button-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:var(--mdc-typography-button-font-size, 14px);line-height:var(--mdc-typography-button-line-height, 36px);font-weight:var(--mdc-typography-button-font-weight, 500);letter-spacing:var(--mdc-typography-button-letter-spacing, 0.0892857143em);text-decoration:var(--mdc-typography-button-text-decoration, none);text-transform:var(--mdc-typography-button-text-transform, none)}.mat-mdc-checkbox .mdc-form-field{color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87))}.mat-mdc-checkbox .mat-ripple-element{background-color:rgba(0,0,0,.1)}.mat-mdc-checkbox .mdc-checkbox__ripple{background:#000}.mat-mdc-checkbox.mat-primary{--mdc-checkbox-selected-checkmark-color:#fff;--mdc-checkbox-selected-focus-icon-color:#3f51b5;--mdc-checkbox-selected-hover-icon-color:#3f51b5;--mdc-checkbox-selected-icon-color:#3f51b5;--mdc-checkbox-selected-pressed-icon-color:#3f51b5;--mdc-checkbox-unselected-focus-icon-color:#212121;--mdc-checkbox-unselected-hover-icon-color:#212121;--mdc-checkbox-disabled-selected-icon-color:rgba(0, 0, 0, 0.38);--mdc-checkbox-disabled-unselected-icon-color:rgba(0, 0, 0, 0.38);--mdc-checkbox-unselected-icon-color:rgba(0, 0, 0, 0.54);--mdc-checkbox-unselected-pressed-icon-color:rgba(0, 0, 0, 0.54)}.mat-mdc-checkbox.mat-primary .mdc-checkbox--selected~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:rgba(63,81,181,.1)}.mat-mdc-checkbox.mat-primary .mdc-checkbox--selected~.mdc-checkbox__ripple{background:#3f51b5}.mat-mdc-checkbox.mat-accent{--mdc-checkbox-selected-checkmark-color:#fff;--mdc-checkbox-selected-focus-icon-color:#ff4081;--mdc-checkbox-selected-hover-icon-color:#ff4081;--mdc-checkbox-selected-icon-color:#ff4081;--mdc-checkbox-selected-pressed-icon-color:#ff4081;--mdc-checkbox-unselected-focus-icon-color:#212121;--mdc-checkbox-unselected-hover-icon-color:#212121;--mdc-checkbox-disabled-selected-icon-color:rgba(0, 0, 0, 0.38);--mdc-checkbox-disabled-unselected-icon-color:rgba(0, 0, 0, 0.38);--mdc-checkbox-unselected-icon-color:rgba(0, 0, 0, 0.54);--mdc-checkbox-unselected-pressed-icon-color:rgba(0, 0, 0, 0.54)}.mat-mdc-checkbox.mat-accent .mdc-checkbox--selected~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:rgba(255,64,129,.1)}.mat-mdc-checkbox.mat-accent .mdc-checkbox--selected~.mdc-checkbox__ripple{background:#ff4081}.mat-mdc-checkbox.mat-warn{--mdc-checkbox-selected-checkmark-color:#fff;--mdc-checkbox-selected-focus-icon-color:#f44336;--mdc-checkbox-selected-hover-icon-color:#f44336;--mdc-checkbox-selected-icon-color:#f44336;--mdc-checkbox-selected-pressed-icon-color:#f44336;--mdc-checkbox-unselected-focus-icon-color:#212121;--mdc-checkbox-unselected-hover-icon-color:#212121;--mdc-checkbox-disabled-selected-icon-color:rgba(0, 0, 0, 0.38);--mdc-checkbox-disabled-unselected-icon-color:rgba(0, 0, 0, 0.38);--mdc-checkbox-unselected-icon-color:rgba(0, 0, 0, 0.54);--mdc-checkbox-unselected-pressed-icon-color:rgba(0, 0, 0, 0.54)}.mat-mdc-checkbox.mat-warn .mdc-checkbox--selected~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:rgba(244,67,54,.1)}.mat-mdc-checkbox.mat-warn .mdc-checkbox--selected~.mdc-checkbox__ripple{background:#f44336}.mat-mdc-checkbox-disabled label{color:rgba(0,0,0,.38)}.mat-mdc-checkbox .mdc-checkbox{padding:calc((var(--mdc-checkbox-ripple-size, 40px) - 18px) / 2);margin:calc((var(--mdc-checkbox-touch-target-size, 40px) - 40px) / 2)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__background{top:calc((var(--mdc-checkbox-ripple-size, 40px) - 18px) / 2);left:calc((var(--mdc-checkbox-ripple-size, 40px) - 18px) / 2)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control{top:calc((40px - var(--mdc-checkbox-touch-target-size, 40px)) / 2);right:calc((40px - var(--mdc-checkbox-touch-target-size, 40px)) / 2);left:calc((40px - var(--mdc-checkbox-touch-target-size, 40px)) / 2);width:var(--mdc-checkbox-touch-target-size, 40px);height:var(--mdc-checkbox-touch-target-size, 40px)}@media all and (-ms-high-contrast: none){.mdc-checkbox .mdc-checkbox__focus-ring{display:none}}.mdc-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:var(--mdc-typography-body2-font-size, 14px);line-height:var(--mdc-typography-body2-line-height, 20px);font-weight:var(--mdc-typography-body2-font-weight, 400);letter-spacing:var(--mdc-typography-body2-letter-spacing, 0.0178571429em);text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-transform:var(--mdc-typography-body2-text-transform, none)}.mat-mdc-button.mat-unthemed{--mdc-text-button-label-text-color:#000}.mat-mdc-button.mat-primary{--mdc-text-button-label-text-color:#3f51b5}.mat-mdc-button.mat-accent{--mdc-text-button-label-text-color:#ff4081}.mat-mdc-button.mat-warn{--mdc-text-button-label-text-color:#f44336}.mat-mdc-button[disabled][disabled]{--mdc-text-button-disabled-label-text-color:rgba(0, 0, 0, 0.38);--mdc-text-button-label-text-color:rgba(0, 0, 0, 0.38)}.mat-mdc-unelevated-button.mat-unthemed{--mdc-filled-button-container-color:#fff;--mdc-filled-button-label-text-color:#000}.mat-mdc-unelevated-button.mat-primary{--mdc-filled-button-container-color:#3f51b5;--mdc-filled-button-label-text-color:#fff}.mat-mdc-unelevated-button.mat-accent{--mdc-filled-button-container-color:#ff4081;--mdc-filled-button-label-text-color:#fff}.mat-mdc-unelevated-button.mat-warn{--mdc-filled-button-container-color:#f44336;--mdc-filled-button-label-text-color:#fff}.mat-mdc-unelevated-button[disabled][disabled]{--mdc-filled-button-disabled-container-color:rgba(0, 0, 0, 0.12);--mdc-filled-button-disabled-label-text-color:rgba(0, 0, 0, 0.38);--mdc-filled-button-container-color:rgba(0, 0, 0, 0.12);--mdc-filled-button-label-text-color:rgba(0, 0, 0, 0.38)}.mat-mdc-raised-button.mat-unthemed{--mdc-protected-button-container-color:#fff;--mdc-protected-button-label-text-color:#000}.mat-mdc-raised-button.mat-primary{--mdc-protected-button-container-color:#3f51b5;--mdc-protected-button-label-text-color:#fff}.mat-mdc-raised-button.mat-accent{--mdc-protected-button-container-color:#ff4081;--mdc-protected-button-label-text-color:#fff}.mat-mdc-raised-button.mat-warn{--mdc-protected-button-container-color:#f44336;--mdc-protected-button-label-text-color:#fff}.mat-mdc-raised-button[disabled][disabled]{--mdc-protected-button-disabled-container-color:rgba(0, 0, 0, 0.12);--mdc-protected-button-disabled-label-text-color:rgba(0, 0, 0, 0.38);--mdc-protected-button-container-color:rgba(0, 0, 0, 0.12);--mdc-protected-button-label-text-color:rgba(0, 0, 0, 0.38);--mdc-protected-button-container-elevation:0}.mat-mdc-outlined-button{--mdc-outlined-button-outline-color:rgba(0, 0, 0, 0.12)}.mat-mdc-outlined-button.mat-unthemed{--mdc-outlined-button-label-text-color:#000}.mat-mdc-outlined-button.mat-primary{--mdc-outlined-button-label-text-color:#3f51b5}.mat-mdc-outlined-button.mat-accent{--mdc-outlined-button-label-text-color:#ff4081}.mat-mdc-outlined-button.mat-warn{--mdc-outlined-button-label-text-color:#f44336}.mat-mdc-outlined-button[disabled][disabled]{--mdc-outlined-button-label-text-color:rgba(0, 0, 0, 0.38);--mdc-outlined-button-disabled-label-text-color:rgba(0, 0, 0, 0.38);--mdc-outlined-button-outline-color:rgba(0, 0, 0, 0.12);--mdc-outlined-button-disabled-outline-color:rgba(0, 0, 0, 0.12)}.mat-mdc-button,.mat-mdc-outlined-button{--mat-mdc-button-persistent-ripple-color: #000;--mat-mdc-button-ripple-color: rgba(0, 0, 0, 0.1)}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:.04}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before{opacity:.12}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:.12}.mat-mdc-button.mat-primary,.mat-mdc-outlined-button.mat-primary{--mat-mdc-button-persistent-ripple-color: #3f51b5;--mat-mdc-button-ripple-color: rgba(63, 81, 181, 0.1)}.mat-mdc-button.mat-accent,.mat-mdc-outlined-button.mat-accent{--mat-mdc-button-persistent-ripple-color: #ff4081;--mat-mdc-button-ripple-color: rgba(255, 64, 129, 0.1)}.mat-mdc-button.mat-warn,.mat-mdc-outlined-button.mat-warn{--mat-mdc-button-persistent-ripple-color: #f44336;--mat-mdc-button-ripple-color: rgba(244, 67, 54, 0.1)}.mat-mdc-raised-button,.mat-mdc-unelevated-button{--mat-mdc-button-persistent-ripple-color: #000;--mat-mdc-button-ripple-color: rgba(0, 0, 0, 0.1)}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:.04}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before{opacity:.12}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:.12}.mat-mdc-raised-button.mat-primary,.mat-mdc-unelevated-button.mat-primary{--mat-mdc-button-persistent-ripple-color: #fff;--mat-mdc-button-ripple-color: rgba(255, 255, 255, 0.1)}.mat-mdc-raised-button.mat-accent,.mat-mdc-unelevated-button.mat-accent{--mat-mdc-button-persistent-ripple-color: #fff;--mat-mdc-button-ripple-color: rgba(255, 255, 255, 0.1)}.mat-mdc-raised-button.mat-warn,.mat-mdc-unelevated-button.mat-warn{--mat-mdc-button-persistent-ripple-color: #fff;--mat-mdc-button-ripple-color: rgba(255, 255, 255, 0.1)}.mat-mdc-button.mat-mdc-button-base,.mat-mdc-raised-button.mat-mdc-button-base,.mat-mdc-unelevated-button.mat-mdc-button-base,.mat-mdc-outlined-button.mat-mdc-button-base{height:36px}.mdc-button{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-button-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:var(--mdc-typography-button-font-size, 14px);line-height:var(--mdc-typography-button-line-height, 36px);font-weight:var(--mdc-typography-button-font-weight, 500);letter-spacing:var(--mdc-typography-button-letter-spacing, 0.0892857143em);text-decoration:var(--mdc-typography-button-text-decoration, none);text-transform:var(--mdc-typography-button-text-transform, none)}.mat-mdc-icon-button{--mat-mdc-button-persistent-ripple-color: #000;--mat-mdc-button-ripple-color: rgba(0, 0, 0, 0.1)}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:.04}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before{opacity:.12}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:.12}.mat-mdc-icon-button.mat-primary{--mat-mdc-button-persistent-ripple-color: #3f51b5;--mat-mdc-button-ripple-color: rgba(63, 81, 181, 0.1)}.mat-mdc-icon-button.mat-accent{--mat-mdc-button-persistent-ripple-color: #ff4081;--mat-mdc-button-ripple-color: rgba(255, 64, 129, 0.1)}.mat-mdc-icon-button.mat-warn{--mat-mdc-button-persistent-ripple-color: #f44336;--mat-mdc-button-ripple-color: rgba(244, 67, 54, 0.1)}.mat-mdc-icon-button.mat-primary{--mdc-icon-button-icon-color:#3f51b5}.mat-mdc-icon-button.mat-accent{--mdc-icon-button-icon-color:#ff4081}.mat-mdc-icon-button.mat-warn{--mdc-icon-button-icon-color:#f44336}.mat-mdc-icon-button[disabled][disabled]{--mdc-icon-button-icon-color:rgba(0, 0, 0, 0.38);--mdc-icon-button-disabled-icon-color:rgba(0, 0, 0, 0.38)}.mat-mdc-icon-button.mat-mdc-button-base{width:48px;height:48px;padding:12px}.mat-mdc-icon-button.mat-mdc-button-base .mdc-icon-button__focus-ring{max-height:48px;max-width:48px}.mat-mdc-icon-button.mat-mdc-button-base.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:40px;height:40px;margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mat-mdc-icon-button.mat-mdc-button-base.mdc-icon-button--reduced-size .mdc-icon-button__focus-ring{max-height:40px;max-width:40px}.mat-mdc-icon-button.mat-mdc-button-base .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-fab,.mat-mdc-mini-fab{--mat-mdc-button-persistent-ripple-color: #000;--mat-mdc-button-ripple-color: rgba(0, 0, 0, 0.1)}.mat-mdc-fab:hover .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab:hover .mat-mdc-button-persistent-ripple::before{opacity:.04}.mat-mdc-fab.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before{opacity:.12}.mat-mdc-fab:active .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab:active .mat-mdc-button-persistent-ripple::before{opacity:.12}.mat-mdc-fab.mat-primary,.mat-mdc-mini-fab.mat-primary{--mat-mdc-button-persistent-ripple-color: #fff;--mat-mdc-button-ripple-color: rgba(255, 255, 255, 0.1)}.mat-mdc-fab.mat-accent,.mat-mdc-mini-fab.mat-accent{--mat-mdc-button-persistent-ripple-color: #fff;--mat-mdc-button-ripple-color: rgba(255, 255, 255, 0.1)}.mat-mdc-fab.mat-warn,.mat-mdc-mini-fab.mat-warn{--mat-mdc-button-persistent-ripple-color: #fff;--mat-mdc-button-ripple-color: rgba(255, 255, 255, 0.1)}.mat-mdc-fab.mat-unthemed,.mat-mdc-mini-fab.mat-unthemed{--mdc-fab-container-color:#fff;--mdc-fab-icon-color:#000;--mat-mdc-fab-color: #000}.mat-mdc-fab.mat-primary,.mat-mdc-mini-fab.mat-primary{--mdc-fab-container-color:#3f51b5;--mdc-fab-icon-color:#fff;--mat-mdc-fab-color: #fff}.mat-mdc-fab.mat-accent,.mat-mdc-mini-fab.mat-accent{--mdc-fab-container-color:#ff4081;--mdc-fab-icon-color:#fff;--mat-mdc-fab-color: #fff}.mat-mdc-fab.mat-warn,.mat-mdc-mini-fab.mat-warn{--mdc-fab-container-color:#f44336;--mdc-fab-icon-color:#fff;--mat-mdc-fab-color: #fff}.mat-mdc-fab[disabled][disabled],.mat-mdc-mini-fab[disabled][disabled]{--mdc-fab-container-color:rgba(0, 0, 0, 0.12);--mdc-fab-icon-color:rgba(0, 0, 0, 0.38);--mat-mdc-fab-color: rgba(0, 0, 0, 0.38)}.mdc-fab--extended{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-button-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:var(--mdc-typography-button-font-size, 14px);line-height:var(--mdc-typography-button-line-height, 36px);font-weight:var(--mdc-typography-button-font-weight, 500);letter-spacing:var(--mdc-typography-button-letter-spacing, 0.0892857143em);text-decoration:var(--mdc-typography-button-text-decoration, none);text-transform:var(--mdc-typography-button-text-transform, none)}.mat-mdc-snack-bar-container{--mat-mdc-snack-bar-button-color: #ff4081;--mdc-snackbar-container-color:#333333;--mdc-snackbar-supporting-text-color:rgba(255, 255, 255, 0.87)}.mat-mdc-snack-bar-container{--mdc-snackbar-supporting-text-font:Roboto, sans-serif;--mdc-snackbar-supporting-text-line-height:20px;--mdc-snackbar-supporting-text-size:14px;--mdc-snackbar-supporting-text-weight:400}.mdc-data-table{background-color:var(--mdc-theme-surface, #fff);border-color:rgba(0, 0, 0, 0.12)}.mdc-data-table__row{background-color:inherit}.mdc-data-table__header-cell{background-color:var(--mdc-theme-surface, #fff)}.mdc-data-table__row--selected{background-color:rgba(63, 81, 181, 0.04)}.mdc-data-table__pagination-rows-per-page-select--outlined:not(.mdc-select--disabled) .mdc-notched-outline__leading,.mdc-data-table__pagination-rows-per-page-select--outlined:not(.mdc-select--disabled) .mdc-notched-outline__notch,.mdc-data-table__pagination-rows-per-page-select--outlined:not(.mdc-select--disabled) .mdc-notched-outline__trailing{border-color:rgba(0, 0, 0, 0.12)}.mdc-data-table__cell,.mdc-data-table__header-cell{border-bottom-color:rgba(0, 0, 0, 0.12)}.mdc-data-table__pagination{border-top-color:rgba(0, 0, 0, 0.12)}.mdc-data-table__row:not(.mdc-data-table__row--selected):hover{background-color:rgba(0, 0, 0, 0.04)}.mdc-data-table__header-cell{color:rgba(0, 0, 0, 0.87)}.mdc-data-table__pagination-total,.mdc-data-table__pagination-rows-per-page-label,.mdc-data-table__cell{color:rgba(0, 0, 0, 0.87)}.mat-mdc-table{background:#fff}.mat-mdc-table .mdc-data-table__row{height:52px}.mat-mdc-table .mdc-data-table__pagination{min-height:52px}.mat-mdc-table .mdc-data-table__header-row{height:56px}.mdc-data-table__content{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:var(--mdc-typography-body2-font-size, 14px);line-height:var(--mdc-typography-body2-line-height, 20px);font-weight:var(--mdc-typography-body2-font-weight, 400);letter-spacing:var(--mdc-typography-body2-letter-spacing, 0.0178571429em);text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-transform:var(--mdc-typography-body2-text-transform, none)}.mdc-data-table__cell{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:var(--mdc-typography-body2-font-size, 14px);line-height:var(--mdc-typography-body2-line-height, 20px);font-weight:var(--mdc-typography-body2-font-weight, 400);letter-spacing:var(--mdc-typography-body2-letter-spacing, 0.0178571429em);text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-transform:var(--mdc-typography-body2-text-transform, none)}.mdc-data-table__header-cell{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-subtitle2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:var(--mdc-typography-subtitle2-font-size, 14px);line-height:var(--mdc-typography-subtitle2-line-height, 22px);font-weight:var(--mdc-typography-subtitle2-font-weight, 500);letter-spacing:var(--mdc-typography-subtitle2-letter-spacing, 0.0071428571em);text-decoration:var(--mdc-typography-subtitle2-text-decoration, inherit);text-transform:var(--mdc-typography-subtitle2-text-transform, none)}.mat-mdc-progress-spinner{--mdc-circular-progress-active-indicator-color:#3f51b5}.mat-mdc-progress-spinner.mat-accent{--mdc-circular-progress-active-indicator-color:#ff4081}.mat-mdc-progress-spinner.mat-warn{--mdc-circular-progress-active-indicator-color:#f44336}.mat-badge{position:relative}.mat-badge.mat-badge{overflow:visible}.mat-badge-hidden .mat-badge-content{display:none}.mat-badge-content{position:absolute;text-align:center;display:inline-block;border-radius:50%;transition:transform 200ms ease-in-out;transform:scale(0.6);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;pointer-events:none}.ng-animate-disabled .mat-badge-content,.mat-badge-content._mat-animation-noopable{transition:none}.mat-badge-content.mat-badge-active{transform:none}.mat-badge-small .mat-badge-content{width:16px;height:16px;line-height:16px}.mat-badge-small.mat-badge-above .mat-badge-content{top:-8px}.mat-badge-small.mat-badge-below .mat-badge-content{bottom:-8px}.mat-badge-small.mat-badge-before .mat-badge-content{left:-16px}[dir=rtl] .mat-badge-small.mat-badge-before .mat-badge-content{left:auto;right:-16px}.mat-badge-small.mat-badge-after .mat-badge-content{right:-16px}[dir=rtl] .mat-badge-small.mat-badge-after .mat-badge-content{right:auto;left:-16px}.mat-badge-small.mat-badge-overlap.mat-badge-before .mat-badge-content{left:-8px}[dir=rtl] .mat-badge-small.mat-badge-overlap.mat-badge-before .mat-badge-content{left:auto;right:-8px}.mat-badge-small.mat-badge-overlap.mat-badge-after .mat-badge-content{right:-8px}[dir=rtl] .mat-badge-small.mat-badge-overlap.mat-badge-after .mat-badge-content{right:auto;left:-8px}.mat-badge-medium .mat-badge-content{width:22px;height:22px;line-height:22px}.mat-badge-medium.mat-badge-above .mat-badge-content{top:-11px}.mat-badge-medium.mat-badge-below .mat-badge-content{bottom:-11px}.mat-badge-medium.mat-badge-before .mat-badge-content{left:-22px}[dir=rtl] .mat-badge-medium.mat-badge-before .mat-badge-content{left:auto;right:-22px}.mat-badge-medium.mat-badge-after .mat-badge-content{right:-22px}[dir=rtl] .mat-badge-medium.mat-badge-after .mat-badge-content{right:auto;left:-22px}.mat-badge-medium.mat-badge-overlap.mat-badge-before .mat-badge-content{left:-11px}[dir=rtl] .mat-badge-medium.mat-badge-overlap.mat-badge-before .mat-badge-content{left:auto;right:-11px}.mat-badge-medium.mat-badge-overlap.mat-badge-after .mat-badge-content{right:-11px}[dir=rtl] .mat-badge-medium.mat-badge-overlap.mat-badge-after .mat-badge-content{right:auto;left:-11px}.mat-badge-large .mat-badge-content{width:28px;height:28px;line-height:28px}.mat-badge-large.mat-badge-above .mat-badge-content{top:-14px}.mat-badge-large.mat-badge-below .mat-badge-content{bottom:-14px}.mat-badge-large.mat-badge-before .mat-badge-content{left:-28px}[dir=rtl] .mat-badge-large.mat-badge-before .mat-badge-content{left:auto;right:-28px}.mat-badge-large.mat-badge-after .mat-badge-content{right:-28px}[dir=rtl] .mat-badge-large.mat-badge-after .mat-badge-content{right:auto;left:-28px}.mat-badge-large.mat-badge-overlap.mat-badge-before .mat-badge-content{left:-14px}[dir=rtl] .mat-badge-large.mat-badge-overlap.mat-badge-before .mat-badge-content{left:auto;right:-14px}.mat-badge-large.mat-badge-overlap.mat-badge-after .mat-badge-content{right:-14px}[dir=rtl] .mat-badge-large.mat-badge-overlap.mat-badge-after .mat-badge-content{right:auto;left:-14px}.mat-badge-content{color:#fff;background:#3f51b5}.cdk-high-contrast-active .mat-badge-content{outline:solid 1px;border-radius:0}.mat-badge-accent .mat-badge-content{background:#ff4081;color:#fff}.mat-badge-warn .mat-badge-content{color:#fff;background:#f44336}.mat-badge-disabled .mat-badge-content{background:#b9b9b9;color:rgba(0,0,0,.38)}.mat-badge-content{font-weight:600;font-size:12px;font-family:Roboto, sans-serif}.mat-badge-small .mat-badge-content{font-size:9px}.mat-badge-large .mat-badge-content{font-size:24px}.mat-bottom-sheet-container{box-shadow:0px 8px 10px -5px rgba(0, 0, 0, 0.2), 0px 16px 24px 2px rgba(0, 0, 0, 0.14), 0px 6px 30px 5px rgba(0, 0, 0, 0.12);background:#fff;color:rgba(0,0,0,.87)}.mat-bottom-sheet-container{font:400 14px/20px Roboto, sans-serif;letter-spacing:.0178571429em}.mat-button-toggle-standalone:not([class*=mat-elevation-z]),.mat-button-toggle-group:not([class*=mat-elevation-z]){box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard:not([class*=mat-elevation-z]),.mat-button-toggle-group-appearance-standard:not([class*=mat-elevation-z]){box-shadow:none}.mat-button-toggle{color:rgba(0,0,0,.38)}.mat-button-toggle .mat-button-toggle-focus-overlay{background-color:rgba(0,0,0,.12)}.mat-button-toggle-appearance-standard{color:rgba(0,0,0,.87);background:#fff}.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{background-color:#000}.mat-button-toggle-group-appearance-standard .mat-button-toggle+.mat-button-toggle{border-left:solid 1px #e0e0e0}[dir=rtl] .mat-button-toggle-group-appearance-standard .mat-button-toggle+.mat-button-toggle{border-left:none;border-right:solid 1px #e0e0e0}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle+.mat-button-toggle{border-left:none;border-right:none;border-top:solid 1px #e0e0e0}.mat-button-toggle-checked{background-color:#e0e0e0;color:rgba(0,0,0,.54)}.mat-button-toggle-checked.mat-button-toggle-appearance-standard{color:rgba(0,0,0,.87)}.mat-button-toggle-disabled{color:rgba(0,0,0,.26);background-color:#eee}.mat-button-toggle-disabled.mat-button-toggle-appearance-standard{background:#fff}.mat-button-toggle-disabled.mat-button-toggle-checked{background-color:#bdbdbd}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border:solid 1px #e0e0e0}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{line-height:48px}.mat-button-toggle{font-family:Roboto, sans-serif}.mat-calendar-arrow{fill:rgba(0,0,0,.54)}.mat-datepicker-toggle,.mat-datepicker-content .mat-calendar-next-button,.mat-datepicker-content .mat-calendar-previous-button{color:rgba(0,0,0,.54)}.mat-calendar-table-header-divider::after{background:rgba(0,0,0,.12)}.mat-calendar-table-header,.mat-calendar-body-label{color:rgba(0,0,0,.54)}.mat-calendar-body-cell-content,.mat-date-range-input-separator{color:rgba(0,0,0,.87);border-color:rgba(0,0,0,0)}.mat-calendar-body-disabled>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){color:rgba(0,0,0,.38)}.mat-form-field-disabled .mat-date-range-input-separator{color:rgba(0,0,0,.38)}.mat-calendar-body-in-preview{color:rgba(0,0,0,.24)}.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:rgba(0,0,0,.38)}.mat-calendar-body-disabled>.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:rgba(0,0,0,.18)}.mat-calendar-body-in-range::before{background:rgba(63,81,181,.2)}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:rgba(249,171,0,.2)}.mat-calendar-body-comparison-bridge-start::before,[dir=rtl] .mat-calendar-body-comparison-bridge-end::before{background:linear-gradient(to right, rgba(63, 81, 181, 0.2) 50%, rgba(249, 171, 0, 0.2) 50%)}.mat-calendar-body-comparison-bridge-end::before,[dir=rtl] .mat-calendar-body-comparison-bridge-start::before{background:linear-gradient(to left, rgba(63, 81, 181, 0.2) 50%, rgba(249, 171, 0, 0.2) 50%)}.mat-calendar-body-in-range>.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range.mat-calendar-body-in-range::after{background:#a8dab5}.mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:#46a35e}.mat-calendar-body-selected{background-color:#3f51b5;color:#fff}.mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:rgba(63,81,181,.4)}.mat-calendar-body-today.mat-calendar-body-selected{box-shadow:inset 0 0 0 1px #fff}.cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:rgba(63,81,181,.3)}@media(hover: hover){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:rgba(63,81,181,.3)}}.mat-datepicker-content{box-shadow:0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);background-color:#fff;color:rgba(0,0,0,.87)}.mat-datepicker-content.mat-accent .mat-calendar-body-in-range::before{background:rgba(255,64,129,.2)}.mat-datepicker-content.mat-accent .mat-calendar-body-comparison-identical,.mat-datepicker-content.mat-accent .mat-calendar-body-in-comparison-range::before{background:rgba(249,171,0,.2)}.mat-datepicker-content.mat-accent .mat-calendar-body-comparison-bridge-start::before,.mat-datepicker-content.mat-accent [dir=rtl] .mat-calendar-body-comparison-bridge-end::before{background:linear-gradient(to right, rgba(255, 64, 129, 0.2) 50%, rgba(249, 171, 0, 0.2) 50%)}.mat-datepicker-content.mat-accent .mat-calendar-body-comparison-bridge-end::before,.mat-datepicker-content.mat-accent [dir=rtl] .mat-calendar-body-comparison-bridge-start::before{background:linear-gradient(to left, rgba(255, 64, 129, 0.2) 50%, rgba(249, 171, 0, 0.2) 50%)}.mat-datepicker-content.mat-accent .mat-calendar-body-in-range>.mat-calendar-body-comparison-identical,.mat-datepicker-content.mat-accent .mat-calendar-body-in-comparison-range.mat-calendar-body-in-range::after{background:#a8dab5}.mat-datepicker-content.mat-accent .mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-datepicker-content.mat-accent .mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:#46a35e}.mat-datepicker-content.mat-accent .mat-calendar-body-selected{background-color:#ff4081;color:#fff}.mat-datepicker-content.mat-accent .mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:rgba(255,64,129,.4)}.mat-datepicker-content.mat-accent .mat-calendar-body-today.mat-calendar-body-selected{box-shadow:inset 0 0 0 1px #fff}.mat-datepicker-content.mat-accent .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.mat-datepicker-content.mat-accent .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:rgba(255,64,129,.3)}@media(hover: hover){.mat-datepicker-content.mat-accent .mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:rgba(255,64,129,.3)}}.mat-datepicker-content.mat-warn .mat-calendar-body-in-range::before{background:rgba(244,67,54,.2)}.mat-datepicker-content.mat-warn .mat-calendar-body-comparison-identical,.mat-datepicker-content.mat-warn .mat-calendar-body-in-comparison-range::before{background:rgba(249,171,0,.2)}.mat-datepicker-content.mat-warn .mat-calendar-body-comparison-bridge-start::before,.mat-datepicker-content.mat-warn [dir=rtl] .mat-calendar-body-comparison-bridge-end::before{background:linear-gradient(to right, rgba(244, 67, 54, 0.2) 50%, rgba(249, 171, 0, 0.2) 50%)}.mat-datepicker-content.mat-warn .mat-calendar-body-comparison-bridge-end::before,.mat-datepicker-content.mat-warn [dir=rtl] .mat-calendar-body-comparison-bridge-start::before{background:linear-gradient(to left, rgba(244, 67, 54, 0.2) 50%, rgba(249, 171, 0, 0.2) 50%)}.mat-datepicker-content.mat-warn .mat-calendar-body-in-range>.mat-calendar-body-comparison-identical,.mat-datepicker-content.mat-warn .mat-calendar-body-in-comparison-range.mat-calendar-body-in-range::after{background:#a8dab5}.mat-datepicker-content.mat-warn .mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-datepicker-content.mat-warn .mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:#46a35e}.mat-datepicker-content.mat-warn .mat-calendar-body-selected{background-color:#f44336;color:#fff}.mat-datepicker-content.mat-warn .mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:rgba(244,67,54,.4)}.mat-datepicker-content.mat-warn .mat-calendar-body-today.mat-calendar-body-selected{box-shadow:inset 0 0 0 1px #fff}.mat-datepicker-content.mat-warn .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.mat-datepicker-content.mat-warn .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:rgba(244,67,54,.3)}@media(hover: hover){.mat-datepicker-content.mat-warn .mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:rgba(244,67,54,.3)}}.mat-datepicker-content-touch{box-shadow:0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12)}.mat-datepicker-toggle-active{color:#3f51b5}.mat-datepicker-toggle-active.mat-accent{color:#ff4081}.mat-datepicker-toggle-active.mat-warn{color:#f44336}.mat-date-range-input-inner[disabled]{color:rgba(0,0,0,.38)}.mat-calendar-controls .mat-mdc-icon-button.mat-mdc-button-base{width:40px;height:40px;padding:8px}.mat-calendar-controls .mat-mdc-icon-button.mat-mdc-button-base .mdc-icon-button__focus-ring{max-height:40px;max-width:40px}.mat-calendar-controls .mat-mdc-icon-button.mat-mdc-button-base.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:40px;height:40px;margin-top:0px;margin-bottom:0px;margin-right:0px;margin-left:0px}.mat-calendar-controls .mat-mdc-icon-button.mat-mdc-button-base.mdc-icon-button--reduced-size .mdc-icon-button__focus-ring{max-height:40px;max-width:40px}.mat-calendar-controls .mat-mdc-icon-button.mat-mdc-button-base .mdc-icon-button__touch{position:absolute;top:50%;height:40px;left:50%;width:40px;transform:translate(-50%, -50%)}.mat-calendar-controls .mat-mdc-icon-button.mat-mdc-button-base .mat-mdc-button-touch-target{display:none}.mat-calendar{font-family:Roboto, sans-serif}.mat-calendar-body{font-size:13px}.mat-calendar-body-label,.mat-calendar-period-button{font-size:14px;font-weight:500}.mat-calendar-table-header th{font-size:11px;font-weight:400}.mat-divider{border-top-color:rgba(0,0,0,.12)}.mat-divider-vertical{border-right-color:rgba(0,0,0,.12)}.mat-expansion-panel{background:#fff;color:rgba(0,0,0,.87)}.mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}.mat-action-row{border-top-color:rgba(0,0,0,.12)}.mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true]),.mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true]),.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true]){background:rgba(0,0,0,.04)}@media(hover: none){.mat-expansion-panel:not(.mat-expanded):not([aria-disabled=true]) .mat-expansion-panel-header:hover{background:#fff}}.mat-expansion-panel-header-title{color:rgba(0,0,0,.87)}.mat-expansion-panel-header-description,.mat-expansion-indicator::after{color:rgba(0,0,0,.54)}.mat-expansion-panel-header[aria-disabled=true]{color:rgba(0,0,0,.26)}.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-title,.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-description{color:inherit}.mat-expansion-panel-header{height:48px}.mat-expansion-panel-header.mat-expanded{height:64px}.mat-expansion-panel-header{font-family:Roboto, sans-serif;font-size:14px;font-weight:500}.mat-expansion-panel-content{font:400 14px/20px Roboto, sans-serif;letter-spacing:.0178571429em}.mat-grid-tile-header,.mat-grid-tile-footer{font-size:14px}.mat-grid-tile-header .mat-line,.mat-grid-tile-footer .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-grid-tile-header .mat-line:nth-child(n+2),.mat-grid-tile-footer .mat-line:nth-child(n+2){font-size:12px}.mat-icon.mat-primary{color:#3f51b5}.mat-icon.mat-accent{color:#ff4081}.mat-icon.mat-warn{color:#f44336}.mat-drawer-container{background-color:#fafafa;color:rgba(0,0,0,.87)}.mat-drawer{background-color:#fff;color:rgba(0,0,0,.87)}.mat-drawer.mat-drawer-push{background-color:#fff}.mat-drawer:not(.mat-drawer-side){box-shadow:0px 8px 10px -5px rgba(0, 0, 0, 0.2), 0px 16px 24px 2px rgba(0, 0, 0, 0.14), 0px 6px 30px 5px rgba(0, 0, 0, 0.12)}.mat-drawer-side{border-right:solid 1px rgba(0,0,0,.12)}.mat-drawer-side.mat-drawer-end{border-left:solid 1px rgba(0,0,0,.12);border-right:none}[dir=rtl] .mat-drawer-side{border-left:solid 1px rgba(0,0,0,.12);border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-left:none;border-right:solid 1px rgba(0,0,0,.12)}.mat-drawer-backdrop.mat-drawer-shown{background-color:rgba(0,0,0,.6)}.mat-step-header.cdk-keyboard-focused,.mat-step-header.cdk-program-focused,.mat-step-header:hover:not([aria-disabled]),.mat-step-header:hover[aria-disabled=false]{background-color:rgba(0,0,0,.04)}.mat-step-header:hover[aria-disabled=true]{cursor:default}@media(hover: none){.mat-step-header:hover{background:none}}.mat-step-header .mat-step-label,.mat-step-header .mat-step-optional{color:rgba(0,0,0,.54)}.mat-step-header .mat-step-icon{background-color:rgba(0,0,0,.54);color:#fff}.mat-step-header .mat-step-icon-selected,.mat-step-header .mat-step-icon-state-done,.mat-step-header .mat-step-icon-state-edit{background-color:#3f51b5;color:#fff}.mat-step-header.mat-accent .mat-step-icon{color:#fff}.mat-step-header.mat-accent .mat-step-icon-selected,.mat-step-header.mat-accent .mat-step-icon-state-done,.mat-step-header.mat-accent .mat-step-icon-state-edit{background-color:#ff4081;color:#fff}.mat-step-header.mat-warn .mat-step-icon{color:#fff}.mat-step-header.mat-warn .mat-step-icon-selected,.mat-step-header.mat-warn .mat-step-icon-state-done,.mat-step-header.mat-warn .mat-step-icon-state-edit{background-color:#f44336;color:#fff}.mat-step-header .mat-step-icon-state-error{background-color:rgba(0,0,0,0);color:#f44336}.mat-step-header .mat-step-label.mat-step-label-active{color:rgba(0,0,0,.87)}.mat-step-header .mat-step-label.mat-step-label-error{color:#f44336}.mat-stepper-horizontal,.mat-stepper-vertical{background-color:#fff}.mat-stepper-vertical-line::before{border-left-color:rgba(0,0,0,.12)}.mat-horizontal-stepper-header::before,.mat-horizontal-stepper-header::after,.mat-stepper-horizontal-line{border-top-color:rgba(0,0,0,.12)}.mat-horizontal-stepper-header{height:72px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header,.mat-vertical-stepper-header{padding:24px 24px}.mat-stepper-vertical-line::before{top:-16px;bottom:-16px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::after,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::before{top:36px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{top:36px}.mat-stepper-vertical,.mat-stepper-horizontal{font-family:Roboto, sans-serif}.mat-step-label{font-size:14px;font-weight:400}.mat-step-sub-label-error{font-weight:normal}.mat-step-label-error{font-size:16px}.mat-step-label-selected{font-size:16px;font-weight:400}.mat-sort-header-arrow{color:#757575}.mat-toolbar{background:#f5f5f5;color:rgba(0,0,0,.87)}.mat-toolbar.mat-primary{background:#3f51b5;color:#fff}.mat-toolbar.mat-accent{background:#ff4081;color:#fff}.mat-toolbar.mat-warn{background:#f44336;color:#fff}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar-multiple-rows{min-height:64px}.mat-toolbar-row,.mat-toolbar-single-row{height:64px}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:56px}.mat-toolbar-row,.mat-toolbar-single-row{height:56px}}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font:500 20px/32px Roboto, sans-serif;letter-spacing:.0125em;margin:0}.mat-tree{background:#fff}.mat-tree-node,.mat-nested-tree-node{color:rgba(0,0,0,.87)}.mat-tree-node{min-height:48px}.mat-tree{font-family:Roboto, sans-serif}.mat-tree-node,.mat-nested-tree-node{font-weight:400;font-size:14px}.mat-h1,.mat-headline-5,.mat-typography .mat-h1,.mat-typography .mat-headline-5,.mat-typography h1{font:400 24px/32px Roboto, sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h2,.mat-headline-6,.mat-typography .mat-h2,.mat-typography .mat-headline-6,.mat-typography h2{font:500 20px/32px Roboto, sans-serif;letter-spacing:.0125em;margin:0 0 16px}.mat-h3,.mat-subtitle-1,.mat-typography .mat-h3,.mat-typography .mat-subtitle-1,.mat-typography h3{font:400 16px/28px Roboto, sans-serif;letter-spacing:.009375em;margin:0 0 16px}.mat-h4,.mat-body-1,.mat-typography .mat-h4,.mat-typography .mat-body-1,.mat-typography h4{font:400 16px/24px Roboto, sans-serif;letter-spacing:.03125em;margin:0 0 16px}.mat-h5,.mat-typography .mat-h5,.mat-typography h5{font:400 calc(14px * 0.83)/20px Roboto, sans-serif;margin:0 0 12px}.mat-h6,.mat-typography .mat-h6,.mat-typography h6{font:400 calc(14px * 0.67)/20px Roboto, sans-serif;margin:0 0 12px}.mat-body-strong,.mat-subtitle-2,.mat-typography .mat-body-strong,.mat-typography .mat-subtitle-2{font:500 14px/22px Roboto, sans-serif;letter-spacing:.0071428571em}.mat-body,.mat-body-2,.mat-typography .mat-body,.mat-typography .mat-body-2,.mat-typography{font:400 14px/20px Roboto, sans-serif;letter-spacing:.0178571429em}.mat-body p,.mat-body-2 p,.mat-typography .mat-body p,.mat-typography .mat-body-2 p,.mat-typography p{margin:0 0 12px}.mat-small,.mat-caption,.mat-typography .mat-small,.mat-typography .mat-caption{font:400 12px/20px Roboto, sans-serif;letter-spacing:.0333333333em}.mat-headline-1,.mat-typography .mat-headline-1{font:300 96px/96px Roboto, sans-serif;letter-spacing:-0.015625em;margin:0 0 56px}.mat-headline-2,.mat-typography .mat-headline-2{font:300 60px/60px Roboto, sans-serif;letter-spacing:-.0083333333em;margin:0 0 64px}.mat-headline-3,.mat-typography .mat-headline-3{font:400 48px/50px Roboto, sans-serif;letter-spacing:normal;margin:0 0 64px}.mat-headline-4,.mat-typography .mat-headline-4{font:400 34px/40px Roboto, sans-serif;letter-spacing:.0073529412em;margin:0 0 64px}","/* You can add global styles to this file, and also import other style files */\r\n\r\nhtml,\r\nbody {\r\n height: 100%;\r\n}\r\n\r\n@import \"bootstrap/scss/bootstrap-reboot\";\r\n@import \"bootstrap/scss/variables\";\r\n@import \"bootstrap/scss/mixins\";\r\n@import \"bootstrap/scss/utilities\";\r\n@import \"bootstrap/scss/bootstrap-grid\";\r\n@import \"bootstrap/scss/type\";\r\n\r\nbody {\r\n overflow-y: scroll;\r\n}\r\n\r\n.mat-icon-button {\r\n // Fix vertical alignment for Firefox\r\n line-height: 1 !important;\r\n}\r\n\r\n// snackbar styles\r\n.shop-snackbar-error {\r\n background-color: #ff0015;\r\n color: white;\r\n\r\n button {\r\n color: white;\r\n border: 1px solid;\r\n }\r\n}\r\n","/*!\n * Bootstrap Reboot v4.6.0 (https://getbootstrap.com/)\n * Copyright 2011-2021 The Bootstrap Authors\n * Copyright 2011-2021 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * Forked from Normalize.css, licensed MIT (https://github.com/necolas/normalize.css/blob/master/LICENSE.md)\n */\n\n@import \"functions\";\n@import \"variables\";\n@import \"mixins\";\n@import \"reboot\";\n","// stylelint-disable declaration-no-important, selector-no-qualifying-type, property-no-vendor-prefix\n\n// Reboot\n//\n// Normalization of HTML elements, manually forked from Normalize.css to remove\n// styles targeting irrelevant browsers while applying new styles.\n//\n// Normalize is licensed MIT. https://github.com/necolas/normalize.css\n\n\n// Document\n//\n// 1. Change from `box-sizing: content-box` so that `width` is not affected by `padding` or `border`.\n// 2. Change the default font family in all browsers.\n// 3. Correct the line height in all browsers.\n// 4. Prevent adjustments of font size after orientation changes in IE on Windows Phone and in iOS.\n// 5. Change the default tap highlight to be completely transparent in iOS.\n\n*,\n*::before,\n*::after {\n box-sizing: border-box; // 1\n}\n\nhtml {\n font-family: sans-serif; // 2\n line-height: 1.15; // 3\n -webkit-text-size-adjust: 100%; // 4\n -webkit-tap-highlight-color: rgba($black, 0); // 5\n}\n\n// Shim for \"new\" HTML5 structural elements to display correctly (IE10, older browsers)\n// TODO: remove in v5\n// stylelint-disable-next-line selector-list-comma-newline-after\narticle, aside, figcaption, figure, footer, header, hgroup, main, nav, section {\n display: block;\n}\n\n// Body\n//\n// 1. Remove the margin in all browsers.\n// 2. As a best practice, apply a default `background-color`.\n// 3. Set an explicit initial text-align value so that we can later use\n// the `inherit` value on things like `
\n {{headerText}}\n \n {{dataAccessor(data, name)}}\n \n {{headerText}}\n \n {{dataAccessor(data, name)}}\n ` elements.\n\nbody {\n margin: 0; // 1\n font-family: $font-family-base;\n @include font-size($font-size-base);\n font-weight: $font-weight-base;\n line-height: $line-height-base;\n color: $body-color;\n text-align: left; // 3\n background-color: $body-bg; // 2\n}\n\n// Future-proof rule: in browsers that support :focus-visible, suppress the focus outline\n// on elements that programmatically receive focus but wouldn't normally show a visible\n// focus outline. In general, this would mean that the outline is only applied if the\n// interaction that led to the element receiving programmatic focus was a keyboard interaction,\n// or the browser has somehow determined that the user is primarily a keyboard user and/or\n// wants focus outlines to always be presented.\n//\n// See https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-visible\n// and https://developer.paciellogroup.com/blog/2018/03/focus-visible-and-backwards-compatibility/\n[tabindex=\"-1\"]:focus:not(:focus-visible) {\n outline: 0 !important;\n}\n\n\n// Content grouping\n//\n// 1. Add the correct box sizing in Firefox.\n// 2. Show the overflow in Edge and IE.\n\nhr {\n box-sizing: content-box; // 1\n height: 0; // 1\n overflow: visible; // 2\n}\n\n\n//\n// Typography\n//\n\n// Remove top margins from headings\n//\n// By default, `

`-`

` all receive top and bottom margins. We nuke the top\n// margin for easier control within type scales as it avoids margin collapsing.\n// stylelint-disable-next-line selector-list-comma-newline-after\nh1, h2, h3, h4, h5, h6 {\n margin-top: 0;\n margin-bottom: $headings-margin-bottom;\n}\n\n// Reset margins on paragraphs\n//\n// Similarly, the top margin on `

`s get reset. However, we also reset the\n// bottom margin to use `rem` units instead of `em`.\np {\n margin-top: 0;\n margin-bottom: $paragraph-margin-bottom;\n}\n\n// Abbreviations\n//\n// 1. Duplicate behavior to the data-* attribute for our tooltip plugin\n// 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.\n// 3. Add explicit cursor to indicate changed behavior.\n// 4. Remove the bottom border in Firefox 39-.\n// 5. Prevent the text-decoration to be skipped.\n\nabbr[title],\nabbr[data-original-title] { // 1\n text-decoration: underline; // 2\n text-decoration: underline dotted; // 2\n cursor: help; // 3\n border-bottom: 0; // 4\n text-decoration-skip-ink: none; // 5\n}\n\naddress {\n margin-bottom: 1rem;\n font-style: normal;\n line-height: inherit;\n}\n\nol,\nul,\ndl {\n margin-top: 0;\n margin-bottom: 1rem;\n}\n\nol ol,\nul ul,\nol ul,\nul ol {\n margin-bottom: 0;\n}\n\ndt {\n font-weight: $dt-font-weight;\n}\n\ndd {\n margin-bottom: .5rem;\n margin-left: 0; // Undo browser default\n}\n\nblockquote {\n margin: 0 0 1rem;\n}\n\nb,\nstrong {\n font-weight: $font-weight-bolder; // Add the correct font weight in Chrome, Edge, and Safari\n}\n\nsmall {\n @include font-size(80%); // Add the correct font size in all browsers\n}\n\n//\n// Prevent `sub` and `sup` elements from affecting the line height in\n// all browsers.\n//\n\nsub,\nsup {\n position: relative;\n @include font-size(75%);\n line-height: 0;\n vertical-align: baseline;\n}\n\nsub { bottom: -.25em; }\nsup { top: -.5em; }\n\n\n//\n// Links\n//\n\na {\n color: $link-color;\n text-decoration: $link-decoration;\n background-color: transparent; // Remove the gray background on active links in IE 10.\n\n @include hover() {\n color: $link-hover-color;\n text-decoration: $link-hover-decoration;\n }\n}\n\n// And undo these styles for placeholder links/named anchors (without href).\n// It would be more straightforward to just use a[href] in previous block, but that\n// causes specificity issues in many other styles that are too complex to fix.\n// See https://github.com/twbs/bootstrap/issues/19402\n\na:not([href]):not([class]) {\n color: inherit;\n text-decoration: none;\n\n @include hover() {\n color: inherit;\n text-decoration: none;\n }\n}\n\n\n//\n// Code\n//\n\npre,\ncode,\nkbd,\nsamp {\n font-family: $font-family-monospace;\n @include font-size(1em); // Correct the odd `em` font sizing in all browsers.\n}\n\npre {\n // Remove browser default top margin\n margin-top: 0;\n // Reset browser default of `1em` to use `rem`s\n margin-bottom: 1rem;\n // Don't allow content to break outside\n overflow: auto;\n // Disable auto-hiding scrollbar in IE & legacy Edge to avoid overlap,\n // making it impossible to interact with the content\n -ms-overflow-style: scrollbar;\n}\n\n\n//\n// Figures\n//\n\nfigure {\n // Apply a consistent margin strategy (matches our type styles).\n margin: 0 0 1rem;\n}\n\n\n//\n// Images and content\n//\n\nimg {\n vertical-align: middle;\n border-style: none; // Remove the border on images inside links in IE 10-.\n}\n\nsvg {\n // Workaround for the SVG overflow bug in IE10/11 is still required.\n // See https://github.com/twbs/bootstrap/issues/26878\n overflow: hidden;\n vertical-align: middle;\n}\n\n\n//\n// Tables\n//\n\ntable {\n border-collapse: collapse; // Prevent double borders\n}\n\ncaption {\n padding-top: $table-cell-padding;\n padding-bottom: $table-cell-padding;\n color: $table-caption-color;\n text-align: left;\n caption-side: bottom;\n}\n\n// 1. Removes font-weight bold by inheriting\n// 2. Matches default `

` alignment by inheriting `text-align`.\n// 3. Fix alignment for Safari\n\nth {\n font-weight: $table-th-font-weight; // 1\n text-align: inherit; // 2\n text-align: -webkit-match-parent; // 3\n}\n\n\n//\n// Forms\n//\n\nlabel {\n // Allow labels to use `margin` for spacing.\n display: inline-block;\n margin-bottom: $label-margin-bottom;\n}\n\n// Remove the default `border-radius` that macOS Chrome adds.\n//\n// Details at https://github.com/twbs/bootstrap/issues/24093\nbutton {\n // stylelint-disable-next-line property-disallowed-list\n border-radius: 0;\n}\n\n// Explicitly remove focus outline in Chromium when it shouldn't be\n// visible (e.g. as result of mouse click or touch tap). It already\n// should be doing this automatically, but seems to currently be\n// confused and applies its very visible two-tone outline anyway.\n\nbutton:focus:not(:focus-visible) {\n outline: 0;\n}\n\ninput,\nbutton,\nselect,\noptgroup,\ntextarea {\n margin: 0; // Remove the margin in Firefox and Safari\n font-family: inherit;\n @include font-size(inherit);\n line-height: inherit;\n}\n\nbutton,\ninput {\n overflow: visible; // Show the overflow in Edge\n}\n\nbutton,\nselect {\n text-transform: none; // Remove the inheritance of text transform in Firefox\n}\n\n// Set the cursor for non-` + *
+ *
+ *
+ * {{ item }} + *
+ *
+ * ``` + * + * Here is the component code: + * + * ```typescript + * import {trigger, transition, style, animate, query, stagger} from '@angular/animations'; + * @Component({ + * templateUrl: 'list.component.html', + * animations: [ + * trigger('listAnimation', [ + * ... + * ]) + * ] + * }) + * class ListComponent { + * items = []; + * + * showItems() { + * this.items = [0,1,2,3,4]; + * } + * + * hideItems() { + * this.items = []; + * } + * + * toggle() { + * this.items.length ? this.hideItems() : this.showItems(); + * } + * } + * ``` + * + * Here is the animation trigger code: + * + * ```typescript + * trigger('listAnimation', [ + * transition('* => *', [ // each time the binding value changes + * query(':leave', [ + * stagger(100, [ + * animate('0.5s', style({ opacity: 0 })) + * ]) + * ]), + * query(':enter', [ + * style({ opacity: 0 }), + * stagger(100, [ + * animate('0.5s', style({ opacity: 1 })) + * ]) + * ]) + * ]) + * ]) + * ``` + * + * @publicApi + */ + function stagger(timings, animation) { + return { + type: 12 /* AnimationMetadataType.Stagger */, + timings, + animation, + }; + } + function scheduleMicroTask(cb) { + Promise.resolve().then(cb); + } + + /** + * An empty programmatic controller for reusable animations. + * Used internally when animations are disabled, to avoid + * checking for the null case when an animation player is expected. + * + * @see `animate()` + * @see `AnimationPlayer` + * @see `GroupPlayer` + * + * @publicApi + */ + class NoopAnimationPlayer { + constructor(duration = 0, delay = 0) { + this._onDoneFns = []; + this._onStartFns = []; + this._onDestroyFns = []; + this._originalOnDoneFns = []; + this._originalOnStartFns = []; + this._started = false; + this._destroyed = false; + this._finished = false; + this._position = 0; + this.parentPlayer = null; + this.totalTime = duration + delay; + } + _onFinish() { + if (!this._finished) { + this._finished = true; + this._onDoneFns.forEach((fn) => fn()); + this._onDoneFns = []; + } + } + onStart(fn) { + this._originalOnStartFns.push(fn); + this._onStartFns.push(fn); + } + onDone(fn) { + this._originalOnDoneFns.push(fn); + this._onDoneFns.push(fn); + } + onDestroy(fn) { + this._onDestroyFns.push(fn); + } + hasStarted() { + return this._started; + } + init() {} + play() { + if (!this.hasStarted()) { + this._onStart(); + this.triggerMicrotask(); + } + this._started = true; + } + /** @internal */ + triggerMicrotask() { + scheduleMicroTask(() => this._onFinish()); + } + _onStart() { + this._onStartFns.forEach((fn) => fn()); + this._onStartFns = []; + } + pause() {} + restart() {} + finish() { + this._onFinish(); + } + destroy() { + if (!this._destroyed) { + this._destroyed = true; + if (!this.hasStarted()) { + this._onStart(); + } + this.finish(); + this._onDestroyFns.forEach((fn) => fn()); + this._onDestroyFns = []; + } + } + reset() { + this._started = false; + this._finished = false; + this._onStartFns = this._originalOnStartFns; + this._onDoneFns = this._originalOnDoneFns; + } + setPosition(position) { + this._position = this.totalTime ? position * this.totalTime : 1; + } + getPosition() { + return this.totalTime ? this._position / this.totalTime : 1; + } + /** @internal */ + triggerCallback(phaseName) { + const methods = + phaseName == "start" ? this._onStartFns : this._onDoneFns; + methods.forEach((fn) => fn()); + methods.length = 0; + } + } + + /** + * A programmatic controller for a group of reusable animations. + * Used internally to control animations. + * + * @see `AnimationPlayer` + * @see `{@link animations/group group()}` + * + */ + class AnimationGroupPlayer { + constructor(_players) { + this._onDoneFns = []; + this._onStartFns = []; + this._finished = false; + this._started = false; + this._destroyed = false; + this._onDestroyFns = []; + this.parentPlayer = null; + this.totalTime = 0; + this.players = _players; + let doneCount = 0; + let destroyCount = 0; + let startCount = 0; + const total = this.players.length; + if (total == 0) { + scheduleMicroTask(() => this._onFinish()); + } else { + this.players.forEach((player) => { + player.onDone(() => { + if (++doneCount == total) { + this._onFinish(); + } + }); + player.onDestroy(() => { + if (++destroyCount == total) { + this._onDestroy(); + } + }); + player.onStart(() => { + if (++startCount == total) { + this._onStart(); + } + }); + }); + } + this.totalTime = this.players.reduce( + (time, player) => Math.max(time, player.totalTime), + 0 + ); + } + _onFinish() { + if (!this._finished) { + this._finished = true; + this._onDoneFns.forEach((fn) => fn()); + this._onDoneFns = []; + } + } + init() { + this.players.forEach((player) => player.init()); + } + onStart(fn) { + this._onStartFns.push(fn); + } + _onStart() { + if (!this.hasStarted()) { + this._started = true; + this._onStartFns.forEach((fn) => fn()); + this._onStartFns = []; + } + } + onDone(fn) { + this._onDoneFns.push(fn); + } + onDestroy(fn) { + this._onDestroyFns.push(fn); + } + hasStarted() { + return this._started; + } + play() { + if (!this.parentPlayer) { + this.init(); + } + this._onStart(); + this.players.forEach((player) => player.play()); + } + pause() { + this.players.forEach((player) => player.pause()); + } + restart() { + this.players.forEach((player) => player.restart()); + } + finish() { + this._onFinish(); + this.players.forEach((player) => player.finish()); + } + destroy() { + this._onDestroy(); + } + _onDestroy() { + if (!this._destroyed) { + this._destroyed = true; + this._onFinish(); + this.players.forEach((player) => player.destroy()); + this._onDestroyFns.forEach((fn) => fn()); + this._onDestroyFns = []; + } + } + reset() { + this.players.forEach((player) => player.reset()); + this._destroyed = false; + this._finished = false; + this._started = false; + } + setPosition(p) { + const timeAtPosition = p * this.totalTime; + this.players.forEach((player) => { + const position = player.totalTime + ? Math.min(1, timeAtPosition / player.totalTime) + : 1; + player.setPosition(position); + }); + } + getPosition() { + const longestPlayer = this.players.reduce( + (longestSoFar, player) => { + const newPlayerIsLongest = + longestSoFar === null || + player.totalTime > longestSoFar.totalTime; + return newPlayerIsLongest ? player : longestSoFar; + }, + null + ); + return longestPlayer != null ? longestPlayer.getPosition() : 0; + } + beforeDestroy() { + this.players.forEach((player) => { + if (player.beforeDestroy) { + player.beforeDestroy(); + } + }); + } + /** @internal */ + triggerCallback(phaseName) { + const methods = + phaseName == "start" ? this._onStartFns : this._onDoneFns; + methods.forEach((fn) => fn()); + methods.length = 0; + } + } + const ɵPRE_STYLE = "!"; + + /** + * @module + * @description + * Entry point for all animation APIs of the animation package. + */ + + /** + * @module + * @description + * Entry point for all public APIs of this package. + */ + + // This file is not used to build this module. It is only used during editing + + /** + * Generated bundle index. Do not edit. + */ + + /***/ + }, + + /***/ 5787: + /*!***************************************************************!*\ + !*** ./node_modules/@angular/animations/fesm2020/browser.mjs ***! + \***************************************************************/ + /***/ ( + __unused_webpack___webpack_module__, + __webpack_exports__, + __webpack_require__ + ) => { + __webpack_require__.r(__webpack_exports__); + /* harmony export */ __webpack_require__.d(__webpack_exports__, { + /* harmony export */ AnimationDriver: () => + /* binding */ AnimationDriver, + /* harmony export */ ɵAnimation: () => /* binding */ Animation, + /* harmony export */ ɵAnimationEngine: () => + /* binding */ AnimationEngine, + /* harmony export */ ɵAnimationStyleNormalizer: () => + /* binding */ AnimationStyleNormalizer, + /* harmony export */ ɵNoopAnimationDriver: () => + /* binding */ NoopAnimationDriver, + /* harmony export */ ɵNoopAnimationStyleNormalizer: () => + /* binding */ NoopAnimationStyleNormalizer, + /* harmony export */ ɵWebAnimationsDriver: () => + /* binding */ WebAnimationsDriver, + /* harmony export */ ɵWebAnimationsPlayer: () => + /* binding */ WebAnimationsPlayer, + /* harmony export */ ɵWebAnimationsStyleNormalizer: () => + /* binding */ WebAnimationsStyleNormalizer, + /* harmony export */ ɵallowPreviousPlayerStylesMerge: () => + /* binding */ allowPreviousPlayerStylesMerge, + /* harmony export */ ɵcontainsElement: () => + /* binding */ containsElement, + /* harmony export */ ɵgetParentElement: () => + /* binding */ getParentElement, + /* harmony export */ ɵinvokeQuery: () => /* binding */ invokeQuery, + /* harmony export */ ɵnormalizeKeyframes: () => + /* binding */ normalizeKeyframes, + /* harmony export */ ɵvalidateStyleProperty: () => + /* binding */ validateStyleProperty, + /* harmony export */ + }); + /* harmony import */ var _angular_animations__WEBPACK_IMPORTED_MODULE_1__ = + __webpack_require__(/*! @angular/animations */ 4851); + /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = + __webpack_require__(/*! @angular/core */ 2560); + /** + * @license Angular v15.1.4 + * (c) 2010-2022 Google LLC. https://angular.io/ + * License: MIT + */ + + const LINE_START = "\n - "; + function invalidTimingValue(exp) { + return new _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵRuntimeError" + ]( + 3000 /* RuntimeErrorCode.INVALID_TIMING_VALUE */, + ngDevMode && `The provided timing value "${exp}" is invalid.` + ); + } + function negativeStepValue() { + return new _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵRuntimeError" + ]( + 3100 /* RuntimeErrorCode.NEGATIVE_STEP_VALUE */, + ngDevMode && + "Duration values below 0 are not allowed for this animation step." + ); + } + function negativeDelayValue() { + return new _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵRuntimeError" + ]( + 3101 /* RuntimeErrorCode.NEGATIVE_DELAY_VALUE */, + ngDevMode && + "Delay values below 0 are not allowed for this animation step." + ); + } + function invalidStyleParams(varName) { + return new _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵRuntimeError" + ]( + 3001 /* RuntimeErrorCode.INVALID_STYLE_PARAMS */, + ngDevMode && + `Unable to resolve the local animation param ${varName} in the given list of values` + ); + } + function invalidParamValue(varName) { + return new _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵRuntimeError" + ]( + 3003 /* RuntimeErrorCode.INVALID_PARAM_VALUE */, + ngDevMode && + `Please provide a value for the animation param ${varName}` + ); + } + function invalidNodeType(nodeType) { + return new _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵRuntimeError" + ]( + 3004 /* RuntimeErrorCode.INVALID_NODE_TYPE */, + ngDevMode && + `Unable to resolve animation metadata node #${nodeType}` + ); + } + function invalidCssUnitValue(userProvidedProperty, value) { + return new _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵRuntimeError" + ]( + 3005 /* RuntimeErrorCode.INVALID_CSS_UNIT_VALUE */, + ngDevMode && + `Please provide a CSS unit value for ${userProvidedProperty}:${value}` + ); + } + function invalidTrigger() { + return new _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵRuntimeError" + ]( + 3006 /* RuntimeErrorCode.INVALID_TRIGGER */, + ngDevMode && + "animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))" + ); + } + function invalidDefinition() { + return new _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵRuntimeError" + ]( + 3007 /* RuntimeErrorCode.INVALID_DEFINITION */, + ngDevMode && + "only state() and transition() definitions can sit inside of a trigger()" + ); + } + function invalidState(metadataName, missingSubs) { + return new _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵRuntimeError" + ]( + 3008 /* RuntimeErrorCode.INVALID_STATE */, + ngDevMode && + `state("${metadataName}", ...) must define default values for all the following style substitutions: ${missingSubs.join( + ", " + )}` + ); + } + function invalidStyleValue(value) { + return new _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵRuntimeError" + ]( + 3002 /* RuntimeErrorCode.INVALID_STYLE_VALUE */, + ngDevMode && + `The provided style string value ${value} is not allowed.` + ); + } + function invalidProperty(prop) { + return new _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵRuntimeError" + ]( + 3009 /* RuntimeErrorCode.INVALID_PROPERTY */, + ngDevMode && + `The provided animation property "${prop}" is not a supported CSS property for animations` + ); + } + function invalidParallelAnimation( + prop, + firstStart, + firstEnd, + secondStart, + secondEnd + ) { + return new _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵRuntimeError" + ]( + 3010 /* RuntimeErrorCode.INVALID_PARALLEL_ANIMATION */, + ngDevMode && + `The CSS property "${prop}" that exists between the times of "${firstStart}ms" and "${firstEnd}ms" is also being animated in a parallel animation between the times of "${secondStart}ms" and "${secondEnd}ms"` + ); + } + function invalidKeyframes() { + return new _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵRuntimeError" + ]( + 3011 /* RuntimeErrorCode.INVALID_KEYFRAMES */, + ngDevMode && + `keyframes() must be placed inside of a call to animate()` + ); + } + function invalidOffset() { + return new _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵRuntimeError" + ]( + 3012 /* RuntimeErrorCode.INVALID_OFFSET */, + ngDevMode && + `Please ensure that all keyframe offsets are between 0 and 1` + ); + } + function keyframeOffsetsOutOfOrder() { + return new _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵRuntimeError" + ]( + 3200 /* RuntimeErrorCode.KEYFRAME_OFFSETS_OUT_OF_ORDER */, + ngDevMode && `Please ensure that all keyframe offsets are in order` + ); + } + function keyframesMissingOffsets() { + return new _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵRuntimeError" + ]( + 3202 /* RuntimeErrorCode.KEYFRAMES_MISSING_OFFSETS */, + ngDevMode && + `Not all style() steps within the declared keyframes() contain offsets` + ); + } + function invalidStagger() { + return new _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵRuntimeError" + ]( + 3013 /* RuntimeErrorCode.INVALID_STAGGER */, + ngDevMode && `stagger() can only be used inside of query()` + ); + } + function invalidQuery(selector) { + return new _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵRuntimeError" + ]( + 3014 /* RuntimeErrorCode.INVALID_QUERY */, + ngDevMode && + `\`query("${selector}")\` returned zero elements. (Use \`query("${selector}", { optional: true })\` if you wish to allow this.)` + ); + } + function invalidExpression(expr) { + return new _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵRuntimeError" + ]( + 3015 /* RuntimeErrorCode.INVALID_EXPRESSION */, + ngDevMode && + `The provided transition expression "${expr}" is not supported` + ); + } + function invalidTransitionAlias(alias) { + return new _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵRuntimeError" + ]( + 3016 /* RuntimeErrorCode.INVALID_TRANSITION_ALIAS */, + ngDevMode && + `The transition alias value "${alias}" is not supported` + ); + } + function validationFailed(errors) { + return new _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵRuntimeError" + ]( + 3500 /* RuntimeErrorCode.VALIDATION_FAILED */, + ngDevMode && + `animation validation failed:\n${errors + .map((err) => err.message) + .join("\n")}` + ); + } + function buildingFailed(errors) { + return new _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵRuntimeError" + ]( + 3501 /* RuntimeErrorCode.BUILDING_FAILED */, + ngDevMode && + `animation building failed:\n${errors + .map((err) => err.message) + .join("\n")}` + ); + } + function triggerBuildFailed(name, errors) { + return new _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵRuntimeError" + ]( + 3404 /* RuntimeErrorCode.TRIGGER_BUILD_FAILED */, + ngDevMode && + `The animation trigger "${name}" has failed to build due to the following errors:\n - ${errors + .map((err) => err.message) + .join("\n - ")}` + ); + } + function animationFailed(errors) { + return new _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵRuntimeError" + ]( + 3502 /* RuntimeErrorCode.ANIMATION_FAILED */, + ngDevMode && + `Unable to animate due to the following errors:${LINE_START}${errors + .map((err) => err.message) + .join(LINE_START)}` + ); + } + function registerFailed(errors) { + return new _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵRuntimeError" + ]( + 3503 /* RuntimeErrorCode.REGISTRATION_FAILED */, + ngDevMode && + `Unable to build the animation due to the following errors: ${errors + .map((err) => err.message) + .join("\n")}` + ); + } + function missingOrDestroyedAnimation() { + return new _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵRuntimeError" + ]( + 3300 /* RuntimeErrorCode.MISSING_OR_DESTROYED_ANIMATION */, + ngDevMode && + "The requested animation doesn't exist or has already been destroyed" + ); + } + function createAnimationFailed(errors) { + return new _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵRuntimeError" + ]( + 3504 /* RuntimeErrorCode.CREATE_ANIMATION_FAILED */, + ngDevMode && + `Unable to create the animation due to the following errors:${errors + .map((err) => err.message) + .join("\n")}` + ); + } + function missingPlayer(id) { + return new _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵRuntimeError" + ]( + 3301 /* RuntimeErrorCode.MISSING_PLAYER */, + ngDevMode && + `Unable to find the timeline player referenced by ${id}` + ); + } + function missingTrigger(phase, name) { + return new _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵRuntimeError" + ]( + 3302 /* RuntimeErrorCode.MISSING_TRIGGER */, + ngDevMode && + `Unable to listen on the animation trigger event "${phase}" because the animation trigger "${name}" doesn\'t exist!` + ); + } + function missingEvent(name) { + return new _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵRuntimeError" + ]( + 3303 /* RuntimeErrorCode.MISSING_EVENT */, + ngDevMode && + `Unable to listen on the animation trigger "${name}" because the provided event is undefined!` + ); + } + function unsupportedTriggerEvent(phase, name) { + return new _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵRuntimeError" + ]( + 3400 /* RuntimeErrorCode.UNSUPPORTED_TRIGGER_EVENT */, + ngDevMode && + `The provided animation trigger event "${phase}" for the animation trigger "${name}" is not supported!` + ); + } + function unregisteredTrigger(name) { + return new _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵRuntimeError" + ]( + 3401 /* RuntimeErrorCode.UNREGISTERED_TRIGGER */, + ngDevMode && + `The provided animation trigger "${name}" has not been registered!` + ); + } + function triggerTransitionsFailed(errors) { + return new _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵRuntimeError" + ]( + 3402 /* RuntimeErrorCode.TRIGGER_TRANSITIONS_FAILED */, + ngDevMode && + `Unable to process animations due to the following failed trigger transitions\n ${errors + .map((err) => err.message) + .join("\n")}` + ); + } + function triggerParsingFailed(name, errors) { + return new _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵRuntimeError" + ]( + 3403 /* RuntimeErrorCode.TRIGGER_PARSING_FAILED */, + ngDevMode && + `Animation parsing for the ${name} trigger have failed:${LINE_START}${errors + .map((err) => err.message) + .join(LINE_START)}` + ); + } + function transitionFailed(name, errors) { + return new _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵRuntimeError" + ]( + 3505 /* RuntimeErrorCode.TRANSITION_FAILED */, + ngDevMode && + `@${name} has failed due to:\n ${errors + .map((err) => err.message) + .join("\n- ")}` + ); + } + + /** + * Set of all animatable CSS properties + * + * @see https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_animated_properties + */ + const ANIMATABLE_PROP_SET = new Set([ + "-moz-outline-radius", + "-moz-outline-radius-bottomleft", + "-moz-outline-radius-bottomright", + "-moz-outline-radius-topleft", + "-moz-outline-radius-topright", + "-ms-grid-columns", + "-ms-grid-rows", + "-webkit-line-clamp", + "-webkit-text-fill-color", + "-webkit-text-stroke", + "-webkit-text-stroke-color", + "accent-color", + "all", + "backdrop-filter", + "background", + "background-color", + "background-position", + "background-size", + "block-size", + "border", + "border-block-end", + "border-block-end-color", + "border-block-end-width", + "border-block-start", + "border-block-start-color", + "border-block-start-width", + "border-bottom", + "border-bottom-color", + "border-bottom-left-radius", + "border-bottom-right-radius", + "border-bottom-width", + "border-color", + "border-end-end-radius", + "border-end-start-radius", + "border-image-outset", + "border-image-slice", + "border-image-width", + "border-inline-end", + "border-inline-end-color", + "border-inline-end-width", + "border-inline-start", + "border-inline-start-color", + "border-inline-start-width", + "border-left", + "border-left-color", + "border-left-width", + "border-radius", + "border-right", + "border-right-color", + "border-right-width", + "border-start-end-radius", + "border-start-start-radius", + "border-top", + "border-top-color", + "border-top-left-radius", + "border-top-right-radius", + "border-top-width", + "border-width", + "bottom", + "box-shadow", + "caret-color", + "clip", + "clip-path", + "color", + "column-count", + "column-gap", + "column-rule", + "column-rule-color", + "column-rule-width", + "column-width", + "columns", + "filter", + "flex", + "flex-basis", + "flex-grow", + "flex-shrink", + "font", + "font-size", + "font-size-adjust", + "font-stretch", + "font-variation-settings", + "font-weight", + "gap", + "grid-column-gap", + "grid-gap", + "grid-row-gap", + "grid-template-columns", + "grid-template-rows", + "height", + "inline-size", + "input-security", + "inset", + "inset-block", + "inset-block-end", + "inset-block-start", + "inset-inline", + "inset-inline-end", + "inset-inline-start", + "left", + "letter-spacing", + "line-clamp", + "line-height", + "margin", + "margin-block-end", + "margin-block-start", + "margin-bottom", + "margin-inline-end", + "margin-inline-start", + "margin-left", + "margin-right", + "margin-top", + "mask", + "mask-border", + "mask-position", + "mask-size", + "max-block-size", + "max-height", + "max-inline-size", + "max-lines", + "max-width", + "min-block-size", + "min-height", + "min-inline-size", + "min-width", + "object-position", + "offset", + "offset-anchor", + "offset-distance", + "offset-path", + "offset-position", + "offset-rotate", + "opacity", + "order", + "outline", + "outline-color", + "outline-offset", + "outline-width", + "padding", + "padding-block-end", + "padding-block-start", + "padding-bottom", + "padding-inline-end", + "padding-inline-start", + "padding-left", + "padding-right", + "padding-top", + "perspective", + "perspective-origin", + "right", + "rotate", + "row-gap", + "scale", + "scroll-margin", + "scroll-margin-block", + "scroll-margin-block-end", + "scroll-margin-block-start", + "scroll-margin-bottom", + "scroll-margin-inline", + "scroll-margin-inline-end", + "scroll-margin-inline-start", + "scroll-margin-left", + "scroll-margin-right", + "scroll-margin-top", + "scroll-padding", + "scroll-padding-block", + "scroll-padding-block-end", + "scroll-padding-block-start", + "scroll-padding-bottom", + "scroll-padding-inline", + "scroll-padding-inline-end", + "scroll-padding-inline-start", + "scroll-padding-left", + "scroll-padding-right", + "scroll-padding-top", + "scroll-snap-coordinate", + "scroll-snap-destination", + "scrollbar-color", + "shape-image-threshold", + "shape-margin", + "shape-outside", + "tab-size", + "text-decoration", + "text-decoration-color", + "text-decoration-thickness", + "text-emphasis", + "text-emphasis-color", + "text-indent", + "text-shadow", + "text-underline-offset", + "top", + "transform", + "transform-origin", + "translate", + "vertical-align", + "visibility", + "width", + "word-spacing", + "z-index", + "zoom", + ]); + function isBrowser() { + return ( + typeof window !== "undefined" && + typeof window.document !== "undefined" + ); + } + function isNode() { + // Checking only for `process` isn't enough to identify whether or not we're in a Node + // environment, because Webpack by default will polyfill the `process`. While we can discern + // that Webpack polyfilled it by looking at `process.browser`, it's very Webpack-specific and + // might not be future-proof. Instead we look at the stringified version of `process` which + // is `[object process]` in Node and `[object Object]` when polyfilled. + return ( + typeof process !== "undefined" && + {}.toString.call(process) === "[object process]" + ); + } + function optimizeGroupPlayer(players) { + switch (players.length) { + case 0: + return new _angular_animations__WEBPACK_IMPORTED_MODULE_1__.NoopAnimationPlayer(); + case 1: + return players[0]; + default: + return new _angular_animations__WEBPACK_IMPORTED_MODULE_1__[ + "ɵAnimationGroupPlayer" + ](players); + } + } + function normalizeKeyframes$1( + driver, + normalizer, + element, + keyframes, + preStyles = new Map(), + postStyles = new Map() + ) { + const errors = []; + const normalizedKeyframes = []; + let previousOffset = -1; + let previousKeyframe = null; + keyframes.forEach((kf) => { + const offset = kf.get("offset"); + const isSameOffset = offset == previousOffset; + const normalizedKeyframe = + (isSameOffset && previousKeyframe) || new Map(); + kf.forEach((val, prop) => { + let normalizedProp = prop; + let normalizedValue = val; + if (prop !== "offset") { + normalizedProp = normalizer.normalizePropertyName( + normalizedProp, + errors + ); + switch (normalizedValue) { + case _angular_animations__WEBPACK_IMPORTED_MODULE_1__[ + "ɵPRE_STYLE" + ]: + normalizedValue = preStyles.get(prop); + break; + case _angular_animations__WEBPACK_IMPORTED_MODULE_1__.AUTO_STYLE: + normalizedValue = postStyles.get(prop); + break; + default: + normalizedValue = normalizer.normalizeStyleValue( + prop, + normalizedProp, + normalizedValue, + errors + ); + break; + } + } + normalizedKeyframe.set(normalizedProp, normalizedValue); + }); + if (!isSameOffset) { + normalizedKeyframes.push(normalizedKeyframe); + } + previousKeyframe = normalizedKeyframe; + previousOffset = offset; + }); + if (errors.length) { + throw animationFailed(errors); + } + return normalizedKeyframes; + } + function listenOnPlayer(player, eventName, event, callback) { + switch (eventName) { + case "start": + player.onStart(() => + callback(event && copyAnimationEvent(event, "start", player)) + ); + break; + case "done": + player.onDone(() => + callback(event && copyAnimationEvent(event, "done", player)) + ); + break; + case "destroy": + player.onDestroy(() => + callback(event && copyAnimationEvent(event, "destroy", player)) + ); + break; + } + } + function copyAnimationEvent(e, phaseName, player) { + const totalTime = player.totalTime; + const disabled = player.disabled ? true : false; + const event = makeAnimationEvent( + e.element, + e.triggerName, + e.fromState, + e.toState, + phaseName || e.phaseName, + totalTime == undefined ? e.totalTime : totalTime, + disabled + ); + const data = e["_data"]; + if (data != null) { + event["_data"] = data; + } + return event; + } + function makeAnimationEvent( + element, + triggerName, + fromState, + toState, + phaseName = "", + totalTime = 0, + disabled + ) { + return { + element, + triggerName, + fromState, + toState, + phaseName, + totalTime, + disabled: !!disabled, + }; + } + function getOrSetDefaultValue(map, key, defaultValue) { + let value = map.get(key); + if (!value) { + map.set(key, (value = defaultValue)); + } + return value; + } + function parseTimelineCommand(command) { + const separatorPos = command.indexOf(":"); + const id = command.substring(1, separatorPos); + const action = command.slice(separatorPos + 1); + return [id, action]; + } + let _contains = (elm1, elm2) => false; + let _query = (element, selector, multi) => { + return []; + }; + let _documentElement = null; + function getParentElement(element) { + const parent = element.parentNode || element.host; // consider host to support shadow DOM + if (parent === _documentElement) { + return null; + } + return parent; + } + // Define utility methods for browsers and platform-server(domino) where Element + // and utility methods exist. + const _isNode = isNode(); + if (_isNode || typeof Element !== "undefined") { + if (!isBrowser()) { + _contains = (elm1, elm2) => elm1.contains(elm2); + } else { + // Read the document element in an IIFE that's been marked pure to avoid a top-level property + // read that may prevent tree-shaking. + _documentElement = /* @__PURE__ */ (() => + document.documentElement)(); + _contains = (elm1, elm2) => { + while (elm2) { + if (elm2 === elm1) { + return true; + } + elm2 = getParentElement(elm2); + } + return false; + }; + } + _query = (element, selector, multi) => { + if (multi) { + return Array.from(element.querySelectorAll(selector)); + } + const elem = element.querySelector(selector); + return elem ? [elem] : []; + }; + } + function containsVendorPrefix(prop) { + // Webkit is the only real popular vendor prefix nowadays + // cc: http://shouldiprefix.com/ + return prop.substring(1, 6) == "ebkit"; // webkit or Webkit + } + + let _CACHED_BODY = null; + let _IS_WEBKIT = false; + function validateStyleProperty(prop) { + if (!_CACHED_BODY) { + _CACHED_BODY = getBodyNode() || {}; + _IS_WEBKIT = _CACHED_BODY.style + ? "WebkitAppearance" in _CACHED_BODY.style + : false; + } + let result = true; + if (_CACHED_BODY.style && !containsVendorPrefix(prop)) { + result = prop in _CACHED_BODY.style; + if (!result && _IS_WEBKIT) { + const camelProp = + "Webkit" + prop.charAt(0).toUpperCase() + prop.slice(1); + result = camelProp in _CACHED_BODY.style; + } + } + return result; + } + function validateWebAnimatableStyleProperty(prop) { + return ANIMATABLE_PROP_SET.has(prop); + } + function getBodyNode() { + if (typeof document != "undefined") { + return document.body; + } + return null; + } + const containsElement = _contains; + const invokeQuery = _query; + function hypenatePropsKeys(original) { + const newMap = new Map(); + original.forEach((val, prop) => { + const newProp = prop.replace(/([a-z])([A-Z])/g, "$1-$2"); + newMap.set(newProp, val); + }); + return newMap; + } + + /** + * @publicApi + */ + class NoopAnimationDriver { + validateStyleProperty(prop) { + return validateStyleProperty(prop); + } + matchesElement(_element, _selector) { + // This method is deprecated and no longer in use so we return false. + return false; + } + containsElement(elm1, elm2) { + return containsElement(elm1, elm2); + } + getParentElement(element) { + return getParentElement(element); + } + query(element, selector, multi) { + return invokeQuery(element, selector, multi); + } + computeStyle(element, prop, defaultValue) { + return defaultValue || ""; + } + animate( + element, + keyframes, + duration, + delay, + easing, + previousPlayers = [], + scrubberAccessRequested + ) { + return new _angular_animations__WEBPACK_IMPORTED_MODULE_1__.NoopAnimationPlayer( + duration, + delay + ); + } + } + NoopAnimationDriver.ɵfac = function NoopAnimationDriver_Factory(t) { + return new (t || NoopAnimationDriver)(); + }; + NoopAnimationDriver.ɵprov = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineInjectable" + ]({ + token: NoopAnimationDriver, + factory: NoopAnimationDriver.ɵfac, + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + NoopAnimationDriver, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injectable, + }, + ], + null, + null + ); + })(); + /** + * @publicApi + */ + class AnimationDriver {} + AnimationDriver.NOOP = /* @__PURE__ */ new NoopAnimationDriver(); + const ONE_SECOND = 1000; + const SUBSTITUTION_EXPR_START = "{{"; + const SUBSTITUTION_EXPR_END = "}}"; + const ENTER_CLASSNAME = "ng-enter"; + const LEAVE_CLASSNAME = "ng-leave"; + const NG_TRIGGER_CLASSNAME = "ng-trigger"; + const NG_TRIGGER_SELECTOR = ".ng-trigger"; + const NG_ANIMATING_CLASSNAME = "ng-animating"; + const NG_ANIMATING_SELECTOR = ".ng-animating"; + function resolveTimingValue(value) { + if (typeof value == "number") return value; + const matches = value.match(/^(-?[\.\d]+)(m?s)/); + if (!matches || matches.length < 2) return 0; + return _convertTimeValueToMS(parseFloat(matches[1]), matches[2]); + } + function _convertTimeValueToMS(value, unit) { + switch (unit) { + case "s": + return value * ONE_SECOND; + default: + // ms or something else + return value; + } + } + function resolveTiming(timings, errors, allowNegativeValues) { + return timings.hasOwnProperty("duration") + ? timings + : parseTimeExpression(timings, errors, allowNegativeValues); + } + function parseTimeExpression(exp, errors, allowNegativeValues) { + const regex = + /^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i; + let duration; + let delay = 0; + let easing = ""; + if (typeof exp === "string") { + const matches = exp.match(regex); + if (matches === null) { + errors.push(invalidTimingValue(exp)); + return { + duration: 0, + delay: 0, + easing: "", + }; + } + duration = _convertTimeValueToMS( + parseFloat(matches[1]), + matches[2] + ); + const delayMatch = matches[3]; + if (delayMatch != null) { + delay = _convertTimeValueToMS(parseFloat(delayMatch), matches[4]); + } + const easingVal = matches[5]; + if (easingVal) { + easing = easingVal; + } + } else { + duration = exp; + } + if (!allowNegativeValues) { + let containsErrors = false; + let startIndex = errors.length; + if (duration < 0) { + errors.push(negativeStepValue()); + containsErrors = true; + } + if (delay < 0) { + errors.push(negativeDelayValue()); + containsErrors = true; + } + if (containsErrors) { + errors.splice(startIndex, 0, invalidTimingValue(exp)); + } + } + return { + duration, + delay, + easing, + }; + } + function copyObj(obj, destination = {}) { + Object.keys(obj).forEach((prop) => { + destination[prop] = obj[prop]; + }); + return destination; + } + function convertToMap(obj) { + const styleMap = new Map(); + Object.keys(obj).forEach((prop) => { + const val = obj[prop]; + styleMap.set(prop, val); + }); + return styleMap; + } + function normalizeKeyframes(keyframes) { + if (!keyframes.length) { + return []; + } + if (keyframes[0] instanceof Map) { + return keyframes; + } + return keyframes.map((kf) => convertToMap(kf)); + } + function normalizeStyles(styles) { + const normalizedStyles = new Map(); + if (Array.isArray(styles)) { + styles.forEach((data) => copyStyles(data, normalizedStyles)); + } else { + copyStyles(styles, normalizedStyles); + } + return normalizedStyles; + } + function copyStyles(styles, destination = new Map(), backfill) { + if (backfill) { + for (let [prop, val] of backfill) { + destination.set(prop, val); + } + } + for (let [prop, val] of styles) { + destination.set(prop, val); + } + return destination; + } + function getStyleAttributeString(element, key, value) { + // Return the key-value pair string to be added to the style attribute for the + // given CSS style key. + if (value) { + return key + ":" + value + ";"; + } else { + return ""; + } + } + function writeStyleAttribute(element) { + // Read the style property of the element and manually reflect it to the + // style attribute. This is needed because Domino on platform-server doesn't + // understand the full set of allowed CSS properties and doesn't reflect some + // of them automatically. + let styleAttrValue = ""; + for (let i = 0; i < element.style.length; i++) { + const key = element.style.item(i); + styleAttrValue += getStyleAttributeString( + element, + key, + element.style.getPropertyValue(key) + ); + } + for (const key in element.style) { + // Skip internal Domino properties that don't need to be reflected. + if (!element.style.hasOwnProperty(key) || key.startsWith("_")) { + continue; + } + const dashKey = camelCaseToDashCase(key); + styleAttrValue += getStyleAttributeString( + element, + dashKey, + element.style[key] + ); + } + element.setAttribute("style", styleAttrValue); + } + function setStyles(element, styles, formerStyles) { + if (element["style"]) { + styles.forEach((val, prop) => { + const camelProp = dashCaseToCamelCase(prop); + if (formerStyles && !formerStyles.has(prop)) { + formerStyles.set(prop, element.style[camelProp]); + } + element.style[camelProp] = val; + }); + // On the server set the 'style' attribute since it's not automatically reflected. + if (isNode()) { + writeStyleAttribute(element); + } + } + } + function eraseStyles(element, styles) { + if (element["style"]) { + styles.forEach((_, prop) => { + const camelProp = dashCaseToCamelCase(prop); + element.style[camelProp] = ""; + }); + // On the server set the 'style' attribute since it's not automatically reflected. + if (isNode()) { + writeStyleAttribute(element); + } + } + } + function normalizeAnimationEntry(steps) { + if (Array.isArray(steps)) { + if (steps.length == 1) return steps[0]; + return (0, + _angular_animations__WEBPACK_IMPORTED_MODULE_1__.sequence)(steps); + } + return steps; + } + function validateStyleParams(value, options, errors) { + const params = options.params || {}; + const matches = extractStyleParams(value); + if (matches.length) { + matches.forEach((varName) => { + if (!params.hasOwnProperty(varName)) { + errors.push(invalidStyleParams(varName)); + } + }); + } + } + const PARAM_REGEX = new RegExp( + `${SUBSTITUTION_EXPR_START}\\s*(.+?)\\s*${SUBSTITUTION_EXPR_END}`, + "g" + ); + function extractStyleParams(value) { + let params = []; + if (typeof value === "string") { + let match; + while ((match = PARAM_REGEX.exec(value))) { + params.push(match[1]); + } + PARAM_REGEX.lastIndex = 0; + } + return params; + } + function interpolateParams(value, params, errors) { + const original = value.toString(); + const str = original.replace(PARAM_REGEX, (_, varName) => { + let localVal = params[varName]; + // this means that the value was never overridden by the data passed in by the user + if (localVal == null) { + errors.push(invalidParamValue(varName)); + localVal = ""; + } + return localVal.toString(); + }); + // we do this to assert that numeric values stay as they are + return str == original ? value : str; + } + function iteratorToArray(iterator) { + const arr = []; + let item = iterator.next(); + while (!item.done) { + arr.push(item.value); + item = iterator.next(); + } + return arr; + } + const DASH_CASE_REGEXP = /-+([a-z0-9])/g; + function dashCaseToCamelCase(input) { + return input.replace(DASH_CASE_REGEXP, (...m) => m[1].toUpperCase()); + } + function camelCaseToDashCase(input) { + return input.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(); + } + function allowPreviousPlayerStylesMerge(duration, delay) { + return duration === 0 || delay === 0; + } + function balancePreviousStylesIntoKeyframes( + element, + keyframes, + previousStyles + ) { + if (previousStyles.size && keyframes.length) { + let startingKeyframe = keyframes[0]; + let missingStyleProps = []; + previousStyles.forEach((val, prop) => { + if (!startingKeyframe.has(prop)) { + missingStyleProps.push(prop); + } + startingKeyframe.set(prop, val); + }); + if (missingStyleProps.length) { + for (let i = 1; i < keyframes.length; i++) { + let kf = keyframes[i]; + missingStyleProps.forEach((prop) => + kf.set(prop, computeStyle(element, prop)) + ); + } + } + } + return keyframes; + } + function visitDslNode(visitor, node, context) { + switch (node.type) { + case 7 /* AnimationMetadataType.Trigger */: + return visitor.visitTrigger(node, context); + case 0 /* AnimationMetadataType.State */: + return visitor.visitState(node, context); + case 1 /* AnimationMetadataType.Transition */: + return visitor.visitTransition(node, context); + case 2 /* AnimationMetadataType.Sequence */: + return visitor.visitSequence(node, context); + case 3 /* AnimationMetadataType.Group */: + return visitor.visitGroup(node, context); + case 4 /* AnimationMetadataType.Animate */: + return visitor.visitAnimate(node, context); + case 5 /* AnimationMetadataType.Keyframes */: + return visitor.visitKeyframes(node, context); + case 6 /* AnimationMetadataType.Style */: + return visitor.visitStyle(node, context); + case 8 /* AnimationMetadataType.Reference */: + return visitor.visitReference(node, context); + case 9 /* AnimationMetadataType.AnimateChild */: + return visitor.visitAnimateChild(node, context); + case 10 /* AnimationMetadataType.AnimateRef */: + return visitor.visitAnimateRef(node, context); + case 11 /* AnimationMetadataType.Query */: + return visitor.visitQuery(node, context); + case 12 /* AnimationMetadataType.Stagger */: + return visitor.visitStagger(node, context); + default: + throw invalidNodeType(node.type); + } + } + function computeStyle(element, prop) { + return window.getComputedStyle(element)[prop]; + } + const NG_DEV_MODE = typeof ngDevMode === "undefined" || !!ngDevMode; + function createListOfWarnings(warnings) { + const LINE_START = "\n - "; + return `${LINE_START}${warnings + .filter(Boolean) + .map((warning) => warning) + .join(LINE_START)}`; + } + function warnValidation(warnings) { + NG_DEV_MODE && + console.warn( + `animation validation warnings:${createListOfWarnings(warnings)}` + ); + } + function warnTriggerBuild(name, warnings) { + NG_DEV_MODE && + console.warn( + `The animation trigger "${name}" has built with the following warnings:${createListOfWarnings( + warnings + )}` + ); + } + function warnRegister(warnings) { + NG_DEV_MODE && + console.warn( + `Animation built with the following warnings:${createListOfWarnings( + warnings + )}` + ); + } + function triggerParsingWarnings(name, warnings) { + NG_DEV_MODE && + console.warn( + `Animation parsing for the ${name} trigger presents the following warnings:${createListOfWarnings( + warnings + )}` + ); + } + function pushUnrecognizedPropertiesWarning(warnings, props) { + if (props.length) { + warnings.push( + `The following provided properties are not recognized: ${props.join( + ", " + )}` + ); + } + } + const ANY_STATE = "*"; + function parseTransitionExpr(transitionValue, errors) { + const expressions = []; + if (typeof transitionValue == "string") { + transitionValue + .split(/\s*,\s*/) + .forEach((str) => + parseInnerTransitionStr(str, expressions, errors) + ); + } else { + expressions.push(transitionValue); + } + return expressions; + } + function parseInnerTransitionStr(eventStr, expressions, errors) { + if (eventStr[0] == ":") { + const result = parseAnimationAlias(eventStr, errors); + if (typeof result == "function") { + expressions.push(result); + return; + } + eventStr = result; + } + const match = eventStr.match( + /^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/ + ); + if (match == null || match.length < 4) { + errors.push(invalidExpression(eventStr)); + return expressions; + } + const fromState = match[1]; + const separator = match[2]; + const toState = match[3]; + expressions.push(makeLambdaFromStates(fromState, toState)); + const isFullAnyStateExpr = + fromState == ANY_STATE && toState == ANY_STATE; + if (separator[0] == "<" && !isFullAnyStateExpr) { + expressions.push(makeLambdaFromStates(toState, fromState)); + } + } + function parseAnimationAlias(alias, errors) { + switch (alias) { + case ":enter": + return "void => *"; + case ":leave": + return "* => void"; + case ":increment": + return (fromState, toState) => + parseFloat(toState) > parseFloat(fromState); + case ":decrement": + return (fromState, toState) => + parseFloat(toState) < parseFloat(fromState); + default: + errors.push(invalidTransitionAlias(alias)); + return "* => *"; + } + } + // DO NOT REFACTOR ... keep the follow set instantiations + // with the values intact (closure compiler for some reason + // removes follow-up lines that add the values outside of + // the constructor... + const TRUE_BOOLEAN_VALUES = new Set(["true", "1"]); + const FALSE_BOOLEAN_VALUES = new Set(["false", "0"]); + function makeLambdaFromStates(lhs, rhs) { + const LHS_MATCH_BOOLEAN = + TRUE_BOOLEAN_VALUES.has(lhs) || FALSE_BOOLEAN_VALUES.has(lhs); + const RHS_MATCH_BOOLEAN = + TRUE_BOOLEAN_VALUES.has(rhs) || FALSE_BOOLEAN_VALUES.has(rhs); + return (fromState, toState) => { + let lhsMatch = lhs == ANY_STATE || lhs == fromState; + let rhsMatch = rhs == ANY_STATE || rhs == toState; + if ( + !lhsMatch && + LHS_MATCH_BOOLEAN && + typeof fromState === "boolean" + ) { + lhsMatch = fromState + ? TRUE_BOOLEAN_VALUES.has(lhs) + : FALSE_BOOLEAN_VALUES.has(lhs); + } + if ( + !rhsMatch && + RHS_MATCH_BOOLEAN && + typeof toState === "boolean" + ) { + rhsMatch = toState + ? TRUE_BOOLEAN_VALUES.has(rhs) + : FALSE_BOOLEAN_VALUES.has(rhs); + } + return lhsMatch && rhsMatch; + }; + } + const SELF_TOKEN = ":self"; + const SELF_TOKEN_REGEX = new RegExp(`\s*${SELF_TOKEN}\s*,?`, "g"); + /* + * [Validation] + * The visitor code below will traverse the animation AST generated by the animation verb functions + * (the output is a tree of objects) and attempt to perform a series of validations on the data. The + * following corner-cases will be validated: + * + * 1. Overlap of animations + * Given that a CSS property cannot be animated in more than one place at the same time, it's + * important that this behavior is detected and validated. The way in which this occurs is that + * each time a style property is examined, a string-map containing the property will be updated with + * the start and end times for when the property is used within an animation step. + * + * If there are two or more parallel animations that are currently running (these are invoked by the + * group()) on the same element then the validator will throw an error. Since the start/end timing + * values are collected for each property then if the current animation step is animating the same + * property and its timing values fall anywhere into the window of time that the property is + * currently being animated within then this is what causes an error. + * + * 2. Timing values + * The validator will validate to see if a timing value of `duration delay easing` or + * `durationNumber` is valid or not. + * + * (note that upon validation the code below will replace the timing data with an object containing + * {duration,delay,easing}. + * + * 3. Offset Validation + * Each of the style() calls are allowed to have an offset value when placed inside of keyframes(). + * Offsets within keyframes() are considered valid when: + * + * - No offsets are used at all + * - Each style() entry contains an offset value + * - Each offset is between 0 and 1 + * - Each offset is greater to or equal than the previous one + * + * Otherwise an error will be thrown. + */ + function buildAnimationAst(driver, metadata, errors, warnings) { + return new AnimationAstBuilderVisitor(driver).build( + metadata, + errors, + warnings + ); + } + const ROOT_SELECTOR = ""; + class AnimationAstBuilderVisitor { + constructor(_driver) { + this._driver = _driver; + } + build(metadata, errors, warnings) { + const context = new AnimationAstBuilderContext(errors); + this._resetContextStyleTimingState(context); + const ast = visitDslNode( + this, + normalizeAnimationEntry(metadata), + context + ); + if (typeof ngDevMode === "undefined" || ngDevMode) { + if (context.unsupportedCSSPropertiesFound.size) { + pushUnrecognizedPropertiesWarning(warnings, [ + ...context.unsupportedCSSPropertiesFound.keys(), + ]); + } + } + return ast; + } + _resetContextStyleTimingState(context) { + context.currentQuerySelector = ROOT_SELECTOR; + context.collectedStyles = new Map(); + context.collectedStyles.set(ROOT_SELECTOR, new Map()); + context.currentTime = 0; + } + visitTrigger(metadata, context) { + let queryCount = (context.queryCount = 0); + let depCount = (context.depCount = 0); + const states = []; + const transitions = []; + if (metadata.name.charAt(0) == "@") { + context.errors.push(invalidTrigger()); + } + metadata.definitions.forEach((def) => { + this._resetContextStyleTimingState(context); + if (def.type == 0 /* AnimationMetadataType.State */) { + const stateDef = def; + const name = stateDef.name; + name + .toString() + .split(/\s*,\s*/) + .forEach((n) => { + stateDef.name = n; + states.push(this.visitState(stateDef, context)); + }); + stateDef.name = name; + } else if (def.type == 1 /* AnimationMetadataType.Transition */) { + const transition = this.visitTransition(def, context); + queryCount += transition.queryCount; + depCount += transition.depCount; + transitions.push(transition); + } else { + context.errors.push(invalidDefinition()); + } + }); + return { + type: 7 /* AnimationMetadataType.Trigger */, + name: metadata.name, + states, + transitions, + queryCount, + depCount, + options: null, + }; + } + visitState(metadata, context) { + const styleAst = this.visitStyle(metadata.styles, context); + const astParams = + (metadata.options && metadata.options.params) || null; + if (styleAst.containsDynamicStyles) { + const missingSubs = new Set(); + const params = astParams || {}; + styleAst.styles.forEach((style) => { + if (style instanceof Map) { + style.forEach((value) => { + extractStyleParams(value).forEach((sub) => { + if (!params.hasOwnProperty(sub)) { + missingSubs.add(sub); + } + }); + }); + } + }); + if (missingSubs.size) { + const missingSubsArr = iteratorToArray(missingSubs.values()); + context.errors.push( + invalidState(metadata.name, missingSubsArr) + ); + } + } + return { + type: 0 /* AnimationMetadataType.State */, + name: metadata.name, + style: styleAst, + options: astParams + ? { + params: astParams, + } + : null, + }; + } + visitTransition(metadata, context) { + context.queryCount = 0; + context.depCount = 0; + const animation = visitDslNode( + this, + normalizeAnimationEntry(metadata.animation), + context + ); + const matchers = parseTransitionExpr(metadata.expr, context.errors); + return { + type: 1 /* AnimationMetadataType.Transition */, + matchers, + animation, + queryCount: context.queryCount, + depCount: context.depCount, + options: normalizeAnimationOptions(metadata.options), + }; + } + visitSequence(metadata, context) { + return { + type: 2 /* AnimationMetadataType.Sequence */, + steps: metadata.steps.map((s) => visitDslNode(this, s, context)), + options: normalizeAnimationOptions(metadata.options), + }; + } + visitGroup(metadata, context) { + const currentTime = context.currentTime; + let furthestTime = 0; + const steps = metadata.steps.map((step) => { + context.currentTime = currentTime; + const innerAst = visitDslNode(this, step, context); + furthestTime = Math.max(furthestTime, context.currentTime); + return innerAst; + }); + context.currentTime = furthestTime; + return { + type: 3 /* AnimationMetadataType.Group */, + steps, + options: normalizeAnimationOptions(metadata.options), + }; + } + visitAnimate(metadata, context) { + const timingAst = constructTimingAst( + metadata.timings, + context.errors + ); + context.currentAnimateTimings = timingAst; + let styleAst; + let styleMetadata = metadata.styles + ? metadata.styles + : (0, _angular_animations__WEBPACK_IMPORTED_MODULE_1__.style)({}); + if (styleMetadata.type == 5 /* AnimationMetadataType.Keyframes */) { + styleAst = this.visitKeyframes(styleMetadata, context); + } else { + let styleMetadata = metadata.styles; + let isEmpty = false; + if (!styleMetadata) { + isEmpty = true; + const newStyleData = {}; + if (timingAst.easing) { + newStyleData["easing"] = timingAst.easing; + } + styleMetadata = (0, + _angular_animations__WEBPACK_IMPORTED_MODULE_1__.style)( + newStyleData + ); + } + context.currentTime += timingAst.duration + timingAst.delay; + const _styleAst = this.visitStyle(styleMetadata, context); + _styleAst.isEmptyStep = isEmpty; + styleAst = _styleAst; + } + context.currentAnimateTimings = null; + return { + type: 4 /* AnimationMetadataType.Animate */, + timings: timingAst, + style: styleAst, + options: null, + }; + } + visitStyle(metadata, context) { + const ast = this._makeStyleAst(metadata, context); + this._validateStyleAst(ast, context); + return ast; + } + _makeStyleAst(metadata, context) { + const styles = []; + const metadataStyles = Array.isArray(metadata.styles) + ? metadata.styles + : [metadata.styles]; + for (let styleTuple of metadataStyles) { + if (typeof styleTuple === "string") { + if ( + styleTuple === + _angular_animations__WEBPACK_IMPORTED_MODULE_1__.AUTO_STYLE + ) { + styles.push(styleTuple); + } else { + context.errors.push(invalidStyleValue(styleTuple)); + } + } else { + styles.push(convertToMap(styleTuple)); + } + } + let containsDynamicStyles = false; + let collectedEasing = null; + styles.forEach((styleData) => { + if (styleData instanceof Map) { + if (styleData.has("easing")) { + collectedEasing = styleData.get("easing"); + styleData.delete("easing"); + } + if (!containsDynamicStyles) { + for (let value of styleData.values()) { + if ( + value.toString().indexOf(SUBSTITUTION_EXPR_START) >= 0 + ) { + containsDynamicStyles = true; + break; + } + } + } + } + }); + return { + type: 6 /* AnimationMetadataType.Style */, + styles, + easing: collectedEasing, + offset: metadata.offset, + containsDynamicStyles, + options: null, + }; + } + _validateStyleAst(ast, context) { + const timings = context.currentAnimateTimings; + let endTime = context.currentTime; + let startTime = context.currentTime; + if (timings && startTime > 0) { + startTime -= timings.duration + timings.delay; + } + ast.styles.forEach((tuple) => { + if (typeof tuple === "string") return; + tuple.forEach((value, prop) => { + if (typeof ngDevMode === "undefined" || ngDevMode) { + if (!this._driver.validateStyleProperty(prop)) { + tuple.delete(prop); + context.unsupportedCSSPropertiesFound.add(prop); + return; + } + } + // This is guaranteed to have a defined Map at this querySelector location making it + // safe to add the assertion here. It is set as a default empty map in prior methods. + const collectedStyles = context.collectedStyles.get( + context.currentQuerySelector + ); + const collectedEntry = collectedStyles.get(prop); + let updateCollectedStyle = true; + if (collectedEntry) { + if ( + startTime != endTime && + startTime >= collectedEntry.startTime && + endTime <= collectedEntry.endTime + ) { + context.errors.push( + invalidParallelAnimation( + prop, + collectedEntry.startTime, + collectedEntry.endTime, + startTime, + endTime + ) + ); + updateCollectedStyle = false; + } + // we always choose the smaller start time value since we + // want to have a record of the entire animation window where + // the style property is being animated in between + startTime = collectedEntry.startTime; + } + if (updateCollectedStyle) { + collectedStyles.set(prop, { + startTime, + endTime, + }); + } + if (context.options) { + validateStyleParams(value, context.options, context.errors); + } + }); + }); + } + visitKeyframes(metadata, context) { + const ast = { + type: 5 /* AnimationMetadataType.Keyframes */, + styles: [], + options: null, + }; + if (!context.currentAnimateTimings) { + context.errors.push(invalidKeyframes()); + return ast; + } + const MAX_KEYFRAME_OFFSET = 1; + let totalKeyframesWithOffsets = 0; + const offsets = []; + let offsetsOutOfOrder = false; + let keyframesOutOfRange = false; + let previousOffset = 0; + const keyframes = metadata.steps.map((styles) => { + const style = this._makeStyleAst(styles, context); + let offsetVal = + style.offset != null + ? style.offset + : consumeOffset(style.styles); + let offset = 0; + if (offsetVal != null) { + totalKeyframesWithOffsets++; + offset = style.offset = offsetVal; + } + keyframesOutOfRange = + keyframesOutOfRange || offset < 0 || offset > 1; + offsetsOutOfOrder = offsetsOutOfOrder || offset < previousOffset; + previousOffset = offset; + offsets.push(offset); + return style; + }); + if (keyframesOutOfRange) { + context.errors.push(invalidOffset()); + } + if (offsetsOutOfOrder) { + context.errors.push(keyframeOffsetsOutOfOrder()); + } + const length = metadata.steps.length; + let generatedOffset = 0; + if ( + totalKeyframesWithOffsets > 0 && + totalKeyframesWithOffsets < length + ) { + context.errors.push(keyframesMissingOffsets()); + } else if (totalKeyframesWithOffsets == 0) { + generatedOffset = MAX_KEYFRAME_OFFSET / (length - 1); + } + const limit = length - 1; + const currentTime = context.currentTime; + const currentAnimateTimings = context.currentAnimateTimings; + const animateDuration = currentAnimateTimings.duration; + keyframes.forEach((kf, i) => { + const offset = + generatedOffset > 0 + ? i == limit + ? 1 + : generatedOffset * i + : offsets[i]; + const durationUpToThisFrame = offset * animateDuration; + context.currentTime = + currentTime + + currentAnimateTimings.delay + + durationUpToThisFrame; + currentAnimateTimings.duration = durationUpToThisFrame; + this._validateStyleAst(kf, context); + kf.offset = offset; + ast.styles.push(kf); + }); + return ast; + } + visitReference(metadata, context) { + return { + type: 8 /* AnimationMetadataType.Reference */, + animation: visitDslNode( + this, + normalizeAnimationEntry(metadata.animation), + context + ), + options: normalizeAnimationOptions(metadata.options), + }; + } + visitAnimateChild(metadata, context) { + context.depCount++; + return { + type: 9 /* AnimationMetadataType.AnimateChild */, + options: normalizeAnimationOptions(metadata.options), + }; + } + visitAnimateRef(metadata, context) { + return { + type: 10 /* AnimationMetadataType.AnimateRef */, + animation: this.visitReference(metadata.animation, context), + options: normalizeAnimationOptions(metadata.options), + }; + } + visitQuery(metadata, context) { + const parentSelector = context.currentQuerySelector; + const options = metadata.options || {}; + context.queryCount++; + context.currentQuery = metadata; + const [selector, includeSelf] = normalizeSelector( + metadata.selector + ); + context.currentQuerySelector = parentSelector.length + ? parentSelector + " " + selector + : selector; + getOrSetDefaultValue( + context.collectedStyles, + context.currentQuerySelector, + new Map() + ); + const animation = visitDslNode( + this, + normalizeAnimationEntry(metadata.animation), + context + ); + context.currentQuery = null; + context.currentQuerySelector = parentSelector; + return { + type: 11 /* AnimationMetadataType.Query */, + selector, + limit: options.limit || 0, + optional: !!options.optional, + includeSelf, + animation, + originalSelector: metadata.selector, + options: normalizeAnimationOptions(metadata.options), + }; + } + visitStagger(metadata, context) { + if (!context.currentQuery) { + context.errors.push(invalidStagger()); + } + const timings = + metadata.timings === "full" + ? { + duration: 0, + delay: 0, + easing: "full", + } + : resolveTiming(metadata.timings, context.errors, true); + return { + type: 12 /* AnimationMetadataType.Stagger */, + animation: visitDslNode( + this, + normalizeAnimationEntry(metadata.animation), + context + ), + timings, + options: null, + }; + } + } + function normalizeSelector(selector) { + const hasAmpersand = selector + .split(/\s*,\s*/) + .find((token) => token == SELF_TOKEN) + ? true + : false; + if (hasAmpersand) { + selector = selector.replace(SELF_TOKEN_REGEX, ""); + } + // Note: the :enter and :leave aren't normalized here since those + // selectors are filled in at runtime during timeline building + selector = selector + .replace(/@\*/g, NG_TRIGGER_SELECTOR) + .replace( + /@\w+/g, + (match) => NG_TRIGGER_SELECTOR + "-" + match.slice(1) + ) + .replace(/:animating/g, NG_ANIMATING_SELECTOR); + return [selector, hasAmpersand]; + } + function normalizeParams(obj) { + return obj ? copyObj(obj) : null; + } + class AnimationAstBuilderContext { + constructor(errors) { + this.errors = errors; + this.queryCount = 0; + this.depCount = 0; + this.currentTransition = null; + this.currentQuery = null; + this.currentQuerySelector = null; + this.currentAnimateTimings = null; + this.currentTime = 0; + this.collectedStyles = new Map(); + this.options = null; + this.unsupportedCSSPropertiesFound = new Set(); + } + } + function consumeOffset(styles) { + if (typeof styles == "string") return null; + let offset = null; + if (Array.isArray(styles)) { + styles.forEach((styleTuple) => { + if (styleTuple instanceof Map && styleTuple.has("offset")) { + const obj = styleTuple; + offset = parseFloat(obj.get("offset")); + obj.delete("offset"); + } + }); + } else if (styles instanceof Map && styles.has("offset")) { + const obj = styles; + offset = parseFloat(obj.get("offset")); + obj.delete("offset"); + } + return offset; + } + function constructTimingAst(value, errors) { + if (value.hasOwnProperty("duration")) { + return value; + } + if (typeof value == "number") { + const duration = resolveTiming(value, errors).duration; + return makeTimingAst(duration, 0, ""); + } + const strValue = value; + const isDynamic = strValue + .split(/\s+/) + .some((v) => v.charAt(0) == "{" && v.charAt(1) == "{"); + if (isDynamic) { + const ast = makeTimingAst(0, 0, ""); + ast.dynamic = true; + ast.strValue = strValue; + return ast; + } + const timings = resolveTiming(strValue, errors); + return makeTimingAst(timings.duration, timings.delay, timings.easing); + } + function normalizeAnimationOptions(options) { + if (options) { + options = copyObj(options); + if (options["params"]) { + options["params"] = normalizeParams(options["params"]); + } + } else { + options = {}; + } + return options; + } + function makeTimingAst(duration, delay, easing) { + return { + duration, + delay, + easing, + }; + } + function createTimelineInstruction( + element, + keyframes, + preStyleProps, + postStyleProps, + duration, + delay, + easing = null, + subTimeline = false + ) { + return { + type: 1 /* AnimationTransitionInstructionType.TimelineAnimation */, + element, + keyframes, + preStyleProps, + postStyleProps, + duration, + delay, + totalTime: duration + delay, + easing, + subTimeline, + }; + } + class ElementInstructionMap { + constructor() { + this._map = new Map(); + } + get(element) { + return this._map.get(element) || []; + } + append(element, instructions) { + let existingInstructions = this._map.get(element); + if (!existingInstructions) { + this._map.set(element, (existingInstructions = [])); + } + existingInstructions.push(...instructions); + } + has(element) { + return this._map.has(element); + } + clear() { + this._map.clear(); + } + } + const ONE_FRAME_IN_MILLISECONDS = 1; + const ENTER_TOKEN = ":enter"; + const ENTER_TOKEN_REGEX = new RegExp(ENTER_TOKEN, "g"); + const LEAVE_TOKEN = ":leave"; + const LEAVE_TOKEN_REGEX = new RegExp(LEAVE_TOKEN, "g"); + /* + * The code within this file aims to generate web-animations-compatible keyframes from Angular's + * animation DSL code. + * + * The code below will be converted from: + * + * ``` + * sequence([ + * style({ opacity: 0 }), + * animate(1000, style({ opacity: 0 })) + * ]) + * ``` + * + * To: + * ``` + * keyframes = [{ opacity: 0, offset: 0 }, { opacity: 1, offset: 1 }] + * duration = 1000 + * delay = 0 + * easing = '' + * ``` + * + * For this operation to cover the combination of animation verbs (style, animate, group, etc...) a + * combination of AST traversal and merge-sort-like algorithms are used. + * + * [AST Traversal] + * Each of the animation verbs, when executed, will return an string-map object representing what + * type of action it is (style, animate, group, etc...) and the data associated with it. This means + * that when functional composition mix of these functions is evaluated (like in the example above) + * then it will end up producing a tree of objects representing the animation itself. + * + * When this animation object tree is processed by the visitor code below it will visit each of the + * verb statements within the visitor. And during each visit it will build the context of the + * animation keyframes by interacting with the `TimelineBuilder`. + * + * [TimelineBuilder] + * This class is responsible for tracking the styles and building a series of keyframe objects for a + * timeline between a start and end time. The builder starts off with an initial timeline and each + * time the AST comes across a `group()`, `keyframes()` or a combination of the two within a + * `sequence()` then it will generate a sub timeline for each step as well as a new one after + * they are complete. + * + * As the AST is traversed, the timing state on each of the timelines will be incremented. If a sub + * timeline was created (based on one of the cases above) then the parent timeline will attempt to + * merge the styles used within the sub timelines into itself (only with group() this will happen). + * This happens with a merge operation (much like how the merge works in mergeSort) and it will only + * copy the most recently used styles from the sub timelines into the parent timeline. This ensures + * that if the styles are used later on in another phase of the animation then they will be the most + * up-to-date values. + * + * [How Missing Styles Are Updated] + * Each timeline has a `backFill` property which is responsible for filling in new styles into + * already processed keyframes if a new style shows up later within the animation sequence. + * + * ``` + * sequence([ + * style({ width: 0 }), + * animate(1000, style({ width: 100 })), + * animate(1000, style({ width: 200 })), + * animate(1000, style({ width: 300 })) + * animate(1000, style({ width: 400, height: 400 })) // notice how `height` doesn't exist anywhere + * else + * ]) + * ``` + * + * What is happening here is that the `height` value is added later in the sequence, but is missing + * from all previous animation steps. Therefore when a keyframe is created it would also be missing + * from all previous keyframes up until where it is first used. For the timeline keyframe generation + * to properly fill in the style it will place the previous value (the value from the parent + * timeline) or a default value of `*` into the backFill map. The `copyStyles` method in util.ts + * handles propagating that backfill map to the styles object. + * + * When a sub-timeline is created it will have its own backFill property. This is done so that + * styles present within the sub-timeline do not accidentally seep into the previous/future timeline + * keyframes + * + * [Validation] + * The code in this file is not responsible for validation. That functionality happens with within + * the `AnimationValidatorVisitor` code. + */ + function buildAnimationTimelines( + driver, + rootElement, + ast, + enterClassName, + leaveClassName, + startingStyles = new Map(), + finalStyles = new Map(), + options, + subInstructions, + errors = [] + ) { + return new AnimationTimelineBuilderVisitor().buildKeyframes( + driver, + rootElement, + ast, + enterClassName, + leaveClassName, + startingStyles, + finalStyles, + options, + subInstructions, + errors + ); + } + class AnimationTimelineBuilderVisitor { + buildKeyframes( + driver, + rootElement, + ast, + enterClassName, + leaveClassName, + startingStyles, + finalStyles, + options, + subInstructions, + errors = [] + ) { + subInstructions = subInstructions || new ElementInstructionMap(); + const context = new AnimationTimelineContext( + driver, + rootElement, + subInstructions, + enterClassName, + leaveClassName, + errors, + [] + ); + context.options = options; + const delay = options.delay ? resolveTimingValue(options.delay) : 0; + context.currentTimeline.delayNextStep(delay); + context.currentTimeline.setStyles( + [startingStyles], + null, + context.errors, + options + ); + visitDslNode(this, ast, context); + // this checks to see if an actual animation happened + const timelines = context.timelines.filter((timeline) => + timeline.containsAnimation() + ); + // note: we just want to apply the final styles for the rootElement, so we do not + // just apply the styles to the last timeline but the last timeline which + // element is the root one (basically `*`-styles are replaced with the actual + // state style values only for the root element) + if (timelines.length && finalStyles.size) { + let lastRootTimeline; + for (let i = timelines.length - 1; i >= 0; i--) { + const timeline = timelines[i]; + if (timeline.element === rootElement) { + lastRootTimeline = timeline; + break; + } + } + if ( + lastRootTimeline && + !lastRootTimeline.allowOnlyTimelineStyles() + ) { + lastRootTimeline.setStyles( + [finalStyles], + null, + context.errors, + options + ); + } + } + return timelines.length + ? timelines.map((timeline) => timeline.buildKeyframes()) + : [ + createTimelineInstruction( + rootElement, + [], + [], + [], + 0, + delay, + "", + false + ), + ]; + } + visitTrigger(ast, context) { + // these values are not visited in this AST + } + visitState(ast, context) { + // these values are not visited in this AST + } + visitTransition(ast, context) { + // these values are not visited in this AST + } + visitAnimateChild(ast, context) { + const elementInstructions = context.subInstructions.get( + context.element + ); + if (elementInstructions) { + const innerContext = context.createSubContext(ast.options); + const startTime = context.currentTimeline.currentTime; + const endTime = this._visitSubInstructions( + elementInstructions, + innerContext, + innerContext.options + ); + if (startTime != endTime) { + // we do this on the upper context because we created a sub context for + // the sub child animations + context.transformIntoNewTimeline(endTime); + } + } + context.previousNode = ast; + } + visitAnimateRef(ast, context) { + const innerContext = context.createSubContext(ast.options); + innerContext.transformIntoNewTimeline(); + this._applyAnimationRefDelays( + [ast.options, ast.animation.options], + context, + innerContext + ); + this.visitReference(ast.animation, innerContext); + context.transformIntoNewTimeline( + innerContext.currentTimeline.currentTime + ); + context.previousNode = ast; + } + _applyAnimationRefDelays( + animationsRefsOptions, + context, + innerContext + ) { + for (const animationRefOptions of animationsRefsOptions) { + const animationDelay = animationRefOptions?.delay; + if (animationDelay) { + const animationDelayValue = + typeof animationDelay === "number" + ? animationDelay + : resolveTimingValue( + interpolateParams( + animationDelay, + animationRefOptions?.params ?? {}, + context.errors + ) + ); + innerContext.delayNextStep(animationDelayValue); + } + } + } + _visitSubInstructions(instructions, context, options) { + const startTime = context.currentTimeline.currentTime; + let furthestTime = startTime; + // this is a special-case for when a user wants to skip a sub + // animation from being fired entirely. + const duration = + options.duration != null + ? resolveTimingValue(options.duration) + : null; + const delay = + options.delay != null ? resolveTimingValue(options.delay) : null; + if (duration !== 0) { + instructions.forEach((instruction) => { + const instructionTimings = context.appendInstructionToTimeline( + instruction, + duration, + delay + ); + furthestTime = Math.max( + furthestTime, + instructionTimings.duration + instructionTimings.delay + ); + }); + } + return furthestTime; + } + visitReference(ast, context) { + context.updateOptions(ast.options, true); + visitDslNode(this, ast.animation, context); + context.previousNode = ast; + } + visitSequence(ast, context) { + const subContextCount = context.subContextCount; + let ctx = context; + const options = ast.options; + if (options && (options.params || options.delay)) { + ctx = context.createSubContext(options); + ctx.transformIntoNewTimeline(); + if (options.delay != null) { + if ( + ctx.previousNode.type == 6 /* AnimationMetadataType.Style */ + ) { + ctx.currentTimeline.snapshotCurrentStyles(); + ctx.previousNode = DEFAULT_NOOP_PREVIOUS_NODE; + } + const delay = resolveTimingValue(options.delay); + ctx.delayNextStep(delay); + } + } + if (ast.steps.length) { + ast.steps.forEach((s) => visitDslNode(this, s, ctx)); + // this is here just in case the inner steps only contain or end with a style() call + ctx.currentTimeline.applyStylesToKeyframe(); + // this means that some animation function within the sequence + // ended up creating a sub timeline (which means the current + // timeline cannot overlap with the contents of the sequence) + if (ctx.subContextCount > subContextCount) { + ctx.transformIntoNewTimeline(); + } + } + context.previousNode = ast; + } + visitGroup(ast, context) { + const innerTimelines = []; + let furthestTime = context.currentTimeline.currentTime; + const delay = + ast.options && ast.options.delay + ? resolveTimingValue(ast.options.delay) + : 0; + ast.steps.forEach((s) => { + const innerContext = context.createSubContext(ast.options); + if (delay) { + innerContext.delayNextStep(delay); + } + visitDslNode(this, s, innerContext); + furthestTime = Math.max( + furthestTime, + innerContext.currentTimeline.currentTime + ); + innerTimelines.push(innerContext.currentTimeline); + }); + // this operation is run after the AST loop because otherwise + // if the parent timeline's collected styles were updated then + // it would pass in invalid data into the new-to-be forked items + innerTimelines.forEach((timeline) => + context.currentTimeline.mergeTimelineCollectedStyles(timeline) + ); + context.transformIntoNewTimeline(furthestTime); + context.previousNode = ast; + } + _visitTiming(ast, context) { + if (ast.dynamic) { + const strValue = ast.strValue; + const timingValue = context.params + ? interpolateParams(strValue, context.params, context.errors) + : strValue; + return resolveTiming(timingValue, context.errors); + } else { + return { + duration: ast.duration, + delay: ast.delay, + easing: ast.easing, + }; + } + } + visitAnimate(ast, context) { + const timings = (context.currentAnimateTimings = this._visitTiming( + ast.timings, + context + )); + const timeline = context.currentTimeline; + if (timings.delay) { + context.incrementTime(timings.delay); + timeline.snapshotCurrentStyles(); + } + const style = ast.style; + if (style.type == 5 /* AnimationMetadataType.Keyframes */) { + this.visitKeyframes(style, context); + } else { + context.incrementTime(timings.duration); + this.visitStyle(style, context); + timeline.applyStylesToKeyframe(); + } + context.currentAnimateTimings = null; + context.previousNode = ast; + } + visitStyle(ast, context) { + const timeline = context.currentTimeline; + const timings = context.currentAnimateTimings; + // this is a special case for when a style() call + // directly follows an animate() call (but not inside of an animate() call) + if (!timings && timeline.hasCurrentStyleProperties()) { + timeline.forwardFrame(); + } + const easing = (timings && timings.easing) || ast.easing; + if (ast.isEmptyStep) { + timeline.applyEmptyStep(easing); + } else { + timeline.setStyles( + ast.styles, + easing, + context.errors, + context.options + ); + } + context.previousNode = ast; + } + visitKeyframes(ast, context) { + const currentAnimateTimings = context.currentAnimateTimings; + const startTime = context.currentTimeline.duration; + const duration = currentAnimateTimings.duration; + const innerContext = context.createSubContext(); + const innerTimeline = innerContext.currentTimeline; + innerTimeline.easing = currentAnimateTimings.easing; + ast.styles.forEach((step) => { + const offset = step.offset || 0; + innerTimeline.forwardTime(offset * duration); + innerTimeline.setStyles( + step.styles, + step.easing, + context.errors, + context.options + ); + innerTimeline.applyStylesToKeyframe(); + }); + // this will ensure that the parent timeline gets all the styles from + // the child even if the new timeline below is not used + context.currentTimeline.mergeTimelineCollectedStyles(innerTimeline); + // we do this because the window between this timeline and the sub timeline + // should ensure that the styles within are exactly the same as they were before + context.transformIntoNewTimeline(startTime + duration); + context.previousNode = ast; + } + visitQuery(ast, context) { + // in the event that the first step before this is a style step we need + // to ensure the styles are applied before the children are animated + const startTime = context.currentTimeline.currentTime; + const options = ast.options || {}; + const delay = options.delay ? resolveTimingValue(options.delay) : 0; + if ( + delay && + (context.previousNode.type === + 6 /* AnimationMetadataType.Style */ || + (startTime == 0 && + context.currentTimeline.hasCurrentStyleProperties())) + ) { + context.currentTimeline.snapshotCurrentStyles(); + context.previousNode = DEFAULT_NOOP_PREVIOUS_NODE; + } + let furthestTime = startTime; + const elms = context.invokeQuery( + ast.selector, + ast.originalSelector, + ast.limit, + ast.includeSelf, + options.optional ? true : false, + context.errors + ); + context.currentQueryTotal = elms.length; + let sameElementTimeline = null; + elms.forEach((element, i) => { + context.currentQueryIndex = i; + const innerContext = context.createSubContext( + ast.options, + element + ); + if (delay) { + innerContext.delayNextStep(delay); + } + if (element === context.element) { + sameElementTimeline = innerContext.currentTimeline; + } + visitDslNode(this, ast.animation, innerContext); + // this is here just incase the inner steps only contain or end + // with a style() call (which is here to signal that this is a preparatory + // call to style an element before it is animated again) + innerContext.currentTimeline.applyStylesToKeyframe(); + const endTime = innerContext.currentTimeline.currentTime; + furthestTime = Math.max(furthestTime, endTime); + }); + context.currentQueryIndex = 0; + context.currentQueryTotal = 0; + context.transformIntoNewTimeline(furthestTime); + if (sameElementTimeline) { + context.currentTimeline.mergeTimelineCollectedStyles( + sameElementTimeline + ); + context.currentTimeline.snapshotCurrentStyles(); + } + context.previousNode = ast; + } + visitStagger(ast, context) { + const parentContext = context.parentContext; + const tl = context.currentTimeline; + const timings = ast.timings; + const duration = Math.abs(timings.duration); + const maxTime = duration * (context.currentQueryTotal - 1); + let delay = duration * context.currentQueryIndex; + let staggerTransformer = + timings.duration < 0 ? "reverse" : timings.easing; + switch (staggerTransformer) { + case "reverse": + delay = maxTime - delay; + break; + case "full": + delay = parentContext.currentStaggerTime; + break; + } + const timeline = context.currentTimeline; + if (delay) { + timeline.delayNextStep(delay); + } + const startingTime = timeline.currentTime; + visitDslNode(this, ast.animation, context); + context.previousNode = ast; + // time = duration + delay + // the reason why this computation is so complex is because + // the inner timeline may either have a delay value or a stretched + // keyframe depending on if a subtimeline is not used or is used. + parentContext.currentStaggerTime = + tl.currentTime - + startingTime + + (tl.startTime - parentContext.currentTimeline.startTime); + } + } + const DEFAULT_NOOP_PREVIOUS_NODE = {}; + class AnimationTimelineContext { + constructor( + _driver, + element, + subInstructions, + _enterClassName, + _leaveClassName, + errors, + timelines, + initialTimeline + ) { + this._driver = _driver; + this.element = element; + this.subInstructions = subInstructions; + this._enterClassName = _enterClassName; + this._leaveClassName = _leaveClassName; + this.errors = errors; + this.timelines = timelines; + this.parentContext = null; + this.currentAnimateTimings = null; + this.previousNode = DEFAULT_NOOP_PREVIOUS_NODE; + this.subContextCount = 0; + this.options = {}; + this.currentQueryIndex = 0; + this.currentQueryTotal = 0; + this.currentStaggerTime = 0; + this.currentTimeline = + initialTimeline || new TimelineBuilder(this._driver, element, 0); + timelines.push(this.currentTimeline); + } + get params() { + return this.options.params; + } + updateOptions(options, skipIfExists) { + if (!options) return; + const newOptions = options; + let optionsToUpdate = this.options; + // NOTE: this will get patched up when other animation methods support duration overrides + if (newOptions.duration != null) { + optionsToUpdate.duration = resolveTimingValue( + newOptions.duration + ); + } + if (newOptions.delay != null) { + optionsToUpdate.delay = resolveTimingValue(newOptions.delay); + } + const newParams = newOptions.params; + if (newParams) { + let paramsToUpdate = optionsToUpdate.params; + if (!paramsToUpdate) { + paramsToUpdate = this.options.params = {}; + } + Object.keys(newParams).forEach((name) => { + if (!skipIfExists || !paramsToUpdate.hasOwnProperty(name)) { + paramsToUpdate[name] = interpolateParams( + newParams[name], + paramsToUpdate, + this.errors + ); + } + }); + } + } + _copyOptions() { + const options = {}; + if (this.options) { + const oldParams = this.options.params; + if (oldParams) { + const params = (options["params"] = {}); + Object.keys(oldParams).forEach((name) => { + params[name] = oldParams[name]; + }); + } + } + return options; + } + createSubContext(options = null, element, newTime) { + const target = element || this.element; + const context = new AnimationTimelineContext( + this._driver, + target, + this.subInstructions, + this._enterClassName, + this._leaveClassName, + this.errors, + this.timelines, + this.currentTimeline.fork(target, newTime || 0) + ); + context.previousNode = this.previousNode; + context.currentAnimateTimings = this.currentAnimateTimings; + context.options = this._copyOptions(); + context.updateOptions(options); + context.currentQueryIndex = this.currentQueryIndex; + context.currentQueryTotal = this.currentQueryTotal; + context.parentContext = this; + this.subContextCount++; + return context; + } + transformIntoNewTimeline(newTime) { + this.previousNode = DEFAULT_NOOP_PREVIOUS_NODE; + this.currentTimeline = this.currentTimeline.fork( + this.element, + newTime + ); + this.timelines.push(this.currentTimeline); + return this.currentTimeline; + } + appendInstructionToTimeline(instruction, duration, delay) { + const updatedTimings = { + duration: duration != null ? duration : instruction.duration, + delay: + this.currentTimeline.currentTime + + (delay != null ? delay : 0) + + instruction.delay, + easing: "", + }; + const builder = new SubTimelineBuilder( + this._driver, + instruction.element, + instruction.keyframes, + instruction.preStyleProps, + instruction.postStyleProps, + updatedTimings, + instruction.stretchStartingKeyframe + ); + this.timelines.push(builder); + return updatedTimings; + } + incrementTime(time) { + this.currentTimeline.forwardTime( + this.currentTimeline.duration + time + ); + } + delayNextStep(delay) { + // negative delays are not yet supported + if (delay > 0) { + this.currentTimeline.delayNextStep(delay); + } + } + invokeQuery( + selector, + originalSelector, + limit, + includeSelf, + optional, + errors + ) { + let results = []; + if (includeSelf) { + results.push(this.element); + } + if (selector.length > 0) { + // only if :self is used then the selector can be empty + selector = selector.replace( + ENTER_TOKEN_REGEX, + "." + this._enterClassName + ); + selector = selector.replace( + LEAVE_TOKEN_REGEX, + "." + this._leaveClassName + ); + const multi = limit != 1; + let elements = this._driver.query(this.element, selector, multi); + if (limit !== 0) { + elements = + limit < 0 + ? elements.slice(elements.length + limit, elements.length) + : elements.slice(0, limit); + } + results.push(...elements); + } + if (!optional && results.length == 0) { + errors.push(invalidQuery(originalSelector)); + } + return results; + } + } + class TimelineBuilder { + constructor( + _driver, + element, + startTime, + _elementTimelineStylesLookup + ) { + this._driver = _driver; + this.element = element; + this.startTime = startTime; + this._elementTimelineStylesLookup = _elementTimelineStylesLookup; + this.duration = 0; + this._previousKeyframe = new Map(); + this._currentKeyframe = new Map(); + this._keyframes = new Map(); + this._styleSummary = new Map(); + this._localTimelineStyles = new Map(); + this._pendingStyles = new Map(); + this._backFill = new Map(); + this._currentEmptyStepKeyframe = null; + if (!this._elementTimelineStylesLookup) { + this._elementTimelineStylesLookup = new Map(); + } + this._globalTimelineStyles = + this._elementTimelineStylesLookup.get(element); + if (!this._globalTimelineStyles) { + this._globalTimelineStyles = this._localTimelineStyles; + this._elementTimelineStylesLookup.set( + element, + this._localTimelineStyles + ); + } + this._loadKeyframe(); + } + containsAnimation() { + switch (this._keyframes.size) { + case 0: + return false; + case 1: + return this.hasCurrentStyleProperties(); + default: + return true; + } + } + hasCurrentStyleProperties() { + return this._currentKeyframe.size > 0; + } + get currentTime() { + return this.startTime + this.duration; + } + delayNextStep(delay) { + // in the event that a style() step is placed right before a stagger() + // and that style() step is the very first style() value in the animation + // then we need to make a copy of the keyframe [0, copy, 1] so that the delay + // properly applies the style() values to work with the stagger... + const hasPreStyleStep = + this._keyframes.size === 1 && this._pendingStyles.size; + if (this.duration || hasPreStyleStep) { + this.forwardTime(this.currentTime + delay); + if (hasPreStyleStep) { + this.snapshotCurrentStyles(); + } + } else { + this.startTime += delay; + } + } + fork(element, currentTime) { + this.applyStylesToKeyframe(); + return new TimelineBuilder( + this._driver, + element, + currentTime || this.currentTime, + this._elementTimelineStylesLookup + ); + } + _loadKeyframe() { + if (this._currentKeyframe) { + this._previousKeyframe = this._currentKeyframe; + } + this._currentKeyframe = this._keyframes.get(this.duration); + if (!this._currentKeyframe) { + this._currentKeyframe = new Map(); + this._keyframes.set(this.duration, this._currentKeyframe); + } + } + forwardFrame() { + this.duration += ONE_FRAME_IN_MILLISECONDS; + this._loadKeyframe(); + } + forwardTime(time) { + this.applyStylesToKeyframe(); + this.duration = time; + this._loadKeyframe(); + } + _updateStyle(prop, value) { + this._localTimelineStyles.set(prop, value); + this._globalTimelineStyles.set(prop, value); + this._styleSummary.set(prop, { + time: this.currentTime, + value, + }); + } + allowOnlyTimelineStyles() { + return this._currentEmptyStepKeyframe !== this._currentKeyframe; + } + applyEmptyStep(easing) { + if (easing) { + this._previousKeyframe.set("easing", easing); + } + // special case for animate(duration): + // all missing styles are filled with a `*` value then + // if any destination styles are filled in later on the same + // keyframe then they will override the overridden styles + // We use `_globalTimelineStyles` here because there may be + // styles in previous keyframes that are not present in this timeline + for (let [prop, value] of this._globalTimelineStyles) { + this._backFill.set( + prop, + value || + _angular_animations__WEBPACK_IMPORTED_MODULE_1__.AUTO_STYLE + ); + this._currentKeyframe.set( + prop, + _angular_animations__WEBPACK_IMPORTED_MODULE_1__.AUTO_STYLE + ); + } + this._currentEmptyStepKeyframe = this._currentKeyframe; + } + setStyles(input, easing, errors, options) { + if (easing) { + this._previousKeyframe.set("easing", easing); + } + const params = (options && options.params) || {}; + const styles = flattenStyles(input, this._globalTimelineStyles); + for (let [prop, value] of styles) { + const val = interpolateParams(value, params, errors); + this._pendingStyles.set(prop, val); + if (!this._localTimelineStyles.has(prop)) { + this._backFill.set( + prop, + this._globalTimelineStyles.get(prop) ?? + _angular_animations__WEBPACK_IMPORTED_MODULE_1__.AUTO_STYLE + ); + } + this._updateStyle(prop, val); + } + } + applyStylesToKeyframe() { + if (this._pendingStyles.size == 0) return; + this._pendingStyles.forEach((val, prop) => { + this._currentKeyframe.set(prop, val); + }); + this._pendingStyles.clear(); + this._localTimelineStyles.forEach((val, prop) => { + if (!this._currentKeyframe.has(prop)) { + this._currentKeyframe.set(prop, val); + } + }); + } + snapshotCurrentStyles() { + for (let [prop, val] of this._localTimelineStyles) { + this._pendingStyles.set(prop, val); + this._updateStyle(prop, val); + } + } + getFinalKeyframe() { + return this._keyframes.get(this.duration); + } + get properties() { + const properties = []; + for (let prop in this._currentKeyframe) { + properties.push(prop); + } + return properties; + } + mergeTimelineCollectedStyles(timeline) { + timeline._styleSummary.forEach((details1, prop) => { + const details0 = this._styleSummary.get(prop); + if (!details0 || details1.time > details0.time) { + this._updateStyle(prop, details1.value); + } + }); + } + buildKeyframes() { + this.applyStylesToKeyframe(); + const preStyleProps = new Set(); + const postStyleProps = new Set(); + const isEmpty = this._keyframes.size === 1 && this.duration === 0; + let finalKeyframes = []; + this._keyframes.forEach((keyframe, time) => { + const finalKeyframe = copyStyles( + keyframe, + new Map(), + this._backFill + ); + finalKeyframe.forEach((value, prop) => { + if ( + value === + _angular_animations__WEBPACK_IMPORTED_MODULE_1__["ɵPRE_STYLE"] + ) { + preStyleProps.add(prop); + } else if ( + value === + _angular_animations__WEBPACK_IMPORTED_MODULE_1__.AUTO_STYLE + ) { + postStyleProps.add(prop); + } + }); + if (!isEmpty) { + finalKeyframe.set("offset", time / this.duration); + } + finalKeyframes.push(finalKeyframe); + }); + const preProps = preStyleProps.size + ? iteratorToArray(preStyleProps.values()) + : []; + const postProps = postStyleProps.size + ? iteratorToArray(postStyleProps.values()) + : []; + // special case for a 0-second animation (which is designed just to place styles onscreen) + if (isEmpty) { + const kf0 = finalKeyframes[0]; + const kf1 = new Map(kf0); + kf0.set("offset", 0); + kf1.set("offset", 1); + finalKeyframes = [kf0, kf1]; + } + return createTimelineInstruction( + this.element, + finalKeyframes, + preProps, + postProps, + this.duration, + this.startTime, + this.easing, + false + ); + } + } + class SubTimelineBuilder extends TimelineBuilder { + constructor( + driver, + element, + keyframes, + preStyleProps, + postStyleProps, + timings, + _stretchStartingKeyframe = false + ) { + super(driver, element, timings.delay); + this.keyframes = keyframes; + this.preStyleProps = preStyleProps; + this.postStyleProps = postStyleProps; + this._stretchStartingKeyframe = _stretchStartingKeyframe; + this.timings = { + duration: timings.duration, + delay: timings.delay, + easing: timings.easing, + }; + } + containsAnimation() { + return this.keyframes.length > 1; + } + buildKeyframes() { + let keyframes = this.keyframes; + let { delay, duration, easing } = this.timings; + if (this._stretchStartingKeyframe && delay) { + const newKeyframes = []; + const totalTime = duration + delay; + const startingGap = delay / totalTime; + // the original starting keyframe now starts once the delay is done + const newFirstKeyframe = copyStyles(keyframes[0]); + newFirstKeyframe.set("offset", 0); + newKeyframes.push(newFirstKeyframe); + const oldFirstKeyframe = copyStyles(keyframes[0]); + oldFirstKeyframe.set("offset", roundOffset(startingGap)); + newKeyframes.push(oldFirstKeyframe); + /* + When the keyframe is stretched then it means that the delay before the animation + starts is gone. Instead the first keyframe is placed at the start of the animation + and it is then copied to where it starts when the original delay is over. This basically + means nothing animates during that delay, but the styles are still rendered. For this + to work the original offset values that exist in the original keyframes must be "warped" + so that they can take the new keyframe + delay into account. + delay=1000, duration=1000, keyframes = 0 .5 1 + turns into + delay=0, duration=2000, keyframes = 0 .33 .66 1 + */ + // offsets between 1 ... n -1 are all warped by the keyframe stretch + const limit = keyframes.length - 1; + for (let i = 1; i <= limit; i++) { + let kf = copyStyles(keyframes[i]); + const oldOffset = kf.get("offset"); + const timeAtKeyframe = delay + oldOffset * duration; + kf.set("offset", roundOffset(timeAtKeyframe / totalTime)); + newKeyframes.push(kf); + } + // the new starting keyframe should be added at the start + duration = totalTime; + delay = 0; + easing = ""; + keyframes = newKeyframes; + } + return createTimelineInstruction( + this.element, + keyframes, + this.preStyleProps, + this.postStyleProps, + duration, + delay, + easing, + true + ); + } + } + function roundOffset(offset, decimalPoints = 3) { + const mult = Math.pow(10, decimalPoints - 1); + return Math.round(offset * mult) / mult; + } + function flattenStyles(input, allStyles) { + const styles = new Map(); + let allProperties; + input.forEach((token) => { + if (token === "*") { + allProperties = allProperties || allStyles.keys(); + for (let prop of allProperties) { + styles.set( + prop, + _angular_animations__WEBPACK_IMPORTED_MODULE_1__.AUTO_STYLE + ); + } + } else { + copyStyles(token, styles); + } + }); + return styles; + } + class Animation { + constructor(_driver, input) { + this._driver = _driver; + const errors = []; + const warnings = []; + const ast = buildAnimationAst(_driver, input, errors, warnings); + if (errors.length) { + throw validationFailed(errors); + } + if (warnings.length) { + warnValidation(warnings); + } + this._animationAst = ast; + } + buildTimelines( + element, + startingStyles, + destinationStyles, + options, + subInstructions + ) { + const start = Array.isArray(startingStyles) + ? normalizeStyles(startingStyles) + : startingStyles; + const dest = Array.isArray(destinationStyles) + ? normalizeStyles(destinationStyles) + : destinationStyles; + const errors = []; + subInstructions = subInstructions || new ElementInstructionMap(); + const result = buildAnimationTimelines( + this._driver, + element, + this._animationAst, + ENTER_CLASSNAME, + LEAVE_CLASSNAME, + start, + dest, + options, + subInstructions, + errors + ); + if (errors.length) { + throw buildingFailed(errors); + } + return result; + } + } + + /** + * @publicApi + */ + class AnimationStyleNormalizer {} + /** + * @publicApi + */ + class NoopAnimationStyleNormalizer { + normalizePropertyName(propertyName, errors) { + return propertyName; + } + normalizeStyleValue( + userProvidedProperty, + normalizedProperty, + value, + errors + ) { + return value; + } + } + const DIMENSIONAL_PROP_SET = new Set([ + "width", + "height", + "minWidth", + "minHeight", + "maxWidth", + "maxHeight", + "left", + "top", + "bottom", + "right", + "fontSize", + "outlineWidth", + "outlineOffset", + "paddingTop", + "paddingLeft", + "paddingBottom", + "paddingRight", + "marginTop", + "marginLeft", + "marginBottom", + "marginRight", + "borderRadius", + "borderWidth", + "borderTopWidth", + "borderLeftWidth", + "borderRightWidth", + "borderBottomWidth", + "textIndent", + "perspective", + ]); + class WebAnimationsStyleNormalizer extends AnimationStyleNormalizer { + normalizePropertyName(propertyName, errors) { + return dashCaseToCamelCase(propertyName); + } + normalizeStyleValue( + userProvidedProperty, + normalizedProperty, + value, + errors + ) { + let unit = ""; + const strVal = value.toString().trim(); + if ( + DIMENSIONAL_PROP_SET.has(normalizedProperty) && + value !== 0 && + value !== "0" + ) { + if (typeof value === "number") { + unit = "px"; + } else { + const valAndSuffixMatch = value.match(/^[+-]?[\d\.]+([a-z]*)$/); + if (valAndSuffixMatch && valAndSuffixMatch[1].length == 0) { + errors.push(invalidCssUnitValue(userProvidedProperty, value)); + } + } + } + return strVal + unit; + } + } + function createTransitionInstruction( + element, + triggerName, + fromState, + toState, + isRemovalTransition, + fromStyles, + toStyles, + timelines, + queriedElements, + preStyleProps, + postStyleProps, + totalTime, + errors + ) { + return { + type: 0 /* AnimationTransitionInstructionType.TransitionAnimation */, + element, + triggerName, + isRemovalTransition, + fromState, + fromStyles, + toState, + toStyles, + timelines, + queriedElements, + preStyleProps, + postStyleProps, + totalTime, + errors, + }; + } + const EMPTY_OBJECT = {}; + class AnimationTransitionFactory { + constructor(_triggerName, ast, _stateStyles) { + this._triggerName = _triggerName; + this.ast = ast; + this._stateStyles = _stateStyles; + } + match(currentState, nextState, element, params) { + return oneOrMoreTransitionsMatch( + this.ast.matchers, + currentState, + nextState, + element, + params + ); + } + buildStyles(stateName, params, errors) { + let styler = this._stateStyles.get("*"); + if (stateName !== undefined) { + styler = this._stateStyles.get(stateName?.toString()) || styler; + } + return styler ? styler.buildStyles(params, errors) : new Map(); + } + build( + driver, + element, + currentState, + nextState, + enterClassName, + leaveClassName, + currentOptions, + nextOptions, + subInstructions, + skipAstBuild + ) { + const errors = []; + const transitionAnimationParams = + (this.ast.options && this.ast.options.params) || EMPTY_OBJECT; + const currentAnimationParams = + (currentOptions && currentOptions.params) || EMPTY_OBJECT; + const currentStateStyles = this.buildStyles( + currentState, + currentAnimationParams, + errors + ); + const nextAnimationParams = + (nextOptions && nextOptions.params) || EMPTY_OBJECT; + const nextStateStyles = this.buildStyles( + nextState, + nextAnimationParams, + errors + ); + const queriedElements = new Set(); + const preStyleMap = new Map(); + const postStyleMap = new Map(); + const isRemoval = nextState === "void"; + const animationOptions = { + params: applyParamDefaults( + nextAnimationParams, + transitionAnimationParams + ), + delay: this.ast.options?.delay, + }; + const timelines = skipAstBuild + ? [] + : buildAnimationTimelines( + driver, + element, + this.ast.animation, + enterClassName, + leaveClassName, + currentStateStyles, + nextStateStyles, + animationOptions, + subInstructions, + errors + ); + let totalTime = 0; + timelines.forEach((tl) => { + totalTime = Math.max(tl.duration + tl.delay, totalTime); + }); + if (errors.length) { + return createTransitionInstruction( + element, + this._triggerName, + currentState, + nextState, + isRemoval, + currentStateStyles, + nextStateStyles, + [], + [], + preStyleMap, + postStyleMap, + totalTime, + errors + ); + } + timelines.forEach((tl) => { + const elm = tl.element; + const preProps = getOrSetDefaultValue( + preStyleMap, + elm, + new Set() + ); + tl.preStyleProps.forEach((prop) => preProps.add(prop)); + const postProps = getOrSetDefaultValue( + postStyleMap, + elm, + new Set() + ); + tl.postStyleProps.forEach((prop) => postProps.add(prop)); + if (elm !== element) { + queriedElements.add(elm); + } + }); + if (typeof ngDevMode === "undefined" || ngDevMode) { + checkNonAnimatableInTimelines( + timelines, + this._triggerName, + driver + ); + } + const queriedElementsList = iteratorToArray( + queriedElements.values() + ); + return createTransitionInstruction( + element, + this._triggerName, + currentState, + nextState, + isRemoval, + currentStateStyles, + nextStateStyles, + timelines, + queriedElementsList, + preStyleMap, + postStyleMap, + totalTime + ); + } + } + /** + * Checks inside a set of timelines if they try to animate a css property which is not considered + * animatable, in that case it prints a warning on the console. + * Besides that the function doesn't have any other effect. + * + * Note: this check is done here after the timelines are built instead of doing on a lower level so + * that we can make sure that the warning appears only once per instruction (we can aggregate here + * all the issues instead of finding them separately). + * + * @param timelines The built timelines for the current instruction. + * @param triggerName The name of the trigger for the current instruction. + * @param driver Animation driver used to perform the check. + * + */ + function checkNonAnimatableInTimelines(timelines, triggerName, driver) { + if (!driver.validateAnimatableStyleProperty) { + return; + } + const allowedNonAnimatableProps = new Set([ + // 'easing' is a utility/synthetic prop we use to represent + // easing functions, it represents a property of the animation + // which is not animatable but different values can be used + // in different steps + "easing", + ]); + const invalidNonAnimatableProps = new Set(); + timelines.forEach(({ keyframes }) => { + const nonAnimatablePropsInitialValues = new Map(); + keyframes.forEach((keyframe) => { + const entriesToCheck = Array.from(keyframe.entries()).filter( + ([prop]) => !allowedNonAnimatableProps.has(prop) + ); + for (const [prop, value] of entriesToCheck) { + if (!driver.validateAnimatableStyleProperty(prop)) { + if ( + nonAnimatablePropsInitialValues.has(prop) && + !invalidNonAnimatableProps.has(prop) + ) { + const propInitialValue = + nonAnimatablePropsInitialValues.get(prop); + if (propInitialValue !== value) { + invalidNonAnimatableProps.add(prop); + } + } else { + nonAnimatablePropsInitialValues.set(prop, value); + } + } + } + }); + }); + if (invalidNonAnimatableProps.size > 0) { + console.warn( + `Warning: The animation trigger "${triggerName}" is attempting to animate the following` + + " not animatable properties: " + + Array.from(invalidNonAnimatableProps).join(", ") + + "\n" + + "(to check the list of all animatable properties visit https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_animated_properties)" + ); + } + } + function oneOrMoreTransitionsMatch( + matchFns, + currentState, + nextState, + element, + params + ) { + return matchFns.some((fn) => + fn(currentState, nextState, element, params) + ); + } + function applyParamDefaults(userParams, defaults) { + const result = copyObj(defaults); + for (const key in userParams) { + if (userParams.hasOwnProperty(key) && userParams[key] != null) { + result[key] = userParams[key]; + } + } + return result; + } + class AnimationStateStyles { + constructor(styles, defaultParams, normalizer) { + this.styles = styles; + this.defaultParams = defaultParams; + this.normalizer = normalizer; + } + buildStyles(params, errors) { + const finalStyles = new Map(); + const combinedParams = copyObj(this.defaultParams); + Object.keys(params).forEach((key) => { + const value = params[key]; + if (value !== null) { + combinedParams[key] = value; + } + }); + this.styles.styles.forEach((value) => { + if (typeof value !== "string") { + value.forEach((val, prop) => { + if (val) { + val = interpolateParams(val, combinedParams, errors); + } + const normalizedProp = this.normalizer.normalizePropertyName( + prop, + errors + ); + val = this.normalizer.normalizeStyleValue( + prop, + normalizedProp, + val, + errors + ); + finalStyles.set(prop, val); + }); + } + }); + return finalStyles; + } + } + function buildTrigger(name, ast, normalizer) { + return new AnimationTrigger(name, ast, normalizer); + } + class AnimationTrigger { + constructor(name, ast, _normalizer) { + this.name = name; + this.ast = ast; + this._normalizer = _normalizer; + this.transitionFactories = []; + this.states = new Map(); + ast.states.forEach((ast) => { + const defaultParams = (ast.options && ast.options.params) || {}; + this.states.set( + ast.name, + new AnimationStateStyles(ast.style, defaultParams, _normalizer) + ); + }); + balanceProperties(this.states, "true", "1"); + balanceProperties(this.states, "false", "0"); + ast.transitions.forEach((ast) => { + this.transitionFactories.push( + new AnimationTransitionFactory(name, ast, this.states) + ); + }); + this.fallbackTransition = createFallbackTransition( + name, + this.states, + this._normalizer + ); + } + get containsQueries() { + return this.ast.queryCount > 0; + } + matchTransition(currentState, nextState, element, params) { + const entry = this.transitionFactories.find((f) => + f.match(currentState, nextState, element, params) + ); + return entry || null; + } + matchStyles(currentState, params, errors) { + return this.fallbackTransition.buildStyles( + currentState, + params, + errors + ); + } + } + function createFallbackTransition(triggerName, states, normalizer) { + const matchers = [(fromState, toState) => true]; + const animation = { + type: 2 /* AnimationMetadataType.Sequence */, + steps: [], + options: null, + }; + const transition = { + type: 1 /* AnimationMetadataType.Transition */, + animation, + matchers, + options: null, + queryCount: 0, + depCount: 0, + }; + return new AnimationTransitionFactory( + triggerName, + transition, + states + ); + } + function balanceProperties(stateMap, key1, key2) { + if (stateMap.has(key1)) { + if (!stateMap.has(key2)) { + stateMap.set(key2, stateMap.get(key1)); + } + } else if (stateMap.has(key2)) { + stateMap.set(key1, stateMap.get(key2)); + } + } + const EMPTY_INSTRUCTION_MAP = new ElementInstructionMap(); + class TimelineAnimationEngine { + constructor(bodyNode, _driver, _normalizer) { + this.bodyNode = bodyNode; + this._driver = _driver; + this._normalizer = _normalizer; + this._animations = new Map(); + this._playersById = new Map(); + this.players = []; + } + register(id, metadata) { + const errors = []; + const warnings = []; + const ast = buildAnimationAst( + this._driver, + metadata, + errors, + warnings + ); + if (errors.length) { + throw registerFailed(errors); + } else { + if (warnings.length) { + warnRegister(warnings); + } + this._animations.set(id, ast); + } + } + _buildPlayer(i, preStyles, postStyles) { + const element = i.element; + const keyframes = normalizeKeyframes$1( + this._driver, + this._normalizer, + element, + i.keyframes, + preStyles, + postStyles + ); + return this._driver.animate( + element, + keyframes, + i.duration, + i.delay, + i.easing, + [], + true + ); + } + create(id, element, options = {}) { + const errors = []; + const ast = this._animations.get(id); + let instructions; + const autoStylesMap = new Map(); + if (ast) { + instructions = buildAnimationTimelines( + this._driver, + element, + ast, + ENTER_CLASSNAME, + LEAVE_CLASSNAME, + new Map(), + new Map(), + options, + EMPTY_INSTRUCTION_MAP, + errors + ); + instructions.forEach((inst) => { + const styles = getOrSetDefaultValue( + autoStylesMap, + inst.element, + new Map() + ); + inst.postStyleProps.forEach((prop) => styles.set(prop, null)); + }); + } else { + errors.push(missingOrDestroyedAnimation()); + instructions = []; + } + if (errors.length) { + throw createAnimationFailed(errors); + } + autoStylesMap.forEach((styles, element) => { + styles.forEach((_, prop) => { + styles.set( + prop, + this._driver.computeStyle( + element, + prop, + _angular_animations__WEBPACK_IMPORTED_MODULE_1__.AUTO_STYLE + ) + ); + }); + }); + const players = instructions.map((i) => { + const styles = autoStylesMap.get(i.element); + return this._buildPlayer(i, new Map(), styles); + }); + const player = optimizeGroupPlayer(players); + this._playersById.set(id, player); + player.onDestroy(() => this.destroy(id)); + this.players.push(player); + return player; + } + destroy(id) { + const player = this._getPlayer(id); + player.destroy(); + this._playersById.delete(id); + const index = this.players.indexOf(player); + if (index >= 0) { + this.players.splice(index, 1); + } + } + _getPlayer(id) { + const player = this._playersById.get(id); + if (!player) { + throw missingPlayer(id); + } + return player; + } + listen(id, element, eventName, callback) { + // triggerName, fromState, toState are all ignored for timeline animations + const baseEvent = makeAnimationEvent(element, "", "", ""); + listenOnPlayer(this._getPlayer(id), eventName, baseEvent, callback); + return () => {}; + } + command(id, element, command, args) { + if (command == "register") { + this.register(id, args[0]); + return; + } + if (command == "create") { + const options = args[0] || {}; + this.create(id, element, options); + return; + } + const player = this._getPlayer(id); + switch (command) { + case "play": + player.play(); + break; + case "pause": + player.pause(); + break; + case "reset": + player.reset(); + break; + case "restart": + player.restart(); + break; + case "finish": + player.finish(); + break; + case "init": + player.init(); + break; + case "setPosition": + player.setPosition(parseFloat(args[0])); + break; + case "destroy": + this.destroy(id); + break; + } + } + } + const QUEUED_CLASSNAME = "ng-animate-queued"; + const QUEUED_SELECTOR = ".ng-animate-queued"; + const DISABLED_CLASSNAME = "ng-animate-disabled"; + const DISABLED_SELECTOR = ".ng-animate-disabled"; + const STAR_CLASSNAME = "ng-star-inserted"; + const STAR_SELECTOR = ".ng-star-inserted"; + const EMPTY_PLAYER_ARRAY = []; + const NULL_REMOVAL_STATE = { + namespaceId: "", + setForRemoval: false, + setForMove: false, + hasAnimation: false, + removedBeforeQueried: false, + }; + const NULL_REMOVED_QUERIED_STATE = { + namespaceId: "", + setForMove: false, + setForRemoval: false, + hasAnimation: false, + removedBeforeQueried: true, + }; + const REMOVAL_FLAG = "__ng_removed"; + class StateValue { + get params() { + return this.options.params; + } + constructor(input, namespaceId = "") { + this.namespaceId = namespaceId; + const isObj = input && input.hasOwnProperty("value"); + const value = isObj ? input["value"] : input; + this.value = normalizeTriggerValue(value); + if (isObj) { + const options = copyObj(input); + delete options["value"]; + this.options = options; + } else { + this.options = {}; + } + if (!this.options.params) { + this.options.params = {}; + } + } + absorbOptions(options) { + const newParams = options.params; + if (newParams) { + const oldParams = this.options.params; + Object.keys(newParams).forEach((prop) => { + if (oldParams[prop] == null) { + oldParams[prop] = newParams[prop]; + } + }); + } + } + } + const VOID_VALUE = "void"; + const DEFAULT_STATE_VALUE = new StateValue(VOID_VALUE); + class AnimationTransitionNamespace { + constructor(id, hostElement, _engine) { + this.id = id; + this.hostElement = hostElement; + this._engine = _engine; + this.players = []; + this._triggers = new Map(); + this._queue = []; + this._elementListeners = new Map(); + this._hostClassName = "ng-tns-" + id; + addClass(hostElement, this._hostClassName); + } + listen(element, name, phase, callback) { + if (!this._triggers.has(name)) { + throw missingTrigger(phase, name); + } + if (phase == null || phase.length == 0) { + throw missingEvent(name); + } + if (!isTriggerEventValid(phase)) { + throw unsupportedTriggerEvent(phase, name); + } + const listeners = getOrSetDefaultValue( + this._elementListeners, + element, + [] + ); + const data = { + name, + phase, + callback, + }; + listeners.push(data); + const triggersWithStates = getOrSetDefaultValue( + this._engine.statesByElement, + element, + new Map() + ); + if (!triggersWithStates.has(name)) { + addClass(element, NG_TRIGGER_CLASSNAME); + addClass(element, NG_TRIGGER_CLASSNAME + "-" + name); + triggersWithStates.set(name, DEFAULT_STATE_VALUE); + } + return () => { + // the event listener is removed AFTER the flush has occurred such + // that leave animations callbacks can fire (otherwise if the node + // is removed in between then the listeners would be deregistered) + this._engine.afterFlush(() => { + const index = listeners.indexOf(data); + if (index >= 0) { + listeners.splice(index, 1); + } + if (!this._triggers.has(name)) { + triggersWithStates.delete(name); + } + }); + }; + } + register(name, ast) { + if (this._triggers.has(name)) { + // throw + return false; + } else { + this._triggers.set(name, ast); + return true; + } + } + _getTrigger(name) { + const trigger = this._triggers.get(name); + if (!trigger) { + throw unregisteredTrigger(name); + } + return trigger; + } + trigger(element, triggerName, value, defaultToFallback = true) { + const trigger = this._getTrigger(triggerName); + const player = new TransitionAnimationPlayer( + this.id, + triggerName, + element + ); + let triggersWithStates = this._engine.statesByElement.get(element); + if (!triggersWithStates) { + addClass(element, NG_TRIGGER_CLASSNAME); + addClass(element, NG_TRIGGER_CLASSNAME + "-" + triggerName); + this._engine.statesByElement.set( + element, + (triggersWithStates = new Map()) + ); + } + let fromState = triggersWithStates.get(triggerName); + const toState = new StateValue(value, this.id); + const isObj = value && value.hasOwnProperty("value"); + if (!isObj && fromState) { + toState.absorbOptions(fromState.options); + } + triggersWithStates.set(triggerName, toState); + if (!fromState) { + fromState = DEFAULT_STATE_VALUE; + } + const isRemoval = toState.value === VOID_VALUE; + // normally this isn't reached by here, however, if an object expression + // is passed in then it may be a new object each time. Comparing the value + // is important since that will stay the same despite there being a new object. + // The removal arc here is special cased because the same element is triggered + // twice in the event that it contains animations on the outer/inner portions + // of the host container + if (!isRemoval && fromState.value === toState.value) { + // this means that despite the value not changing, some inner params + // have changed which means that the animation final styles need to be applied + if (!objEquals(fromState.params, toState.params)) { + const errors = []; + const fromStyles = trigger.matchStyles( + fromState.value, + fromState.params, + errors + ); + const toStyles = trigger.matchStyles( + toState.value, + toState.params, + errors + ); + if (errors.length) { + this._engine.reportError(errors); + } else { + this._engine.afterFlush(() => { + eraseStyles(element, fromStyles); + setStyles(element, toStyles); + }); + } + } + return; + } + const playersOnElement = getOrSetDefaultValue( + this._engine.playersByElement, + element, + [] + ); + playersOnElement.forEach((player) => { + // only remove the player if it is queued on the EXACT same trigger/namespace + // we only also deal with queued players here because if the animation has + // started then we want to keep the player alive until the flush happens + // (which is where the previousPlayers are passed into the new player) + if ( + player.namespaceId == this.id && + player.triggerName == triggerName && + player.queued + ) { + player.destroy(); + } + }); + let transition = trigger.matchTransition( + fromState.value, + toState.value, + element, + toState.params + ); + let isFallbackTransition = false; + if (!transition) { + if (!defaultToFallback) return; + transition = trigger.fallbackTransition; + isFallbackTransition = true; + } + this._engine.totalQueuedPlayers++; + this._queue.push({ + element, + triggerName, + transition, + fromState, + toState, + player, + isFallbackTransition, + }); + if (!isFallbackTransition) { + addClass(element, QUEUED_CLASSNAME); + player.onStart(() => { + removeClass(element, QUEUED_CLASSNAME); + }); + } + player.onDone(() => { + let index = this.players.indexOf(player); + if (index >= 0) { + this.players.splice(index, 1); + } + const players = this._engine.playersByElement.get(element); + if (players) { + let index = players.indexOf(player); + if (index >= 0) { + players.splice(index, 1); + } + } + }); + this.players.push(player); + playersOnElement.push(player); + return player; + } + deregister(name) { + this._triggers.delete(name); + this._engine.statesByElement.forEach((stateMap) => + stateMap.delete(name) + ); + this._elementListeners.forEach((listeners, element) => { + this._elementListeners.set( + element, + listeners.filter((entry) => { + return entry.name != name; + }) + ); + }); + } + clearElementCache(element) { + this._engine.statesByElement.delete(element); + this._elementListeners.delete(element); + const elementPlayers = this._engine.playersByElement.get(element); + if (elementPlayers) { + elementPlayers.forEach((player) => player.destroy()); + this._engine.playersByElement.delete(element); + } + } + _signalRemovalForInnerTriggers(rootElement, context) { + const elements = this._engine.driver.query( + rootElement, + NG_TRIGGER_SELECTOR, + true + ); + // emulate a leave animation for all inner nodes within this node. + // If there are no animations found for any of the nodes then clear the cache + // for the element. + elements.forEach((elm) => { + // this means that an inner remove() operation has already kicked off + // the animation on this element... + if (elm[REMOVAL_FLAG]) return; + const namespaces = this._engine.fetchNamespacesByElement(elm); + if (namespaces.size) { + namespaces.forEach((ns) => + ns.triggerLeaveAnimation(elm, context, false, true) + ); + } else { + this.clearElementCache(elm); + } + }); + // If the child elements were removed along with the parent, their animations might not + // have completed. Clear all the elements from the cache so we don't end up with a memory leak. + this._engine.afterFlushAnimationsDone(() => + elements.forEach((elm) => this.clearElementCache(elm)) + ); + } + triggerLeaveAnimation( + element, + context, + destroyAfterComplete, + defaultToFallback + ) { + const triggerStates = this._engine.statesByElement.get(element); + const previousTriggersValues = new Map(); + if (triggerStates) { + const players = []; + triggerStates.forEach((state, triggerName) => { + previousTriggersValues.set(triggerName, state.value); + // this check is here in the event that an element is removed + // twice (both on the host level and the component level) + if (this._triggers.has(triggerName)) { + const player = this.trigger( + element, + triggerName, + VOID_VALUE, + defaultToFallback + ); + if (player) { + players.push(player); + } + } + }); + if (players.length) { + this._engine.markElementAsRemoved( + this.id, + element, + true, + context, + previousTriggersValues + ); + if (destroyAfterComplete) { + optimizeGroupPlayer(players).onDone(() => + this._engine.processLeaveNode(element) + ); + } + return true; + } + } + return false; + } + prepareLeaveAnimationListeners(element) { + const listeners = this._elementListeners.get(element); + const elementStates = this._engine.statesByElement.get(element); + // if this statement fails then it means that the element was picked up + // by an earlier flush (or there are no listeners at all to track the leave). + if (listeners && elementStates) { + const visitedTriggers = new Set(); + listeners.forEach((listener) => { + const triggerName = listener.name; + if (visitedTriggers.has(triggerName)) return; + visitedTriggers.add(triggerName); + const trigger = this._triggers.get(triggerName); + const transition = trigger.fallbackTransition; + const fromState = + elementStates.get(triggerName) || DEFAULT_STATE_VALUE; + const toState = new StateValue(VOID_VALUE); + const player = new TransitionAnimationPlayer( + this.id, + triggerName, + element + ); + this._engine.totalQueuedPlayers++; + this._queue.push({ + element, + triggerName, + transition, + fromState, + toState, + player, + isFallbackTransition: true, + }); + }); + } + } + removeNode(element, context) { + const engine = this._engine; + if (element.childElementCount) { + this._signalRemovalForInnerTriggers(element, context); + } + // this means that a * => VOID animation was detected and kicked off + if (this.triggerLeaveAnimation(element, context, true)) return; + // find the player that is animating and make sure that the + // removal is delayed until that player has completed + let containsPotentialParentTransition = false; + if (engine.totalAnimations) { + const currentPlayers = engine.players.length + ? engine.playersByQueriedElement.get(element) + : []; + // when this `if statement` does not continue forward it means that + // a previous animation query has selected the current element and + // is animating it. In this situation want to continue forwards and + // allow the element to be queued up for animation later. + if (currentPlayers && currentPlayers.length) { + containsPotentialParentTransition = true; + } else { + let parent = element; + while ((parent = parent.parentNode)) { + const triggers = engine.statesByElement.get(parent); + if (triggers) { + containsPotentialParentTransition = true; + break; + } + } + } + } + // at this stage we know that the element will either get removed + // during flush or will be picked up by a parent query. Either way + // we need to fire the listeners for this element when it DOES get + // removed (once the query parent animation is done or after flush) + this.prepareLeaveAnimationListeners(element); + // whether or not a parent has an animation we need to delay the deferral of the leave + // operation until we have more information (which we do after flush() has been called) + if (containsPotentialParentTransition) { + engine.markElementAsRemoved(this.id, element, false, context); + } else { + const removalFlag = element[REMOVAL_FLAG]; + if (!removalFlag || removalFlag === NULL_REMOVAL_STATE) { + // we do this after the flush has occurred such + // that the callbacks can be fired + engine.afterFlush(() => this.clearElementCache(element)); + engine.destroyInnerAnimations(element); + engine._onRemovalComplete(element, context); + } + } + } + insertNode(element, parent) { + addClass(element, this._hostClassName); + } + drainQueuedTransitions(microtaskId) { + const instructions = []; + this._queue.forEach((entry) => { + const player = entry.player; + if (player.destroyed) return; + const element = entry.element; + const listeners = this._elementListeners.get(element); + if (listeners) { + listeners.forEach((listener) => { + if (listener.name == entry.triggerName) { + const baseEvent = makeAnimationEvent( + element, + entry.triggerName, + entry.fromState.value, + entry.toState.value + ); + baseEvent["_data"] = microtaskId; + listenOnPlayer( + entry.player, + listener.phase, + baseEvent, + listener.callback + ); + } + }); + } + if (player.markedForDestroy) { + this._engine.afterFlush(() => { + // now we can destroy the element properly since the event listeners have + // been bound to the player + player.destroy(); + }); + } else { + instructions.push(entry); + } + }); + this._queue = []; + return instructions.sort((a, b) => { + // if depCount == 0 them move to front + // otherwise if a contains b then move back + const d0 = a.transition.ast.depCount; + const d1 = b.transition.ast.depCount; + if (d0 == 0 || d1 == 0) { + return d0 - d1; + } + return this._engine.driver.containsElement(a.element, b.element) + ? 1 + : -1; + }); + } + destroy(context) { + this.players.forEach((p) => p.destroy()); + this._signalRemovalForInnerTriggers(this.hostElement, context); + } + elementContainsData(element) { + let containsData = false; + if (this._elementListeners.has(element)) containsData = true; + containsData = + (this._queue.find((entry) => entry.element === element) + ? true + : false) || containsData; + return containsData; + } + } + class TransitionAnimationEngine { + /** @internal */ + _onRemovalComplete(element, context) { + this.onRemovalComplete(element, context); + } + constructor(bodyNode, driver, _normalizer) { + this.bodyNode = bodyNode; + this.driver = driver; + this._normalizer = _normalizer; + this.players = []; + this.newHostElements = new Map(); + this.playersByElement = new Map(); + this.playersByQueriedElement = new Map(); + this.statesByElement = new Map(); + this.disabledNodes = new Set(); + this.totalAnimations = 0; + this.totalQueuedPlayers = 0; + this._namespaceLookup = {}; + this._namespaceList = []; + this._flushFns = []; + this._whenQuietFns = []; + this.namespacesByHostElement = new Map(); + this.collectedEnterElements = []; + this.collectedLeaveElements = []; + // this method is designed to be overridden by the code that uses this engine + this.onRemovalComplete = (element, context) => {}; + } + get queuedPlayers() { + const players = []; + this._namespaceList.forEach((ns) => { + ns.players.forEach((player) => { + if (player.queued) { + players.push(player); + } + }); + }); + return players; + } + createNamespace(namespaceId, hostElement) { + const ns = new AnimationTransitionNamespace( + namespaceId, + hostElement, + this + ); + if ( + this.bodyNode && + this.driver.containsElement(this.bodyNode, hostElement) + ) { + this._balanceNamespaceList(ns, hostElement); + } else { + // defer this later until flush during when the host element has + // been inserted so that we know exactly where to place it in + // the namespace list + this.newHostElements.set(hostElement, ns); + // given that this host element is a part of the animation code, it + // may or may not be inserted by a parent node that is of an + // animation renderer type. If this happens then we can still have + // access to this item when we query for :enter nodes. If the parent + // is a renderer then the set data-structure will normalize the entry + this.collectEnterElement(hostElement); + } + return (this._namespaceLookup[namespaceId] = ns); + } + _balanceNamespaceList(ns, hostElement) { + const namespaceList = this._namespaceList; + const namespacesByHostElement = this.namespacesByHostElement; + const limit = namespaceList.length - 1; + if (limit >= 0) { + let found = false; + // Find the closest ancestor with an existing namespace so we can then insert `ns` after it, + // establishing a top-down ordering of namespaces in `this._namespaceList`. + let ancestor = this.driver.getParentElement(hostElement); + while (ancestor) { + const ancestorNs = namespacesByHostElement.get(ancestor); + if (ancestorNs) { + // An animation namespace has been registered for this ancestor, so we insert `ns` + // right after it to establish top-down ordering of animation namespaces. + const index = namespaceList.indexOf(ancestorNs); + namespaceList.splice(index + 1, 0, ns); + found = true; + break; + } + ancestor = this.driver.getParentElement(ancestor); + } + if (!found) { + // No namespace exists that is an ancestor of `ns`, so `ns` is inserted at the front to + // ensure that any existing descendants are ordered after `ns`, retaining the desired + // top-down ordering. + namespaceList.unshift(ns); + } + } else { + namespaceList.push(ns); + } + namespacesByHostElement.set(hostElement, ns); + return ns; + } + register(namespaceId, hostElement) { + let ns = this._namespaceLookup[namespaceId]; + if (!ns) { + ns = this.createNamespace(namespaceId, hostElement); + } + return ns; + } + registerTrigger(namespaceId, name, trigger) { + let ns = this._namespaceLookup[namespaceId]; + if (ns && ns.register(name, trigger)) { + this.totalAnimations++; + } + } + destroy(namespaceId, context) { + if (!namespaceId) return; + const ns = this._fetchNamespace(namespaceId); + this.afterFlush(() => { + this.namespacesByHostElement.delete(ns.hostElement); + delete this._namespaceLookup[namespaceId]; + const index = this._namespaceList.indexOf(ns); + if (index >= 0) { + this._namespaceList.splice(index, 1); + } + }); + this.afterFlushAnimationsDone(() => ns.destroy(context)); + } + _fetchNamespace(id) { + return this._namespaceLookup[id]; + } + fetchNamespacesByElement(element) { + // normally there should only be one namespace per element, however + // if @triggers are placed on both the component element and then + // its host element (within the component code) then there will be + // two namespaces returned. We use a set here to simply deduplicate + // the namespaces in case (for the reason described above) there are multiple triggers + const namespaces = new Set(); + const elementStates = this.statesByElement.get(element); + if (elementStates) { + for (let stateValue of elementStates.values()) { + if (stateValue.namespaceId) { + const ns = this._fetchNamespace(stateValue.namespaceId); + if (ns) { + namespaces.add(ns); + } + } + } + } + return namespaces; + } + trigger(namespaceId, element, name, value) { + if (isElementNode(element)) { + const ns = this._fetchNamespace(namespaceId); + if (ns) { + ns.trigger(element, name, value); + return true; + } + } + return false; + } + insertNode(namespaceId, element, parent, insertBefore) { + if (!isElementNode(element)) return; + // special case for when an element is removed and reinserted (move operation) + // when this occurs we do not want to use the element for deletion later + const details = element[REMOVAL_FLAG]; + if (details && details.setForRemoval) { + details.setForRemoval = false; + details.setForMove = true; + const index = this.collectedLeaveElements.indexOf(element); + if (index >= 0) { + this.collectedLeaveElements.splice(index, 1); + } + } + // in the event that the namespaceId is blank then the caller + // code does not contain any animation code in it, but it is + // just being called so that the node is marked as being inserted + if (namespaceId) { + const ns = this._fetchNamespace(namespaceId); + // This if-statement is a workaround for router issue #21947. + // The router sometimes hits a race condition where while a route + // is being instantiated a new navigation arrives, triggering leave + // animation of DOM that has not been fully initialized, until this + // is resolved, we need to handle the scenario when DOM is not in a + // consistent state during the animation. + if (ns) { + ns.insertNode(element, parent); + } + } + // only *directives and host elements are inserted before + if (insertBefore) { + this.collectEnterElement(element); + } + } + collectEnterElement(element) { + this.collectedEnterElements.push(element); + } + markElementAsDisabled(element, value) { + if (value) { + if (!this.disabledNodes.has(element)) { + this.disabledNodes.add(element); + addClass(element, DISABLED_CLASSNAME); + } + } else if (this.disabledNodes.has(element)) { + this.disabledNodes.delete(element); + removeClass(element, DISABLED_CLASSNAME); + } + } + removeNode(namespaceId, element, isHostElement, context) { + if (isElementNode(element)) { + const ns = namespaceId ? this._fetchNamespace(namespaceId) : null; + if (ns) { + ns.removeNode(element, context); + } else { + this.markElementAsRemoved(namespaceId, element, false, context); + } + if (isHostElement) { + const hostNS = this.namespacesByHostElement.get(element); + if (hostNS && hostNS.id !== namespaceId) { + hostNS.removeNode(element, context); + } + } + } else { + this._onRemovalComplete(element, context); + } + } + markElementAsRemoved( + namespaceId, + element, + hasAnimation, + context, + previousTriggersValues + ) { + this.collectedLeaveElements.push(element); + element[REMOVAL_FLAG] = { + namespaceId, + setForRemoval: context, + hasAnimation, + removedBeforeQueried: false, + previousTriggersValues, + }; + } + listen(namespaceId, element, name, phase, callback) { + if (isElementNode(element)) { + return this._fetchNamespace(namespaceId).listen( + element, + name, + phase, + callback + ); + } + return () => {}; + } + _buildInstruction( + entry, + subTimelines, + enterClassName, + leaveClassName, + skipBuildAst + ) { + return entry.transition.build( + this.driver, + entry.element, + entry.fromState.value, + entry.toState.value, + enterClassName, + leaveClassName, + entry.fromState.options, + entry.toState.options, + subTimelines, + skipBuildAst + ); + } + destroyInnerAnimations(containerElement) { + let elements = this.driver.query( + containerElement, + NG_TRIGGER_SELECTOR, + true + ); + elements.forEach((element) => + this.destroyActiveAnimationsForElement(element) + ); + if (this.playersByQueriedElement.size == 0) return; + elements = this.driver.query( + containerElement, + NG_ANIMATING_SELECTOR, + true + ); + elements.forEach((element) => + this.finishActiveQueriedAnimationOnElement(element) + ); + } + destroyActiveAnimationsForElement(element) { + const players = this.playersByElement.get(element); + if (players) { + players.forEach((player) => { + // special case for when an element is set for destruction, but hasn't started. + // in this situation we want to delay the destruction until the flush occurs + // so that any event listeners attached to the player are triggered. + if (player.queued) { + player.markedForDestroy = true; + } else { + player.destroy(); + } + }); + } + } + finishActiveQueriedAnimationOnElement(element) { + const players = this.playersByQueriedElement.get(element); + if (players) { + players.forEach((player) => player.finish()); + } + } + whenRenderingDone() { + return new Promise((resolve) => { + if (this.players.length) { + return optimizeGroupPlayer(this.players).onDone(() => + resolve() + ); + } else { + resolve(); + } + }); + } + processLeaveNode(element) { + const details = element[REMOVAL_FLAG]; + if (details && details.setForRemoval) { + // this will prevent it from removing it twice + element[REMOVAL_FLAG] = NULL_REMOVAL_STATE; + if (details.namespaceId) { + this.destroyInnerAnimations(element); + const ns = this._fetchNamespace(details.namespaceId); + if (ns) { + ns.clearElementCache(element); + } + } + this._onRemovalComplete(element, details.setForRemoval); + } + if (element.classList?.contains(DISABLED_CLASSNAME)) { + this.markElementAsDisabled(element, false); + } + this.driver + .query(element, DISABLED_SELECTOR, true) + .forEach((node) => { + this.markElementAsDisabled(node, false); + }); + } + flush(microtaskId = -1) { + let players = []; + if (this.newHostElements.size) { + this.newHostElements.forEach((ns, element) => + this._balanceNamespaceList(ns, element) + ); + this.newHostElements.clear(); + } + if (this.totalAnimations && this.collectedEnterElements.length) { + for (let i = 0; i < this.collectedEnterElements.length; i++) { + const elm = this.collectedEnterElements[i]; + addClass(elm, STAR_CLASSNAME); + } + } + if ( + this._namespaceList.length && + (this.totalQueuedPlayers || this.collectedLeaveElements.length) + ) { + const cleanupFns = []; + try { + players = this._flushAnimations(cleanupFns, microtaskId); + } finally { + for (let i = 0; i < cleanupFns.length; i++) { + cleanupFns[i](); + } + } + } else { + for (let i = 0; i < this.collectedLeaveElements.length; i++) { + const element = this.collectedLeaveElements[i]; + this.processLeaveNode(element); + } + } + this.totalQueuedPlayers = 0; + this.collectedEnterElements.length = 0; + this.collectedLeaveElements.length = 0; + this._flushFns.forEach((fn) => fn()); + this._flushFns = []; + if (this._whenQuietFns.length) { + // we move these over to a variable so that + // if any new callbacks are registered in another + // flush they do not populate the existing set + const quietFns = this._whenQuietFns; + this._whenQuietFns = []; + if (players.length) { + optimizeGroupPlayer(players).onDone(() => { + quietFns.forEach((fn) => fn()); + }); + } else { + quietFns.forEach((fn) => fn()); + } + } + } + reportError(errors) { + throw triggerTransitionsFailed(errors); + } + _flushAnimations(cleanupFns, microtaskId) { + const subTimelines = new ElementInstructionMap(); + const skippedPlayers = []; + const skippedPlayersMap = new Map(); + const queuedInstructions = []; + const queriedElements = new Map(); + const allPreStyleElements = new Map(); + const allPostStyleElements = new Map(); + const disabledElementsSet = new Set(); + this.disabledNodes.forEach((node) => { + disabledElementsSet.add(node); + const nodesThatAreDisabled = this.driver.query( + node, + QUEUED_SELECTOR, + true + ); + for (let i = 0; i < nodesThatAreDisabled.length; i++) { + disabledElementsSet.add(nodesThatAreDisabled[i]); + } + }); + const bodyNode = this.bodyNode; + const allTriggerElements = Array.from(this.statesByElement.keys()); + const enterNodeMap = buildRootMap( + allTriggerElements, + this.collectedEnterElements + ); + // this must occur before the instructions are built below such that + // the :enter queries match the elements (since the timeline queries + // are fired during instruction building). + const enterNodeMapIds = new Map(); + let i = 0; + enterNodeMap.forEach((nodes, root) => { + const className = ENTER_CLASSNAME + i++; + enterNodeMapIds.set(root, className); + nodes.forEach((node) => addClass(node, className)); + }); + const allLeaveNodes = []; + const mergedLeaveNodes = new Set(); + const leaveNodesWithoutAnimations = new Set(); + for (let i = 0; i < this.collectedLeaveElements.length; i++) { + const element = this.collectedLeaveElements[i]; + const details = element[REMOVAL_FLAG]; + if (details && details.setForRemoval) { + allLeaveNodes.push(element); + mergedLeaveNodes.add(element); + if (details.hasAnimation) { + this.driver + .query(element, STAR_SELECTOR, true) + .forEach((elm) => mergedLeaveNodes.add(elm)); + } else { + leaveNodesWithoutAnimations.add(element); + } + } + } + const leaveNodeMapIds = new Map(); + const leaveNodeMap = buildRootMap( + allTriggerElements, + Array.from(mergedLeaveNodes) + ); + leaveNodeMap.forEach((nodes, root) => { + const className = LEAVE_CLASSNAME + i++; + leaveNodeMapIds.set(root, className); + nodes.forEach((node) => addClass(node, className)); + }); + cleanupFns.push(() => { + enterNodeMap.forEach((nodes, root) => { + const className = enterNodeMapIds.get(root); + nodes.forEach((node) => removeClass(node, className)); + }); + leaveNodeMap.forEach((nodes, root) => { + const className = leaveNodeMapIds.get(root); + nodes.forEach((node) => removeClass(node, className)); + }); + allLeaveNodes.forEach((element) => { + this.processLeaveNode(element); + }); + }); + const allPlayers = []; + const erroneousTransitions = []; + for (let i = this._namespaceList.length - 1; i >= 0; i--) { + const ns = this._namespaceList[i]; + ns.drainQueuedTransitions(microtaskId).forEach((entry) => { + const player = entry.player; + const element = entry.element; + allPlayers.push(player); + if (this.collectedEnterElements.length) { + const details = element[REMOVAL_FLAG]; + // animations for move operations (elements being removed and reinserted, + // e.g. when the order of an *ngFor list changes) are currently not supported + if (details && details.setForMove) { + if ( + details.previousTriggersValues && + details.previousTriggersValues.has(entry.triggerName) + ) { + const previousValue = details.previousTriggersValues.get( + entry.triggerName + ); + // we need to restore the previous trigger value since the element has + // only been moved and hasn't actually left the DOM + const triggersWithStates = this.statesByElement.get( + entry.element + ); + if ( + triggersWithStates && + triggersWithStates.has(entry.triggerName) + ) { + const state = triggersWithStates.get(entry.triggerName); + state.value = previousValue; + triggersWithStates.set(entry.triggerName, state); + } + } + player.destroy(); + return; + } + } + const nodeIsOrphaned = + !bodyNode || !this.driver.containsElement(bodyNode, element); + const leaveClassName = leaveNodeMapIds.get(element); + const enterClassName = enterNodeMapIds.get(element); + const instruction = this._buildInstruction( + entry, + subTimelines, + enterClassName, + leaveClassName, + nodeIsOrphaned + ); + if (instruction.errors && instruction.errors.length) { + erroneousTransitions.push(instruction); + return; + } + // even though the element may not be in the DOM, it may still + // be added at a later point (due to the mechanics of content + // projection and/or dynamic component insertion) therefore it's + // important to still style the element. + if (nodeIsOrphaned) { + player.onStart(() => + eraseStyles(element, instruction.fromStyles) + ); + player.onDestroy(() => + setStyles(element, instruction.toStyles) + ); + skippedPlayers.push(player); + return; + } + // if an unmatched transition is queued and ready to go + // then it SHOULD NOT render an animation and cancel the + // previously running animations. + if (entry.isFallbackTransition) { + player.onStart(() => + eraseStyles(element, instruction.fromStyles) + ); + player.onDestroy(() => + setStyles(element, instruction.toStyles) + ); + skippedPlayers.push(player); + return; + } + // this means that if a parent animation uses this animation as a sub-trigger + // then it will instruct the timeline builder not to add a player delay, but + // instead stretch the first keyframe gap until the animation starts. This is + // important in order to prevent extra initialization styles from being + // required by the user for the animation. + const timelines = []; + instruction.timelines.forEach((tl) => { + tl.stretchStartingKeyframe = true; + if (!this.disabledNodes.has(tl.element)) { + timelines.push(tl); + } + }); + instruction.timelines = timelines; + subTimelines.append(element, instruction.timelines); + const tuple = { + instruction, + player, + element, + }; + queuedInstructions.push(tuple); + instruction.queriedElements.forEach((element) => + getOrSetDefaultValue(queriedElements, element, []).push( + player + ) + ); + instruction.preStyleProps.forEach((stringMap, element) => { + if (stringMap.size) { + let setVal = allPreStyleElements.get(element); + if (!setVal) { + allPreStyleElements.set(element, (setVal = new Set())); + } + stringMap.forEach((_, prop) => setVal.add(prop)); + } + }); + instruction.postStyleProps.forEach((stringMap, element) => { + let setVal = allPostStyleElements.get(element); + if (!setVal) { + allPostStyleElements.set(element, (setVal = new Set())); + } + stringMap.forEach((_, prop) => setVal.add(prop)); + }); + }); + } + if (erroneousTransitions.length) { + const errors = []; + erroneousTransitions.forEach((instruction) => { + errors.push( + transitionFailed(instruction.triggerName, instruction.errors) + ); + }); + allPlayers.forEach((player) => player.destroy()); + this.reportError(errors); + } + const allPreviousPlayersMap = new Map(); + // this map tells us which element in the DOM tree is contained by + // which animation. Further down this map will get populated once + // the players are built and in doing so we can use it to efficiently + // figure out if a sub player is skipped due to a parent player having priority. + const animationElementMap = new Map(); + queuedInstructions.forEach((entry) => { + const element = entry.element; + if (subTimelines.has(element)) { + animationElementMap.set(element, element); + this._beforeAnimationBuild( + entry.player.namespaceId, + entry.instruction, + allPreviousPlayersMap + ); + } + }); + skippedPlayers.forEach((player) => { + const element = player.element; + const previousPlayers = this._getPreviousPlayers( + element, + false, + player.namespaceId, + player.triggerName, + null + ); + previousPlayers.forEach((prevPlayer) => { + getOrSetDefaultValue(allPreviousPlayersMap, element, []).push( + prevPlayer + ); + prevPlayer.destroy(); + }); + }); + // this is a special case for nodes that will be removed either by + // having their own leave animations or by being queried in a container + // that will be removed once a parent animation is complete. The idea + // here is that * styles must be identical to ! styles because of + // backwards compatibility (* is also filled in by default in many places). + // Otherwise * styles will return an empty value or "auto" since the element + // passed to getComputedStyle will not be visible (since * === destination) + const replaceNodes = allLeaveNodes.filter((node) => { + return replacePostStylesAsPre( + node, + allPreStyleElements, + allPostStyleElements + ); + }); + // POST STAGE: fill the * styles + const postStylesMap = new Map(); + const allLeaveQueriedNodes = cloakAndComputeStyles( + postStylesMap, + this.driver, + leaveNodesWithoutAnimations, + allPostStyleElements, + _angular_animations__WEBPACK_IMPORTED_MODULE_1__.AUTO_STYLE + ); + allLeaveQueriedNodes.forEach((node) => { + if ( + replacePostStylesAsPre( + node, + allPreStyleElements, + allPostStyleElements + ) + ) { + replaceNodes.push(node); + } + }); + // PRE STAGE: fill the ! styles + const preStylesMap = new Map(); + enterNodeMap.forEach((nodes, root) => { + cloakAndComputeStyles( + preStylesMap, + this.driver, + new Set(nodes), + allPreStyleElements, + _angular_animations__WEBPACK_IMPORTED_MODULE_1__["ɵPRE_STYLE"] + ); + }); + replaceNodes.forEach((node) => { + const post = postStylesMap.get(node); + const pre = preStylesMap.get(node); + postStylesMap.set( + node, + new Map([ + ...Array.from(post?.entries() ?? []), + ...Array.from(pre?.entries() ?? []), + ]) + ); + }); + const rootPlayers = []; + const subPlayers = []; + const NO_PARENT_ANIMATION_ELEMENT_DETECTED = {}; + queuedInstructions.forEach((entry) => { + const { element, player, instruction } = entry; + // this means that it was never consumed by a parent animation which + // means that it is independent and therefore should be set for animation + if (subTimelines.has(element)) { + if (disabledElementsSet.has(element)) { + player.onDestroy(() => + setStyles(element, instruction.toStyles) + ); + player.disabled = true; + player.overrideTotalTime(instruction.totalTime); + skippedPlayers.push(player); + return; + } + // this will flow up the DOM and query the map to figure out + // if a parent animation has priority over it. In the situation + // that a parent is detected then it will cancel the loop. If + // nothing is detected, or it takes a few hops to find a parent, + // then it will fill in the missing nodes and signal them as having + // a detected parent (or a NO_PARENT value via a special constant). + let parentWithAnimation = NO_PARENT_ANIMATION_ELEMENT_DETECTED; + if (animationElementMap.size > 1) { + let elm = element; + const parentsToAdd = []; + while ((elm = elm.parentNode)) { + const detectedParent = animationElementMap.get(elm); + if (detectedParent) { + parentWithAnimation = detectedParent; + break; + } + parentsToAdd.push(elm); + } + parentsToAdd.forEach((parent) => + animationElementMap.set(parent, parentWithAnimation) + ); + } + const innerPlayer = this._buildAnimation( + player.namespaceId, + instruction, + allPreviousPlayersMap, + skippedPlayersMap, + preStylesMap, + postStylesMap + ); + player.setRealPlayer(innerPlayer); + if ( + parentWithAnimation === NO_PARENT_ANIMATION_ELEMENT_DETECTED + ) { + rootPlayers.push(player); + } else { + const parentPlayers = + this.playersByElement.get(parentWithAnimation); + if (parentPlayers && parentPlayers.length) { + player.parentPlayer = optimizeGroupPlayer(parentPlayers); + } + skippedPlayers.push(player); + } + } else { + eraseStyles(element, instruction.fromStyles); + player.onDestroy(() => + setStyles(element, instruction.toStyles) + ); + // there still might be a ancestor player animating this + // element therefore we will still add it as a sub player + // even if its animation may be disabled + subPlayers.push(player); + if (disabledElementsSet.has(element)) { + skippedPlayers.push(player); + } + } + }); + // find all of the sub players' corresponding inner animation players + subPlayers.forEach((player) => { + // even if no players are found for a sub animation it + // will still complete itself after the next tick since it's Noop + const playersForElement = skippedPlayersMap.get(player.element); + if (playersForElement && playersForElement.length) { + const innerPlayer = optimizeGroupPlayer(playersForElement); + player.setRealPlayer(innerPlayer); + } + }); + // the reason why we don't actually play the animation is + // because all that a skipped player is designed to do is to + // fire the start/done transition callback events + skippedPlayers.forEach((player) => { + if (player.parentPlayer) { + player.syncPlayerEvents(player.parentPlayer); + } else { + player.destroy(); + } + }); + // run through all of the queued removals and see if they + // were picked up by a query. If not then perform the removal + // operation right away unless a parent animation is ongoing. + for (let i = 0; i < allLeaveNodes.length; i++) { + const element = allLeaveNodes[i]; + const details = element[REMOVAL_FLAG]; + removeClass(element, LEAVE_CLASSNAME); + // this means the element has a removal animation that is being + // taken care of and therefore the inner elements will hang around + // until that animation is over (or the parent queried animation) + if (details && details.hasAnimation) continue; + let players = []; + // if this element is queried or if it contains queried children + // then we want for the element not to be removed from the page + // until the queried animations have finished + if (queriedElements.size) { + let queriedPlayerResults = queriedElements.get(element); + if (queriedPlayerResults && queriedPlayerResults.length) { + players.push(...queriedPlayerResults); + } + let queriedInnerElements = this.driver.query( + element, + NG_ANIMATING_SELECTOR, + true + ); + for (let j = 0; j < queriedInnerElements.length; j++) { + let queriedPlayers = queriedElements.get( + queriedInnerElements[j] + ); + if (queriedPlayers && queriedPlayers.length) { + players.push(...queriedPlayers); + } + } + } + const activePlayers = players.filter((p) => !p.destroyed); + if (activePlayers.length) { + removeNodesAfterAnimationDone(this, element, activePlayers); + } else { + this.processLeaveNode(element); + } + } + // this is required so the cleanup method doesn't remove them + allLeaveNodes.length = 0; + rootPlayers.forEach((player) => { + this.players.push(player); + player.onDone(() => { + player.destroy(); + const index = this.players.indexOf(player); + this.players.splice(index, 1); + }); + player.play(); + }); + return rootPlayers; + } + elementContainsData(namespaceId, element) { + let containsData = false; + const details = element[REMOVAL_FLAG]; + if (details && details.setForRemoval) containsData = true; + if (this.playersByElement.has(element)) containsData = true; + if (this.playersByQueriedElement.has(element)) containsData = true; + if (this.statesByElement.has(element)) containsData = true; + return ( + this._fetchNamespace(namespaceId).elementContainsData(element) || + containsData + ); + } + afterFlush(callback) { + this._flushFns.push(callback); + } + afterFlushAnimationsDone(callback) { + this._whenQuietFns.push(callback); + } + _getPreviousPlayers( + element, + isQueriedElement, + namespaceId, + triggerName, + toStateValue + ) { + let players = []; + if (isQueriedElement) { + const queriedElementPlayers = + this.playersByQueriedElement.get(element); + if (queriedElementPlayers) { + players = queriedElementPlayers; + } + } else { + const elementPlayers = this.playersByElement.get(element); + if (elementPlayers) { + const isRemovalAnimation = + !toStateValue || toStateValue == VOID_VALUE; + elementPlayers.forEach((player) => { + if (player.queued) return; + if (!isRemovalAnimation && player.triggerName != triggerName) + return; + players.push(player); + }); + } + } + if (namespaceId || triggerName) { + players = players.filter((player) => { + if (namespaceId && namespaceId != player.namespaceId) + return false; + if (triggerName && triggerName != player.triggerName) + return false; + return true; + }); + } + return players; + } + _beforeAnimationBuild( + namespaceId, + instruction, + allPreviousPlayersMap + ) { + const triggerName = instruction.triggerName; + const rootElement = instruction.element; + // when a removal animation occurs, ALL previous players are collected + // and destroyed (even if they are outside of the current namespace) + const targetNameSpaceId = instruction.isRemovalTransition + ? undefined + : namespaceId; + const targetTriggerName = instruction.isRemovalTransition + ? undefined + : triggerName; + for (const timelineInstruction of instruction.timelines) { + const element = timelineInstruction.element; + const isQueriedElement = element !== rootElement; + const players = getOrSetDefaultValue( + allPreviousPlayersMap, + element, + [] + ); + const previousPlayers = this._getPreviousPlayers( + element, + isQueriedElement, + targetNameSpaceId, + targetTriggerName, + instruction.toState + ); + previousPlayers.forEach((player) => { + const realPlayer = player.getRealPlayer(); + if (realPlayer.beforeDestroy) { + realPlayer.beforeDestroy(); + } + player.destroy(); + players.push(player); + }); + } + // this needs to be done so that the PRE/POST styles can be + // computed properly without interfering with the previous animation + eraseStyles(rootElement, instruction.fromStyles); + } + _buildAnimation( + namespaceId, + instruction, + allPreviousPlayersMap, + skippedPlayersMap, + preStylesMap, + postStylesMap + ) { + const triggerName = instruction.triggerName; + const rootElement = instruction.element; + // we first run this so that the previous animation player + // data can be passed into the successive animation players + const allQueriedPlayers = []; + const allConsumedElements = new Set(); + const allSubElements = new Set(); + const allNewPlayers = instruction.timelines.map( + (timelineInstruction) => { + const element = timelineInstruction.element; + allConsumedElements.add(element); + // FIXME (matsko): make sure to-be-removed animations are removed properly + const details = element[REMOVAL_FLAG]; + if (details && details.removedBeforeQueried) + return new _angular_animations__WEBPACK_IMPORTED_MODULE_1__.NoopAnimationPlayer( + timelineInstruction.duration, + timelineInstruction.delay + ); + const isQueriedElement = element !== rootElement; + const previousPlayers = flattenGroupPlayers( + ( + allPreviousPlayersMap.get(element) || EMPTY_PLAYER_ARRAY + ).map((p) => p.getRealPlayer()) + ).filter((p) => { + // the `element` is not apart of the AnimationPlayer definition, but + // Mock/WebAnimations + // use the element within their implementation. This will be added in Angular5 to + // AnimationPlayer + const pp = p; + return pp.element ? pp.element === element : false; + }); + const preStyles = preStylesMap.get(element); + const postStyles = postStylesMap.get(element); + const keyframes = normalizeKeyframes$1( + this.driver, + this._normalizer, + element, + timelineInstruction.keyframes, + preStyles, + postStyles + ); + const player = this._buildPlayer( + timelineInstruction, + keyframes, + previousPlayers + ); + // this means that this particular player belongs to a sub trigger. It is + // important that we match this player up with the corresponding (@trigger.listener) + if (timelineInstruction.subTimeline && skippedPlayersMap) { + allSubElements.add(element); + } + if (isQueriedElement) { + const wrappedPlayer = new TransitionAnimationPlayer( + namespaceId, + triggerName, + element + ); + wrappedPlayer.setRealPlayer(player); + allQueriedPlayers.push(wrappedPlayer); + } + return player; + } + ); + allQueriedPlayers.forEach((player) => { + getOrSetDefaultValue( + this.playersByQueriedElement, + player.element, + [] + ).push(player); + player.onDone(() => + deleteOrUnsetInMap( + this.playersByQueriedElement, + player.element, + player + ) + ); + }); + allConsumedElements.forEach((element) => + addClass(element, NG_ANIMATING_CLASSNAME) + ); + const player = optimizeGroupPlayer(allNewPlayers); + player.onDestroy(() => { + allConsumedElements.forEach((element) => + removeClass(element, NG_ANIMATING_CLASSNAME) + ); + setStyles(rootElement, instruction.toStyles); + }); + // this basically makes all of the callbacks for sub element animations + // be dependent on the upper players for when they finish + allSubElements.forEach((element) => { + getOrSetDefaultValue(skippedPlayersMap, element, []).push(player); + }); + return player; + } + _buildPlayer(instruction, keyframes, previousPlayers) { + if (keyframes.length > 0) { + return this.driver.animate( + instruction.element, + keyframes, + instruction.duration, + instruction.delay, + instruction.easing, + previousPlayers + ); + } + // special case for when an empty transition|definition is provided + // ... there is no point in rendering an empty animation + return new _angular_animations__WEBPACK_IMPORTED_MODULE_1__.NoopAnimationPlayer( + instruction.duration, + instruction.delay + ); + } + } + class TransitionAnimationPlayer { + constructor(namespaceId, triggerName, element) { + this.namespaceId = namespaceId; + this.triggerName = triggerName; + this.element = element; + this._player = + new _angular_animations__WEBPACK_IMPORTED_MODULE_1__.NoopAnimationPlayer(); + this._containsRealPlayer = false; + this._queuedCallbacks = new Map(); + this.destroyed = false; + this.markedForDestroy = false; + this.disabled = false; + this.queued = true; + this.totalTime = 0; + } + setRealPlayer(player) { + if (this._containsRealPlayer) return; + this._player = player; + this._queuedCallbacks.forEach((callbacks, phase) => { + callbacks.forEach((callback) => + listenOnPlayer(player, phase, undefined, callback) + ); + }); + this._queuedCallbacks.clear(); + this._containsRealPlayer = true; + this.overrideTotalTime(player.totalTime); + this.queued = false; + } + getRealPlayer() { + return this._player; + } + overrideTotalTime(totalTime) { + this.totalTime = totalTime; + } + syncPlayerEvents(player) { + const p = this._player; + if (p.triggerCallback) { + player.onStart(() => p.triggerCallback("start")); + } + player.onDone(() => this.finish()); + player.onDestroy(() => this.destroy()); + } + _queueEvent(name, callback) { + getOrSetDefaultValue(this._queuedCallbacks, name, []).push( + callback + ); + } + onDone(fn) { + if (this.queued) { + this._queueEvent("done", fn); + } + this._player.onDone(fn); + } + onStart(fn) { + if (this.queued) { + this._queueEvent("start", fn); + } + this._player.onStart(fn); + } + onDestroy(fn) { + if (this.queued) { + this._queueEvent("destroy", fn); + } + this._player.onDestroy(fn); + } + init() { + this._player.init(); + } + hasStarted() { + return this.queued ? false : this._player.hasStarted(); + } + play() { + !this.queued && this._player.play(); + } + pause() { + !this.queued && this._player.pause(); + } + restart() { + !this.queued && this._player.restart(); + } + finish() { + this._player.finish(); + } + destroy() { + this.destroyed = true; + this._player.destroy(); + } + reset() { + !this.queued && this._player.reset(); + } + setPosition(p) { + if (!this.queued) { + this._player.setPosition(p); + } + } + getPosition() { + return this.queued ? 0 : this._player.getPosition(); + } + /** @internal */ + triggerCallback(phaseName) { + const p = this._player; + if (p.triggerCallback) { + p.triggerCallback(phaseName); + } + } + } + function deleteOrUnsetInMap(map, key, value) { + let currentValues = map.get(key); + if (currentValues) { + if (currentValues.length) { + const index = currentValues.indexOf(value); + currentValues.splice(index, 1); + } + if (currentValues.length == 0) { + map.delete(key); + } + } + return currentValues; + } + function normalizeTriggerValue(value) { + // we use `!= null` here because it's the most simple + // way to test against a "falsy" value without mixing + // in empty strings or a zero value. DO NOT OPTIMIZE. + return value != null ? value : null; + } + function isElementNode(node) { + return node && node["nodeType"] === 1; + } + function isTriggerEventValid(eventName) { + return eventName == "start" || eventName == "done"; + } + function cloakElement(element, value) { + const oldValue = element.style.display; + element.style.display = value != null ? value : "none"; + return oldValue; + } + function cloakAndComputeStyles( + valuesMap, + driver, + elements, + elementPropsMap, + defaultStyle + ) { + const cloakVals = []; + elements.forEach((element) => cloakVals.push(cloakElement(element))); + const failedElements = []; + elementPropsMap.forEach((props, element) => { + const styles = new Map(); + props.forEach((prop) => { + const value = driver.computeStyle(element, prop, defaultStyle); + styles.set(prop, value); + // there is no easy way to detect this because a sub element could be removed + // by a parent animation element being detached. + if (!value || value.length == 0) { + element[REMOVAL_FLAG] = NULL_REMOVED_QUERIED_STATE; + failedElements.push(element); + } + }); + valuesMap.set(element, styles); + }); + // we use a index variable here since Set.forEach(a, i) does not return + // an index value for the closure (but instead just the value) + let i = 0; + elements.forEach((element) => cloakElement(element, cloakVals[i++])); + return failedElements; + } + /* +Since the Angular renderer code will return a collection of inserted +nodes in all areas of a DOM tree, it's up to this algorithm to figure +out which nodes are roots for each animation @trigger. + +By placing each inserted node into a Set and traversing upwards, it +is possible to find the @trigger elements and well any direct *star +insertion nodes, if a @trigger root is found then the enter element +is placed into the Map[@trigger] spot. + */ + function buildRootMap(roots, nodes) { + const rootMap = new Map(); + roots.forEach((root) => rootMap.set(root, [])); + if (nodes.length == 0) return rootMap; + const NULL_NODE = 1; + const nodeSet = new Set(nodes); + const localRootMap = new Map(); + function getRoot(node) { + if (!node) return NULL_NODE; + let root = localRootMap.get(node); + if (root) return root; + const parent = node.parentNode; + if (rootMap.has(parent)) { + // ngIf inside @trigger + root = parent; + } else if (nodeSet.has(parent)) { + // ngIf inside ngIf + root = NULL_NODE; + } else { + // recurse upwards + root = getRoot(parent); + } + localRootMap.set(node, root); + return root; + } + nodes.forEach((node) => { + const root = getRoot(node); + if (root !== NULL_NODE) { + rootMap.get(root).push(node); + } + }); + return rootMap; + } + function addClass(element, className) { + element.classList?.add(className); + } + function removeClass(element, className) { + element.classList?.remove(className); + } + function removeNodesAfterAnimationDone(engine, element, players) { + optimizeGroupPlayer(players).onDone(() => + engine.processLeaveNode(element) + ); + } + function flattenGroupPlayers(players) { + const finalPlayers = []; + _flattenGroupPlayersRecur(players, finalPlayers); + return finalPlayers; + } + function _flattenGroupPlayersRecur(players, finalPlayers) { + for (let i = 0; i < players.length; i++) { + const player = players[i]; + if ( + player instanceof + _angular_animations__WEBPACK_IMPORTED_MODULE_1__[ + "ɵAnimationGroupPlayer" + ] + ) { + _flattenGroupPlayersRecur(player.players, finalPlayers); + } else { + finalPlayers.push(player); + } + } + } + function objEquals(a, b) { + const k1 = Object.keys(a); + const k2 = Object.keys(b); + if (k1.length != k2.length) return false; + for (let i = 0; i < k1.length; i++) { + const prop = k1[i]; + if (!b.hasOwnProperty(prop) || a[prop] !== b[prop]) return false; + } + return true; + } + function replacePostStylesAsPre( + element, + allPreStyleElements, + allPostStyleElements + ) { + const postEntry = allPostStyleElements.get(element); + if (!postEntry) return false; + let preEntry = allPreStyleElements.get(element); + if (preEntry) { + postEntry.forEach((data) => preEntry.add(data)); + } else { + allPreStyleElements.set(element, postEntry); + } + allPostStyleElements.delete(element); + return true; + } + class AnimationEngine { + constructor(bodyNode, _driver, _normalizer) { + this.bodyNode = bodyNode; + this._driver = _driver; + this._normalizer = _normalizer; + this._triggerCache = {}; + // this method is designed to be overridden by the code that uses this engine + this.onRemovalComplete = (element, context) => {}; + this._transitionEngine = new TransitionAnimationEngine( + bodyNode, + _driver, + _normalizer + ); + this._timelineEngine = new TimelineAnimationEngine( + bodyNode, + _driver, + _normalizer + ); + this._transitionEngine.onRemovalComplete = (element, context) => + this.onRemovalComplete(element, context); + } + registerTrigger( + componentId, + namespaceId, + hostElement, + name, + metadata + ) { + const cacheKey = componentId + "-" + name; + let trigger = this._triggerCache[cacheKey]; + if (!trigger) { + const errors = []; + const warnings = []; + const ast = buildAnimationAst( + this._driver, + metadata, + errors, + warnings + ); + if (errors.length) { + throw triggerBuildFailed(name, errors); + } + if (warnings.length) { + warnTriggerBuild(name, warnings); + } + trigger = buildTrigger(name, ast, this._normalizer); + this._triggerCache[cacheKey] = trigger; + } + this._transitionEngine.registerTrigger(namespaceId, name, trigger); + } + register(namespaceId, hostElement) { + this._transitionEngine.register(namespaceId, hostElement); + } + destroy(namespaceId, context) { + this._transitionEngine.destroy(namespaceId, context); + } + onInsert(namespaceId, element, parent, insertBefore) { + this._transitionEngine.insertNode( + namespaceId, + element, + parent, + insertBefore + ); + } + onRemove(namespaceId, element, context, isHostElement) { + this._transitionEngine.removeNode( + namespaceId, + element, + isHostElement || false, + context + ); + } + disableAnimations(element, disable) { + this._transitionEngine.markElementAsDisabled(element, disable); + } + process(namespaceId, element, property, value) { + if (property.charAt(0) == "@") { + const [id, action] = parseTimelineCommand(property); + const args = value; + this._timelineEngine.command(id, element, action, args); + } else { + this._transitionEngine.trigger( + namespaceId, + element, + property, + value + ); + } + } + listen(namespaceId, element, eventName, eventPhase, callback) { + // @@listen + if (eventName.charAt(0) == "@") { + const [id, action] = parseTimelineCommand(eventName); + return this._timelineEngine.listen(id, element, action, callback); + } + return this._transitionEngine.listen( + namespaceId, + element, + eventName, + eventPhase, + callback + ); + } + flush(microtaskId = -1) { + this._transitionEngine.flush(microtaskId); + } + get players() { + return this._transitionEngine.players.concat( + this._timelineEngine.players + ); + } + whenRenderingDone() { + return this._transitionEngine.whenRenderingDone(); + } + } + + /** + * Returns an instance of `SpecialCasedStyles` if and when any special (non animateable) styles are + * detected. + * + * In CSS there exist properties that cannot be animated within a keyframe animation + * (whether it be via CSS keyframes or web-animations) and the animation implementation + * will ignore them. This function is designed to detect those special cased styles and + * return a container that will be executed at the start and end of the animation. + * + * @returns an instance of `SpecialCasedStyles` if any special styles are detected otherwise `null` + */ + function packageNonAnimatableStyles(element, styles) { + let startStyles = null; + let endStyles = null; + if (Array.isArray(styles) && styles.length) { + startStyles = filterNonAnimatableStyles(styles[0]); + if (styles.length > 1) { + endStyles = filterNonAnimatableStyles(styles[styles.length - 1]); + } + } else if (styles instanceof Map) { + startStyles = filterNonAnimatableStyles(styles); + } + return startStyles || endStyles + ? new SpecialCasedStyles(element, startStyles, endStyles) + : null; + } + /** + * Designed to be executed during a keyframe-based animation to apply any special-cased styles. + * + * When started (when the `start()` method is run) then the provided `startStyles` + * will be applied. When finished (when the `finish()` method is called) the + * `endStyles` will be applied as well any any starting styles. Finally when + * `destroy()` is called then all styles will be removed. + */ + class SpecialCasedStyles { + constructor(_element, _startStyles, _endStyles) { + this._element = _element; + this._startStyles = _startStyles; + this._endStyles = _endStyles; + this._state = 0 /* SpecialCasedStylesState.Pending */; + let initialStyles = + SpecialCasedStyles.initialStylesByElement.get(_element); + if (!initialStyles) { + SpecialCasedStyles.initialStylesByElement.set( + _element, + (initialStyles = new Map()) + ); + } + this._initialStyles = initialStyles; + } + start() { + if (this._state < 1 /* SpecialCasedStylesState.Started */) { + if (this._startStyles) { + setStyles( + this._element, + this._startStyles, + this._initialStyles + ); + } + this._state = 1 /* SpecialCasedStylesState.Started */; + } + } + + finish() { + this.start(); + if (this._state < 2 /* SpecialCasedStylesState.Finished */) { + setStyles(this._element, this._initialStyles); + if (this._endStyles) { + setStyles(this._element, this._endStyles); + this._endStyles = null; + } + this._state = 1 /* SpecialCasedStylesState.Started */; + } + } + + destroy() { + this.finish(); + if (this._state < 3 /* SpecialCasedStylesState.Destroyed */) { + SpecialCasedStyles.initialStylesByElement.delete(this._element); + if (this._startStyles) { + eraseStyles(this._element, this._startStyles); + this._endStyles = null; + } + if (this._endStyles) { + eraseStyles(this._element, this._endStyles); + this._endStyles = null; + } + setStyles(this._element, this._initialStyles); + this._state = 3 /* SpecialCasedStylesState.Destroyed */; + } + } + } + + SpecialCasedStyles.initialStylesByElement = + /* @__PURE__ */ new WeakMap(); + function filterNonAnimatableStyles(styles) { + let result = null; + styles.forEach((val, prop) => { + if (isNonAnimatableStyle(prop)) { + result = result || new Map(); + result.set(prop, val); + } + }); + return result; + } + function isNonAnimatableStyle(prop) { + return prop === "display" || prop === "position"; + } + class WebAnimationsPlayer { + constructor(element, keyframes, options, _specialStyles) { + this.element = element; + this.keyframes = keyframes; + this.options = options; + this._specialStyles = _specialStyles; + this._onDoneFns = []; + this._onStartFns = []; + this._onDestroyFns = []; + this._initialized = false; + this._finished = false; + this._started = false; + this._destroyed = false; + // the following original fns are persistent copies of the _onStartFns and _onDoneFns + // and are used to reset the fns to their original values upon reset() + // (since the _onStartFns and _onDoneFns get deleted after they are called) + this._originalOnDoneFns = []; + this._originalOnStartFns = []; + this.time = 0; + this.parentPlayer = null; + this.currentSnapshot = new Map(); + this._duration = options["duration"]; + this._delay = options["delay"] || 0; + this.time = this._duration + this._delay; + } + _onFinish() { + if (!this._finished) { + this._finished = true; + this._onDoneFns.forEach((fn) => fn()); + this._onDoneFns = []; + } + } + init() { + this._buildPlayer(); + this._preparePlayerBeforeStart(); + } + _buildPlayer() { + if (this._initialized) return; + this._initialized = true; + const keyframes = this.keyframes; + this.domPlayer = this._triggerWebAnimation( + this.element, + keyframes, + this.options + ); + this._finalKeyframe = keyframes.length + ? keyframes[keyframes.length - 1] + : new Map(); + this.domPlayer.addEventListener("finish", () => this._onFinish()); + } + _preparePlayerBeforeStart() { + // this is required so that the player doesn't start to animate right away + if (this._delay) { + this._resetDomPlayerState(); + } else { + this.domPlayer.pause(); + } + } + _convertKeyframesToObject(keyframes) { + const kfs = []; + keyframes.forEach((frame) => { + kfs.push(Object.fromEntries(frame)); + }); + return kfs; + } + /** @internal */ + _triggerWebAnimation(element, keyframes, options) { + // jscompiler doesn't seem to know animate is a native property because it's not fully + // supported yet across common browsers (we polyfill it for Edge/Safari) [CL #143630929] + return element["animate"]( + this._convertKeyframesToObject(keyframes), + options + ); + } + onStart(fn) { + this._originalOnStartFns.push(fn); + this._onStartFns.push(fn); + } + onDone(fn) { + this._originalOnDoneFns.push(fn); + this._onDoneFns.push(fn); + } + onDestroy(fn) { + this._onDestroyFns.push(fn); + } + play() { + this._buildPlayer(); + if (!this.hasStarted()) { + this._onStartFns.forEach((fn) => fn()); + this._onStartFns = []; + this._started = true; + if (this._specialStyles) { + this._specialStyles.start(); + } + } + this.domPlayer.play(); + } + pause() { + this.init(); + this.domPlayer.pause(); + } + finish() { + this.init(); + if (this._specialStyles) { + this._specialStyles.finish(); + } + this._onFinish(); + this.domPlayer.finish(); + } + reset() { + this._resetDomPlayerState(); + this._destroyed = false; + this._finished = false; + this._started = false; + this._onStartFns = this._originalOnStartFns; + this._onDoneFns = this._originalOnDoneFns; + } + _resetDomPlayerState() { + if (this.domPlayer) { + this.domPlayer.cancel(); + } + } + restart() { + this.reset(); + this.play(); + } + hasStarted() { + return this._started; + } + destroy() { + if (!this._destroyed) { + this._destroyed = true; + this._resetDomPlayerState(); + this._onFinish(); + if (this._specialStyles) { + this._specialStyles.destroy(); + } + this._onDestroyFns.forEach((fn) => fn()); + this._onDestroyFns = []; + } + } + setPosition(p) { + if (this.domPlayer === undefined) { + this.init(); + } + this.domPlayer.currentTime = p * this.time; + } + getPosition() { + return this.domPlayer.currentTime / this.time; + } + get totalTime() { + return this._delay + this._duration; + } + beforeDestroy() { + const styles = new Map(); + if (this.hasStarted()) { + // note: this code is invoked only when the `play` function was called prior to this + // (thus `hasStarted` returns true), this implies that the code that initializes + // `_finalKeyframe` has also been executed and the non-null assertion can be safely used here + const finalKeyframe = this._finalKeyframe; + finalKeyframe.forEach((val, prop) => { + if (prop !== "offset") { + styles.set( + prop, + this._finished ? val : computeStyle(this.element, prop) + ); + } + }); + } + this.currentSnapshot = styles; + } + /** @internal */ + triggerCallback(phaseName) { + const methods = + phaseName === "start" ? this._onStartFns : this._onDoneFns; + methods.forEach((fn) => fn()); + methods.length = 0; + } + } + class WebAnimationsDriver { + validateStyleProperty(prop) { + // Perform actual validation in dev mode only, in prod mode this check is a noop. + if (typeof ngDevMode === "undefined" || ngDevMode) { + return validateStyleProperty(prop); + } + return true; + } + validateAnimatableStyleProperty(prop) { + // Perform actual validation in dev mode only, in prod mode this check is a noop. + if (typeof ngDevMode === "undefined" || ngDevMode) { + const cssProp = camelCaseToDashCase(prop); + return validateWebAnimatableStyleProperty(cssProp); + } + return true; + } + matchesElement(_element, _selector) { + // This method is deprecated and no longer in use so we return false. + return false; + } + containsElement(elm1, elm2) { + return containsElement(elm1, elm2); + } + getParentElement(element) { + return getParentElement(element); + } + query(element, selector, multi) { + return invokeQuery(element, selector, multi); + } + computeStyle(element, prop, defaultValue) { + return window.getComputedStyle(element)[prop]; + } + animate( + element, + keyframes, + duration, + delay, + easing, + previousPlayers = [] + ) { + const fill = delay == 0 ? "both" : "forwards"; + const playerOptions = { + duration, + delay, + fill, + }; + // we check for this to avoid having a null|undefined value be present + // for the easing (which results in an error for certain browsers #9752) + if (easing) { + playerOptions["easing"] = easing; + } + const previousStyles = new Map(); + const previousWebAnimationPlayers = previousPlayers.filter( + (player) => player instanceof WebAnimationsPlayer + ); + if (allowPreviousPlayerStylesMerge(duration, delay)) { + previousWebAnimationPlayers.forEach((player) => { + player.currentSnapshot.forEach((val, prop) => + previousStyles.set(prop, val) + ); + }); + } + let _keyframes = normalizeKeyframes(keyframes).map((styles) => + copyStyles(styles) + ); + _keyframes = balancePreviousStylesIntoKeyframes( + element, + _keyframes, + previousStyles + ); + const specialStyles = packageNonAnimatableStyles( + element, + _keyframes + ); + return new WebAnimationsPlayer( + element, + _keyframes, + playerOptions, + specialStyles + ); + } + } + + /** + * @module + * @description + * Entry point for all animation APIs of the animation browser package. + */ + + /** + * @module + * @description + * Entry point for all public APIs of this package. + */ + + // This file is not used to build this module. It is only used during editing + + /** + * Generated bundle index. Do not edit. + */ + + /***/ + }, + + /***/ 4218: + /*!*****************************************************!*\ + !*** ./node_modules/@angular/cdk/fesm2020/a11y.mjs ***! + \*****************************************************/ + /***/ ( + __unused_webpack___webpack_module__, + __webpack_exports__, + __webpack_require__ + ) => { + __webpack_require__.r(__webpack_exports__); + /* harmony export */ __webpack_require__.d(__webpack_exports__, { + /* harmony export */ A11yModule: () => /* binding */ A11yModule, + /* harmony export */ ActiveDescendantKeyManager: () => + /* binding */ ActiveDescendantKeyManager, + /* harmony export */ AriaDescriber: () => /* binding */ AriaDescriber, + /* harmony export */ CDK_DESCRIBEDBY_HOST_ATTRIBUTE: () => + /* binding */ CDK_DESCRIBEDBY_HOST_ATTRIBUTE, + /* harmony export */ CDK_DESCRIBEDBY_ID_PREFIX: () => + /* binding */ CDK_DESCRIBEDBY_ID_PREFIX, + /* harmony export */ CdkAriaLive: () => /* binding */ CdkAriaLive, + /* harmony export */ CdkMonitorFocus: () => + /* binding */ CdkMonitorFocus, + /* harmony export */ CdkTrapFocus: () => /* binding */ CdkTrapFocus, + /* harmony export */ ConfigurableFocusTrap: () => + /* binding */ ConfigurableFocusTrap, + /* harmony export */ ConfigurableFocusTrapFactory: () => + /* binding */ ConfigurableFocusTrapFactory, + /* harmony export */ EventListenerFocusTrapInertStrategy: () => + /* binding */ EventListenerFocusTrapInertStrategy, + /* harmony export */ FOCUS_MONITOR_DEFAULT_OPTIONS: () => + /* binding */ FOCUS_MONITOR_DEFAULT_OPTIONS, + /* harmony export */ FOCUS_TRAP_INERT_STRATEGY: () => + /* binding */ FOCUS_TRAP_INERT_STRATEGY, + /* harmony export */ FocusKeyManager: () => + /* binding */ FocusKeyManager, + /* harmony export */ FocusMonitor: () => /* binding */ FocusMonitor, + /* harmony export */ FocusTrap: () => /* binding */ FocusTrap, + /* harmony export */ FocusTrapFactory: () => + /* binding */ FocusTrapFactory, + /* harmony export */ HighContrastModeDetector: () => + /* binding */ HighContrastModeDetector, + /* harmony export */ INPUT_MODALITY_DETECTOR_DEFAULT_OPTIONS: () => + /* binding */ INPUT_MODALITY_DETECTOR_DEFAULT_OPTIONS, + /* harmony export */ INPUT_MODALITY_DETECTOR_OPTIONS: () => + /* binding */ INPUT_MODALITY_DETECTOR_OPTIONS, + /* harmony export */ InputModalityDetector: () => + /* binding */ InputModalityDetector, + /* harmony export */ InteractivityChecker: () => + /* binding */ InteractivityChecker, + /* harmony export */ IsFocusableConfig: () => + /* binding */ IsFocusableConfig, + /* harmony export */ LIVE_ANNOUNCER_DEFAULT_OPTIONS: () => + /* binding */ LIVE_ANNOUNCER_DEFAULT_OPTIONS, + /* harmony export */ LIVE_ANNOUNCER_ELEMENT_TOKEN: () => + /* binding */ LIVE_ANNOUNCER_ELEMENT_TOKEN, + /* harmony export */ LIVE_ANNOUNCER_ELEMENT_TOKEN_FACTORY: () => + /* binding */ LIVE_ANNOUNCER_ELEMENT_TOKEN_FACTORY, + /* harmony export */ ListKeyManager: () => + /* binding */ ListKeyManager, + /* harmony export */ LiveAnnouncer: () => /* binding */ LiveAnnouncer, + /* harmony export */ MESSAGES_CONTAINER_ID: () => + /* binding */ MESSAGES_CONTAINER_ID, + /* harmony export */ isFakeMousedownFromScreenReader: () => + /* binding */ isFakeMousedownFromScreenReader, + /* harmony export */ isFakeTouchstartFromScreenReader: () => + /* binding */ isFakeTouchstartFromScreenReader, + /* harmony export */ + }); + /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = + __webpack_require__(/*! @angular/common */ 4666); + /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = + __webpack_require__(/*! @angular/core */ 2560); + /* harmony import */ var _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__ = + __webpack_require__(/*! @angular/cdk/platform */ 9107); + /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_3__ = + __webpack_require__(/*! rxjs */ 228); + /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_4__ = + __webpack_require__(/*! rxjs */ 6078); + /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_12__ = + __webpack_require__(/*! rxjs */ 6317); + /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_16__ = + __webpack_require__(/*! rxjs */ 745); + /* harmony import */ var _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_9__ = + __webpack_require__(/*! @angular/cdk/keycodes */ 8456); + /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_5__ = + __webpack_require__(/*! rxjs/operators */ 9337); + /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_6__ = + __webpack_require__(/*! rxjs/operators */ 1989); + /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_7__ = + __webpack_require__(/*! rxjs/operators */ 116); + /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_8__ = + __webpack_require__(/*! rxjs/operators */ 635); + /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_10__ = + __webpack_require__(/*! rxjs/operators */ 9295); + /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_13__ = + __webpack_require__(/*! rxjs/operators */ 7260); + /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_14__ = + __webpack_require__(/*! rxjs/operators */ 8977); + /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_17__ = + __webpack_require__(/*! rxjs/operators */ 8951); + /* harmony import */ var _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_11__ = + __webpack_require__(/*! @angular/cdk/coercion */ 8971); + /* harmony import */ var _angular_cdk_observers__WEBPACK_IMPORTED_MODULE_15__ = + __webpack_require__(/*! @angular/cdk/observers */ 3773); + /* harmony import */ var _angular_cdk_layout__WEBPACK_IMPORTED_MODULE_18__ = + __webpack_require__(/*! @angular/cdk/layout */ 3278); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** IDs are delimited by an empty space, as per the spec. */ + const ID_DELIMITER = " "; + /** + * Adds the given ID to the specified ARIA attribute on an element. + * Used for attributes such as aria-labelledby, aria-owns, etc. + */ + function addAriaReferencedId(el, attr, id) { + const ids = getAriaReferenceIds(el, attr); + if (ids.some((existingId) => existingId.trim() == id.trim())) { + return; + } + ids.push(id.trim()); + el.setAttribute(attr, ids.join(ID_DELIMITER)); + } + /** + * Removes the given ID from the specified ARIA attribute on an element. + * Used for attributes such as aria-labelledby, aria-owns, etc. + */ + function removeAriaReferencedId(el, attr, id) { + const ids = getAriaReferenceIds(el, attr); + const filteredIds = ids.filter((val) => val != id.trim()); + if (filteredIds.length) { + el.setAttribute(attr, filteredIds.join(ID_DELIMITER)); + } else { + el.removeAttribute(attr); + } + } + /** + * Gets the list of IDs referenced by the given ARIA attribute on an element. + * Used for attributes such as aria-labelledby, aria-owns, etc. + */ + function getAriaReferenceIds(el, attr) { + // Get string array of all individual ids (whitespace delimited) in the attribute value + return (el.getAttribute(attr) || "").match(/\S+/g) || []; + } + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** + * ID used for the body container where all messages are appended. + * @deprecated No longer being used. To be removed. + * @breaking-change 14.0.0 + */ + const MESSAGES_CONTAINER_ID = "cdk-describedby-message-container"; + /** + * ID prefix used for each created message element. + * @deprecated To be turned into a private variable. + * @breaking-change 14.0.0 + */ + const CDK_DESCRIBEDBY_ID_PREFIX = "cdk-describedby-message"; + /** + * Attribute given to each host element that is described by a message element. + * @deprecated To be turned into a private variable. + * @breaking-change 14.0.0 + */ + const CDK_DESCRIBEDBY_HOST_ATTRIBUTE = "cdk-describedby-host"; + /** Global incremental identifier for each registered message element. */ + let nextId = 0; + /** + * Utility that creates visually hidden elements with a message content. Useful for elements that + * want to use aria-describedby to further describe themselves without adding additional visual + * content. + */ + class AriaDescriber { + constructor( + _document, + /** + * @deprecated To be turned into a required parameter. + * @breaking-change 14.0.0 + */ + _platform + ) { + this._platform = _platform; + /** Map of all registered message elements that have been placed into the document. */ + this._messageRegistry = new Map(); + /** Container for all registered messages. */ + this._messagesContainer = null; + /** Unique ID for the service. */ + this._id = `${nextId++}`; + this._document = _document; + this._id = + (0, _angular_core__WEBPACK_IMPORTED_MODULE_0__.inject)( + _angular_core__WEBPACK_IMPORTED_MODULE_0__.APP_ID + ) + + "-" + + nextId++; + } + describe(hostElement, message, role) { + if (!this._canBeDescribed(hostElement, message)) { + return; + } + const key = getKey(message, role); + if (typeof message !== "string") { + // We need to ensure that the element has an ID. + setMessageId(message, this._id); + this._messageRegistry.set(key, { + messageElement: message, + referenceCount: 0, + }); + } else if (!this._messageRegistry.has(key)) { + this._createMessageElement(message, role); + } + if (!this._isElementDescribedByMessage(hostElement, key)) { + this._addMessageReference(hostElement, key); + } + } + removeDescription(hostElement, message, role) { + if (!message || !this._isElementNode(hostElement)) { + return; + } + const key = getKey(message, role); + if (this._isElementDescribedByMessage(hostElement, key)) { + this._removeMessageReference(hostElement, key); + } + // If the message is a string, it means that it's one that we created for the + // consumer so we can remove it safely, otherwise we should leave it in place. + if (typeof message === "string") { + const registeredMessage = this._messageRegistry.get(key); + if (registeredMessage && registeredMessage.referenceCount === 0) { + this._deleteMessageElement(key); + } + } + if (this._messagesContainer?.childNodes.length === 0) { + this._messagesContainer.remove(); + this._messagesContainer = null; + } + } + /** Unregisters all created message elements and removes the message container. */ + ngOnDestroy() { + const describedElements = this._document.querySelectorAll( + `[${CDK_DESCRIBEDBY_HOST_ATTRIBUTE}="${this._id}"]` + ); + for (let i = 0; i < describedElements.length; i++) { + this._removeCdkDescribedByReferenceIds(describedElements[i]); + describedElements[i].removeAttribute( + CDK_DESCRIBEDBY_HOST_ATTRIBUTE + ); + } + this._messagesContainer?.remove(); + this._messagesContainer = null; + this._messageRegistry.clear(); + } + /** + * Creates a new element in the visually hidden message container element with the message + * as its content and adds it to the message registry. + */ + _createMessageElement(message, role) { + const messageElement = this._document.createElement("div"); + setMessageId(messageElement, this._id); + messageElement.textContent = message; + if (role) { + messageElement.setAttribute("role", role); + } + this._createMessagesContainer(); + this._messagesContainer.appendChild(messageElement); + this._messageRegistry.set(getKey(message, role), { + messageElement, + referenceCount: 0, + }); + } + /** Deletes the message element from the global messages container. */ + _deleteMessageElement(key) { + this._messageRegistry.get(key)?.messageElement?.remove(); + this._messageRegistry.delete(key); + } + /** Creates the global container for all aria-describedby messages. */ + _createMessagesContainer() { + if (this._messagesContainer) { + return; + } + const containerClassName = "cdk-describedby-message-container"; + const serverContainers = this._document.querySelectorAll( + `.${containerClassName}[platform="server"]` + ); + for (let i = 0; i < serverContainers.length; i++) { + // When going from the server to the client, we may end up in a situation where there's + // already a container on the page, but we don't have a reference to it. Clear the + // old container so we don't get duplicates. Doing this, instead of emptying the previous + // container, should be slightly faster. + serverContainers[i].remove(); + } + const messagesContainer = this._document.createElement("div"); + // We add `visibility: hidden` in order to prevent text in this container from + // being searchable by the browser's Ctrl + F functionality. + // Screen-readers will still read the description for elements with aria-describedby even + // when the description element is not visible. + messagesContainer.style.visibility = "hidden"; + // Even though we use `visibility: hidden`, we still apply `cdk-visually-hidden` so that + // the description element doesn't impact page layout. + messagesContainer.classList.add(containerClassName); + messagesContainer.classList.add("cdk-visually-hidden"); + // @breaking-change 14.0.0 Remove null check for `_platform`. + if (this._platform && !this._platform.isBrowser) { + messagesContainer.setAttribute("platform", "server"); + } + this._document.body.appendChild(messagesContainer); + this._messagesContainer = messagesContainer; + } + /** Removes all cdk-describedby messages that are hosted through the element. */ + _removeCdkDescribedByReferenceIds(element) { + // Remove all aria-describedby reference IDs that are prefixed by CDK_DESCRIBEDBY_ID_PREFIX + const originalReferenceIds = getAriaReferenceIds( + element, + "aria-describedby" + ).filter((id) => id.indexOf(CDK_DESCRIBEDBY_ID_PREFIX) != 0); + element.setAttribute( + "aria-describedby", + originalReferenceIds.join(" ") + ); + } + /** + * Adds a message reference to the element using aria-describedby and increments the registered + * message's reference count. + */ + _addMessageReference(element, key) { + const registeredMessage = this._messageRegistry.get(key); + // Add the aria-describedby reference and set the + // describedby_host attribute to mark the element. + addAriaReferencedId( + element, + "aria-describedby", + registeredMessage.messageElement.id + ); + element.setAttribute(CDK_DESCRIBEDBY_HOST_ATTRIBUTE, this._id); + registeredMessage.referenceCount++; + } + /** + * Removes a message reference from the element using aria-describedby + * and decrements the registered message's reference count. + */ + _removeMessageReference(element, key) { + const registeredMessage = this._messageRegistry.get(key); + registeredMessage.referenceCount--; + removeAriaReferencedId( + element, + "aria-describedby", + registeredMessage.messageElement.id + ); + element.removeAttribute(CDK_DESCRIBEDBY_HOST_ATTRIBUTE); + } + /** Returns true if the element has been described by the provided message ID. */ + _isElementDescribedByMessage(element, key) { + const referenceIds = getAriaReferenceIds( + element, + "aria-describedby" + ); + const registeredMessage = this._messageRegistry.get(key); + const messageId = + registeredMessage && registeredMessage.messageElement.id; + return !!messageId && referenceIds.indexOf(messageId) != -1; + } + /** Determines whether a message can be described on a particular element. */ + _canBeDescribed(element, message) { + if (!this._isElementNode(element)) { + return false; + } + if (message && typeof message === "object") { + // We'd have to make some assumptions about the description element's text, if the consumer + // passed in an element. Assume that if an element is passed in, the consumer has verified + // that it can be used as a description. + return true; + } + const trimmedMessage = message == null ? "" : `${message}`.trim(); + const ariaLabel = element.getAttribute("aria-label"); + // We shouldn't set descriptions if they're exactly the same as the `aria-label` of the + // element, because screen readers will end up reading out the same text twice in a row. + return trimmedMessage + ? !ariaLabel || ariaLabel.trim() !== trimmedMessage + : false; + } + /** Checks whether a node is an Element node. */ + _isElementNode(element) { + return element.nodeType === this._document.ELEMENT_NODE; + } + } + AriaDescriber.ɵfac = function AriaDescriber_Factory(t) { + return new (t || AriaDescriber)( + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"]( + _angular_common__WEBPACK_IMPORTED_MODULE_1__.DOCUMENT + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"]( + _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__.Platform + ) + ); + }; + AriaDescriber.ɵprov = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineInjectable" + ]({ + token: AriaDescriber, + factory: AriaDescriber.ɵfac, + providedIn: "root", + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + AriaDescriber, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injectable, + args: [ + { + providedIn: "root", + }, + ], + }, + ], + function () { + return [ + { + type: undefined, + decorators: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject, + args: [ + _angular_common__WEBPACK_IMPORTED_MODULE_1__.DOCUMENT, + ], + }, + ], + }, + { + type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__.Platform, + }, + ]; + }, + null + ); + })(); + /** Gets a key that can be used to look messages up in the registry. */ + function getKey(message, role) { + return typeof message === "string" + ? `${role || ""}/${message}` + : message; + } + /** Assigns a unique ID to an element, if it doesn't have one already. */ + function setMessageId(element, serviceId) { + if (!element.id) { + element.id = `${CDK_DESCRIBEDBY_ID_PREFIX}-${serviceId}-${nextId++}`; + } + } + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** + * This class manages keyboard events for selectable lists. If you pass it a query list + * of items, it will set the active item correctly when arrow events occur. + */ + class ListKeyManager { + constructor(_items) { + this._items = _items; + this._activeItemIndex = -1; + this._activeItem = null; + this._wrap = false; + this._letterKeyStream = + new rxjs__WEBPACK_IMPORTED_MODULE_3__.Subject(); + this._typeaheadSubscription = + rxjs__WEBPACK_IMPORTED_MODULE_4__.Subscription.EMPTY; + this._vertical = true; + this._allowedModifierKeys = []; + this._homeAndEnd = false; + this._pageUpAndDown = { + enabled: false, + delta: 10, + }; + /** + * Predicate function that can be used to check whether an item should be skipped + * by the key manager. By default, disabled items are skipped. + */ + this._skipPredicateFn = (item) => item.disabled; + // Buffer for the letters that the user has pressed when the typeahead option is turned on. + this._pressedLetters = []; + /** + * Stream that emits any time the TAB key is pressed, so components can react + * when focus is shifted off of the list. + */ + this.tabOut = new rxjs__WEBPACK_IMPORTED_MODULE_3__.Subject(); + /** Stream that emits whenever the active item of the list manager changes. */ + this.change = new rxjs__WEBPACK_IMPORTED_MODULE_3__.Subject(); + // We allow for the items to be an array because, in some cases, the consumer may + // not have access to a QueryList of the items they want to manage (e.g. when the + // items aren't being collected via `ViewChildren` or `ContentChildren`). + if ( + _items instanceof + _angular_core__WEBPACK_IMPORTED_MODULE_0__.QueryList + ) { + this._itemChangesSubscription = _items.changes.subscribe( + (newItems) => { + if (this._activeItem) { + const itemArray = newItems.toArray(); + const newIndex = itemArray.indexOf(this._activeItem); + if (newIndex > -1 && newIndex !== this._activeItemIndex) { + this._activeItemIndex = newIndex; + } + } + } + ); + } + } + /** + * Sets the predicate function that determines which items should be skipped by the + * list key manager. + * @param predicate Function that determines whether the given item should be skipped. + */ + skipPredicate(predicate) { + this._skipPredicateFn = predicate; + return this; + } + /** + * Configures wrapping mode, which determines whether the active item will wrap to + * the other end of list when there are no more items in the given direction. + * @param shouldWrap Whether the list should wrap when reaching the end. + */ + withWrap(shouldWrap = true) { + this._wrap = shouldWrap; + return this; + } + /** + * Configures whether the key manager should be able to move the selection vertically. + * @param enabled Whether vertical selection should be enabled. + */ + withVerticalOrientation(enabled = true) { + this._vertical = enabled; + return this; + } + /** + * Configures the key manager to move the selection horizontally. + * Passing in `null` will disable horizontal movement. + * @param direction Direction in which the selection can be moved. + */ + withHorizontalOrientation(direction) { + this._horizontal = direction; + return this; + } + /** + * Modifier keys which are allowed to be held down and whose default actions will be prevented + * as the user is pressing the arrow keys. Defaults to not allowing any modifier keys. + */ + withAllowedModifierKeys(keys) { + this._allowedModifierKeys = keys; + return this; + } + /** + * Turns on typeahead mode which allows users to set the active item by typing. + * @param debounceInterval Time to wait after the last keystroke before setting the active item. + */ + withTypeAhead(debounceInterval = 200) { + if ( + (typeof ngDevMode === "undefined" || ngDevMode) && + this._items.length && + this._items.some((item) => typeof item.getLabel !== "function") + ) { + throw Error( + "ListKeyManager items in typeahead mode must implement the `getLabel` method." + ); + } + this._typeaheadSubscription.unsubscribe(); + // Debounce the presses of non-navigational keys, collect the ones that correspond to letters + // and convert those letters back into a string. Afterwards find the first item that starts + // with that string and select it. + this._typeaheadSubscription = this._letterKeyStream + .pipe( + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.tap)((letter) => + this._pressedLetters.push(letter) + ), + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.debounceTime)( + debounceInterval + ), + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.filter)( + () => this._pressedLetters.length > 0 + ), + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.map)(() => + this._pressedLetters.join("") + ) + ) + .subscribe((inputString) => { + const items = this._getItemsArray(); + // Start at 1 because we want to start searching at the item immediately + // following the current active item. + for (let i = 1; i < items.length + 1; i++) { + const index = (this._activeItemIndex + i) % items.length; + const item = items[index]; + if ( + !this._skipPredicateFn(item) && + item + .getLabel() + .toUpperCase() + .trim() + .indexOf(inputString) === 0 + ) { + this.setActiveItem(index); + break; + } + } + this._pressedLetters = []; + }); + return this; + } + /** Cancels the current typeahead sequence. */ + cancelTypeahead() { + this._pressedLetters = []; + return this; + } + /** + * Configures the key manager to activate the first and last items + * respectively when the Home or End key is pressed. + * @param enabled Whether pressing the Home or End key activates the first/last item. + */ + withHomeAndEnd(enabled = true) { + this._homeAndEnd = enabled; + return this; + } + /** + * Configures the key manager to activate every 10th, configured or first/last element in up/down direction + * respectively when the Page-Up or Page-Down key is pressed. + * @param enabled Whether pressing the Page-Up or Page-Down key activates the first/last item. + * @param delta Whether pressing the Home or End key activates the first/last item. + */ + withPageUpDown(enabled = true, delta = 10) { + this._pageUpAndDown = { + enabled, + delta, + }; + return this; + } + setActiveItem(item) { + const previousActiveItem = this._activeItem; + this.updateActiveItem(item); + if (this._activeItem !== previousActiveItem) { + this.change.next(this._activeItemIndex); + } + } + /** + * Sets the active item depending on the key event passed in. + * @param event Keyboard event to be used for determining which element should be active. + */ + onKeydown(event) { + const keyCode = event.keyCode; + const modifiers = ["altKey", "ctrlKey", "metaKey", "shiftKey"]; + const isModifierAllowed = modifiers.every((modifier) => { + return ( + !event[modifier] || + this._allowedModifierKeys.indexOf(modifier) > -1 + ); + }); + switch (keyCode) { + case _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_9__.TAB: + this.tabOut.next(); + return; + case _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_9__.DOWN_ARROW: + if (this._vertical && isModifierAllowed) { + this.setNextItemActive(); + break; + } else { + return; + } + case _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_9__.UP_ARROW: + if (this._vertical && isModifierAllowed) { + this.setPreviousItemActive(); + break; + } else { + return; + } + case _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_9__.RIGHT_ARROW: + if (this._horizontal && isModifierAllowed) { + this._horizontal === "rtl" + ? this.setPreviousItemActive() + : this.setNextItemActive(); + break; + } else { + return; + } + case _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_9__.LEFT_ARROW: + if (this._horizontal && isModifierAllowed) { + this._horizontal === "rtl" + ? this.setNextItemActive() + : this.setPreviousItemActive(); + break; + } else { + return; + } + case _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_9__.HOME: + if (this._homeAndEnd && isModifierAllowed) { + this.setFirstItemActive(); + break; + } else { + return; + } + case _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_9__.END: + if (this._homeAndEnd && isModifierAllowed) { + this.setLastItemActive(); + break; + } else { + return; + } + case _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_9__.PAGE_UP: + if (this._pageUpAndDown.enabled && isModifierAllowed) { + const targetIndex = + this._activeItemIndex - this._pageUpAndDown.delta; + this._setActiveItemByIndex( + targetIndex > 0 ? targetIndex : 0, + 1 + ); + break; + } else { + return; + } + case _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_9__.PAGE_DOWN: + if (this._pageUpAndDown.enabled && isModifierAllowed) { + const targetIndex = + this._activeItemIndex + this._pageUpAndDown.delta; + const itemsLength = this._getItemsArray().length; + this._setActiveItemByIndex( + targetIndex < itemsLength ? targetIndex : itemsLength - 1, + -1 + ); + break; + } else { + return; + } + default: + if ( + isModifierAllowed || + (0, + _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_9__.hasModifierKey)( + event, + "shiftKey" + ) + ) { + // Attempt to use the `event.key` which also maps it to the user's keyboard language, + // otherwise fall back to resolving alphanumeric characters via the keyCode. + if (event.key && event.key.length === 1) { + this._letterKeyStream.next(event.key.toLocaleUpperCase()); + } else if ( + (keyCode >= + _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_9__.A && + keyCode <= + _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_9__.Z) || + (keyCode >= + _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_9__.ZERO && + keyCode <= + _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_9__.NINE) + ) { + this._letterKeyStream.next(String.fromCharCode(keyCode)); + } + } + // Note that we return here, in order to avoid preventing + // the default action of non-navigational keys. + return; + } + this._pressedLetters = []; + event.preventDefault(); + } + /** Index of the currently active item. */ + get activeItemIndex() { + return this._activeItemIndex; + } + /** The active item. */ + get activeItem() { + return this._activeItem; + } + /** Gets whether the user is currently typing into the manager using the typeahead feature. */ + isTyping() { + return this._pressedLetters.length > 0; + } + /** Sets the active item to the first enabled item in the list. */ + setFirstItemActive() { + this._setActiveItemByIndex(0, 1); + } + /** Sets the active item to the last enabled item in the list. */ + setLastItemActive() { + this._setActiveItemByIndex(this._items.length - 1, -1); + } + /** Sets the active item to the next enabled item in the list. */ + setNextItemActive() { + this._activeItemIndex < 0 + ? this.setFirstItemActive() + : this._setActiveItemByDelta(1); + } + /** Sets the active item to a previous enabled item in the list. */ + setPreviousItemActive() { + this._activeItemIndex < 0 && this._wrap + ? this.setLastItemActive() + : this._setActiveItemByDelta(-1); + } + updateActiveItem(item) { + const itemArray = this._getItemsArray(); + const index = + typeof item === "number" ? item : itemArray.indexOf(item); + const activeItem = itemArray[index]; + // Explicitly check for `null` and `undefined` because other falsy values are valid. + this._activeItem = activeItem == null ? null : activeItem; + this._activeItemIndex = index; + } + /** Cleans up the key manager. */ + destroy() { + this._typeaheadSubscription.unsubscribe(); + this._itemChangesSubscription?.unsubscribe(); + this._letterKeyStream.complete(); + this.tabOut.complete(); + this.change.complete(); + this._pressedLetters = []; + } + /** + * This method sets the active item, given a list of items and the delta between the + * currently active item and the new active item. It will calculate differently + * depending on whether wrap mode is turned on. + */ + _setActiveItemByDelta(delta) { + this._wrap + ? this._setActiveInWrapMode(delta) + : this._setActiveInDefaultMode(delta); + } + /** + * Sets the active item properly given "wrap" mode. In other words, it will continue to move + * down the list until it finds an item that is not disabled, and it will wrap if it + * encounters either end of the list. + */ + _setActiveInWrapMode(delta) { + const items = this._getItemsArray(); + for (let i = 1; i <= items.length; i++) { + const index = + (this._activeItemIndex + delta * i + items.length) % + items.length; + const item = items[index]; + if (!this._skipPredicateFn(item)) { + this.setActiveItem(index); + return; + } + } + } + /** + * Sets the active item properly given the default mode. In other words, it will + * continue to move down the list until it finds an item that is not disabled. If + * it encounters either end of the list, it will stop and not wrap. + */ + _setActiveInDefaultMode(delta) { + this._setActiveItemByIndex(this._activeItemIndex + delta, delta); + } + /** + * Sets the active item to the first enabled item starting at the index specified. If the + * item is disabled, it will move in the fallbackDelta direction until it either + * finds an enabled item or encounters the end of the list. + */ + _setActiveItemByIndex(index, fallbackDelta) { + const items = this._getItemsArray(); + if (!items[index]) { + return; + } + while (this._skipPredicateFn(items[index])) { + index += fallbackDelta; + if (!items[index]) { + return; + } + } + this.setActiveItem(index); + } + /** Returns the items as an array. */ + _getItemsArray() { + return this._items instanceof + _angular_core__WEBPACK_IMPORTED_MODULE_0__.QueryList + ? this._items.toArray() + : this._items; + } + } + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + class ActiveDescendantKeyManager extends ListKeyManager { + setActiveItem(index) { + if (this.activeItem) { + this.activeItem.setInactiveStyles(); + } + super.setActiveItem(index); + if (this.activeItem) { + this.activeItem.setActiveStyles(); + } + } + } + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + class FocusKeyManager extends ListKeyManager { + constructor() { + super(...arguments); + this._origin = "program"; + } + /** + * Sets the focus origin that will be passed in to the items for any subsequent `focus` calls. + * @param origin Focus origin to be used when focusing items. + */ + setFocusOrigin(origin) { + this._origin = origin; + return this; + } + setActiveItem(item) { + super.setActiveItem(item); + if (this.activeItem) { + this.activeItem.focus(this._origin); + } + } + } + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** + * Configuration for the isFocusable method. + */ + class IsFocusableConfig { + constructor() { + /** + * Whether to count an element as focusable even if it is not currently visible. + */ + this.ignoreVisibility = false; + } + } + // The InteractivityChecker leans heavily on the ally.js accessibility utilities. + // Methods like `isTabbable` are only covering specific edge-cases for the browsers which are + // supported. + /** + * Utility for checking the interactivity of an element, such as whether is is focusable or + * tabbable. + */ + class InteractivityChecker { + constructor(_platform) { + this._platform = _platform; + } + /** + * Gets whether an element is disabled. + * + * @param element Element to be checked. + * @returns Whether the element is disabled. + */ + isDisabled(element) { + // This does not capture some cases, such as a non-form control with a disabled attribute or + // a form control inside of a disabled form, but should capture the most common cases. + return element.hasAttribute("disabled"); + } + /** + * Gets whether an element is visible for the purposes of interactivity. + * + * This will capture states like `display: none` and `visibility: hidden`, but not things like + * being clipped by an `overflow: hidden` parent or being outside the viewport. + * + * @returns Whether the element is visible. + */ + isVisible(element) { + return ( + hasGeometry(element) && + getComputedStyle(element).visibility === "visible" + ); + } + /** + * Gets whether an element can be reached via Tab key. + * Assumes that the element has already been checked with isFocusable. + * + * @param element Element to be checked. + * @returns Whether the element is tabbable. + */ + isTabbable(element) { + // Nothing is tabbable on the server 😎 + if (!this._platform.isBrowser) { + return false; + } + const frameElement = getFrameElement(getWindow(element)); + if (frameElement) { + // Frame elements inherit their tabindex onto all child elements. + if (getTabIndexValue(frameElement) === -1) { + return false; + } + // Browsers disable tabbing to an element inside of an invisible frame. + if (!this.isVisible(frameElement)) { + return false; + } + } + let nodeName = element.nodeName.toLowerCase(); + let tabIndexValue = getTabIndexValue(element); + if (element.hasAttribute("contenteditable")) { + return tabIndexValue !== -1; + } + if (nodeName === "iframe" || nodeName === "object") { + // The frame or object's content may be tabbable depending on the content, but it's + // not possibly to reliably detect the content of the frames. We always consider such + // elements as non-tabbable. + return false; + } + // In iOS, the browser only considers some specific elements as tabbable. + if ( + this._platform.WEBKIT && + this._platform.IOS && + !isPotentiallyTabbableIOS(element) + ) { + return false; + } + if (nodeName === "audio") { + // Audio elements without controls enabled are never tabbable, regardless + // of the tabindex attribute explicitly being set. + if (!element.hasAttribute("controls")) { + return false; + } + // Audio elements with controls are by default tabbable unless the + // tabindex attribute is set to `-1` explicitly. + return tabIndexValue !== -1; + } + if (nodeName === "video") { + // For all video elements, if the tabindex attribute is set to `-1`, the video + // is not tabbable. Note: We cannot rely on the default `HTMLElement.tabIndex` + // property as that one is set to `-1` in Chrome, Edge and Safari v13.1. The + // tabindex attribute is the source of truth here. + if (tabIndexValue === -1) { + return false; + } + // If the tabindex is explicitly set, and not `-1` (as per check before), the + // video element is always tabbable (regardless of whether it has controls or not). + if (tabIndexValue !== null) { + return true; + } + // Otherwise (when no explicit tabindex is set), a video is only tabbable if it + // has controls enabled. Firefox is special as videos are always tabbable regardless + // of whether there are controls or not. + return this._platform.FIREFOX || element.hasAttribute("controls"); + } + return element.tabIndex >= 0; + } + /** + * Gets whether an element can be focused by the user. + * + * @param element Element to be checked. + * @param config The config object with options to customize this method's behavior + * @returns Whether the element is focusable. + */ + isFocusable(element, config) { + // Perform checks in order of left to most expensive. + // Again, naive approach that does not capture many edge cases and browser quirks. + return ( + isPotentiallyFocusable(element) && + !this.isDisabled(element) && + (config?.ignoreVisibility || this.isVisible(element)) + ); + } + } + InteractivityChecker.ɵfac = function InteractivityChecker_Factory(t) { + return new (t || InteractivityChecker)( + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"]( + _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__.Platform + ) + ); + }; + InteractivityChecker.ɵprov = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineInjectable" + ]({ + token: InteractivityChecker, + factory: InteractivityChecker.ɵfac, + providedIn: "root", + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + InteractivityChecker, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injectable, + args: [ + { + providedIn: "root", + }, + ], + }, + ], + function () { + return [ + { + type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__.Platform, + }, + ]; + }, + null + ); + })(); + /** + * Returns the frame element from a window object. Since browsers like MS Edge throw errors if + * the frameElement property is being accessed from a different host address, this property + * should be accessed carefully. + */ + function getFrameElement(window) { + try { + return window.frameElement; + } catch { + return null; + } + } + /** Checks whether the specified element has any geometry / rectangles. */ + function hasGeometry(element) { + // Use logic from jQuery to check for an invisible element. + // See https://github.com/jquery/jquery/blob/master/src/css/hiddenVisibleSelectors.js#L12 + return !!( + element.offsetWidth || + element.offsetHeight || + (typeof element.getClientRects === "function" && + element.getClientRects().length) + ); + } + /** Gets whether an element's */ + function isNativeFormElement(element) { + let nodeName = element.nodeName.toLowerCase(); + return ( + nodeName === "input" || + nodeName === "select" || + nodeName === "button" || + nodeName === "textarea" + ); + } + /** Gets whether an element is an ``. */ + function isHiddenInput(element) { + return isInputElement(element) && element.type == "hidden"; + } + /** Gets whether an element is an anchor that has an href attribute. */ + function isAnchorWithHref(element) { + return isAnchorElement(element) && element.hasAttribute("href"); + } + /** Gets whether an element is an input element. */ + function isInputElement(element) { + return element.nodeName.toLowerCase() == "input"; + } + /** Gets whether an element is an anchor element. */ + function isAnchorElement(element) { + return element.nodeName.toLowerCase() == "a"; + } + /** Gets whether an element has a valid tabindex. */ + function hasValidTabIndex(element) { + if ( + !element.hasAttribute("tabindex") || + element.tabIndex === undefined + ) { + return false; + } + let tabIndex = element.getAttribute("tabindex"); + return !!(tabIndex && !isNaN(parseInt(tabIndex, 10))); + } + /** + * Returns the parsed tabindex from the element attributes instead of returning the + * evaluated tabindex from the browsers defaults. + */ + function getTabIndexValue(element) { + if (!hasValidTabIndex(element)) { + return null; + } + // See browser issue in Gecko https://bugzilla.mozilla.org/show_bug.cgi?id=1128054 + const tabIndex = parseInt(element.getAttribute("tabindex") || "", 10); + return isNaN(tabIndex) ? -1 : tabIndex; + } + /** Checks whether the specified element is potentially tabbable on iOS */ + function isPotentiallyTabbableIOS(element) { + let nodeName = element.nodeName.toLowerCase(); + let inputType = nodeName === "input" && element.type; + return ( + inputType === "text" || + inputType === "password" || + nodeName === "select" || + nodeName === "textarea" + ); + } + /** + * Gets whether an element is potentially focusable without taking current visible/disabled state + * into account. + */ + function isPotentiallyFocusable(element) { + // Inputs are potentially focusable *unless* they're type="hidden". + if (isHiddenInput(element)) { + return false; + } + return ( + isNativeFormElement(element) || + isAnchorWithHref(element) || + element.hasAttribute("contenteditable") || + hasValidTabIndex(element) + ); + } + /** Gets the parent window of a DOM node with regards of being inside of an iframe. */ + function getWindow(node) { + // ownerDocument is null if `node` itself *is* a document. + return ( + (node.ownerDocument && node.ownerDocument.defaultView) || window + ); + } + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** + * Class that allows for trapping focus within a DOM element. + * + * This class currently uses a relatively simple approach to focus trapping. + * It assumes that the tab order is the same as DOM order, which is not necessarily true. + * Things like `tabIndex > 0`, flex `order`, and shadow roots can cause the two to be misaligned. + * + * @deprecated Use `ConfigurableFocusTrap` instead. + * @breaking-change 11.0.0 + */ + class FocusTrap { + /** Whether the focus trap is active. */ + get enabled() { + return this._enabled; + } + set enabled(value) { + this._enabled = value; + if (this._startAnchor && this._endAnchor) { + this._toggleAnchorTabIndex(value, this._startAnchor); + this._toggleAnchorTabIndex(value, this._endAnchor); + } + } + constructor( + _element, + _checker, + _ngZone, + _document, + deferAnchors = false + ) { + this._element = _element; + this._checker = _checker; + this._ngZone = _ngZone; + this._document = _document; + this._hasAttached = false; + // Event listeners for the anchors. Need to be regular functions so that we can unbind them later. + this.startAnchorListener = () => this.focusLastTabbableElement(); + this.endAnchorListener = () => this.focusFirstTabbableElement(); + this._enabled = true; + if (!deferAnchors) { + this.attachAnchors(); + } + } + /** Destroys the focus trap by cleaning up the anchors. */ + destroy() { + const startAnchor = this._startAnchor; + const endAnchor = this._endAnchor; + if (startAnchor) { + startAnchor.removeEventListener( + "focus", + this.startAnchorListener + ); + startAnchor.remove(); + } + if (endAnchor) { + endAnchor.removeEventListener("focus", this.endAnchorListener); + endAnchor.remove(); + } + this._startAnchor = this._endAnchor = null; + this._hasAttached = false; + } + /** + * Inserts the anchors into the DOM. This is usually done automatically + * in the constructor, but can be deferred for cases like directives with `*ngIf`. + * @returns Whether the focus trap managed to attach successfully. This may not be the case + * if the target element isn't currently in the DOM. + */ + attachAnchors() { + // If we're not on the browser, there can be no focus to trap. + if (this._hasAttached) { + return true; + } + this._ngZone.runOutsideAngular(() => { + if (!this._startAnchor) { + this._startAnchor = this._createAnchor(); + this._startAnchor.addEventListener( + "focus", + this.startAnchorListener + ); + } + if (!this._endAnchor) { + this._endAnchor = this._createAnchor(); + this._endAnchor.addEventListener( + "focus", + this.endAnchorListener + ); + } + }); + if (this._element.parentNode) { + this._element.parentNode.insertBefore( + this._startAnchor, + this._element + ); + this._element.parentNode.insertBefore( + this._endAnchor, + this._element.nextSibling + ); + this._hasAttached = true; + } + return this._hasAttached; + } + /** + * Waits for the zone to stabilize, then focuses the first tabbable element. + * @returns Returns a promise that resolves with a boolean, depending + * on whether focus was moved successfully. + */ + focusInitialElementWhenReady(options) { + return new Promise((resolve) => { + this._executeOnStable(() => + resolve(this.focusInitialElement(options)) + ); + }); + } + /** + * Waits for the zone to stabilize, then focuses + * the first tabbable element within the focus trap region. + * @returns Returns a promise that resolves with a boolean, depending + * on whether focus was moved successfully. + */ + focusFirstTabbableElementWhenReady(options) { + return new Promise((resolve) => { + this._executeOnStable(() => + resolve(this.focusFirstTabbableElement(options)) + ); + }); + } + /** + * Waits for the zone to stabilize, then focuses + * the last tabbable element within the focus trap region. + * @returns Returns a promise that resolves with a boolean, depending + * on whether focus was moved successfully. + */ + focusLastTabbableElementWhenReady(options) { + return new Promise((resolve) => { + this._executeOnStable(() => + resolve(this.focusLastTabbableElement(options)) + ); + }); + } + /** + * Get the specified boundary element of the trapped region. + * @param bound The boundary to get (start or end of trapped region). + * @returns The boundary element. + */ + _getRegionBoundary(bound) { + // Contains the deprecated version of selector, for temporary backwards comparability. + const markers = this._element.querySelectorAll( + `[cdk-focus-region-${bound}], ` + + `[cdkFocusRegion${bound}], ` + + `[cdk-focus-${bound}]` + ); + if (typeof ngDevMode === "undefined" || ngDevMode) { + for (let i = 0; i < markers.length; i++) { + // @breaking-change 8.0.0 + if (markers[i].hasAttribute(`cdk-focus-${bound}`)) { + console.warn( + `Found use of deprecated attribute 'cdk-focus-${bound}', ` + + `use 'cdkFocusRegion${bound}' instead. The deprecated ` + + `attribute will be removed in 8.0.0.`, + markers[i] + ); + } else if ( + markers[i].hasAttribute(`cdk-focus-region-${bound}`) + ) { + console.warn( + `Found use of deprecated attribute 'cdk-focus-region-${bound}', ` + + `use 'cdkFocusRegion${bound}' instead. The deprecated attribute ` + + `will be removed in 8.0.0.`, + markers[i] + ); + } + } + } + if (bound == "start") { + return markers.length + ? markers[0] + : this._getFirstTabbableElement(this._element); + } + return markers.length + ? markers[markers.length - 1] + : this._getLastTabbableElement(this._element); + } + /** + * Focuses the element that should be focused when the focus trap is initialized. + * @returns Whether focus was moved successfully. + */ + focusInitialElement(options) { + // Contains the deprecated version of selector, for temporary backwards comparability. + const redirectToElement = this._element.querySelector( + `[cdk-focus-initial], ` + `[cdkFocusInitial]` + ); + if (redirectToElement) { + // @breaking-change 8.0.0 + if ( + (typeof ngDevMode === "undefined" || ngDevMode) && + redirectToElement.hasAttribute(`cdk-focus-initial`) + ) { + console.warn( + `Found use of deprecated attribute 'cdk-focus-initial', ` + + `use 'cdkFocusInitial' instead. The deprecated attribute ` + + `will be removed in 8.0.0`, + redirectToElement + ); + } + // Warn the consumer if the element they've pointed to + // isn't focusable, when not in production mode. + if ( + (typeof ngDevMode === "undefined" || ngDevMode) && + !this._checker.isFocusable(redirectToElement) + ) { + console.warn( + `Element matching '[cdkFocusInitial]' is not focusable.`, + redirectToElement + ); + } + if (!this._checker.isFocusable(redirectToElement)) { + const focusableChild = + this._getFirstTabbableElement(redirectToElement); + focusableChild?.focus(options); + return !!focusableChild; + } + redirectToElement.focus(options); + return true; + } + return this.focusFirstTabbableElement(options); + } + /** + * Focuses the first tabbable element within the focus trap region. + * @returns Whether focus was moved successfully. + */ + focusFirstTabbableElement(options) { + const redirectToElement = this._getRegionBoundary("start"); + if (redirectToElement) { + redirectToElement.focus(options); + } + return !!redirectToElement; + } + /** + * Focuses the last tabbable element within the focus trap region. + * @returns Whether focus was moved successfully. + */ + focusLastTabbableElement(options) { + const redirectToElement = this._getRegionBoundary("end"); + if (redirectToElement) { + redirectToElement.focus(options); + } + return !!redirectToElement; + } + /** + * Checks whether the focus trap has successfully been attached. + */ + hasAttached() { + return this._hasAttached; + } + /** Get the first tabbable element from a DOM subtree (inclusive). */ + _getFirstTabbableElement(root) { + if ( + this._checker.isFocusable(root) && + this._checker.isTabbable(root) + ) { + return root; + } + const children = root.children; + for (let i = 0; i < children.length; i++) { + const tabbableChild = + children[i].nodeType === this._document.ELEMENT_NODE + ? this._getFirstTabbableElement(children[i]) + : null; + if (tabbableChild) { + return tabbableChild; + } + } + return null; + } + /** Get the last tabbable element from a DOM subtree (inclusive). */ + _getLastTabbableElement(root) { + if ( + this._checker.isFocusable(root) && + this._checker.isTabbable(root) + ) { + return root; + } + // Iterate in reverse DOM order. + const children = root.children; + for (let i = children.length - 1; i >= 0; i--) { + const tabbableChild = + children[i].nodeType === this._document.ELEMENT_NODE + ? this._getLastTabbableElement(children[i]) + : null; + if (tabbableChild) { + return tabbableChild; + } + } + return null; + } + /** Creates an anchor element. */ + _createAnchor() { + const anchor = this._document.createElement("div"); + this._toggleAnchorTabIndex(this._enabled, anchor); + anchor.classList.add("cdk-visually-hidden"); + anchor.classList.add("cdk-focus-trap-anchor"); + anchor.setAttribute("aria-hidden", "true"); + return anchor; + } + /** + * Toggles the `tabindex` of an anchor, based on the enabled state of the focus trap. + * @param isEnabled Whether the focus trap is enabled. + * @param anchor Anchor on which to toggle the tabindex. + */ + _toggleAnchorTabIndex(isEnabled, anchor) { + // Remove the tabindex completely, rather than setting it to -1, because if the + // element has a tabindex, the user might still hit it when navigating with the arrow keys. + isEnabled + ? anchor.setAttribute("tabindex", "0") + : anchor.removeAttribute("tabindex"); + } + /** + * Toggles the`tabindex` of both anchors to either trap Tab focus or allow it to escape. + * @param enabled: Whether the anchors should trap Tab. + */ + toggleAnchors(enabled) { + if (this._startAnchor && this._endAnchor) { + this._toggleAnchorTabIndex(enabled, this._startAnchor); + this._toggleAnchorTabIndex(enabled, this._endAnchor); + } + } + /** Executes a function when the zone is stable. */ + _executeOnStable(fn) { + if (this._ngZone.isStable) { + fn(); + } else { + this._ngZone.onStable + .pipe((0, rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.take)(1)) + .subscribe(fn); + } + } + } + /** + * Factory that allows easy instantiation of focus traps. + * @deprecated Use `ConfigurableFocusTrapFactory` instead. + * @breaking-change 11.0.0 + */ + class FocusTrapFactory { + constructor(_checker, _ngZone, _document) { + this._checker = _checker; + this._ngZone = _ngZone; + this._document = _document; + } + /** + * Creates a focus-trapped region around the given element. + * @param element The element around which focus will be trapped. + * @param deferCaptureElements Defers the creation of focus-capturing elements to be done + * manually by the user. + * @returns The created focus trap instance. + */ + create(element, deferCaptureElements = false) { + return new FocusTrap( + element, + this._checker, + this._ngZone, + this._document, + deferCaptureElements + ); + } + } + FocusTrapFactory.ɵfac = function FocusTrapFactory_Factory(t) { + return new (t || FocusTrapFactory)( + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"]( + InteractivityChecker + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"]( + _angular_common__WEBPACK_IMPORTED_MODULE_1__.DOCUMENT + ) + ); + }; + FocusTrapFactory.ɵprov = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineInjectable" + ]({ + token: FocusTrapFactory, + factory: FocusTrapFactory.ɵfac, + providedIn: "root", + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + FocusTrapFactory, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injectable, + args: [ + { + providedIn: "root", + }, + ], + }, + ], + function () { + return [ + { + type: InteractivityChecker, + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone, + }, + { + type: undefined, + decorators: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject, + args: [ + _angular_common__WEBPACK_IMPORTED_MODULE_1__.DOCUMENT, + ], + }, + ], + }, + ]; + }, + null + ); + })(); + /** Directive for trapping focus within a region. */ + class CdkTrapFocus { + /** Whether the focus trap is active. */ + get enabled() { + return this.focusTrap.enabled; + } + set enabled(value) { + this.focusTrap.enabled = (0, + _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_11__.coerceBooleanProperty)( + value + ); + } + /** + * Whether the directive should automatically move focus into the trapped region upon + * initialization and return focus to the previous activeElement upon destruction. + */ + get autoCapture() { + return this._autoCapture; + } + set autoCapture(value) { + this._autoCapture = (0, + _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_11__.coerceBooleanProperty)( + value + ); + } + constructor( + _elementRef, + _focusTrapFactory, + /** + * @deprecated No longer being used. To be removed. + * @breaking-change 13.0.0 + */ + _document + ) { + this._elementRef = _elementRef; + this._focusTrapFactory = _focusTrapFactory; + /** Previously focused element to restore focus to upon destroy when using autoCapture. */ + this._previouslyFocusedElement = null; + this.focusTrap = this._focusTrapFactory.create( + this._elementRef.nativeElement, + true + ); + } + ngOnDestroy() { + this.focusTrap.destroy(); + // If we stored a previously focused element when using autoCapture, return focus to that + // element now that the trapped region is being destroyed. + if (this._previouslyFocusedElement) { + this._previouslyFocusedElement.focus(); + this._previouslyFocusedElement = null; + } + } + ngAfterContentInit() { + this.focusTrap.attachAnchors(); + if (this.autoCapture) { + this._captureFocus(); + } + } + ngDoCheck() { + if (!this.focusTrap.hasAttached()) { + this.focusTrap.attachAnchors(); + } + } + ngOnChanges(changes) { + const autoCaptureChange = changes["autoCapture"]; + if ( + autoCaptureChange && + !autoCaptureChange.firstChange && + this.autoCapture && + this.focusTrap.hasAttached() + ) { + this._captureFocus(); + } + } + _captureFocus() { + this._previouslyFocusedElement = (0, + _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__._getFocusedElementPierceShadowDom)(); + this.focusTrap.focusInitialElementWhenReady(); + } + } + CdkTrapFocus.ɵfac = function CdkTrapFocus_Factory(t) { + return new (t || CdkTrapFocus)( + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + FocusTrapFactory + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + _angular_common__WEBPACK_IMPORTED_MODULE_1__.DOCUMENT + ) + ); + }; + CdkTrapFocus.ɵdir = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineDirective" + ]({ + type: CdkTrapFocus, + selectors: [["", "cdkTrapFocus", ""]], + inputs: { + enabled: ["cdkTrapFocus", "enabled"], + autoCapture: ["cdkTrapFocusAutoCapture", "autoCapture"], + }, + exportAs: ["cdkTrapFocus"], + features: [ + _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵNgOnChangesFeature" + ], + ], + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + CdkTrapFocus, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive, + args: [ + { + selector: "[cdkTrapFocus]", + exportAs: "cdkTrapFocus", + }, + ], + }, + ], + function () { + return [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef, + }, + { + type: FocusTrapFactory, + }, + { + type: undefined, + decorators: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject, + args: [ + _angular_common__WEBPACK_IMPORTED_MODULE_1__.DOCUMENT, + ], + }, + ], + }, + ]; + }, + { + enabled: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input, + args: ["cdkTrapFocus"], + }, + ], + autoCapture: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input, + args: ["cdkTrapFocusAutoCapture"], + }, + ], + } + ); + })(); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** + * Class that allows for trapping focus within a DOM element. + * + * This class uses a strategy pattern that determines how it traps focus. + * See FocusTrapInertStrategy. + */ + class ConfigurableFocusTrap extends FocusTrap { + /** Whether the FocusTrap is enabled. */ + get enabled() { + return this._enabled; + } + set enabled(value) { + this._enabled = value; + if (this._enabled) { + this._focusTrapManager.register(this); + } else { + this._focusTrapManager.deregister(this); + } + } + constructor( + _element, + _checker, + _ngZone, + _document, + _focusTrapManager, + _inertStrategy, + config + ) { + super(_element, _checker, _ngZone, _document, config.defer); + this._focusTrapManager = _focusTrapManager; + this._inertStrategy = _inertStrategy; + this._focusTrapManager.register(this); + } + /** Notifies the FocusTrapManager that this FocusTrap will be destroyed. */ + destroy() { + this._focusTrapManager.deregister(this); + super.destroy(); + } + /** @docs-private Implemented as part of ManagedFocusTrap. */ + _enable() { + this._inertStrategy.preventFocus(this); + this.toggleAnchors(true); + } + /** @docs-private Implemented as part of ManagedFocusTrap. */ + _disable() { + this._inertStrategy.allowFocus(this); + this.toggleAnchors(false); + } + } + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** The injection token used to specify the inert strategy. */ + const FOCUS_TRAP_INERT_STRATEGY = + new _angular_core__WEBPACK_IMPORTED_MODULE_0__.InjectionToken( + "FOCUS_TRAP_INERT_STRATEGY" + ); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** + * Lightweight FocusTrapInertStrategy that adds a document focus event + * listener to redirect focus back inside the FocusTrap. + */ + class EventListenerFocusTrapInertStrategy { + constructor() { + /** Focus event handler. */ + this._listener = null; + } + /** Adds a document event listener that keeps focus inside the FocusTrap. */ + preventFocus(focusTrap) { + // Ensure there's only one listener per document + if (this._listener) { + focusTrap._document.removeEventListener( + "focus", + this._listener, + true + ); + } + this._listener = (e) => this._trapFocus(focusTrap, e); + focusTrap._ngZone.runOutsideAngular(() => { + focusTrap._document.addEventListener( + "focus", + this._listener, + true + ); + }); + } + /** Removes the event listener added in preventFocus. */ + allowFocus(focusTrap) { + if (!this._listener) { + return; + } + focusTrap._document.removeEventListener( + "focus", + this._listener, + true + ); + this._listener = null; + } + /** + * Refocuses the first element in the FocusTrap if the focus event target was outside + * the FocusTrap. + * + * This is an event listener callback. The event listener is added in runOutsideAngular, + * so all this code runs outside Angular as well. + */ + _trapFocus(focusTrap, event) { + const target = event.target; + const focusTrapRoot = focusTrap._element; + // Don't refocus if target was in an overlay, because the overlay might be associated + // with an element inside the FocusTrap, ex. mat-select. + if ( + target && + !focusTrapRoot.contains(target) && + !target.closest?.("div.cdk-overlay-pane") + ) { + // Some legacy FocusTrap usages have logic that focuses some element on the page + // just before FocusTrap is destroyed. For backwards compatibility, wait + // to be sure FocusTrap is still enabled before refocusing. + setTimeout(() => { + // Check whether focus wasn't put back into the focus trap while the timeout was pending. + if ( + focusTrap.enabled && + !focusTrapRoot.contains(focusTrap._document.activeElement) + ) { + focusTrap.focusFirstTabbableElement(); + } + }); + } + } + } + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** Injectable that ensures only the most recently enabled FocusTrap is active. */ + class FocusTrapManager { + constructor() { + // A stack of the FocusTraps on the page. Only the FocusTrap at the + // top of the stack is active. + this._focusTrapStack = []; + } + /** + * Disables the FocusTrap at the top of the stack, and then pushes + * the new FocusTrap onto the stack. + */ + register(focusTrap) { + // Dedupe focusTraps that register multiple times. + this._focusTrapStack = this._focusTrapStack.filter( + (ft) => ft !== focusTrap + ); + let stack = this._focusTrapStack; + if (stack.length) { + stack[stack.length - 1]._disable(); + } + stack.push(focusTrap); + focusTrap._enable(); + } + /** + * Removes the FocusTrap from the stack, and activates the + * FocusTrap that is the new top of the stack. + */ + deregister(focusTrap) { + focusTrap._disable(); + const stack = this._focusTrapStack; + const i = stack.indexOf(focusTrap); + if (i !== -1) { + stack.splice(i, 1); + if (stack.length) { + stack[stack.length - 1]._enable(); + } + } + } + } + FocusTrapManager.ɵfac = function FocusTrapManager_Factory(t) { + return new (t || FocusTrapManager)(); + }; + FocusTrapManager.ɵprov = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineInjectable" + ]({ + token: FocusTrapManager, + factory: FocusTrapManager.ɵfac, + providedIn: "root", + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + FocusTrapManager, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injectable, + args: [ + { + providedIn: "root", + }, + ], + }, + ], + null, + null + ); + })(); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** Factory that allows easy instantiation of configurable focus traps. */ + class ConfigurableFocusTrapFactory { + constructor( + _checker, + _ngZone, + _focusTrapManager, + _document, + _inertStrategy + ) { + this._checker = _checker; + this._ngZone = _ngZone; + this._focusTrapManager = _focusTrapManager; + this._document = _document; + // TODO split up the strategies into different modules, similar to DateAdapter. + this._inertStrategy = + _inertStrategy || new EventListenerFocusTrapInertStrategy(); + } + create( + element, + config = { + defer: false, + } + ) { + let configObject; + if (typeof config === "boolean") { + configObject = { + defer: config, + }; + } else { + configObject = config; + } + return new ConfigurableFocusTrap( + element, + this._checker, + this._ngZone, + this._document, + this._focusTrapManager, + this._inertStrategy, + configObject + ); + } + } + ConfigurableFocusTrapFactory.ɵfac = + function ConfigurableFocusTrapFactory_Factory(t) { + return new (t || ConfigurableFocusTrapFactory)( + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"]( + InteractivityChecker + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"]( + FocusTrapManager + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"]( + _angular_common__WEBPACK_IMPORTED_MODULE_1__.DOCUMENT + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"]( + FOCUS_TRAP_INERT_STRATEGY, + 8 + ) + ); + }; + ConfigurableFocusTrapFactory.ɵprov = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineInjectable" + ]({ + token: ConfigurableFocusTrapFactory, + factory: ConfigurableFocusTrapFactory.ɵfac, + providedIn: "root", + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + ConfigurableFocusTrapFactory, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injectable, + args: [ + { + providedIn: "root", + }, + ], + }, + ], + function () { + return [ + { + type: InteractivityChecker, + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone, + }, + { + type: FocusTrapManager, + }, + { + type: undefined, + decorators: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject, + args: [ + _angular_common__WEBPACK_IMPORTED_MODULE_1__.DOCUMENT, + ], + }, + ], + }, + { + type: undefined, + decorators: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional, + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject, + args: [FOCUS_TRAP_INERT_STRATEGY], + }, + ], + }, + ]; + }, + null + ); + })(); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** Gets whether an event could be a faked `mousedown` event dispatched by a screen reader. */ + function isFakeMousedownFromScreenReader(event) { + // Some screen readers will dispatch a fake `mousedown` event when pressing enter or space on + // a clickable element. We can distinguish these events when both `offsetX` and `offsetY` are + // zero or `event.buttons` is zero, depending on the browser: + // - `event.buttons` works on Firefox, but fails on Chrome. + // - `offsetX` and `offsetY` work on Chrome, but fail on Firefox. + // Note that there's an edge case where the user could click the 0x0 spot of the + // screen themselves, but that is unlikely to contain interactive elements. + return ( + event.buttons === 0 || (event.offsetX === 0 && event.offsetY === 0) + ); + } + /** Gets whether an event could be a faked `touchstart` event dispatched by a screen reader. */ + function isFakeTouchstartFromScreenReader(event) { + const touch = + (event.touches && event.touches[0]) || + (event.changedTouches && event.changedTouches[0]); + // A fake `touchstart` can be distinguished from a real one by looking at the `identifier` + // which is typically >= 0 on a real device versus -1 from a screen reader. Just to be safe, + // we can also look at `radiusX` and `radiusY`. This behavior was observed against a Windows 10 + // device with a touch screen running NVDA v2020.4 and Firefox 85 or Chrome 88. + return ( + !!touch && + touch.identifier === -1 && + (touch.radiusX == null || touch.radiusX === 1) && + (touch.radiusY == null || touch.radiusY === 1) + ); + } + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** + * Injectable options for the InputModalityDetector. These are shallowly merged with the default + * options. + */ + const INPUT_MODALITY_DETECTOR_OPTIONS = + new _angular_core__WEBPACK_IMPORTED_MODULE_0__.InjectionToken( + "cdk-input-modality-detector-options" + ); + /** + * Default options for the InputModalityDetector. + * + * Modifier keys are ignored by default (i.e. when pressed won't cause the service to detect + * keyboard input modality) for two reasons: + * + * 1. Modifier keys are commonly used with mouse to perform actions such as 'right click' or 'open + * in new tab', and are thus less representative of actual keyboard interaction. + * 2. VoiceOver triggers some keyboard events when linearly navigating with Control + Option (but + * confusingly not with Caps Lock). Thus, to have parity with other screen readers, we ignore + * these keys so as to not update the input modality. + * + * Note that we do not by default ignore the right Meta key on Safari because it has the same key + * code as the ContextMenu key on other browsers. When we switch to using event.key, we can + * distinguish between the two. + */ + const INPUT_MODALITY_DETECTOR_DEFAULT_OPTIONS = { + ignoreKeys: [ + _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_9__.ALT, + _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_9__.CONTROL, + _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_9__.MAC_META, + _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_9__.META, + _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_9__.SHIFT, + ], + }; + /** + * The amount of time needed to pass after a touchstart event in order for a subsequent mousedown + * event to be attributed as mouse and not touch. + * + * This is the value used by AngularJS Material. Through trial and error (on iPhone 6S) they found + * that a value of around 650ms seems appropriate. + */ + const TOUCH_BUFFER_MS = 650; + /** + * Event listener options that enable capturing and also mark the listener as passive if the browser + * supports it. + */ + const modalityEventListenerOptions = (0, + _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__.normalizePassiveListenerOptions)( + { + passive: true, + capture: true, + } + ); + /** + * Service that detects the user's input modality. + * + * This service does not update the input modality when a user navigates with a screen reader + * (e.g. linear navigation with VoiceOver, object navigation / browse mode with NVDA, virtual PC + * cursor mode with JAWS). This is in part due to technical limitations (i.e. keyboard events do not + * fire as expected in these modes) but is also arguably the correct behavior. Navigating with a + * screen reader is akin to visually scanning a page, and should not be interpreted as actual user + * input interaction. + * + * When a user is not navigating but *interacting* with a screen reader, this service attempts to + * update the input modality to keyboard, but in general this service's behavior is largely + * undefined. + */ + class InputModalityDetector { + /** The most recently detected input modality. */ + get mostRecentModality() { + return this._modality.value; + } + constructor(_platform, ngZone, document, options) { + this._platform = _platform; + /** + * The most recently detected input modality event target. Is null if no input modality has been + * detected or if the associated event target is null for some unknown reason. + */ + this._mostRecentTarget = null; + /** The underlying BehaviorSubject that emits whenever an input modality is detected. */ + this._modality = + new rxjs__WEBPACK_IMPORTED_MODULE_12__.BehaviorSubject(null); + /** + * The timestamp of the last touch input modality. Used to determine whether mousedown events + * should be attributed to mouse or touch. + */ + this._lastTouchMs = 0; + /** + * Handles keydown events. Must be an arrow function in order to preserve the context when it gets + * bound. + */ + this._onKeydown = (event) => { + // If this is one of the keys we should ignore, then ignore it and don't update the input + // modality to keyboard. + if ( + this._options?.ignoreKeys?.some( + (keyCode) => keyCode === event.keyCode + ) + ) { + return; + } + this._modality.next("keyboard"); + this._mostRecentTarget = (0, + _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__._getEventTarget)( + event + ); + }; + /** + * Handles mousedown events. Must be an arrow function in order to preserve the context when it + * gets bound. + */ + this._onMousedown = (event) => { + // Touches trigger both touch and mouse events, so we need to distinguish between mouse events + // that were triggered via mouse vs touch. To do so, check if the mouse event occurs closely + // after the previous touch event. + if (Date.now() - this._lastTouchMs < TOUCH_BUFFER_MS) { + return; + } + // Fake mousedown events are fired by some screen readers when controls are activated by the + // screen reader. Attribute them to keyboard input modality. + this._modality.next( + isFakeMousedownFromScreenReader(event) ? "keyboard" : "mouse" + ); + this._mostRecentTarget = (0, + _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__._getEventTarget)( + event + ); + }; + /** + * Handles touchstart events. Must be an arrow function in order to preserve the context when it + * gets bound. + */ + this._onTouchstart = (event) => { + // Same scenario as mentioned in _onMousedown, but on touch screen devices, fake touchstart + // events are fired. Again, attribute to keyboard input modality. + if (isFakeTouchstartFromScreenReader(event)) { + this._modality.next("keyboard"); + return; + } + // Store the timestamp of this touch event, as it's used to distinguish between mouse events + // triggered via mouse vs touch. + this._lastTouchMs = Date.now(); + this._modality.next("touch"); + this._mostRecentTarget = (0, + _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__._getEventTarget)( + event + ); + }; + this._options = { + ...INPUT_MODALITY_DETECTOR_DEFAULT_OPTIONS, + ...options, + }; + // Skip the first emission as it's null. + this.modalityDetected = this._modality.pipe( + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.skip)(1) + ); + this.modalityChanged = this.modalityDetected.pipe( + (0, + rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.distinctUntilChanged)() + ); + // If we're not in a browser, this service should do nothing, as there's no relevant input + // modality to detect. + if (_platform.isBrowser) { + ngZone.runOutsideAngular(() => { + document.addEventListener( + "keydown", + this._onKeydown, + modalityEventListenerOptions + ); + document.addEventListener( + "mousedown", + this._onMousedown, + modalityEventListenerOptions + ); + document.addEventListener( + "touchstart", + this._onTouchstart, + modalityEventListenerOptions + ); + }); + } + } + ngOnDestroy() { + this._modality.complete(); + if (this._platform.isBrowser) { + document.removeEventListener( + "keydown", + this._onKeydown, + modalityEventListenerOptions + ); + document.removeEventListener( + "mousedown", + this._onMousedown, + modalityEventListenerOptions + ); + document.removeEventListener( + "touchstart", + this._onTouchstart, + modalityEventListenerOptions + ); + } + } + } + InputModalityDetector.ɵfac = function InputModalityDetector_Factory(t) { + return new (t || InputModalityDetector)( + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"]( + _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__.Platform + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"]( + _angular_common__WEBPACK_IMPORTED_MODULE_1__.DOCUMENT + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"]( + INPUT_MODALITY_DETECTOR_OPTIONS, + 8 + ) + ); + }; + InputModalityDetector.ɵprov = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineInjectable" + ]({ + token: InputModalityDetector, + factory: InputModalityDetector.ɵfac, + providedIn: "root", + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + InputModalityDetector, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injectable, + args: [ + { + providedIn: "root", + }, + ], + }, + ], + function () { + return [ + { + type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__.Platform, + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone, + }, + { + type: Document, + decorators: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject, + args: [ + _angular_common__WEBPACK_IMPORTED_MODULE_1__.DOCUMENT, + ], + }, + ], + }, + { + type: undefined, + decorators: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional, + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject, + args: [INPUT_MODALITY_DETECTOR_OPTIONS], + }, + ], + }, + ]; + }, + null + ); + })(); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + const LIVE_ANNOUNCER_ELEMENT_TOKEN = + new _angular_core__WEBPACK_IMPORTED_MODULE_0__.InjectionToken( + "liveAnnouncerElement", + { + providedIn: "root", + factory: LIVE_ANNOUNCER_ELEMENT_TOKEN_FACTORY, + } + ); + /** @docs-private */ + function LIVE_ANNOUNCER_ELEMENT_TOKEN_FACTORY() { + return null; + } + /** Injection token that can be used to configure the default options for the LiveAnnouncer. */ + const LIVE_ANNOUNCER_DEFAULT_OPTIONS = + new _angular_core__WEBPACK_IMPORTED_MODULE_0__.InjectionToken( + "LIVE_ANNOUNCER_DEFAULT_OPTIONS" + ); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + let uniqueIds = 0; + class LiveAnnouncer { + constructor(elementToken, _ngZone, _document, _defaultOptions) { + this._ngZone = _ngZone; + this._defaultOptions = _defaultOptions; + // We inject the live element and document as `any` because the constructor signature cannot + // reference browser globals (HTMLElement, Document) on non-browser environments, since having + // a class decorator causes TypeScript to preserve the constructor signature types. + this._document = _document; + this._liveElement = elementToken || this._createLiveElement(); + } + announce(message, ...args) { + const defaultOptions = this._defaultOptions; + let politeness; + let duration; + if (args.length === 1 && typeof args[0] === "number") { + duration = args[0]; + } else { + [politeness, duration] = args; + } + this.clear(); + clearTimeout(this._previousTimeout); + if (!politeness) { + politeness = + defaultOptions && defaultOptions.politeness + ? defaultOptions.politeness + : "polite"; + } + if (duration == null && defaultOptions) { + duration = defaultOptions.duration; + } + // TODO: ensure changing the politeness works on all environments we support. + this._liveElement.setAttribute("aria-live", politeness); + if (this._liveElement.id) { + this._exposeAnnouncerToModals(this._liveElement.id); + } + // This 100ms timeout is necessary for some browser + screen-reader combinations: + // - Both JAWS and NVDA over IE11 will not announce anything without a non-zero timeout. + // - With Chrome and IE11 with NVDA or JAWS, a repeated (identical) message won't be read a + // second time without clearing and then using a non-zero delay. + // (using JAWS 17 at time of this writing). + return this._ngZone.runOutsideAngular(() => { + if (!this._currentPromise) { + this._currentPromise = new Promise( + (resolve) => (this._currentResolve = resolve) + ); + } + clearTimeout(this._previousTimeout); + this._previousTimeout = setTimeout(() => { + this._liveElement.textContent = message; + if (typeof duration === "number") { + this._previousTimeout = setTimeout( + () => this.clear(), + duration + ); + } + this._currentResolve(); + this._currentPromise = this._currentResolve = undefined; + }, 100); + return this._currentPromise; + }); + } + /** + * Clears the current text from the announcer element. Can be used to prevent + * screen readers from reading the text out again while the user is going + * through the page landmarks. + */ + clear() { + if (this._liveElement) { + this._liveElement.textContent = ""; + } + } + ngOnDestroy() { + clearTimeout(this._previousTimeout); + this._liveElement?.remove(); + this._liveElement = null; + this._currentResolve?.(); + this._currentPromise = this._currentResolve = undefined; + } + _createLiveElement() { + const elementClass = "cdk-live-announcer-element"; + const previousElements = + this._document.getElementsByClassName(elementClass); + const liveEl = this._document.createElement("div"); + // Remove any old containers. This can happen when coming in from a server-side-rendered page. + for (let i = 0; i < previousElements.length; i++) { + previousElements[i].remove(); + } + liveEl.classList.add(elementClass); + liveEl.classList.add("cdk-visually-hidden"); + liveEl.setAttribute("aria-atomic", "true"); + liveEl.setAttribute("aria-live", "polite"); + liveEl.id = `cdk-live-announcer-${uniqueIds++}`; + this._document.body.appendChild(liveEl); + return liveEl; + } + /** + * Some browsers won't expose the accessibility node of the live announcer element if there is an + * `aria-modal` and the live announcer is outside of it. This method works around the issue by + * pointing the `aria-owns` of all modals to the live announcer element. + */ + _exposeAnnouncerToModals(id) { + // Note that the selector here is limited to CDK overlays at the moment in order to reduce the + // section of the DOM we need to look through. This should cover all the cases we support, but + // the selector can be expanded if it turns out to be too narrow. + const modals = this._document.querySelectorAll( + 'body > .cdk-overlay-container [aria-modal="true"]' + ); + for (let i = 0; i < modals.length; i++) { + const modal = modals[i]; + const ariaOwns = modal.getAttribute("aria-owns"); + if (!ariaOwns) { + modal.setAttribute("aria-owns", id); + } else if (ariaOwns.indexOf(id) === -1) { + modal.setAttribute("aria-owns", ariaOwns + " " + id); + } + } + } + } + LiveAnnouncer.ɵfac = function LiveAnnouncer_Factory(t) { + return new (t || LiveAnnouncer)( + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"]( + LIVE_ANNOUNCER_ELEMENT_TOKEN, + 8 + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"]( + _angular_common__WEBPACK_IMPORTED_MODULE_1__.DOCUMENT + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"]( + LIVE_ANNOUNCER_DEFAULT_OPTIONS, + 8 + ) + ); + }; + LiveAnnouncer.ɵprov = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineInjectable" + ]({ + token: LiveAnnouncer, + factory: LiveAnnouncer.ɵfac, + providedIn: "root", + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + LiveAnnouncer, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injectable, + args: [ + { + providedIn: "root", + }, + ], + }, + ], + function () { + return [ + { + type: undefined, + decorators: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional, + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject, + args: [LIVE_ANNOUNCER_ELEMENT_TOKEN], + }, + ], + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone, + }, + { + type: undefined, + decorators: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject, + args: [ + _angular_common__WEBPACK_IMPORTED_MODULE_1__.DOCUMENT, + ], + }, + ], + }, + { + type: undefined, + decorators: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional, + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject, + args: [LIVE_ANNOUNCER_DEFAULT_OPTIONS], + }, + ], + }, + ]; + }, + null + ); + })(); + /** + * A directive that works similarly to aria-live, but uses the LiveAnnouncer to ensure compatibility + * with a wider range of browsers and screen readers. + */ + class CdkAriaLive { + /** The aria-live politeness level to use when announcing messages. */ + get politeness() { + return this._politeness; + } + set politeness(value) { + this._politeness = + value === "off" || value === "assertive" ? value : "polite"; + if (this._politeness === "off") { + if (this._subscription) { + this._subscription.unsubscribe(); + this._subscription = null; + } + } else if (!this._subscription) { + this._subscription = this._ngZone.runOutsideAngular(() => { + return this._contentObserver + .observe(this._elementRef) + .subscribe(() => { + // Note that we use textContent here, rather than innerText, in order to avoid a reflow. + const elementText = + this._elementRef.nativeElement.textContent; + // The `MutationObserver` fires also for attribute + // changes which we don't want to announce. + if (elementText !== this._previousAnnouncedText) { + this._liveAnnouncer.announce( + elementText, + this._politeness, + this.duration + ); + this._previousAnnouncedText = elementText; + } + }); + }); + } + } + constructor(_elementRef, _liveAnnouncer, _contentObserver, _ngZone) { + this._elementRef = _elementRef; + this._liveAnnouncer = _liveAnnouncer; + this._contentObserver = _contentObserver; + this._ngZone = _ngZone; + this._politeness = "polite"; + } + ngOnDestroy() { + if (this._subscription) { + this._subscription.unsubscribe(); + } + } + } + CdkAriaLive.ɵfac = function CdkAriaLive_Factory(t) { + return new (t || CdkAriaLive)( + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + LiveAnnouncer + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + _angular_cdk_observers__WEBPACK_IMPORTED_MODULE_15__.ContentObserver + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone + ) + ); + }; + CdkAriaLive.ɵdir = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineDirective" + ]({ + type: CdkAriaLive, + selectors: [["", "cdkAriaLive", ""]], + inputs: { + politeness: ["cdkAriaLive", "politeness"], + duration: ["cdkAriaLiveDuration", "duration"], + }, + exportAs: ["cdkAriaLive"], + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + CdkAriaLive, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive, + args: [ + { + selector: "[cdkAriaLive]", + exportAs: "cdkAriaLive", + }, + ], + }, + ], + function () { + return [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef, + }, + { + type: LiveAnnouncer, + }, + { + type: _angular_cdk_observers__WEBPACK_IMPORTED_MODULE_15__.ContentObserver, + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone, + }, + ]; + }, + { + politeness: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input, + args: ["cdkAriaLive"], + }, + ], + duration: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input, + args: ["cdkAriaLiveDuration"], + }, + ], + } + ); + })(); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** InjectionToken for FocusMonitorOptions. */ + const FOCUS_MONITOR_DEFAULT_OPTIONS = + new _angular_core__WEBPACK_IMPORTED_MODULE_0__.InjectionToken( + "cdk-focus-monitor-default-options" + ); + /** + * Event listener options that enable capturing and also + * mark the listener as passive if the browser supports it. + */ + const captureEventListenerOptions = (0, + _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__.normalizePassiveListenerOptions)( + { + passive: true, + capture: true, + } + ); + /** Monitors mouse and keyboard events to determine the cause of focus events. */ + class FocusMonitor { + constructor( + _ngZone, + _platform, + _inputModalityDetector /** @breaking-change 11.0.0 make document required */, + document, + options + ) { + this._ngZone = _ngZone; + this._platform = _platform; + this._inputModalityDetector = _inputModalityDetector; + /** The focus origin that the next focus event is a result of. */ + this._origin = null; + /** Whether the window has just been focused. */ + this._windowFocused = false; + /** + * Whether the origin was determined via a touch interaction. Necessary as properly attributing + * focus events to touch interactions requires special logic. + */ + this._originFromTouchInteraction = false; + /** Map of elements being monitored to their info. */ + this._elementInfo = new Map(); + /** The number of elements currently being monitored. */ + this._monitoredElementCount = 0; + /** + * Keeps track of the root nodes to which we've currently bound a focus/blur handler, + * as well as the number of monitored elements that they contain. We have to treat focus/blur + * handlers differently from the rest of the events, because the browser won't emit events + * to the document when focus moves inside of a shadow root. + */ + this._rootNodeFocusListenerCount = new Map(); + /** + * Event listener for `focus` events on the window. + * Needs to be an arrow function in order to preserve the context when it gets bound. + */ + this._windowFocusListener = () => { + // Make a note of when the window regains focus, so we can + // restore the origin info for the focused element. + this._windowFocused = true; + this._windowFocusTimeoutId = window.setTimeout( + () => (this._windowFocused = false) + ); + }; + /** Subject for stopping our InputModalityDetector subscription. */ + this._stopInputModalityDetector = + new rxjs__WEBPACK_IMPORTED_MODULE_3__.Subject(); + /** + * Event listener for `focus` and 'blur' events on the document. + * Needs to be an arrow function in order to preserve the context when it gets bound. + */ + this._rootNodeFocusAndBlurListener = (event) => { + const target = (0, + _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__._getEventTarget)( + event + ); + // We need to walk up the ancestor chain in order to support `checkChildren`. + for ( + let element = target; + element; + element = element.parentElement + ) { + if (event.type === "focus") { + this._onFocus(event, element); + } else { + this._onBlur(event, element); + } + } + }; + this._document = document; + this._detectionMode = + options?.detectionMode || + 0 /* FocusMonitorDetectionMode.IMMEDIATE */; + } + + monitor(element, checkChildren = false) { + const nativeElement = (0, + _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_11__.coerceElement)( + element + ); + // Do nothing if we're not on the browser platform or the passed in node isn't an element. + if (!this._platform.isBrowser || nativeElement.nodeType !== 1) { + return (0, rxjs__WEBPACK_IMPORTED_MODULE_16__.of)(null); + } + // If the element is inside the shadow DOM, we need to bind our focus/blur listeners to + // the shadow root, rather than the `document`, because the browser won't emit focus events + // to the `document`, if focus is moving within the same shadow root. + const rootNode = + (0, + _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__._getShadowRoot)( + nativeElement + ) || this._getDocument(); + const cachedInfo = this._elementInfo.get(nativeElement); + // Check if we're already monitoring this element. + if (cachedInfo) { + if (checkChildren) { + // TODO(COMP-318): this can be problematic, because it'll turn all non-checkChildren + // observers into ones that behave as if `checkChildren` was turned on. We need a more + // robust solution. + cachedInfo.checkChildren = true; + } + return cachedInfo.subject; + } + // Create monitored element info. + const info = { + checkChildren: checkChildren, + subject: new rxjs__WEBPACK_IMPORTED_MODULE_3__.Subject(), + rootNode, + }; + this._elementInfo.set(nativeElement, info); + this._registerGlobalListeners(info); + return info.subject; + } + stopMonitoring(element) { + const nativeElement = (0, + _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_11__.coerceElement)( + element + ); + const elementInfo = this._elementInfo.get(nativeElement); + if (elementInfo) { + elementInfo.subject.complete(); + this._setClasses(nativeElement); + this._elementInfo.delete(nativeElement); + this._removeGlobalListeners(elementInfo); + } + } + focusVia(element, origin, options) { + const nativeElement = (0, + _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_11__.coerceElement)( + element + ); + const focusedElement = this._getDocument().activeElement; + // If the element is focused already, calling `focus` again won't trigger the event listener + // which means that the focus classes won't be updated. If that's the case, update the classes + // directly without waiting for an event. + if (nativeElement === focusedElement) { + this._getClosestElementsInfo(nativeElement).forEach( + ([currentElement, info]) => + this._originChanged(currentElement, origin, info) + ); + } else { + this._setOrigin(origin); + // `focus` isn't available on the server + if (typeof nativeElement.focus === "function") { + nativeElement.focus(options); + } + } + } + ngOnDestroy() { + this._elementInfo.forEach((_info, element) => + this.stopMonitoring(element) + ); + } + /** Access injected document if available or fallback to global document reference */ + _getDocument() { + return this._document || document; + } + /** Use defaultView of injected document if available or fallback to global window reference */ + _getWindow() { + const doc = this._getDocument(); + return doc.defaultView || window; + } + _getFocusOrigin(focusEventTarget) { + if (this._origin) { + // If the origin was realized via a touch interaction, we need to perform additional checks + // to determine whether the focus origin should be attributed to touch or program. + if (this._originFromTouchInteraction) { + return this._shouldBeAttributedToTouch(focusEventTarget) + ? "touch" + : "program"; + } else { + return this._origin; + } + } + // If the window has just regained focus, we can restore the most recent origin from before the + // window blurred. Otherwise, we've reached the point where we can't identify the source of the + // focus. This typically means one of two things happened: + // + // 1) The element was programmatically focused, or + // 2) The element was focused via screen reader navigation (which generally doesn't fire + // events). + // + // Because we can't distinguish between these two cases, we default to setting `program`. + if (this._windowFocused && this._lastFocusOrigin) { + return this._lastFocusOrigin; + } + // If the interaction is coming from an input label, we consider it a mouse interactions. + // This is a special case where focus moves on `click`, rather than `mousedown` which breaks + // our detection, because all our assumptions are for `mousedown`. We need to handle this + // special case, because it's very common for checkboxes and radio buttons. + if ( + focusEventTarget && + this._isLastInteractionFromInputLabel(focusEventTarget) + ) { + return "mouse"; + } + return "program"; + } + /** + * Returns whether the focus event should be attributed to touch. Recall that in IMMEDIATE mode, a + * touch origin isn't immediately reset at the next tick (see _setOrigin). This means that when we + * handle a focus event following a touch interaction, we need to determine whether (1) the focus + * event was directly caused by the touch interaction or (2) the focus event was caused by a + * subsequent programmatic focus call triggered by the touch interaction. + * @param focusEventTarget The target of the focus event under examination. + */ + _shouldBeAttributedToTouch(focusEventTarget) { + // Please note that this check is not perfect. Consider the following edge case: + // + //
+ //
+ //
+ // + // Suppose there is a FocusMonitor in IMMEDIATE mode attached to #parent. When the user touches + // #child, #parent is programmatically focused. This code will attribute the focus to touch + // instead of program. This is a relatively minor edge-case that can be worked around by using + // focusVia(parent, 'program') to focus #parent. + return ( + this._detectionMode === + 1 /* FocusMonitorDetectionMode.EVENTUAL */ || + !!focusEventTarget?.contains( + this._inputModalityDetector._mostRecentTarget + ) + ); + } + /** + * Sets the focus classes on the element based on the given focus origin. + * @param element The element to update the classes on. + * @param origin The focus origin. + */ + _setClasses(element, origin) { + element.classList.toggle("cdk-focused", !!origin); + element.classList.toggle("cdk-touch-focused", origin === "touch"); + element.classList.toggle( + "cdk-keyboard-focused", + origin === "keyboard" + ); + element.classList.toggle("cdk-mouse-focused", origin === "mouse"); + element.classList.toggle( + "cdk-program-focused", + origin === "program" + ); + } + /** + * Updates the focus origin. If we're using immediate detection mode, we schedule an async + * function to clear the origin at the end of a timeout. The duration of the timeout depends on + * the origin being set. + * @param origin The origin to set. + * @param isFromInteraction Whether we are setting the origin from an interaction event. + */ + _setOrigin(origin, isFromInteraction = false) { + this._ngZone.runOutsideAngular(() => { + this._origin = origin; + this._originFromTouchInteraction = + origin === "touch" && isFromInteraction; + // If we're in IMMEDIATE mode, reset the origin at the next tick (or in `TOUCH_BUFFER_MS` ms + // for a touch event). We reset the origin at the next tick because Firefox focuses one tick + // after the interaction event. We wait `TOUCH_BUFFER_MS` ms before resetting the origin for + // a touch event because when a touch event is fired, the associated focus event isn't yet in + // the event queue. Before doing so, clear any pending timeouts. + if ( + this._detectionMode === + 0 /* FocusMonitorDetectionMode.IMMEDIATE */ + ) { + clearTimeout(this._originTimeoutId); + const ms = this._originFromTouchInteraction + ? TOUCH_BUFFER_MS + : 1; + this._originTimeoutId = setTimeout( + () => (this._origin = null), + ms + ); + } + }); + } + /** + * Handles focus events on a registered element. + * @param event The focus event. + * @param element The monitored element. + */ + _onFocus(event, element) { + // NOTE(mmalerba): We currently set the classes based on the focus origin of the most recent + // focus event affecting the monitored element. If we want to use the origin of the first event + // instead we should check for the cdk-focused class here and return if the element already has + // it. (This only matters for elements that have includesChildren = true). + // If we are not counting child-element-focus as focused, make sure that the event target is the + // monitored element itself. + const elementInfo = this._elementInfo.get(element); + const focusEventTarget = (0, + _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__._getEventTarget)( + event + ); + if ( + !elementInfo || + (!elementInfo.checkChildren && element !== focusEventTarget) + ) { + return; + } + this._originChanged( + element, + this._getFocusOrigin(focusEventTarget), + elementInfo + ); + } + /** + * Handles blur events on a registered element. + * @param event The blur event. + * @param element The monitored element. + */ + _onBlur(event, element) { + // If we are counting child-element-focus as focused, make sure that we aren't just blurring in + // order to focus another child of the monitored element. + const elementInfo = this._elementInfo.get(element); + if ( + !elementInfo || + (elementInfo.checkChildren && + event.relatedTarget instanceof Node && + element.contains(event.relatedTarget)) + ) { + return; + } + this._setClasses(element); + this._emitOrigin(elementInfo, null); + } + _emitOrigin(info, origin) { + if (info.subject.observers.length) { + this._ngZone.run(() => info.subject.next(origin)); + } + } + _registerGlobalListeners(elementInfo) { + if (!this._platform.isBrowser) { + return; + } + const rootNode = elementInfo.rootNode; + const rootNodeFocusListeners = + this._rootNodeFocusListenerCount.get(rootNode) || 0; + if (!rootNodeFocusListeners) { + this._ngZone.runOutsideAngular(() => { + rootNode.addEventListener( + "focus", + this._rootNodeFocusAndBlurListener, + captureEventListenerOptions + ); + rootNode.addEventListener( + "blur", + this._rootNodeFocusAndBlurListener, + captureEventListenerOptions + ); + }); + } + this._rootNodeFocusListenerCount.set( + rootNode, + rootNodeFocusListeners + 1 + ); + // Register global listeners when first element is monitored. + if (++this._monitoredElementCount === 1) { + // Note: we listen to events in the capture phase so we + // can detect them even if the user stops propagation. + this._ngZone.runOutsideAngular(() => { + const window = this._getWindow(); + window.addEventListener("focus", this._windowFocusListener); + }); + // The InputModalityDetector is also just a collection of global listeners. + this._inputModalityDetector.modalityDetected + .pipe( + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_17__.takeUntil)( + this._stopInputModalityDetector + ) + ) + .subscribe((modality) => { + this._setOrigin(modality, true /* isFromInteraction */); + }); + } + } + + _removeGlobalListeners(elementInfo) { + const rootNode = elementInfo.rootNode; + if (this._rootNodeFocusListenerCount.has(rootNode)) { + const rootNodeFocusListeners = + this._rootNodeFocusListenerCount.get(rootNode); + if (rootNodeFocusListeners > 1) { + this._rootNodeFocusListenerCount.set( + rootNode, + rootNodeFocusListeners - 1 + ); + } else { + rootNode.removeEventListener( + "focus", + this._rootNodeFocusAndBlurListener, + captureEventListenerOptions + ); + rootNode.removeEventListener( + "blur", + this._rootNodeFocusAndBlurListener, + captureEventListenerOptions + ); + this._rootNodeFocusListenerCount.delete(rootNode); + } + } + // Unregister global listeners when last element is unmonitored. + if (!--this._monitoredElementCount) { + const window = this._getWindow(); + window.removeEventListener("focus", this._windowFocusListener); + // Equivalently, stop our InputModalityDetector subscription. + this._stopInputModalityDetector.next(); + // Clear timeouts for all potentially pending timeouts to prevent the leaks. + clearTimeout(this._windowFocusTimeoutId); + clearTimeout(this._originTimeoutId); + } + } + /** Updates all the state on an element once its focus origin has changed. */ + _originChanged(element, origin, elementInfo) { + this._setClasses(element, origin); + this._emitOrigin(elementInfo, origin); + this._lastFocusOrigin = origin; + } + /** + * Collects the `MonitoredElementInfo` of a particular element and + * all of its ancestors that have enabled `checkChildren`. + * @param element Element from which to start the search. + */ + _getClosestElementsInfo(element) { + const results = []; + this._elementInfo.forEach((info, currentElement) => { + if ( + currentElement === element || + (info.checkChildren && currentElement.contains(element)) + ) { + results.push([currentElement, info]); + } + }); + return results; + } + /** + * Returns whether an interaction is likely to have come from the user clicking the `label` of + * an `input` or `textarea` in order to focus it. + * @param focusEventTarget Target currently receiving focus. + */ + _isLastInteractionFromInputLabel(focusEventTarget) { + const { _mostRecentTarget: mostRecentTarget, mostRecentModality } = + this._inputModalityDetector; + // If the last interaction used the mouse on an element contained by one of the labels + // of an `input`/`textarea` that is currently focused, it is very likely that the + // user redirected focus using the label. + if ( + mostRecentModality !== "mouse" || + !mostRecentTarget || + mostRecentTarget === focusEventTarget || + (focusEventTarget.nodeName !== "INPUT" && + focusEventTarget.nodeName !== "TEXTAREA") || + focusEventTarget.disabled + ) { + return false; + } + const labels = focusEventTarget.labels; + if (labels) { + for (let i = 0; i < labels.length; i++) { + if (labels[i].contains(mostRecentTarget)) { + return true; + } + } + } + return false; + } + } + FocusMonitor.ɵfac = function FocusMonitor_Factory(t) { + return new (t || FocusMonitor)( + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"]( + _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__.Platform + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"]( + InputModalityDetector + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"]( + _angular_common__WEBPACK_IMPORTED_MODULE_1__.DOCUMENT, + 8 + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"]( + FOCUS_MONITOR_DEFAULT_OPTIONS, + 8 + ) + ); + }; + FocusMonitor.ɵprov = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineInjectable" + ]({ + token: FocusMonitor, + factory: FocusMonitor.ɵfac, + providedIn: "root", + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + FocusMonitor, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injectable, + args: [ + { + providedIn: "root", + }, + ], + }, + ], + function () { + return [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone, + }, + { + type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__.Platform, + }, + { + type: InputModalityDetector, + }, + { + type: undefined, + decorators: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional, + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject, + args: [ + _angular_common__WEBPACK_IMPORTED_MODULE_1__.DOCUMENT, + ], + }, + ], + }, + { + type: undefined, + decorators: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional, + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject, + args: [FOCUS_MONITOR_DEFAULT_OPTIONS], + }, + ], + }, + ]; + }, + null + ); + })(); + /** + * Directive that determines how a particular element was focused (via keyboard, mouse, touch, or + * programmatically) and adds corresponding classes to the element. + * + * There are two variants of this directive: + * 1) cdkMonitorElementFocus: does not consider an element to be focused if one of its children is + * focused. + * 2) cdkMonitorSubtreeFocus: considers an element focused if it or any of its children are focused. + */ + class CdkMonitorFocus { + constructor(_elementRef, _focusMonitor) { + this._elementRef = _elementRef; + this._focusMonitor = _focusMonitor; + this._focusOrigin = null; + this.cdkFocusChange = + new _angular_core__WEBPACK_IMPORTED_MODULE_0__.EventEmitter(); + } + get focusOrigin() { + return this._focusOrigin; + } + ngAfterViewInit() { + const element = this._elementRef.nativeElement; + this._monitorSubscription = this._focusMonitor + .monitor( + element, + element.nodeType === 1 && + element.hasAttribute("cdkMonitorSubtreeFocus") + ) + .subscribe((origin) => { + this._focusOrigin = origin; + this.cdkFocusChange.emit(origin); + }); + } + ngOnDestroy() { + this._focusMonitor.stopMonitoring(this._elementRef); + if (this._monitorSubscription) { + this._monitorSubscription.unsubscribe(); + } + } + } + CdkMonitorFocus.ɵfac = function CdkMonitorFocus_Factory(t) { + return new (t || CdkMonitorFocus)( + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + FocusMonitor + ) + ); + }; + CdkMonitorFocus.ɵdir = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineDirective" + ]({ + type: CdkMonitorFocus, + selectors: [ + ["", "cdkMonitorElementFocus", ""], + ["", "cdkMonitorSubtreeFocus", ""], + ], + outputs: { + cdkFocusChange: "cdkFocusChange", + }, + exportAs: ["cdkMonitorFocus"], + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + CdkMonitorFocus, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive, + args: [ + { + selector: + "[cdkMonitorElementFocus], [cdkMonitorSubtreeFocus]", + exportAs: "cdkMonitorFocus", + }, + ], + }, + ], + function () { + return [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef, + }, + { + type: FocusMonitor, + }, + ]; + }, + { + cdkFocusChange: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Output, + }, + ], + } + ); + })(); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** CSS class applied to the document body when in black-on-white high-contrast mode. */ + const BLACK_ON_WHITE_CSS_CLASS = "cdk-high-contrast-black-on-white"; + /** CSS class applied to the document body when in white-on-black high-contrast mode. */ + const WHITE_ON_BLACK_CSS_CLASS = "cdk-high-contrast-white-on-black"; + /** CSS class applied to the document body when in high-contrast mode. */ + const HIGH_CONTRAST_MODE_ACTIVE_CSS_CLASS = "cdk-high-contrast-active"; + /** + * Service to determine whether the browser is currently in a high-contrast-mode environment. + * + * Microsoft Windows supports an accessibility feature called "High Contrast Mode". This mode + * changes the appearance of all applications, including web applications, to dramatically increase + * contrast. + * + * IE, Edge, and Firefox currently support this mode. Chrome does not support Windows High Contrast + * Mode. This service does not detect high-contrast mode as added by the Chrome "High Contrast" + * browser extension. + */ + class HighContrastModeDetector { + constructor(_platform, document) { + this._platform = _platform; + this._document = document; + this._breakpointSubscription = (0, + _angular_core__WEBPACK_IMPORTED_MODULE_0__.inject)( + _angular_cdk_layout__WEBPACK_IMPORTED_MODULE_18__.BreakpointObserver + ) + .observe("(forced-colors: active)") + .subscribe(() => { + if (this._hasCheckedHighContrastMode) { + this._hasCheckedHighContrastMode = false; + this._applyBodyHighContrastModeCssClasses(); + } + }); + } + /** Gets the current high-contrast-mode for the page. */ + getHighContrastMode() { + if (!this._platform.isBrowser) { + return 0 /* HighContrastMode.NONE */; + } + // Create a test element with an arbitrary background-color that is neither black nor + // white; high-contrast mode will coerce the color to either black or white. Also ensure that + // appending the test element to the DOM does not affect layout by absolutely positioning it + const testElement = this._document.createElement("div"); + testElement.style.backgroundColor = "rgb(1,2,3)"; + testElement.style.position = "absolute"; + this._document.body.appendChild(testElement); + // Get the computed style for the background color, collapsing spaces to normalize between + // browsers. Once we get this color, we no longer need the test element. Access the `window` + // via the document so we can fake it in tests. Note that we have extra null checks, because + // this logic will likely run during app bootstrap and throwing can break the entire app. + const documentWindow = this._document.defaultView || window; + const computedStyle = + documentWindow && documentWindow.getComputedStyle + ? documentWindow.getComputedStyle(testElement) + : null; + const computedColor = ( + (computedStyle && computedStyle.backgroundColor) || + "" + ).replace(/ /g, ""); + testElement.remove(); + switch (computedColor) { + // Pre Windows 11 dark theme. + case "rgb(0,0,0)": + // Windows 11 dark themes. + case "rgb(45,50,54)": + case "rgb(32,32,32)": + return 2 /* HighContrastMode.WHITE_ON_BLACK */; + // Pre Windows 11 light theme. + case "rgb(255,255,255)": + // Windows 11 light theme. + case "rgb(255,250,239)": + return 1 /* HighContrastMode.BLACK_ON_WHITE */; + } + + return 0 /* HighContrastMode.NONE */; + } + + ngOnDestroy() { + this._breakpointSubscription.unsubscribe(); + } + /** Applies CSS classes indicating high-contrast mode to document body (browser-only). */ + _applyBodyHighContrastModeCssClasses() { + if ( + !this._hasCheckedHighContrastMode && + this._platform.isBrowser && + this._document.body + ) { + const bodyClasses = this._document.body.classList; + bodyClasses.remove( + HIGH_CONTRAST_MODE_ACTIVE_CSS_CLASS, + BLACK_ON_WHITE_CSS_CLASS, + WHITE_ON_BLACK_CSS_CLASS + ); + this._hasCheckedHighContrastMode = true; + const mode = this.getHighContrastMode(); + if (mode === 1 /* HighContrastMode.BLACK_ON_WHITE */) { + bodyClasses.add( + HIGH_CONTRAST_MODE_ACTIVE_CSS_CLASS, + BLACK_ON_WHITE_CSS_CLASS + ); + } else if (mode === 2 /* HighContrastMode.WHITE_ON_BLACK */) { + bodyClasses.add( + HIGH_CONTRAST_MODE_ACTIVE_CSS_CLASS, + WHITE_ON_BLACK_CSS_CLASS + ); + } + } + } + } + HighContrastModeDetector.ɵfac = + function HighContrastModeDetector_Factory(t) { + return new (t || HighContrastModeDetector)( + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"]( + _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__.Platform + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"]( + _angular_common__WEBPACK_IMPORTED_MODULE_1__.DOCUMENT + ) + ); + }; + HighContrastModeDetector.ɵprov = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineInjectable" + ]({ + token: HighContrastModeDetector, + factory: HighContrastModeDetector.ɵfac, + providedIn: "root", + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + HighContrastModeDetector, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injectable, + args: [ + { + providedIn: "root", + }, + ], + }, + ], + function () { + return [ + { + type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__.Platform, + }, + { + type: undefined, + decorators: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject, + args: [ + _angular_common__WEBPACK_IMPORTED_MODULE_1__.DOCUMENT, + ], + }, + ], + }, + ]; + }, + null + ); + })(); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + class A11yModule { + constructor(highContrastModeDetector) { + highContrastModeDetector._applyBodyHighContrastModeCssClasses(); + } + } + A11yModule.ɵfac = function A11yModule_Factory(t) { + return new (t || A11yModule)( + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"]( + HighContrastModeDetector + ) + ); + }; + A11yModule.ɵmod = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineNgModule" + ]({ + type: A11yModule, + }); + A11yModule.ɵinj = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineInjector" + ]({ + imports: [ + _angular_cdk_observers__WEBPACK_IMPORTED_MODULE_15__.ObserversModule, + ], + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + A11yModule, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgModule, + args: [ + { + imports: [ + _angular_cdk_observers__WEBPACK_IMPORTED_MODULE_15__.ObserversModule, + ], + declarations: [ + CdkAriaLive, + CdkTrapFocus, + CdkMonitorFocus, + ], + exports: [CdkAriaLive, CdkTrapFocus, CdkMonitorFocus], + }, + ], + }, + ], + function () { + return [ + { + type: HighContrastModeDetector, + }, + ]; + }, + null + ); + })(); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + + /** + * Generated bundle index. Do not edit. + */ + + /***/ + }, + + /***/ 2867: + /*!*****************************************************!*\ + !*** ./node_modules/@angular/cdk/fesm2020/bidi.mjs ***! + \*****************************************************/ + /***/ ( + __unused_webpack___webpack_module__, + __webpack_exports__, + __webpack_require__ + ) => { + __webpack_require__.r(__webpack_exports__); + /* harmony export */ __webpack_require__.d(__webpack_exports__, { + /* harmony export */ BidiModule: () => /* binding */ BidiModule, + /* harmony export */ DIR_DOCUMENT: () => /* binding */ DIR_DOCUMENT, + /* harmony export */ Dir: () => /* binding */ Dir, + /* harmony export */ Directionality: () => + /* binding */ Directionality, + /* harmony export */ + }); + /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = + __webpack_require__(/*! @angular/core */ 2560); + /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = + __webpack_require__(/*! @angular/common */ 4666); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** + * Injection token used to inject the document into Directionality. + * This is used so that the value can be faked in tests. + * + * We can't use the real document in tests because changing the real `dir` causes geometry-based + * tests in Safari to fail. + * + * We also can't re-provide the DOCUMENT token from platform-browser because the unit tests + * themselves use things like `querySelector` in test code. + * + * This token is defined in a separate file from Directionality as a workaround for + * https://github.com/angular/angular/issues/22559 + * + * @docs-private + */ + const DIR_DOCUMENT = + new _angular_core__WEBPACK_IMPORTED_MODULE_0__.InjectionToken( + "cdk-dir-doc", + { + providedIn: "root", + factory: DIR_DOCUMENT_FACTORY, + } + ); + /** @docs-private */ + function DIR_DOCUMENT_FACTORY() { + return (0, _angular_core__WEBPACK_IMPORTED_MODULE_0__.inject)( + _angular_common__WEBPACK_IMPORTED_MODULE_1__.DOCUMENT + ); + } + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** Regex that matches locales with an RTL script. Taken from `goog.i18n.bidi.isRtlLanguage`. */ + const RTL_LOCALE_PATTERN = + /^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i; + /** Resolves a string value to a specific direction. */ + function _resolveDirectionality(rawValue) { + const value = rawValue?.toLowerCase() || ""; + if ( + value === "auto" && + typeof navigator !== "undefined" && + navigator?.language + ) { + return RTL_LOCALE_PATTERN.test(navigator.language) ? "rtl" : "ltr"; + } + return value === "rtl" ? "rtl" : "ltr"; + } + /** + * The directionality (LTR / RTL) context for the application (or a subtree of it). + * Exposes the current direction and a stream of direction changes. + */ + class Directionality { + constructor(_document) { + /** The current 'ltr' or 'rtl' value. */ + this.value = "ltr"; + /** Stream that emits whenever the 'ltr' / 'rtl' state changes. */ + this.change = + new _angular_core__WEBPACK_IMPORTED_MODULE_0__.EventEmitter(); + if (_document) { + const bodyDir = _document.body ? _document.body.dir : null; + const htmlDir = _document.documentElement + ? _document.documentElement.dir + : null; + this.value = _resolveDirectionality(bodyDir || htmlDir || "ltr"); + } + } + ngOnDestroy() { + this.change.complete(); + } + } + Directionality.ɵfac = function Directionality_Factory(t) { + return new (t || Directionality)( + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"]( + DIR_DOCUMENT, + 8 + ) + ); + }; + Directionality.ɵprov = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineInjectable" + ]({ + token: Directionality, + factory: Directionality.ɵfac, + providedIn: "root", + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + Directionality, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injectable, + args: [ + { + providedIn: "root", + }, + ], + }, + ], + function () { + return [ + { + type: undefined, + decorators: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional, + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject, + args: [DIR_DOCUMENT], + }, + ], + }, + ]; + }, + null + ); + })(); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** + * Directive to listen for changes of direction of part of the DOM. + * + * Provides itself as Directionality such that descendant directives only need to ever inject + * Directionality to get the closest direction. + */ + class Dir { + constructor() { + /** Normalized direction that accounts for invalid/unsupported values. */ + this._dir = "ltr"; + /** Whether the `value` has been set to its initial value. */ + this._isInitialized = false; + /** Event emitted when the direction changes. */ + this.change = + new _angular_core__WEBPACK_IMPORTED_MODULE_0__.EventEmitter(); + } + /** @docs-private */ + get dir() { + return this._dir; + } + set dir(value) { + const previousValue = this._dir; + // Note: `_resolveDirectionality` resolves the language based on the browser's language, + // whereas the browser does it based on the content of the element. Since doing so based + // on the content can be expensive, for now we're doing the simpler matching. + this._dir = _resolveDirectionality(value); + this._rawDir = value; + if (previousValue !== this._dir && this._isInitialized) { + this.change.emit(this._dir); + } + } + /** Current layout direction of the element. */ + get value() { + return this.dir; + } + /** Initialize once default value has been set. */ + ngAfterContentInit() { + this._isInitialized = true; + } + ngOnDestroy() { + this.change.complete(); + } + } + Dir.ɵfac = function Dir_Factory(t) { + return new (t || Dir)(); + }; + Dir.ɵdir = /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineDirective" + ]({ + type: Dir, + selectors: [["", "dir", ""]], + hostVars: 1, + hostBindings: function Dir_HostBindings(rf, ctx) { + if (rf & 2) { + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]( + "dir", + ctx._rawDir + ); + } + }, + inputs: { + dir: "dir", + }, + outputs: { + change: "dirChange", + }, + exportAs: ["dir"], + features: [ + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([ + { + provide: Directionality, + useExisting: Dir, + }, + ]), + ], + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + Dir, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive, + args: [ + { + selector: "[dir]", + providers: [ + { + provide: Directionality, + useExisting: Dir, + }, + ], + host: { + "[attr.dir]": "_rawDir", + }, + exportAs: "dir", + }, + ], + }, + ], + null, + { + change: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Output, + args: ["dirChange"], + }, + ], + dir: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input, + }, + ], + } + ); + })(); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + class BidiModule {} + BidiModule.ɵfac = function BidiModule_Factory(t) { + return new (t || BidiModule)(); + }; + BidiModule.ɵmod = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineNgModule" + ]({ + type: BidiModule, + }); + BidiModule.ɵinj = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineInjector" + ]({}); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + BidiModule, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgModule, + args: [ + { + exports: [Dir], + declarations: [Dir], + }, + ], + }, + ], + null, + null + ); + })(); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + + /** + * Generated bundle index. Do not edit. + */ + + /***/ + }, + + /***/ 6507: + /*!****************************************************!*\ + !*** ./node_modules/@angular/cdk/fesm2020/cdk.mjs ***! + \****************************************************/ + /***/ ( + __unused_webpack___webpack_module__, + __webpack_exports__, + __webpack_require__ + ) => { + __webpack_require__.r(__webpack_exports__); + /* harmony export */ __webpack_require__.d(__webpack_exports__, { + /* harmony export */ VERSION: () => /* binding */ VERSION, + /* harmony export */ + }); + /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = + __webpack_require__(/*! @angular/core */ 2560); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** Current version of the Angular Component Development Kit. */ + const VERSION = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.Version( + "15.1.4" + ); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + + /***/ + }, + + /***/ 8971: + /*!*********************************************************!*\ + !*** ./node_modules/@angular/cdk/fesm2020/coercion.mjs ***! + \*********************************************************/ + /***/ ( + __unused_webpack___webpack_module__, + __webpack_exports__, + __webpack_require__ + ) => { + __webpack_require__.r(__webpack_exports__); + /* harmony export */ __webpack_require__.d(__webpack_exports__, { + /* harmony export */ _isNumberValue: () => + /* binding */ _isNumberValue, + /* harmony export */ coerceArray: () => /* binding */ coerceArray, + /* harmony export */ coerceBooleanProperty: () => + /* binding */ coerceBooleanProperty, + /* harmony export */ coerceCssPixelValue: () => + /* binding */ coerceCssPixelValue, + /* harmony export */ coerceElement: () => /* binding */ coerceElement, + /* harmony export */ coerceNumberProperty: () => + /* binding */ coerceNumberProperty, + /* harmony export */ coerceStringArray: () => + /* binding */ coerceStringArray, + /* harmony export */ + }); + /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = + __webpack_require__(/*! @angular/core */ 2560); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** Coerces a data-bound value (typically a string) to a boolean. */ + function coerceBooleanProperty(value) { + return value != null && `${value}` !== "false"; + } + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + function coerceNumberProperty(value, fallbackValue = 0) { + return _isNumberValue(value) ? Number(value) : fallbackValue; + } + /** + * Whether the provided value is considered a number. + * @docs-private + */ + function _isNumberValue(value) { + // parseFloat(value) handles most of the cases we're interested in (it treats null, empty string, + // and other non-number values as NaN, where Number just uses 0) but it considers the string + // '123hello' to be a valid number. Therefore we also check if Number(value) is NaN. + return !isNaN(parseFloat(value)) && !isNaN(Number(value)); + } + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + function coerceArray(value) { + return Array.isArray(value) ? value : [value]; + } + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** Coerces a value to a CSS pixel value. */ + function coerceCssPixelValue(value) { + if (value == null) { + return ""; + } + return typeof value === "string" ? value : `${value}px`; + } + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** + * Coerces an ElementRef or an Element into an element. + * Useful for APIs that can accept either a ref or the native element itself. + */ + function coerceElement(elementOrRef) { + return elementOrRef instanceof + _angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef + ? elementOrRef.nativeElement + : elementOrRef; + } + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** + * Coerces a value to an array of trimmed non-empty strings. + * Any input that is not an array, `null` or `undefined` will be turned into a string + * via `toString()` and subsequently split with the given separator. + * `null` and `undefined` will result in an empty array. + * This results in the following outcomes: + * - `null` -> `[]` + * - `[null]` -> `["null"]` + * - `["a", "b ", " "]` -> `["a", "b"]` + * - `[1, [2, 3]]` -> `["1", "2,3"]` + * - `[{ a: 0 }]` -> `["[object Object]"]` + * - `{ a: 0 }` -> `["[object", "Object]"]` + * + * Useful for defining CSS classes or table columns. + * @param value the value to coerce into an array of strings + * @param separator split-separator if value isn't an array + */ + function coerceStringArray(value, separator = /\s+/) { + const result = []; + if (value != null) { + const sourceValues = Array.isArray(value) + ? value + : `${value}`.split(separator); + for (const sourceValue of sourceValues) { + const trimmedString = `${sourceValue}`.trim(); + if (trimmedString) { + result.push(trimmedString); + } + } + } + return result; + } + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + + /***/ + }, + + /***/ 1755: + /*!************************************************************!*\ + !*** ./node_modules/@angular/cdk/fesm2020/collections.mjs ***! + \************************************************************/ + /***/ ( + __unused_webpack___webpack_module__, + __webpack_exports__, + __webpack_require__ + ) => { + __webpack_require__.r(__webpack_exports__); + /* harmony export */ __webpack_require__.d(__webpack_exports__, { + /* harmony export */ ArrayDataSource: () => + /* binding */ ArrayDataSource, + /* harmony export */ DataSource: () => /* binding */ DataSource, + /* harmony export */ SelectionModel: () => + /* binding */ SelectionModel, + /* harmony export */ UniqueSelectionDispatcher: () => + /* binding */ UniqueSelectionDispatcher, + /* harmony export */ _DisposeViewRepeaterStrategy: () => + /* binding */ _DisposeViewRepeaterStrategy, + /* harmony export */ _RecycleViewRepeaterStrategy: () => + /* binding */ _RecycleViewRepeaterStrategy, + /* harmony export */ _VIEW_REPEATER_STRATEGY: () => + /* binding */ _VIEW_REPEATER_STRATEGY, + /* harmony export */ getMultipleValuesInSingleSelectionError: () => + /* binding */ getMultipleValuesInSingleSelectionError, + /* harmony export */ isDataSource: () => /* binding */ isDataSource, + /* harmony export */ + }); + /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = + __webpack_require__(/*! rxjs */ 3932); + /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_1__ = + __webpack_require__(/*! rxjs */ 4437); + /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = + __webpack_require__(/*! rxjs */ 745); + /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_3__ = + __webpack_require__(/*! rxjs */ 228); + /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4__ = + __webpack_require__(/*! @angular/core */ 2560); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + class DataSource {} + /** Checks whether an object is a data source. */ + function isDataSource(value) { + // Check if the value is a DataSource by observing if it has a connect function. Cannot + // be checked as an `instanceof DataSource` since people could create their own sources + // that match the interface, but don't extend DataSource. We also can't use `isObservable` + // here, because of some internal apps. + return ( + value && + typeof value.connect === "function" && + !( + value instanceof + rxjs__WEBPACK_IMPORTED_MODULE_0__.ConnectableObservable + ) + ); + } + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** DataSource wrapper for a native array. */ + class ArrayDataSource extends DataSource { + constructor(_data) { + super(); + this._data = _data; + } + connect() { + return (0, rxjs__WEBPACK_IMPORTED_MODULE_1__.isObservable)( + this._data + ) + ? this._data + : (0, rxjs__WEBPACK_IMPORTED_MODULE_2__.of)(this._data); + } + disconnect() {} + } + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** + * A repeater that destroys views when they are removed from a + * {@link ViewContainerRef}. When new items are inserted into the container, + * the repeater will always construct a new embedded view for each item. + * + * @template T The type for the embedded view's $implicit property. + * @template R The type for the item in each IterableDiffer change record. + * @template C The type for the context passed to each embedded view. + */ + class _DisposeViewRepeaterStrategy { + applyChanges( + changes, + viewContainerRef, + itemContextFactory, + itemValueResolver, + itemViewChanged + ) { + changes.forEachOperation( + (record, adjustedPreviousIndex, currentIndex) => { + let view; + let operation; + if (record.previousIndex == null) { + const insertContext = itemContextFactory( + record, + adjustedPreviousIndex, + currentIndex + ); + view = viewContainerRef.createEmbeddedView( + insertContext.templateRef, + insertContext.context, + insertContext.index + ); + operation = 1 /* _ViewRepeaterOperation.INSERTED */; + } else if (currentIndex == null) { + viewContainerRef.remove(adjustedPreviousIndex); + operation = 3 /* _ViewRepeaterOperation.REMOVED */; + } else { + view = viewContainerRef.get(adjustedPreviousIndex); + viewContainerRef.move(view, currentIndex); + operation = 2 /* _ViewRepeaterOperation.MOVED */; + } + + if (itemViewChanged) { + itemViewChanged({ + context: view?.context, + operation, + record, + }); + } + } + ); + } + detach() {} + } + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** + * A repeater that caches views when they are removed from a + * {@link ViewContainerRef}. When new items are inserted into the container, + * the repeater will reuse one of the cached views instead of creating a new + * embedded view. Recycling cached views reduces the quantity of expensive DOM + * inserts. + * + * @template T The type for the embedded view's $implicit property. + * @template R The type for the item in each IterableDiffer change record. + * @template C The type for the context passed to each embedded view. + */ + class _RecycleViewRepeaterStrategy { + constructor() { + /** + * The size of the cache used to store unused views. + * Setting the cache size to `0` will disable caching. Defaults to 20 views. + */ + this.viewCacheSize = 20; + /** + * View cache that stores embedded view instances that have been previously stamped out, + * but don't are not currently rendered. The view repeater will reuse these views rather than + * creating brand new ones. + * + * TODO(michaeljamesparsons) Investigate whether using a linked list would improve performance. + */ + this._viewCache = []; + } + /** Apply changes to the DOM. */ + applyChanges( + changes, + viewContainerRef, + itemContextFactory, + itemValueResolver, + itemViewChanged + ) { + // Rearrange the views to put them in the right location. + changes.forEachOperation( + (record, adjustedPreviousIndex, currentIndex) => { + let view; + let operation; + if (record.previousIndex == null) { + // Item added. + const viewArgsFactory = () => + itemContextFactory( + record, + adjustedPreviousIndex, + currentIndex + ); + view = this._insertView( + viewArgsFactory, + currentIndex, + viewContainerRef, + itemValueResolver(record) + ); + operation = view + ? 1 /* _ViewRepeaterOperation.INSERTED */ + : 0 /* _ViewRepeaterOperation.REPLACED */; + } else if (currentIndex == null) { + // Item removed. + this._detachAndCacheView( + adjustedPreviousIndex, + viewContainerRef + ); + operation = 3 /* _ViewRepeaterOperation.REMOVED */; + } else { + // Item moved. + view = this._moveView( + adjustedPreviousIndex, + currentIndex, + viewContainerRef, + itemValueResolver(record) + ); + operation = 2 /* _ViewRepeaterOperation.MOVED */; + } + + if (itemViewChanged) { + itemViewChanged({ + context: view?.context, + operation, + record, + }); + } + } + ); + } + detach() { + for (const view of this._viewCache) { + view.destroy(); + } + this._viewCache = []; + } + /** + * Inserts a view for a new item, either from the cache or by creating a new + * one. Returns `undefined` if the item was inserted into a cached view. + */ + _insertView(viewArgsFactory, currentIndex, viewContainerRef, value) { + const cachedView = this._insertViewFromCache( + currentIndex, + viewContainerRef + ); + if (cachedView) { + cachedView.context.$implicit = value; + return undefined; + } + const viewArgs = viewArgsFactory(); + return viewContainerRef.createEmbeddedView( + viewArgs.templateRef, + viewArgs.context, + viewArgs.index + ); + } + /** Detaches the view at the given index and inserts into the view cache. */ + _detachAndCacheView(index, viewContainerRef) { + const detachedView = viewContainerRef.detach(index); + this._maybeCacheView(detachedView, viewContainerRef); + } + /** Moves view at the previous index to the current index. */ + _moveView( + adjustedPreviousIndex, + currentIndex, + viewContainerRef, + value + ) { + const view = viewContainerRef.get(adjustedPreviousIndex); + viewContainerRef.move(view, currentIndex); + view.context.$implicit = value; + return view; + } + /** + * Cache the given detached view. If the cache is full, the view will be + * destroyed. + */ + _maybeCacheView(view, viewContainerRef) { + if (this._viewCache.length < this.viewCacheSize) { + this._viewCache.push(view); + } else { + const index = viewContainerRef.indexOf(view); + // The host component could remove views from the container outside of + // the view repeater. It's unlikely this will occur, but just in case, + // destroy the view on its own, otherwise destroy it through the + // container to ensure that all the references are removed. + if (index === -1) { + view.destroy(); + } else { + viewContainerRef.remove(index); + } + } + } + /** Inserts a recycled view from the cache at the given index. */ + _insertViewFromCache(index, viewContainerRef) { + const cachedView = this._viewCache.pop(); + if (cachedView) { + viewContainerRef.insert(cachedView, index); + } + return cachedView || null; + } + } + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** + * Class to be used to power selecting one or more options from a list. + */ + class SelectionModel { + /** Selected values. */ + get selected() { + if (!this._selected) { + this._selected = Array.from(this._selection.values()); + } + return this._selected; + } + constructor( + _multiple = false, + initiallySelectedValues, + _emitChanges = true, + compareWith + ) { + this._multiple = _multiple; + this._emitChanges = _emitChanges; + this.compareWith = compareWith; + /** Currently-selected values. */ + this._selection = new Set(); + /** Keeps track of the deselected options that haven't been emitted by the change event. */ + this._deselectedToEmit = []; + /** Keeps track of the selected options that haven't been emitted by the change event. */ + this._selectedToEmit = []; + /** Event emitted when the value has changed. */ + this.changed = new rxjs__WEBPACK_IMPORTED_MODULE_3__.Subject(); + if (initiallySelectedValues && initiallySelectedValues.length) { + if (_multiple) { + initiallySelectedValues.forEach((value) => + this._markSelected(value) + ); + } else { + this._markSelected(initiallySelectedValues[0]); + } + // Clear the array in order to avoid firing the change event for preselected values. + this._selectedToEmit.length = 0; + } + } + /** + * Selects a value or an array of values. + * @param values The values to select + * @return Whether the selection changed as a result of this call + * @breaking-change 16.0.0 make return type boolean + */ + select(...values) { + this._verifyValueAssignment(values); + values.forEach((value) => this._markSelected(value)); + const changed = this._hasQueuedChanges(); + this._emitChangeEvent(); + return changed; + } + /** + * Deselects a value or an array of values. + * @param values The values to deselect + * @return Whether the selection changed as a result of this call + * @breaking-change 16.0.0 make return type boolean + */ + deselect(...values) { + this._verifyValueAssignment(values); + values.forEach((value) => this._unmarkSelected(value)); + const changed = this._hasQueuedChanges(); + this._emitChangeEvent(); + return changed; + } + /** + * Sets the selected values + * @param values The new selected values + * @return Whether the selection changed as a result of this call + * @breaking-change 16.0.0 make return type boolean + */ + setSelection(...values) { + this._verifyValueAssignment(values); + const oldValues = this.selected; + const newSelectedSet = new Set(values); + values.forEach((value) => this._markSelected(value)); + oldValues + .filter((value) => !newSelectedSet.has(value)) + .forEach((value) => this._unmarkSelected(value)); + const changed = this._hasQueuedChanges(); + this._emitChangeEvent(); + return changed; + } + /** + * Toggles a value between selected and deselected. + * @param value The value to toggle + * @return Whether the selection changed as a result of this call + * @breaking-change 16.0.0 make return type boolean + */ + toggle(value) { + return this.isSelected(value) + ? this.deselect(value) + : this.select(value); + } + /** + * Clears all of the selected values. + * @param flushEvent Whether to flush the changes in an event. + * If false, the changes to the selection will be flushed along with the next event. + * @return Whether the selection changed as a result of this call + * @breaking-change 16.0.0 make return type boolean + */ + clear(flushEvent = true) { + this._unmarkAll(); + const changed = this._hasQueuedChanges(); + if (flushEvent) { + this._emitChangeEvent(); + } + return changed; + } + /** + * Determines whether a value is selected. + */ + isSelected(value) { + return this._selection.has(this._getConcreteValue(value)); + } + /** + * Determines whether the model does not have a value. + */ + isEmpty() { + return this._selection.size === 0; + } + /** + * Determines whether the model has a value. + */ + hasValue() { + return !this.isEmpty(); + } + /** + * Sorts the selected values based on a predicate function. + */ + sort(predicate) { + if (this._multiple && this.selected) { + this._selected.sort(predicate); + } + } + /** + * Gets whether multiple values can be selected. + */ + isMultipleSelection() { + return this._multiple; + } + /** Emits a change event and clears the records of selected and deselected values. */ + _emitChangeEvent() { + // Clear the selected values so they can be re-cached. + this._selected = null; + if (this._selectedToEmit.length || this._deselectedToEmit.length) { + this.changed.next({ + source: this, + added: this._selectedToEmit, + removed: this._deselectedToEmit, + }); + this._deselectedToEmit = []; + this._selectedToEmit = []; + } + } + /** Selects a value. */ + _markSelected(value) { + value = this._getConcreteValue(value); + if (!this.isSelected(value)) { + if (!this._multiple) { + this._unmarkAll(); + } + if (!this.isSelected(value)) { + this._selection.add(value); + } + if (this._emitChanges) { + this._selectedToEmit.push(value); + } + } + } + /** Deselects a value. */ + _unmarkSelected(value) { + value = this._getConcreteValue(value); + if (this.isSelected(value)) { + this._selection.delete(value); + if (this._emitChanges) { + this._deselectedToEmit.push(value); + } + } + } + /** Clears out the selected values. */ + _unmarkAll() { + if (!this.isEmpty()) { + this._selection.forEach((value) => this._unmarkSelected(value)); + } + } + /** + * Verifies the value assignment and throws an error if the specified value array is + * including multiple values while the selection model is not supporting multiple values. + */ + _verifyValueAssignment(values) { + if ( + values.length > 1 && + !this._multiple && + (typeof ngDevMode === "undefined" || ngDevMode) + ) { + throw getMultipleValuesInSingleSelectionError(); + } + } + /** Whether there are queued up change to be emitted. */ + _hasQueuedChanges() { + return !!( + this._deselectedToEmit.length || this._selectedToEmit.length + ); + } + /** Returns a value that is comparable to inputValue by applying compareWith function, returns the same inputValue otherwise. */ + _getConcreteValue(inputValue) { + if (!this.compareWith) { + return inputValue; + } else { + for (let selectedValue of this._selection) { + if (this.compareWith(inputValue, selectedValue)) { + return selectedValue; + } + } + return inputValue; + } + } + } + /** + * Returns an error that reports that multiple values are passed into a selection model + * with a single value. + * @docs-private + */ + function getMultipleValuesInSingleSelectionError() { + return Error( + "Cannot pass multiple values into SelectionModel with single-value mode." + ); + } + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** + * Class to coordinate unique selection based on name. + * Intended to be consumed as an Angular service. + * This service is needed because native radio change events are only fired on the item currently + * being selected, and we still need to uncheck the previous selection. + * + * This service does not *store* any IDs and names because they may change at any time, so it is + * less error-prone if they are simply passed through when the events occur. + */ + class UniqueSelectionDispatcher { + constructor() { + this._listeners = []; + } + /** + * Notify other items that selection for the given name has been set. + * @param id ID of the item. + * @param name Name of the item. + */ + notify(id, name) { + for (let listener of this._listeners) { + listener(id, name); + } + } + /** + * Listen for future changes to item selection. + * @return Function used to deregister listener + */ + listen(listener) { + this._listeners.push(listener); + return () => { + this._listeners = this._listeners.filter((registered) => { + return listener !== registered; + }); + }; + } + ngOnDestroy() { + this._listeners = []; + } + } + UniqueSelectionDispatcher.ɵfac = + function UniqueSelectionDispatcher_Factory(t) { + return new (t || UniqueSelectionDispatcher)(); + }; + UniqueSelectionDispatcher.ɵprov = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_4__[ + "ɵɵdefineInjectable" + ]({ + token: UniqueSelectionDispatcher, + factory: UniqueSelectionDispatcher.ɵfac, + providedIn: "root", + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵsetClassMetadata"]( + UniqueSelectionDispatcher, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.Injectable, + args: [ + { + providedIn: "root", + }, + ], + }, + ], + null, + null + ); + })(); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** + * Injection token for {@link _ViewRepeater}. This token is for use by Angular Material only. + * @docs-private + */ + const _VIEW_REPEATER_STRATEGY = + new _angular_core__WEBPACK_IMPORTED_MODULE_4__.InjectionToken( + "_ViewRepeater" + ); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + + /** + * Generated bundle index. Do not edit. + */ + + /***/ + }, + + /***/ 8456: + /*!*********************************************************!*\ + !*** ./node_modules/@angular/cdk/fesm2020/keycodes.mjs ***! + \*********************************************************/ + /***/ ( + __unused_webpack___webpack_module__, + __webpack_exports__, + __webpack_require__ + ) => { + __webpack_require__.r(__webpack_exports__); + /* harmony export */ __webpack_require__.d(__webpack_exports__, { + /* harmony export */ A: () => /* binding */ A, + /* harmony export */ ALT: () => /* binding */ ALT, + /* harmony export */ APOSTROPHE: () => /* binding */ APOSTROPHE, + /* harmony export */ AT_SIGN: () => /* binding */ AT_SIGN, + /* harmony export */ B: () => /* binding */ B, + /* harmony export */ BACKSLASH: () => /* binding */ BACKSLASH, + /* harmony export */ BACKSPACE: () => /* binding */ BACKSPACE, + /* harmony export */ C: () => /* binding */ C, + /* harmony export */ CAPS_LOCK: () => /* binding */ CAPS_LOCK, + /* harmony export */ CLOSE_SQUARE_BRACKET: () => + /* binding */ CLOSE_SQUARE_BRACKET, + /* harmony export */ COMMA: () => /* binding */ COMMA, + /* harmony export */ CONTEXT_MENU: () => /* binding */ CONTEXT_MENU, + /* harmony export */ CONTROL: () => /* binding */ CONTROL, + /* harmony export */ D: () => /* binding */ D, + /* harmony export */ DASH: () => /* binding */ DASH, + /* harmony export */ DELETE: () => /* binding */ DELETE, + /* harmony export */ DOWN_ARROW: () => /* binding */ DOWN_ARROW, + /* harmony export */ E: () => /* binding */ E, + /* harmony export */ EIGHT: () => /* binding */ EIGHT, + /* harmony export */ END: () => /* binding */ END, + /* harmony export */ ENTER: () => /* binding */ ENTER, + /* harmony export */ EQUALS: () => /* binding */ EQUALS, + /* harmony export */ ESCAPE: () => /* binding */ ESCAPE, + /* harmony export */ F: () => /* binding */ F, + /* harmony export */ F1: () => /* binding */ F1, + /* harmony export */ F10: () => /* binding */ F10, + /* harmony export */ F11: () => /* binding */ F11, + /* harmony export */ F12: () => /* binding */ F12, + /* harmony export */ F2: () => /* binding */ F2, + /* harmony export */ F3: () => /* binding */ F3, + /* harmony export */ F4: () => /* binding */ F4, + /* harmony export */ F5: () => /* binding */ F5, + /* harmony export */ F6: () => /* binding */ F6, + /* harmony export */ F7: () => /* binding */ F7, + /* harmony export */ F8: () => /* binding */ F8, + /* harmony export */ F9: () => /* binding */ F9, + /* harmony export */ FF_EQUALS: () => /* binding */ FF_EQUALS, + /* harmony export */ FF_MINUS: () => /* binding */ FF_MINUS, + /* harmony export */ FF_MUTE: () => /* binding */ FF_MUTE, + /* harmony export */ FF_SEMICOLON: () => /* binding */ FF_SEMICOLON, + /* harmony export */ FF_VOLUME_DOWN: () => + /* binding */ FF_VOLUME_DOWN, + /* harmony export */ FF_VOLUME_UP: () => /* binding */ FF_VOLUME_UP, + /* harmony export */ FIRST_MEDIA: () => /* binding */ FIRST_MEDIA, + /* harmony export */ FIVE: () => /* binding */ FIVE, + /* harmony export */ FOUR: () => /* binding */ FOUR, + /* harmony export */ G: () => /* binding */ G, + /* harmony export */ H: () => /* binding */ H, + /* harmony export */ HOME: () => /* binding */ HOME, + /* harmony export */ I: () => /* binding */ I, + /* harmony export */ INSERT: () => /* binding */ INSERT, + /* harmony export */ J: () => /* binding */ J, + /* harmony export */ K: () => /* binding */ K, + /* harmony export */ L: () => /* binding */ L, + /* harmony export */ LAST_MEDIA: () => /* binding */ LAST_MEDIA, + /* harmony export */ LEFT_ARROW: () => /* binding */ LEFT_ARROW, + /* harmony export */ M: () => /* binding */ M, + /* harmony export */ MAC_ENTER: () => /* binding */ MAC_ENTER, + /* harmony export */ MAC_META: () => /* binding */ MAC_META, + /* harmony export */ MAC_WK_CMD_LEFT: () => + /* binding */ MAC_WK_CMD_LEFT, + /* harmony export */ MAC_WK_CMD_RIGHT: () => + /* binding */ MAC_WK_CMD_RIGHT, + /* harmony export */ META: () => /* binding */ META, + /* harmony export */ MUTE: () => /* binding */ MUTE, + /* harmony export */ N: () => /* binding */ N, + /* harmony export */ NINE: () => /* binding */ NINE, + /* harmony export */ NUMPAD_DIVIDE: () => /* binding */ NUMPAD_DIVIDE, + /* harmony export */ NUMPAD_EIGHT: () => /* binding */ NUMPAD_EIGHT, + /* harmony export */ NUMPAD_FIVE: () => /* binding */ NUMPAD_FIVE, + /* harmony export */ NUMPAD_FOUR: () => /* binding */ NUMPAD_FOUR, + /* harmony export */ NUMPAD_MINUS: () => /* binding */ NUMPAD_MINUS, + /* harmony export */ NUMPAD_MULTIPLY: () => + /* binding */ NUMPAD_MULTIPLY, + /* harmony export */ NUMPAD_NINE: () => /* binding */ NUMPAD_NINE, + /* harmony export */ NUMPAD_ONE: () => /* binding */ NUMPAD_ONE, + /* harmony export */ NUMPAD_PERIOD: () => /* binding */ NUMPAD_PERIOD, + /* harmony export */ NUMPAD_PLUS: () => /* binding */ NUMPAD_PLUS, + /* harmony export */ NUMPAD_SEVEN: () => /* binding */ NUMPAD_SEVEN, + /* harmony export */ NUMPAD_SIX: () => /* binding */ NUMPAD_SIX, + /* harmony export */ NUMPAD_THREE: () => /* binding */ NUMPAD_THREE, + /* harmony export */ NUMPAD_TWO: () => /* binding */ NUMPAD_TWO, + /* harmony export */ NUMPAD_ZERO: () => /* binding */ NUMPAD_ZERO, + /* harmony export */ NUM_CENTER: () => /* binding */ NUM_CENTER, + /* harmony export */ NUM_LOCK: () => /* binding */ NUM_LOCK, + /* harmony export */ O: () => /* binding */ O, + /* harmony export */ ONE: () => /* binding */ ONE, + /* harmony export */ OPEN_SQUARE_BRACKET: () => + /* binding */ OPEN_SQUARE_BRACKET, + /* harmony export */ P: () => /* binding */ P, + /* harmony export */ PAGE_DOWN: () => /* binding */ PAGE_DOWN, + /* harmony export */ PAGE_UP: () => /* binding */ PAGE_UP, + /* harmony export */ PAUSE: () => /* binding */ PAUSE, + /* harmony export */ PERIOD: () => /* binding */ PERIOD, + /* harmony export */ PLUS_SIGN: () => /* binding */ PLUS_SIGN, + /* harmony export */ PRINT_SCREEN: () => /* binding */ PRINT_SCREEN, + /* harmony export */ Q: () => /* binding */ Q, + /* harmony export */ QUESTION_MARK: () => /* binding */ QUESTION_MARK, + /* harmony export */ R: () => /* binding */ R, + /* harmony export */ RIGHT_ARROW: () => /* binding */ RIGHT_ARROW, + /* harmony export */ S: () => /* binding */ S, + /* harmony export */ SCROLL_LOCK: () => /* binding */ SCROLL_LOCK, + /* harmony export */ SEMICOLON: () => /* binding */ SEMICOLON, + /* harmony export */ SEVEN: () => /* binding */ SEVEN, + /* harmony export */ SHIFT: () => /* binding */ SHIFT, + /* harmony export */ SINGLE_QUOTE: () => /* binding */ SINGLE_QUOTE, + /* harmony export */ SIX: () => /* binding */ SIX, + /* harmony export */ SLASH: () => /* binding */ SLASH, + /* harmony export */ SPACE: () => /* binding */ SPACE, + /* harmony export */ T: () => /* binding */ T, + /* harmony export */ TAB: () => /* binding */ TAB, + /* harmony export */ THREE: () => /* binding */ THREE, + /* harmony export */ TILDE: () => /* binding */ TILDE, + /* harmony export */ TWO: () => /* binding */ TWO, + /* harmony export */ U: () => /* binding */ U, + /* harmony export */ UP_ARROW: () => /* binding */ UP_ARROW, + /* harmony export */ V: () => /* binding */ V, + /* harmony export */ VOLUME_DOWN: () => /* binding */ VOLUME_DOWN, + /* harmony export */ VOLUME_UP: () => /* binding */ VOLUME_UP, + /* harmony export */ W: () => /* binding */ W, + /* harmony export */ X: () => /* binding */ X, + /* harmony export */ Y: () => /* binding */ Y, + /* harmony export */ Z: () => /* binding */ Z, + /* harmony export */ ZERO: () => /* binding */ ZERO, + /* harmony export */ hasModifierKey: () => + /* binding */ hasModifierKey, + /* harmony export */ + }); + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + const MAC_ENTER = 3; + const BACKSPACE = 8; + const TAB = 9; + const NUM_CENTER = 12; + const ENTER = 13; + const SHIFT = 16; + const CONTROL = 17; + const ALT = 18; + const PAUSE = 19; + const CAPS_LOCK = 20; + const ESCAPE = 27; + const SPACE = 32; + const PAGE_UP = 33; + const PAGE_DOWN = 34; + const END = 35; + const HOME = 36; + const LEFT_ARROW = 37; + const UP_ARROW = 38; + const RIGHT_ARROW = 39; + const DOWN_ARROW = 40; + const PLUS_SIGN = 43; + const PRINT_SCREEN = 44; + const INSERT = 45; + const DELETE = 46; + const ZERO = 48; + const ONE = 49; + const TWO = 50; + const THREE = 51; + const FOUR = 52; + const FIVE = 53; + const SIX = 54; + const SEVEN = 55; + const EIGHT = 56; + const NINE = 57; + const FF_SEMICOLON = 59; // Firefox (Gecko) fires this for semicolon instead of 186 + const FF_EQUALS = 61; // Firefox (Gecko) fires this for equals instead of 187 + const QUESTION_MARK = 63; + const AT_SIGN = 64; + const A = 65; + const B = 66; + const C = 67; + const D = 68; + const E = 69; + const F = 70; + const G = 71; + const H = 72; + const I = 73; + const J = 74; + const K = 75; + const L = 76; + const M = 77; + const N = 78; + const O = 79; + const P = 80; + const Q = 81; + const R = 82; + const S = 83; + const T = 84; + const U = 85; + const V = 86; + const W = 87; + const X = 88; + const Y = 89; + const Z = 90; + const META = 91; // WIN_KEY_LEFT + const MAC_WK_CMD_LEFT = 91; + const MAC_WK_CMD_RIGHT = 93; + const CONTEXT_MENU = 93; + const NUMPAD_ZERO = 96; + const NUMPAD_ONE = 97; + const NUMPAD_TWO = 98; + const NUMPAD_THREE = 99; + const NUMPAD_FOUR = 100; + const NUMPAD_FIVE = 101; + const NUMPAD_SIX = 102; + const NUMPAD_SEVEN = 103; + const NUMPAD_EIGHT = 104; + const NUMPAD_NINE = 105; + const NUMPAD_MULTIPLY = 106; + const NUMPAD_PLUS = 107; + const NUMPAD_MINUS = 109; + const NUMPAD_PERIOD = 110; + const NUMPAD_DIVIDE = 111; + const F1 = 112; + const F2 = 113; + const F3 = 114; + const F4 = 115; + const F5 = 116; + const F6 = 117; + const F7 = 118; + const F8 = 119; + const F9 = 120; + const F10 = 121; + const F11 = 122; + const F12 = 123; + const NUM_LOCK = 144; + const SCROLL_LOCK = 145; + const FIRST_MEDIA = 166; + const FF_MINUS = 173; + const MUTE = 173; // Firefox (Gecko) fires 181 for MUTE + const VOLUME_DOWN = 174; // Firefox (Gecko) fires 182 for VOLUME_DOWN + const VOLUME_UP = 175; // Firefox (Gecko) fires 183 for VOLUME_UP + const FF_MUTE = 181; + const FF_VOLUME_DOWN = 182; + const LAST_MEDIA = 183; + const FF_VOLUME_UP = 183; + const SEMICOLON = 186; // Firefox (Gecko) fires 59 for SEMICOLON + const EQUALS = 187; // Firefox (Gecko) fires 61 for EQUALS + const COMMA = 188; + const DASH = 189; // Firefox (Gecko) fires 173 for DASH/MINUS + const PERIOD = 190; + const SLASH = 191; + const APOSTROPHE = 192; + const TILDE = 192; + const OPEN_SQUARE_BRACKET = 219; + const BACKSLASH = 220; + const CLOSE_SQUARE_BRACKET = 221; + const SINGLE_QUOTE = 222; + const MAC_META = 224; + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** + * Checks whether a modifier key is pressed. + * @param event Event to be checked. + */ + function hasModifierKey(event, ...modifiers) { + if (modifiers.length) { + return modifiers.some((modifier) => event[modifier]); + } + return ( + event.altKey || event.shiftKey || event.ctrlKey || event.metaKey + ); + } + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + + /** + * Generated bundle index. Do not edit. + */ + + /***/ + }, + + /***/ 3278: + /*!*******************************************************!*\ + !*** ./node_modules/@angular/cdk/fesm2020/layout.mjs ***! + \*******************************************************/ + /***/ ( + __unused_webpack___webpack_module__, + __webpack_exports__, + __webpack_require__ + ) => { + __webpack_require__.r(__webpack_exports__); + /* harmony export */ __webpack_require__.d(__webpack_exports__, { + /* harmony export */ BreakpointObserver: () => + /* binding */ BreakpointObserver, + /* harmony export */ Breakpoints: () => /* binding */ Breakpoints, + /* harmony export */ LayoutModule: () => /* binding */ LayoutModule, + /* harmony export */ MediaMatcher: () => /* binding */ MediaMatcher, + /* harmony export */ + }); + /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = + __webpack_require__(/*! @angular/core */ 2560); + /* harmony import */ var _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_3__ = + __webpack_require__(/*! @angular/cdk/coercion */ 8971); + /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = + __webpack_require__(/*! rxjs */ 228); + /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_4__ = + __webpack_require__(/*! rxjs */ 6562); + /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_5__ = + __webpack_require__(/*! rxjs */ 4240); + /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_10__ = + __webpack_require__(/*! rxjs */ 833); + /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_6__ = + __webpack_require__(/*! rxjs/operators */ 9295); + /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_7__ = + __webpack_require__(/*! rxjs/operators */ 7260); + /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_8__ = + __webpack_require__(/*! rxjs/operators */ 1989); + /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_9__ = + __webpack_require__(/*! rxjs/operators */ 635); + /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_11__ = + __webpack_require__(/*! rxjs/operators */ 4874); + /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_12__ = + __webpack_require__(/*! rxjs/operators */ 8951); + /* harmony import */ var _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_1__ = + __webpack_require__(/*! @angular/cdk/platform */ 9107); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + class LayoutModule {} + LayoutModule.ɵfac = function LayoutModule_Factory(t) { + return new (t || LayoutModule)(); + }; + LayoutModule.ɵmod = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineNgModule" + ]({ + type: LayoutModule, + }); + LayoutModule.ɵinj = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineInjector" + ]({}); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + LayoutModule, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgModule, + args: [{}], + }, + ], + null, + null + ); + })(); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** Global registry for all dynamically-created, injected media queries. */ + const mediaQueriesForWebkitCompatibility = new Set(); + /** Style tag that holds all of the dynamically-created media queries. */ + let mediaQueryStyleNode; + /** A utility for calling matchMedia queries. */ + class MediaMatcher { + constructor(_platform) { + this._platform = _platform; + this._matchMedia = + this._platform.isBrowser && window.matchMedia + ? // matchMedia is bound to the window scope intentionally as it is an illegal invocation to + // call it from a different scope. + window.matchMedia.bind(window) + : noopMatchMedia; + } + /** + * Evaluates the given media query and returns the native MediaQueryList from which results + * can be retrieved. + * Confirms the layout engine will trigger for the selector query provided and returns the + * MediaQueryList for the query provided. + */ + matchMedia(query) { + if (this._platform.WEBKIT || this._platform.BLINK) { + createEmptyStyleRule(query); + } + return this._matchMedia(query); + } + } + MediaMatcher.ɵfac = function MediaMatcher_Factory(t) { + return new (t || MediaMatcher)( + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"]( + _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_1__.Platform + ) + ); + }; + MediaMatcher.ɵprov = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineInjectable" + ]({ + token: MediaMatcher, + factory: MediaMatcher.ɵfac, + providedIn: "root", + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + MediaMatcher, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injectable, + args: [ + { + providedIn: "root", + }, + ], + }, + ], + function () { + return [ + { + type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_1__.Platform, + }, + ]; + }, + null + ); + })(); + /** + * Creates an empty stylesheet that is used to work around browser inconsistencies related to + * `matchMedia`. At the time of writing, it handles the following cases: + * 1. On WebKit browsers, a media query has to have at least one rule in order for `matchMedia` + * to fire. We work around it by declaring a dummy stylesheet with a `@media` declaration. + * 2. In some cases Blink browsers will stop firing the `matchMedia` listener if none of the rules + * inside the `@media` match existing elements on the page. We work around it by having one rule + * targeting the `body`. See https://github.com/angular/components/issues/23546. + */ + function createEmptyStyleRule(query) { + if (mediaQueriesForWebkitCompatibility.has(query)) { + return; + } + try { + if (!mediaQueryStyleNode) { + mediaQueryStyleNode = document.createElement("style"); + mediaQueryStyleNode.setAttribute("type", "text/css"); + document.head.appendChild(mediaQueryStyleNode); + } + if (mediaQueryStyleNode.sheet) { + mediaQueryStyleNode.sheet.insertRule( + `@media ${query} {body{ }}`, + 0 + ); + mediaQueriesForWebkitCompatibility.add(query); + } + } catch (e) { + console.error(e); + } + } + /** No-op matchMedia replacement for non-browser platforms. */ + function noopMatchMedia(query) { + // Use `as any` here to avoid adding additional necessary properties for + // the noop matcher. + return { + matches: query === "all" || query === "", + media: query, + addListener: () => {}, + removeListener: () => {}, + }; + } + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** Utility for checking the matching state of @media queries. */ + class BreakpointObserver { + constructor(_mediaMatcher, _zone) { + this._mediaMatcher = _mediaMatcher; + this._zone = _zone; + /** A map of all media queries currently being listened for. */ + this._queries = new Map(); + /** A subject for all other observables to takeUntil based on. */ + this._destroySubject = + new rxjs__WEBPACK_IMPORTED_MODULE_2__.Subject(); + } + /** Completes the active subject, signalling to all other observables to complete. */ + ngOnDestroy() { + this._destroySubject.next(); + this._destroySubject.complete(); + } + /** + * Whether one or more media queries match the current viewport size. + * @param value One or more media queries to check. + * @returns Whether any of the media queries match. + */ + isMatched(value) { + const queries = splitQueries( + (0, + _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_3__.coerceArray)( + value + ) + ); + return queries.some( + (mediaQuery) => this._registerQuery(mediaQuery).mql.matches + ); + } + /** + * Gets an observable of results for the given queries that will emit new results for any changes + * in matching of the given queries. + * @param value One or more media queries to check. + * @returns A stream of matches for the given queries. + */ + observe(value) { + const queries = splitQueries( + (0, + _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_3__.coerceArray)( + value + ) + ); + const observables = queries.map( + (query) => this._registerQuery(query).observable + ); + let stateObservable = (0, + rxjs__WEBPACK_IMPORTED_MODULE_4__.combineLatest)(observables); + // Emit the first state immediately, and then debounce the subsequent emissions. + stateObservable = (0, rxjs__WEBPACK_IMPORTED_MODULE_5__.concat)( + stateObservable.pipe( + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.take)(1) + ), + stateObservable.pipe( + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.skip)(1), + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.debounceTime)(0) + ) + ); + return stateObservable.pipe( + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.map)( + (breakpointStates) => { + const response = { + matches: false, + breakpoints: {}, + }; + breakpointStates.forEach(({ matches, query }) => { + response.matches = response.matches || matches; + response.breakpoints[query] = matches; + }); + return response; + } + ) + ); + } + /** Registers a specific query to be listened for. */ + _registerQuery(query) { + // Only set up a new MediaQueryList if it is not already being listened for. + if (this._queries.has(query)) { + return this._queries.get(query); + } + const mql = this._mediaMatcher.matchMedia(query); + // Create callback for match changes and add it is as a listener. + const queryObservable = + new rxjs__WEBPACK_IMPORTED_MODULE_10__.Observable((observer) => { + // Listener callback methods are wrapped to be placed back in ngZone. Callbacks must be placed + // back into the zone because matchMedia is only included in Zone.js by loading the + // webapis-media-query.js file alongside the zone.js file. Additionally, some browsers do not + // have MediaQueryList inherit from EventTarget, which causes inconsistencies in how Zone.js + // patches it. + const handler = (e) => this._zone.run(() => observer.next(e)); + mql.addListener(handler); + return () => { + mql.removeListener(handler); + }; + }).pipe( + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.startWith)( + mql + ), + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.map)( + ({ matches }) => ({ + query, + matches, + }) + ), + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.takeUntil)( + this._destroySubject + ) + ); + // Add the MediaQueryList to the set of queries. + const output = { + observable: queryObservable, + mql, + }; + this._queries.set(query, output); + return output; + } + } + BreakpointObserver.ɵfac = function BreakpointObserver_Factory(t) { + return new (t || BreakpointObserver)( + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"]( + MediaMatcher + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone + ) + ); + }; + BreakpointObserver.ɵprov = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineInjectable" + ]({ + token: BreakpointObserver, + factory: BreakpointObserver.ɵfac, + providedIn: "root", + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + BreakpointObserver, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injectable, + args: [ + { + providedIn: "root", + }, + ], + }, + ], + function () { + return [ + { + type: MediaMatcher, + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone, + }, + ]; + }, + null + ); + })(); + /** + * Split each query string into separate query strings if two queries are provided as comma + * separated. + */ + function splitQueries(queries) { + return queries + .map((query) => query.split(",")) + .reduce((a1, a2) => a1.concat(a2)) + .map((query) => query.trim()); + } + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + // PascalCase is being used as Breakpoints is used like an enum. + // tslint:disable-next-line:variable-name + const Breakpoints = { + XSmall: "(max-width: 599.98px)", + Small: "(min-width: 600px) and (max-width: 959.98px)", + Medium: "(min-width: 960px) and (max-width: 1279.98px)", + Large: "(min-width: 1280px) and (max-width: 1919.98px)", + XLarge: "(min-width: 1920px)", + Handset: + "(max-width: 599.98px) and (orientation: portrait), " + + "(max-width: 959.98px) and (orientation: landscape)", + Tablet: + "(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), " + + "(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)", + Web: + "(min-width: 840px) and (orientation: portrait), " + + "(min-width: 1280px) and (orientation: landscape)", + HandsetPortrait: "(max-width: 599.98px) and (orientation: portrait)", + TabletPortrait: + "(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)", + WebPortrait: "(min-width: 840px) and (orientation: portrait)", + HandsetLandscape: + "(max-width: 959.98px) and (orientation: landscape)", + TabletLandscape: + "(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)", + WebLandscape: "(min-width: 1280px) and (orientation: landscape)", + }; + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + + /** + * Generated bundle index. Do not edit. + */ + + /***/ + }, + + /***/ 3773: + /*!**********************************************************!*\ + !*** ./node_modules/@angular/cdk/fesm2020/observers.mjs ***! + \**********************************************************/ + /***/ ( + __unused_webpack___webpack_module__, + __webpack_exports__, + __webpack_require__ + ) => { + __webpack_require__.r(__webpack_exports__); + /* harmony export */ __webpack_require__.d(__webpack_exports__, { + /* harmony export */ CdkObserveContent: () => + /* binding */ CdkObserveContent, + /* harmony export */ ContentObserver: () => + /* binding */ ContentObserver, + /* harmony export */ MutationObserverFactory: () => + /* binding */ MutationObserverFactory, + /* harmony export */ ObserversModule: () => + /* binding */ ObserversModule, + /* harmony export */ + }); + /* harmony import */ var _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_1__ = + __webpack_require__(/*! @angular/cdk/coercion */ 8971); + /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = + __webpack_require__(/*! @angular/core */ 2560); + /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = + __webpack_require__(/*! rxjs */ 833); + /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_3__ = + __webpack_require__(/*! rxjs */ 228); + /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_4__ = + __webpack_require__(/*! rxjs/operators */ 1989); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** + * Factory that creates a new MutationObserver and allows us to stub it out in unit tests. + * @docs-private + */ + class MutationObserverFactory { + create(callback) { + return typeof MutationObserver === "undefined" + ? null + : new MutationObserver(callback); + } + } + MutationObserverFactory.ɵfac = function MutationObserverFactory_Factory( + t + ) { + return new (t || MutationObserverFactory)(); + }; + MutationObserverFactory.ɵprov = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineInjectable" + ]({ + token: MutationObserverFactory, + factory: MutationObserverFactory.ɵfac, + providedIn: "root", + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + MutationObserverFactory, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injectable, + args: [ + { + providedIn: "root", + }, + ], + }, + ], + null, + null + ); + })(); + /** An injectable service that allows watching elements for changes to their content. */ + class ContentObserver { + constructor(_mutationObserverFactory) { + this._mutationObserverFactory = _mutationObserverFactory; + /** Keeps track of the existing MutationObservers so they can be reused. */ + this._observedElements = new Map(); + } + ngOnDestroy() { + this._observedElements.forEach((_, element) => + this._cleanupObserver(element) + ); + } + observe(elementOrRef) { + const element = (0, + _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_1__.coerceElement)( + elementOrRef + ); + return new rxjs__WEBPACK_IMPORTED_MODULE_2__.Observable( + (observer) => { + const stream = this._observeElement(element); + const subscription = stream.subscribe(observer); + return () => { + subscription.unsubscribe(); + this._unobserveElement(element); + }; + } + ); + } + /** + * Observes the given element by using the existing MutationObserver if available, or creating a + * new one if not. + */ + _observeElement(element) { + if (!this._observedElements.has(element)) { + const stream = new rxjs__WEBPACK_IMPORTED_MODULE_3__.Subject(); + const observer = this._mutationObserverFactory.create( + (mutations) => stream.next(mutations) + ); + if (observer) { + observer.observe(element, { + characterData: true, + childList: true, + subtree: true, + }); + } + this._observedElements.set(element, { + observer, + stream, + count: 1, + }); + } else { + this._observedElements.get(element).count++; + } + return this._observedElements.get(element).stream; + } + /** + * Un-observes the given element and cleans up the underlying MutationObserver if nobody else is + * observing this element. + */ + _unobserveElement(element) { + if (this._observedElements.has(element)) { + this._observedElements.get(element).count--; + if (!this._observedElements.get(element).count) { + this._cleanupObserver(element); + } + } + } + /** Clean up the underlying MutationObserver for the specified element. */ + _cleanupObserver(element) { + if (this._observedElements.has(element)) { + const { observer, stream } = this._observedElements.get(element); + if (observer) { + observer.disconnect(); + } + stream.complete(); + this._observedElements.delete(element); + } + } + } + ContentObserver.ɵfac = function ContentObserver_Factory(t) { + return new (t || ContentObserver)( + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"]( + MutationObserverFactory + ) + ); + }; + ContentObserver.ɵprov = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineInjectable" + ]({ + token: ContentObserver, + factory: ContentObserver.ɵfac, + providedIn: "root", + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + ContentObserver, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injectable, + args: [ + { + providedIn: "root", + }, + ], + }, + ], + function () { + return [ + { + type: MutationObserverFactory, + }, + ]; + }, + null + ); + })(); + /** + * Directive that triggers a callback whenever the content of + * its associated element has changed. + */ + class CdkObserveContent { + /** + * Whether observing content is disabled. This option can be used + * to disconnect the underlying MutationObserver until it is needed. + */ + get disabled() { + return this._disabled; + } + set disabled(value) { + this._disabled = (0, + _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_1__.coerceBooleanProperty)( + value + ); + this._disabled ? this._unsubscribe() : this._subscribe(); + } + /** Debounce interval for emitting the changes. */ + get debounce() { + return this._debounce; + } + set debounce(value) { + this._debounce = (0, + _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_1__.coerceNumberProperty)( + value + ); + this._subscribe(); + } + constructor(_contentObserver, _elementRef, _ngZone) { + this._contentObserver = _contentObserver; + this._elementRef = _elementRef; + this._ngZone = _ngZone; + /** Event emitted for each change in the element's content. */ + this.event = + new _angular_core__WEBPACK_IMPORTED_MODULE_0__.EventEmitter(); + this._disabled = false; + this._currentSubscription = null; + } + ngAfterContentInit() { + if (!this._currentSubscription && !this.disabled) { + this._subscribe(); + } + } + ngOnDestroy() { + this._unsubscribe(); + } + _subscribe() { + this._unsubscribe(); + const stream = this._contentObserver.observe(this._elementRef); + // TODO(mmalerba): We shouldn't be emitting on this @Output() outside the zone. + // Consider brining it back inside the zone next time we're making breaking changes. + // Bringing it back inside can cause things like infinite change detection loops and changed + // after checked errors if people's code isn't handling it properly. + this._ngZone.runOutsideAngular(() => { + this._currentSubscription = ( + this.debounce + ? stream.pipe( + (0, + rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.debounceTime)( + this.debounce + ) + ) + : stream + ).subscribe(this.event); + }); + } + _unsubscribe() { + this._currentSubscription?.unsubscribe(); + } + } + CdkObserveContent.ɵfac = function CdkObserveContent_Factory(t) { + return new (t || CdkObserveContent)( + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + ContentObserver + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone + ) + ); + }; + CdkObserveContent.ɵdir = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineDirective" + ]({ + type: CdkObserveContent, + selectors: [["", "cdkObserveContent", ""]], + inputs: { + disabled: ["cdkObserveContentDisabled", "disabled"], + debounce: "debounce", + }, + outputs: { + event: "cdkObserveContent", + }, + exportAs: ["cdkObserveContent"], + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + CdkObserveContent, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive, + args: [ + { + selector: "[cdkObserveContent]", + exportAs: "cdkObserveContent", + }, + ], + }, + ], + function () { + return [ + { + type: ContentObserver, + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef, + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone, + }, + ]; + }, + { + event: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Output, + args: ["cdkObserveContent"], + }, + ], + disabled: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input, + args: ["cdkObserveContentDisabled"], + }, + ], + debounce: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input, + }, + ], + } + ); + })(); + class ObserversModule {} + ObserversModule.ɵfac = function ObserversModule_Factory(t) { + return new (t || ObserversModule)(); + }; + ObserversModule.ɵmod = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineNgModule" + ]({ + type: ObserversModule, + }); + ObserversModule.ɵinj = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineInjector" + ]({ + providers: [MutationObserverFactory], + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + ObserversModule, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgModule, + args: [ + { + exports: [CdkObserveContent], + declarations: [CdkObserveContent], + providers: [MutationObserverFactory], + }, + ], + }, + ], + null, + null + ); + })(); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + + /** + * Generated bundle index. Do not edit. + */ + + /***/ + }, + + /***/ 5895: + /*!********************************************************!*\ + !*** ./node_modules/@angular/cdk/fesm2020/overlay.mjs ***! + \********************************************************/ + /***/ ( + __unused_webpack___webpack_module__, + __webpack_exports__, + __webpack_require__ + ) => { + __webpack_require__.r(__webpack_exports__); + /* harmony export */ __webpack_require__.d(__webpack_exports__, { + /* harmony export */ BlockScrollStrategy: () => + /* binding */ BlockScrollStrategy, + /* harmony export */ CdkConnectedOverlay: () => + /* binding */ CdkConnectedOverlay, + /* harmony export */ CdkOverlayOrigin: () => + /* binding */ CdkOverlayOrigin, + /* harmony export */ CdkScrollable: () => + /* reexport safe */ _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_0__.CdkScrollable, + /* harmony export */ CloseScrollStrategy: () => + /* binding */ CloseScrollStrategy, + /* harmony export */ ConnectedOverlayPositionChange: () => + /* binding */ ConnectedOverlayPositionChange, + /* harmony export */ ConnectionPositionPair: () => + /* binding */ ConnectionPositionPair, + /* harmony export */ FlexibleConnectedPositionStrategy: () => + /* binding */ FlexibleConnectedPositionStrategy, + /* harmony export */ FullscreenOverlayContainer: () => + /* binding */ FullscreenOverlayContainer, + /* harmony export */ GlobalPositionStrategy: () => + /* binding */ GlobalPositionStrategy, + /* harmony export */ NoopScrollStrategy: () => + /* binding */ NoopScrollStrategy, + /* harmony export */ Overlay: () => /* binding */ Overlay, + /* harmony export */ OverlayConfig: () => /* binding */ OverlayConfig, + /* harmony export */ OverlayContainer: () => + /* binding */ OverlayContainer, + /* harmony export */ OverlayKeyboardDispatcher: () => + /* binding */ OverlayKeyboardDispatcher, + /* harmony export */ OverlayModule: () => /* binding */ OverlayModule, + /* harmony export */ OverlayOutsideClickDispatcher: () => + /* binding */ OverlayOutsideClickDispatcher, + /* harmony export */ OverlayPositionBuilder: () => + /* binding */ OverlayPositionBuilder, + /* harmony export */ OverlayRef: () => /* binding */ OverlayRef, + /* harmony export */ RepositionScrollStrategy: () => + /* binding */ RepositionScrollStrategy, + /* harmony export */ STANDARD_DROPDOWN_ADJACENT_POSITIONS: () => + /* binding */ STANDARD_DROPDOWN_ADJACENT_POSITIONS, + /* harmony export */ STANDARD_DROPDOWN_BELOW_POSITIONS: () => + /* binding */ STANDARD_DROPDOWN_BELOW_POSITIONS, + /* harmony export */ ScrollDispatcher: () => + /* reexport safe */ _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_0__.ScrollDispatcher, + /* harmony export */ ScrollStrategyOptions: () => + /* binding */ ScrollStrategyOptions, + /* harmony export */ ScrollingVisibility: () => + /* binding */ ScrollingVisibility, + /* harmony export */ ViewportRuler: () => + /* reexport safe */ _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_0__.ViewportRuler, + /* harmony export */ validateHorizontalPosition: () => + /* binding */ validateHorizontalPosition, + /* harmony export */ validateVerticalPosition: () => + /* binding */ validateVerticalPosition, + /* harmony export */ + }); + /* harmony import */ var _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_0__ = + __webpack_require__(/*! @angular/cdk/scrolling */ 6328); + /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_4__ = + __webpack_require__(/*! @angular/common */ 4666); + /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = + __webpack_require__(/*! @angular/core */ 2560); + /* harmony import */ var _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__ = + __webpack_require__(/*! @angular/cdk/coercion */ 8971); + /* harmony import */ var _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_1__ = + __webpack_require__(/*! @angular/cdk/platform */ 9107); + /* harmony import */ var _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_11__ = + __webpack_require__(/*! @angular/cdk/bidi */ 2867); + /* harmony import */ var _angular_cdk_portal__WEBPACK_IMPORTED_MODULE_10__ = + __webpack_require__(/*! @angular/cdk/portal */ 7520); + /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_5__ = + __webpack_require__(/*! rxjs */ 228); + /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_6__ = + __webpack_require__(/*! rxjs */ 6078); + /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_9__ = + __webpack_require__(/*! rxjs */ 6646); + /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_7__ = + __webpack_require__(/*! rxjs/operators */ 9295); + /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_8__ = + __webpack_require__(/*! rxjs/operators */ 8951); + /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_13__ = + __webpack_require__(/*! rxjs/operators */ 2566); + /* harmony import */ var _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_12__ = + __webpack_require__(/*! @angular/cdk/keycodes */ 8456); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + const scrollBehaviorSupported = (0, + _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_1__.supportsScrollBehavior)(); + /** + * Strategy that will prevent the user from scrolling while the overlay is visible. + */ + class BlockScrollStrategy { + constructor(_viewportRuler, document) { + this._viewportRuler = _viewportRuler; + this._previousHTMLStyles = { + top: "", + left: "", + }; + this._isEnabled = false; + this._document = document; + } + /** Attaches this scroll strategy to an overlay. */ + attach() {} + /** Blocks page-level scroll while the attached overlay is open. */ + enable() { + if (this._canBeEnabled()) { + const root = this._document.documentElement; + this._previousScrollPosition = + this._viewportRuler.getViewportScrollPosition(); + // Cache the previous inline styles in case the user had set them. + this._previousHTMLStyles.left = root.style.left || ""; + this._previousHTMLStyles.top = root.style.top || ""; + // Note: we're using the `html` node, instead of the `body`, because the `body` may + // have the user agent margin, whereas the `html` is guaranteed not to have one. + root.style.left = (0, + _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__.coerceCssPixelValue)( + -this._previousScrollPosition.left + ); + root.style.top = (0, + _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__.coerceCssPixelValue)( + -this._previousScrollPosition.top + ); + root.classList.add("cdk-global-scrollblock"); + this._isEnabled = true; + } + } + /** Unblocks page-level scroll while the attached overlay is open. */ + disable() { + if (this._isEnabled) { + const html = this._document.documentElement; + const body = this._document.body; + const htmlStyle = html.style; + const bodyStyle = body.style; + const previousHtmlScrollBehavior = htmlStyle.scrollBehavior || ""; + const previousBodyScrollBehavior = bodyStyle.scrollBehavior || ""; + this._isEnabled = false; + htmlStyle.left = this._previousHTMLStyles.left; + htmlStyle.top = this._previousHTMLStyles.top; + html.classList.remove("cdk-global-scrollblock"); + // Disable user-defined smooth scrolling temporarily while we restore the scroll position. + // See https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-behavior + // Note that we don't mutate the property if the browser doesn't support `scroll-behavior`, + // because it can throw off feature detections in `supportsScrollBehavior` which + // checks for `'scrollBehavior' in documentElement.style`. + if (scrollBehaviorSupported) { + htmlStyle.scrollBehavior = bodyStyle.scrollBehavior = "auto"; + } + window.scroll( + this._previousScrollPosition.left, + this._previousScrollPosition.top + ); + if (scrollBehaviorSupported) { + htmlStyle.scrollBehavior = previousHtmlScrollBehavior; + bodyStyle.scrollBehavior = previousBodyScrollBehavior; + } + } + } + _canBeEnabled() { + // Since the scroll strategies can't be singletons, we have to use a global CSS class + // (`cdk-global-scrollblock`) to make sure that we don't try to disable global + // scrolling multiple times. + const html = this._document.documentElement; + if ( + html.classList.contains("cdk-global-scrollblock") || + this._isEnabled + ) { + return false; + } + const body = this._document.body; + const viewport = this._viewportRuler.getViewportSize(); + return ( + body.scrollHeight > viewport.height || + body.scrollWidth > viewport.width + ); + } + } + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** + * Returns an error to be thrown when attempting to attach an already-attached scroll strategy. + */ + function getMatScrollStrategyAlreadyAttachedError() { + return Error(`Scroll strategy has already been attached.`); + } + + /** + * Strategy that will close the overlay as soon as the user starts scrolling. + */ + class CloseScrollStrategy { + constructor(_scrollDispatcher, _ngZone, _viewportRuler, _config) { + this._scrollDispatcher = _scrollDispatcher; + this._ngZone = _ngZone; + this._viewportRuler = _viewportRuler; + this._config = _config; + this._scrollSubscription = null; + /** Detaches the overlay ref and disables the scroll strategy. */ + this._detach = () => { + this.disable(); + if (this._overlayRef.hasAttached()) { + this._ngZone.run(() => this._overlayRef.detach()); + } + }; + } + /** Attaches this scroll strategy to an overlay. */ + attach(overlayRef) { + if ( + this._overlayRef && + (typeof ngDevMode === "undefined" || ngDevMode) + ) { + throw getMatScrollStrategyAlreadyAttachedError(); + } + this._overlayRef = overlayRef; + } + /** Enables the closing of the attached overlay on scroll. */ + enable() { + if (this._scrollSubscription) { + return; + } + const stream = this._scrollDispatcher.scrolled(0); + if ( + this._config && + this._config.threshold && + this._config.threshold > 1 + ) { + this._initialScrollPosition = + this._viewportRuler.getViewportScrollPosition().top; + this._scrollSubscription = stream.subscribe(() => { + const scrollPosition = + this._viewportRuler.getViewportScrollPosition().top; + if ( + Math.abs(scrollPosition - this._initialScrollPosition) > + this._config.threshold + ) { + this._detach(); + } else { + this._overlayRef.updatePosition(); + } + }); + } else { + this._scrollSubscription = stream.subscribe(this._detach); + } + } + /** Disables the closing the attached overlay on scroll. */ + disable() { + if (this._scrollSubscription) { + this._scrollSubscription.unsubscribe(); + this._scrollSubscription = null; + } + } + detach() { + this.disable(); + this._overlayRef = null; + } + } + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** Scroll strategy that doesn't do anything. */ + class NoopScrollStrategy { + /** Does nothing, as this scroll strategy is a no-op. */ + enable() {} + /** Does nothing, as this scroll strategy is a no-op. */ + disable() {} + /** Does nothing, as this scroll strategy is a no-op. */ + attach() {} + } + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** + * Gets whether an element is scrolled outside of view by any of its parent scrolling containers. + * @param element Dimensions of the element (from getBoundingClientRect) + * @param scrollContainers Dimensions of element's scrolling containers (from getBoundingClientRect) + * @returns Whether the element is scrolled out of view + * @docs-private + */ + function isElementScrolledOutsideView(element, scrollContainers) { + return scrollContainers.some((containerBounds) => { + const outsideAbove = element.bottom < containerBounds.top; + const outsideBelow = element.top > containerBounds.bottom; + const outsideLeft = element.right < containerBounds.left; + const outsideRight = element.left > containerBounds.right; + return outsideAbove || outsideBelow || outsideLeft || outsideRight; + }); + } + /** + * Gets whether an element is clipped by any of its scrolling containers. + * @param element Dimensions of the element (from getBoundingClientRect) + * @param scrollContainers Dimensions of element's scrolling containers (from getBoundingClientRect) + * @returns Whether the element is clipped + * @docs-private + */ + function isElementClippedByScrolling(element, scrollContainers) { + return scrollContainers.some((scrollContainerRect) => { + const clippedAbove = element.top < scrollContainerRect.top; + const clippedBelow = element.bottom > scrollContainerRect.bottom; + const clippedLeft = element.left < scrollContainerRect.left; + const clippedRight = element.right > scrollContainerRect.right; + return clippedAbove || clippedBelow || clippedLeft || clippedRight; + }); + } + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** + * Strategy that will update the element position as the user is scrolling. + */ + class RepositionScrollStrategy { + constructor(_scrollDispatcher, _viewportRuler, _ngZone, _config) { + this._scrollDispatcher = _scrollDispatcher; + this._viewportRuler = _viewportRuler; + this._ngZone = _ngZone; + this._config = _config; + this._scrollSubscription = null; + } + /** Attaches this scroll strategy to an overlay. */ + attach(overlayRef) { + if ( + this._overlayRef && + (typeof ngDevMode === "undefined" || ngDevMode) + ) { + throw getMatScrollStrategyAlreadyAttachedError(); + } + this._overlayRef = overlayRef; + } + /** Enables repositioning of the attached overlay on scroll. */ + enable() { + if (!this._scrollSubscription) { + const throttle = this._config ? this._config.scrollThrottle : 0; + this._scrollSubscription = this._scrollDispatcher + .scrolled(throttle) + .subscribe(() => { + this._overlayRef.updatePosition(); + // TODO(crisbeto): make `close` on by default once all components can handle it. + if (this._config && this._config.autoClose) { + const overlayRect = + this._overlayRef.overlayElement.getBoundingClientRect(); + const { width, height } = + this._viewportRuler.getViewportSize(); + // TODO(crisbeto): include all ancestor scroll containers here once + // we have a way of exposing the trigger element to the scroll strategy. + const parentRects = [ + { + width, + height, + bottom: height, + right: width, + top: 0, + left: 0, + }, + ]; + if ( + isElementScrolledOutsideView(overlayRect, parentRects) + ) { + this.disable(); + this._ngZone.run(() => this._overlayRef.detach()); + } + } + }); + } + } + /** Disables repositioning of the attached overlay on scroll. */ + disable() { + if (this._scrollSubscription) { + this._scrollSubscription.unsubscribe(); + this._scrollSubscription = null; + } + } + detach() { + this.disable(); + this._overlayRef = null; + } + } + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** + * Options for how an overlay will handle scrolling. + * + * Users can provide a custom value for `ScrollStrategyOptions` to replace the default + * behaviors. This class primarily acts as a factory for ScrollStrategy instances. + */ + class ScrollStrategyOptions { + constructor(_scrollDispatcher, _viewportRuler, _ngZone, document) { + this._scrollDispatcher = _scrollDispatcher; + this._viewportRuler = _viewportRuler; + this._ngZone = _ngZone; + /** Do nothing on scroll. */ + this.noop = () => new NoopScrollStrategy(); + /** + * Close the overlay as soon as the user scrolls. + * @param config Configuration to be used inside the scroll strategy. + */ + this.close = (config) => + new CloseScrollStrategy( + this._scrollDispatcher, + this._ngZone, + this._viewportRuler, + config + ); + /** Block scrolling. */ + this.block = () => + new BlockScrollStrategy(this._viewportRuler, this._document); + /** + * Update the overlay's position on scroll. + * @param config Configuration to be used inside the scroll strategy. + * Allows debouncing the reposition calls. + */ + this.reposition = (config) => + new RepositionScrollStrategy( + this._scrollDispatcher, + this._viewportRuler, + this._ngZone, + config + ); + this._document = document; + } + } + ScrollStrategyOptions.ɵfac = function ScrollStrategyOptions_Factory(t) { + return new (t || ScrollStrategyOptions)( + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵinject"]( + _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_0__.ScrollDispatcher + ), + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵinject"]( + _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_0__.ViewportRuler + ), + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵinject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_3__.NgZone + ), + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵinject"]( + _angular_common__WEBPACK_IMPORTED_MODULE_4__.DOCUMENT + ) + ); + }; + ScrollStrategyOptions.ɵprov = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_3__[ + "ɵɵdefineInjectable" + ]({ + token: ScrollStrategyOptions, + factory: ScrollStrategyOptions.ɵfac, + providedIn: "root", + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"]( + ScrollStrategyOptions, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_3__.Injectable, + args: [ + { + providedIn: "root", + }, + ], + }, + ], + function () { + return [ + { + type: _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_0__.ScrollDispatcher, + }, + { + type: _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_0__.ViewportRuler, + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_3__.NgZone, + }, + { + type: undefined, + decorators: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_3__.Inject, + args: [ + _angular_common__WEBPACK_IMPORTED_MODULE_4__.DOCUMENT, + ], + }, + ], + }, + ]; + }, + null + ); + })(); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** Initial configuration used when creating an overlay. */ + class OverlayConfig { + constructor(config) { + /** Strategy to be used when handling scroll events while the overlay is open. */ + this.scrollStrategy = new NoopScrollStrategy(); + /** Custom class to add to the overlay pane. */ + this.panelClass = ""; + /** Whether the overlay has a backdrop. */ + this.hasBackdrop = false; + /** Custom class to add to the backdrop */ + this.backdropClass = "cdk-overlay-dark-backdrop"; + /** + * Whether the overlay should be disposed of when the user goes backwards/forwards in history. + * Note that this usually doesn't include clicking on links (unless the user is using + * the `HashLocationStrategy`). + */ + this.disposeOnNavigation = false; + if (config) { + // Use `Iterable` instead of `Array` because TypeScript, as of 3.6.3, + // loses the array generic type in the `for of`. But we *also* have to use `Array` because + // typescript won't iterate over an `Iterable` unless you compile with `--downlevelIteration` + const configKeys = Object.keys(config); + for (const key of configKeys) { + if (config[key] !== undefined) { + // TypeScript, as of version 3.5, sees the left-hand-side of this expression + // as "I don't know *which* key this is, so the only valid value is the intersection + // of all the possible values." In this case, that happens to be `undefined`. TypeScript + // is not smart enough to see that the right-hand-side is actually an access of the same + // exact type with the same exact key, meaning that the value type must be identical. + // So we use `any` to work around this. + this[key] = config[key]; + } + } + } + } + } + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** The points of the origin element and the overlay element to connect. */ + class ConnectionPositionPair { + constructor( + origin, + overlay /** Offset along the X axis. */, + offsetX /** Offset along the Y axis. */, + offsetY /** Class(es) to be applied to the panel while this position is active. */, + panelClass + ) { + this.offsetX = offsetX; + this.offsetY = offsetY; + this.panelClass = panelClass; + this.originX = origin.originX; + this.originY = origin.originY; + this.overlayX = overlay.overlayX; + this.overlayY = overlay.overlayY; + } + } + /** + * Set of properties regarding the position of the origin and overlay relative to the viewport + * with respect to the containing Scrollable elements. + * + * The overlay and origin are clipped if any part of their bounding client rectangle exceeds the + * bounds of any one of the strategy's Scrollable's bounding client rectangle. + * + * The overlay and origin are outside view if there is no overlap between their bounding client + * rectangle and any one of the strategy's Scrollable's bounding client rectangle. + * + * ----------- ----------- + * | outside | | clipped | + * | view | -------------------------- + * | | | | | | + * ---------- | ----------- | + * -------------------------- | | + * | | | Scrollable | + * | | | | + * | | -------------------------- + * | Scrollable | + * | | + * -------------------------- + * + * @docs-private + */ + class ScrollingVisibility {} + /** The change event emitted by the strategy when a fallback position is used. */ + class ConnectedOverlayPositionChange { + constructor /** The position used as a result of this change. */( + connectionPair /** @docs-private */, + scrollableViewProperties + ) { + this.connectionPair = connectionPair; + this.scrollableViewProperties = scrollableViewProperties; + } + } + /** + * Validates whether a vertical position property matches the expected values. + * @param property Name of the property being validated. + * @param value Value of the property being validated. + * @docs-private + */ + function validateVerticalPosition(property, value) { + if (value !== "top" && value !== "bottom" && value !== "center") { + throw Error( + `ConnectedPosition: Invalid ${property} "${value}". ` + + `Expected "top", "bottom" or "center".` + ); + } + } + /** + * Validates whether a horizontal position property matches the expected values. + * @param property Name of the property being validated. + * @param value Value of the property being validated. + * @docs-private + */ + function validateHorizontalPosition(property, value) { + if (value !== "start" && value !== "end" && value !== "center") { + throw Error( + `ConnectedPosition: Invalid ${property} "${value}". ` + + `Expected "start", "end" or "center".` + ); + } + } + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** + * Service for dispatching events that land on the body to appropriate overlay ref, + * if any. It maintains a list of attached overlays to determine best suited overlay based + * on event target and order of overlay opens. + */ + class BaseOverlayDispatcher { + constructor(document) { + /** Currently attached overlays in the order they were attached. */ + this._attachedOverlays = []; + this._document = document; + } + ngOnDestroy() { + this.detach(); + } + /** Add a new overlay to the list of attached overlay refs. */ + add(overlayRef) { + // Ensure that we don't get the same overlay multiple times. + this.remove(overlayRef); + this._attachedOverlays.push(overlayRef); + } + /** Remove an overlay from the list of attached overlay refs. */ + remove(overlayRef) { + const index = this._attachedOverlays.indexOf(overlayRef); + if (index > -1) { + this._attachedOverlays.splice(index, 1); + } + // Remove the global listener once there are no more overlays. + if (this._attachedOverlays.length === 0) { + this.detach(); + } + } + } + BaseOverlayDispatcher.ɵfac = function BaseOverlayDispatcher_Factory(t) { + return new (t || BaseOverlayDispatcher)( + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵinject"]( + _angular_common__WEBPACK_IMPORTED_MODULE_4__.DOCUMENT + ) + ); + }; + BaseOverlayDispatcher.ɵprov = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_3__[ + "ɵɵdefineInjectable" + ]({ + token: BaseOverlayDispatcher, + factory: BaseOverlayDispatcher.ɵfac, + providedIn: "root", + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"]( + BaseOverlayDispatcher, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_3__.Injectable, + args: [ + { + providedIn: "root", + }, + ], + }, + ], + function () { + return [ + { + type: undefined, + decorators: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_3__.Inject, + args: [ + _angular_common__WEBPACK_IMPORTED_MODULE_4__.DOCUMENT, + ], + }, + ], + }, + ]; + }, + null + ); + })(); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** + * Service for dispatching keyboard events that land on the body to appropriate overlay ref, + * if any. It maintains a list of attached overlays to determine best suited overlay based + * on event target and order of overlay opens. + */ + class OverlayKeyboardDispatcher extends BaseOverlayDispatcher { + constructor( + document /** @breaking-change 14.0.0 _ngZone will be required. */, + _ngZone + ) { + super(document); + this._ngZone = _ngZone; + /** Keyboard event listener that will be attached to the body. */ + this._keydownListener = (event) => { + const overlays = this._attachedOverlays; + for (let i = overlays.length - 1; i > -1; i--) { + // Dispatch the keydown event to the top overlay which has subscribers to its keydown events. + // We want to target the most recent overlay, rather than trying to match where the event came + // from, because some components might open an overlay, but keep focus on a trigger element + // (e.g. for select and autocomplete). We skip overlays without keydown event subscriptions, + // because we don't want overlays that don't handle keyboard events to block the ones below + // them that do. + if (overlays[i]._keydownEvents.observers.length > 0) { + const keydownEvents = overlays[i]._keydownEvents; + /** @breaking-change 14.0.0 _ngZone will be required. */ + if (this._ngZone) { + this._ngZone.run(() => keydownEvents.next(event)); + } else { + keydownEvents.next(event); + } + break; + } + } + }; + } + /** Add a new overlay to the list of attached overlay refs. */ + add(overlayRef) { + super.add(overlayRef); + // Lazily start dispatcher once first overlay is added + if (!this._isAttached) { + /** @breaking-change 14.0.0 _ngZone will be required. */ + if (this._ngZone) { + this._ngZone.runOutsideAngular(() => + this._document.body.addEventListener( + "keydown", + this._keydownListener + ) + ); + } else { + this._document.body.addEventListener( + "keydown", + this._keydownListener + ); + } + this._isAttached = true; + } + } + /** Detaches the global keyboard event listener. */ + detach() { + if (this._isAttached) { + this._document.body.removeEventListener( + "keydown", + this._keydownListener + ); + this._isAttached = false; + } + } + } + OverlayKeyboardDispatcher.ɵfac = + function OverlayKeyboardDispatcher_Factory(t) { + return new (t || OverlayKeyboardDispatcher)( + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵinject"]( + _angular_common__WEBPACK_IMPORTED_MODULE_4__.DOCUMENT + ), + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵinject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_3__.NgZone, + 8 + ) + ); + }; + OverlayKeyboardDispatcher.ɵprov = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_3__[ + "ɵɵdefineInjectable" + ]({ + token: OverlayKeyboardDispatcher, + factory: OverlayKeyboardDispatcher.ɵfac, + providedIn: "root", + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"]( + OverlayKeyboardDispatcher, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_3__.Injectable, + args: [ + { + providedIn: "root", + }, + ], + }, + ], + function () { + return [ + { + type: undefined, + decorators: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_3__.Inject, + args: [ + _angular_common__WEBPACK_IMPORTED_MODULE_4__.DOCUMENT, + ], + }, + ], + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_3__.NgZone, + decorators: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_3__.Optional, + }, + ], + }, + ]; + }, + null + ); + })(); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** + * Service for dispatching mouse click events that land on the body to appropriate overlay ref, + * if any. It maintains a list of attached overlays to determine best suited overlay based + * on event target and order of overlay opens. + */ + class OverlayOutsideClickDispatcher extends BaseOverlayDispatcher { + constructor( + document, + _platform /** @breaking-change 14.0.0 _ngZone will be required. */, + _ngZone + ) { + super(document); + this._platform = _platform; + this._ngZone = _ngZone; + this._cursorStyleIsSet = false; + /** Store pointerdown event target to track origin of click. */ + this._pointerDownListener = (event) => { + this._pointerDownEventTarget = (0, + _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_1__._getEventTarget)( + event + ); + }; + /** Click event listener that will be attached to the body propagate phase. */ + this._clickListener = (event) => { + const target = (0, + _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_1__._getEventTarget)( + event + ); + // In case of a click event, we want to check the origin of the click + // (e.g. in case where a user starts a click inside the overlay and + // releases the click outside of it). + // This is done by using the event target of the preceding pointerdown event. + // Every click event caused by a pointer device has a preceding pointerdown + // event, unless the click was programmatically triggered (e.g. in a unit test). + const origin = + event.type === "click" && this._pointerDownEventTarget + ? this._pointerDownEventTarget + : target; + // Reset the stored pointerdown event target, to avoid having it interfere + // in subsequent events. + this._pointerDownEventTarget = null; + // We copy the array because the original may be modified asynchronously if the + // outsidePointerEvents listener decides to detach overlays resulting in index errors inside + // the for loop. + const overlays = this._attachedOverlays.slice(); + // Dispatch the mouse event to the top overlay which has subscribers to its mouse events. + // We want to target all overlays for which the click could be considered as outside click. + // As soon as we reach an overlay for which the click is not outside click we break off + // the loop. + for (let i = overlays.length - 1; i > -1; i--) { + const overlayRef = overlays[i]; + if ( + overlayRef._outsidePointerEvents.observers.length < 1 || + !overlayRef.hasAttached() + ) { + continue; + } + // If it's a click inside the overlay, just break - we should do nothing + // If it's an outside click (both origin and target of the click) dispatch the mouse event, + // and proceed with the next overlay + if ( + overlayRef.overlayElement.contains(target) || + overlayRef.overlayElement.contains(origin) + ) { + break; + } + const outsidePointerEvents = overlayRef._outsidePointerEvents; + /** @breaking-change 14.0.0 _ngZone will be required. */ + if (this._ngZone) { + this._ngZone.run(() => outsidePointerEvents.next(event)); + } else { + outsidePointerEvents.next(event); + } + } + }; + } + /** Add a new overlay to the list of attached overlay refs. */ + add(overlayRef) { + super.add(overlayRef); + // Safari on iOS does not generate click events for non-interactive + // elements. However, we want to receive a click for any element outside + // the overlay. We can force a "clickable" state by setting + // `cursor: pointer` on the document body. See: + // https://developer.mozilla.org/en-US/docs/Web/API/Element/click_event#Safari_Mobile + // https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariWebContent/HandlingEvents/HandlingEvents.html + if (!this._isAttached) { + const body = this._document.body; + /** @breaking-change 14.0.0 _ngZone will be required. */ + if (this._ngZone) { + this._ngZone.runOutsideAngular(() => + this._addEventListeners(body) + ); + } else { + this._addEventListeners(body); + } + // click event is not fired on iOS. To make element "clickable" we are + // setting the cursor to pointer + if (this._platform.IOS && !this._cursorStyleIsSet) { + this._cursorOriginalValue = body.style.cursor; + body.style.cursor = "pointer"; + this._cursorStyleIsSet = true; + } + this._isAttached = true; + } + } + /** Detaches the global keyboard event listener. */ + detach() { + if (this._isAttached) { + const body = this._document.body; + body.removeEventListener( + "pointerdown", + this._pointerDownListener, + true + ); + body.removeEventListener("click", this._clickListener, true); + body.removeEventListener("auxclick", this._clickListener, true); + body.removeEventListener( + "contextmenu", + this._clickListener, + true + ); + if (this._platform.IOS && this._cursorStyleIsSet) { + body.style.cursor = this._cursorOriginalValue; + this._cursorStyleIsSet = false; + } + this._isAttached = false; + } + } + _addEventListeners(body) { + body.addEventListener( + "pointerdown", + this._pointerDownListener, + true + ); + body.addEventListener("click", this._clickListener, true); + body.addEventListener("auxclick", this._clickListener, true); + body.addEventListener("contextmenu", this._clickListener, true); + } + } + OverlayOutsideClickDispatcher.ɵfac = + function OverlayOutsideClickDispatcher_Factory(t) { + return new (t || OverlayOutsideClickDispatcher)( + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵinject"]( + _angular_common__WEBPACK_IMPORTED_MODULE_4__.DOCUMENT + ), + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵinject"]( + _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_1__.Platform + ), + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵinject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_3__.NgZone, + 8 + ) + ); + }; + OverlayOutsideClickDispatcher.ɵprov = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_3__[ + "ɵɵdefineInjectable" + ]({ + token: OverlayOutsideClickDispatcher, + factory: OverlayOutsideClickDispatcher.ɵfac, + providedIn: "root", + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"]( + OverlayOutsideClickDispatcher, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_3__.Injectable, + args: [ + { + providedIn: "root", + }, + ], + }, + ], + function () { + return [ + { + type: undefined, + decorators: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_3__.Inject, + args: [ + _angular_common__WEBPACK_IMPORTED_MODULE_4__.DOCUMENT, + ], + }, + ], + }, + { + type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_1__.Platform, + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_3__.NgZone, + decorators: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_3__.Optional, + }, + ], + }, + ]; + }, + null + ); + })(); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** Container inside which all overlays will render. */ + class OverlayContainer { + constructor(document, _platform) { + this._platform = _platform; + this._document = document; + } + ngOnDestroy() { + this._containerElement?.remove(); + } + /** + * This method returns the overlay container element. It will lazily + * create the element the first time it is called to facilitate using + * the container in non-browser environments. + * @returns the container element + */ + getContainerElement() { + if (!this._containerElement) { + this._createContainer(); + } + return this._containerElement; + } + /** + * Create the overlay container element, which is simply a div + * with the 'cdk-overlay-container' class on the document body. + */ + _createContainer() { + const containerClass = "cdk-overlay-container"; + // TODO(crisbeto): remove the testing check once we have an overlay testing + // module or Angular starts tearing down the testing `NgModule`. See: + // https://github.com/angular/angular/issues/18831 + if ( + this._platform.isBrowser || + (0, + _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_1__._isTestEnvironment)() + ) { + const oppositePlatformContainers = + this._document.querySelectorAll( + `.${containerClass}[platform="server"], ` + + `.${containerClass}[platform="test"]` + ); + // Remove any old containers from the opposite platform. + // This can happen when transitioning from the server to the client. + for (let i = 0; i < oppositePlatformContainers.length; i++) { + oppositePlatformContainers[i].remove(); + } + } + const container = this._document.createElement("div"); + container.classList.add(containerClass); + // A long time ago we kept adding new overlay containers whenever a new app was instantiated, + // but at some point we added logic which clears the duplicate ones in order to avoid leaks. + // The new logic was a little too aggressive since it was breaking some legitimate use cases. + // To mitigate the problem we made it so that only containers from a different platform are + // cleared, but the side-effect was that people started depending on the overly-aggressive + // logic to clean up their tests for them. Until we can introduce an overlay-specific testing + // module which does the cleanup, we try to detect that we're in a test environment and we + // always clear the container. See #17006. + // TODO(crisbeto): remove the test environment check once we have an overlay testing module. + if ( + (0, + _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_1__._isTestEnvironment)() + ) { + container.setAttribute("platform", "test"); + } else if (!this._platform.isBrowser) { + container.setAttribute("platform", "server"); + } + this._document.body.appendChild(container); + this._containerElement = container; + } + } + OverlayContainer.ɵfac = function OverlayContainer_Factory(t) { + return new (t || OverlayContainer)( + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵinject"]( + _angular_common__WEBPACK_IMPORTED_MODULE_4__.DOCUMENT + ), + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵinject"]( + _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_1__.Platform + ) + ); + }; + OverlayContainer.ɵprov = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_3__[ + "ɵɵdefineInjectable" + ]({ + token: OverlayContainer, + factory: OverlayContainer.ɵfac, + providedIn: "root", + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"]( + OverlayContainer, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_3__.Injectable, + args: [ + { + providedIn: "root", + }, + ], + }, + ], + function () { + return [ + { + type: undefined, + decorators: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_3__.Inject, + args: [ + _angular_common__WEBPACK_IMPORTED_MODULE_4__.DOCUMENT, + ], + }, + ], + }, + { + type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_1__.Platform, + }, + ]; + }, + null + ); + })(); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** + * Reference to an overlay that has been created with the Overlay service. + * Used to manipulate or dispose of said overlay. + */ + class OverlayRef { + constructor( + _portalOutlet, + _host, + _pane, + _config, + _ngZone, + _keyboardDispatcher, + _document, + _location, + _outsideClickDispatcher, + _animationsDisabled = false + ) { + this._portalOutlet = _portalOutlet; + this._host = _host; + this._pane = _pane; + this._config = _config; + this._ngZone = _ngZone; + this._keyboardDispatcher = _keyboardDispatcher; + this._document = _document; + this._location = _location; + this._outsideClickDispatcher = _outsideClickDispatcher; + this._animationsDisabled = _animationsDisabled; + this._backdropElement = null; + this._backdropClick = + new rxjs__WEBPACK_IMPORTED_MODULE_5__.Subject(); + this._attachments = new rxjs__WEBPACK_IMPORTED_MODULE_5__.Subject(); + this._detachments = new rxjs__WEBPACK_IMPORTED_MODULE_5__.Subject(); + this._locationChanges = + rxjs__WEBPACK_IMPORTED_MODULE_6__.Subscription.EMPTY; + this._backdropClickHandler = (event) => + this._backdropClick.next(event); + this._backdropTransitionendHandler = (event) => { + this._disposeBackdrop(event.target); + }; + /** Stream of keydown events dispatched to this overlay. */ + this._keydownEvents = + new rxjs__WEBPACK_IMPORTED_MODULE_5__.Subject(); + /** Stream of mouse outside events dispatched to this overlay. */ + this._outsidePointerEvents = + new rxjs__WEBPACK_IMPORTED_MODULE_5__.Subject(); + if (_config.scrollStrategy) { + this._scrollStrategy = _config.scrollStrategy; + this._scrollStrategy.attach(this); + } + this._positionStrategy = _config.positionStrategy; + } + /** The overlay's HTML element */ + get overlayElement() { + return this._pane; + } + /** The overlay's backdrop HTML element. */ + get backdropElement() { + return this._backdropElement; + } + /** + * Wrapper around the panel element. Can be used for advanced + * positioning where a wrapper with specific styling is + * required around the overlay pane. + */ + get hostElement() { + return this._host; + } + /** + * Attaches content, given via a Portal, to the overlay. + * If the overlay is configured to have a backdrop, it will be created. + * + * @param portal Portal instance to which to attach the overlay. + * @returns The portal attachment result. + */ + attach(portal) { + // Insert the host into the DOM before attaching the portal, otherwise + // the animations module will skip animations on repeat attachments. + if (!this._host.parentElement && this._previousHostParent) { + this._previousHostParent.appendChild(this._host); + } + const attachResult = this._portalOutlet.attach(portal); + if (this._positionStrategy) { + this._positionStrategy.attach(this); + } + this._updateStackingOrder(); + this._updateElementSize(); + this._updateElementDirection(); + if (this._scrollStrategy) { + this._scrollStrategy.enable(); + } + // Update the position once the zone is stable so that the overlay will be fully rendered + // before attempting to position it, as the position may depend on the size of the rendered + // content. + this._ngZone.onStable + .pipe((0, rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.take)(1)) + .subscribe(() => { + // The overlay could've been detached before the zone has stabilized. + if (this.hasAttached()) { + this.updatePosition(); + } + }); + // Enable pointer events for the overlay pane element. + this._togglePointerEvents(true); + if (this._config.hasBackdrop) { + this._attachBackdrop(); + } + if (this._config.panelClass) { + this._toggleClasses(this._pane, this._config.panelClass, true); + } + // Only emit the `attachments` event once all other setup is done. + this._attachments.next(); + // Track this overlay by the keyboard dispatcher + this._keyboardDispatcher.add(this); + if (this._config.disposeOnNavigation) { + this._locationChanges = this._location.subscribe(() => + this.dispose() + ); + } + this._outsideClickDispatcher.add(this); + // TODO(crisbeto): the null check is here, because the portal outlet returns `any`. + // We should be guaranteed for the result to be `ComponentRef | EmbeddedViewRef`, but + // `instanceof EmbeddedViewRef` doesn't appear to work at the moment. + if (typeof attachResult?.onDestroy === "function") { + // In most cases we control the portal and we know when it is being detached so that + // we can finish the disposal process. The exception is if the user passes in a custom + // `ViewContainerRef` that isn't destroyed through the overlay API. Note that we use + // `detach` here instead of `dispose`, because we don't know if the user intends to + // reattach the overlay at a later point. It also has the advantage of waiting for animations. + attachResult.onDestroy(() => { + if (this.hasAttached()) { + // We have to delay the `detach` call, because detaching immediately prevents + // other destroy hooks from running. This is likely a framework bug similar to + // https://github.com/angular/angular/issues/46119 + this._ngZone.runOutsideAngular(() => + Promise.resolve().then(() => this.detach()) + ); + } + }); + } + return attachResult; + } + /** + * Detaches an overlay from a portal. + * @returns The portal detachment result. + */ + detach() { + if (!this.hasAttached()) { + return; + } + this.detachBackdrop(); + // When the overlay is detached, the pane element should disable pointer events. + // This is necessary because otherwise the pane element will cover the page and disable + // pointer events therefore. Depends on the position strategy and the applied pane boundaries. + this._togglePointerEvents(false); + if (this._positionStrategy && this._positionStrategy.detach) { + this._positionStrategy.detach(); + } + if (this._scrollStrategy) { + this._scrollStrategy.disable(); + } + const detachmentResult = this._portalOutlet.detach(); + // Only emit after everything is detached. + this._detachments.next(); + // Remove this overlay from keyboard dispatcher tracking. + this._keyboardDispatcher.remove(this); + // Keeping the host element in the DOM can cause scroll jank, because it still gets + // rendered, even though it's transparent and unclickable which is why we remove it. + this._detachContentWhenStable(); + this._locationChanges.unsubscribe(); + this._outsideClickDispatcher.remove(this); + return detachmentResult; + } + /** Cleans up the overlay from the DOM. */ + dispose() { + const isAttached = this.hasAttached(); + if (this._positionStrategy) { + this._positionStrategy.dispose(); + } + this._disposeScrollStrategy(); + this._disposeBackdrop(this._backdropElement); + this._locationChanges.unsubscribe(); + this._keyboardDispatcher.remove(this); + this._portalOutlet.dispose(); + this._attachments.complete(); + this._backdropClick.complete(); + this._keydownEvents.complete(); + this._outsidePointerEvents.complete(); + this._outsideClickDispatcher.remove(this); + this._host?.remove(); + this._previousHostParent = this._pane = this._host = null; + if (isAttached) { + this._detachments.next(); + } + this._detachments.complete(); + } + /** Whether the overlay has attached content. */ + hasAttached() { + return this._portalOutlet.hasAttached(); + } + /** Gets an observable that emits when the backdrop has been clicked. */ + backdropClick() { + return this._backdropClick; + } + /** Gets an observable that emits when the overlay has been attached. */ + attachments() { + return this._attachments; + } + /** Gets an observable that emits when the overlay has been detached. */ + detachments() { + return this._detachments; + } + /** Gets an observable of keydown events targeted to this overlay. */ + keydownEvents() { + return this._keydownEvents; + } + /** Gets an observable of pointer events targeted outside this overlay. */ + outsidePointerEvents() { + return this._outsidePointerEvents; + } + /** Gets the current overlay configuration, which is immutable. */ + getConfig() { + return this._config; + } + /** Updates the position of the overlay based on the position strategy. */ + updatePosition() { + if (this._positionStrategy) { + this._positionStrategy.apply(); + } + } + /** Switches to a new position strategy and updates the overlay position. */ + updatePositionStrategy(strategy) { + if (strategy === this._positionStrategy) { + return; + } + if (this._positionStrategy) { + this._positionStrategy.dispose(); + } + this._positionStrategy = strategy; + if (this.hasAttached()) { + strategy.attach(this); + this.updatePosition(); + } + } + /** Update the size properties of the overlay. */ + updateSize(sizeConfig) { + this._config = { + ...this._config, + ...sizeConfig, + }; + this._updateElementSize(); + } + /** Sets the LTR/RTL direction for the overlay. */ + setDirection(dir) { + this._config = { + ...this._config, + direction: dir, + }; + this._updateElementDirection(); + } + /** Add a CSS class or an array of classes to the overlay pane. */ + addPanelClass(classes) { + if (this._pane) { + this._toggleClasses(this._pane, classes, true); + } + } + /** Remove a CSS class or an array of classes from the overlay pane. */ + removePanelClass(classes) { + if (this._pane) { + this._toggleClasses(this._pane, classes, false); + } + } + /** + * Returns the layout direction of the overlay panel. + */ + getDirection() { + const direction = this._config.direction; + if (!direction) { + return "ltr"; + } + return typeof direction === "string" ? direction : direction.value; + } + /** Switches to a new scroll strategy. */ + updateScrollStrategy(strategy) { + if (strategy === this._scrollStrategy) { + return; + } + this._disposeScrollStrategy(); + this._scrollStrategy = strategy; + if (this.hasAttached()) { + strategy.attach(this); + strategy.enable(); + } + } + /** Updates the text direction of the overlay panel. */ + _updateElementDirection() { + this._host.setAttribute("dir", this.getDirection()); + } + /** Updates the size of the overlay element based on the overlay config. */ + _updateElementSize() { + if (!this._pane) { + return; + } + const style = this._pane.style; + style.width = (0, + _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__.coerceCssPixelValue)( + this._config.width + ); + style.height = (0, + _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__.coerceCssPixelValue)( + this._config.height + ); + style.minWidth = (0, + _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__.coerceCssPixelValue)( + this._config.minWidth + ); + style.minHeight = (0, + _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__.coerceCssPixelValue)( + this._config.minHeight + ); + style.maxWidth = (0, + _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__.coerceCssPixelValue)( + this._config.maxWidth + ); + style.maxHeight = (0, + _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__.coerceCssPixelValue)( + this._config.maxHeight + ); + } + /** Toggles the pointer events for the overlay pane element. */ + _togglePointerEvents(enablePointer) { + this._pane.style.pointerEvents = enablePointer ? "" : "none"; + } + /** Attaches a backdrop for this overlay. */ + _attachBackdrop() { + const showingClass = "cdk-overlay-backdrop-showing"; + this._backdropElement = this._document.createElement("div"); + this._backdropElement.classList.add("cdk-overlay-backdrop"); + if (this._animationsDisabled) { + this._backdropElement.classList.add( + "cdk-overlay-backdrop-noop-animation" + ); + } + if (this._config.backdropClass) { + this._toggleClasses( + this._backdropElement, + this._config.backdropClass, + true + ); + } + // Insert the backdrop before the pane in the DOM order, + // in order to handle stacked overlays properly. + this._host.parentElement.insertBefore( + this._backdropElement, + this._host + ); + // Forward backdrop clicks such that the consumer of the overlay can perform whatever + // action desired when such a click occurs (usually closing the overlay). + this._backdropElement.addEventListener( + "click", + this._backdropClickHandler + ); + // Add class to fade-in the backdrop after one frame. + if ( + !this._animationsDisabled && + typeof requestAnimationFrame !== "undefined" + ) { + this._ngZone.runOutsideAngular(() => { + requestAnimationFrame(() => { + if (this._backdropElement) { + this._backdropElement.classList.add(showingClass); + } + }); + }); + } else { + this._backdropElement.classList.add(showingClass); + } + } + /** + * Updates the stacking order of the element, moving it to the top if necessary. + * This is required in cases where one overlay was detached, while another one, + * that should be behind it, was destroyed. The next time both of them are opened, + * the stacking will be wrong, because the detached element's pane will still be + * in its original DOM position. + */ + _updateStackingOrder() { + if (this._host.nextSibling) { + this._host.parentNode.appendChild(this._host); + } + } + /** Detaches the backdrop (if any) associated with the overlay. */ + detachBackdrop() { + const backdropToDetach = this._backdropElement; + if (!backdropToDetach) { + return; + } + if (this._animationsDisabled) { + this._disposeBackdrop(backdropToDetach); + return; + } + backdropToDetach.classList.remove("cdk-overlay-backdrop-showing"); + this._ngZone.runOutsideAngular(() => { + backdropToDetach.addEventListener( + "transitionend", + this._backdropTransitionendHandler + ); + }); + // If the backdrop doesn't have a transition, the `transitionend` event won't fire. + // In this case we make it unclickable and we try to remove it after a delay. + backdropToDetach.style.pointerEvents = "none"; + // Run this outside the Angular zone because there's nothing that Angular cares about. + // If it were to run inside the Angular zone, every test that used Overlay would have to be + // either async or fakeAsync. + this._backdropTimeout = this._ngZone.runOutsideAngular(() => + setTimeout(() => { + this._disposeBackdrop(backdropToDetach); + }, 500) + ); + } + /** Toggles a single CSS class or an array of classes on an element. */ + _toggleClasses(element, cssClasses, isAdd) { + const classes = (0, + _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__.coerceArray)( + cssClasses || [] + ).filter((c) => !!c); + if (classes.length) { + isAdd + ? element.classList.add(...classes) + : element.classList.remove(...classes); + } + } + /** Detaches the overlay content next time the zone stabilizes. */ + _detachContentWhenStable() { + // Normally we wouldn't have to explicitly run this outside the `NgZone`, however + // if the consumer is using `zone-patch-rxjs`, the `Subscription.unsubscribe` call will + // be patched to run inside the zone, which will throw us into an infinite loop. + this._ngZone.runOutsideAngular(() => { + // We can't remove the host here immediately, because the overlay pane's content + // might still be animating. This stream helps us avoid interrupting the animation + // by waiting for the pane to become empty. + const subscription = this._ngZone.onStable + .pipe( + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.takeUntil)( + (0, rxjs__WEBPACK_IMPORTED_MODULE_9__.merge)( + this._attachments, + this._detachments + ) + ) + ) + .subscribe(() => { + // Needs a couple of checks for the pane and host, because + // they may have been removed by the time the zone stabilizes. + if ( + !this._pane || + !this._host || + this._pane.children.length === 0 + ) { + if (this._pane && this._config.panelClass) { + this._toggleClasses( + this._pane, + this._config.panelClass, + false + ); + } + if (this._host && this._host.parentElement) { + this._previousHostParent = this._host.parentElement; + this._host.remove(); + } + subscription.unsubscribe(); + } + }); + }); + } + /** Disposes of a scroll strategy. */ + _disposeScrollStrategy() { + const scrollStrategy = this._scrollStrategy; + if (scrollStrategy) { + scrollStrategy.disable(); + if (scrollStrategy.detach) { + scrollStrategy.detach(); + } + } + } + /** Removes a backdrop element from the DOM. */ + _disposeBackdrop(backdrop) { + if (backdrop) { + backdrop.removeEventListener("click", this._backdropClickHandler); + backdrop.removeEventListener( + "transitionend", + this._backdropTransitionendHandler + ); + backdrop.remove(); + // It is possible that a new portal has been attached to this overlay since we started + // removing the backdrop. If that is the case, only clear the backdrop reference if it + // is still the same instance that we started to remove. + if (this._backdropElement === backdrop) { + this._backdropElement = null; + } + } + if (this._backdropTimeout) { + clearTimeout(this._backdropTimeout); + this._backdropTimeout = undefined; + } + } + } + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + // TODO: refactor clipping detection into a separate thing (part of scrolling module) + // TODO: doesn't handle both flexible width and height when it has to scroll along both axis. + /** Class to be added to the overlay bounding box. */ + const boundingBoxClass = "cdk-overlay-connected-position-bounding-box"; + /** Regex used to split a string on its CSS units. */ + const cssUnitPattern = /([A-Za-z%]+)$/; + /** + * A strategy for positioning overlays. Using this strategy, an overlay is given an + * implicit position relative some origin element. The relative position is defined in terms of + * a point on the origin element that is connected to a point on the overlay element. For example, + * a basic dropdown is connecting the bottom-left corner of the origin to the top-left corner + * of the overlay. + */ + class FlexibleConnectedPositionStrategy { + /** Ordered list of preferred positions, from most to least desirable. */ + get positions() { + return this._preferredPositions; + } + constructor( + connectedTo, + _viewportRuler, + _document, + _platform, + _overlayContainer + ) { + this._viewportRuler = _viewportRuler; + this._document = _document; + this._platform = _platform; + this._overlayContainer = _overlayContainer; + /** Last size used for the bounding box. Used to avoid resizing the overlay after open. */ + this._lastBoundingBoxSize = { + width: 0, + height: 0, + }; + /** Whether the overlay was pushed in a previous positioning. */ + this._isPushed = false; + /** Whether the overlay can be pushed on-screen on the initial open. */ + this._canPush = true; + /** Whether the overlay can grow via flexible width/height after the initial open. */ + this._growAfterOpen = false; + /** Whether the overlay's width and height can be constrained to fit within the viewport. */ + this._hasFlexibleDimensions = true; + /** Whether the overlay position is locked. */ + this._positionLocked = false; + /** Amount of space that must be maintained between the overlay and the edge of the viewport. */ + this._viewportMargin = 0; + /** The Scrollable containers used to check scrollable view properties on position change. */ + this._scrollables = []; + /** Ordered list of preferred positions, from most to least desirable. */ + this._preferredPositions = []; + /** Subject that emits whenever the position changes. */ + this._positionChanges = + new rxjs__WEBPACK_IMPORTED_MODULE_5__.Subject(); + /** Subscription to viewport size changes. */ + this._resizeSubscription = + rxjs__WEBPACK_IMPORTED_MODULE_6__.Subscription.EMPTY; + /** Default offset for the overlay along the x axis. */ + this._offsetX = 0; + /** Default offset for the overlay along the y axis. */ + this._offsetY = 0; + /** Keeps track of the CSS classes that the position strategy has applied on the overlay panel. */ + this._appliedPanelClasses = []; + /** Observable sequence of position changes. */ + this.positionChanges = this._positionChanges; + this.setOrigin(connectedTo); + } + /** Attaches this position strategy to an overlay. */ + attach(overlayRef) { + if ( + this._overlayRef && + overlayRef !== this._overlayRef && + (typeof ngDevMode === "undefined" || ngDevMode) + ) { + throw Error( + "This position strategy is already attached to an overlay" + ); + } + this._validatePositions(); + overlayRef.hostElement.classList.add(boundingBoxClass); + this._overlayRef = overlayRef; + this._boundingBox = overlayRef.hostElement; + this._pane = overlayRef.overlayElement; + this._isDisposed = false; + this._isInitialRender = true; + this._lastPosition = null; + this._resizeSubscription.unsubscribe(); + this._resizeSubscription = this._viewportRuler + .change() + .subscribe(() => { + // When the window is resized, we want to trigger the next reposition as if it + // was an initial render, in order for the strategy to pick a new optimal position, + // otherwise position locking will cause it to stay at the old one. + this._isInitialRender = true; + this.apply(); + }); + } + /** + * Updates the position of the overlay element, using whichever preferred position relative + * to the origin best fits on-screen. + * + * The selection of a position goes as follows: + * - If any positions fit completely within the viewport as-is, + * choose the first position that does so. + * - If flexible dimensions are enabled and at least one satisfies the given minimum width/height, + * choose the position with the greatest available size modified by the positions' weight. + * - If pushing is enabled, take the position that went off-screen the least and push it + * on-screen. + * - If none of the previous criteria were met, use the position that goes off-screen the least. + * @docs-private + */ + apply() { + // We shouldn't do anything if the strategy was disposed or we're on the server. + if (this._isDisposed || !this._platform.isBrowser) { + return; + } + // If the position has been applied already (e.g. when the overlay was opened) and the + // consumer opted into locking in the position, re-use the old position, in order to + // prevent the overlay from jumping around. + if ( + !this._isInitialRender && + this._positionLocked && + this._lastPosition + ) { + this.reapplyLastPosition(); + return; + } + this._clearPanelClasses(); + this._resetOverlayElementStyles(); + this._resetBoundingBoxStyles(); + // We need the bounding rects for the origin, the overlay and the container to determine how to position + // the overlay relative to the origin. + // We use the viewport rect to determine whether a position would go off-screen. + this._viewportRect = this._getNarrowedViewportRect(); + this._originRect = this._getOriginRect(); + this._overlayRect = this._pane.getBoundingClientRect(); + this._containerRect = this._overlayContainer + .getContainerElement() + .getBoundingClientRect(); + const originRect = this._originRect; + const overlayRect = this._overlayRect; + const viewportRect = this._viewportRect; + const containerRect = this._containerRect; + // Positions where the overlay will fit with flexible dimensions. + const flexibleFits = []; + // Fallback if none of the preferred positions fit within the viewport. + let fallback; + // Go through each of the preferred positions looking for a good fit. + // If a good fit is found, it will be applied immediately. + for (let pos of this._preferredPositions) { + // Get the exact (x, y) coordinate for the point-of-origin on the origin element. + let originPoint = this._getOriginPoint( + originRect, + containerRect, + pos + ); + // From that point-of-origin, get the exact (x, y) coordinate for the top-left corner of the + // overlay in this position. We use the top-left corner for calculations and later translate + // this into an appropriate (top, left, bottom, right) style. + let overlayPoint = this._getOverlayPoint( + originPoint, + overlayRect, + pos + ); + // Calculate how well the overlay would fit into the viewport with this point. + let overlayFit = this._getOverlayFit( + overlayPoint, + overlayRect, + viewportRect, + pos + ); + // If the overlay, without any further work, fits into the viewport, use this position. + if (overlayFit.isCompletelyWithinViewport) { + this._isPushed = false; + this._applyPosition(pos, originPoint); + return; + } + // If the overlay has flexible dimensions, we can use this position + // so long as there's enough space for the minimum dimensions. + if ( + this._canFitWithFlexibleDimensions( + overlayFit, + overlayPoint, + viewportRect + ) + ) { + // Save positions where the overlay will fit with flexible dimensions. We will use these + // if none of the positions fit *without* flexible dimensions. + flexibleFits.push({ + position: pos, + origin: originPoint, + overlayRect, + boundingBoxRect: this._calculateBoundingBoxRect( + originPoint, + pos + ), + }); + continue; + } + // If the current preferred position does not fit on the screen, remember the position + // if it has more visible area on-screen than we've seen and move onto the next preferred + // position. + if ( + !fallback || + fallback.overlayFit.visibleArea < overlayFit.visibleArea + ) { + fallback = { + overlayFit, + overlayPoint, + originPoint, + position: pos, + overlayRect, + }; + } + } + // If there are any positions where the overlay would fit with flexible dimensions, choose the + // one that has the greatest area available modified by the position's weight + if (flexibleFits.length) { + let bestFit = null; + let bestScore = -1; + for (const fit of flexibleFits) { + const score = + fit.boundingBoxRect.width * + fit.boundingBoxRect.height * + (fit.position.weight || 1); + if (score > bestScore) { + bestScore = score; + bestFit = fit; + } + } + this._isPushed = false; + this._applyPosition(bestFit.position, bestFit.origin); + return; + } + // When none of the preferred positions fit within the viewport, take the position + // that went off-screen the least and attempt to push it on-screen. + if (this._canPush) { + // TODO(jelbourn): after pushing, the opening "direction" of the overlay might not make sense. + this._isPushed = true; + this._applyPosition(fallback.position, fallback.originPoint); + return; + } + // All options for getting the overlay within the viewport have been exhausted, so go with the + // position that went off-screen the least. + this._applyPosition(fallback.position, fallback.originPoint); + } + detach() { + this._clearPanelClasses(); + this._lastPosition = null; + this._previousPushAmount = null; + this._resizeSubscription.unsubscribe(); + } + /** Cleanup after the element gets destroyed. */ + dispose() { + if (this._isDisposed) { + return; + } + // We can't use `_resetBoundingBoxStyles` here, because it resets + // some properties to zero, rather than removing them. + if (this._boundingBox) { + extendStyles(this._boundingBox.style, { + top: "", + left: "", + right: "", + bottom: "", + height: "", + width: "", + alignItems: "", + justifyContent: "", + }); + } + if (this._pane) { + this._resetOverlayElementStyles(); + } + if (this._overlayRef) { + this._overlayRef.hostElement.classList.remove(boundingBoxClass); + } + this.detach(); + this._positionChanges.complete(); + this._overlayRef = this._boundingBox = null; + this._isDisposed = true; + } + /** + * This re-aligns the overlay element with the trigger in its last calculated position, + * even if a position higher in the "preferred positions" list would now fit. This + * allows one to re-align the panel without changing the orientation of the panel. + */ + reapplyLastPosition() { + if (this._isDisposed || !this._platform.isBrowser) { + return; + } + const lastPosition = this._lastPosition; + if (lastPosition) { + this._originRect = this._getOriginRect(); + this._overlayRect = this._pane.getBoundingClientRect(); + this._viewportRect = this._getNarrowedViewportRect(); + this._containerRect = this._overlayContainer + .getContainerElement() + .getBoundingClientRect(); + const originPoint = this._getOriginPoint( + this._originRect, + this._containerRect, + lastPosition + ); + this._applyPosition(lastPosition, originPoint); + } else { + this.apply(); + } + } + /** + * Sets the list of Scrollable containers that host the origin element so that + * on reposition we can evaluate if it or the overlay has been clipped or outside view. Every + * Scrollable must be an ancestor element of the strategy's origin element. + */ + withScrollableContainers(scrollables) { + this._scrollables = scrollables; + return this; + } + /** + * Adds new preferred positions. + * @param positions List of positions options for this overlay. + */ + withPositions(positions) { + this._preferredPositions = positions; + // If the last calculated position object isn't part of the positions anymore, clear + // it in order to avoid it being picked up if the consumer tries to re-apply. + if (positions.indexOf(this._lastPosition) === -1) { + this._lastPosition = null; + } + this._validatePositions(); + return this; + } + /** + * Sets a minimum distance the overlay may be positioned to the edge of the viewport. + * @param margin Required margin between the overlay and the viewport edge in pixels. + */ + withViewportMargin(margin) { + this._viewportMargin = margin; + return this; + } + /** Sets whether the overlay's width and height can be constrained to fit within the viewport. */ + withFlexibleDimensions(flexibleDimensions = true) { + this._hasFlexibleDimensions = flexibleDimensions; + return this; + } + /** Sets whether the overlay can grow after the initial open via flexible width/height. */ + withGrowAfterOpen(growAfterOpen = true) { + this._growAfterOpen = growAfterOpen; + return this; + } + /** Sets whether the overlay can be pushed on-screen if none of the provided positions fit. */ + withPush(canPush = true) { + this._canPush = canPush; + return this; + } + /** + * Sets whether the overlay's position should be locked in after it is positioned + * initially. When an overlay is locked in, it won't attempt to reposition itself + * when the position is re-applied (e.g. when the user scrolls away). + * @param isLocked Whether the overlay should locked in. + */ + withLockedPosition(isLocked = true) { + this._positionLocked = isLocked; + return this; + } + /** + * Sets the origin, relative to which to position the overlay. + * Using an element origin is useful for building components that need to be positioned + * relatively to a trigger (e.g. dropdown menus or tooltips), whereas using a point can be + * used for cases like contextual menus which open relative to the user's pointer. + * @param origin Reference to the new origin. + */ + setOrigin(origin) { + this._origin = origin; + return this; + } + /** + * Sets the default offset for the overlay's connection point on the x-axis. + * @param offset New offset in the X axis. + */ + withDefaultOffsetX(offset) { + this._offsetX = offset; + return this; + } + /** + * Sets the default offset for the overlay's connection point on the y-axis. + * @param offset New offset in the Y axis. + */ + withDefaultOffsetY(offset) { + this._offsetY = offset; + return this; + } + /** + * Configures that the position strategy should set a `transform-origin` on some elements + * inside the overlay, depending on the current position that is being applied. This is + * useful for the cases where the origin of an animation can change depending on the + * alignment of the overlay. + * @param selector CSS selector that will be used to find the target + * elements onto which to set the transform origin. + */ + withTransformOriginOn(selector) { + this._transformOriginSelector = selector; + return this; + } + /** + * Gets the (x, y) coordinate of a connection point on the origin based on a relative position. + */ + _getOriginPoint(originRect, containerRect, pos) { + let x; + if (pos.originX == "center") { + // Note: when centering we should always use the `left` + // offset, otherwise the position will be wrong in RTL. + x = originRect.left + originRect.width / 2; + } else { + const startX = this._isRtl() ? originRect.right : originRect.left; + const endX = this._isRtl() ? originRect.left : originRect.right; + x = pos.originX == "start" ? startX : endX; + } + // When zooming in Safari the container rectangle contains negative values for the position + // and we need to re-add them to the calculated coordinates. + if (containerRect.left < 0) { + x -= containerRect.left; + } + let y; + if (pos.originY == "center") { + y = originRect.top + originRect.height / 2; + } else { + y = pos.originY == "top" ? originRect.top : originRect.bottom; + } + // Normally the containerRect's top value would be zero, however when the overlay is attached to an input + // (e.g. in an autocomplete), mobile browsers will shift everything in order to put the input in the middle + // of the screen and to make space for the virtual keyboard. We need to account for this offset, + // otherwise our positioning will be thrown off. + // Additionally, when zooming in Safari this fixes the vertical position. + if (containerRect.top < 0) { + y -= containerRect.top; + } + return { + x, + y, + }; + } + /** + * Gets the (x, y) coordinate of the top-left corner of the overlay given a given position and + * origin point to which the overlay should be connected. + */ + _getOverlayPoint(originPoint, overlayRect, pos) { + // Calculate the (overlayStartX, overlayStartY), the start of the + // potential overlay position relative to the origin point. + let overlayStartX; + if (pos.overlayX == "center") { + overlayStartX = -overlayRect.width / 2; + } else if (pos.overlayX === "start") { + overlayStartX = this._isRtl() ? -overlayRect.width : 0; + } else { + overlayStartX = this._isRtl() ? 0 : -overlayRect.width; + } + let overlayStartY; + if (pos.overlayY == "center") { + overlayStartY = -overlayRect.height / 2; + } else { + overlayStartY = pos.overlayY == "top" ? 0 : -overlayRect.height; + } + // The (x, y) coordinates of the overlay. + return { + x: originPoint.x + overlayStartX, + y: originPoint.y + overlayStartY, + }; + } + /** Gets how well an overlay at the given point will fit within the viewport. */ + _getOverlayFit(point, rawOverlayRect, viewport, position) { + // Round the overlay rect when comparing against the + // viewport, because the viewport is always rounded. + const overlay = getRoundedBoundingClientRect(rawOverlayRect); + let { x, y } = point; + let offsetX = this._getOffset(position, "x"); + let offsetY = this._getOffset(position, "y"); + // Account for the offsets since they could push the overlay out of the viewport. + if (offsetX) { + x += offsetX; + } + if (offsetY) { + y += offsetY; + } + // How much the overlay would overflow at this position, on each side. + let leftOverflow = 0 - x; + let rightOverflow = x + overlay.width - viewport.width; + let topOverflow = 0 - y; + let bottomOverflow = y + overlay.height - viewport.height; + // Visible parts of the element on each axis. + let visibleWidth = this._subtractOverflows( + overlay.width, + leftOverflow, + rightOverflow + ); + let visibleHeight = this._subtractOverflows( + overlay.height, + topOverflow, + bottomOverflow + ); + let visibleArea = visibleWidth * visibleHeight; + return { + visibleArea, + isCompletelyWithinViewport: + overlay.width * overlay.height === visibleArea, + fitsInViewportVertically: visibleHeight === overlay.height, + fitsInViewportHorizontally: visibleWidth == overlay.width, + }; + } + /** + * Whether the overlay can fit within the viewport when it may resize either its width or height. + * @param fit How well the overlay fits in the viewport at some position. + * @param point The (x, y) coordinates of the overlay at some position. + * @param viewport The geometry of the viewport. + */ + _canFitWithFlexibleDimensions(fit, point, viewport) { + if (this._hasFlexibleDimensions) { + const availableHeight = viewport.bottom - point.y; + const availableWidth = viewport.right - point.x; + const minHeight = getPixelValue( + this._overlayRef.getConfig().minHeight + ); + const minWidth = getPixelValue( + this._overlayRef.getConfig().minWidth + ); + const verticalFit = + fit.fitsInViewportVertically || + (minHeight != null && minHeight <= availableHeight); + const horizontalFit = + fit.fitsInViewportHorizontally || + (minWidth != null && minWidth <= availableWidth); + return verticalFit && horizontalFit; + } + return false; + } + /** + * Gets the point at which the overlay can be "pushed" on-screen. If the overlay is larger than + * the viewport, the top-left corner will be pushed on-screen (with overflow occurring on the + * right and bottom). + * + * @param start Starting point from which the overlay is pushed. + * @param rawOverlayRect Dimensions of the overlay. + * @param scrollPosition Current viewport scroll position. + * @returns The point at which to position the overlay after pushing. This is effectively a new + * originPoint. + */ + _pushOverlayOnScreen(start, rawOverlayRect, scrollPosition) { + // If the position is locked and we've pushed the overlay already, reuse the previous push + // amount, rather than pushing it again. If we were to continue pushing, the element would + // remain in the viewport, which goes against the expectations when position locking is enabled. + if (this._previousPushAmount && this._positionLocked) { + return { + x: start.x + this._previousPushAmount.x, + y: start.y + this._previousPushAmount.y, + }; + } + // Round the overlay rect when comparing against the + // viewport, because the viewport is always rounded. + const overlay = getRoundedBoundingClientRect(rawOverlayRect); + const viewport = this._viewportRect; + // Determine how much the overlay goes outside the viewport on each + // side, which we'll use to decide which direction to push it. + const overflowRight = Math.max( + start.x + overlay.width - viewport.width, + 0 + ); + const overflowBottom = Math.max( + start.y + overlay.height - viewport.height, + 0 + ); + const overflowTop = Math.max( + viewport.top - scrollPosition.top - start.y, + 0 + ); + const overflowLeft = Math.max( + viewport.left - scrollPosition.left - start.x, + 0 + ); + // Amount by which to push the overlay in each axis such that it remains on-screen. + let pushX = 0; + let pushY = 0; + // If the overlay fits completely within the bounds of the viewport, push it from whichever + // direction is goes off-screen. Otherwise, push the top-left corner such that its in the + // viewport and allow for the trailing end of the overlay to go out of bounds. + if (overlay.width <= viewport.width) { + pushX = overflowLeft || -overflowRight; + } else { + pushX = + start.x < this._viewportMargin + ? viewport.left - scrollPosition.left - start.x + : 0; + } + if (overlay.height <= viewport.height) { + pushY = overflowTop || -overflowBottom; + } else { + pushY = + start.y < this._viewportMargin + ? viewport.top - scrollPosition.top - start.y + : 0; + } + this._previousPushAmount = { + x: pushX, + y: pushY, + }; + return { + x: start.x + pushX, + y: start.y + pushY, + }; + } + /** + * Applies a computed position to the overlay and emits a position change. + * @param position The position preference + * @param originPoint The point on the origin element where the overlay is connected. + */ + _applyPosition(position, originPoint) { + this._setTransformOrigin(position); + this._setOverlayElementStyles(originPoint, position); + this._setBoundingBoxStyles(originPoint, position); + if (position.panelClass) { + this._addPanelClasses(position.panelClass); + } + // Save the last connected position in case the position needs to be re-calculated. + this._lastPosition = position; + // Notify that the position has been changed along with its change properties. + // We only emit if we've got any subscriptions, because the scroll visibility + // calculations can be somewhat expensive. + if (this._positionChanges.observers.length) { + const scrollableViewProperties = this._getScrollVisibility(); + const changeEvent = new ConnectedOverlayPositionChange( + position, + scrollableViewProperties + ); + this._positionChanges.next(changeEvent); + } + this._isInitialRender = false; + } + /** Sets the transform origin based on the configured selector and the passed-in position. */ + _setTransformOrigin(position) { + if (!this._transformOriginSelector) { + return; + } + const elements = this._boundingBox.querySelectorAll( + this._transformOriginSelector + ); + let xOrigin; + let yOrigin = position.overlayY; + if (position.overlayX === "center") { + xOrigin = "center"; + } else if (this._isRtl()) { + xOrigin = position.overlayX === "start" ? "right" : "left"; + } else { + xOrigin = position.overlayX === "start" ? "left" : "right"; + } + for (let i = 0; i < elements.length; i++) { + elements[i].style.transformOrigin = `${xOrigin} ${yOrigin}`; + } + } + /** + * Gets the position and size of the overlay's sizing container. + * + * This method does no measuring and applies no styles so that we can cheaply compute the + * bounds for all positions and choose the best fit based on these results. + */ + _calculateBoundingBoxRect(origin, position) { + const viewport = this._viewportRect; + const isRtl = this._isRtl(); + let height, top, bottom; + if (position.overlayY === "top") { + // Overlay is opening "downward" and thus is bound by the bottom viewport edge. + top = origin.y; + height = viewport.height - top + this._viewportMargin; + } else if (position.overlayY === "bottom") { + // Overlay is opening "upward" and thus is bound by the top viewport edge. We need to add + // the viewport margin back in, because the viewport rect is narrowed down to remove the + // margin, whereas the `origin` position is calculated based on its `ClientRect`. + bottom = viewport.height - origin.y + this._viewportMargin * 2; + height = viewport.height - bottom + this._viewportMargin; + } else { + // If neither top nor bottom, it means that the overlay is vertically centered on the + // origin point. Note that we want the position relative to the viewport, rather than + // the page, which is why we don't use something like `viewport.bottom - origin.y` and + // `origin.y - viewport.top`. + const smallestDistanceToViewportEdge = Math.min( + viewport.bottom - origin.y + viewport.top, + origin.y + ); + const previousHeight = this._lastBoundingBoxSize.height; + height = smallestDistanceToViewportEdge * 2; + top = origin.y - smallestDistanceToViewportEdge; + if ( + height > previousHeight && + !this._isInitialRender && + !this._growAfterOpen + ) { + top = origin.y - previousHeight / 2; + } + } + // The overlay is opening 'right-ward' (the content flows to the right). + const isBoundedByRightViewportEdge = + (position.overlayX === "start" && !isRtl) || + (position.overlayX === "end" && isRtl); + // The overlay is opening 'left-ward' (the content flows to the left). + const isBoundedByLeftViewportEdge = + (position.overlayX === "end" && !isRtl) || + (position.overlayX === "start" && isRtl); + let width, left, right; + if (isBoundedByLeftViewportEdge) { + right = viewport.width - origin.x + this._viewportMargin; + width = origin.x - this._viewportMargin; + } else if (isBoundedByRightViewportEdge) { + left = origin.x; + width = viewport.right - origin.x; + } else { + // If neither start nor end, it means that the overlay is horizontally centered on the + // origin point. Note that we want the position relative to the viewport, rather than + // the page, which is why we don't use something like `viewport.right - origin.x` and + // `origin.x - viewport.left`. + const smallestDistanceToViewportEdge = Math.min( + viewport.right - origin.x + viewport.left, + origin.x + ); + const previousWidth = this._lastBoundingBoxSize.width; + width = smallestDistanceToViewportEdge * 2; + left = origin.x - smallestDistanceToViewportEdge; + if ( + width > previousWidth && + !this._isInitialRender && + !this._growAfterOpen + ) { + left = origin.x - previousWidth / 2; + } + } + return { + top: top, + left: left, + bottom: bottom, + right: right, + width, + height, + }; + } + /** + * Sets the position and size of the overlay's sizing wrapper. The wrapper is positioned on the + * origin's connection point and stretches to the bounds of the viewport. + * + * @param origin The point on the origin element where the overlay is connected. + * @param position The position preference + */ + _setBoundingBoxStyles(origin, position) { + const boundingBoxRect = this._calculateBoundingBoxRect( + origin, + position + ); + // It's weird if the overlay *grows* while scrolling, so we take the last size into account + // when applying a new size. + if (!this._isInitialRender && !this._growAfterOpen) { + boundingBoxRect.height = Math.min( + boundingBoxRect.height, + this._lastBoundingBoxSize.height + ); + boundingBoxRect.width = Math.min( + boundingBoxRect.width, + this._lastBoundingBoxSize.width + ); + } + const styles = {}; + if (this._hasExactPosition()) { + styles.top = styles.left = "0"; + styles.bottom = + styles.right = + styles.maxHeight = + styles.maxWidth = + ""; + styles.width = styles.height = "100%"; + } else { + const maxHeight = this._overlayRef.getConfig().maxHeight; + const maxWidth = this._overlayRef.getConfig().maxWidth; + styles.height = (0, + _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__.coerceCssPixelValue)( + boundingBoxRect.height + ); + styles.top = (0, + _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__.coerceCssPixelValue)( + boundingBoxRect.top + ); + styles.bottom = (0, + _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__.coerceCssPixelValue)( + boundingBoxRect.bottom + ); + styles.width = (0, + _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__.coerceCssPixelValue)( + boundingBoxRect.width + ); + styles.left = (0, + _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__.coerceCssPixelValue)( + boundingBoxRect.left + ); + styles.right = (0, + _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__.coerceCssPixelValue)( + boundingBoxRect.right + ); + // Push the pane content towards the proper direction. + if (position.overlayX === "center") { + styles.alignItems = "center"; + } else { + styles.alignItems = + position.overlayX === "end" ? "flex-end" : "flex-start"; + } + if (position.overlayY === "center") { + styles.justifyContent = "center"; + } else { + styles.justifyContent = + position.overlayY === "bottom" ? "flex-end" : "flex-start"; + } + if (maxHeight) { + styles.maxHeight = (0, + _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__.coerceCssPixelValue)( + maxHeight + ); + } + if (maxWidth) { + styles.maxWidth = (0, + _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__.coerceCssPixelValue)( + maxWidth + ); + } + } + this._lastBoundingBoxSize = boundingBoxRect; + extendStyles(this._boundingBox.style, styles); + } + /** Resets the styles for the bounding box so that a new positioning can be computed. */ + _resetBoundingBoxStyles() { + extendStyles(this._boundingBox.style, { + top: "0", + left: "0", + right: "0", + bottom: "0", + height: "", + width: "", + alignItems: "", + justifyContent: "", + }); + } + /** Resets the styles for the overlay pane so that a new positioning can be computed. */ + _resetOverlayElementStyles() { + extendStyles(this._pane.style, { + top: "", + left: "", + bottom: "", + right: "", + position: "", + transform: "", + }); + } + /** Sets positioning styles to the overlay element. */ + _setOverlayElementStyles(originPoint, position) { + const styles = {}; + const hasExactPosition = this._hasExactPosition(); + const hasFlexibleDimensions = this._hasFlexibleDimensions; + const config = this._overlayRef.getConfig(); + if (hasExactPosition) { + const scrollPosition = + this._viewportRuler.getViewportScrollPosition(); + extendStyles( + styles, + this._getExactOverlayY(position, originPoint, scrollPosition) + ); + extendStyles( + styles, + this._getExactOverlayX(position, originPoint, scrollPosition) + ); + } else { + styles.position = "static"; + } + // Use a transform to apply the offsets. We do this because the `center` positions rely on + // being in the normal flex flow and setting a `top` / `left` at all will completely throw + // off the position. We also can't use margins, because they won't have an effect in some + // cases where the element doesn't have anything to "push off of". Finally, this works + // better both with flexible and non-flexible positioning. + let transformString = ""; + let offsetX = this._getOffset(position, "x"); + let offsetY = this._getOffset(position, "y"); + if (offsetX) { + transformString += `translateX(${offsetX}px) `; + } + if (offsetY) { + transformString += `translateY(${offsetY}px)`; + } + styles.transform = transformString.trim(); + // If a maxWidth or maxHeight is specified on the overlay, we remove them. We do this because + // we need these values to both be set to "100%" for the automatic flexible sizing to work. + // The maxHeight and maxWidth are set on the boundingBox in order to enforce the constraint. + // Note that this doesn't apply when we have an exact position, in which case we do want to + // apply them because they'll be cleared from the bounding box. + if (config.maxHeight) { + if (hasExactPosition) { + styles.maxHeight = (0, + _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__.coerceCssPixelValue)( + config.maxHeight + ); + } else if (hasFlexibleDimensions) { + styles.maxHeight = ""; + } + } + if (config.maxWidth) { + if (hasExactPosition) { + styles.maxWidth = (0, + _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__.coerceCssPixelValue)( + config.maxWidth + ); + } else if (hasFlexibleDimensions) { + styles.maxWidth = ""; + } + } + extendStyles(this._pane.style, styles); + } + /** Gets the exact top/bottom for the overlay when not using flexible sizing or when pushing. */ + _getExactOverlayY(position, originPoint, scrollPosition) { + // Reset any existing styles. This is necessary in case the + // preferred position has changed since the last `apply`. + let styles = { + top: "", + bottom: "", + }; + let overlayPoint = this._getOverlayPoint( + originPoint, + this._overlayRect, + position + ); + if (this._isPushed) { + overlayPoint = this._pushOverlayOnScreen( + overlayPoint, + this._overlayRect, + scrollPosition + ); + } + // We want to set either `top` or `bottom` based on whether the overlay wants to appear + // above or below the origin and the direction in which the element will expand. + if (position.overlayY === "bottom") { + // When using `bottom`, we adjust the y position such that it is the distance + // from the bottom of the viewport rather than the top. + const documentHeight = + this._document.documentElement.clientHeight; + styles.bottom = `${ + documentHeight - (overlayPoint.y + this._overlayRect.height) + }px`; + } else { + styles.top = (0, + _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__.coerceCssPixelValue)( + overlayPoint.y + ); + } + return styles; + } + /** Gets the exact left/right for the overlay when not using flexible sizing or when pushing. */ + _getExactOverlayX(position, originPoint, scrollPosition) { + // Reset any existing styles. This is necessary in case the preferred position has + // changed since the last `apply`. + let styles = { + left: "", + right: "", + }; + let overlayPoint = this._getOverlayPoint( + originPoint, + this._overlayRect, + position + ); + if (this._isPushed) { + overlayPoint = this._pushOverlayOnScreen( + overlayPoint, + this._overlayRect, + scrollPosition + ); + } + // We want to set either `left` or `right` based on whether the overlay wants to appear "before" + // or "after" the origin, which determines the direction in which the element will expand. + // For the horizontal axis, the meaning of "before" and "after" change based on whether the + // page is in RTL or LTR. + let horizontalStyleProperty; + if (this._isRtl()) { + horizontalStyleProperty = + position.overlayX === "end" ? "left" : "right"; + } else { + horizontalStyleProperty = + position.overlayX === "end" ? "right" : "left"; + } + // When we're setting `right`, we adjust the x position such that it is the distance + // from the right edge of the viewport rather than the left edge. + if (horizontalStyleProperty === "right") { + const documentWidth = this._document.documentElement.clientWidth; + styles.right = `${ + documentWidth - (overlayPoint.x + this._overlayRect.width) + }px`; + } else { + styles.left = (0, + _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__.coerceCssPixelValue)( + overlayPoint.x + ); + } + return styles; + } + /** + * Gets the view properties of the trigger and overlay, including whether they are clipped + * or completely outside the view of any of the strategy's scrollables. + */ + _getScrollVisibility() { + // Note: needs fresh rects since the position could've changed. + const originBounds = this._getOriginRect(); + const overlayBounds = this._pane.getBoundingClientRect(); + // TODO(jelbourn): instead of needing all of the client rects for these scrolling containers + // every time, we should be able to use the scrollTop of the containers if the size of those + // containers hasn't changed. + const scrollContainerBounds = this._scrollables.map( + (scrollable) => { + return scrollable + .getElementRef() + .nativeElement.getBoundingClientRect(); + } + ); + return { + isOriginClipped: isElementClippedByScrolling( + originBounds, + scrollContainerBounds + ), + isOriginOutsideView: isElementScrolledOutsideView( + originBounds, + scrollContainerBounds + ), + isOverlayClipped: isElementClippedByScrolling( + overlayBounds, + scrollContainerBounds + ), + isOverlayOutsideView: isElementScrolledOutsideView( + overlayBounds, + scrollContainerBounds + ), + }; + } + /** Subtracts the amount that an element is overflowing on an axis from its length. */ + _subtractOverflows(length, ...overflows) { + return overflows.reduce((currentValue, currentOverflow) => { + return currentValue - Math.max(currentOverflow, 0); + }, length); + } + /** Narrows the given viewport rect by the current _viewportMargin. */ + _getNarrowedViewportRect() { + // We recalculate the viewport rect here ourselves, rather than using the ViewportRuler, + // because we want to use the `clientWidth` and `clientHeight` as the base. The difference + // being that the client properties don't include the scrollbar, as opposed to `innerWidth` + // and `innerHeight` that do. This is necessary, because the overlay container uses + // 100% `width` and `height` which don't include the scrollbar either. + const width = this._document.documentElement.clientWidth; + const height = this._document.documentElement.clientHeight; + const scrollPosition = + this._viewportRuler.getViewportScrollPosition(); + return { + top: scrollPosition.top + this._viewportMargin, + left: scrollPosition.left + this._viewportMargin, + right: scrollPosition.left + width - this._viewportMargin, + bottom: scrollPosition.top + height - this._viewportMargin, + width: width - 2 * this._viewportMargin, + height: height - 2 * this._viewportMargin, + }; + } + /** Whether the we're dealing with an RTL context */ + _isRtl() { + return this._overlayRef.getDirection() === "rtl"; + } + /** Determines whether the overlay uses exact or flexible positioning. */ + _hasExactPosition() { + return !this._hasFlexibleDimensions || this._isPushed; + } + /** Retrieves the offset of a position along the x or y axis. */ + _getOffset(position, axis) { + if (axis === "x") { + // We don't do something like `position['offset' + axis]` in + // order to avoid breaking minifiers that rename properties. + return position.offsetX == null + ? this._offsetX + : position.offsetX; + } + return position.offsetY == null ? this._offsetY : position.offsetY; + } + /** Validates that the current position match the expected values. */ + _validatePositions() { + if (typeof ngDevMode === "undefined" || ngDevMode) { + if (!this._preferredPositions.length) { + throw Error( + "FlexibleConnectedPositionStrategy: At least one position is required." + ); + } + // TODO(crisbeto): remove these once Angular's template type + // checking is advanced enough to catch these cases. + this._preferredPositions.forEach((pair) => { + validateHorizontalPosition("originX", pair.originX); + validateVerticalPosition("originY", pair.originY); + validateHorizontalPosition("overlayX", pair.overlayX); + validateVerticalPosition("overlayY", pair.overlayY); + }); + } + } + /** Adds a single CSS class or an array of classes on the overlay panel. */ + _addPanelClasses(cssClasses) { + if (this._pane) { + (0, + _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__.coerceArray)( + cssClasses + ).forEach((cssClass) => { + if ( + cssClass !== "" && + this._appliedPanelClasses.indexOf(cssClass) === -1 + ) { + this._appliedPanelClasses.push(cssClass); + this._pane.classList.add(cssClass); + } + }); + } + } + /** Clears the classes that the position strategy has applied from the overlay panel. */ + _clearPanelClasses() { + if (this._pane) { + this._appliedPanelClasses.forEach((cssClass) => { + this._pane.classList.remove(cssClass); + }); + this._appliedPanelClasses = []; + } + } + /** Returns the ClientRect of the current origin. */ + _getOriginRect() { + const origin = this._origin; + if ( + origin instanceof + _angular_core__WEBPACK_IMPORTED_MODULE_3__.ElementRef + ) { + return origin.nativeElement.getBoundingClientRect(); + } + // Check for Element so SVG elements are also supported. + if (origin instanceof Element) { + return origin.getBoundingClientRect(); + } + const width = origin.width || 0; + const height = origin.height || 0; + // If the origin is a point, return a client rect as if it was a 0x0 element at the point. + return { + top: origin.y, + bottom: origin.y + height, + left: origin.x, + right: origin.x + width, + height, + width, + }; + } + } + /** Shallow-extends a stylesheet object with another stylesheet object. */ + function extendStyles(destination, source) { + for (let key in source) { + if (source.hasOwnProperty(key)) { + destination[key] = source[key]; + } + } + return destination; + } + /** + * Extracts the pixel value as a number from a value, if it's a number + * or a CSS pixel string (e.g. `1337px`). Otherwise returns null. + */ + function getPixelValue(input) { + if (typeof input !== "number" && input != null) { + const [value, units] = input.split(cssUnitPattern); + return !units || units === "px" ? parseFloat(value) : null; + } + return input || null; + } + /** + * Gets a version of an element's bounding `ClientRect` where all the values are rounded down to + * the nearest pixel. This allows us to account for the cases where there may be sub-pixel + * deviations in the `ClientRect` returned by the browser (e.g. when zoomed in with a percentage + * size, see #21350). + */ + function getRoundedBoundingClientRect(clientRect) { + return { + top: Math.floor(clientRect.top), + right: Math.floor(clientRect.right), + bottom: Math.floor(clientRect.bottom), + left: Math.floor(clientRect.left), + width: Math.floor(clientRect.width), + height: Math.floor(clientRect.height), + }; + } + const STANDARD_DROPDOWN_BELOW_POSITIONS = [ + { + originX: "start", + originY: "bottom", + overlayX: "start", + overlayY: "top", + }, + { + originX: "start", + originY: "top", + overlayX: "start", + overlayY: "bottom", + }, + { + originX: "end", + originY: "bottom", + overlayX: "end", + overlayY: "top", + }, + { + originX: "end", + originY: "top", + overlayX: "end", + overlayY: "bottom", + }, + ]; + const STANDARD_DROPDOWN_ADJACENT_POSITIONS = [ + { + originX: "end", + originY: "top", + overlayX: "start", + overlayY: "top", + }, + { + originX: "end", + originY: "bottom", + overlayX: "start", + overlayY: "bottom", + }, + { + originX: "start", + originY: "top", + overlayX: "end", + overlayY: "top", + }, + { + originX: "start", + originY: "bottom", + overlayX: "end", + overlayY: "bottom", + }, + ]; + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** Class to be added to the overlay pane wrapper. */ + const wrapperClass = "cdk-global-overlay-wrapper"; + /** + * A strategy for positioning overlays. Using this strategy, an overlay is given an + * explicit position relative to the browser's viewport. We use flexbox, instead of + * transforms, in order to avoid issues with subpixel rendering which can cause the + * element to become blurry. + */ + class GlobalPositionStrategy { + constructor() { + this._cssPosition = "static"; + this._topOffset = ""; + this._bottomOffset = ""; + this._alignItems = ""; + this._xPosition = ""; + this._xOffset = ""; + this._width = ""; + this._height = ""; + this._isDisposed = false; + } + attach(overlayRef) { + const config = overlayRef.getConfig(); + this._overlayRef = overlayRef; + if (this._width && !config.width) { + overlayRef.updateSize({ + width: this._width, + }); + } + if (this._height && !config.height) { + overlayRef.updateSize({ + height: this._height, + }); + } + overlayRef.hostElement.classList.add(wrapperClass); + this._isDisposed = false; + } + /** + * Sets the top position of the overlay. Clears any previously set vertical position. + * @param value New top offset. + */ + top(value = "") { + this._bottomOffset = ""; + this._topOffset = value; + this._alignItems = "flex-start"; + return this; + } + /** + * Sets the left position of the overlay. Clears any previously set horizontal position. + * @param value New left offset. + */ + left(value = "") { + this._xOffset = value; + this._xPosition = "left"; + return this; + } + /** + * Sets the bottom position of the overlay. Clears any previously set vertical position. + * @param value New bottom offset. + */ + bottom(value = "") { + this._topOffset = ""; + this._bottomOffset = value; + this._alignItems = "flex-end"; + return this; + } + /** + * Sets the right position of the overlay. Clears any previously set horizontal position. + * @param value New right offset. + */ + right(value = "") { + this._xOffset = value; + this._xPosition = "right"; + return this; + } + /** + * Sets the overlay to the start of the viewport, depending on the overlay direction. + * This will be to the left in LTR layouts and to the right in RTL. + * @param offset Offset from the edge of the screen. + */ + start(value = "") { + this._xOffset = value; + this._xPosition = "start"; + return this; + } + /** + * Sets the overlay to the end of the viewport, depending on the overlay direction. + * This will be to the right in LTR layouts and to the left in RTL. + * @param offset Offset from the edge of the screen. + */ + end(value = "") { + this._xOffset = value; + this._xPosition = "end"; + return this; + } + /** + * Sets the overlay width and clears any previously set width. + * @param value New width for the overlay + * @deprecated Pass the `width` through the `OverlayConfig`. + * @breaking-change 8.0.0 + */ + width(value = "") { + if (this._overlayRef) { + this._overlayRef.updateSize({ + width: value, + }); + } else { + this._width = value; + } + return this; + } + /** + * Sets the overlay height and clears any previously set height. + * @param value New height for the overlay + * @deprecated Pass the `height` through the `OverlayConfig`. + * @breaking-change 8.0.0 + */ + height(value = "") { + if (this._overlayRef) { + this._overlayRef.updateSize({ + height: value, + }); + } else { + this._height = value; + } + return this; + } + /** + * Centers the overlay horizontally with an optional offset. + * Clears any previously set horizontal position. + * + * @param offset Overlay offset from the horizontal center. + */ + centerHorizontally(offset = "") { + this.left(offset); + this._xPosition = "center"; + return this; + } + /** + * Centers the overlay vertically with an optional offset. + * Clears any previously set vertical position. + * + * @param offset Overlay offset from the vertical center. + */ + centerVertically(offset = "") { + this.top(offset); + this._alignItems = "center"; + return this; + } + /** + * Apply the position to the element. + * @docs-private + */ + apply() { + // Since the overlay ref applies the strategy asynchronously, it could + // have been disposed before it ends up being applied. If that is the + // case, we shouldn't do anything. + if (!this._overlayRef || !this._overlayRef.hasAttached()) { + return; + } + const styles = this._overlayRef.overlayElement.style; + const parentStyles = this._overlayRef.hostElement.style; + const config = this._overlayRef.getConfig(); + const { width, height, maxWidth, maxHeight } = config; + const shouldBeFlushHorizontally = + (width === "100%" || width === "100vw") && + (!maxWidth || maxWidth === "100%" || maxWidth === "100vw"); + const shouldBeFlushVertically = + (height === "100%" || height === "100vh") && + (!maxHeight || maxHeight === "100%" || maxHeight === "100vh"); + const xPosition = this._xPosition; + const xOffset = this._xOffset; + const isRtl = this._overlayRef.getConfig().direction === "rtl"; + let marginLeft = ""; + let marginRight = ""; + let justifyContent = ""; + if (shouldBeFlushHorizontally) { + justifyContent = "flex-start"; + } else if (xPosition === "center") { + justifyContent = "center"; + if (isRtl) { + marginRight = xOffset; + } else { + marginLeft = xOffset; + } + } else if (isRtl) { + if (xPosition === "left" || xPosition === "end") { + justifyContent = "flex-end"; + marginLeft = xOffset; + } else if (xPosition === "right" || xPosition === "start") { + justifyContent = "flex-start"; + marginRight = xOffset; + } + } else if (xPosition === "left" || xPosition === "start") { + justifyContent = "flex-start"; + marginLeft = xOffset; + } else if (xPosition === "right" || xPosition === "end") { + justifyContent = "flex-end"; + marginRight = xOffset; + } + styles.position = this._cssPosition; + styles.marginLeft = shouldBeFlushHorizontally ? "0" : marginLeft; + styles.marginTop = shouldBeFlushVertically ? "0" : this._topOffset; + styles.marginBottom = this._bottomOffset; + styles.marginRight = shouldBeFlushHorizontally ? "0" : marginRight; + parentStyles.justifyContent = justifyContent; + parentStyles.alignItems = shouldBeFlushVertically + ? "flex-start" + : this._alignItems; + } + /** + * Cleans up the DOM changes from the position strategy. + * @docs-private + */ + dispose() { + if (this._isDisposed || !this._overlayRef) { + return; + } + const styles = this._overlayRef.overlayElement.style; + const parent = this._overlayRef.hostElement; + const parentStyles = parent.style; + parent.classList.remove(wrapperClass); + parentStyles.justifyContent = + parentStyles.alignItems = + styles.marginTop = + styles.marginBottom = + styles.marginLeft = + styles.marginRight = + styles.position = + ""; + this._overlayRef = null; + this._isDisposed = true; + } + } + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** Builder for overlay position strategy. */ + class OverlayPositionBuilder { + constructor(_viewportRuler, _document, _platform, _overlayContainer) { + this._viewportRuler = _viewportRuler; + this._document = _document; + this._platform = _platform; + this._overlayContainer = _overlayContainer; + } + /** + * Creates a global position strategy. + */ + global() { + return new GlobalPositionStrategy(); + } + /** + * Creates a flexible position strategy. + * @param origin Origin relative to which to position the overlay. + */ + flexibleConnectedTo(origin) { + return new FlexibleConnectedPositionStrategy( + origin, + this._viewportRuler, + this._document, + this._platform, + this._overlayContainer + ); + } + } + OverlayPositionBuilder.ɵfac = function OverlayPositionBuilder_Factory( + t + ) { + return new (t || OverlayPositionBuilder)( + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵinject"]( + _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_0__.ViewportRuler + ), + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵinject"]( + _angular_common__WEBPACK_IMPORTED_MODULE_4__.DOCUMENT + ), + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵinject"]( + _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_1__.Platform + ), + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵinject"]( + OverlayContainer + ) + ); + }; + OverlayPositionBuilder.ɵprov = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_3__[ + "ɵɵdefineInjectable" + ]({ + token: OverlayPositionBuilder, + factory: OverlayPositionBuilder.ɵfac, + providedIn: "root", + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"]( + OverlayPositionBuilder, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_3__.Injectable, + args: [ + { + providedIn: "root", + }, + ], + }, + ], + function () { + return [ + { + type: _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_0__.ViewportRuler, + }, + { + type: undefined, + decorators: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_3__.Inject, + args: [ + _angular_common__WEBPACK_IMPORTED_MODULE_4__.DOCUMENT, + ], + }, + ], + }, + { + type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_1__.Platform, + }, + { + type: OverlayContainer, + }, + ]; + }, + null + ); + })(); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** Next overlay unique ID. */ + let nextUniqueId = 0; + // Note that Overlay is *not* scoped to the app root because of the ComponentFactoryResolver + // which needs to be different depending on where OverlayModule is imported. + /** + * Service to create Overlays. Overlays are dynamically added pieces of floating UI, meant to be + * used as a low-level building block for other components. Dialogs, tooltips, menus, + * selects, etc. can all be built using overlays. The service should primarily be used by authors + * of re-usable components rather than developers building end-user applications. + * + * An overlay *is* a PortalOutlet, so any kind of Portal can be loaded into one. + */ + class Overlay { + constructor /** Scrolling strategies that can be used when creating an overlay. */( + scrollStrategies, + _overlayContainer, + _componentFactoryResolver, + _positionBuilder, + _keyboardDispatcher, + _injector, + _ngZone, + _document, + _directionality, + _location, + _outsideClickDispatcher, + _animationsModuleType + ) { + this.scrollStrategies = scrollStrategies; + this._overlayContainer = _overlayContainer; + this._componentFactoryResolver = _componentFactoryResolver; + this._positionBuilder = _positionBuilder; + this._keyboardDispatcher = _keyboardDispatcher; + this._injector = _injector; + this._ngZone = _ngZone; + this._document = _document; + this._directionality = _directionality; + this._location = _location; + this._outsideClickDispatcher = _outsideClickDispatcher; + this._animationsModuleType = _animationsModuleType; + } + /** + * Creates an overlay. + * @param config Configuration applied to the overlay. + * @returns Reference to the created overlay. + */ + create(config) { + const host = this._createHostElement(); + const pane = this._createPaneElement(host); + const portalOutlet = this._createPortalOutlet(pane); + const overlayConfig = new OverlayConfig(config); + overlayConfig.direction = + overlayConfig.direction || this._directionality.value; + return new OverlayRef( + portalOutlet, + host, + pane, + overlayConfig, + this._ngZone, + this._keyboardDispatcher, + this._document, + this._location, + this._outsideClickDispatcher, + this._animationsModuleType === "NoopAnimations" + ); + } + /** + * Gets a position builder that can be used, via fluent API, + * to construct and configure a position strategy. + * @returns An overlay position builder. + */ + position() { + return this._positionBuilder; + } + /** + * Creates the DOM element for an overlay and appends it to the overlay container. + * @returns Newly-created pane element + */ + _createPaneElement(host) { + const pane = this._document.createElement("div"); + pane.id = `cdk-overlay-${nextUniqueId++}`; + pane.classList.add("cdk-overlay-pane"); + host.appendChild(pane); + return pane; + } + /** + * Creates the host element that wraps around an overlay + * and can be used for advanced positioning. + * @returns Newly-create host element. + */ + _createHostElement() { + const host = this._document.createElement("div"); + this._overlayContainer.getContainerElement().appendChild(host); + return host; + } + /** + * Create a DomPortalOutlet into which the overlay content can be loaded. + * @param pane The DOM element to turn into a portal outlet. + * @returns A portal outlet for the given DOM element. + */ + _createPortalOutlet(pane) { + // We have to resolve the ApplicationRef later in order to allow people + // to use overlay-based providers during app initialization. + if (!this._appRef) { + this._appRef = this._injector.get( + _angular_core__WEBPACK_IMPORTED_MODULE_3__.ApplicationRef + ); + } + return new _angular_cdk_portal__WEBPACK_IMPORTED_MODULE_10__.DomPortalOutlet( + pane, + this._componentFactoryResolver, + this._appRef, + this._injector, + this._document + ); + } + } + Overlay.ɵfac = function Overlay_Factory(t) { + return new (t || Overlay)( + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵinject"]( + ScrollStrategyOptions + ), + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵinject"]( + OverlayContainer + ), + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵinject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_3__.ComponentFactoryResolver + ), + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵinject"]( + OverlayPositionBuilder + ), + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵinject"]( + OverlayKeyboardDispatcher + ), + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵinject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_3__.Injector + ), + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵinject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_3__.NgZone + ), + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵinject"]( + _angular_common__WEBPACK_IMPORTED_MODULE_4__.DOCUMENT + ), + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵinject"]( + _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_11__.Directionality + ), + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵinject"]( + _angular_common__WEBPACK_IMPORTED_MODULE_4__.Location + ), + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵinject"]( + OverlayOutsideClickDispatcher + ), + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵinject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_3__.ANIMATION_MODULE_TYPE, + 8 + ) + ); + }; + Overlay.ɵprov = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_3__[ + "ɵɵdefineInjectable" + ]({ + token: Overlay, + factory: Overlay.ɵfac, + providedIn: "root", + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"]( + Overlay, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_3__.Injectable, + args: [ + { + providedIn: "root", + }, + ], + }, + ], + function () { + return [ + { + type: ScrollStrategyOptions, + }, + { + type: OverlayContainer, + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_3__.ComponentFactoryResolver, + }, + { + type: OverlayPositionBuilder, + }, + { + type: OverlayKeyboardDispatcher, + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_3__.Injector, + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_3__.NgZone, + }, + { + type: undefined, + decorators: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_3__.Inject, + args: [ + _angular_common__WEBPACK_IMPORTED_MODULE_4__.DOCUMENT, + ], + }, + ], + }, + { + type: _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_11__.Directionality, + }, + { + type: _angular_common__WEBPACK_IMPORTED_MODULE_4__.Location, + }, + { + type: OverlayOutsideClickDispatcher, + }, + { + type: undefined, + decorators: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_3__.Inject, + args: [ + _angular_core__WEBPACK_IMPORTED_MODULE_3__.ANIMATION_MODULE_TYPE, + ], + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_3__.Optional, + }, + ], + }, + ]; + }, + null + ); + })(); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** Default set of positions for the overlay. Follows the behavior of a dropdown. */ + const defaultPositionList = [ + { + originX: "start", + originY: "bottom", + overlayX: "start", + overlayY: "top", + }, + { + originX: "start", + originY: "top", + overlayX: "start", + overlayY: "bottom", + }, + { + originX: "end", + originY: "top", + overlayX: "end", + overlayY: "bottom", + }, + { + originX: "end", + originY: "bottom", + overlayX: "end", + overlayY: "top", + }, + ]; + /** Injection token that determines the scroll handling while the connected overlay is open. */ + const CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY = + new _angular_core__WEBPACK_IMPORTED_MODULE_3__.InjectionToken( + "cdk-connected-overlay-scroll-strategy" + ); + /** + * Directive applied to an element to make it usable as an origin for an Overlay using a + * ConnectedPositionStrategy. + */ + class CdkOverlayOrigin { + constructor /** Reference to the element on which the directive is applied. */( + elementRef + ) { + this.elementRef = elementRef; + } + } + CdkOverlayOrigin.ɵfac = function CdkOverlayOrigin_Factory(t) { + return new (t || CdkOverlayOrigin)( + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_3__.ElementRef + ) + ); + }; + CdkOverlayOrigin.ɵdir = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_3__[ + "ɵɵdefineDirective" + ]({ + type: CdkOverlayOrigin, + selectors: [ + ["", "cdk-overlay-origin", ""], + ["", "overlay-origin", ""], + ["", "cdkOverlayOrigin", ""], + ], + exportAs: ["cdkOverlayOrigin"], + standalone: true, + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"]( + CdkOverlayOrigin, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_3__.Directive, + args: [ + { + selector: + "[cdk-overlay-origin], [overlay-origin], [cdkOverlayOrigin]", + exportAs: "cdkOverlayOrigin", + standalone: true, + }, + ], + }, + ], + function () { + return [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_3__.ElementRef, + }, + ]; + }, + null + ); + })(); + /** + * Directive to facilitate declarative creation of an + * Overlay using a FlexibleConnectedPositionStrategy. + */ + class CdkConnectedOverlay { + /** The offset in pixels for the overlay connection point on the x-axis */ + get offsetX() { + return this._offsetX; + } + set offsetX(offsetX) { + this._offsetX = offsetX; + if (this._position) { + this._updatePositionStrategy(this._position); + } + } + /** The offset in pixels for the overlay connection point on the y-axis */ + get offsetY() { + return this._offsetY; + } + set offsetY(offsetY) { + this._offsetY = offsetY; + if (this._position) { + this._updatePositionStrategy(this._position); + } + } + /** Whether or not the overlay should attach a backdrop. */ + get hasBackdrop() { + return this._hasBackdrop; + } + set hasBackdrop(value) { + this._hasBackdrop = (0, + _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__.coerceBooleanProperty)( + value + ); + } + /** Whether or not the overlay should be locked when scrolling. */ + get lockPosition() { + return this._lockPosition; + } + set lockPosition(value) { + this._lockPosition = (0, + _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__.coerceBooleanProperty)( + value + ); + } + /** Whether the overlay's width and height can be constrained to fit within the viewport. */ + get flexibleDimensions() { + return this._flexibleDimensions; + } + set flexibleDimensions(value) { + this._flexibleDimensions = (0, + _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__.coerceBooleanProperty)( + value + ); + } + /** Whether the overlay can grow after the initial open when flexible positioning is turned on. */ + get growAfterOpen() { + return this._growAfterOpen; + } + set growAfterOpen(value) { + this._growAfterOpen = (0, + _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__.coerceBooleanProperty)( + value + ); + } + /** Whether the overlay can be pushed on-screen if none of the provided positions fit. */ + get push() { + return this._push; + } + set push(value) { + this._push = (0, + _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__.coerceBooleanProperty)( + value + ); + } + // TODO(jelbourn): inputs for size, scroll behavior, animation, etc. + constructor( + _overlay, + templateRef, + viewContainerRef, + scrollStrategyFactory, + _dir + ) { + this._overlay = _overlay; + this._dir = _dir; + this._hasBackdrop = false; + this._lockPosition = false; + this._growAfterOpen = false; + this._flexibleDimensions = false; + this._push = false; + this._backdropSubscription = + rxjs__WEBPACK_IMPORTED_MODULE_6__.Subscription.EMPTY; + this._attachSubscription = + rxjs__WEBPACK_IMPORTED_MODULE_6__.Subscription.EMPTY; + this._detachSubscription = + rxjs__WEBPACK_IMPORTED_MODULE_6__.Subscription.EMPTY; + this._positionSubscription = + rxjs__WEBPACK_IMPORTED_MODULE_6__.Subscription.EMPTY; + /** Margin between the overlay and the viewport edges. */ + this.viewportMargin = 0; + /** Whether the overlay is open. */ + this.open = false; + /** Whether the overlay can be closed by user interaction. */ + this.disableClose = false; + /** Event emitted when the backdrop is clicked. */ + this.backdropClick = + new _angular_core__WEBPACK_IMPORTED_MODULE_3__.EventEmitter(); + /** Event emitted when the position has changed. */ + this.positionChange = + new _angular_core__WEBPACK_IMPORTED_MODULE_3__.EventEmitter(); + /** Event emitted when the overlay has been attached. */ + this.attach = + new _angular_core__WEBPACK_IMPORTED_MODULE_3__.EventEmitter(); + /** Event emitted when the overlay has been detached. */ + this.detach = + new _angular_core__WEBPACK_IMPORTED_MODULE_3__.EventEmitter(); + /** Emits when there are keyboard events that are targeted at the overlay. */ + this.overlayKeydown = + new _angular_core__WEBPACK_IMPORTED_MODULE_3__.EventEmitter(); + /** Emits when there are mouse outside click events that are targeted at the overlay. */ + this.overlayOutsideClick = + new _angular_core__WEBPACK_IMPORTED_MODULE_3__.EventEmitter(); + this._templatePortal = + new _angular_cdk_portal__WEBPACK_IMPORTED_MODULE_10__.TemplatePortal( + templateRef, + viewContainerRef + ); + this._scrollStrategyFactory = scrollStrategyFactory; + this.scrollStrategy = this._scrollStrategyFactory(); + } + /** The associated overlay reference. */ + get overlayRef() { + return this._overlayRef; + } + /** The element's layout direction. */ + get dir() { + return this._dir ? this._dir.value : "ltr"; + } + ngOnDestroy() { + this._attachSubscription.unsubscribe(); + this._detachSubscription.unsubscribe(); + this._backdropSubscription.unsubscribe(); + this._positionSubscription.unsubscribe(); + if (this._overlayRef) { + this._overlayRef.dispose(); + } + } + ngOnChanges(changes) { + if (this._position) { + this._updatePositionStrategy(this._position); + this._overlayRef.updateSize({ + width: this.width, + minWidth: this.minWidth, + height: this.height, + minHeight: this.minHeight, + }); + if (changes["origin"] && this.open) { + this._position.apply(); + } + } + if (changes["open"]) { + this.open ? this._attachOverlay() : this._detachOverlay(); + } + } + /** Creates an overlay */ + _createOverlay() { + if (!this.positions || !this.positions.length) { + this.positions = defaultPositionList; + } + const overlayRef = (this._overlayRef = this._overlay.create( + this._buildConfig() + )); + this._attachSubscription = overlayRef + .attachments() + .subscribe(() => this.attach.emit()); + this._detachSubscription = overlayRef + .detachments() + .subscribe(() => this.detach.emit()); + overlayRef.keydownEvents().subscribe((event) => { + this.overlayKeydown.next(event); + if ( + event.keyCode === + _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_12__.ESCAPE && + !this.disableClose && + !(0, + _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_12__.hasModifierKey)( + event + ) + ) { + event.preventDefault(); + this._detachOverlay(); + } + }); + this._overlayRef.outsidePointerEvents().subscribe((event) => { + this.overlayOutsideClick.next(event); + }); + } + /** Builds the overlay config based on the directive's inputs */ + _buildConfig() { + const positionStrategy = (this._position = + this.positionStrategy || this._createPositionStrategy()); + const overlayConfig = new OverlayConfig({ + direction: this._dir, + positionStrategy, + scrollStrategy: this.scrollStrategy, + hasBackdrop: this.hasBackdrop, + }); + if (this.width || this.width === 0) { + overlayConfig.width = this.width; + } + if (this.height || this.height === 0) { + overlayConfig.height = this.height; + } + if (this.minWidth || this.minWidth === 0) { + overlayConfig.minWidth = this.minWidth; + } + if (this.minHeight || this.minHeight === 0) { + overlayConfig.minHeight = this.minHeight; + } + if (this.backdropClass) { + overlayConfig.backdropClass = this.backdropClass; + } + if (this.panelClass) { + overlayConfig.panelClass = this.panelClass; + } + return overlayConfig; + } + /** Updates the state of a position strategy, based on the values of the directive inputs. */ + _updatePositionStrategy(positionStrategy) { + const positions = this.positions.map((currentPosition) => ({ + originX: currentPosition.originX, + originY: currentPosition.originY, + overlayX: currentPosition.overlayX, + overlayY: currentPosition.overlayY, + offsetX: currentPosition.offsetX || this.offsetX, + offsetY: currentPosition.offsetY || this.offsetY, + panelClass: currentPosition.panelClass || undefined, + })); + return positionStrategy + .setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()) + .withPositions(positions) + .withFlexibleDimensions(this.flexibleDimensions) + .withPush(this.push) + .withGrowAfterOpen(this.growAfterOpen) + .withViewportMargin(this.viewportMargin) + .withLockedPosition(this.lockPosition) + .withTransformOriginOn(this.transformOriginSelector); + } + /** Returns the position strategy of the overlay to be set on the overlay config */ + _createPositionStrategy() { + const strategy = this._overlay + .position() + .flexibleConnectedTo( + this._getFlexibleConnectedPositionStrategyOrigin() + ); + this._updatePositionStrategy(strategy); + return strategy; + } + _getFlexibleConnectedPositionStrategyOrigin() { + if (this.origin instanceof CdkOverlayOrigin) { + return this.origin.elementRef; + } else { + return this.origin; + } + } + /** Attaches the overlay and subscribes to backdrop clicks if backdrop exists */ + _attachOverlay() { + if (!this._overlayRef) { + this._createOverlay(); + } else { + // Update the overlay size, in case the directive's inputs have changed + this._overlayRef.getConfig().hasBackdrop = this.hasBackdrop; + } + if (!this._overlayRef.hasAttached()) { + this._overlayRef.attach(this._templatePortal); + } + if (this.hasBackdrop) { + this._backdropSubscription = this._overlayRef + .backdropClick() + .subscribe((event) => { + this.backdropClick.emit(event); + }); + } else { + this._backdropSubscription.unsubscribe(); + } + this._positionSubscription.unsubscribe(); + // Only subscribe to `positionChanges` if requested, because putting + // together all the information for it can be expensive. + if (this.positionChange.observers.length > 0) { + this._positionSubscription = this._position.positionChanges + .pipe( + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.takeWhile)( + () => this.positionChange.observers.length > 0 + ) + ) + .subscribe((position) => { + this.positionChange.emit(position); + if (this.positionChange.observers.length === 0) { + this._positionSubscription.unsubscribe(); + } + }); + } + } + /** Detaches the overlay and unsubscribes to backdrop clicks if backdrop exists */ + _detachOverlay() { + if (this._overlayRef) { + this._overlayRef.detach(); + } + this._backdropSubscription.unsubscribe(); + this._positionSubscription.unsubscribe(); + } + } + CdkConnectedOverlay.ɵfac = function CdkConnectedOverlay_Factory(t) { + return new (t || CdkConnectedOverlay)( + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"]( + Overlay + ), + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_3__.TemplateRef + ), + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_3__.ViewContainerRef + ), + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"]( + CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY + ), + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"]( + _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_11__.Directionality, + 8 + ) + ); + }; + CdkConnectedOverlay.ɵdir = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_3__[ + "ɵɵdefineDirective" + ]({ + type: CdkConnectedOverlay, + selectors: [ + ["", "cdk-connected-overlay", ""], + ["", "connected-overlay", ""], + ["", "cdkConnectedOverlay", ""], + ], + inputs: { + origin: ["cdkConnectedOverlayOrigin", "origin"], + positions: ["cdkConnectedOverlayPositions", "positions"], + positionStrategy: [ + "cdkConnectedOverlayPositionStrategy", + "positionStrategy", + ], + offsetX: ["cdkConnectedOverlayOffsetX", "offsetX"], + offsetY: ["cdkConnectedOverlayOffsetY", "offsetY"], + width: ["cdkConnectedOverlayWidth", "width"], + height: ["cdkConnectedOverlayHeight", "height"], + minWidth: ["cdkConnectedOverlayMinWidth", "minWidth"], + minHeight: ["cdkConnectedOverlayMinHeight", "minHeight"], + backdropClass: [ + "cdkConnectedOverlayBackdropClass", + "backdropClass", + ], + panelClass: ["cdkConnectedOverlayPanelClass", "panelClass"], + viewportMargin: [ + "cdkConnectedOverlayViewportMargin", + "viewportMargin", + ], + scrollStrategy: [ + "cdkConnectedOverlayScrollStrategy", + "scrollStrategy", + ], + open: ["cdkConnectedOverlayOpen", "open"], + disableClose: ["cdkConnectedOverlayDisableClose", "disableClose"], + transformOriginSelector: [ + "cdkConnectedOverlayTransformOriginOn", + "transformOriginSelector", + ], + hasBackdrop: ["cdkConnectedOverlayHasBackdrop", "hasBackdrop"], + lockPosition: ["cdkConnectedOverlayLockPosition", "lockPosition"], + flexibleDimensions: [ + "cdkConnectedOverlayFlexibleDimensions", + "flexibleDimensions", + ], + growAfterOpen: [ + "cdkConnectedOverlayGrowAfterOpen", + "growAfterOpen", + ], + push: ["cdkConnectedOverlayPush", "push"], + }, + outputs: { + backdropClick: "backdropClick", + positionChange: "positionChange", + attach: "attach", + detach: "detach", + overlayKeydown: "overlayKeydown", + overlayOutsideClick: "overlayOutsideClick", + }, + exportAs: ["cdkConnectedOverlay"], + standalone: true, + features: [ + _angular_core__WEBPACK_IMPORTED_MODULE_3__[ + "ɵɵNgOnChangesFeature" + ], + ], + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"]( + CdkConnectedOverlay, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_3__.Directive, + args: [ + { + selector: + "[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]", + exportAs: "cdkConnectedOverlay", + standalone: true, + }, + ], + }, + ], + function () { + return [ + { + type: Overlay, + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_3__.TemplateRef, + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_3__.ViewContainerRef, + }, + { + type: undefined, + decorators: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_3__.Inject, + args: [CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY], + }, + ], + }, + { + type: _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_11__.Directionality, + decorators: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_3__.Optional, + }, + ], + }, + ]; + }, + { + origin: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_3__.Input, + args: ["cdkConnectedOverlayOrigin"], + }, + ], + positions: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_3__.Input, + args: ["cdkConnectedOverlayPositions"], + }, + ], + positionStrategy: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_3__.Input, + args: ["cdkConnectedOverlayPositionStrategy"], + }, + ], + offsetX: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_3__.Input, + args: ["cdkConnectedOverlayOffsetX"], + }, + ], + offsetY: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_3__.Input, + args: ["cdkConnectedOverlayOffsetY"], + }, + ], + width: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_3__.Input, + args: ["cdkConnectedOverlayWidth"], + }, + ], + height: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_3__.Input, + args: ["cdkConnectedOverlayHeight"], + }, + ], + minWidth: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_3__.Input, + args: ["cdkConnectedOverlayMinWidth"], + }, + ], + minHeight: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_3__.Input, + args: ["cdkConnectedOverlayMinHeight"], + }, + ], + backdropClass: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_3__.Input, + args: ["cdkConnectedOverlayBackdropClass"], + }, + ], + panelClass: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_3__.Input, + args: ["cdkConnectedOverlayPanelClass"], + }, + ], + viewportMargin: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_3__.Input, + args: ["cdkConnectedOverlayViewportMargin"], + }, + ], + scrollStrategy: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_3__.Input, + args: ["cdkConnectedOverlayScrollStrategy"], + }, + ], + open: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_3__.Input, + args: ["cdkConnectedOverlayOpen"], + }, + ], + disableClose: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_3__.Input, + args: ["cdkConnectedOverlayDisableClose"], + }, + ], + transformOriginSelector: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_3__.Input, + args: ["cdkConnectedOverlayTransformOriginOn"], + }, + ], + hasBackdrop: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_3__.Input, + args: ["cdkConnectedOverlayHasBackdrop"], + }, + ], + lockPosition: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_3__.Input, + args: ["cdkConnectedOverlayLockPosition"], + }, + ], + flexibleDimensions: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_3__.Input, + args: ["cdkConnectedOverlayFlexibleDimensions"], + }, + ], + growAfterOpen: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_3__.Input, + args: ["cdkConnectedOverlayGrowAfterOpen"], + }, + ], + push: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_3__.Input, + args: ["cdkConnectedOverlayPush"], + }, + ], + backdropClick: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_3__.Output, + }, + ], + positionChange: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_3__.Output, + }, + ], + attach: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_3__.Output, + }, + ], + detach: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_3__.Output, + }, + ], + overlayKeydown: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_3__.Output, + }, + ], + overlayOutsideClick: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_3__.Output, + }, + ], + } + ); + })(); + /** @docs-private */ + function CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY_PROVIDER_FACTORY( + overlay + ) { + return () => overlay.scrollStrategies.reposition(); + } + /** @docs-private */ + const CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY_PROVIDER = { + provide: CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY, + deps: [Overlay], + useFactory: CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY_PROVIDER_FACTORY, + }; + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + class OverlayModule {} + OverlayModule.ɵfac = function OverlayModule_Factory(t) { + return new (t || OverlayModule)(); + }; + OverlayModule.ɵmod = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_3__[ + "ɵɵdefineNgModule" + ]({ + type: OverlayModule, + }); + OverlayModule.ɵinj = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_3__[ + "ɵɵdefineInjector" + ]({ + providers: [ + Overlay, + CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY_PROVIDER, + ], + imports: [ + _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_11__.BidiModule, + _angular_cdk_portal__WEBPACK_IMPORTED_MODULE_10__.PortalModule, + _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_0__.ScrollingModule, + _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_0__.ScrollingModule, + ], + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"]( + OverlayModule, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_3__.NgModule, + args: [ + { + imports: [ + _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_11__.BidiModule, + _angular_cdk_portal__WEBPACK_IMPORTED_MODULE_10__.PortalModule, + _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_0__.ScrollingModule, + CdkConnectedOverlay, + CdkOverlayOrigin, + ], + exports: [ + CdkConnectedOverlay, + CdkOverlayOrigin, + _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_0__.ScrollingModule, + ], + providers: [ + Overlay, + CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY_PROVIDER, + ], + }, + ], + }, + ], + null, + null + ); + })(); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** + * Alternative to OverlayContainer that supports correct displaying of overlay elements in + * Fullscreen mode + * https://developer.mozilla.org/en-US/docs/Web/API/Element/requestFullScreen + * + * Should be provided in the root component. + */ + class FullscreenOverlayContainer extends OverlayContainer { + constructor(_document, platform) { + super(_document, platform); + } + ngOnDestroy() { + super.ngOnDestroy(); + if (this._fullScreenEventName && this._fullScreenListener) { + this._document.removeEventListener( + this._fullScreenEventName, + this._fullScreenListener + ); + } + } + _createContainer() { + super._createContainer(); + this._adjustParentForFullscreenChange(); + this._addFullscreenChangeListener(() => + this._adjustParentForFullscreenChange() + ); + } + _adjustParentForFullscreenChange() { + if (!this._containerElement) { + return; + } + const fullscreenElement = this.getFullscreenElement(); + const parent = fullscreenElement || this._document.body; + parent.appendChild(this._containerElement); + } + _addFullscreenChangeListener(fn) { + const eventName = this._getEventName(); + if (eventName) { + if (this._fullScreenListener) { + this._document.removeEventListener( + eventName, + this._fullScreenListener + ); + } + this._document.addEventListener(eventName, fn); + this._fullScreenListener = fn; + } + } + _getEventName() { + if (!this._fullScreenEventName) { + const _document = this._document; + if (_document.fullscreenEnabled) { + this._fullScreenEventName = "fullscreenchange"; + } else if (_document.webkitFullscreenEnabled) { + this._fullScreenEventName = "webkitfullscreenchange"; + } else if (_document.mozFullScreenEnabled) { + this._fullScreenEventName = "mozfullscreenchange"; + } else if (_document.msFullscreenEnabled) { + this._fullScreenEventName = "MSFullscreenChange"; + } + } + return this._fullScreenEventName; + } + /** + * When the page is put into fullscreen mode, a specific element is specified. + * Only that element and its children are visible when in fullscreen mode. + */ + getFullscreenElement() { + const _document = this._document; + return ( + _document.fullscreenElement || + _document.webkitFullscreenElement || + _document.mozFullScreenElement || + _document.msFullscreenElement || + null + ); + } + } + FullscreenOverlayContainer.ɵfac = + function FullscreenOverlayContainer_Factory(t) { + return new (t || FullscreenOverlayContainer)( + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵinject"]( + _angular_common__WEBPACK_IMPORTED_MODULE_4__.DOCUMENT + ), + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵinject"]( + _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_1__.Platform + ) + ); + }; + FullscreenOverlayContainer.ɵprov = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_3__[ + "ɵɵdefineInjectable" + ]({ + token: FullscreenOverlayContainer, + factory: FullscreenOverlayContainer.ɵfac, + providedIn: "root", + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"]( + FullscreenOverlayContainer, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_3__.Injectable, + args: [ + { + providedIn: "root", + }, + ], + }, + ], + function () { + return [ + { + type: undefined, + decorators: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_3__.Inject, + args: [ + _angular_common__WEBPACK_IMPORTED_MODULE_4__.DOCUMENT, + ], + }, + ], + }, + { + type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_1__.Platform, + }, + ]; + }, + null + ); + })(); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + + /** + * Generated bundle index. Do not edit. + */ + + /***/ + }, + + /***/ 9107: + /*!*********************************************************!*\ + !*** ./node_modules/@angular/cdk/fesm2020/platform.mjs ***! + \*********************************************************/ + /***/ ( + __unused_webpack___webpack_module__, + __webpack_exports__, + __webpack_require__ + ) => { + __webpack_require__.r(__webpack_exports__); + /* harmony export */ __webpack_require__.d(__webpack_exports__, { + /* harmony export */ Platform: () => /* binding */ Platform, + /* harmony export */ PlatformModule: () => + /* binding */ PlatformModule, + /* harmony export */ _getEventTarget: () => + /* binding */ _getEventTarget, + /* harmony export */ _getFocusedElementPierceShadowDom: () => + /* binding */ _getFocusedElementPierceShadowDom, + /* harmony export */ _getShadowRoot: () => + /* binding */ _getShadowRoot, + /* harmony export */ _isTestEnvironment: () => + /* binding */ _isTestEnvironment, + /* harmony export */ _supportsShadowDom: () => + /* binding */ _supportsShadowDom, + /* harmony export */ getRtlScrollAxisType: () => + /* binding */ getRtlScrollAxisType, + /* harmony export */ getSupportedInputTypes: () => + /* binding */ getSupportedInputTypes, + /* harmony export */ normalizePassiveListenerOptions: () => + /* binding */ normalizePassiveListenerOptions, + /* harmony export */ supportsPassiveEventListeners: () => + /* binding */ supportsPassiveEventListeners, + /* harmony export */ supportsScrollBehavior: () => + /* binding */ supportsScrollBehavior, + /* harmony export */ + }); + /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = + __webpack_require__(/*! @angular/core */ 2560); + /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_0__ = + __webpack_require__(/*! @angular/common */ 4666); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + // Whether the current platform supports the V8 Break Iterator. The V8 check + // is necessary to detect all Blink based browsers. + let hasV8BreakIterator; + // We need a try/catch around the reference to `Intl`, because accessing it in some cases can + // cause IE to throw. These cases are tied to particular versions of Windows and can happen if + // the consumer is providing a polyfilled `Map`. See: + // https://github.com/Microsoft/ChakraCore/issues/3189 + // https://github.com/angular/components/issues/15687 + try { + hasV8BreakIterator = + typeof Intl !== "undefined" && Intl.v8BreakIterator; + } catch { + hasV8BreakIterator = false; + } + /** + * Service to detect the current platform by comparing the userAgent strings and + * checking browser-specific global properties. + */ + class Platform { + constructor(_platformId) { + this._platformId = _platformId; + // We want to use the Angular platform check because if the Document is shimmed + // without the navigator, the following checks will fail. This is preferred because + // sometimes the Document may be shimmed without the user's knowledge or intention + /** Whether the Angular application is being rendered in the browser. */ + this.isBrowser = this._platformId + ? (0, + _angular_common__WEBPACK_IMPORTED_MODULE_0__.isPlatformBrowser)( + this._platformId + ) + : typeof document === "object" && !!document; + /** Whether the current browser is Microsoft Edge. */ + this.EDGE = this.isBrowser && /(edge)/i.test(navigator.userAgent); + /** Whether the current rendering engine is Microsoft Trident. */ + this.TRIDENT = + this.isBrowser && /(msie|trident)/i.test(navigator.userAgent); + // EdgeHTML and Trident mock Blink specific things and need to be excluded from this check. + /** Whether the current rendering engine is Blink. */ + this.BLINK = + this.isBrowser && + !!(window.chrome || hasV8BreakIterator) && + typeof CSS !== "undefined" && + !this.EDGE && + !this.TRIDENT; + // Webkit is part of the userAgent in EdgeHTML, Blink and Trident. Therefore we need to + // ensure that Webkit runs standalone and is not used as another engine's base. + /** Whether the current rendering engine is WebKit. */ + this.WEBKIT = + this.isBrowser && + /AppleWebKit/i.test(navigator.userAgent) && + !this.BLINK && + !this.EDGE && + !this.TRIDENT; + /** Whether the current platform is Apple iOS. */ + this.IOS = + this.isBrowser && + /iPad|iPhone|iPod/.test(navigator.userAgent) && + !("MSStream" in window); + // It's difficult to detect the plain Gecko engine, because most of the browsers identify + // them self as Gecko-like browsers and modify the userAgent's according to that. + // Since we only cover one explicit Firefox case, we can simply check for Firefox + // instead of having an unstable check for Gecko. + /** Whether the current browser is Firefox. */ + this.FIREFOX = + this.isBrowser && + /(firefox|minefield)/i.test(navigator.userAgent); + /** Whether the current platform is Android. */ + // Trident on mobile adds the android platform to the userAgent to trick detections. + this.ANDROID = + this.isBrowser && + /android/i.test(navigator.userAgent) && + !this.TRIDENT; + // Safari browsers will include the Safari keyword in their userAgent. Some browsers may fake + // this and just place the Safari keyword in the userAgent. To be more safe about Safari every + // Safari browser should also use Webkit as its layout engine. + /** Whether the current browser is Safari. */ + this.SAFARI = + this.isBrowser && + /safari/i.test(navigator.userAgent) && + this.WEBKIT; + } + } + Platform.ɵfac = function Platform_Factory(t) { + return new (t || Platform)( + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_1__.PLATFORM_ID + ) + ); + }; + Platform.ɵprov = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵdefineInjectable" + ]({ + token: Platform, + factory: Platform.ɵfac, + providedIn: "root", + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"]( + Platform, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Injectable, + args: [ + { + providedIn: "root", + }, + ], + }, + ], + function () { + return [ + { + type: Object, + decorators: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Inject, + args: [ + _angular_core__WEBPACK_IMPORTED_MODULE_1__.PLATFORM_ID, + ], + }, + ], + }, + ]; + }, + null + ); + })(); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + class PlatformModule {} + PlatformModule.ɵfac = function PlatformModule_Factory(t) { + return new (t || PlatformModule)(); + }; + PlatformModule.ɵmod = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵdefineNgModule" + ]({ + type: PlatformModule, + }); + PlatformModule.ɵinj = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_1__[ + "ɵɵdefineInjector" + ]({}); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"]( + PlatformModule, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.NgModule, + args: [{}], + }, + ], + null, + null + ); + })(); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** Cached result Set of input types support by the current browser. */ + let supportedInputTypes; + /** Types of `` that *might* be supported. */ + const candidateInputTypes = [ + // `color` must come first. Chrome 56 shows a warning if we change the type to `color` after + // first changing it to something else: + // The specified value "" does not conform to the required format. + // The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers. + "color", + "button", + "checkbox", + "date", + "datetime-local", + "email", + "file", + "hidden", + "image", + "month", + "number", + "password", + "radio", + "range", + "reset", + "search", + "submit", + "tel", + "text", + "time", + "url", + "week", + ]; + /** @returns The input types supported by this browser. */ + function getSupportedInputTypes() { + // Result is cached. + if (supportedInputTypes) { + return supportedInputTypes; + } + // We can't check if an input type is not supported until we're on the browser, so say that + // everything is supported when not on the browser. We don't use `Platform` here since it's + // just a helper function and can't inject it. + if (typeof document !== "object" || !document) { + supportedInputTypes = new Set(candidateInputTypes); + return supportedInputTypes; + } + let featureTestInput = document.createElement("input"); + supportedInputTypes = new Set( + candidateInputTypes.filter((value) => { + featureTestInput.setAttribute("type", value); + return featureTestInput.type === value; + }) + ); + return supportedInputTypes; + } + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** Cached result of whether the user's browser supports passive event listeners. */ + let supportsPassiveEvents; + /** + * Checks whether the user's browser supports passive event listeners. + * See: https://github.com/WICG/EventListenerOptions/blob/gh-pages/explainer.md + */ + function supportsPassiveEventListeners() { + if (supportsPassiveEvents == null && typeof window !== "undefined") { + try { + window.addEventListener( + "test", + null, + Object.defineProperty({}, "passive", { + get: () => (supportsPassiveEvents = true), + }) + ); + } finally { + supportsPassiveEvents = supportsPassiveEvents || false; + } + } + return supportsPassiveEvents; + } + /** + * Normalizes an `AddEventListener` object to something that can be passed + * to `addEventListener` on any browser, no matter whether it supports the + * `options` parameter. + * @param options Object to be normalized. + */ + function normalizePassiveListenerOptions(options) { + return supportsPassiveEventListeners() ? options : !!options.capture; + } + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** Cached result of the way the browser handles the horizontal scroll axis in RTL mode. */ + let rtlScrollAxisType; + /** Cached result of the check that indicates whether the browser supports scroll behaviors. */ + let scrollBehaviorSupported; + /** Check whether the browser supports scroll behaviors. */ + function supportsScrollBehavior() { + if (scrollBehaviorSupported == null) { + // If we're not in the browser, it can't be supported. Also check for `Element`, because + // some projects stub out the global `document` during SSR which can throw us off. + if ( + typeof document !== "object" || + !document || + typeof Element !== "function" || + !Element + ) { + scrollBehaviorSupported = false; + return scrollBehaviorSupported; + } + // If the element can have a `scrollBehavior` style, we can be sure that it's supported. + if ("scrollBehavior" in document.documentElement.style) { + scrollBehaviorSupported = true; + } else { + // At this point we have 3 possibilities: `scrollTo` isn't supported at all, it's + // supported but it doesn't handle scroll behavior, or it has been polyfilled. + const scrollToFunction = Element.prototype.scrollTo; + if (scrollToFunction) { + // We can detect if the function has been polyfilled by calling `toString` on it. Native + // functions are obfuscated using `[native code]`, whereas if it was overwritten we'd get + // the actual function source. Via https://davidwalsh.name/detect-native-function. Consider + // polyfilled functions as supporting scroll behavior. + scrollBehaviorSupported = !/\{\s*\[native code\]\s*\}/.test( + scrollToFunction.toString() + ); + } else { + scrollBehaviorSupported = false; + } + } + } + return scrollBehaviorSupported; + } + /** + * Checks the type of RTL scroll axis used by this browser. As of time of writing, Chrome is NORMAL, + * Firefox & Safari are NEGATED, and IE & Edge are INVERTED. + */ + function getRtlScrollAxisType() { + // We can't check unless we're on the browser. Just assume 'normal' if we're not. + if (typeof document !== "object" || !document) { + return 0 /* RtlScrollAxisType.NORMAL */; + } + + if (rtlScrollAxisType == null) { + // Create a 1px wide scrolling container and a 2px wide content element. + const scrollContainer = document.createElement("div"); + const containerStyle = scrollContainer.style; + scrollContainer.dir = "rtl"; + containerStyle.width = "1px"; + containerStyle.overflow = "auto"; + containerStyle.visibility = "hidden"; + containerStyle.pointerEvents = "none"; + containerStyle.position = "absolute"; + const content = document.createElement("div"); + const contentStyle = content.style; + contentStyle.width = "2px"; + contentStyle.height = "1px"; + scrollContainer.appendChild(content); + document.body.appendChild(scrollContainer); + rtlScrollAxisType = 0 /* RtlScrollAxisType.NORMAL */; + // The viewport starts scrolled all the way to the right in RTL mode. If we are in a NORMAL + // browser this would mean that the scrollLeft should be 1. If it's zero instead we know we're + // dealing with one of the other two types of browsers. + if (scrollContainer.scrollLeft === 0) { + // In a NEGATED browser the scrollLeft is always somewhere in [-maxScrollAmount, 0]. For an + // INVERTED browser it is always somewhere in [0, maxScrollAmount]. We can determine which by + // setting to the scrollLeft to 1. This is past the max for a NEGATED browser, so it will + // return 0 when we read it again. + scrollContainer.scrollLeft = 1; + rtlScrollAxisType = + scrollContainer.scrollLeft === 0 + ? 1 /* RtlScrollAxisType.NEGATED */ + : 2 /* RtlScrollAxisType.INVERTED */; + } + + scrollContainer.remove(); + } + return rtlScrollAxisType; + } + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + let shadowDomIsSupported; + /** Checks whether the user's browser support Shadow DOM. */ + function _supportsShadowDom() { + if (shadowDomIsSupported == null) { + const head = typeof document !== "undefined" ? document.head : null; + shadowDomIsSupported = !!( + head && + (head.createShadowRoot || head.attachShadow) + ); + } + return shadowDomIsSupported; + } + /** Gets the shadow root of an element, if supported and the element is inside the Shadow DOM. */ + function _getShadowRoot(element) { + if (_supportsShadowDom()) { + const rootNode = element.getRootNode ? element.getRootNode() : null; + // Note that this should be caught by `_supportsShadowDom`, but some + // teams have been able to hit this code path on unsupported browsers. + if ( + typeof ShadowRoot !== "undefined" && + ShadowRoot && + rootNode instanceof ShadowRoot + ) { + return rootNode; + } + } + return null; + } + /** + * Gets the currently-focused element on the page while + * also piercing through Shadow DOM boundaries. + */ + function _getFocusedElementPierceShadowDom() { + let activeElement = + typeof document !== "undefined" && document + ? document.activeElement + : null; + while (activeElement && activeElement.shadowRoot) { + const newActiveElement = activeElement.shadowRoot.activeElement; + if (newActiveElement === activeElement) { + break; + } else { + activeElement = newActiveElement; + } + } + return activeElement; + } + /** Gets the target of an event while accounting for Shadow DOM. */ + function _getEventTarget(event) { + // If an event is bound outside the Shadow DOM, the `event.target` will + // point to the shadow root so we have to use `composedPath` instead. + return event.composedPath ? event.composedPath()[0] : event.target; + } + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** Gets whether the code is currently running in a test environment. */ + function _isTestEnvironment() { + // We can't use `declare const` because it causes conflicts inside Google with the real typings + // for these symbols and we can't read them off the global object, because they don't appear to + // be attached there for some runners like Jest. + // (see: https://github.com/angular/components/issues/23365#issuecomment-938146643) + return ( + // @ts-ignore + (typeof __karma__ !== "undefined" && !!__karma__) || + // @ts-ignore + (typeof jasmine !== "undefined" && !!jasmine) || + // @ts-ignore + (typeof jest !== "undefined" && !!jest) || + // @ts-ignore + (typeof Mocha !== "undefined" && !!Mocha) + ); + } + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + + /** + * Generated bundle index. Do not edit. + */ + + /***/ + }, + + /***/ 7520: + /*!*******************************************************!*\ + !*** ./node_modules/@angular/cdk/fesm2020/portal.mjs ***! + \*******************************************************/ + /***/ ( + __unused_webpack___webpack_module__, + __webpack_exports__, + __webpack_require__ + ) => { + __webpack_require__.r(__webpack_exports__); + /* harmony export */ __webpack_require__.d(__webpack_exports__, { + /* harmony export */ BasePortalHost: () => + /* binding */ BasePortalHost, + /* harmony export */ BasePortalOutlet: () => + /* binding */ BasePortalOutlet, + /* harmony export */ CdkPortal: () => /* binding */ CdkPortal, + /* harmony export */ CdkPortalOutlet: () => + /* binding */ CdkPortalOutlet, + /* harmony export */ ComponentPortal: () => + /* binding */ ComponentPortal, + /* harmony export */ DomPortal: () => /* binding */ DomPortal, + /* harmony export */ DomPortalHost: () => /* binding */ DomPortalHost, + /* harmony export */ DomPortalOutlet: () => + /* binding */ DomPortalOutlet, + /* harmony export */ Portal: () => /* binding */ Portal, + /* harmony export */ PortalHostDirective: () => + /* binding */ PortalHostDirective, + /* harmony export */ PortalInjector: () => + /* binding */ PortalInjector, + /* harmony export */ PortalModule: () => /* binding */ PortalModule, + /* harmony export */ TemplatePortal: () => + /* binding */ TemplatePortal, + /* harmony export */ TemplatePortalDirective: () => + /* binding */ TemplatePortalDirective, + /* harmony export */ + }); + /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = + __webpack_require__(/*! @angular/core */ 2560); + /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = + __webpack_require__(/*! @angular/common */ 4666); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** + * Throws an exception when attempting to attach a null portal to a host. + * @docs-private + */ + function throwNullPortalError() { + throw Error("Must provide a portal to attach"); + } + /** + * Throws an exception when attempting to attach a portal to a host that is already attached. + * @docs-private + */ + function throwPortalAlreadyAttachedError() { + throw Error("Host already has a portal attached"); + } + /** + * Throws an exception when attempting to attach a portal to an already-disposed host. + * @docs-private + */ + function throwPortalOutletAlreadyDisposedError() { + throw Error("This PortalOutlet has already been disposed"); + } + /** + * Throws an exception when attempting to attach an unknown portal type. + * @docs-private + */ + function throwUnknownPortalTypeError() { + throw Error( + "Attempting to attach an unknown Portal type. BasePortalOutlet accepts either " + + "a ComponentPortal or a TemplatePortal." + ); + } + /** + * Throws an exception when attempting to attach a portal to a null host. + * @docs-private + */ + function throwNullPortalOutletError() { + throw Error("Attempting to attach a portal to a null PortalOutlet"); + } + /** + * Throws an exception when attempting to detach a portal that is not attached. + * @docs-private + */ + function throwNoPortalAttachedError() { + throw Error( + "Attempting to detach a portal that is not attached to a host" + ); + } + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** + * A `Portal` is something that you want to render somewhere else. + * It can be attach to / detached from a `PortalOutlet`. + */ + class Portal { + /** Attach this portal to a host. */ + attach(host) { + if (typeof ngDevMode === "undefined" || ngDevMode) { + if (host == null) { + throwNullPortalOutletError(); + } + if (host.hasAttached()) { + throwPortalAlreadyAttachedError(); + } + } + this._attachedHost = host; + return host.attach(this); + } + /** Detach this portal from its host */ + detach() { + let host = this._attachedHost; + if (host != null) { + this._attachedHost = null; + host.detach(); + } else if (typeof ngDevMode === "undefined" || ngDevMode) { + throwNoPortalAttachedError(); + } + } + /** Whether this portal is attached to a host. */ + get isAttached() { + return this._attachedHost != null; + } + /** + * Sets the PortalOutlet reference without performing `attach()`. This is used directly by + * the PortalOutlet when it is performing an `attach()` or `detach()`. + */ + setAttachedHost(host) { + this._attachedHost = host; + } + } + /** + * A `ComponentPortal` is a portal that instantiates some Component upon attachment. + */ + class ComponentPortal extends Portal { + constructor( + component, + viewContainerRef, + injector, + componentFactoryResolver, + projectableNodes + ) { + super(); + this.component = component; + this.viewContainerRef = viewContainerRef; + this.injector = injector; + this.componentFactoryResolver = componentFactoryResolver; + this.projectableNodes = projectableNodes; + } + } + /** + * A `TemplatePortal` is a portal that represents some embedded template (TemplateRef). + */ + class TemplatePortal extends Portal { + constructor /** The embedded template that will be used to instantiate an embedded View in the host. */( + templateRef /** Reference to the ViewContainer into which the template will be stamped out. */, + viewContainerRef /** Contextual data to be passed in to the embedded view. */, + context /** The injector to use for the embedded view. */, + injector + ) { + super(); + this.templateRef = templateRef; + this.viewContainerRef = viewContainerRef; + this.context = context; + this.injector = injector; + } + get origin() { + return this.templateRef.elementRef; + } + /** + * Attach the portal to the provided `PortalOutlet`. + * When a context is provided it will override the `context` property of the `TemplatePortal` + * instance. + */ + attach(host, context = this.context) { + this.context = context; + return super.attach(host); + } + detach() { + this.context = undefined; + return super.detach(); + } + } + /** + * A `DomPortal` is a portal whose DOM element will be taken from its current position + * in the DOM and moved into a portal outlet, when it is attached. On detach, the content + * will be restored to its original position. + */ + class DomPortal extends Portal { + constructor(element) { + super(); + this.element = + element instanceof + _angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef + ? element.nativeElement + : element; + } + } + /** + * Partial implementation of PortalOutlet that handles attaching + * ComponentPortal and TemplatePortal. + */ + class BasePortalOutlet { + constructor() { + /** Whether this host has already been permanently disposed. */ + this._isDisposed = false; + // @breaking-change 10.0.0 `attachDomPortal` to become a required abstract method. + this.attachDomPortal = null; + } + /** Whether this host has an attached portal. */ + hasAttached() { + return !!this._attachedPortal; + } + /** Attaches a portal. */ + attach(portal) { + if (typeof ngDevMode === "undefined" || ngDevMode) { + if (!portal) { + throwNullPortalError(); + } + if (this.hasAttached()) { + throwPortalAlreadyAttachedError(); + } + if (this._isDisposed) { + throwPortalOutletAlreadyDisposedError(); + } + } + if (portal instanceof ComponentPortal) { + this._attachedPortal = portal; + return this.attachComponentPortal(portal); + } else if (portal instanceof TemplatePortal) { + this._attachedPortal = portal; + return this.attachTemplatePortal(portal); + // @breaking-change 10.0.0 remove null check for `this.attachDomPortal`. + } else if (this.attachDomPortal && portal instanceof DomPortal) { + this._attachedPortal = portal; + return this.attachDomPortal(portal); + } + if (typeof ngDevMode === "undefined" || ngDevMode) { + throwUnknownPortalTypeError(); + } + } + /** Detaches a previously attached portal. */ + detach() { + if (this._attachedPortal) { + this._attachedPortal.setAttachedHost(null); + this._attachedPortal = null; + } + this._invokeDisposeFn(); + } + /** Permanently dispose of this portal host. */ + dispose() { + if (this.hasAttached()) { + this.detach(); + } + this._invokeDisposeFn(); + this._isDisposed = true; + } + /** @docs-private */ + setDisposeFn(fn) { + this._disposeFn = fn; + } + _invokeDisposeFn() { + if (this._disposeFn) { + this._disposeFn(); + this._disposeFn = null; + } + } + } + /** + * @deprecated Use `BasePortalOutlet` instead. + * @breaking-change 9.0.0 + */ + class BasePortalHost extends BasePortalOutlet {} + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** + * A PortalOutlet for attaching portals to an arbitrary DOM element outside of the Angular + * application context. + */ + class DomPortalOutlet extends BasePortalOutlet { + /** + * @param outletElement Element into which the content is projected. + * @param _componentFactoryResolver Used to resolve the component factory. + * Only required when attaching component portals. + * @param _appRef Reference to the application. Only used in component portals when there + * is no `ViewContainerRef` available. + * @param _defaultInjector Injector to use as a fallback when the portal being attached doesn't + * have one. Only used for component portals. + * @param _document Reference to the document. Used when attaching a DOM portal. Will eventually + * become a required parameter. + */ + constructor /** Element into which the content is projected. */( + outletElement, + _componentFactoryResolver, + _appRef, + _defaultInjector, + /** + * @deprecated `_document` Parameter to be made required. + * @breaking-change 10.0.0 + */ + _document + ) { + super(); + this.outletElement = outletElement; + this._componentFactoryResolver = _componentFactoryResolver; + this._appRef = _appRef; + this._defaultInjector = _defaultInjector; + /** + * Attaches a DOM portal by transferring its content into the outlet. + * @param portal Portal to be attached. + * @deprecated To be turned into a method. + * @breaking-change 10.0.0 + */ + this.attachDomPortal = (portal) => { + // @breaking-change 10.0.0 Remove check and error once the + // `_document` constructor parameter is required. + if ( + !this._document && + (typeof ngDevMode === "undefined" || ngDevMode) + ) { + throw Error( + "Cannot attach DOM portal without _document constructor parameter" + ); + } + const element = portal.element; + if ( + !element.parentNode && + (typeof ngDevMode === "undefined" || ngDevMode) + ) { + throw Error( + "DOM portal content must be attached to a parent node." + ); + } + // Anchor used to save the element's previous position so + // that we can restore it when the portal is detached. + const anchorNode = this._document.createComment("dom-portal"); + element.parentNode.insertBefore(anchorNode, element); + this.outletElement.appendChild(element); + this._attachedPortal = portal; + super.setDisposeFn(() => { + // We can't use `replaceWith` here because IE doesn't support it. + if (anchorNode.parentNode) { + anchorNode.parentNode.replaceChild(element, anchorNode); + } + }); + }; + this._document = _document; + } + /** + * Attach the given ComponentPortal to DOM element using the ComponentFactoryResolver. + * @param portal Portal to be attached + * @returns Reference to the created component. + */ + attachComponentPortal(portal) { + const resolver = + portal.componentFactoryResolver || this._componentFactoryResolver; + if ((typeof ngDevMode === "undefined" || ngDevMode) && !resolver) { + throw Error( + "Cannot attach component portal to outlet without a ComponentFactoryResolver." + ); + } + const componentFactory = resolver.resolveComponentFactory( + portal.component + ); + let componentRef; + // If the portal specifies a ViewContainerRef, we will use that as the attachment point + // for the component (in terms of Angular's component tree, not rendering). + // When the ViewContainerRef is missing, we use the factory to create the component directly + // and then manually attach the view to the application. + if (portal.viewContainerRef) { + componentRef = portal.viewContainerRef.createComponent( + componentFactory, + portal.viewContainerRef.length, + portal.injector || portal.viewContainerRef.injector, + portal.projectableNodes || undefined + ); + this.setDisposeFn(() => componentRef.destroy()); + } else { + if ( + (typeof ngDevMode === "undefined" || ngDevMode) && + !this._appRef + ) { + throw Error( + "Cannot attach component portal to outlet without an ApplicationRef." + ); + } + componentRef = componentFactory.create( + portal.injector || + this._defaultInjector || + _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injector.NULL + ); + this._appRef.attachView(componentRef.hostView); + this.setDisposeFn(() => { + // Verify that the ApplicationRef has registered views before trying to detach a host view. + // This check also protects the `detachView` from being called on a destroyed ApplicationRef. + if (this._appRef.viewCount > 0) { + this._appRef.detachView(componentRef.hostView); + } + componentRef.destroy(); + }); + } + // At this point the component has been instantiated, so we move it to the location in the DOM + // where we want it to be rendered. + this.outletElement.appendChild( + this._getComponentRootNode(componentRef) + ); + this._attachedPortal = portal; + return componentRef; + } + /** + * Attaches a template portal to the DOM as an embedded view. + * @param portal Portal to be attached. + * @returns Reference to the created embedded view. + */ + attachTemplatePortal(portal) { + let viewContainer = portal.viewContainerRef; + let viewRef = viewContainer.createEmbeddedView( + portal.templateRef, + portal.context, + { + injector: portal.injector, + } + ); + // The method `createEmbeddedView` will add the view as a child of the viewContainer. + // But for the DomPortalOutlet the view can be added everywhere in the DOM + // (e.g Overlay Container) To move the view to the specified host element. We just + // re-append the existing root nodes. + viewRef.rootNodes.forEach((rootNode) => + this.outletElement.appendChild(rootNode) + ); + // Note that we want to detect changes after the nodes have been moved so that + // any directives inside the portal that are looking at the DOM inside a lifecycle + // hook won't be invoked too early. + viewRef.detectChanges(); + this.setDisposeFn(() => { + let index = viewContainer.indexOf(viewRef); + if (index !== -1) { + viewContainer.remove(index); + } + }); + this._attachedPortal = portal; + // TODO(jelbourn): Return locals from view. + return viewRef; + } + /** + * Clears out a portal from the DOM. + */ + dispose() { + super.dispose(); + this.outletElement.remove(); + } + /** Gets the root HTMLElement for an instantiated component. */ + _getComponentRootNode(componentRef) { + return componentRef.hostView.rootNodes[0]; + } + } + /** + * @deprecated Use `DomPortalOutlet` instead. + * @breaking-change 9.0.0 + */ + class DomPortalHost extends DomPortalOutlet {} + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** + * Directive version of a `TemplatePortal`. Because the directive *is* a TemplatePortal, + * the directive instance itself can be attached to a host, enabling declarative use of portals. + */ + class CdkPortal extends TemplatePortal { + constructor(templateRef, viewContainerRef) { + super(templateRef, viewContainerRef); + } + } + CdkPortal.ɵfac = function CdkPortal_Factory(t) { + return new (t || CdkPortal)( + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewContainerRef + ) + ); + }; + CdkPortal.ɵdir = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineDirective" + ]({ + type: CdkPortal, + selectors: [["", "cdkPortal", ""]], + exportAs: ["cdkPortal"], + features: [ + _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵInheritDefinitionFeature" + ], + ], + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + CdkPortal, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive, + args: [ + { + selector: "[cdkPortal]", + exportAs: "cdkPortal", + }, + ], + }, + ], + function () { + return [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef, + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewContainerRef, + }, + ]; + }, + null + ); + })(); + /** + * @deprecated Use `CdkPortal` instead. + * @breaking-change 9.0.0 + */ + class TemplatePortalDirective extends CdkPortal {} + TemplatePortalDirective.ɵfac = /* @__PURE__ */ (function () { + let ɵTemplatePortalDirective_BaseFactory; + return function TemplatePortalDirective_Factory(t) { + return ( + ɵTemplatePortalDirective_BaseFactory || + (ɵTemplatePortalDirective_BaseFactory = + _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵgetInheritedFactory" + ](TemplatePortalDirective)) + )(t || TemplatePortalDirective); + }; + })(); + TemplatePortalDirective.ɵdir = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineDirective" + ]({ + type: TemplatePortalDirective, + selectors: [ + ["", "cdk-portal", ""], + ["", "portal", ""], + ], + exportAs: ["cdkPortal"], + features: [ + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([ + { + provide: CdkPortal, + useExisting: TemplatePortalDirective, + }, + ]), + _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵInheritDefinitionFeature" + ], + ], + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + TemplatePortalDirective, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive, + args: [ + { + selector: "[cdk-portal], [portal]", + exportAs: "cdkPortal", + providers: [ + { + provide: CdkPortal, + useExisting: TemplatePortalDirective, + }, + ], + }, + ], + }, + ], + null, + null + ); + })(); + /** + * Directive version of a PortalOutlet. Because the directive *is* a PortalOutlet, portals can be + * directly attached to it, enabling declarative use. + * + * Usage: + * `` + */ + class CdkPortalOutlet extends BasePortalOutlet { + constructor( + _componentFactoryResolver, + _viewContainerRef, + /** + * @deprecated `_document` parameter to be made required. + * @breaking-change 9.0.0 + */ + _document + ) { + super(); + this._componentFactoryResolver = _componentFactoryResolver; + this._viewContainerRef = _viewContainerRef; + /** Whether the portal component is initialized. */ + this._isInitialized = false; + /** Emits when a portal is attached to the outlet. */ + this.attached = + new _angular_core__WEBPACK_IMPORTED_MODULE_0__.EventEmitter(); + /** + * Attaches the given DomPortal to this PortalHost by moving all of the portal content into it. + * @param portal Portal to be attached. + * @deprecated To be turned into a method. + * @breaking-change 10.0.0 + */ + this.attachDomPortal = (portal) => { + // @breaking-change 9.0.0 Remove check and error once the + // `_document` constructor parameter is required. + if ( + !this._document && + (typeof ngDevMode === "undefined" || ngDevMode) + ) { + throw Error( + "Cannot attach DOM portal without _document constructor parameter" + ); + } + const element = portal.element; + if ( + !element.parentNode && + (typeof ngDevMode === "undefined" || ngDevMode) + ) { + throw Error( + "DOM portal content must be attached to a parent node." + ); + } + // Anchor used to save the element's previous position so + // that we can restore it when the portal is detached. + const anchorNode = this._document.createComment("dom-portal"); + portal.setAttachedHost(this); + element.parentNode.insertBefore(anchorNode, element); + this._getRootNode().appendChild(element); + this._attachedPortal = portal; + super.setDisposeFn(() => { + if (anchorNode.parentNode) { + anchorNode.parentNode.replaceChild(element, anchorNode); + } + }); + }; + this._document = _document; + } + /** Portal associated with the Portal outlet. */ + get portal() { + return this._attachedPortal; + } + set portal(portal) { + // Ignore the cases where the `portal` is set to a falsy value before the lifecycle hooks have + // run. This handles the cases where the user might do something like `
` + // and attach a portal programmatically in the parent component. When Angular does the first CD + // round, it will fire the setter with empty string, causing the user's content to be cleared. + if (this.hasAttached() && !portal && !this._isInitialized) { + return; + } + if (this.hasAttached()) { + super.detach(); + } + if (portal) { + super.attach(portal); + } + this._attachedPortal = portal || null; + } + /** Component or view reference that is attached to the portal. */ + get attachedRef() { + return this._attachedRef; + } + ngOnInit() { + this._isInitialized = true; + } + ngOnDestroy() { + super.dispose(); + this._attachedRef = this._attachedPortal = null; + } + /** + * Attach the given ComponentPortal to this PortalOutlet using the ComponentFactoryResolver. + * + * @param portal Portal to be attached to the portal outlet. + * @returns Reference to the created component. + */ + attachComponentPortal(portal) { + portal.setAttachedHost(this); + // If the portal specifies an origin, use that as the logical location of the component + // in the application tree. Otherwise use the location of this PortalOutlet. + const viewContainerRef = + portal.viewContainerRef != null + ? portal.viewContainerRef + : this._viewContainerRef; + const resolver = + portal.componentFactoryResolver || this._componentFactoryResolver; + const componentFactory = resolver.resolveComponentFactory( + portal.component + ); + const ref = viewContainerRef.createComponent( + componentFactory, + viewContainerRef.length, + portal.injector || viewContainerRef.injector, + portal.projectableNodes || undefined + ); + // If we're using a view container that's different from the injected one (e.g. when the portal + // specifies its own) we need to move the component into the outlet, otherwise it'll be rendered + // inside of the alternate view container. + if (viewContainerRef !== this._viewContainerRef) { + this._getRootNode().appendChild(ref.hostView.rootNodes[0]); + } + super.setDisposeFn(() => ref.destroy()); + this._attachedPortal = portal; + this._attachedRef = ref; + this.attached.emit(ref); + return ref; + } + /** + * Attach the given TemplatePortal to this PortalHost as an embedded View. + * @param portal Portal to be attached. + * @returns Reference to the created embedded view. + */ + attachTemplatePortal(portal) { + portal.setAttachedHost(this); + const viewRef = this._viewContainerRef.createEmbeddedView( + portal.templateRef, + portal.context, + { + injector: portal.injector, + } + ); + super.setDisposeFn(() => this._viewContainerRef.clear()); + this._attachedPortal = portal; + this._attachedRef = viewRef; + this.attached.emit(viewRef); + return viewRef; + } + /** Gets the root node of the portal outlet. */ + _getRootNode() { + const nativeElement = this._viewContainerRef.element.nativeElement; + // The directive could be set on a template which will result in a comment + // node being the root. Use the comment's parent node if that is the case. + return nativeElement.nodeType === nativeElement.ELEMENT_NODE + ? nativeElement + : nativeElement.parentNode; + } + } + CdkPortalOutlet.ɵfac = function CdkPortalOutlet_Factory(t) { + return new (t || CdkPortalOutlet)( + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_0__.ComponentFactoryResolver + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewContainerRef + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + _angular_common__WEBPACK_IMPORTED_MODULE_1__.DOCUMENT + ) + ); + }; + CdkPortalOutlet.ɵdir = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineDirective" + ]({ + type: CdkPortalOutlet, + selectors: [["", "cdkPortalOutlet", ""]], + inputs: { + portal: ["cdkPortalOutlet", "portal"], + }, + outputs: { + attached: "attached", + }, + exportAs: ["cdkPortalOutlet"], + features: [ + _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵInheritDefinitionFeature" + ], + ], + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + CdkPortalOutlet, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive, + args: [ + { + selector: "[cdkPortalOutlet]", + exportAs: "cdkPortalOutlet", + inputs: ["portal: cdkPortalOutlet"], + }, + ], + }, + ], + function () { + return [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ComponentFactoryResolver, + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewContainerRef, + }, + { + type: undefined, + decorators: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject, + args: [ + _angular_common__WEBPACK_IMPORTED_MODULE_1__.DOCUMENT, + ], + }, + ], + }, + ]; + }, + { + attached: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Output, + }, + ], + } + ); + })(); + /** + * @deprecated Use `CdkPortalOutlet` instead. + * @breaking-change 9.0.0 + */ + class PortalHostDirective extends CdkPortalOutlet {} + PortalHostDirective.ɵfac = /* @__PURE__ */ (function () { + let ɵPortalHostDirective_BaseFactory; + return function PortalHostDirective_Factory(t) { + return ( + ɵPortalHostDirective_BaseFactory || + (ɵPortalHostDirective_BaseFactory = + _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵgetInheritedFactory" + ](PortalHostDirective)) + )(t || PortalHostDirective); + }; + })(); + PortalHostDirective.ɵdir = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineDirective" + ]({ + type: PortalHostDirective, + selectors: [ + ["", "cdkPortalHost", ""], + ["", "portalHost", ""], + ], + inputs: { + portal: ["cdkPortalHost", "portal"], + }, + exportAs: ["cdkPortalHost"], + features: [ + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([ + { + provide: CdkPortalOutlet, + useExisting: PortalHostDirective, + }, + ]), + _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵInheritDefinitionFeature" + ], + ], + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + PortalHostDirective, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive, + args: [ + { + selector: "[cdkPortalHost], [portalHost]", + exportAs: "cdkPortalHost", + inputs: ["portal: cdkPortalHost"], + providers: [ + { + provide: CdkPortalOutlet, + useExisting: PortalHostDirective, + }, + ], + }, + ], + }, + ], + null, + null + ); + })(); + class PortalModule {} + PortalModule.ɵfac = function PortalModule_Factory(t) { + return new (t || PortalModule)(); + }; + PortalModule.ɵmod = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineNgModule" + ]({ + type: PortalModule, + }); + PortalModule.ɵinj = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineInjector" + ]({}); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + PortalModule, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgModule, + args: [ + { + exports: [ + CdkPortal, + CdkPortalOutlet, + TemplatePortalDirective, + PortalHostDirective, + ], + declarations: [ + CdkPortal, + CdkPortalOutlet, + TemplatePortalDirective, + PortalHostDirective, + ], + }, + ], + }, + ], + null, + null + ); + })(); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** + * Custom injector to be used when providing custom + * injection tokens to components inside a portal. + * @docs-private + * @deprecated Use `Injector.create` instead. + * @breaking-change 11.0.0 + */ + class PortalInjector { + constructor(_parentInjector, _customTokens) { + this._parentInjector = _parentInjector; + this._customTokens = _customTokens; + } + get(token, notFoundValue) { + const value = this._customTokens.get(token); + if (typeof value !== "undefined") { + return value; + } + return this._parentInjector.get(token, notFoundValue); + } + } + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + + /** + * Generated bundle index. Do not edit. + */ + + /***/ + }, + + /***/ 6328: + /*!**********************************************************!*\ + !*** ./node_modules/@angular/cdk/fesm2020/scrolling.mjs ***! + \**********************************************************/ + /***/ ( + __unused_webpack___webpack_module__, + __webpack_exports__, + __webpack_require__ + ) => { + __webpack_require__.r(__webpack_exports__); + /* harmony export */ __webpack_require__.d(__webpack_exports__, { + /* harmony export */ CdkFixedSizeVirtualScroll: () => + /* binding */ CdkFixedSizeVirtualScroll, + /* harmony export */ CdkScrollable: () => /* binding */ CdkScrollable, + /* harmony export */ CdkScrollableModule: () => + /* binding */ CdkScrollableModule, + /* harmony export */ CdkVirtualForOf: () => + /* binding */ CdkVirtualForOf, + /* harmony export */ CdkVirtualScrollViewport: () => + /* binding */ CdkVirtualScrollViewport, + /* harmony export */ CdkVirtualScrollable: () => + /* binding */ CdkVirtualScrollable, + /* harmony export */ CdkVirtualScrollableElement: () => + /* binding */ CdkVirtualScrollableElement, + /* harmony export */ CdkVirtualScrollableWindow: () => + /* binding */ CdkVirtualScrollableWindow, + /* harmony export */ DEFAULT_RESIZE_TIME: () => + /* binding */ DEFAULT_RESIZE_TIME, + /* harmony export */ DEFAULT_SCROLL_TIME: () => + /* binding */ DEFAULT_SCROLL_TIME, + /* harmony export */ FixedSizeVirtualScrollStrategy: () => + /* binding */ FixedSizeVirtualScrollStrategy, + /* harmony export */ ScrollDispatcher: () => + /* binding */ ScrollDispatcher, + /* harmony export */ ScrollingModule: () => + /* binding */ ScrollingModule, + /* harmony export */ VIRTUAL_SCROLLABLE: () => + /* binding */ VIRTUAL_SCROLLABLE, + /* harmony export */ VIRTUAL_SCROLL_STRATEGY: () => + /* binding */ VIRTUAL_SCROLL_STRATEGY, + /* harmony export */ ViewportRuler: () => /* binding */ ViewportRuler, + /* harmony export */ _fixedSizeVirtualScrollStrategyFactory: () => + /* binding */ _fixedSizeVirtualScrollStrategyFactory, + /* harmony export */ + }); + /* harmony import */ var _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_3__ = + __webpack_require__(/*! @angular/cdk/coercion */ 8971); + /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = + __webpack_require__(/*! @angular/core */ 2560); + /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_1__ = + __webpack_require__(/*! rxjs */ 228); + /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_4__ = + __webpack_require__(/*! rxjs */ 745); + /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_5__ = + __webpack_require__(/*! rxjs */ 833); + /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_8__ = + __webpack_require__(/*! rxjs */ 3280); + /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_13__ = + __webpack_require__(/*! rxjs */ 8184); + /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_14__ = + __webpack_require__(/*! rxjs */ 9672); + /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_15__ = + __webpack_require__(/*! rxjs */ 6078); + /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_18__ = + __webpack_require__(/*! rxjs */ 4437); + /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = + __webpack_require__(/*! rxjs/operators */ 8977); + /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_6__ = + __webpack_require__(/*! rxjs/operators */ 998); + /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_7__ = + __webpack_require__(/*! rxjs/operators */ 116); + /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_11__ = + __webpack_require__(/*! rxjs/operators */ 8951); + /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_16__ = + __webpack_require__(/*! rxjs/operators */ 4874); + /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_19__ = + __webpack_require__(/*! rxjs/operators */ 679); + /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_20__ = + __webpack_require__(/*! rxjs/operators */ 2673); + /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_21__ = + __webpack_require__(/*! rxjs/operators */ 9196); + /* harmony import */ var _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_9__ = + __webpack_require__(/*! @angular/cdk/platform */ 9107); + /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_10__ = + __webpack_require__(/*! @angular/common */ 4666); + /* harmony import */ var _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_12__ = + __webpack_require__(/*! @angular/cdk/bidi */ 2867); + /* harmony import */ var _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_17__ = + __webpack_require__(/*! @angular/cdk/collections */ 1755); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** The injection token used to specify the virtual scrolling strategy. */ + const _c0 = ["contentWrapper"]; + const _c1 = ["*"]; + const VIRTUAL_SCROLL_STRATEGY = + new _angular_core__WEBPACK_IMPORTED_MODULE_0__.InjectionToken( + "VIRTUAL_SCROLL_STRATEGY" + ); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** Virtual scrolling strategy for lists with items of known fixed size. */ + class FixedSizeVirtualScrollStrategy { + /** + * @param itemSize The size of the items in the virtually scrolling list. + * @param minBufferPx The minimum amount of buffer (in pixels) before needing to render more + * @param maxBufferPx The amount of buffer (in pixels) to render when rendering more. + */ + constructor(itemSize, minBufferPx, maxBufferPx) { + this._scrolledIndexChange = + new rxjs__WEBPACK_IMPORTED_MODULE_1__.Subject(); + /** @docs-private Implemented as part of VirtualScrollStrategy. */ + this.scrolledIndexChange = this._scrolledIndexChange.pipe( + (0, + rxjs_operators__WEBPACK_IMPORTED_MODULE_2__.distinctUntilChanged)() + ); + /** The attached viewport. */ + this._viewport = null; + this._itemSize = itemSize; + this._minBufferPx = minBufferPx; + this._maxBufferPx = maxBufferPx; + } + /** + * Attaches this scroll strategy to a viewport. + * @param viewport The viewport to attach this strategy to. + */ + attach(viewport) { + this._viewport = viewport; + this._updateTotalContentSize(); + this._updateRenderedRange(); + } + /** Detaches this scroll strategy from the currently attached viewport. */ + detach() { + this._scrolledIndexChange.complete(); + this._viewport = null; + } + /** + * Update the item size and buffer size. + * @param itemSize The size of the items in the virtually scrolling list. + * @param minBufferPx The minimum amount of buffer (in pixels) before needing to render more + * @param maxBufferPx The amount of buffer (in pixels) to render when rendering more. + */ + updateItemAndBufferSize(itemSize, minBufferPx, maxBufferPx) { + if ( + maxBufferPx < minBufferPx && + (typeof ngDevMode === "undefined" || ngDevMode) + ) { + throw Error( + "CDK virtual scroll: maxBufferPx must be greater than or equal to minBufferPx" + ); + } + this._itemSize = itemSize; + this._minBufferPx = minBufferPx; + this._maxBufferPx = maxBufferPx; + this._updateTotalContentSize(); + this._updateRenderedRange(); + } + /** @docs-private Implemented as part of VirtualScrollStrategy. */ + onContentScrolled() { + this._updateRenderedRange(); + } + /** @docs-private Implemented as part of VirtualScrollStrategy. */ + onDataLengthChanged() { + this._updateTotalContentSize(); + this._updateRenderedRange(); + } + /** @docs-private Implemented as part of VirtualScrollStrategy. */ + onContentRendered() { + /* no-op */ + } + /** @docs-private Implemented as part of VirtualScrollStrategy. */ + onRenderedOffsetChanged() { + /* no-op */ + } + /** + * Scroll to the offset for the given index. + * @param index The index of the element to scroll to. + * @param behavior The ScrollBehavior to use when scrolling. + */ + scrollToIndex(index, behavior) { + if (this._viewport) { + this._viewport.scrollToOffset(index * this._itemSize, behavior); + } + } + /** Update the viewport's total content size. */ + _updateTotalContentSize() { + if (!this._viewport) { + return; + } + this._viewport.setTotalContentSize( + this._viewport.getDataLength() * this._itemSize + ); + } + /** Update the viewport's rendered range. */ + _updateRenderedRange() { + if (!this._viewport) { + return; + } + const renderedRange = this._viewport.getRenderedRange(); + const newRange = { + start: renderedRange.start, + end: renderedRange.end, + }; + const viewportSize = this._viewport.getViewportSize(); + const dataLength = this._viewport.getDataLength(); + let scrollOffset = this._viewport.measureScrollOffset(); + // Prevent NaN as result when dividing by zero. + let firstVisibleIndex = + this._itemSize > 0 ? scrollOffset / this._itemSize : 0; + // If user scrolls to the bottom of the list and data changes to a smaller list + if (newRange.end > dataLength) { + // We have to recalculate the first visible index based on new data length and viewport size. + const maxVisibleItems = Math.ceil(viewportSize / this._itemSize); + const newVisibleIndex = Math.max( + 0, + Math.min(firstVisibleIndex, dataLength - maxVisibleItems) + ); + // If first visible index changed we must update scroll offset to handle start/end buffers + // Current range must also be adjusted to cover the new position (bottom of new list). + if (firstVisibleIndex != newVisibleIndex) { + firstVisibleIndex = newVisibleIndex; + scrollOffset = newVisibleIndex * this._itemSize; + newRange.start = Math.floor(firstVisibleIndex); + } + newRange.end = Math.max( + 0, + Math.min(dataLength, newRange.start + maxVisibleItems) + ); + } + const startBuffer = scrollOffset - newRange.start * this._itemSize; + if (startBuffer < this._minBufferPx && newRange.start != 0) { + const expandStart = Math.ceil( + (this._maxBufferPx - startBuffer) / this._itemSize + ); + newRange.start = Math.max(0, newRange.start - expandStart); + newRange.end = Math.min( + dataLength, + Math.ceil( + firstVisibleIndex + + (viewportSize + this._minBufferPx) / this._itemSize + ) + ); + } else { + const endBuffer = + newRange.end * this._itemSize - (scrollOffset + viewportSize); + if (endBuffer < this._minBufferPx && newRange.end != dataLength) { + const expandEnd = Math.ceil( + (this._maxBufferPx - endBuffer) / this._itemSize + ); + if (expandEnd > 0) { + newRange.end = Math.min(dataLength, newRange.end + expandEnd); + newRange.start = Math.max( + 0, + Math.floor( + firstVisibleIndex - this._minBufferPx / this._itemSize + ) + ); + } + } + } + this._viewport.setRenderedRange(newRange); + this._viewport.setRenderedContentOffset( + this._itemSize * newRange.start + ); + this._scrolledIndexChange.next(Math.floor(firstVisibleIndex)); + } + } + /** + * Provider factory for `FixedSizeVirtualScrollStrategy` that simply extracts the already created + * `FixedSizeVirtualScrollStrategy` from the given directive. + * @param fixedSizeDir The instance of `CdkFixedSizeVirtualScroll` to extract the + * `FixedSizeVirtualScrollStrategy` from. + */ + function _fixedSizeVirtualScrollStrategyFactory(fixedSizeDir) { + return fixedSizeDir._scrollStrategy; + } + /** A virtual scroll strategy that supports fixed-size items. */ + class CdkFixedSizeVirtualScroll { + constructor() { + this._itemSize = 20; + this._minBufferPx = 100; + this._maxBufferPx = 200; + /** The scroll strategy used by this directive. */ + this._scrollStrategy = new FixedSizeVirtualScrollStrategy( + this.itemSize, + this.minBufferPx, + this.maxBufferPx + ); + } + /** The size of the items in the list (in pixels). */ + get itemSize() { + return this._itemSize; + } + set itemSize(value) { + this._itemSize = (0, + _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_3__.coerceNumberProperty)( + value + ); + } + /** + * The minimum amount of buffer rendered beyond the viewport (in pixels). + * If the amount of buffer dips below this number, more items will be rendered. Defaults to 100px. + */ + get minBufferPx() { + return this._minBufferPx; + } + set minBufferPx(value) { + this._minBufferPx = (0, + _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_3__.coerceNumberProperty)( + value + ); + } + /** + * The number of pixels worth of buffer to render for when rendering new items. Defaults to 200px. + */ + get maxBufferPx() { + return this._maxBufferPx; + } + set maxBufferPx(value) { + this._maxBufferPx = (0, + _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_3__.coerceNumberProperty)( + value + ); + } + ngOnChanges() { + this._scrollStrategy.updateItemAndBufferSize( + this.itemSize, + this.minBufferPx, + this.maxBufferPx + ); + } + } + CdkFixedSizeVirtualScroll.ɵfac = + function CdkFixedSizeVirtualScroll_Factory(t) { + return new (t || CdkFixedSizeVirtualScroll)(); + }; + CdkFixedSizeVirtualScroll.ɵdir = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineDirective" + ]({ + type: CdkFixedSizeVirtualScroll, + selectors: [["cdk-virtual-scroll-viewport", "itemSize", ""]], + inputs: { + itemSize: "itemSize", + minBufferPx: "minBufferPx", + maxBufferPx: "maxBufferPx", + }, + standalone: true, + features: [ + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([ + { + provide: VIRTUAL_SCROLL_STRATEGY, + useFactory: _fixedSizeVirtualScrollStrategyFactory, + deps: [ + (0, _angular_core__WEBPACK_IMPORTED_MODULE_0__.forwardRef)( + () => CdkFixedSizeVirtualScroll + ), + ], + }, + ]), + _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵNgOnChangesFeature" + ], + ], + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + CdkFixedSizeVirtualScroll, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive, + args: [ + { + selector: "cdk-virtual-scroll-viewport[itemSize]", + standalone: true, + providers: [ + { + provide: VIRTUAL_SCROLL_STRATEGY, + useFactory: _fixedSizeVirtualScrollStrategyFactory, + deps: [ + (0, + _angular_core__WEBPACK_IMPORTED_MODULE_0__.forwardRef)( + () => CdkFixedSizeVirtualScroll + ), + ], + }, + ], + }, + ], + }, + ], + null, + { + itemSize: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input, + }, + ], + minBufferPx: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input, + }, + ], + maxBufferPx: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input, + }, + ], + } + ); + })(); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** Time in ms to throttle the scrolling events by default. */ + const DEFAULT_SCROLL_TIME = 20; + /** + * Service contained all registered Scrollable references and emits an event when any one of the + * Scrollable references emit a scrolled event. + */ + class ScrollDispatcher { + constructor(_ngZone, _platform, document) { + this._ngZone = _ngZone; + this._platform = _platform; + /** Subject for notifying that a registered scrollable reference element has been scrolled. */ + this._scrolled = new rxjs__WEBPACK_IMPORTED_MODULE_1__.Subject(); + /** Keeps track of the global `scroll` and `resize` subscriptions. */ + this._globalSubscription = null; + /** Keeps track of the amount of subscriptions to `scrolled`. Used for cleaning up afterwards. */ + this._scrolledCount = 0; + /** + * Map of all the scrollable references that are registered with the service and their + * scroll event subscriptions. + */ + this.scrollContainers = new Map(); + this._document = document; + } + /** + * Registers a scrollable instance with the service and listens for its scrolled events. When the + * scrollable is scrolled, the service emits the event to its scrolled observable. + * @param scrollable Scrollable instance to be registered. + */ + register(scrollable) { + if (!this.scrollContainers.has(scrollable)) { + this.scrollContainers.set( + scrollable, + scrollable + .elementScrolled() + .subscribe(() => this._scrolled.next(scrollable)) + ); + } + } + /** + * De-registers a Scrollable reference and unsubscribes from its scroll event observable. + * @param scrollable Scrollable instance to be deregistered. + */ + deregister(scrollable) { + const scrollableReference = this.scrollContainers.get(scrollable); + if (scrollableReference) { + scrollableReference.unsubscribe(); + this.scrollContainers.delete(scrollable); + } + } + /** + * Returns an observable that emits an event whenever any of the registered Scrollable + * references (or window, document, or body) fire a scrolled event. Can provide a time in ms + * to override the default "throttle" time. + * + * **Note:** in order to avoid hitting change detection for every scroll event, + * all of the events emitted from this stream will be run outside the Angular zone. + * If you need to update any data bindings as a result of a scroll event, you have + * to run the callback using `NgZone.run`. + */ + scrolled(auditTimeInMs = DEFAULT_SCROLL_TIME) { + if (!this._platform.isBrowser) { + return (0, rxjs__WEBPACK_IMPORTED_MODULE_4__.of)(); + } + return new rxjs__WEBPACK_IMPORTED_MODULE_5__.Observable( + (observer) => { + if (!this._globalSubscription) { + this._addGlobalListener(); + } + // In the case of a 0ms delay, use an observable without auditTime + // since it does add a perceptible delay in processing overhead. + const subscription = + auditTimeInMs > 0 + ? this._scrolled + .pipe( + (0, + rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.auditTime)( + auditTimeInMs + ) + ) + .subscribe(observer) + : this._scrolled.subscribe(observer); + this._scrolledCount++; + return () => { + subscription.unsubscribe(); + this._scrolledCount--; + if (!this._scrolledCount) { + this._removeGlobalListener(); + } + }; + } + ); + } + ngOnDestroy() { + this._removeGlobalListener(); + this.scrollContainers.forEach((_, container) => + this.deregister(container) + ); + this._scrolled.complete(); + } + /** + * Returns an observable that emits whenever any of the + * scrollable ancestors of an element are scrolled. + * @param elementOrElementRef Element whose ancestors to listen for. + * @param auditTimeInMs Time to throttle the scroll events. + */ + ancestorScrolled(elementOrElementRef, auditTimeInMs) { + const ancestors = + this.getAncestorScrollContainers(elementOrElementRef); + return this.scrolled(auditTimeInMs).pipe( + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.filter)( + (target) => { + return !target || ancestors.indexOf(target) > -1; + } + ) + ); + } + /** Returns all registered Scrollables that contain the provided element. */ + getAncestorScrollContainers(elementOrElementRef) { + const scrollingContainers = []; + this.scrollContainers.forEach((_subscription, scrollable) => { + if ( + this._scrollableContainsElement(scrollable, elementOrElementRef) + ) { + scrollingContainers.push(scrollable); + } + }); + return scrollingContainers; + } + /** Use defaultView of injected document if available or fallback to global window reference */ + _getWindow() { + return this._document.defaultView || window; + } + /** Returns true if the element is contained within the provided Scrollable. */ + _scrollableContainsElement(scrollable, elementOrElementRef) { + let element = (0, + _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_3__.coerceElement)( + elementOrElementRef + ); + let scrollableElement = scrollable.getElementRef().nativeElement; + // Traverse through the element parents until we reach null, checking if any of the elements + // are the scrollable's element. + do { + if (element == scrollableElement) { + return true; + } + } while ((element = element.parentElement)); + return false; + } + /** Sets up the global scroll listeners. */ + _addGlobalListener() { + this._globalSubscription = this._ngZone.runOutsideAngular(() => { + const window = this._getWindow(); + return (0, rxjs__WEBPACK_IMPORTED_MODULE_8__.fromEvent)( + window.document, + "scroll" + ).subscribe(() => this._scrolled.next()); + }); + } + /** Cleans up the global scroll listener. */ + _removeGlobalListener() { + if (this._globalSubscription) { + this._globalSubscription.unsubscribe(); + this._globalSubscription = null; + } + } + } + ScrollDispatcher.ɵfac = function ScrollDispatcher_Factory(t) { + return new (t || ScrollDispatcher)( + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"]( + _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_9__.Platform + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"]( + _angular_common__WEBPACK_IMPORTED_MODULE_10__.DOCUMENT, + 8 + ) + ); + }; + ScrollDispatcher.ɵprov = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineInjectable" + ]({ + token: ScrollDispatcher, + factory: ScrollDispatcher.ɵfac, + providedIn: "root", + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + ScrollDispatcher, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injectable, + args: [ + { + providedIn: "root", + }, + ], + }, + ], + function () { + return [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone, + }, + { + type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_9__.Platform, + }, + { + type: undefined, + decorators: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional, + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject, + args: [ + _angular_common__WEBPACK_IMPORTED_MODULE_10__.DOCUMENT, + ], + }, + ], + }, + ]; + }, + null + ); + })(); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** + * Sends an event when the directive's element is scrolled. Registers itself with the + * ScrollDispatcher service to include itself as part of its collection of scrolling events that it + * can be listened to through the service. + */ + class CdkScrollable { + constructor(elementRef, scrollDispatcher, ngZone, dir) { + this.elementRef = elementRef; + this.scrollDispatcher = scrollDispatcher; + this.ngZone = ngZone; + this.dir = dir; + this._destroyed = new rxjs__WEBPACK_IMPORTED_MODULE_1__.Subject(); + this._elementScrolled = + new rxjs__WEBPACK_IMPORTED_MODULE_5__.Observable((observer) => + this.ngZone.runOutsideAngular(() => + (0, rxjs__WEBPACK_IMPORTED_MODULE_8__.fromEvent)( + this.elementRef.nativeElement, + "scroll" + ) + .pipe( + (0, + rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.takeUntil)( + this._destroyed + ) + ) + .subscribe(observer) + ) + ); + } + ngOnInit() { + this.scrollDispatcher.register(this); + } + ngOnDestroy() { + this.scrollDispatcher.deregister(this); + this._destroyed.next(); + this._destroyed.complete(); + } + /** Returns observable that emits when a scroll event is fired on the host element. */ + elementScrolled() { + return this._elementScrolled; + } + /** Gets the ElementRef for the viewport. */ + getElementRef() { + return this.elementRef; + } + /** + * Scrolls to the specified offsets. This is a normalized version of the browser's native scrollTo + * method, since browsers are not consistent about what scrollLeft means in RTL. For this method + * left and right always refer to the left and right side of the scrolling container irrespective + * of the layout direction. start and end refer to left and right in an LTR context and vice-versa + * in an RTL context. + * @param options specified the offsets to scroll to. + */ + scrollTo(options) { + const el = this.elementRef.nativeElement; + const isRtl = this.dir && this.dir.value == "rtl"; + // Rewrite start & end offsets as right or left offsets. + if (options.left == null) { + options.left = isRtl ? options.end : options.start; + } + if (options.right == null) { + options.right = isRtl ? options.start : options.end; + } + // Rewrite the bottom offset as a top offset. + if (options.bottom != null) { + options.top = el.scrollHeight - el.clientHeight - options.bottom; + } + // Rewrite the right offset as a left offset. + if ( + isRtl && + (0, + _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_9__.getRtlScrollAxisType)() != + 0 /* RtlScrollAxisType.NORMAL */ + ) { + if (options.left != null) { + options.right = el.scrollWidth - el.clientWidth - options.left; + } + if ( + (0, + _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_9__.getRtlScrollAxisType)() == + 2 /* RtlScrollAxisType.INVERTED */ + ) { + options.left = options.right; + } else if ( + (0, + _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_9__.getRtlScrollAxisType)() == + 1 /* RtlScrollAxisType.NEGATED */ + ) { + options.left = options.right ? -options.right : options.right; + } + } else { + if (options.right != null) { + options.left = el.scrollWidth - el.clientWidth - options.right; + } + } + this._applyScrollToOptions(options); + } + _applyScrollToOptions(options) { + const el = this.elementRef.nativeElement; + if ( + (0, + _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_9__.supportsScrollBehavior)() + ) { + el.scrollTo(options); + } else { + if (options.top != null) { + el.scrollTop = options.top; + } + if (options.left != null) { + el.scrollLeft = options.left; + } + } + } + /** + * Measures the scroll offset relative to the specified edge of the viewport. This method can be + * used instead of directly checking scrollLeft or scrollTop, since browsers are not consistent + * about what scrollLeft means in RTL. The values returned by this method are normalized such that + * left and right always refer to the left and right side of the scrolling container irrespective + * of the layout direction. start and end refer to left and right in an LTR context and vice-versa + * in an RTL context. + * @param from The edge to measure from. + */ + measureScrollOffset(from) { + const LEFT = "left"; + const RIGHT = "right"; + const el = this.elementRef.nativeElement; + if (from == "top") { + return el.scrollTop; + } + if (from == "bottom") { + return el.scrollHeight - el.clientHeight - el.scrollTop; + } + // Rewrite start & end as left or right offsets. + const isRtl = this.dir && this.dir.value == "rtl"; + if (from == "start") { + from = isRtl ? RIGHT : LEFT; + } else if (from == "end") { + from = isRtl ? LEFT : RIGHT; + } + if ( + isRtl && + (0, + _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_9__.getRtlScrollAxisType)() == + 2 /* RtlScrollAxisType.INVERTED */ + ) { + // For INVERTED, scrollLeft is (scrollWidth - clientWidth) when scrolled all the way left and + // 0 when scrolled all the way right. + if (from == LEFT) { + return el.scrollWidth - el.clientWidth - el.scrollLeft; + } else { + return el.scrollLeft; + } + } else if ( + isRtl && + (0, + _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_9__.getRtlScrollAxisType)() == + 1 /* RtlScrollAxisType.NEGATED */ + ) { + // For NEGATED, scrollLeft is -(scrollWidth - clientWidth) when scrolled all the way left and + // 0 when scrolled all the way right. + if (from == LEFT) { + return el.scrollLeft + el.scrollWidth - el.clientWidth; + } else { + return -el.scrollLeft; + } + } else { + // For NORMAL, as well as non-RTL contexts, scrollLeft is 0 when scrolled all the way left and + // (scrollWidth - clientWidth) when scrolled all the way right. + if (from == LEFT) { + return el.scrollLeft; + } else { + return el.scrollWidth - el.clientWidth - el.scrollLeft; + } + } + } + } + CdkScrollable.ɵfac = function CdkScrollable_Factory(t) { + return new (t || CdkScrollable)( + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + ScrollDispatcher + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_12__.Directionality, + 8 + ) + ); + }; + CdkScrollable.ɵdir = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineDirective" + ]({ + type: CdkScrollable, + selectors: [ + ["", "cdk-scrollable", ""], + ["", "cdkScrollable", ""], + ], + standalone: true, + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + CdkScrollable, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive, + args: [ + { + selector: "[cdk-scrollable], [cdkScrollable]", + standalone: true, + }, + ], + }, + ], + function () { + return [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef, + }, + { + type: ScrollDispatcher, + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone, + }, + { + type: _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_12__.Directionality, + decorators: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional, + }, + ], + }, + ]; + }, + null + ); + })(); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** Time in ms to throttle the resize events by default. */ + const DEFAULT_RESIZE_TIME = 20; + /** + * Simple utility for getting the bounds of the browser viewport. + * @docs-private + */ + class ViewportRuler { + constructor(_platform, ngZone, document) { + this._platform = _platform; + /** Stream of viewport change events. */ + this._change = new rxjs__WEBPACK_IMPORTED_MODULE_1__.Subject(); + /** Event listener that will be used to handle the viewport change events. */ + this._changeListener = (event) => { + this._change.next(event); + }; + this._document = document; + ngZone.runOutsideAngular(() => { + if (_platform.isBrowser) { + const window = this._getWindow(); + // Note that bind the events ourselves, rather than going through something like RxJS's + // `fromEvent` so that we can ensure that they're bound outside of the NgZone. + window.addEventListener("resize", this._changeListener); + window.addEventListener( + "orientationchange", + this._changeListener + ); + } + // Clear the cached position so that the viewport is re-measured next time it is required. + // We don't need to keep track of the subscription, because it is completed on destroy. + this.change().subscribe(() => (this._viewportSize = null)); + }); + } + ngOnDestroy() { + if (this._platform.isBrowser) { + const window = this._getWindow(); + window.removeEventListener("resize", this._changeListener); + window.removeEventListener( + "orientationchange", + this._changeListener + ); + } + this._change.complete(); + } + /** Returns the viewport's width and height. */ + getViewportSize() { + if (!this._viewportSize) { + this._updateViewportSize(); + } + const output = { + width: this._viewportSize.width, + height: this._viewportSize.height, + }; + // If we're not on a browser, don't cache the size since it'll be mocked out anyway. + if (!this._platform.isBrowser) { + this._viewportSize = null; + } + return output; + } + /** Gets a ClientRect for the viewport's bounds. */ + getViewportRect() { + // Use the document element's bounding rect rather than the window scroll properties + // (e.g. pageYOffset, scrollY) due to in issue in Chrome and IE where window scroll + // properties and client coordinates (boundingClientRect, clientX/Y, etc.) are in different + // conceptual viewports. Under most circumstances these viewports are equivalent, but they + // can disagree when the page is pinch-zoomed (on devices that support touch). + // See https://bugs.chromium.org/p/chromium/issues/detail?id=489206#c4 + // We use the documentElement instead of the body because, by default (without a css reset) + // browsers typically give the document body an 8px margin, which is not included in + // getBoundingClientRect(). + const scrollPosition = this.getViewportScrollPosition(); + const { width, height } = this.getViewportSize(); + return { + top: scrollPosition.top, + left: scrollPosition.left, + bottom: scrollPosition.top + height, + right: scrollPosition.left + width, + height, + width, + }; + } + /** Gets the (top, left) scroll position of the viewport. */ + getViewportScrollPosition() { + // While we can get a reference to the fake document + // during SSR, it doesn't have getBoundingClientRect. + if (!this._platform.isBrowser) { + return { + top: 0, + left: 0, + }; + } + // The top-left-corner of the viewport is determined by the scroll position of the document + // body, normally just (scrollLeft, scrollTop). However, Chrome and Firefox disagree about + // whether `document.body` or `document.documentElement` is the scrolled element, so reading + // `scrollTop` and `scrollLeft` is inconsistent. However, using the bounding rect of + // `document.documentElement` works consistently, where the `top` and `left` values will + // equal negative the scroll position. + const document = this._document; + const window = this._getWindow(); + const documentElement = document.documentElement; + const documentRect = documentElement.getBoundingClientRect(); + const top = + -documentRect.top || + document.body.scrollTop || + window.scrollY || + documentElement.scrollTop || + 0; + const left = + -documentRect.left || + document.body.scrollLeft || + window.scrollX || + documentElement.scrollLeft || + 0; + return { + top, + left, + }; + } + /** + * Returns a stream that emits whenever the size of the viewport changes. + * This stream emits outside of the Angular zone. + * @param throttleTime Time in milliseconds to throttle the stream. + */ + change(throttleTime = DEFAULT_RESIZE_TIME) { + return throttleTime > 0 + ? this._change.pipe( + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.auditTime)( + throttleTime + ) + ) + : this._change; + } + /** Use defaultView of injected document if available or fallback to global window reference */ + _getWindow() { + return this._document.defaultView || window; + } + /** Updates the cached viewport size. */ + _updateViewportSize() { + const window = this._getWindow(); + this._viewportSize = this._platform.isBrowser + ? { + width: window.innerWidth, + height: window.innerHeight, + } + : { + width: 0, + height: 0, + }; + } + } + ViewportRuler.ɵfac = function ViewportRuler_Factory(t) { + return new (t || ViewportRuler)( + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"]( + _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_9__.Platform + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"]( + _angular_common__WEBPACK_IMPORTED_MODULE_10__.DOCUMENT, + 8 + ) + ); + }; + ViewportRuler.ɵprov = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineInjectable" + ]({ + token: ViewportRuler, + factory: ViewportRuler.ɵfac, + providedIn: "root", + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + ViewportRuler, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injectable, + args: [ + { + providedIn: "root", + }, + ], + }, + ], + function () { + return [ + { + type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_9__.Platform, + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone, + }, + { + type: undefined, + decorators: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional, + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject, + args: [ + _angular_common__WEBPACK_IMPORTED_MODULE_10__.DOCUMENT, + ], + }, + ], + }, + ]; + }, + null + ); + })(); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + const VIRTUAL_SCROLLABLE = + new _angular_core__WEBPACK_IMPORTED_MODULE_0__.InjectionToken( + "VIRTUAL_SCROLLABLE" + ); + /** + * Extending the {@link CdkScrollable} to be used as scrolling container for virtual scrolling. + */ + class CdkVirtualScrollable extends CdkScrollable { + constructor(elementRef, scrollDispatcher, ngZone, dir) { + super(elementRef, scrollDispatcher, ngZone, dir); + } + /** + * Measure the viewport size for the provided orientation. + * + * @param orientation The orientation to measure the size from. + */ + measureViewportSize(orientation) { + const viewportEl = this.elementRef.nativeElement; + return orientation === "horizontal" + ? viewportEl.clientWidth + : viewportEl.clientHeight; + } + } + CdkVirtualScrollable.ɵfac = function CdkVirtualScrollable_Factory(t) { + return new (t || CdkVirtualScrollable)( + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + ScrollDispatcher + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_12__.Directionality, + 8 + ) + ); + }; + CdkVirtualScrollable.ɵdir = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineDirective" + ]({ + type: CdkVirtualScrollable, + features: [ + _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵInheritDefinitionFeature" + ], + ], + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + CdkVirtualScrollable, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive, + }, + ], + function () { + return [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef, + }, + { + type: ScrollDispatcher, + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone, + }, + { + type: _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_12__.Directionality, + decorators: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional, + }, + ], + }, + ]; + }, + null + ); + })(); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** Checks if the given ranges are equal. */ + function rangesEqual(r1, r2) { + return r1.start == r2.start && r1.end == r2.end; + } + /** + * Scheduler to be used for scroll events. Needs to fall back to + * something that doesn't rely on requestAnimationFrame on environments + * that don't support it (e.g. server-side rendering). + */ + const SCROLL_SCHEDULER = + typeof requestAnimationFrame !== "undefined" + ? rxjs__WEBPACK_IMPORTED_MODULE_13__.animationFrameScheduler + : rxjs__WEBPACK_IMPORTED_MODULE_14__.asapScheduler; + /** A viewport that virtualizes its scrolling with the help of `CdkVirtualForOf`. */ + class CdkVirtualScrollViewport extends CdkVirtualScrollable { + /** The direction the viewport scrolls. */ + get orientation() { + return this._orientation; + } + set orientation(orientation) { + if (this._orientation !== orientation) { + this._orientation = orientation; + this._calculateSpacerSize(); + } + } + /** + * Whether rendered items should persist in the DOM after scrolling out of view. By default, items + * will be removed. + */ + get appendOnly() { + return this._appendOnly; + } + set appendOnly(value) { + this._appendOnly = (0, + _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_3__.coerceBooleanProperty)( + value + ); + } + constructor( + elementRef, + _changeDetectorRef, + ngZone, + _scrollStrategy, + dir, + scrollDispatcher, + viewportRuler, + scrollable + ) { + super(elementRef, scrollDispatcher, ngZone, dir); + this.elementRef = elementRef; + this._changeDetectorRef = _changeDetectorRef; + this._scrollStrategy = _scrollStrategy; + this.scrollable = scrollable; + this._platform = (0, + _angular_core__WEBPACK_IMPORTED_MODULE_0__.inject)( + _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_9__.Platform + ); + /** Emits when the viewport is detached from a CdkVirtualForOf. */ + this._detachedSubject = + new rxjs__WEBPACK_IMPORTED_MODULE_1__.Subject(); + /** Emits when the rendered range changes. */ + this._renderedRangeSubject = + new rxjs__WEBPACK_IMPORTED_MODULE_1__.Subject(); + this._orientation = "vertical"; + this._appendOnly = false; + // Note: we don't use the typical EventEmitter here because we need to subscribe to the scroll + // strategy lazily (i.e. only if the user is actually listening to the events). We do this because + // depending on how the strategy calculates the scrolled index, it may come at a cost to + // performance. + /** Emits when the index of the first element visible in the viewport changes. */ + this.scrolledIndexChange = + new rxjs__WEBPACK_IMPORTED_MODULE_5__.Observable((observer) => + this._scrollStrategy.scrolledIndexChange.subscribe((index) => + Promise.resolve().then(() => + this.ngZone.run(() => observer.next(index)) + ) + ) + ); + /** A stream that emits whenever the rendered range changes. */ + this.renderedRangeStream = this._renderedRangeSubject; + /** + * The total size of all content (in pixels), including content that is not currently rendered. + */ + this._totalContentSize = 0; + /** A string representing the `style.width` property value to be used for the spacer element. */ + this._totalContentWidth = ""; + /** A string representing the `style.height` property value to be used for the spacer element. */ + this._totalContentHeight = ""; + /** The currently rendered range of indices. */ + this._renderedRange = { + start: 0, + end: 0, + }; + /** The length of the data bound to this viewport (in number of items). */ + this._dataLength = 0; + /** The size of the viewport (in pixels). */ + this._viewportSize = 0; + /** The last rendered content offset that was set. */ + this._renderedContentOffset = 0; + /** + * Whether the last rendered content offset was to the end of the content (and therefore needs to + * be rewritten as an offset to the start of the content). + */ + this._renderedContentOffsetNeedsRewrite = false; + /** Whether there is a pending change detection cycle. */ + this._isChangeDetectionPending = false; + /** A list of functions to run after the next change detection cycle. */ + this._runAfterChangeDetection = []; + /** Subscription to changes in the viewport size. */ + this._viewportChanges = + rxjs__WEBPACK_IMPORTED_MODULE_15__.Subscription.EMPTY; + if ( + !_scrollStrategy && + (typeof ngDevMode === "undefined" || ngDevMode) + ) { + throw Error( + 'Error: cdk-virtual-scroll-viewport requires the "itemSize" property to be set.' + ); + } + this._viewportChanges = viewportRuler.change().subscribe(() => { + this.checkViewportSize(); + }); + if (!this.scrollable) { + // No scrollable is provided, so the virtual-scroll-viewport needs to become a scrollable + this.elementRef.nativeElement.classList.add( + "cdk-virtual-scrollable" + ); + this.scrollable = this; + } + } + ngOnInit() { + // Scrolling depends on the element dimensions which we can't get during SSR. + if (!this._platform.isBrowser) { + return; + } + if (this.scrollable === this) { + super.ngOnInit(); + } + // It's still too early to measure the viewport at this point. Deferring with a promise allows + // the Viewport to be rendered with the correct size before we measure. We run this outside the + // zone to avoid causing more change detection cycles. We handle the change detection loop + // ourselves instead. + this.ngZone.runOutsideAngular(() => + Promise.resolve().then(() => { + this._measureViewportSize(); + this._scrollStrategy.attach(this); + this.scrollable + .elementScrolled() + .pipe( + // Start off with a fake scroll event so we properly detect our initial position. + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_16__.startWith)( + null + ), + // Collect multiple events into one until the next animation frame. This way if + // there are multiple scroll events in the same frame we only need to recheck + // our layout once. + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.auditTime)( + 0, + SCROLL_SCHEDULER + ) + ) + .subscribe(() => this._scrollStrategy.onContentScrolled()); + this._markChangeDetectionNeeded(); + }) + ); + } + ngOnDestroy() { + this.detach(); + this._scrollStrategy.detach(); + // Complete all subjects + this._renderedRangeSubject.complete(); + this._detachedSubject.complete(); + this._viewportChanges.unsubscribe(); + super.ngOnDestroy(); + } + /** Attaches a `CdkVirtualScrollRepeater` to this viewport. */ + attach(forOf) { + if ( + this._forOf && + (typeof ngDevMode === "undefined" || ngDevMode) + ) { + throw Error("CdkVirtualScrollViewport is already attached."); + } + // Subscribe to the data stream of the CdkVirtualForOf to keep track of when the data length + // changes. Run outside the zone to avoid triggering change detection, since we're managing the + // change detection loop ourselves. + this.ngZone.runOutsideAngular(() => { + this._forOf = forOf; + this._forOf.dataStream + .pipe( + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.takeUntil)( + this._detachedSubject + ) + ) + .subscribe((data) => { + const newLength = data.length; + if (newLength !== this._dataLength) { + this._dataLength = newLength; + this._scrollStrategy.onDataLengthChanged(); + } + this._doChangeDetection(); + }); + }); + } + /** Detaches the current `CdkVirtualForOf`. */ + detach() { + this._forOf = null; + this._detachedSubject.next(); + } + /** Gets the length of the data bound to this viewport (in number of items). */ + getDataLength() { + return this._dataLength; + } + /** Gets the size of the viewport (in pixels). */ + getViewportSize() { + return this._viewportSize; + } + // TODO(mmalerba): This is technically out of sync with what's really rendered until a render + // cycle happens. I'm being careful to only call it after the render cycle is complete and before + // setting it to something else, but its error prone and should probably be split into + // `pendingRange` and `renderedRange`, the latter reflecting whats actually in the DOM. + /** Get the current rendered range of items. */ + getRenderedRange() { + return this._renderedRange; + } + measureBoundingClientRectWithScrollOffset(from) { + return this.getElementRef().nativeElement.getBoundingClientRect()[ + from + ]; + } + /** + * Sets the total size of all content (in pixels), including content that is not currently + * rendered. + */ + setTotalContentSize(size) { + if (this._totalContentSize !== size) { + this._totalContentSize = size; + this._calculateSpacerSize(); + this._markChangeDetectionNeeded(); + } + } + /** Sets the currently rendered range of indices. */ + setRenderedRange(range) { + if (!rangesEqual(this._renderedRange, range)) { + if (this.appendOnly) { + range = { + start: 0, + end: Math.max(this._renderedRange.end, range.end), + }; + } + this._renderedRangeSubject.next((this._renderedRange = range)); + this._markChangeDetectionNeeded(() => + this._scrollStrategy.onContentRendered() + ); + } + } + /** + * Gets the offset from the start of the viewport to the start of the rendered data (in pixels). + */ + getOffsetToRenderedContentStart() { + return this._renderedContentOffsetNeedsRewrite + ? null + : this._renderedContentOffset; + } + /** + * Sets the offset from the start of the viewport to either the start or end of the rendered data + * (in pixels). + */ + setRenderedContentOffset(offset, to = "to-start") { + // In appendOnly, we always start from the top + offset = this.appendOnly && to === "to-start" ? 0 : offset; + // For a horizontal viewport in a right-to-left language we need to translate along the x-axis + // in the negative direction. + const isRtl = this.dir && this.dir.value == "rtl"; + const isHorizontal = this.orientation == "horizontal"; + const axis = isHorizontal ? "X" : "Y"; + const axisDirection = isHorizontal && isRtl ? -1 : 1; + let transform = `translate${axis}(${Number( + axisDirection * offset + )}px)`; + this._renderedContentOffset = offset; + if (to === "to-end") { + transform += ` translate${axis}(-100%)`; + // The viewport should rewrite this as a `to-start` offset on the next render cycle. Otherwise + // elements will appear to expand in the wrong direction (e.g. `mat-expansion-panel` would + // expand upward). + this._renderedContentOffsetNeedsRewrite = true; + } + if (this._renderedContentTransform != transform) { + // We know this value is safe because we parse `offset` with `Number()` before passing it + // into the string. + this._renderedContentTransform = transform; + this._markChangeDetectionNeeded(() => { + if (this._renderedContentOffsetNeedsRewrite) { + this._renderedContentOffset -= + this.measureRenderedContentSize(); + this._renderedContentOffsetNeedsRewrite = false; + this.setRenderedContentOffset(this._renderedContentOffset); + } else { + this._scrollStrategy.onRenderedOffsetChanged(); + } + }); + } + } + /** + * Scrolls to the given offset from the start of the viewport. Please note that this is not always + * the same as setting `scrollTop` or `scrollLeft`. In a horizontal viewport with right-to-left + * direction, this would be the equivalent of setting a fictional `scrollRight` property. + * @param offset The offset to scroll to. + * @param behavior The ScrollBehavior to use when scrolling. Default is behavior is `auto`. + */ + scrollToOffset(offset, behavior = "auto") { + const options = { + behavior, + }; + if (this.orientation === "horizontal") { + options.start = offset; + } else { + options.top = offset; + } + this.scrollable.scrollTo(options); + } + /** + * Scrolls to the offset for the given index. + * @param index The index of the element to scroll to. + * @param behavior The ScrollBehavior to use when scrolling. Default is behavior is `auto`. + */ + scrollToIndex(index, behavior = "auto") { + this._scrollStrategy.scrollToIndex(index, behavior); + } + /** + * Gets the current scroll offset from the start of the scrollable (in pixels). + * @param from The edge to measure the offset from. Defaults to 'top' in vertical mode and 'start' + * in horizontal mode. + */ + measureScrollOffset(from) { + // This is to break the call cycle + let measureScrollOffset; + if (this.scrollable == this) { + measureScrollOffset = (_from) => super.measureScrollOffset(_from); + } else { + measureScrollOffset = (_from) => + this.scrollable.measureScrollOffset(_from); + } + return Math.max( + 0, + measureScrollOffset( + from ?? (this.orientation === "horizontal" ? "start" : "top") + ) - this.measureViewportOffset() + ); + } + /** + * Measures the offset of the viewport from the scrolling container + * @param from The edge to measure from. + */ + measureViewportOffset(from) { + let fromRect; + const LEFT = "left"; + const RIGHT = "right"; + const isRtl = this.dir?.value == "rtl"; + if (from == "start") { + fromRect = isRtl ? RIGHT : LEFT; + } else if (from == "end") { + fromRect = isRtl ? LEFT : RIGHT; + } else if (from) { + fromRect = from; + } else { + fromRect = this.orientation === "horizontal" ? "left" : "top"; + } + const scrollerClientRect = + this.scrollable.measureBoundingClientRectWithScrollOffset( + fromRect + ); + const viewportClientRect = + this.elementRef.nativeElement.getBoundingClientRect()[fromRect]; + return viewportClientRect - scrollerClientRect; + } + /** Measure the combined size of all of the rendered items. */ + measureRenderedContentSize() { + const contentEl = this._contentWrapper.nativeElement; + return this.orientation === "horizontal" + ? contentEl.offsetWidth + : contentEl.offsetHeight; + } + /** + * Measure the total combined size of the given range. Throws if the range includes items that are + * not rendered. + */ + measureRangeSize(range) { + if (!this._forOf) { + return 0; + } + return this._forOf.measureRangeSize(range, this.orientation); + } + /** Update the viewport dimensions and re-render. */ + checkViewportSize() { + // TODO: Cleanup later when add logic for handling content resize + this._measureViewportSize(); + this._scrollStrategy.onDataLengthChanged(); + } + /** Measure the viewport size. */ + _measureViewportSize() { + this._viewportSize = this.scrollable.measureViewportSize( + this.orientation + ); + } + /** Queue up change detection to run. */ + _markChangeDetectionNeeded(runAfter) { + if (runAfter) { + this._runAfterChangeDetection.push(runAfter); + } + // Use a Promise to batch together calls to `_doChangeDetection`. This way if we set a bunch of + // properties sequentially we only have to run `_doChangeDetection` once at the end. + if (!this._isChangeDetectionPending) { + this._isChangeDetectionPending = true; + this.ngZone.runOutsideAngular(() => + Promise.resolve().then(() => { + this._doChangeDetection(); + }) + ); + } + } + /** Run change detection. */ + _doChangeDetection() { + this._isChangeDetectionPending = false; + // Apply the content transform. The transform can't be set via an Angular binding because + // bypassSecurityTrustStyle is banned in Google. However the value is safe, it's composed of + // string literals, a variable that can only be 'X' or 'Y', and user input that is run through + // the `Number` function first to coerce it to a numeric value. + this._contentWrapper.nativeElement.style.transform = + this._renderedContentTransform; + // Apply changes to Angular bindings. Note: We must call `markForCheck` to run change detection + // from the root, since the repeated items are content projected in. Calling `detectChanges` + // instead does not properly check the projected content. + this.ngZone.run(() => this._changeDetectorRef.markForCheck()); + const runAfterChangeDetection = this._runAfterChangeDetection; + this._runAfterChangeDetection = []; + for (const fn of runAfterChangeDetection) { + fn(); + } + } + /** Calculates the `style.width` and `style.height` for the spacer element. */ + _calculateSpacerSize() { + this._totalContentHeight = + this.orientation === "horizontal" + ? "" + : `${this._totalContentSize}px`; + this._totalContentWidth = + this.orientation === "horizontal" + ? `${this._totalContentSize}px` + : ""; + } + } + CdkVirtualScrollViewport.ɵfac = + function CdkVirtualScrollViewport_Factory(t) { + return new (t || CdkVirtualScrollViewport)( + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_0__.ChangeDetectorRef + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + VIRTUAL_SCROLL_STRATEGY, + 8 + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_12__.Directionality, + 8 + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + ScrollDispatcher + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + ViewportRuler + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + VIRTUAL_SCROLLABLE, + 8 + ) + ); + }; + CdkVirtualScrollViewport.ɵcmp = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineComponent" + ]({ + type: CdkVirtualScrollViewport, + selectors: [["cdk-virtual-scroll-viewport"]], + viewQuery: function CdkVirtualScrollViewport_Query(rf, ctx) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵviewQuery"]( + _c0, + 7 + ); + } + if (rf & 2) { + let _t; + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"]( + (_t = + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) + ) && (ctx._contentWrapper = _t.first); + } + }, + hostAttrs: [1, "cdk-virtual-scroll-viewport"], + hostVars: 4, + hostBindings: function CdkVirtualScrollViewport_HostBindings( + rf, + ctx + ) { + if (rf & 2) { + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]( + "cdk-virtual-scroll-orientation-horizontal", + ctx.orientation === "horizontal" + )( + "cdk-virtual-scroll-orientation-vertical", + ctx.orientation !== "horizontal" + ); + } + }, + inputs: { + orientation: "orientation", + appendOnly: "appendOnly", + }, + outputs: { + scrolledIndexChange: "scrolledIndexChange", + }, + standalone: true, + features: [ + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([ + { + provide: CdkScrollable, + useFactory: (virtualScrollable, viewport) => + virtualScrollable || viewport, + deps: [ + [ + new _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional(), + new _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject( + VIRTUAL_SCROLLABLE + ), + ], + CdkVirtualScrollViewport, + ], + }, + ]), + _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵInheritDefinitionFeature" + ], + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵStandaloneFeature"], + ], + ngContentSelectors: _c1, + decls: 4, + vars: 4, + consts: [ + [1, "cdk-virtual-scroll-content-wrapper"], + ["contentWrapper", ""], + [1, "cdk-virtual-scroll-spacer"], + ], + template: function CdkVirtualScrollViewport_Template(rf, ctx) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojectionDef"](); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"]( + 0, + "div", + 0, + 1 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojection"](2); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"]( + 3, + "div", + 2 + ); + } + if (rf & 2) { + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵstyleProp"]( + "width", + ctx._totalContentWidth + )("height", ctx._totalContentHeight); + } + }, + styles: [ + "cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}", + ], + encapsulation: 2, + changeDetection: 0, + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + CdkVirtualScrollViewport, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Component, + args: [ + { + selector: "cdk-virtual-scroll-viewport", + host: { + class: "cdk-virtual-scroll-viewport", + "[class.cdk-virtual-scroll-orientation-horizontal]": + 'orientation === "horizontal"', + "[class.cdk-virtual-scroll-orientation-vertical]": + 'orientation !== "horizontal"', + }, + encapsulation: + _angular_core__WEBPACK_IMPORTED_MODULE_0__ + .ViewEncapsulation.None, + changeDetection: + _angular_core__WEBPACK_IMPORTED_MODULE_0__ + .ChangeDetectionStrategy.OnPush, + standalone: true, + providers: [ + { + provide: CdkScrollable, + useFactory: (virtualScrollable, viewport) => + virtualScrollable || viewport, + deps: [ + [ + new _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional(), + new _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject( + VIRTUAL_SCROLLABLE + ), + ], + CdkVirtualScrollViewport, + ], + }, + ], + template: + '\n
\n \n
\n\n
\n', + styles: [ + "cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}", + ], + }, + ], + }, + ], + function () { + return [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef, + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ChangeDetectorRef, + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone, + }, + { + type: undefined, + decorators: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional, + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject, + args: [VIRTUAL_SCROLL_STRATEGY], + }, + ], + }, + { + type: _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_12__.Directionality, + decorators: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional, + }, + ], + }, + { + type: ScrollDispatcher, + }, + { + type: ViewportRuler, + }, + { + type: CdkVirtualScrollable, + decorators: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional, + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject, + args: [VIRTUAL_SCROLLABLE], + }, + ], + }, + ]; + }, + { + orientation: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input, + }, + ], + appendOnly: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input, + }, + ], + scrolledIndexChange: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Output, + }, + ], + _contentWrapper: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewChild, + args: [ + "contentWrapper", + { + static: true, + }, + ], + }, + ], + } + ); + })(); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** Helper to extract the offset of a DOM Node in a certain direction. */ + function getOffset(orientation, direction, node) { + const el = node; + if (!el.getBoundingClientRect) { + return 0; + } + const rect = el.getBoundingClientRect(); + if (orientation === "horizontal") { + return direction === "start" ? rect.left : rect.right; + } + return direction === "start" ? rect.top : rect.bottom; + } + /** + * A directive similar to `ngForOf` to be used for rendering data inside a virtual scrolling + * container. + */ + class CdkVirtualForOf { + /** The DataSource to display. */ + get cdkVirtualForOf() { + return this._cdkVirtualForOf; + } + set cdkVirtualForOf(value) { + this._cdkVirtualForOf = value; + if ( + (0, + _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_17__.isDataSource)( + value + ) + ) { + this._dataSourceChanges.next(value); + } else { + // If value is an an NgIterable, convert it to an array. + this._dataSourceChanges.next( + new _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_17__.ArrayDataSource( + (0, rxjs__WEBPACK_IMPORTED_MODULE_18__.isObservable)(value) + ? value + : Array.from(value || []) + ) + ); + } + } + /** + * The `TrackByFunction` to use for tracking changes. The `TrackByFunction` takes the index and + * the item and produces a value to be used as the item's identity when tracking changes. + */ + get cdkVirtualForTrackBy() { + return this._cdkVirtualForTrackBy; + } + set cdkVirtualForTrackBy(fn) { + this._needsUpdate = true; + this._cdkVirtualForTrackBy = fn + ? (index, item) => + fn( + index + + (this._renderedRange ? this._renderedRange.start : 0), + item + ) + : undefined; + } + /** The template used to stamp out new elements. */ + set cdkVirtualForTemplate(value) { + if (value) { + this._needsUpdate = true; + this._template = value; + } + } + /** + * The size of the cache used to store templates that are not being used for re-use later. + * Setting the cache size to `0` will disable caching. Defaults to 20 templates. + */ + get cdkVirtualForTemplateCacheSize() { + return this._viewRepeater.viewCacheSize; + } + set cdkVirtualForTemplateCacheSize(size) { + this._viewRepeater.viewCacheSize = (0, + _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_3__.coerceNumberProperty)( + size + ); + } + constructor /** The view container to add items to. */( + _viewContainerRef /** The template to use when stamping out new items. */, + _template /** The set of available differs. */, + _differs /** The strategy used to render items in the virtual scroll viewport. */, + _viewRepeater /** The virtual scrolling viewport that these items are being rendered in. */, + _viewport, + ngZone + ) { + this._viewContainerRef = _viewContainerRef; + this._template = _template; + this._differs = _differs; + this._viewRepeater = _viewRepeater; + this._viewport = _viewport; + /** Emits when the rendered view of the data changes. */ + this.viewChange = new rxjs__WEBPACK_IMPORTED_MODULE_1__.Subject(); + /** Subject that emits when a new DataSource instance is given. */ + this._dataSourceChanges = + new rxjs__WEBPACK_IMPORTED_MODULE_1__.Subject(); + /** Emits whenever the data in the current DataSource changes. */ + this.dataStream = this._dataSourceChanges.pipe( + // Start off with null `DataSource`. + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_16__.startWith)(null), + // Bundle up the previous and current data sources so we can work with both. + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_19__.pairwise)(), + // Use `_changeDataSource` to disconnect from the previous data source and connect to the + // new one, passing back a stream of data changes which we run through `switchMap` to give + // us a data stream that emits the latest data from whatever the current `DataSource` is. + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.switchMap)( + ([prev, cur]) => this._changeDataSource(prev, cur) + ), + // Replay the last emitted data when someone subscribes. + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.shareReplay)(1) + ); + /** The differ used to calculate changes to the data. */ + this._differ = null; + /** Whether the rendered data should be updated during the next ngDoCheck cycle. */ + this._needsUpdate = false; + this._destroyed = new rxjs__WEBPACK_IMPORTED_MODULE_1__.Subject(); + this.dataStream.subscribe((data) => { + this._data = data; + this._onRenderedDataChange(); + }); + this._viewport.renderedRangeStream + .pipe( + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.takeUntil)( + this._destroyed + ) + ) + .subscribe((range) => { + this._renderedRange = range; + if (this.viewChange.observers.length) { + ngZone.run(() => this.viewChange.next(this._renderedRange)); + } + this._onRenderedDataChange(); + }); + this._viewport.attach(this); + } + /** + * Measures the combined size (width for horizontal orientation, height for vertical) of all items + * in the specified range. Throws an error if the range includes items that are not currently + * rendered. + */ + measureRangeSize(range, orientation) { + if (range.start >= range.end) { + return 0; + } + if ( + (range.start < this._renderedRange.start || + range.end > this._renderedRange.end) && + (typeof ngDevMode === "undefined" || ngDevMode) + ) { + throw Error( + `Error: attempted to measure an item that isn't rendered.` + ); + } + // The index into the list of rendered views for the first item in the range. + const renderedStartIndex = range.start - this._renderedRange.start; + // The length of the range we're measuring. + const rangeLen = range.end - range.start; + // Loop over all the views, find the first and land node and compute the size by subtracting + // the top of the first node from the bottom of the last one. + let firstNode; + let lastNode; + // Find the first node by starting from the beginning and going forwards. + for (let i = 0; i < rangeLen; i++) { + const view = this._viewContainerRef.get(i + renderedStartIndex); + if (view && view.rootNodes.length) { + firstNode = lastNode = view.rootNodes[0]; + break; + } + } + // Find the last node by starting from the end and going backwards. + for (let i = rangeLen - 1; i > -1; i--) { + const view = this._viewContainerRef.get(i + renderedStartIndex); + if (view && view.rootNodes.length) { + lastNode = view.rootNodes[view.rootNodes.length - 1]; + break; + } + } + return firstNode && lastNode + ? getOffset(orientation, "end", lastNode) - + getOffset(orientation, "start", firstNode) + : 0; + } + ngDoCheck() { + if (this._differ && this._needsUpdate) { + // TODO(mmalerba): We should differentiate needs update due to scrolling and a new portion of + // this list being rendered (can use simpler algorithm) vs needs update due to data actually + // changing (need to do this diff). + const changes = this._differ.diff(this._renderedItems); + if (!changes) { + this._updateContext(); + } else { + this._applyChanges(changes); + } + this._needsUpdate = false; + } + } + ngOnDestroy() { + this._viewport.detach(); + this._dataSourceChanges.next(undefined); + this._dataSourceChanges.complete(); + this.viewChange.complete(); + this._destroyed.next(); + this._destroyed.complete(); + this._viewRepeater.detach(); + } + /** React to scroll state changes in the viewport. */ + _onRenderedDataChange() { + if (!this._renderedRange) { + return; + } + this._renderedItems = this._data.slice( + this._renderedRange.start, + this._renderedRange.end + ); + if (!this._differ) { + // Use a wrapper function for the `trackBy` so any new values are + // picked up automatically without having to recreate the differ. + this._differ = this._differs + .find(this._renderedItems) + .create((index, item) => { + return this.cdkVirtualForTrackBy + ? this.cdkVirtualForTrackBy(index, item) + : item; + }); + } + this._needsUpdate = true; + } + /** Swap out one `DataSource` for another. */ + _changeDataSource(oldDs, newDs) { + if (oldDs) { + oldDs.disconnect(this); + } + this._needsUpdate = true; + return newDs + ? newDs.connect(this) + : (0, rxjs__WEBPACK_IMPORTED_MODULE_4__.of)(); + } + /** Update the `CdkVirtualForOfContext` for all views. */ + _updateContext() { + const count = this._data.length; + let i = this._viewContainerRef.length; + while (i--) { + const view = this._viewContainerRef.get(i); + view.context.index = this._renderedRange.start + i; + view.context.count = count; + this._updateComputedContextProperties(view.context); + view.detectChanges(); + } + } + /** Apply changes to the DOM. */ + _applyChanges(changes) { + this._viewRepeater.applyChanges( + changes, + this._viewContainerRef, + (record, _adjustedPreviousIndex, currentIndex) => + this._getEmbeddedViewArgs(record, currentIndex), + (record) => record.item + ); + // Update $implicit for any items that had an identity change. + changes.forEachIdentityChange((record) => { + const view = this._viewContainerRef.get(record.currentIndex); + view.context.$implicit = record.item; + }); + // Update the context variables on all items. + const count = this._data.length; + let i = this._viewContainerRef.length; + while (i--) { + const view = this._viewContainerRef.get(i); + view.context.index = this._renderedRange.start + i; + view.context.count = count; + this._updateComputedContextProperties(view.context); + } + } + /** Update the computed properties on the `CdkVirtualForOfContext`. */ + _updateComputedContextProperties(context) { + context.first = context.index === 0; + context.last = context.index === context.count - 1; + context.even = context.index % 2 === 0; + context.odd = !context.even; + } + _getEmbeddedViewArgs(record, index) { + // Note that it's important that we insert the item directly at the proper index, + // rather than inserting it and the moving it in place, because if there's a directive + // on the same node that injects the `ViewContainerRef`, Angular will insert another + // comment node which can throw off the move when it's being repeated for all items. + return { + templateRef: this._template, + context: { + $implicit: record.item, + // It's guaranteed that the iterable is not "undefined" or "null" because we only + // generate views for elements if the "cdkVirtualForOf" iterable has elements. + cdkVirtualForOf: this._cdkVirtualForOf, + index: -1, + count: -1, + first: false, + last: false, + odd: false, + even: false, + }, + index, + }; + } + } + CdkVirtualForOf.ɵfac = function CdkVirtualForOf_Factory(t) { + return new (t || CdkVirtualForOf)( + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewContainerRef + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_0__.IterableDiffers + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_17__._VIEW_REPEATER_STRATEGY + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + CdkVirtualScrollViewport, + 4 + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone + ) + ); + }; + CdkVirtualForOf.ɵdir = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineDirective" + ]({ + type: CdkVirtualForOf, + selectors: [["", "cdkVirtualFor", "", "cdkVirtualForOf", ""]], + inputs: { + cdkVirtualForOf: "cdkVirtualForOf", + cdkVirtualForTrackBy: "cdkVirtualForTrackBy", + cdkVirtualForTemplate: "cdkVirtualForTemplate", + cdkVirtualForTemplateCacheSize: "cdkVirtualForTemplateCacheSize", + }, + standalone: true, + features: [ + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([ + { + provide: + _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_17__._VIEW_REPEATER_STRATEGY, + useClass: + _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_17__._RecycleViewRepeaterStrategy, + }, + ]), + ], + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + CdkVirtualForOf, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive, + args: [ + { + selector: "[cdkVirtualFor][cdkVirtualForOf]", + providers: [ + { + provide: + _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_17__._VIEW_REPEATER_STRATEGY, + useClass: + _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_17__._RecycleViewRepeaterStrategy, + }, + ], + standalone: true, + }, + ], + }, + ], + function () { + return [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewContainerRef, + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef, + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.IterableDiffers, + }, + { + type: _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_17__._RecycleViewRepeaterStrategy, + decorators: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject, + args: [ + _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_17__._VIEW_REPEATER_STRATEGY, + ], + }, + ], + }, + { + type: CdkVirtualScrollViewport, + decorators: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.SkipSelf, + }, + ], + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone, + }, + ]; + }, + { + cdkVirtualForOf: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input, + }, + ], + cdkVirtualForTrackBy: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input, + }, + ], + cdkVirtualForTemplate: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input, + }, + ], + cdkVirtualForTemplateCacheSize: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input, + }, + ], + } + ); + })(); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** + * Provides a virtual scrollable for the element it is attached to. + */ + class CdkVirtualScrollableElement extends CdkVirtualScrollable { + constructor(elementRef, scrollDispatcher, ngZone, dir) { + super(elementRef, scrollDispatcher, ngZone, dir); + } + measureBoundingClientRectWithScrollOffset(from) { + return ( + this.getElementRef().nativeElement.getBoundingClientRect()[from] - + this.measureScrollOffset(from) + ); + } + } + CdkVirtualScrollableElement.ɵfac = + function CdkVirtualScrollableElement_Factory(t) { + return new (t || CdkVirtualScrollableElement)( + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + ScrollDispatcher + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_12__.Directionality, + 8 + ) + ); + }; + CdkVirtualScrollableElement.ɵdir = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineDirective" + ]({ + type: CdkVirtualScrollableElement, + selectors: [["", "cdkVirtualScrollingElement", ""]], + hostAttrs: [1, "cdk-virtual-scrollable"], + standalone: true, + features: [ + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([ + { + provide: VIRTUAL_SCROLLABLE, + useExisting: CdkVirtualScrollableElement, + }, + ]), + _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵInheritDefinitionFeature" + ], + ], + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + CdkVirtualScrollableElement, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive, + args: [ + { + selector: "[cdkVirtualScrollingElement]", + providers: [ + { + provide: VIRTUAL_SCROLLABLE, + useExisting: CdkVirtualScrollableElement, + }, + ], + standalone: true, + host: { + class: "cdk-virtual-scrollable", + }, + }, + ], + }, + ], + function () { + return [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef, + }, + { + type: ScrollDispatcher, + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone, + }, + { + type: _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_12__.Directionality, + decorators: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional, + }, + ], + }, + ]; + }, + null + ); + })(); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** + * Provides as virtual scrollable for the global / window scrollbar. + */ + class CdkVirtualScrollableWindow extends CdkVirtualScrollable { + constructor(scrollDispatcher, ngZone, dir) { + super( + new _angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef( + document.documentElement + ), + scrollDispatcher, + ngZone, + dir + ); + this._elementScrolled = + new rxjs__WEBPACK_IMPORTED_MODULE_5__.Observable((observer) => + this.ngZone.runOutsideAngular(() => + (0, rxjs__WEBPACK_IMPORTED_MODULE_8__.fromEvent)( + document, + "scroll" + ) + .pipe( + (0, + rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.takeUntil)( + this._destroyed + ) + ) + .subscribe(observer) + ) + ); + } + measureBoundingClientRectWithScrollOffset(from) { + return this.getElementRef().nativeElement.getBoundingClientRect()[ + from + ]; + } + } + CdkVirtualScrollableWindow.ɵfac = + function CdkVirtualScrollableWindow_Factory(t) { + return new (t || CdkVirtualScrollableWindow)( + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + ScrollDispatcher + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_12__.Directionality, + 8 + ) + ); + }; + CdkVirtualScrollableWindow.ɵdir = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineDirective" + ]({ + type: CdkVirtualScrollableWindow, + selectors: [["cdk-virtual-scroll-viewport", "scrollWindow", ""]], + standalone: true, + features: [ + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([ + { + provide: VIRTUAL_SCROLLABLE, + useExisting: CdkVirtualScrollableWindow, + }, + ]), + _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵInheritDefinitionFeature" + ], + ], + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + CdkVirtualScrollableWindow, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive, + args: [ + { + selector: "cdk-virtual-scroll-viewport[scrollWindow]", + providers: [ + { + provide: VIRTUAL_SCROLLABLE, + useExisting: CdkVirtualScrollableWindow, + }, + ], + standalone: true, + }, + ], + }, + ], + function () { + return [ + { + type: ScrollDispatcher, + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone, + }, + { + type: _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_12__.Directionality, + decorators: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional, + }, + ], + }, + ]; + }, + null + ); + })(); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + class CdkScrollableModule {} + CdkScrollableModule.ɵfac = function CdkScrollableModule_Factory(t) { + return new (t || CdkScrollableModule)(); + }; + CdkScrollableModule.ɵmod = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineNgModule" + ]({ + type: CdkScrollableModule, + }); + CdkScrollableModule.ɵinj = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineInjector" + ]({}); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + CdkScrollableModule, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgModule, + args: [ + { + exports: [CdkScrollable], + imports: [CdkScrollable], + }, + ], + }, + ], + null, + null + ); + })(); + /** + * @docs-primary-export + */ + class ScrollingModule {} + ScrollingModule.ɵfac = function ScrollingModule_Factory(t) { + return new (t || ScrollingModule)(); + }; + ScrollingModule.ɵmod = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineNgModule" + ]({ + type: ScrollingModule, + }); + ScrollingModule.ɵinj = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineInjector" + ]({ + imports: [ + _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_12__.BidiModule, + CdkScrollableModule, + CdkVirtualScrollViewport, + _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_12__.BidiModule, + CdkScrollableModule, + ], + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + ScrollingModule, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgModule, + args: [ + { + imports: [ + _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_12__.BidiModule, + CdkScrollableModule, + CdkVirtualScrollViewport, + CdkFixedSizeVirtualScroll, + CdkVirtualForOf, + CdkVirtualScrollableWindow, + CdkVirtualScrollableElement, + ], + exports: [ + _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_12__.BidiModule, + CdkScrollableModule, + CdkFixedSizeVirtualScroll, + CdkVirtualForOf, + CdkVirtualScrollViewport, + CdkVirtualScrollableWindow, + CdkVirtualScrollableElement, + ], + }, + ], + }, + ], + null, + null + ); + })(); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + + /** + * Generated bundle index. Do not edit. + */ + + /***/ + }, + + /***/ 1861: + /*!********************************************************!*\ + !*** ./node_modules/@angular/cdk/fesm2020/stepper.mjs ***! + \********************************************************/ + /***/ ( + __unused_webpack___webpack_module__, + __webpack_exports__, + __webpack_require__ + ) => { + __webpack_require__.r(__webpack_exports__); + /* harmony export */ __webpack_require__.d(__webpack_exports__, { + /* harmony export */ CdkStep: () => /* binding */ CdkStep, + /* harmony export */ CdkStepHeader: () => /* binding */ CdkStepHeader, + /* harmony export */ CdkStepLabel: () => /* binding */ CdkStepLabel, + /* harmony export */ CdkStepper: () => /* binding */ CdkStepper, + /* harmony export */ CdkStepperModule: () => + /* binding */ CdkStepperModule, + /* harmony export */ CdkStepperNext: () => + /* binding */ CdkStepperNext, + /* harmony export */ CdkStepperPrevious: () => + /* binding */ CdkStepperPrevious, + /* harmony export */ STEPPER_GLOBAL_OPTIONS: () => + /* binding */ STEPPER_GLOBAL_OPTIONS, + /* harmony export */ STEP_STATE: () => /* binding */ STEP_STATE, + /* harmony export */ StepperSelectionEvent: () => + /* binding */ StepperSelectionEvent, + /* harmony export */ + }); + /* harmony import */ var _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_5__ = + __webpack_require__(/*! @angular/cdk/a11y */ 4218); + /* harmony import */ var _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_9__ = + __webpack_require__(/*! @angular/cdk/bidi */ 2867); + /* harmony import */ var _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_1__ = + __webpack_require__(/*! @angular/cdk/coercion */ 8971); + /* harmony import */ var _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_7__ = + __webpack_require__(/*! @angular/cdk/keycodes */ 8456); + /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = + __webpack_require__(/*! @angular/core */ 2560); + /* harmony import */ var _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_8__ = + __webpack_require__(/*! @angular/cdk/platform */ 9107); + /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = + __webpack_require__(/*! rxjs */ 228); + /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_6__ = + __webpack_require__(/*! rxjs */ 745); + /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = + __webpack_require__(/*! rxjs/operators */ 4874); + /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_4__ = + __webpack_require__(/*! rxjs/operators */ 8951); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + function CdkStep_ng_template_0_Template(rf, ctx) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojection"](0); + } + } + const _c0 = ["*"]; + class CdkStepHeader { + constructor(_elementRef) { + this._elementRef = _elementRef; + } + /** Focuses the step header. */ + focus() { + this._elementRef.nativeElement.focus(); + } + } + CdkStepHeader.ɵfac = function CdkStepHeader_Factory(t) { + return new (t || CdkStepHeader)( + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef + ) + ); + }; + CdkStepHeader.ɵdir = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineDirective" + ]({ + type: CdkStepHeader, + selectors: [["", "cdkStepHeader", ""]], + hostAttrs: ["role", "tab"], + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + CdkStepHeader, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive, + args: [ + { + selector: "[cdkStepHeader]", + host: { + role: "tab", + }, + }, + ], + }, + ], + function () { + return [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef, + }, + ]; + }, + null + ); + })(); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + class CdkStepLabel { + constructor(/** @docs-private */ template) { + this.template = template; + } + } + CdkStepLabel.ɵfac = function CdkStepLabel_Factory(t) { + return new (t || CdkStepLabel)( + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef + ) + ); + }; + CdkStepLabel.ɵdir = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineDirective" + ]({ + type: CdkStepLabel, + selectors: [["", "cdkStepLabel", ""]], + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + CdkStepLabel, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive, + args: [ + { + selector: "[cdkStepLabel]", + }, + ], + }, + ], + function () { + return [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef, + }, + ]; + }, + null + ); + })(); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** Used to generate unique ID for each stepper component. */ + let nextId = 0; + /** Change event emitted on selection changes. */ + class StepperSelectionEvent {} + /** Enum to represent the different states of the steps. */ + const STEP_STATE = { + NUMBER: "number", + EDIT: "edit", + DONE: "done", + ERROR: "error", + }; + /** InjectionToken that can be used to specify the global stepper options. */ + const STEPPER_GLOBAL_OPTIONS = + new _angular_core__WEBPACK_IMPORTED_MODULE_0__.InjectionToken( + "STEPPER_GLOBAL_OPTIONS" + ); + class CdkStep { + /** Whether the user can return to this step once it has been marked as completed. */ + get editable() { + return this._editable; + } + set editable(value) { + this._editable = (0, + _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_1__.coerceBooleanProperty)( + value + ); + } + /** Whether the completion of step is optional. */ + get optional() { + return this._optional; + } + set optional(value) { + this._optional = (0, + _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_1__.coerceBooleanProperty)( + value + ); + } + /** Whether step is marked as completed. */ + get completed() { + return this._completedOverride == null + ? this._getDefaultCompleted() + : this._completedOverride; + } + set completed(value) { + this._completedOverride = (0, + _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_1__.coerceBooleanProperty)( + value + ); + } + _getDefaultCompleted() { + return this.stepControl + ? this.stepControl.valid && this.interacted + : this.interacted; + } + /** Whether step has an error. */ + get hasError() { + return this._customError == null + ? this._getDefaultError() + : this._customError; + } + set hasError(value) { + this._customError = (0, + _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_1__.coerceBooleanProperty)( + value + ); + } + _getDefaultError() { + return ( + this.stepControl && this.stepControl.invalid && this.interacted + ); + } + constructor(_stepper, stepperOptions) { + this._stepper = _stepper; + /** Whether user has attempted to move away from the step. */ + this.interacted = false; + /** Emits when the user has attempted to move away from the step. */ + this.interactedStream = + new _angular_core__WEBPACK_IMPORTED_MODULE_0__.EventEmitter(); + this._editable = true; + this._optional = false; + this._completedOverride = null; + this._customError = null; + this._stepperOptions = stepperOptions ? stepperOptions : {}; + this._displayDefaultIndicatorType = + this._stepperOptions.displayDefaultIndicatorType !== false; + } + /** Selects this step component. */ + select() { + this._stepper.selected = this; + } + /** Resets the step to its initial state. Note that this includes resetting form data. */ + reset() { + this.interacted = false; + if (this._completedOverride != null) { + this._completedOverride = false; + } + if (this._customError != null) { + this._customError = false; + } + if (this.stepControl) { + this.stepControl.reset(); + } + } + ngOnChanges() { + // Since basically all inputs of the MatStep get proxied through the view down to the + // underlying MatStepHeader, we have to make sure that change detection runs correctly. + this._stepper._stateChanged(); + } + _markAsInteracted() { + if (!this.interacted) { + this.interacted = true; + this.interactedStream.emit(this); + } + } + /** Determines whether the error state can be shown. */ + _showError() { + // We want to show the error state either if the user opted into/out of it using the + // global options, or if they've explicitly set it through the `hasError` input. + return this._stepperOptions.showError ?? this._customError != null; + } + } + CdkStep.ɵfac = function CdkStep_Factory(t) { + return new (t || CdkStep)( + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + (0, _angular_core__WEBPACK_IMPORTED_MODULE_0__.forwardRef)( + () => CdkStepper + ) + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + STEPPER_GLOBAL_OPTIONS, + 8 + ) + ); + }; + CdkStep.ɵcmp = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineComponent" + ]({ + type: CdkStep, + selectors: [["cdk-step"]], + contentQueries: function CdkStep_ContentQueries(rf, ctx, dirIndex) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵcontentQuery"]( + dirIndex, + CdkStepLabel, + 5 + ); + } + if (rf & 2) { + let _t; + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"]( + (_t = + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) + ) && (ctx.stepLabel = _t.first); + } + }, + viewQuery: function CdkStep_Query(rf, ctx) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵviewQuery"]( + _angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef, + 7 + ); + } + if (rf & 2) { + let _t; + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"]( + (_t = + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) + ) && (ctx.content = _t.first); + } + }, + inputs: { + stepControl: "stepControl", + label: "label", + errorMessage: "errorMessage", + ariaLabel: ["aria-label", "ariaLabel"], + ariaLabelledby: ["aria-labelledby", "ariaLabelledby"], + state: "state", + editable: "editable", + optional: "optional", + completed: "completed", + hasError: "hasError", + }, + outputs: { + interactedStream: "interacted", + }, + exportAs: ["cdkStep"], + features: [ + _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵNgOnChangesFeature" + ], + ], + ngContentSelectors: _c0, + decls: 1, + vars: 0, + template: function CdkStep_Template(rf, ctx) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojectionDef"](); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"]( + 0, + CdkStep_ng_template_0_Template, + 1, + 0, + "ng-template" + ); + } + }, + encapsulation: 2, + changeDetection: 0, + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + CdkStep, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Component, + args: [ + { + selector: "cdk-step", + exportAs: "cdkStep", + template: + "", + encapsulation: + _angular_core__WEBPACK_IMPORTED_MODULE_0__ + .ViewEncapsulation.None, + changeDetection: + _angular_core__WEBPACK_IMPORTED_MODULE_0__ + .ChangeDetectionStrategy.OnPush, + }, + ], + }, + ], + function () { + return [ + { + type: CdkStepper, + decorators: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject, + args: [ + (0, + _angular_core__WEBPACK_IMPORTED_MODULE_0__.forwardRef)( + () => CdkStepper + ), + ], + }, + ], + }, + { + type: undefined, + decorators: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional, + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject, + args: [STEPPER_GLOBAL_OPTIONS], + }, + ], + }, + ]; + }, + { + stepLabel: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ContentChild, + args: [CdkStepLabel], + }, + ], + content: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewChild, + args: [ + _angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef, + { + static: true, + }, + ], + }, + ], + stepControl: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input, + }, + ], + interactedStream: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Output, + args: ["interacted"], + }, + ], + label: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input, + }, + ], + errorMessage: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input, + }, + ], + ariaLabel: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input, + args: ["aria-label"], + }, + ], + ariaLabelledby: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input, + args: ["aria-labelledby"], + }, + ], + state: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input, + }, + ], + editable: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input, + }, + ], + optional: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input, + }, + ], + completed: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input, + }, + ], + hasError: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input, + }, + ], + } + ); + })(); + class CdkStepper { + /** Whether the validity of previous steps should be checked or not. */ + get linear() { + return this._linear; + } + set linear(value) { + this._linear = (0, + _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_1__.coerceBooleanProperty)( + value + ); + } + /** The index of the selected step. */ + get selectedIndex() { + return this._selectedIndex; + } + set selectedIndex(index) { + const newIndex = (0, + _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_1__.coerceNumberProperty)( + index + ); + if (this.steps && this._steps) { + // Ensure that the index can't be out of bounds. + if ( + !this._isValidIndex(newIndex) && + (typeof ngDevMode === "undefined" || ngDevMode) + ) { + throw Error( + "cdkStepper: Cannot assign out-of-bounds value to `selectedIndex`." + ); + } + this.selected?._markAsInteracted(); + if ( + this._selectedIndex !== newIndex && + !this._anyControlsInvalidOrPending(newIndex) && + (newIndex >= this._selectedIndex || + this.steps.toArray()[newIndex].editable) + ) { + this._updateSelectedItemIndex(newIndex); + } + } else { + this._selectedIndex = newIndex; + } + } + /** The step that is selected. */ + get selected() { + return this.steps + ? this.steps.toArray()[this.selectedIndex] + : undefined; + } + set selected(step) { + this.selectedIndex = + step && this.steps ? this.steps.toArray().indexOf(step) : -1; + } + /** Orientation of the stepper. */ + get orientation() { + return this._orientation; + } + set orientation(value) { + // This is a protected method so that `MatStepper` can hook into it. + this._orientation = value; + if (this._keyManager) { + this._keyManager.withVerticalOrientation(value === "vertical"); + } + } + constructor(_dir, _changeDetectorRef, _elementRef) { + this._dir = _dir; + this._changeDetectorRef = _changeDetectorRef; + this._elementRef = _elementRef; + /** Emits when the component is destroyed. */ + this._destroyed = new rxjs__WEBPACK_IMPORTED_MODULE_2__.Subject(); + /** Steps that belong to the current stepper, excluding ones from nested steppers. */ + this.steps = + new _angular_core__WEBPACK_IMPORTED_MODULE_0__.QueryList(); + /** List of step headers sorted based on their DOM order. */ + this._sortedHeaders = + new _angular_core__WEBPACK_IMPORTED_MODULE_0__.QueryList(); + this._linear = false; + this._selectedIndex = 0; + /** Event emitted when the selected step has changed. */ + this.selectionChange = + new _angular_core__WEBPACK_IMPORTED_MODULE_0__.EventEmitter(); + this._orientation = "horizontal"; + this._groupId = nextId++; + } + ngAfterContentInit() { + this._steps.changes + .pipe( + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.startWith)( + this._steps + ), + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.takeUntil)( + this._destroyed + ) + ) + .subscribe((steps) => { + this.steps.reset( + steps.filter((step) => step._stepper === this) + ); + this.steps.notifyOnChanges(); + }); + } + ngAfterViewInit() { + // If the step headers are defined outside of the `ngFor` that renders the steps, like in the + // Material stepper, they won't appear in the `QueryList` in the same order as they're + // rendered in the DOM which will lead to incorrect keyboard navigation. We need to sort + // them manually to ensure that they're correct. Alternatively, we can change the Material + // template to inline the headers in the `ngFor`, but that'll result in a lot of + // code duplication. See #23539. + this._stepHeader.changes + .pipe( + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.startWith)( + this._stepHeader + ), + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.takeUntil)( + this._destroyed + ) + ) + .subscribe((headers) => { + this._sortedHeaders.reset( + headers.toArray().sort((a, b) => { + const documentPosition = + a._elementRef.nativeElement.compareDocumentPosition( + b._elementRef.nativeElement + ); + // `compareDocumentPosition` returns a bitmask so we have to use a bitwise operator. + // https://developer.mozilla.org/en-US/docs/Web/API/Node/compareDocumentPosition + // tslint:disable-next-line:no-bitwise + return documentPosition & Node.DOCUMENT_POSITION_FOLLOWING + ? -1 + : 1; + }) + ); + this._sortedHeaders.notifyOnChanges(); + }); + // Note that while the step headers are content children by default, any components that + // extend this one might have them as view children. We initialize the keyboard handling in + // AfterViewInit so we're guaranteed for both view and content children to be defined. + this._keyManager = + new _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_5__.FocusKeyManager( + this._sortedHeaders + ) + .withWrap() + .withHomeAndEnd() + .withVerticalOrientation(this._orientation === "vertical"); + (this._dir + ? this._dir.change + : (0, rxjs__WEBPACK_IMPORTED_MODULE_6__.of)() + ) + .pipe( + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.startWith)( + this._layoutDirection() + ), + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.takeUntil)( + this._destroyed + ) + ) + .subscribe((direction) => + this._keyManager.withHorizontalOrientation(direction) + ); + this._keyManager.updateActiveItem(this._selectedIndex); + // No need to `takeUntil` here, because we're the ones destroying `steps`. + this.steps.changes.subscribe(() => { + if (!this.selected) { + this._selectedIndex = Math.max(this._selectedIndex - 1, 0); + } + }); + // The logic which asserts that the selected index is within bounds doesn't run before the + // steps are initialized, because we don't how many steps there are yet so we may have an + // invalid index on init. If that's the case, auto-correct to the default so we don't throw. + if (!this._isValidIndex(this._selectedIndex)) { + this._selectedIndex = 0; + } + } + ngOnDestroy() { + this._keyManager?.destroy(); + this.steps.destroy(); + this._sortedHeaders.destroy(); + this._destroyed.next(); + this._destroyed.complete(); + } + /** Selects and focuses the next step in list. */ + next() { + this.selectedIndex = Math.min( + this._selectedIndex + 1, + this.steps.length - 1 + ); + } + /** Selects and focuses the previous step in list. */ + previous() { + this.selectedIndex = Math.max(this._selectedIndex - 1, 0); + } + /** Resets the stepper to its initial state. Note that this includes clearing form data. */ + reset() { + this._updateSelectedItemIndex(0); + this.steps.forEach((step) => step.reset()); + this._stateChanged(); + } + /** Returns a unique id for each step label element. */ + _getStepLabelId(i) { + return `cdk-step-label-${this._groupId}-${i}`; + } + /** Returns unique id for each step content element. */ + _getStepContentId(i) { + return `cdk-step-content-${this._groupId}-${i}`; + } + /** Marks the component to be change detected. */ + _stateChanged() { + this._changeDetectorRef.markForCheck(); + } + /** Returns position state of the step with the given index. */ + _getAnimationDirection(index) { + const position = index - this._selectedIndex; + if (position < 0) { + return this._layoutDirection() === "rtl" ? "next" : "previous"; + } else if (position > 0) { + return this._layoutDirection() === "rtl" ? "previous" : "next"; + } + return "current"; + } + /** Returns the type of icon to be displayed. */ + _getIndicatorType(index, state = STEP_STATE.NUMBER) { + const step = this.steps.toArray()[index]; + const isCurrentStep = this._isCurrentStep(index); + return step._displayDefaultIndicatorType + ? this._getDefaultIndicatorLogic(step, isCurrentStep) + : this._getGuidelineLogic(step, isCurrentStep, state); + } + _getDefaultIndicatorLogic(step, isCurrentStep) { + if (step._showError() && step.hasError && !isCurrentStep) { + return STEP_STATE.ERROR; + } else if (!step.completed || isCurrentStep) { + return STEP_STATE.NUMBER; + } else { + return step.editable ? STEP_STATE.EDIT : STEP_STATE.DONE; + } + } + _getGuidelineLogic(step, isCurrentStep, state = STEP_STATE.NUMBER) { + if (step._showError() && step.hasError && !isCurrentStep) { + return STEP_STATE.ERROR; + } else if (step.completed && !isCurrentStep) { + return STEP_STATE.DONE; + } else if (step.completed && isCurrentStep) { + return state; + } else if (step.editable && isCurrentStep) { + return STEP_STATE.EDIT; + } else { + return state; + } + } + _isCurrentStep(index) { + return this._selectedIndex === index; + } + /** Returns the index of the currently-focused step header. */ + _getFocusIndex() { + return this._keyManager + ? this._keyManager.activeItemIndex + : this._selectedIndex; + } + _updateSelectedItemIndex(newIndex) { + const stepsArray = this.steps.toArray(); + this.selectionChange.emit({ + selectedIndex: newIndex, + previouslySelectedIndex: this._selectedIndex, + selectedStep: stepsArray[newIndex], + previouslySelectedStep: stepsArray[this._selectedIndex], + }); + // If focus is inside the stepper, move it to the next header, otherwise it may become + // lost when the active step content is hidden. We can't be more granular with the check + // (e.g. checking whether focus is inside the active step), because we don't have a + // reference to the elements that are rendering out the content. + this._containsFocus() + ? this._keyManager.setActiveItem(newIndex) + : this._keyManager.updateActiveItem(newIndex); + this._selectedIndex = newIndex; + this._stateChanged(); + } + _onKeydown(event) { + const hasModifier = (0, + _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_7__.hasModifierKey)( + event + ); + const keyCode = event.keyCode; + const manager = this._keyManager; + if ( + manager.activeItemIndex != null && + !hasModifier && + (keyCode === + _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_7__.SPACE || + keyCode === + _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_7__.ENTER) + ) { + this.selectedIndex = manager.activeItemIndex; + event.preventDefault(); + } else { + manager.setFocusOrigin("keyboard").onKeydown(event); + } + } + _anyControlsInvalidOrPending(index) { + if (this._linear && index >= 0) { + return this.steps + .toArray() + .slice(0, index) + .some((step) => { + const control = step.stepControl; + const isIncomplete = control + ? control.invalid || control.pending || !step.interacted + : !step.completed; + return ( + isIncomplete && !step.optional && !step._completedOverride + ); + }); + } + return false; + } + _layoutDirection() { + return this._dir && this._dir.value === "rtl" ? "rtl" : "ltr"; + } + /** Checks whether the stepper contains the focused element. */ + _containsFocus() { + const stepperElement = this._elementRef.nativeElement; + const focusedElement = (0, + _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_8__._getFocusedElementPierceShadowDom)(); + return ( + stepperElement === focusedElement || + stepperElement.contains(focusedElement) + ); + } + /** Checks whether the passed-in index is a valid step index. */ + _isValidIndex(index) { + return index > -1 && (!this.steps || index < this.steps.length); + } + } + CdkStepper.ɵfac = function CdkStepper_Factory(t) { + return new (t || CdkStepper)( + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_9__.Directionality, + 8 + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_0__.ChangeDetectorRef + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef + ) + ); + }; + CdkStepper.ɵdir = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineDirective" + ]({ + type: CdkStepper, + selectors: [["", "cdkStepper", ""]], + contentQueries: function CdkStepper_ContentQueries( + rf, + ctx, + dirIndex + ) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵcontentQuery"]( + dirIndex, + CdkStep, + 5 + ); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵcontentQuery"]( + dirIndex, + CdkStepHeader, + 5 + ); + } + if (rf & 2) { + let _t; + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"]( + (_t = + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) + ) && (ctx._steps = _t); + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"]( + (_t = + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) + ) && (ctx._stepHeader = _t); + } + }, + inputs: { + linear: "linear", + selectedIndex: "selectedIndex", + selected: "selected", + orientation: "orientation", + }, + outputs: { + selectionChange: "selectionChange", + }, + exportAs: ["cdkStepper"], + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + CdkStepper, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive, + args: [ + { + selector: "[cdkStepper]", + exportAs: "cdkStepper", + }, + ], + }, + ], + function () { + return [ + { + type: _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_9__.Directionality, + decorators: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional, + }, + ], + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ChangeDetectorRef, + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef, + }, + ]; + }, + { + _steps: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ContentChildren, + args: [ + CdkStep, + { + descendants: true, + }, + ], + }, + ], + _stepHeader: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ContentChildren, + args: [ + CdkStepHeader, + { + descendants: true, + }, + ], + }, + ], + linear: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input, + }, + ], + selectedIndex: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input, + }, + ], + selected: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input, + }, + ], + selectionChange: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Output, + }, + ], + orientation: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input, + }, + ], + } + ); + })(); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** Button that moves to the next step in a stepper workflow. */ + class CdkStepperNext { + constructor(_stepper) { + this._stepper = _stepper; + /** Type of the next button. Defaults to "submit" if not specified. */ + this.type = "submit"; + } + } + CdkStepperNext.ɵfac = function CdkStepperNext_Factory(t) { + return new (t || CdkStepperNext)( + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + CdkStepper + ) + ); + }; + CdkStepperNext.ɵdir = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineDirective" + ]({ + type: CdkStepperNext, + selectors: [["button", "cdkStepperNext", ""]], + hostVars: 1, + hostBindings: function CdkStepperNext_HostBindings(rf, ctx) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]( + "click", + function CdkStepperNext_click_HostBindingHandler() { + return ctx._stepper.next(); + } + ); + } + if (rf & 2) { + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵhostProperty"]( + "type", + ctx.type + ); + } + }, + inputs: { + type: "type", + }, + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + CdkStepperNext, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive, + args: [ + { + selector: "button[cdkStepperNext]", + host: { + "[type]": "type", + "(click)": "_stepper.next()", + }, + }, + ], + }, + ], + function () { + return [ + { + type: CdkStepper, + }, + ]; + }, + { + type: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input, + }, + ], + } + ); + })(); + /** Button that moves to the previous step in a stepper workflow. */ + class CdkStepperPrevious { + constructor(_stepper) { + this._stepper = _stepper; + /** Type of the previous button. Defaults to "button" if not specified. */ + this.type = "button"; + } + } + CdkStepperPrevious.ɵfac = function CdkStepperPrevious_Factory(t) { + return new (t || CdkStepperPrevious)( + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + CdkStepper + ) + ); + }; + CdkStepperPrevious.ɵdir = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineDirective" + ]({ + type: CdkStepperPrevious, + selectors: [["button", "cdkStepperPrevious", ""]], + hostVars: 1, + hostBindings: function CdkStepperPrevious_HostBindings(rf, ctx) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]( + "click", + function CdkStepperPrevious_click_HostBindingHandler() { + return ctx._stepper.previous(); + } + ); + } + if (rf & 2) { + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵhostProperty"]( + "type", + ctx.type + ); + } + }, + inputs: { + type: "type", + }, + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + CdkStepperPrevious, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive, + args: [ + { + selector: "button[cdkStepperPrevious]", + host: { + "[type]": "type", + "(click)": "_stepper.previous()", + }, + }, + ], + }, + ], + function () { + return [ + { + type: CdkStepper, + }, + ]; + }, + { + type: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input, + }, + ], + } + ); + })(); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + class CdkStepperModule {} + CdkStepperModule.ɵfac = function CdkStepperModule_Factory(t) { + return new (t || CdkStepperModule)(); + }; + CdkStepperModule.ɵmod = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineNgModule" + ]({ + type: CdkStepperModule, + }); + CdkStepperModule.ɵinj = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineInjector" + ]({ + imports: [ + _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_9__.BidiModule, + ], + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + CdkStepperModule, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgModule, + args: [ + { + imports: [ + _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_9__.BidiModule, + ], + exports: [ + CdkStep, + CdkStepper, + CdkStepHeader, + CdkStepLabel, + CdkStepperNext, + CdkStepperPrevious, + ], + declarations: [ + CdkStep, + CdkStepper, + CdkStepHeader, + CdkStepLabel, + CdkStepperNext, + CdkStepperPrevious, + ], + }, + ], + }, + ], + null, + null + ); + })(); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + + /** + * Generated bundle index. Do not edit. + */ + + /***/ + }, + + /***/ 5804: + /*!***********************************************************!*\ + !*** ./node_modules/@angular/cdk/fesm2020/text-field.mjs ***! + \***********************************************************/ + /***/ ( + __unused_webpack___webpack_module__, + __webpack_exports__, + __webpack_require__ + ) => { + __webpack_require__.r(__webpack_exports__); + /* harmony export */ __webpack_require__.d(__webpack_exports__, { + /* harmony export */ AutofillMonitor: () => + /* binding */ AutofillMonitor, + /* harmony export */ CdkAutofill: () => /* binding */ CdkAutofill, + /* harmony export */ CdkTextareaAutosize: () => + /* binding */ CdkTextareaAutosize, + /* harmony export */ TextFieldModule: () => + /* binding */ TextFieldModule, + /* harmony export */ + }); + /* harmony import */ var _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_0__ = + __webpack_require__(/*! @angular/cdk/platform */ 9107); + /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4__ = + __webpack_require__(/*! @angular/core */ 2560); + /* harmony import */ var _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__ = + __webpack_require__(/*! @angular/cdk/coercion */ 8971); + /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_1__ = + __webpack_require__(/*! rxjs */ 591); + /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_3__ = + __webpack_require__(/*! rxjs */ 228); + /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_5__ = + __webpack_require__(/*! rxjs */ 3280); + /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_6__ = + __webpack_require__(/*! rxjs/operators */ 998); + /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_7__ = + __webpack_require__(/*! rxjs/operators */ 8951); + /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_8__ = + __webpack_require__(/*! @angular/common */ 4666); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** Options to pass to the animationstart listener. */ + const listenerOptions = (0, + _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_0__.normalizePassiveListenerOptions)( + { + passive: true, + } + ); + /** + * An injectable service that can be used to monitor the autofill state of an input. + * Based on the following blog post: + * https://medium.com/@brunn/detecting-autofilled-fields-in-javascript-aed598d25da7 + */ + class AutofillMonitor { + constructor(_platform, _ngZone) { + this._platform = _platform; + this._ngZone = _ngZone; + this._monitoredElements = new Map(); + } + monitor(elementOrRef) { + if (!this._platform.isBrowser) { + return rxjs__WEBPACK_IMPORTED_MODULE_1__.EMPTY; + } + const element = (0, + _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__.coerceElement)( + elementOrRef + ); + const info = this._monitoredElements.get(element); + if (info) { + return info.subject; + } + const result = new rxjs__WEBPACK_IMPORTED_MODULE_3__.Subject(); + const cssClass = "cdk-text-field-autofilled"; + const listener = (event) => { + // Animation events fire on initial element render, we check for the presence of the autofill + // CSS class to make sure this is a real change in state, not just the initial render before + // we fire off events. + if ( + event.animationName === "cdk-text-field-autofill-start" && + !element.classList.contains(cssClass) + ) { + element.classList.add(cssClass); + this._ngZone.run(() => + result.next({ + target: event.target, + isAutofilled: true, + }) + ); + } else if ( + event.animationName === "cdk-text-field-autofill-end" && + element.classList.contains(cssClass) + ) { + element.classList.remove(cssClass); + this._ngZone.run(() => + result.next({ + target: event.target, + isAutofilled: false, + }) + ); + } + }; + this._ngZone.runOutsideAngular(() => { + element.addEventListener( + "animationstart", + listener, + listenerOptions + ); + element.classList.add("cdk-text-field-autofill-monitored"); + }); + this._monitoredElements.set(element, { + subject: result, + unlisten: () => { + element.removeEventListener( + "animationstart", + listener, + listenerOptions + ); + }, + }); + return result; + } + stopMonitoring(elementOrRef) { + const element = (0, + _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__.coerceElement)( + elementOrRef + ); + const info = this._monitoredElements.get(element); + if (info) { + info.unlisten(); + info.subject.complete(); + element.classList.remove("cdk-text-field-autofill-monitored"); + element.classList.remove("cdk-text-field-autofilled"); + this._monitoredElements.delete(element); + } + } + ngOnDestroy() { + this._monitoredElements.forEach((_info, element) => + this.stopMonitoring(element) + ); + } + } + AutofillMonitor.ɵfac = function AutofillMonitor_Factory(t) { + return new (t || AutofillMonitor)( + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"]( + _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_0__.Platform + ), + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_4__.NgZone + ) + ); + }; + AutofillMonitor.ɵprov = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_4__[ + "ɵɵdefineInjectable" + ]({ + token: AutofillMonitor, + factory: AutofillMonitor.ɵfac, + providedIn: "root", + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵsetClassMetadata"]( + AutofillMonitor, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.Injectable, + args: [ + { + providedIn: "root", + }, + ], + }, + ], + function () { + return [ + { + type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_0__.Platform, + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.NgZone, + }, + ]; + }, + null + ); + })(); + /** A directive that can be used to monitor the autofill state of an input. */ + class CdkAutofill { + constructor(_elementRef, _autofillMonitor) { + this._elementRef = _elementRef; + this._autofillMonitor = _autofillMonitor; + /** Emits when the autofill state of the element changes. */ + this.cdkAutofill = + new _angular_core__WEBPACK_IMPORTED_MODULE_4__.EventEmitter(); + } + ngOnInit() { + this._autofillMonitor + .monitor(this._elementRef) + .subscribe((event) => this.cdkAutofill.emit(event)); + } + ngOnDestroy() { + this._autofillMonitor.stopMonitoring(this._elementRef); + } + } + CdkAutofill.ɵfac = function CdkAutofill_Factory(t) { + return new (t || CdkAutofill)( + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_4__.ElementRef + ), + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"]( + AutofillMonitor + ) + ); + }; + CdkAutofill.ɵdir = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_4__[ + "ɵɵdefineDirective" + ]({ + type: CdkAutofill, + selectors: [["", "cdkAutofill", ""]], + outputs: { + cdkAutofill: "cdkAutofill", + }, + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵsetClassMetadata"]( + CdkAutofill, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.Directive, + args: [ + { + selector: "[cdkAutofill]", + }, + ], + }, + ], + function () { + return [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.ElementRef, + }, + { + type: AutofillMonitor, + }, + ]; + }, + { + cdkAutofill: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.Output, + }, + ], + } + ); + })(); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /** Directive to automatically resize a textarea to fit its content. */ + class CdkTextareaAutosize { + /** Minimum amount of rows in the textarea. */ + get minRows() { + return this._minRows; + } + set minRows(value) { + this._minRows = (0, + _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__.coerceNumberProperty)( + value + ); + this._setMinHeight(); + } + /** Maximum amount of rows in the textarea. */ + get maxRows() { + return this._maxRows; + } + set maxRows(value) { + this._maxRows = (0, + _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__.coerceNumberProperty)( + value + ); + this._setMaxHeight(); + } + /** Whether autosizing is enabled or not */ + get enabled() { + return this._enabled; + } + set enabled(value) { + value = (0, + _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__.coerceBooleanProperty)( + value + ); + // Only act if the actual value changed. This specifically helps to not run + // resizeToFitContent too early (i.e. before ngAfterViewInit) + if (this._enabled !== value) { + (this._enabled = value) + ? this.resizeToFitContent(true) + : this.reset(); + } + } + get placeholder() { + return this._textareaElement.placeholder; + } + set placeholder(value) { + this._cachedPlaceholderHeight = undefined; + if (value) { + this._textareaElement.setAttribute("placeholder", value); + } else { + this._textareaElement.removeAttribute("placeholder"); + } + this._cacheTextareaPlaceholderHeight(); + } + constructor( + _elementRef, + _platform, + _ngZone /** @breaking-change 11.0.0 make document required */, + document + ) { + this._elementRef = _elementRef; + this._platform = _platform; + this._ngZone = _ngZone; + this._destroyed = new rxjs__WEBPACK_IMPORTED_MODULE_3__.Subject(); + this._enabled = true; + /** + * Value of minRows as of last resize. If the minRows has decreased, the + * height of the textarea needs to be recomputed to reflect the new minimum. The maxHeight + * does not have the same problem because it does not affect the textarea's scrollHeight. + */ + this._previousMinRows = -1; + this._isViewInited = false; + /** Handles `focus` and `blur` events. */ + this._handleFocusEvent = (event) => { + this._hasFocus = event.type === "focus"; + }; + this._document = document; + this._textareaElement = this._elementRef.nativeElement; + } + /** Sets the minimum height of the textarea as determined by minRows. */ + _setMinHeight() { + const minHeight = + this.minRows && this._cachedLineHeight + ? `${this.minRows * this._cachedLineHeight}px` + : null; + if (minHeight) { + this._textareaElement.style.minHeight = minHeight; + } + } + /** Sets the maximum height of the textarea as determined by maxRows. */ + _setMaxHeight() { + const maxHeight = + this.maxRows && this._cachedLineHeight + ? `${this.maxRows * this._cachedLineHeight}px` + : null; + if (maxHeight) { + this._textareaElement.style.maxHeight = maxHeight; + } + } + ngAfterViewInit() { + if (this._platform.isBrowser) { + // Remember the height which we started with in case autosizing is disabled + this._initialHeight = this._textareaElement.style.height; + this.resizeToFitContent(); + this._ngZone.runOutsideAngular(() => { + const window = this._getWindow(); + (0, rxjs__WEBPACK_IMPORTED_MODULE_5__.fromEvent)( + window, + "resize" + ) + .pipe( + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.auditTime)( + 16 + ), + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.takeUntil)( + this._destroyed + ) + ) + .subscribe(() => this.resizeToFitContent(true)); + this._textareaElement.addEventListener( + "focus", + this._handleFocusEvent + ); + this._textareaElement.addEventListener( + "blur", + this._handleFocusEvent + ); + }); + this._isViewInited = true; + this.resizeToFitContent(true); + } + } + ngOnDestroy() { + this._textareaElement.removeEventListener( + "focus", + this._handleFocusEvent + ); + this._textareaElement.removeEventListener( + "blur", + this._handleFocusEvent + ); + this._destroyed.next(); + this._destroyed.complete(); + } + /** + * Cache the height of a single-row textarea if it has not already been cached. + * + * We need to know how large a single "row" of a textarea is in order to apply minRows and + * maxRows. For the initial version, we will assume that the height of a single line in the + * textarea does not ever change. + */ + _cacheTextareaLineHeight() { + if (this._cachedLineHeight) { + return; + } + // Use a clone element because we have to override some styles. + let textareaClone = this._textareaElement.cloneNode(false); + textareaClone.rows = 1; + // Use `position: absolute` so that this doesn't cause a browser layout and use + // `visibility: hidden` so that nothing is rendered. Clear any other styles that + // would affect the height. + textareaClone.style.position = "absolute"; + textareaClone.style.visibility = "hidden"; + textareaClone.style.border = "none"; + textareaClone.style.padding = "0"; + textareaClone.style.height = ""; + textareaClone.style.minHeight = ""; + textareaClone.style.maxHeight = ""; + // In Firefox it happens that textarea elements are always bigger than the specified amount + // of rows. This is because Firefox tries to add extra space for the horizontal scrollbar. + // As a workaround that removes the extra space for the scrollbar, we can just set overflow + // to hidden. This ensures that there is no invalid calculation of the line height. + // See Firefox bug report: https://bugzilla.mozilla.org/show_bug.cgi?id=33654 + textareaClone.style.overflow = "hidden"; + this._textareaElement.parentNode.appendChild(textareaClone); + this._cachedLineHeight = textareaClone.clientHeight; + textareaClone.remove(); + // Min and max heights have to be re-calculated if the cached line height changes + this._setMinHeight(); + this._setMaxHeight(); + } + _measureScrollHeight() { + const element = this._textareaElement; + const previousMargin = element.style.marginBottom || ""; + const isFirefox = this._platform.FIREFOX; + const needsMarginFiller = isFirefox && this._hasFocus; + const measuringClass = isFirefox + ? "cdk-textarea-autosize-measuring-firefox" + : "cdk-textarea-autosize-measuring"; + // In some cases the page might move around while we're measuring the `textarea` on Firefox. We + // work around it by assigning a temporary margin with the same height as the `textarea` so that + // it occupies the same amount of space. See #23233. + if (needsMarginFiller) { + element.style.marginBottom = `${element.clientHeight}px`; + } + // Reset the textarea height to auto in order to shrink back to its default size. + // Also temporarily force overflow:hidden, so scroll bars do not interfere with calculations. + element.classList.add(measuringClass); + // The measuring class includes a 2px padding to workaround an issue with Chrome, + // so we account for that extra space here by subtracting 4 (2px top + 2px bottom). + const scrollHeight = element.scrollHeight - 4; + element.classList.remove(measuringClass); + if (needsMarginFiller) { + element.style.marginBottom = previousMargin; + } + return scrollHeight; + } + _cacheTextareaPlaceholderHeight() { + if ( + !this._isViewInited || + this._cachedPlaceholderHeight != undefined + ) { + return; + } + if (!this.placeholder) { + this._cachedPlaceholderHeight = 0; + return; + } + const value = this._textareaElement.value; + this._textareaElement.value = this._textareaElement.placeholder; + this._cachedPlaceholderHeight = this._measureScrollHeight(); + this._textareaElement.value = value; + } + ngDoCheck() { + if (this._platform.isBrowser) { + this.resizeToFitContent(); + } + } + /** + * Resize the textarea to fit its content. + * @param force Whether to force a height recalculation. By default the height will be + * recalculated only if the value changed since the last call. + */ + resizeToFitContent(force = false) { + // If autosizing is disabled, just skip everything else + if (!this._enabled) { + return; + } + this._cacheTextareaLineHeight(); + this._cacheTextareaPlaceholderHeight(); + // If we haven't determined the line-height yet, we know we're still hidden and there's no point + // in checking the height of the textarea. + if (!this._cachedLineHeight) { + return; + } + const textarea = this._elementRef.nativeElement; + const value = textarea.value; + // Only resize if the value or minRows have changed since these calculations can be expensive. + if ( + !force && + this._minRows === this._previousMinRows && + value === this._previousValue + ) { + return; + } + const scrollHeight = this._measureScrollHeight(); + const height = Math.max( + scrollHeight, + this._cachedPlaceholderHeight || 0 + ); + // Use the scrollHeight to know how large the textarea *would* be if fit its entire value. + textarea.style.height = `${height}px`; + this._ngZone.runOutsideAngular(() => { + if (typeof requestAnimationFrame !== "undefined") { + requestAnimationFrame(() => + this._scrollToCaretPosition(textarea) + ); + } else { + setTimeout(() => this._scrollToCaretPosition(textarea)); + } + }); + this._previousValue = value; + this._previousMinRows = this._minRows; + } + /** + * Resets the textarea to its original size + */ + reset() { + // Do not try to change the textarea, if the initialHeight has not been determined yet + // This might potentially remove styles when reset() is called before ngAfterViewInit + if (this._initialHeight !== undefined) { + this._textareaElement.style.height = this._initialHeight; + } + } + _noopInputHandler() { + // no-op handler that ensures we're running change detection on input events. + } + /** Access injected document if available or fallback to global document reference */ + _getDocument() { + return this._document || document; + } + /** Use defaultView of injected document if available or fallback to global window reference */ + _getWindow() { + const doc = this._getDocument(); + return doc.defaultView || window; + } + /** + * Scrolls a textarea to the caret position. On Firefox resizing the textarea will + * prevent it from scrolling to the caret position. We need to re-set the selection + * in order for it to scroll to the proper position. + */ + _scrollToCaretPosition(textarea) { + const { selectionStart, selectionEnd } = textarea; + // IE will throw an "Unspecified error" if we try to set the selection range after the + // element has been removed from the DOM. Assert that the directive hasn't been destroyed + // between the time we requested the animation frame and when it was executed. + // Also note that we have to assert that the textarea is focused before we set the + // selection range. Setting the selection range on a non-focused textarea will cause + // it to receive focus on IE and Edge. + if (!this._destroyed.isStopped && this._hasFocus) { + textarea.setSelectionRange(selectionStart, selectionEnd); + } + } + } + CdkTextareaAutosize.ɵfac = function CdkTextareaAutosize_Factory(t) { + return new (t || CdkTextareaAutosize)( + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_4__.ElementRef + ), + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"]( + _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_0__.Platform + ), + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_4__.NgZone + ), + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"]( + _angular_common__WEBPACK_IMPORTED_MODULE_8__.DOCUMENT, + 8 + ) + ); + }; + CdkTextareaAutosize.ɵdir = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_4__[ + "ɵɵdefineDirective" + ]({ + type: CdkTextareaAutosize, + selectors: [["textarea", "cdkTextareaAutosize", ""]], + hostAttrs: ["rows", "1", 1, "cdk-textarea-autosize"], + hostBindings: function CdkTextareaAutosize_HostBindings(rf, ctx) { + if (rf & 1) { + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]( + "input", + function CdkTextareaAutosize_input_HostBindingHandler() { + return ctx._noopInputHandler(); + } + ); + } + }, + inputs: { + minRows: ["cdkAutosizeMinRows", "minRows"], + maxRows: ["cdkAutosizeMaxRows", "maxRows"], + enabled: ["cdkTextareaAutosize", "enabled"], + placeholder: "placeholder", + }, + exportAs: ["cdkTextareaAutosize"], + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵsetClassMetadata"]( + CdkTextareaAutosize, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.Directive, + args: [ + { + selector: "textarea[cdkTextareaAutosize]", + exportAs: "cdkTextareaAutosize", + host: { + class: "cdk-textarea-autosize", + // Textarea elements that have the directive applied should have a single row by default. + // Browsers normally show two rows by default and therefore this limits the minRows binding. + rows: "1", + "(input)": "_noopInputHandler()", + }, + }, + ], + }, + ], + function () { + return [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.ElementRef, + }, + { + type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_0__.Platform, + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.NgZone, + }, + { + type: undefined, + decorators: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.Optional, + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.Inject, + args: [ + _angular_common__WEBPACK_IMPORTED_MODULE_8__.DOCUMENT, + ], + }, + ], + }, + ]; + }, + { + minRows: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.Input, + args: ["cdkAutosizeMinRows"], + }, + ], + maxRows: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.Input, + args: ["cdkAutosizeMaxRows"], + }, + ], + enabled: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.Input, + args: ["cdkTextareaAutosize"], + }, + ], + placeholder: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.Input, + }, + ], + } + ); + })(); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + class TextFieldModule {} + TextFieldModule.ɵfac = function TextFieldModule_Factory(t) { + return new (t || TextFieldModule)(); + }; + TextFieldModule.ɵmod = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_4__[ + "ɵɵdefineNgModule" + ]({ + type: TextFieldModule, + }); + TextFieldModule.ɵinj = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_4__[ + "ɵɵdefineInjector" + ]({}); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵsetClassMetadata"]( + TextFieldModule, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.NgModule, + args: [ + { + declarations: [CdkAutofill, CdkTextareaAutosize], + exports: [CdkAutofill, CdkTextareaAutosize], + }, + ], + }, + ], + null, + null + ); + })(); + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + + /** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + + /** + * Generated bundle index. Do not edit. + */ + + /***/ + }, + + /***/ 4666: + /*!**********************************************************!*\ + !*** ./node_modules/@angular/common/fesm2020/common.mjs ***! + \**********************************************************/ + /***/ ( + __unused_webpack___webpack_module__, + __webpack_exports__, + __webpack_require__ + ) => { + __webpack_require__.r(__webpack_exports__); + /* harmony export */ __webpack_require__.d(__webpack_exports__, { + /* harmony export */ APP_BASE_HREF: () => /* binding */ APP_BASE_HREF, + /* harmony export */ AsyncPipe: () => /* binding */ AsyncPipe, + /* harmony export */ BrowserPlatformLocation: () => + /* binding */ BrowserPlatformLocation, + /* harmony export */ CommonModule: () => /* binding */ CommonModule, + /* harmony export */ CurrencyPipe: () => /* binding */ CurrencyPipe, + /* harmony export */ DATE_PIPE_DEFAULT_OPTIONS: () => + /* binding */ DATE_PIPE_DEFAULT_OPTIONS, + /* harmony export */ DATE_PIPE_DEFAULT_TIMEZONE: () => + /* binding */ DATE_PIPE_DEFAULT_TIMEZONE, + /* harmony export */ DOCUMENT: () => /* binding */ DOCUMENT, + /* harmony export */ DatePipe: () => /* binding */ DatePipe, + /* harmony export */ DecimalPipe: () => /* binding */ DecimalPipe, + /* harmony export */ FormStyle: () => /* binding */ FormStyle, + /* harmony export */ FormatWidth: () => /* binding */ FormatWidth, + /* harmony export */ HashLocationStrategy: () => + /* binding */ HashLocationStrategy, + /* harmony export */ I18nPluralPipe: () => + /* binding */ I18nPluralPipe, + /* harmony export */ I18nSelectPipe: () => + /* binding */ I18nSelectPipe, + /* harmony export */ IMAGE_CONFIG: () => /* binding */ IMAGE_CONFIG, + /* harmony export */ IMAGE_LOADER: () => /* binding */ IMAGE_LOADER, + /* harmony export */ JsonPipe: () => /* binding */ JsonPipe, + /* harmony export */ KeyValuePipe: () => /* binding */ KeyValuePipe, + /* harmony export */ LOCATION_INITIALIZED: () => + /* binding */ LOCATION_INITIALIZED, + /* harmony export */ Location: () => /* binding */ Location, + /* harmony export */ LocationStrategy: () => + /* binding */ LocationStrategy, + /* harmony export */ LowerCasePipe: () => /* binding */ LowerCasePipe, + /* harmony export */ NgClass: () => /* binding */ NgClass, + /* harmony export */ NgComponentOutlet: () => + /* binding */ NgComponentOutlet, + /* harmony export */ NgFor: () => /* binding */ NgForOf, + /* harmony export */ NgForOf: () => /* binding */ NgForOf, + /* harmony export */ NgForOfContext: () => + /* binding */ NgForOfContext, + /* harmony export */ NgIf: () => /* binding */ NgIf, + /* harmony export */ NgIfContext: () => /* binding */ NgIfContext, + /* harmony export */ NgLocaleLocalization: () => + /* binding */ NgLocaleLocalization, + /* harmony export */ NgLocalization: () => + /* binding */ NgLocalization, + /* harmony export */ NgOptimizedImage: () => + /* binding */ NgOptimizedImage, + /* harmony export */ NgPlural: () => /* binding */ NgPlural, + /* harmony export */ NgPluralCase: () => /* binding */ NgPluralCase, + /* harmony export */ NgStyle: () => /* binding */ NgStyle, + /* harmony export */ NgSwitch: () => /* binding */ NgSwitch, + /* harmony export */ NgSwitchCase: () => /* binding */ NgSwitchCase, + /* harmony export */ NgSwitchDefault: () => + /* binding */ NgSwitchDefault, + /* harmony export */ NgTemplateOutlet: () => + /* binding */ NgTemplateOutlet, + /* harmony export */ NumberFormatStyle: () => + /* binding */ NumberFormatStyle, + /* harmony export */ NumberSymbol: () => /* binding */ NumberSymbol, + /* harmony export */ PRECONNECT_CHECK_BLOCKLIST: () => + /* binding */ PRECONNECT_CHECK_BLOCKLIST, + /* harmony export */ PathLocationStrategy: () => + /* binding */ PathLocationStrategy, + /* harmony export */ PercentPipe: () => /* binding */ PercentPipe, + /* harmony export */ PlatformLocation: () => + /* binding */ PlatformLocation, + /* harmony export */ Plural: () => /* binding */ Plural, + /* harmony export */ SlicePipe: () => /* binding */ SlicePipe, + /* harmony export */ TitleCasePipe: () => /* binding */ TitleCasePipe, + /* harmony export */ TranslationWidth: () => + /* binding */ TranslationWidth, + /* harmony export */ UpperCasePipe: () => /* binding */ UpperCasePipe, + /* harmony export */ VERSION: () => /* binding */ VERSION, + /* harmony export */ ViewportScroller: () => + /* binding */ ViewportScroller, + /* harmony export */ WeekDay: () => /* binding */ WeekDay, + /* harmony export */ XhrFactory: () => /* binding */ XhrFactory, + /* harmony export */ formatCurrency: () => + /* binding */ formatCurrency, + /* harmony export */ formatDate: () => /* binding */ formatDate, + /* harmony export */ formatNumber: () => /* binding */ formatNumber, + /* harmony export */ formatPercent: () => /* binding */ formatPercent, + /* harmony export */ getCurrencySymbol: () => + /* binding */ getCurrencySymbol, + /* harmony export */ getLocaleCurrencyCode: () => + /* binding */ getLocaleCurrencyCode, + /* harmony export */ getLocaleCurrencyName: () => + /* binding */ getLocaleCurrencyName, + /* harmony export */ getLocaleCurrencySymbol: () => + /* binding */ getLocaleCurrencySymbol, + /* harmony export */ getLocaleDateFormat: () => + /* binding */ getLocaleDateFormat, + /* harmony export */ getLocaleDateTimeFormat: () => + /* binding */ getLocaleDateTimeFormat, + /* harmony export */ getLocaleDayNames: () => + /* binding */ getLocaleDayNames, + /* harmony export */ getLocaleDayPeriods: () => + /* binding */ getLocaleDayPeriods, + /* harmony export */ getLocaleDirection: () => + /* binding */ getLocaleDirection, + /* harmony export */ getLocaleEraNames: () => + /* binding */ getLocaleEraNames, + /* harmony export */ getLocaleExtraDayPeriodRules: () => + /* binding */ getLocaleExtraDayPeriodRules, + /* harmony export */ getLocaleExtraDayPeriods: () => + /* binding */ getLocaleExtraDayPeriods, + /* harmony export */ getLocaleFirstDayOfWeek: () => + /* binding */ getLocaleFirstDayOfWeek, + /* harmony export */ getLocaleId: () => /* binding */ getLocaleId, + /* harmony export */ getLocaleMonthNames: () => + /* binding */ getLocaleMonthNames, + /* harmony export */ getLocaleNumberFormat: () => + /* binding */ getLocaleNumberFormat, + /* harmony export */ getLocaleNumberSymbol: () => + /* binding */ getLocaleNumberSymbol, + /* harmony export */ getLocalePluralCase: () => + /* binding */ getLocalePluralCase, + /* harmony export */ getLocaleTimeFormat: () => + /* binding */ getLocaleTimeFormat, + /* harmony export */ getLocaleWeekEndRange: () => + /* binding */ getLocaleWeekEndRange, + /* harmony export */ getNumberOfCurrencyDigits: () => + /* binding */ getNumberOfCurrencyDigits, + /* harmony export */ isPlatformBrowser: () => + /* binding */ isPlatformBrowser, + /* harmony export */ isPlatformServer: () => + /* binding */ isPlatformServer, + /* harmony export */ isPlatformWorkerApp: () => + /* binding */ isPlatformWorkerApp, + /* harmony export */ isPlatformWorkerUi: () => + /* binding */ isPlatformWorkerUi, + /* harmony export */ provideCloudflareLoader: () => + /* binding */ provideCloudflareLoader, + /* harmony export */ provideCloudinaryLoader: () => + /* binding */ provideCloudinaryLoader, + /* harmony export */ provideImageKitLoader: () => + /* binding */ provideImageKitLoader, + /* harmony export */ provideImgixLoader: () => + /* binding */ provideImgixLoader, + /* harmony export */ registerLocaleData: () => + /* binding */ registerLocaleData, + /* harmony export */ ɵBrowserPlatformLocation: () => + /* binding */ BrowserPlatformLocation, + /* harmony export */ ɵDomAdapter: () => /* binding */ DomAdapter, + /* harmony export */ ɵNullViewportScroller: () => + /* binding */ NullViewportScroller, + /* harmony export */ ɵPLATFORM_BROWSER_ID: () => + /* binding */ PLATFORM_BROWSER_ID, + /* harmony export */ ɵPLATFORM_SERVER_ID: () => + /* binding */ PLATFORM_SERVER_ID, + /* harmony export */ ɵPLATFORM_WORKER_APP_ID: () => + /* binding */ PLATFORM_WORKER_APP_ID, + /* harmony export */ ɵPLATFORM_WORKER_UI_ID: () => + /* binding */ PLATFORM_WORKER_UI_ID, + /* harmony export */ ɵgetDOM: () => /* binding */ getDOM, + /* harmony export */ ɵparseCookieValue: () => + /* binding */ parseCookieValue, + /* harmony export */ ɵsetRootDomAdapter: () => + /* binding */ setRootDomAdapter, + /* harmony export */ + }); + /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = + __webpack_require__(/*! @angular/core */ 2560); + /** + * @license Angular v15.1.4 + * (c) 2010-2022 Google LLC. https://angular.io/ + * License: MIT + */ + + let _DOM = null; + function getDOM() { + return _DOM; + } + function setRootDomAdapter(adapter) { + if (!_DOM) { + _DOM = adapter; + } + } + /* tslint:disable:requireParameterType */ + /** + * Provides DOM operations in an environment-agnostic way. + * + * @security Tread carefully! Interacting with the DOM directly is dangerous and + * can introduce XSS risks. + */ + class DomAdapter {} + + /** + * A DI Token representing the main rendering context. In a browser this is the DOM Document. + * + * Note: Document might not be available in the Application Context when Application and Rendering + * Contexts are not the same (e.g. when running the application in a Web Worker). + * + * @publicApi + */ + const DOCUMENT = + new _angular_core__WEBPACK_IMPORTED_MODULE_0__.InjectionToken( + "DocumentToken" + ); + + /** + * This class should not be used directly by an application developer. Instead, use + * {@link Location}. + * + * `PlatformLocation` encapsulates all calls to DOM APIs, which allows the Router to be + * platform-agnostic. + * This means that we can have different implementation of `PlatformLocation` for the different + * platforms that Angular supports. For example, `@angular/platform-browser` provides an + * implementation specific to the browser environment, while `@angular/platform-server` provides + * one suitable for use with server-side rendering. + * + * The `PlatformLocation` class is used directly by all implementations of {@link LocationStrategy} + * when they need to interact with the DOM APIs like pushState, popState, etc. + * + * {@link LocationStrategy} in turn is used by the {@link Location} service which is used directly + * by the {@link Router} in order to navigate between routes. Since all interactions between {@link + * Router} / + * {@link Location} / {@link LocationStrategy} and DOM APIs flow through the `PlatformLocation` + * class, they are all platform-agnostic. + * + * @publicApi + */ + class PlatformLocation { + historyGo(relativePosition) { + throw new Error("Not implemented"); + } + } + PlatformLocation.ɵfac = function PlatformLocation_Factory(t) { + return new (t || PlatformLocation)(); + }; + PlatformLocation.ɵprov = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineInjectable" + ]({ + token: PlatformLocation, + factory: function () { + return useBrowserPlatformLocation(); + }, + providedIn: "platform", + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + PlatformLocation, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injectable, + args: [ + { + providedIn: "platform", + // See #23917 + useFactory: useBrowserPlatformLocation, + }, + ], + }, + ], + null, + null + ); + })(); + function useBrowserPlatformLocation() { + return (0, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])( + BrowserPlatformLocation + ); + } + /** + * @description + * Indicates when a location is initialized. + * + * @publicApi + */ + const LOCATION_INITIALIZED = + new _angular_core__WEBPACK_IMPORTED_MODULE_0__.InjectionToken( + "Location Initialized" + ); + /** + * `PlatformLocation` encapsulates all of the direct calls to platform APIs. + * This class should not be used directly by an application developer. Instead, use + * {@link Location}. + * + * @publicApi + */ + class BrowserPlatformLocation extends PlatformLocation { + constructor(_doc) { + super(); + this._doc = _doc; + this._location = window.location; + this._history = window.history; + } + getBaseHrefFromDOM() { + return getDOM().getBaseHref(this._doc); + } + onPopState(fn) { + const window = getDOM().getGlobalEventTarget(this._doc, "window"); + window.addEventListener("popstate", fn, false); + return () => window.removeEventListener("popstate", fn); + } + onHashChange(fn) { + const window = getDOM().getGlobalEventTarget(this._doc, "window"); + window.addEventListener("hashchange", fn, false); + return () => window.removeEventListener("hashchange", fn); + } + get href() { + return this._location.href; + } + get protocol() { + return this._location.protocol; + } + get hostname() { + return this._location.hostname; + } + get port() { + return this._location.port; + } + get pathname() { + return this._location.pathname; + } + get search() { + return this._location.search; + } + get hash() { + return this._location.hash; + } + set pathname(newPath) { + this._location.pathname = newPath; + } + pushState(state, title, url) { + if (supportsState()) { + this._history.pushState(state, title, url); + } else { + this._location.hash = url; + } + } + replaceState(state, title, url) { + if (supportsState()) { + this._history.replaceState(state, title, url); + } else { + this._location.hash = url; + } + } + forward() { + this._history.forward(); + } + back() { + this._history.back(); + } + historyGo(relativePosition = 0) { + this._history.go(relativePosition); + } + getState() { + return this._history.state; + } + } + BrowserPlatformLocation.ɵfac = function BrowserPlatformLocation_Factory( + t + ) { + return new (t || BrowserPlatformLocation)( + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](DOCUMENT) + ); + }; + BrowserPlatformLocation.ɵprov = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineInjectable" + ]({ + token: BrowserPlatformLocation, + factory: function () { + return createBrowserPlatformLocation(); + }, + providedIn: "platform", + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + BrowserPlatformLocation, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injectable, + args: [ + { + providedIn: "platform", + // See #23917 + useFactory: createBrowserPlatformLocation, + }, + ], + }, + ], + function () { + return [ + { + type: undefined, + decorators: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject, + args: [DOCUMENT], + }, + ], + }, + ]; + }, + null + ); + })(); + function supportsState() { + return !!window.history.pushState; + } + function createBrowserPlatformLocation() { + return new BrowserPlatformLocation( + (0, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])( + DOCUMENT + ) + ); + } + + /** + * Joins two parts of a URL with a slash if needed. + * + * @param start URL string + * @param end URL string + * + * + * @returns The joined URL string. + */ + function joinWithSlash(start, end) { + if (start.length == 0) { + return end; + } + if (end.length == 0) { + return start; + } + let slashes = 0; + if (start.endsWith("/")) { + slashes++; + } + if (end.startsWith("/")) { + slashes++; + } + if (slashes == 2) { + return start + end.substring(1); + } + if (slashes == 1) { + return start + end; + } + return start + "/" + end; + } + /** + * Removes a trailing slash from a URL string if needed. + * Looks for the first occurrence of either `#`, `?`, or the end of the + * line as `/` characters and removes the trailing slash if one exists. + * + * @param url URL string. + * + * @returns The URL string, modified if needed. + */ + function stripTrailingSlash(url) { + const match = url.match(/#|\?|$/); + const pathEndIdx = (match && match.index) || url.length; + const droppedSlashIdx = + pathEndIdx - (url[pathEndIdx - 1] === "/" ? 1 : 0); + return url.slice(0, droppedSlashIdx) + url.slice(pathEndIdx); + } + /** + * Normalizes URL parameters by prepending with `?` if needed. + * + * @param params String of URL parameters. + * + * @returns The normalized URL parameters string. + */ + function normalizeQueryParams(params) { + return params && params[0] !== "?" ? "?" + params : params; + } + + /** + * Enables the `Location` service to read route state from the browser's URL. + * Angular provides two strategies: + * `HashLocationStrategy` and `PathLocationStrategy`. + * + * Applications should use the `Router` or `Location` services to + * interact with application route state. + * + * For instance, `HashLocationStrategy` produces URLs like + * http://example.com#/foo, + * and `PathLocationStrategy` produces + * http://example.com/foo as an equivalent URL. + * + * See these two classes for more. + * + * @publicApi + */ + class LocationStrategy { + historyGo(relativePosition) { + throw new Error("Not implemented"); + } + } + LocationStrategy.ɵfac = function LocationStrategy_Factory(t) { + return new (t || LocationStrategy)(); + }; + LocationStrategy.ɵprov = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineInjectable" + ]({ + token: LocationStrategy, + factory: function () { + return (() => + (0, _angular_core__WEBPACK_IMPORTED_MODULE_0__.inject)( + PathLocationStrategy + ))(); + }, + providedIn: "root", + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + LocationStrategy, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injectable, + args: [ + { + providedIn: "root", + useFactory: () => + (0, _angular_core__WEBPACK_IMPORTED_MODULE_0__.inject)( + PathLocationStrategy + ), + }, + ], + }, + ], + null, + null + ); + })(); + /** + * A predefined [DI token](guide/glossary#di-token) for the base href + * to be used with the `PathLocationStrategy`. + * The base href is the URL prefix that should be preserved when generating + * and recognizing URLs. + * + * @usageNotes + * + * The following example shows how to use this token to configure the root app injector + * with a base href value, so that the DI framework can supply the dependency anywhere in the app. + * + * ```typescript + * import {Component, NgModule} from '@angular/core'; + * import {APP_BASE_HREF} from '@angular/common'; + * + * @NgModule({ + * providers: [{provide: APP_BASE_HREF, useValue: '/my/app'}] + * }) + * class AppModule {} + * ``` + * + * @publicApi + */ + const APP_BASE_HREF = + new _angular_core__WEBPACK_IMPORTED_MODULE_0__.InjectionToken( + "appBaseHref" + ); + /** + * @description + * A {@link LocationStrategy} used to configure the {@link Location} service to + * represent its state in the + * [path](https://en.wikipedia.org/wiki/Uniform_Resource_Locator#Syntax) of the + * browser's URL. + * + * If you're using `PathLocationStrategy`, you may provide a {@link APP_BASE_HREF} + * or add a `` element to the document to override the default. + * + * For instance, if you provide an `APP_BASE_HREF` of `'/my/app/'` and call + * `location.go('/foo')`, the browser's URL will become + * `example.com/my/app/foo`. To ensure all relative URIs resolve correctly, + * the `` and/or `APP_BASE_HREF` should end with a `/`. + * + * Similarly, if you add `` to the document and call + * `location.go('/foo')`, the browser's URL will become + * `example.com/my/app/foo`. + * + * Note that when using `PathLocationStrategy`, neither the query nor + * the fragment in the `` will be preserved, as outlined + * by the [RFC](https://tools.ietf.org/html/rfc3986#section-5.2.2). + * + * @usageNotes + * + * ### Example + * + * {@example common/location/ts/path_location_component.ts region='LocationComponent'} + * + * @publicApi + */ + class PathLocationStrategy extends LocationStrategy { + constructor(_platformLocation, href) { + super(); + this._platformLocation = _platformLocation; + this._removeListenerFns = []; + this._baseHref = + href ?? + this._platformLocation.getBaseHrefFromDOM() ?? + (0, _angular_core__WEBPACK_IMPORTED_MODULE_0__.inject)(DOCUMENT) + .location?.origin ?? + ""; + } + /** @nodoc */ + ngOnDestroy() { + while (this._removeListenerFns.length) { + this._removeListenerFns.pop()(); + } + } + onPopState(fn) { + this._removeListenerFns.push( + this._platformLocation.onPopState(fn), + this._platformLocation.onHashChange(fn) + ); + } + getBaseHref() { + return this._baseHref; + } + prepareExternalUrl(internal) { + return joinWithSlash(this._baseHref, internal); + } + path(includeHash = false) { + const pathname = + this._platformLocation.pathname + + normalizeQueryParams(this._platformLocation.search); + const hash = this._platformLocation.hash; + return hash && includeHash ? `${pathname}${hash}` : pathname; + } + pushState(state, title, url, queryParams) { + const externalUrl = this.prepareExternalUrl( + url + normalizeQueryParams(queryParams) + ); + this._platformLocation.pushState(state, title, externalUrl); + } + replaceState(state, title, url, queryParams) { + const externalUrl = this.prepareExternalUrl( + url + normalizeQueryParams(queryParams) + ); + this._platformLocation.replaceState(state, title, externalUrl); + } + forward() { + this._platformLocation.forward(); + } + back() { + this._platformLocation.back(); + } + getState() { + return this._platformLocation.getState(); + } + historyGo(relativePosition = 0) { + this._platformLocation.historyGo?.(relativePosition); + } + } + PathLocationStrategy.ɵfac = function PathLocationStrategy_Factory(t) { + return new (t || PathLocationStrategy)( + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"]( + PlatformLocation + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"]( + APP_BASE_HREF, + 8 + ) + ); + }; + PathLocationStrategy.ɵprov = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineInjectable" + ]({ + token: PathLocationStrategy, + factory: PathLocationStrategy.ɵfac, + providedIn: "root", + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + PathLocationStrategy, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injectable, + args: [ + { + providedIn: "root", + }, + ], + }, + ], + function () { + return [ + { + type: PlatformLocation, + }, + { + type: undefined, + decorators: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional, + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject, + args: [APP_BASE_HREF], + }, + ], + }, + ]; + }, + null + ); + })(); + + /** + * @description + * A {@link LocationStrategy} used to configure the {@link Location} service to + * represent its state in the + * [hash fragment](https://en.wikipedia.org/wiki/Uniform_Resource_Locator#Syntax) + * of the browser's URL. + * + * For instance, if you call `location.go('/foo')`, the browser's URL will become + * `example.com#/foo`. + * + * @usageNotes + * + * ### Example + * + * {@example common/location/ts/hash_location_component.ts region='LocationComponent'} + * + * @publicApi + */ + class HashLocationStrategy extends LocationStrategy { + constructor(_platformLocation, _baseHref) { + super(); + this._platformLocation = _platformLocation; + this._baseHref = ""; + this._removeListenerFns = []; + if (_baseHref != null) { + this._baseHref = _baseHref; + } + } + /** @nodoc */ + ngOnDestroy() { + while (this._removeListenerFns.length) { + this._removeListenerFns.pop()(); + } + } + onPopState(fn) { + this._removeListenerFns.push( + this._platformLocation.onPopState(fn), + this._platformLocation.onHashChange(fn) + ); + } + getBaseHref() { + return this._baseHref; + } + path(includeHash = false) { + // the hash value is always prefixed with a `#` + // and if it is empty then it will stay empty + let path = this._platformLocation.hash; + if (path == null) path = "#"; + return path.length > 0 ? path.substring(1) : path; + } + prepareExternalUrl(internal) { + const url = joinWithSlash(this._baseHref, internal); + return url.length > 0 ? "#" + url : url; + } + pushState(state, title, path, queryParams) { + let url = this.prepareExternalUrl( + path + normalizeQueryParams(queryParams) + ); + if (url.length == 0) { + url = this._platformLocation.pathname; + } + this._platformLocation.pushState(state, title, url); + } + replaceState(state, title, path, queryParams) { + let url = this.prepareExternalUrl( + path + normalizeQueryParams(queryParams) + ); + if (url.length == 0) { + url = this._platformLocation.pathname; + } + this._platformLocation.replaceState(state, title, url); + } + forward() { + this._platformLocation.forward(); + } + back() { + this._platformLocation.back(); + } + getState() { + return this._platformLocation.getState(); + } + historyGo(relativePosition = 0) { + this._platformLocation.historyGo?.(relativePosition); + } + } + HashLocationStrategy.ɵfac = function HashLocationStrategy_Factory(t) { + return new (t || HashLocationStrategy)( + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"]( + PlatformLocation + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"]( + APP_BASE_HREF, + 8 + ) + ); + }; + HashLocationStrategy.ɵprov = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineInjectable" + ]({ + token: HashLocationStrategy, + factory: HashLocationStrategy.ɵfac, + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + HashLocationStrategy, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injectable, + }, + ], + function () { + return [ + { + type: PlatformLocation, + }, + { + type: undefined, + decorators: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional, + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject, + args: [APP_BASE_HREF], + }, + ], + }, + ]; + }, + null + ); + })(); + + /** + * @description + * + * A service that applications can use to interact with a browser's URL. + * + * Depending on the `LocationStrategy` used, `Location` persists + * to the URL's path or the URL's hash segment. + * + * @usageNotes + * + * It's better to use the `Router.navigate()` service to trigger route changes. Use + * `Location` only if you need to interact with or create normalized URLs outside of + * routing. + * + * `Location` is responsible for normalizing the URL against the application's base href. + * A normalized URL is absolute from the URL host, includes the application's base href, and has no + * trailing slash: + * - `/my/app/user/123` is normalized + * - `my/app/user/123` **is not** normalized + * - `/my/app/user/123/` **is not** normalized + * + * ### Example + * + * + * + * @publicApi + */ + class Location { + constructor(locationStrategy) { + /** @internal */ + this._subject = + new _angular_core__WEBPACK_IMPORTED_MODULE_0__.EventEmitter(); + /** @internal */ + this._urlChangeListeners = []; + /** @internal */ + this._urlChangeSubscription = null; + this._locationStrategy = locationStrategy; + const baseHref = this._locationStrategy.getBaseHref(); + // Note: This class's interaction with base HREF does not fully follow the rules + // outlined in the spec https://www.freesoft.org/CIE/RFC/1808/18.htm. + // Instead of trying to fix individual bugs with more and more code, we should + // investigate using the URL constructor and providing the base as a second + // argument. + // https://developer.mozilla.org/en-US/docs/Web/API/URL/URL#parameters + this._basePath = _stripOrigin( + stripTrailingSlash(_stripIndexHtml(baseHref)) + ); + this._locationStrategy.onPopState((ev) => { + this._subject.emit({ + url: this.path(true), + pop: true, + state: ev.state, + type: ev.type, + }); + }); + } + /** @nodoc */ + ngOnDestroy() { + this._urlChangeSubscription?.unsubscribe(); + this._urlChangeListeners = []; + } + /** + * Normalizes the URL path for this location. + * + * @param includeHash True to include an anchor fragment in the path. + * + * @returns The normalized URL path. + */ + // TODO: vsavkin. Remove the boolean flag and always include hash once the deprecated router is + // removed. + path(includeHash = false) { + return this.normalize(this._locationStrategy.path(includeHash)); + } + /** + * Reports the current state of the location history. + * @returns The current value of the `history.state` object. + */ + getState() { + return this._locationStrategy.getState(); + } + /** + * Normalizes the given path and compares to the current normalized path. + * + * @param path The given URL path. + * @param query Query parameters. + * + * @returns True if the given URL path is equal to the current normalized path, false + * otherwise. + */ + isCurrentPathEqualTo(path, query = "") { + return ( + this.path() == this.normalize(path + normalizeQueryParams(query)) + ); + } + /** + * Normalizes a URL path by stripping any trailing slashes. + * + * @param url String representing a URL. + * + * @returns The normalized URL string. + */ + normalize(url) { + return Location.stripTrailingSlash( + _stripBasePath(this._basePath, _stripIndexHtml(url)) + ); + } + /** + * Normalizes an external URL path. + * If the given URL doesn't begin with a leading slash (`'/'`), adds one + * before normalizing. Adds a hash if `HashLocationStrategy` is + * in use, or the `APP_BASE_HREF` if the `PathLocationStrategy` is in use. + * + * @param url String representing a URL. + * + * @returns A normalized platform-specific URL. + */ + prepareExternalUrl(url) { + if (url && url[0] !== "/") { + url = "/" + url; + } + return this._locationStrategy.prepareExternalUrl(url); + } + // TODO: rename this method to pushState + /** + * Changes the browser's URL to a normalized version of a given URL, and pushes a + * new item onto the platform's history. + * + * @param path URL path to normalize. + * @param query Query parameters. + * @param state Location history state. + * + */ + go(path, query = "", state = null) { + this._locationStrategy.pushState(state, "", path, query); + this._notifyUrlChangeListeners( + this.prepareExternalUrl(path + normalizeQueryParams(query)), + state + ); + } + /** + * Changes the browser's URL to a normalized version of the given URL, and replaces + * the top item on the platform's history stack. + * + * @param path URL path to normalize. + * @param query Query parameters. + * @param state Location history state. + */ + replaceState(path, query = "", state = null) { + this._locationStrategy.replaceState(state, "", path, query); + this._notifyUrlChangeListeners( + this.prepareExternalUrl(path + normalizeQueryParams(query)), + state + ); + } + /** + * Navigates forward in the platform's history. + */ + forward() { + this._locationStrategy.forward(); + } + /** + * Navigates back in the platform's history. + */ + back() { + this._locationStrategy.back(); + } + /** + * Navigate to a specific page from session history, identified by its relative position to the + * current page. + * + * @param relativePosition Position of the target page in the history relative to the current + * page. + * A negative value moves backwards, a positive value moves forwards, e.g. `location.historyGo(2)` + * moves forward two pages and `location.historyGo(-2)` moves back two pages. When we try to go + * beyond what's stored in the history session, we stay in the current page. Same behaviour occurs + * when `relativePosition` equals 0. + * @see https://developer.mozilla.org/en-US/docs/Web/API/History_API#Moving_to_a_specific_point_in_history + */ + historyGo(relativePosition = 0) { + this._locationStrategy.historyGo?.(relativePosition); + } + /** + * Registers a URL change listener. Use to catch updates performed by the Angular + * framework that are not detectible through "popstate" or "hashchange" events. + * + * @param fn The change handler function, which take a URL and a location history state. + * @returns A function that, when executed, unregisters a URL change listener. + */ + onUrlChange(fn) { + this._urlChangeListeners.push(fn); + if (!this._urlChangeSubscription) { + this._urlChangeSubscription = this.subscribe((v) => { + this._notifyUrlChangeListeners(v.url, v.state); + }); + } + return () => { + const fnIndex = this._urlChangeListeners.indexOf(fn); + this._urlChangeListeners.splice(fnIndex, 1); + if (this._urlChangeListeners.length === 0) { + this._urlChangeSubscription?.unsubscribe(); + this._urlChangeSubscription = null; + } + }; + } + /** @internal */ + _notifyUrlChangeListeners(url = "", state) { + this._urlChangeListeners.forEach((fn) => fn(url, state)); + } + /** + * Subscribes to the platform's `popState` events. + * + * Note: `Location.go()` does not trigger the `popState` event in the browser. Use + * `Location.onUrlChange()` to subscribe to URL changes instead. + * + * @param value Event that is triggered when the state history changes. + * @param exception The exception to throw. + * + * @see [onpopstate](https://developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers/onpopstate) + * + * @returns Subscribed events. + */ + subscribe(onNext, onThrow, onReturn) { + return this._subject.subscribe({ + next: onNext, + error: onThrow, + complete: onReturn, + }); + } + } + /** + * Normalizes URL parameters by prepending with `?` if needed. + * + * @param params String of URL parameters. + * + * @returns The normalized URL parameters string. + */ + Location.normalizeQueryParams = normalizeQueryParams; + /** + * Joins two parts of a URL with a slash if needed. + * + * @param start URL string + * @param end URL string + * + * + * @returns The joined URL string. + */ + Location.joinWithSlash = joinWithSlash; + /** + * Removes a trailing slash from a URL string if needed. + * Looks for the first occurrence of either `#`, `?`, or the end of the + * line as `/` characters and removes the trailing slash if one exists. + * + * @param url URL string. + * + * @returns The URL string, modified if needed. + */ + Location.stripTrailingSlash = stripTrailingSlash; + Location.ɵfac = function Location_Factory(t) { + return new (t || Location)( + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"]( + LocationStrategy + ) + ); + }; + Location.ɵprov = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineInjectable" + ]({ + token: Location, + factory: function () { + return createLocation(); + }, + providedIn: "root", + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + Location, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injectable, + args: [ + { + providedIn: "root", + // See #23917 + useFactory: createLocation, + }, + ], + }, + ], + function () { + return [ + { + type: LocationStrategy, + }, + ]; + }, + null + ); + })(); + function createLocation() { + return new Location( + (0, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])( + LocationStrategy + ) + ); + } + function _stripBasePath(basePath, url) { + return basePath && new RegExp(`^${basePath}([/;?#]|$)`).test(url) + ? url.substring(basePath.length) + : url; + } + function _stripIndexHtml(url) { + return url.replace(/\/index.html$/, ""); + } + function _stripOrigin(baseHref) { + // DO NOT REFACTOR! Previously, this check looked like this: + // `/^(https?:)?\/\//.test(baseHref)`, but that resulted in + // syntactically incorrect code after Closure Compiler minification. + // This was likely caused by a bug in Closure Compiler, but + // for now, the check is rewritten to use `new RegExp` instead. + const isAbsoluteUrl = new RegExp("^(https?:)?//").test(baseHref); + if (isAbsoluteUrl) { + const [, pathname] = baseHref.split(/\/\/[^\/]+/); + return pathname; + } + return baseHref; + } + + /** @internal */ + const CURRENCIES_EN = { + ADP: [undefined, undefined, 0], + AFN: [undefined, "؋", 0], + ALL: [undefined, undefined, 0], + AMD: [undefined, "֏", 2], + AOA: [undefined, "Kz"], + ARS: [undefined, "$"], + AUD: ["A$", "$"], + AZN: [undefined, "₼"], + BAM: [undefined, "KM"], + BBD: [undefined, "$"], + BDT: [undefined, "৳"], + BHD: [undefined, undefined, 3], + BIF: [undefined, undefined, 0], + BMD: [undefined, "$"], + BND: [undefined, "$"], + BOB: [undefined, "Bs"], + BRL: ["R$"], + BSD: [undefined, "$"], + BWP: [undefined, "P"], + BYN: [undefined, undefined, 2], + BYR: [undefined, undefined, 0], + BZD: [undefined, "$"], + CAD: ["CA$", "$", 2], + CHF: [undefined, undefined, 2], + CLF: [undefined, undefined, 4], + CLP: [undefined, "$", 0], + CNY: ["CN¥", "¥"], + COP: [undefined, "$", 2], + CRC: [undefined, "₡", 2], + CUC: [undefined, "$"], + CUP: [undefined, "$"], + CZK: [undefined, "Kč", 2], + DJF: [undefined, undefined, 0], + DKK: [undefined, "kr", 2], + DOP: [undefined, "$"], + EGP: [undefined, "E£"], + ESP: [undefined, "₧", 0], + EUR: ["€"], + FJD: [undefined, "$"], + FKP: [undefined, "£"], + GBP: ["£"], + GEL: [undefined, "₾"], + GHS: [undefined, "GH₵"], + GIP: [undefined, "£"], + GNF: [undefined, "FG", 0], + GTQ: [undefined, "Q"], + GYD: [undefined, "$", 2], + HKD: ["HK$", "$"], + HNL: [undefined, "L"], + HRK: [undefined, "kn"], + HUF: [undefined, "Ft", 2], + IDR: [undefined, "Rp", 2], + ILS: ["₪"], + INR: ["₹"], + IQD: [undefined, undefined, 0], + IRR: [undefined, undefined, 0], + ISK: [undefined, "kr", 0], + ITL: [undefined, undefined, 0], + JMD: [undefined, "$"], + JOD: [undefined, undefined, 3], + JPY: ["¥", undefined, 0], + KHR: [undefined, "៛"], + KMF: [undefined, "CF", 0], + KPW: [undefined, "₩", 0], + KRW: ["₩", undefined, 0], + KWD: [undefined, undefined, 3], + KYD: [undefined, "$"], + KZT: [undefined, "₸"], + LAK: [undefined, "₭", 0], + LBP: [undefined, "L£", 0], + LKR: [undefined, "Rs"], + LRD: [undefined, "$"], + LTL: [undefined, "Lt"], + LUF: [undefined, undefined, 0], + LVL: [undefined, "Ls"], + LYD: [undefined, undefined, 3], + MGA: [undefined, "Ar", 0], + MGF: [undefined, undefined, 0], + MMK: [undefined, "K", 0], + MNT: [undefined, "₮", 2], + MRO: [undefined, undefined, 0], + MUR: [undefined, "Rs", 2], + MXN: ["MX$", "$"], + MYR: [undefined, "RM"], + NAD: [undefined, "$"], + NGN: [undefined, "₦"], + NIO: [undefined, "C$"], + NOK: [undefined, "kr", 2], + NPR: [undefined, "Rs"], + NZD: ["NZ$", "$"], + OMR: [undefined, undefined, 3], + PHP: ["₱"], + PKR: [undefined, "Rs", 2], + PLN: [undefined, "zł"], + PYG: [undefined, "₲", 0], + RON: [undefined, "lei"], + RSD: [undefined, undefined, 0], + RUB: [undefined, "₽"], + RWF: [undefined, "RF", 0], + SBD: [undefined, "$"], + SEK: [undefined, "kr", 2], + SGD: [undefined, "$"], + SHP: [undefined, "£"], + SLE: [undefined, undefined, 2], + SLL: [undefined, undefined, 0], + SOS: [undefined, undefined, 0], + SRD: [undefined, "$"], + SSP: [undefined, "£"], + STD: [undefined, undefined, 0], + STN: [undefined, "Db"], + SYP: [undefined, "£", 0], + THB: [undefined, "฿"], + TMM: [undefined, undefined, 0], + TND: [undefined, undefined, 3], + TOP: [undefined, "T$"], + TRL: [undefined, undefined, 0], + TRY: [undefined, "₺"], + TTD: [undefined, "$"], + TWD: ["NT$", "$", 2], + TZS: [undefined, undefined, 2], + UAH: [undefined, "₴"], + UGX: [undefined, undefined, 0], + USD: ["$"], + UYI: [undefined, undefined, 0], + UYU: [undefined, "$"], + UYW: [undefined, undefined, 4], + UZS: [undefined, undefined, 2], + VEF: [undefined, "Bs", 2], + VND: ["₫", undefined, 0], + VUV: [undefined, undefined, 0], + XAF: ["FCFA", undefined, 0], + XCD: ["EC$", "$"], + XOF: ["F CFA", undefined, 0], + XPF: ["CFPF", undefined, 0], + XXX: ["¤"], + YER: [undefined, undefined, 0], + ZAR: [undefined, "R"], + ZMK: [undefined, undefined, 0], + ZMW: [undefined, "ZK"], + ZWD: [undefined, undefined, 0], + }; + + /** + * Format styles that can be used to represent numbers. + * @see `getLocaleNumberFormat()`. + * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview) + * + * @publicApi + */ + var NumberFormatStyle; + (function (NumberFormatStyle) { + NumberFormatStyle[(NumberFormatStyle["Decimal"] = 0)] = "Decimal"; + NumberFormatStyle[(NumberFormatStyle["Percent"] = 1)] = "Percent"; + NumberFormatStyle[(NumberFormatStyle["Currency"] = 2)] = "Currency"; + NumberFormatStyle[(NumberFormatStyle["Scientific"] = 3)] = + "Scientific"; + })(NumberFormatStyle || (NumberFormatStyle = {})); + /** + * Plurality cases used for translating plurals to different languages. + * + * @see `NgPlural` + * @see `NgPluralCase` + * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview) + * + * @publicApi + */ + var Plural; + (function (Plural) { + Plural[(Plural["Zero"] = 0)] = "Zero"; + Plural[(Plural["One"] = 1)] = "One"; + Plural[(Plural["Two"] = 2)] = "Two"; + Plural[(Plural["Few"] = 3)] = "Few"; + Plural[(Plural["Many"] = 4)] = "Many"; + Plural[(Plural["Other"] = 5)] = "Other"; + })(Plural || (Plural = {})); + /** + * Context-dependant translation forms for strings. + * Typically the standalone version is for the nominative form of the word, + * and the format version is used for the genitive case. + * @see [CLDR website](http://cldr.unicode.org/translation/date-time-1/date-time#TOC-Standalone-vs.-Format-Styles) + * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview) + * + * @publicApi + */ + var FormStyle; + (function (FormStyle) { + FormStyle[(FormStyle["Format"] = 0)] = "Format"; + FormStyle[(FormStyle["Standalone"] = 1)] = "Standalone"; + })(FormStyle || (FormStyle = {})); + /** + * String widths available for translations. + * The specific character widths are locale-specific. + * Examples are given for the word "Sunday" in English. + * + * @publicApi + */ + var TranslationWidth; + (function (TranslationWidth) { + /** 1 character for `en-US`. For example: 'S' */ + TranslationWidth[(TranslationWidth["Narrow"] = 0)] = "Narrow"; + /** 3 characters for `en-US`. For example: 'Sun' */ + TranslationWidth[(TranslationWidth["Abbreviated"] = 1)] = + "Abbreviated"; + /** Full length for `en-US`. For example: "Sunday" */ + TranslationWidth[(TranslationWidth["Wide"] = 2)] = "Wide"; + /** 2 characters for `en-US`, For example: "Su" */ + TranslationWidth[(TranslationWidth["Short"] = 3)] = "Short"; + })(TranslationWidth || (TranslationWidth = {})); + /** + * String widths available for date-time formats. + * The specific character widths are locale-specific. + * Examples are given for `en-US`. + * + * @see `getLocaleDateFormat()` + * @see `getLocaleTimeFormat()` + * @see `getLocaleDateTimeFormat()` + * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview) + * @publicApi + */ + var FormatWidth; + (function (FormatWidth) { + /** + * For `en-US`, 'M/d/yy, h:mm a'` + * (Example: `6/15/15, 9:03 AM`) + */ + FormatWidth[(FormatWidth["Short"] = 0)] = "Short"; + /** + * For `en-US`, `'MMM d, y, h:mm:ss a'` + * (Example: `Jun 15, 2015, 9:03:01 AM`) + */ + FormatWidth[(FormatWidth["Medium"] = 1)] = "Medium"; + /** + * For `en-US`, `'MMMM d, y, h:mm:ss a z'` + * (Example: `June 15, 2015 at 9:03:01 AM GMT+1`) + */ + FormatWidth[(FormatWidth["Long"] = 2)] = "Long"; + /** + * For `en-US`, `'EEEE, MMMM d, y, h:mm:ss a zzzz'` + * (Example: `Monday, June 15, 2015 at 9:03:01 AM GMT+01:00`) + */ + FormatWidth[(FormatWidth["Full"] = 3)] = "Full"; + })(FormatWidth || (FormatWidth = {})); + /** + * Symbols that can be used to replace placeholders in number patterns. + * Examples are based on `en-US` values. + * + * @see `getLocaleNumberSymbol()` + * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview) + * + * @publicApi + */ + var NumberSymbol; + (function (NumberSymbol) { + /** + * Decimal separator. + * For `en-US`, the dot character. + * Example: 2,345`.`67 + */ + NumberSymbol[(NumberSymbol["Decimal"] = 0)] = "Decimal"; + /** + * Grouping separator, typically for thousands. + * For `en-US`, the comma character. + * Example: 2`,`345.67 + */ + NumberSymbol[(NumberSymbol["Group"] = 1)] = "Group"; + /** + * List-item separator. + * Example: "one, two, and three" + */ + NumberSymbol[(NumberSymbol["List"] = 2)] = "List"; + /** + * Sign for percentage (out of 100). + * Example: 23.4% + */ + NumberSymbol[(NumberSymbol["PercentSign"] = 3)] = "PercentSign"; + /** + * Sign for positive numbers. + * Example: +23 + */ + NumberSymbol[(NumberSymbol["PlusSign"] = 4)] = "PlusSign"; + /** + * Sign for negative numbers. + * Example: -23 + */ + NumberSymbol[(NumberSymbol["MinusSign"] = 5)] = "MinusSign"; + /** + * Computer notation for exponential value (n times a power of 10). + * Example: 1.2E3 + */ + NumberSymbol[(NumberSymbol["Exponential"] = 6)] = "Exponential"; + /** + * Human-readable format of exponential. + * Example: 1.2x103 + */ + NumberSymbol[(NumberSymbol["SuperscriptingExponent"] = 7)] = + "SuperscriptingExponent"; + /** + * Sign for permille (out of 1000). + * Example: 23.4‰ + */ + NumberSymbol[(NumberSymbol["PerMille"] = 8)] = "PerMille"; + /** + * Infinity, can be used with plus and minus. + * Example: ∞, +∞, -∞ + */ + NumberSymbol[(NumberSymbol["Infinity"] = 9)] = "Infinity"; + /** + * Not a number. + * Example: NaN + */ + NumberSymbol[(NumberSymbol["NaN"] = 10)] = "NaN"; + /** + * Symbol used between time units. + * Example: 10:52 + */ + NumberSymbol[(NumberSymbol["TimeSeparator"] = 11)] = "TimeSeparator"; + /** + * Decimal separator for currency values (fallback to `Decimal`). + * Example: $2,345.67 + */ + NumberSymbol[(NumberSymbol["CurrencyDecimal"] = 12)] = + "CurrencyDecimal"; + /** + * Group separator for currency values (fallback to `Group`). + * Example: $2,345.67 + */ + NumberSymbol[(NumberSymbol["CurrencyGroup"] = 13)] = "CurrencyGroup"; + })(NumberSymbol || (NumberSymbol = {})); + /** + * The value for each day of the week, based on the `en-US` locale + * + * @publicApi + */ + var WeekDay; + (function (WeekDay) { + WeekDay[(WeekDay["Sunday"] = 0)] = "Sunday"; + WeekDay[(WeekDay["Monday"] = 1)] = "Monday"; + WeekDay[(WeekDay["Tuesday"] = 2)] = "Tuesday"; + WeekDay[(WeekDay["Wednesday"] = 3)] = "Wednesday"; + WeekDay[(WeekDay["Thursday"] = 4)] = "Thursday"; + WeekDay[(WeekDay["Friday"] = 5)] = "Friday"; + WeekDay[(WeekDay["Saturday"] = 6)] = "Saturday"; + })(WeekDay || (WeekDay = {})); + /** + * Retrieves the locale ID from the currently loaded locale. + * The loaded locale could be, for example, a global one rather than a regional one. + * @param locale A locale code, such as `fr-FR`. + * @returns The locale code. For example, `fr`. + * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview) + * + * @publicApi + */ + function getLocaleId(locale) { + return (0, + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵfindLocaleData"])( + locale + )[ + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"] + .LocaleId + ]; + } + /** + * Retrieves day period strings for the given locale. + * + * @param locale A locale code for the locale format rules to use. + * @param formStyle The required grammatical form. + * @param width The required character width. + * @returns An array of localized period strings. For example, `[AM, PM]` for `en-US`. + * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview) + * + * @publicApi + */ + function getLocaleDayPeriods(locale, formStyle, width) { + const data = (0, + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵfindLocaleData"])( + locale + ); + const amPmData = [ + data[ + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"] + .DayPeriodsFormat + ], + data[ + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"] + .DayPeriodsStandalone + ], + ]; + const amPm = getLastDefinedValue(amPmData, formStyle); + return getLastDefinedValue(amPm, width); + } + /** + * Retrieves days of the week for the given locale, using the Gregorian calendar. + * + * @param locale A locale code for the locale format rules to use. + * @param formStyle The required grammatical form. + * @param width The required character width. + * @returns An array of localized name strings. + * For example,`[Sunday, Monday, ... Saturday]` for `en-US`. + * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview) + * + * @publicApi + */ + function getLocaleDayNames(locale, formStyle, width) { + const data = (0, + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵfindLocaleData"])( + locale + ); + const daysData = [ + data[ + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"] + .DaysFormat + ], + data[ + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"] + .DaysStandalone + ], + ]; + const days = getLastDefinedValue(daysData, formStyle); + return getLastDefinedValue(days, width); + } + /** + * Retrieves months of the year for the given locale, using the Gregorian calendar. + * + * @param locale A locale code for the locale format rules to use. + * @param formStyle The required grammatical form. + * @param width The required character width. + * @returns An array of localized name strings. + * For example, `[January, February, ...]` for `en-US`. + * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview) + * + * @publicApi + */ + function getLocaleMonthNames(locale, formStyle, width) { + const data = (0, + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵfindLocaleData"])( + locale + ); + const monthsData = [ + data[ + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"] + .MonthsFormat + ], + data[ + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"] + .MonthsStandalone + ], + ]; + const months = getLastDefinedValue(monthsData, formStyle); + return getLastDefinedValue(months, width); + } + /** + * Retrieves Gregorian-calendar eras for the given locale. + * @param locale A locale code for the locale format rules to use. + * @param width The required character width. + + * @returns An array of localized era strings. + * For example, `[AD, BC]` for `en-US`. + * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview) + * + * @publicApi + */ + function getLocaleEraNames(locale, width) { + const data = (0, + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵfindLocaleData"])( + locale + ); + const erasData = + data[ + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"] + .Eras + ]; + return getLastDefinedValue(erasData, width); + } + /** + * Retrieves the first day of the week for the given locale. + * + * @param locale A locale code for the locale format rules to use. + * @returns A day index number, using the 0-based week-day index for `en-US` + * (Sunday = 0, Monday = 1, ...). + * For example, for `fr-FR`, returns 1 to indicate that the first day is Monday. + * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview) + * + * @publicApi + */ + function getLocaleFirstDayOfWeek(locale) { + const data = (0, + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵfindLocaleData"])( + locale + ); + return data[ + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"] + .FirstDayOfWeek + ]; + } + /** + * Range of week days that are considered the week-end for the given locale. + * + * @param locale A locale code for the locale format rules to use. + * @returns The range of day values, `[startDay, endDay]`. + * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview) + * + * @publicApi + */ + function getLocaleWeekEndRange(locale) { + const data = (0, + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵfindLocaleData"])( + locale + ); + return data[ + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"] + .WeekendRange + ]; + } + /** + * Retrieves a localized date-value formatting string. + * + * @param locale A locale code for the locale format rules to use. + * @param width The format type. + * @returns The localized formatting string. + * @see `FormatWidth` + * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview) + * + * @publicApi + */ + function getLocaleDateFormat(locale, width) { + const data = (0, + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵfindLocaleData"])( + locale + ); + return getLastDefinedValue( + data[ + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"] + .DateFormat + ], + width + ); + } + /** + * Retrieves a localized time-value formatting string. + * + * @param locale A locale code for the locale format rules to use. + * @param width The format type. + * @returns The localized formatting string. + * @see `FormatWidth` + * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview) + + * @publicApi + */ + function getLocaleTimeFormat(locale, width) { + const data = (0, + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵfindLocaleData"])( + locale + ); + return getLastDefinedValue( + data[ + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"] + .TimeFormat + ], + width + ); + } + /** + * Retrieves a localized date-time formatting string. + * + * @param locale A locale code for the locale format rules to use. + * @param width The format type. + * @returns The localized formatting string. + * @see `FormatWidth` + * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview) + * + * @publicApi + */ + function getLocaleDateTimeFormat(locale, width) { + const data = (0, + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵfindLocaleData"])( + locale + ); + const dateTimeFormatData = + data[ + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"] + .DateTimeFormat + ]; + return getLastDefinedValue(dateTimeFormatData, width); + } + /** + * Retrieves a localized number symbol that can be used to replace placeholders in number formats. + * @param locale The locale code. + * @param symbol The symbol to localize. + * @returns The character for the localized symbol. + * @see `NumberSymbol` + * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview) + * + * @publicApi + */ + function getLocaleNumberSymbol(locale, symbol) { + const data = (0, + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵfindLocaleData"])( + locale + ); + const res = + data[ + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"] + .NumberSymbols + ][symbol]; + if (typeof res === "undefined") { + if (symbol === NumberSymbol.CurrencyDecimal) { + return data[ + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"] + .NumberSymbols + ][NumberSymbol.Decimal]; + } else if (symbol === NumberSymbol.CurrencyGroup) { + return data[ + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"] + .NumberSymbols + ][NumberSymbol.Group]; + } + } + return res; + } + /** + * Retrieves a number format for a given locale. + * + * Numbers are formatted using patterns, like `#,###.00`. For example, the pattern `#,###.00` + * when used to format the number 12345.678 could result in "12'345,678". That would happen if the + * grouping separator for your language is an apostrophe, and the decimal separator is a comma. + * + * Important: The characters `.` `,` `0` `#` (and others below) are special placeholders + * that stand for the decimal separator, and so on, and are NOT real characters. + * You must NOT "translate" the placeholders. For example, don't change `.` to `,` even though in + * your language the decimal point is written with a comma. The symbols should be replaced by the + * local equivalents, using the appropriate `NumberSymbol` for your language. + * + * Here are the special characters used in number patterns: + * + * | Symbol | Meaning | + * |--------|---------| + * | . | Replaced automatically by the character used for the decimal point. | + * | , | Replaced by the "grouping" (thousands) separator. | + * | 0 | Replaced by a digit (or zero if there aren't enough digits). | + * | # | Replaced by a digit (or nothing if there aren't enough). | + * | ¤ | Replaced by a currency symbol, such as $ or USD. | + * | % | Marks a percent format. The % symbol may change position, but must be retained. | + * | E | Marks a scientific format. The E symbol may change position, but must be retained. | + * | ' | Special characters used as literal characters are quoted with ASCII single quotes. | + * + * @param locale A locale code for the locale format rules to use. + * @param type The type of numeric value to be formatted (such as `Decimal` or `Currency`.) + * @returns The localized format string. + * @see `NumberFormatStyle` + * @see [CLDR website](http://cldr.unicode.org/translation/number-patterns) + * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview) + * + * @publicApi + */ + function getLocaleNumberFormat(locale, type) { + const data = (0, + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵfindLocaleData"])( + locale + ); + return data[ + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"] + .NumberFormats + ][type]; + } + /** + * Retrieves the symbol used to represent the currency for the main country + * corresponding to a given locale. For example, '$' for `en-US`. + * + * @param locale A locale code for the locale format rules to use. + * @returns The localized symbol character, + * or `null` if the main country cannot be determined. + * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview) + * + * @publicApi + */ + function getLocaleCurrencySymbol(locale) { + const data = (0, + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵfindLocaleData"])( + locale + ); + return ( + data[ + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"] + .CurrencySymbol + ] || null + ); + } + /** + * Retrieves the name of the currency for the main country corresponding + * to a given locale. For example, 'US Dollar' for `en-US`. + * @param locale A locale code for the locale format rules to use. + * @returns The currency name, + * or `null` if the main country cannot be determined. + * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview) + * + * @publicApi + */ + function getLocaleCurrencyName(locale) { + const data = (0, + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵfindLocaleData"])( + locale + ); + return ( + data[ + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"] + .CurrencyName + ] || null + ); + } + /** + * Retrieves the default currency code for the given locale. + * + * The default is defined as the first currency which is still in use. + * + * @param locale The code of the locale whose currency code we want. + * @returns The code of the default currency for the given locale. + * + * @publicApi + */ + function getLocaleCurrencyCode(locale) { + return (0, + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵgetLocaleCurrencyCode"])( + locale + ); + } + /** + * Retrieves the currency values for a given locale. + * @param locale A locale code for the locale format rules to use. + * @returns The currency values. + * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview) + */ + function getLocaleCurrencies(locale) { + const data = (0, + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵfindLocaleData"])( + locale + ); + return data[ + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"] + .Currencies + ]; + } + /** + * @alias core/ɵgetLocalePluralCase + * @publicApi + */ + const getLocalePluralCase = + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵgetLocalePluralCase"]; + function checkFullData(data) { + if ( + !data[ + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"] + .ExtraData + ] + ) { + throw new Error( + `Missing extra locale data for the locale "${ + data[ + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"] + .LocaleId + ] + }". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.` + ); + } + } + /** + * Retrieves locale-specific rules used to determine which day period to use + * when more than one period is defined for a locale. + * + * There is a rule for each defined day period. The + * first rule is applied to the first day period and so on. + * Fall back to AM/PM when no rules are available. + * + * A rule can specify a period as time range, or as a single time value. + * + * This functionality is only available when you have loaded the full locale data. + * See the ["I18n guide"](guide/i18n-common-format-data-locale). + * + * @param locale A locale code for the locale format rules to use. + * @returns The rules for the locale, a single time value or array of *from-time, to-time*, + * or null if no periods are available. + * + * @see `getLocaleExtraDayPeriods()` + * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview) + * + * @publicApi + */ + function getLocaleExtraDayPeriodRules(locale) { + const data = (0, + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵfindLocaleData"])( + locale + ); + checkFullData(data); + const rules = + data[ + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"] + .ExtraData + ][2 /* ɵExtraLocaleDataIndex.ExtraDayPeriodsRules */] || []; + return rules.map((rule) => { + if (typeof rule === "string") { + return extractTime(rule); + } + return [extractTime(rule[0]), extractTime(rule[1])]; + }); + } + /** + * Retrieves locale-specific day periods, which indicate roughly how a day is broken up + * in different languages. + * For example, for `en-US`, periods are morning, noon, afternoon, evening, and midnight. + * + * This functionality is only available when you have loaded the full locale data. + * See the ["I18n guide"](guide/i18n-common-format-data-locale). + * + * @param locale A locale code for the locale format rules to use. + * @param formStyle The required grammatical form. + * @param width The required character width. + * @returns The translated day-period strings. + * @see `getLocaleExtraDayPeriodRules()` + * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview) + * + * @publicApi + */ + function getLocaleExtraDayPeriods(locale, formStyle, width) { + const data = (0, + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵfindLocaleData"])( + locale + ); + checkFullData(data); + const dayPeriodsData = [ + data[ + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"] + .ExtraData + ][0 /* ɵExtraLocaleDataIndex.ExtraDayPeriodFormats */], + data[ + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"] + .ExtraData + ][1 /* ɵExtraLocaleDataIndex.ExtraDayPeriodStandalone */], + ]; + + const dayPeriods = + getLastDefinedValue(dayPeriodsData, formStyle) || []; + return getLastDefinedValue(dayPeriods, width) || []; + } + /** + * Retrieves the writing direction of a specified locale + * @param locale A locale code for the locale format rules to use. + * @publicApi + * @returns 'rtl' or 'ltr' + * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview) + */ + function getLocaleDirection(locale) { + const data = (0, + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵfindLocaleData"])( + locale + ); + return data[ + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"] + .Directionality + ]; + } + /** + * Retrieves the first value that is defined in an array, going backwards from an index position. + * + * To avoid repeating the same data (as when the "format" and "standalone" forms are the same) + * add the first value to the locale data arrays, and add other values only if they are different. + * + * @param data The data array to retrieve from. + * @param index A 0-based index into the array to start from. + * @returns The value immediately before the given index position. + * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview) + * + * @publicApi + */ + function getLastDefinedValue(data, index) { + for (let i = index; i > -1; i--) { + if (typeof data[i] !== "undefined") { + return data[i]; + } + } + throw new Error("Locale data API: locale data undefined"); + } + /** + * Extracts the hours and minutes from a string like "15:45" + */ + function extractTime(time) { + const [h, m] = time.split(":"); + return { + hours: +h, + minutes: +m, + }; + } + /** + * Retrieves the currency symbol for a given currency code. + * + * For example, for the default `en-US` locale, the code `USD` can + * be represented by the narrow symbol `$` or the wide symbol `US$`. + * + * @param code The currency code. + * @param format The format, `wide` or `narrow`. + * @param locale A locale code for the locale format rules to use. + * + * @returns The symbol, or the currency code if no symbol is available. + * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview) + * + * @publicApi + */ + function getCurrencySymbol(code, format, locale = "en") { + const currency = + getLocaleCurrencies(locale)[code] || CURRENCIES_EN[code] || []; + const symbolNarrow = currency[1 /* ɵCurrencyIndex.SymbolNarrow */]; + if (format === "narrow" && typeof symbolNarrow === "string") { + return symbolNarrow; + } + return currency[0 /* ɵCurrencyIndex.Symbol */] || code; + } + // Most currencies have cents, that's why the default is 2 + const DEFAULT_NB_OF_CURRENCY_DIGITS = 2; + /** + * Reports the number of decimal digits for a given currency. + * The value depends upon the presence of cents in that particular currency. + * + * @param code The currency code. + * @returns The number of decimal digits, typically 0 or 2. + * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview) + * + * @publicApi + */ + function getNumberOfCurrencyDigits(code) { + let digits; + const currency = CURRENCIES_EN[code]; + if (currency) { + digits = currency[2 /* ɵCurrencyIndex.NbOfDigits */]; + } + + return typeof digits === "number" + ? digits + : DEFAULT_NB_OF_CURRENCY_DIGITS; + } + const ISO8601_DATE_REGEX = + /^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/; + // 1 2 3 4 5 6 7 8 9 10 11 + const NAMED_FORMATS = {}; + const DATE_FORMATS_SPLIT = + /((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/; + var ZoneWidth; + (function (ZoneWidth) { + ZoneWidth[(ZoneWidth["Short"] = 0)] = "Short"; + ZoneWidth[(ZoneWidth["ShortGMT"] = 1)] = "ShortGMT"; + ZoneWidth[(ZoneWidth["Long"] = 2)] = "Long"; + ZoneWidth[(ZoneWidth["Extended"] = 3)] = "Extended"; + })(ZoneWidth || (ZoneWidth = {})); + var DateType; + (function (DateType) { + DateType[(DateType["FullYear"] = 0)] = "FullYear"; + DateType[(DateType["Month"] = 1)] = "Month"; + DateType[(DateType["Date"] = 2)] = "Date"; + DateType[(DateType["Hours"] = 3)] = "Hours"; + DateType[(DateType["Minutes"] = 4)] = "Minutes"; + DateType[(DateType["Seconds"] = 5)] = "Seconds"; + DateType[(DateType["FractionalSeconds"] = 6)] = "FractionalSeconds"; + DateType[(DateType["Day"] = 7)] = "Day"; + })(DateType || (DateType = {})); + var TranslationType; + (function (TranslationType) { + TranslationType[(TranslationType["DayPeriods"] = 0)] = "DayPeriods"; + TranslationType[(TranslationType["Days"] = 1)] = "Days"; + TranslationType[(TranslationType["Months"] = 2)] = "Months"; + TranslationType[(TranslationType["Eras"] = 3)] = "Eras"; + })(TranslationType || (TranslationType = {})); + /** + * @ngModule CommonModule + * @description + * + * Formats a date according to locale rules. + * + * @param value The date to format, as a Date, or a number (milliseconds since UTC epoch) + * or an [ISO date-time string](https://www.w3.org/TR/NOTE-datetime). + * @param format The date-time components to include. See `DatePipe` for details. + * @param locale A locale code for the locale format rules to use. + * @param timezone The time zone. A time zone offset from GMT (such as `'+0430'`), + * or a standard UTC/GMT or continental US time zone abbreviation. + * If not specified, uses host system settings. + * + * @returns The formatted date string. + * + * @see `DatePipe` + * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview) + * + * @publicApi + */ + function formatDate(value, format, locale, timezone) { + let date = toDate(value); + const namedFormat = getNamedFormat(locale, format); + format = namedFormat || format; + let parts = []; + let match; + while (format) { + match = DATE_FORMATS_SPLIT.exec(format); + if (match) { + parts = parts.concat(match.slice(1)); + const part = parts.pop(); + if (!part) { + break; + } + format = part; + } else { + parts.push(format); + break; + } + } + let dateTimezoneOffset = date.getTimezoneOffset(); + if (timezone) { + dateTimezoneOffset = timezoneToOffset(timezone, dateTimezoneOffset); + date = convertTimezoneToLocal(date, timezone, true); + } + let text = ""; + parts.forEach((value) => { + const dateFormatter = getDateFormatter(value); + text += dateFormatter + ? dateFormatter(date, locale, dateTimezoneOffset) + : value === "''" + ? "'" + : value.replace(/(^'|'$)/g, "").replace(/''/g, "'"); + }); + return text; + } + /** + * Create a new Date object with the given date value, and the time set to midnight. + * + * We cannot use `new Date(year, month, date)` because it maps years between 0 and 99 to 1900-1999. + * See: https://github.com/angular/angular/issues/40377 + * + * Note that this function returns a Date object whose time is midnight in the current locale's + * timezone. In the future we might want to change this to be midnight in UTC, but this would be a + * considerable breaking change. + */ + function createDate(year, month, date) { + // The `newDate` is set to midnight (UTC) on January 1st 1970. + // - In PST this will be December 31st 1969 at 4pm. + // - In GMT this will be January 1st 1970 at 1am. + // Note that they even have different years, dates and months! + const newDate = new Date(0); + // `setFullYear()` allows years like 0001 to be set correctly. This function does not + // change the internal time of the date. + // Consider calling `setFullYear(2019, 8, 20)` (September 20, 2019). + // - In PST this will now be September 20, 2019 at 4pm + // - In GMT this will now be September 20, 2019 at 1am + newDate.setFullYear(year, month, date); + // We want the final date to be at local midnight, so we reset the time. + // - In PST this will now be September 20, 2019 at 12am + // - In GMT this will now be September 20, 2019 at 12am + newDate.setHours(0, 0, 0); + return newDate; + } + function getNamedFormat(locale, format) { + const localeId = getLocaleId(locale); + NAMED_FORMATS[localeId] = NAMED_FORMATS[localeId] || {}; + if (NAMED_FORMATS[localeId][format]) { + return NAMED_FORMATS[localeId][format]; + } + let formatValue = ""; + switch (format) { + case "shortDate": + formatValue = getLocaleDateFormat(locale, FormatWidth.Short); + break; + case "mediumDate": + formatValue = getLocaleDateFormat(locale, FormatWidth.Medium); + break; + case "longDate": + formatValue = getLocaleDateFormat(locale, FormatWidth.Long); + break; + case "fullDate": + formatValue = getLocaleDateFormat(locale, FormatWidth.Full); + break; + case "shortTime": + formatValue = getLocaleTimeFormat(locale, FormatWidth.Short); + break; + case "mediumTime": + formatValue = getLocaleTimeFormat(locale, FormatWidth.Medium); + break; + case "longTime": + formatValue = getLocaleTimeFormat(locale, FormatWidth.Long); + break; + case "fullTime": + formatValue = getLocaleTimeFormat(locale, FormatWidth.Full); + break; + case "short": + const shortTime = getNamedFormat(locale, "shortTime"); + const shortDate = getNamedFormat(locale, "shortDate"); + formatValue = formatDateTime( + getLocaleDateTimeFormat(locale, FormatWidth.Short), + [shortTime, shortDate] + ); + break; + case "medium": + const mediumTime = getNamedFormat(locale, "mediumTime"); + const mediumDate = getNamedFormat(locale, "mediumDate"); + formatValue = formatDateTime( + getLocaleDateTimeFormat(locale, FormatWidth.Medium), + [mediumTime, mediumDate] + ); + break; + case "long": + const longTime = getNamedFormat(locale, "longTime"); + const longDate = getNamedFormat(locale, "longDate"); + formatValue = formatDateTime( + getLocaleDateTimeFormat(locale, FormatWidth.Long), + [longTime, longDate] + ); + break; + case "full": + const fullTime = getNamedFormat(locale, "fullTime"); + const fullDate = getNamedFormat(locale, "fullDate"); + formatValue = formatDateTime( + getLocaleDateTimeFormat(locale, FormatWidth.Full), + [fullTime, fullDate] + ); + break; + } + if (formatValue) { + NAMED_FORMATS[localeId][format] = formatValue; + } + return formatValue; + } + function formatDateTime(str, opt_values) { + if (opt_values) { + str = str.replace(/\{([^}]+)}/g, function (match, key) { + return opt_values != null && key in opt_values + ? opt_values[key] + : match; + }); + } + return str; + } + function padNumber(num, digits, minusSign = "-", trim, negWrap) { + let neg = ""; + if (num < 0 || (negWrap && num <= 0)) { + if (negWrap) { + num = -num + 1; + } else { + num = -num; + neg = minusSign; + } + } + let strNum = String(num); + while (strNum.length < digits) { + strNum = "0" + strNum; + } + if (trim) { + strNum = strNum.slice(strNum.length - digits); + } + return neg + strNum; + } + function formatFractionalSeconds(milliseconds, digits) { + const strMs = padNumber(milliseconds, 3); + return strMs.substring(0, digits); + } + /** + * Returns a date formatter that transforms a date into its locale digit representation + */ + function dateGetter( + name, + size, + offset = 0, + trim = false, + negWrap = false + ) { + return function (date, locale) { + let part = getDatePart(name, date); + if (offset > 0 || part > -offset) { + part += offset; + } + if (name === DateType.Hours) { + if (part === 0 && offset === -12) { + part = 12; + } + } else if (name === DateType.FractionalSeconds) { + return formatFractionalSeconds(part, size); + } + const localeMinus = getLocaleNumberSymbol( + locale, + NumberSymbol.MinusSign + ); + return padNumber(part, size, localeMinus, trim, negWrap); + }; + } + function getDatePart(part, date) { + switch (part) { + case DateType.FullYear: + return date.getFullYear(); + case DateType.Month: + return date.getMonth(); + case DateType.Date: + return date.getDate(); + case DateType.Hours: + return date.getHours(); + case DateType.Minutes: + return date.getMinutes(); + case DateType.Seconds: + return date.getSeconds(); + case DateType.FractionalSeconds: + return date.getMilliseconds(); + case DateType.Day: + return date.getDay(); + default: + throw new Error(`Unknown DateType value "${part}".`); + } + } + /** + * Returns a date formatter that transforms a date into its locale string representation + */ + function dateStrGetter( + name, + width, + form = FormStyle.Format, + extended = false + ) { + return function (date, locale) { + return getDateTranslation( + date, + locale, + name, + width, + form, + extended + ); + }; + } + /** + * Returns the locale translation of a date for a given form, type and width + */ + function getDateTranslation(date, locale, name, width, form, extended) { + switch (name) { + case TranslationType.Months: + return getLocaleMonthNames(locale, form, width)[date.getMonth()]; + case TranslationType.Days: + return getLocaleDayNames(locale, form, width)[date.getDay()]; + case TranslationType.DayPeriods: + const currentHours = date.getHours(); + const currentMinutes = date.getMinutes(); + if (extended) { + const rules = getLocaleExtraDayPeriodRules(locale); + const dayPeriods = getLocaleExtraDayPeriods( + locale, + form, + width + ); + const index = rules.findIndex((rule) => { + if (Array.isArray(rule)) { + // morning, afternoon, evening, night + const [from, to] = rule; + const afterFrom = + currentHours >= from.hours && + currentMinutes >= from.minutes; + const beforeTo = + currentHours < to.hours || + (currentHours === to.hours && + currentMinutes < to.minutes); + // We must account for normal rules that span a period during the day (e.g. 6am-9am) + // where `from` is less (earlier) than `to`. But also rules that span midnight (e.g. + // 10pm - 5am) where `from` is greater (later!) than `to`. + // + // In the first case the current time must be BOTH after `from` AND before `to` + // (e.g. 8am is after 6am AND before 10am). + // + // In the second case the current time must be EITHER after `from` OR before `to` + // (e.g. 4am is before 5am but not after 10pm; and 11pm is not before 5am but it is + // after 10pm). + if (from.hours < to.hours) { + if (afterFrom && beforeTo) { + return true; + } + } else if (afterFrom || beforeTo) { + return true; + } + } else { + // noon or midnight + if ( + rule.hours === currentHours && + rule.minutes === currentMinutes + ) { + return true; + } + } + return false; + }); + if (index !== -1) { + return dayPeriods[index]; + } + } + // if no rules for the day periods, we use am/pm by default + return getLocaleDayPeriods(locale, form, width)[ + currentHours < 12 ? 0 : 1 + ]; + case TranslationType.Eras: + return getLocaleEraNames(locale, width)[ + date.getFullYear() <= 0 ? 0 : 1 + ]; + default: + // This default case is not needed by TypeScript compiler, as the switch is exhaustive. + // However Closure Compiler does not understand that and reports an error in typed mode. + // The `throw new Error` below works around the problem, and the unexpected: never variable + // makes sure tsc still checks this code is unreachable. + const unexpected = name; + throw new Error(`unexpected translation type ${unexpected}`); + } + } + /** + * Returns a date formatter that transforms a date and an offset into a timezone with ISO8601 or + * GMT format depending on the width (eg: short = +0430, short:GMT = GMT+4, long = GMT+04:30, + * extended = +04:30) + */ + function timeZoneGetter(width) { + return function (date, locale, offset) { + const zone = -1 * offset; + const minusSign = getLocaleNumberSymbol( + locale, + NumberSymbol.MinusSign + ); + const hours = + zone > 0 ? Math.floor(zone / 60) : Math.ceil(zone / 60); + switch (width) { + case ZoneWidth.Short: + return ( + (zone >= 0 ? "+" : "") + + padNumber(hours, 2, minusSign) + + padNumber(Math.abs(zone % 60), 2, minusSign) + ); + case ZoneWidth.ShortGMT: + return ( + "GMT" + + (zone >= 0 ? "+" : "") + + padNumber(hours, 1, minusSign) + ); + case ZoneWidth.Long: + return ( + "GMT" + + (zone >= 0 ? "+" : "") + + padNumber(hours, 2, minusSign) + + ":" + + padNumber(Math.abs(zone % 60), 2, minusSign) + ); + case ZoneWidth.Extended: + if (offset === 0) { + return "Z"; + } else { + return ( + (zone >= 0 ? "+" : "") + + padNumber(hours, 2, minusSign) + + ":" + + padNumber(Math.abs(zone % 60), 2, minusSign) + ); + } + default: + throw new Error(`Unknown zone width "${width}"`); + } + }; + } + const JANUARY = 0; + const THURSDAY = 4; + function getFirstThursdayOfYear(year) { + const firstDayOfYear = createDate(year, JANUARY, 1).getDay(); + return createDate( + year, + 0, + 1 + + (firstDayOfYear <= THURSDAY ? THURSDAY : THURSDAY + 7) - + firstDayOfYear + ); + } + function getThursdayThisWeek(datetime) { + return createDate( + datetime.getFullYear(), + datetime.getMonth(), + datetime.getDate() + (THURSDAY - datetime.getDay()) + ); + } + function weekGetter(size, monthBased = false) { + return function (date, locale) { + let result; + if (monthBased) { + const nbDaysBefore1stDayOfMonth = + new Date(date.getFullYear(), date.getMonth(), 1).getDay() - 1; + const today = date.getDate(); + result = 1 + Math.floor((today + nbDaysBefore1stDayOfMonth) / 7); + } else { + const thisThurs = getThursdayThisWeek(date); + // Some days of a year are part of next year according to ISO 8601. + // Compute the firstThurs from the year of this week's Thursday + const firstThurs = getFirstThursdayOfYear( + thisThurs.getFullYear() + ); + const diff = thisThurs.getTime() - firstThurs.getTime(); + result = 1 + Math.round(diff / 6.048e8); // 6.048e8 ms per week + } + + return padNumber( + result, + size, + getLocaleNumberSymbol(locale, NumberSymbol.MinusSign) + ); + }; + } + /** + * Returns a date formatter that provides the week-numbering year for the input date. + */ + function weekNumberingYearGetter(size, trim = false) { + return function (date, locale) { + const thisThurs = getThursdayThisWeek(date); + const weekNumberingYear = thisThurs.getFullYear(); + return padNumber( + weekNumberingYear, + size, + getLocaleNumberSymbol(locale, NumberSymbol.MinusSign), + trim + ); + }; + } + const DATE_FORMATS = {}; + // Based on CLDR formats: + // See complete list: http://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table + // See also explanations: http://cldr.unicode.org/translation/date-time + // TODO(ocombe): support all missing cldr formats: U, Q, D, F, e, j, J, C, A, v, V, X, x + function getDateFormatter(format) { + if (DATE_FORMATS[format]) { + return DATE_FORMATS[format]; + } + let formatter; + switch (format) { + // Era name (AD/BC) + case "G": + case "GG": + case "GGG": + formatter = dateStrGetter( + TranslationType.Eras, + TranslationWidth.Abbreviated + ); + break; + case "GGGG": + formatter = dateStrGetter( + TranslationType.Eras, + TranslationWidth.Wide + ); + break; + case "GGGGG": + formatter = dateStrGetter( + TranslationType.Eras, + TranslationWidth.Narrow + ); + break; + // 1 digit representation of the year, e.g. (AD 1 => 1, AD 199 => 199) + case "y": + formatter = dateGetter(DateType.FullYear, 1, 0, false, true); + break; + // 2 digit representation of the year, padded (00-99). (e.g. AD 2001 => 01, AD 2010 => 10) + case "yy": + formatter = dateGetter(DateType.FullYear, 2, 0, true, true); + break; + // 3 digit representation of the year, padded (000-999). (e.g. AD 2001 => 01, AD 2010 => 10) + case "yyy": + formatter = dateGetter(DateType.FullYear, 3, 0, false, true); + break; + // 4 digit representation of the year (e.g. AD 1 => 0001, AD 2010 => 2010) + case "yyyy": + formatter = dateGetter(DateType.FullYear, 4, 0, false, true); + break; + // 1 digit representation of the week-numbering year, e.g. (AD 1 => 1, AD 199 => 199) + case "Y": + formatter = weekNumberingYearGetter(1); + break; + // 2 digit representation of the week-numbering year, padded (00-99). (e.g. AD 2001 => 01, AD + // 2010 => 10) + case "YY": + formatter = weekNumberingYearGetter(2, true); + break; + // 3 digit representation of the week-numbering year, padded (000-999). (e.g. AD 1 => 001, AD + // 2010 => 2010) + case "YYY": + formatter = weekNumberingYearGetter(3); + break; + // 4 digit representation of the week-numbering year (e.g. AD 1 => 0001, AD 2010 => 2010) + case "YYYY": + formatter = weekNumberingYearGetter(4); + break; + // Month of the year (1-12), numeric + case "M": + case "L": + formatter = dateGetter(DateType.Month, 1, 1); + break; + case "MM": + case "LL": + formatter = dateGetter(DateType.Month, 2, 1); + break; + // Month of the year (January, ...), string, format + case "MMM": + formatter = dateStrGetter( + TranslationType.Months, + TranslationWidth.Abbreviated + ); + break; + case "MMMM": + formatter = dateStrGetter( + TranslationType.Months, + TranslationWidth.Wide + ); + break; + case "MMMMM": + formatter = dateStrGetter( + TranslationType.Months, + TranslationWidth.Narrow + ); + break; + // Month of the year (January, ...), string, standalone + case "LLL": + formatter = dateStrGetter( + TranslationType.Months, + TranslationWidth.Abbreviated, + FormStyle.Standalone + ); + break; + case "LLLL": + formatter = dateStrGetter( + TranslationType.Months, + TranslationWidth.Wide, + FormStyle.Standalone + ); + break; + case "LLLLL": + formatter = dateStrGetter( + TranslationType.Months, + TranslationWidth.Narrow, + FormStyle.Standalone + ); + break; + // Week of the year (1, ... 52) + case "w": + formatter = weekGetter(1); + break; + case "ww": + formatter = weekGetter(2); + break; + // Week of the month (1, ...) + case "W": + formatter = weekGetter(1, true); + break; + // Day of the month (1-31) + case "d": + formatter = dateGetter(DateType.Date, 1); + break; + case "dd": + formatter = dateGetter(DateType.Date, 2); + break; + // Day of the Week StandAlone (1, 1, Mon, Monday, M, Mo) + case "c": + case "cc": + formatter = dateGetter(DateType.Day, 1); + break; + case "ccc": + formatter = dateStrGetter( + TranslationType.Days, + TranslationWidth.Abbreviated, + FormStyle.Standalone + ); + break; + case "cccc": + formatter = dateStrGetter( + TranslationType.Days, + TranslationWidth.Wide, + FormStyle.Standalone + ); + break; + case "ccccc": + formatter = dateStrGetter( + TranslationType.Days, + TranslationWidth.Narrow, + FormStyle.Standalone + ); + break; + case "cccccc": + formatter = dateStrGetter( + TranslationType.Days, + TranslationWidth.Short, + FormStyle.Standalone + ); + break; + // Day of the Week + case "E": + case "EE": + case "EEE": + formatter = dateStrGetter( + TranslationType.Days, + TranslationWidth.Abbreviated + ); + break; + case "EEEE": + formatter = dateStrGetter( + TranslationType.Days, + TranslationWidth.Wide + ); + break; + case "EEEEE": + formatter = dateStrGetter( + TranslationType.Days, + TranslationWidth.Narrow + ); + break; + case "EEEEEE": + formatter = dateStrGetter( + TranslationType.Days, + TranslationWidth.Short + ); + break; + // Generic period of the day (am-pm) + case "a": + case "aa": + case "aaa": + formatter = dateStrGetter( + TranslationType.DayPeriods, + TranslationWidth.Abbreviated + ); + break; + case "aaaa": + formatter = dateStrGetter( + TranslationType.DayPeriods, + TranslationWidth.Wide + ); + break; + case "aaaaa": + formatter = dateStrGetter( + TranslationType.DayPeriods, + TranslationWidth.Narrow + ); + break; + // Extended period of the day (midnight, at night, ...), standalone + case "b": + case "bb": + case "bbb": + formatter = dateStrGetter( + TranslationType.DayPeriods, + TranslationWidth.Abbreviated, + FormStyle.Standalone, + true + ); + break; + case "bbbb": + formatter = dateStrGetter( + TranslationType.DayPeriods, + TranslationWidth.Wide, + FormStyle.Standalone, + true + ); + break; + case "bbbbb": + formatter = dateStrGetter( + TranslationType.DayPeriods, + TranslationWidth.Narrow, + FormStyle.Standalone, + true + ); + break; + // Extended period of the day (midnight, night, ...), standalone + case "B": + case "BB": + case "BBB": + formatter = dateStrGetter( + TranslationType.DayPeriods, + TranslationWidth.Abbreviated, + FormStyle.Format, + true + ); + break; + case "BBBB": + formatter = dateStrGetter( + TranslationType.DayPeriods, + TranslationWidth.Wide, + FormStyle.Format, + true + ); + break; + case "BBBBB": + formatter = dateStrGetter( + TranslationType.DayPeriods, + TranslationWidth.Narrow, + FormStyle.Format, + true + ); + break; + // Hour in AM/PM, (1-12) + case "h": + formatter = dateGetter(DateType.Hours, 1, -12); + break; + case "hh": + formatter = dateGetter(DateType.Hours, 2, -12); + break; + // Hour of the day (0-23) + case "H": + formatter = dateGetter(DateType.Hours, 1); + break; + // Hour in day, padded (00-23) + case "HH": + formatter = dateGetter(DateType.Hours, 2); + break; + // Minute of the hour (0-59) + case "m": + formatter = dateGetter(DateType.Minutes, 1); + break; + case "mm": + formatter = dateGetter(DateType.Minutes, 2); + break; + // Second of the minute (0-59) + case "s": + formatter = dateGetter(DateType.Seconds, 1); + break; + case "ss": + formatter = dateGetter(DateType.Seconds, 2); + break; + // Fractional second + case "S": + formatter = dateGetter(DateType.FractionalSeconds, 1); + break; + case "SS": + formatter = dateGetter(DateType.FractionalSeconds, 2); + break; + case "SSS": + formatter = dateGetter(DateType.FractionalSeconds, 3); + break; + // Timezone ISO8601 short format (-0430) + case "Z": + case "ZZ": + case "ZZZ": + formatter = timeZoneGetter(ZoneWidth.Short); + break; + // Timezone ISO8601 extended format (-04:30) + case "ZZZZZ": + formatter = timeZoneGetter(ZoneWidth.Extended); + break; + // Timezone GMT short format (GMT+4) + case "O": + case "OO": + case "OOO": + // Should be location, but fallback to format O instead because we don't have the data yet + case "z": + case "zz": + case "zzz": + formatter = timeZoneGetter(ZoneWidth.ShortGMT); + break; + // Timezone GMT long format (GMT+0430) + case "OOOO": + case "ZZZZ": + // Should be location, but fallback to format O instead because we don't have the data yet + case "zzzz": + formatter = timeZoneGetter(ZoneWidth.Long); + break; + default: + return null; + } + DATE_FORMATS[format] = formatter; + return formatter; + } + function timezoneToOffset(timezone, fallback) { + // Support: IE 11 only, Edge 13-15+ + // IE/Edge do not "understand" colon (`:`) in timezone + timezone = timezone.replace(/:/g, ""); + const requestedTimezoneOffset = + Date.parse("Jan 01, 1970 00:00:00 " + timezone) / 60000; + return isNaN(requestedTimezoneOffset) + ? fallback + : requestedTimezoneOffset; + } + function addDateMinutes(date, minutes) { + date = new Date(date.getTime()); + date.setMinutes(date.getMinutes() + minutes); + return date; + } + function convertTimezoneToLocal(date, timezone, reverse) { + const reverseValue = reverse ? -1 : 1; + const dateTimezoneOffset = date.getTimezoneOffset(); + const timezoneOffset = timezoneToOffset(timezone, dateTimezoneOffset); + return addDateMinutes( + date, + reverseValue * (timezoneOffset - dateTimezoneOffset) + ); + } + /** + * Converts a value to date. + * + * Supported input formats: + * - `Date` + * - number: timestamp + * - string: numeric (e.g. "1234"), ISO and date strings in a format supported by + * [Date.parse()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/parse). + * Note: ISO strings without time return a date without timeoffset. + * + * Throws if unable to convert to a date. + */ + function toDate(value) { + if (isDate(value)) { + return value; + } + if (typeof value === "number" && !isNaN(value)) { + return new Date(value); + } + if (typeof value === "string") { + value = value.trim(); + if (/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(value)) { + /* For ISO Strings without time the day, month and year must be extracted from the ISO String + before Date creation to avoid time offset and errors in the new Date. + If we only replace '-' with ',' in the ISO String ("2015,01,01"), and try to create a new + date, some browsers (e.g. IE 9) will throw an invalid Date error. + If we leave the '-' ("2015-01-01") and try to create a new Date("2015-01-01") the timeoffset + is applied. + Note: ISO months are 0 for January, 1 for February, ... */ + const [y, m = 1, d = 1] = value.split("-").map((val) => +val); + return createDate(y, m - 1, d); + } + const parsedNb = parseFloat(value); + // any string that only contains numbers, like "1234" but not like "1234hello" + if (!isNaN(value - parsedNb)) { + return new Date(parsedNb); + } + let match; + if ((match = value.match(ISO8601_DATE_REGEX))) { + return isoStringToDate(match); + } + } + const date = new Date(value); + if (!isDate(date)) { + throw new Error(`Unable to convert "${value}" into a date`); + } + return date; + } + /** + * Converts a date in ISO8601 to a Date. + * Used instead of `Date.parse` because of browser discrepancies. + */ + function isoStringToDate(match) { + const date = new Date(0); + let tzHour = 0; + let tzMin = 0; + // match[8] means that the string contains "Z" (UTC) or a timezone like "+01:00" or "+0100" + const dateSetter = match[8] ? date.setUTCFullYear : date.setFullYear; + const timeSetter = match[8] ? date.setUTCHours : date.setHours; + // if there is a timezone defined like "+01:00" or "+0100" + if (match[9]) { + tzHour = Number(match[9] + match[10]); + tzMin = Number(match[9] + match[11]); + } + dateSetter.call( + date, + Number(match[1]), + Number(match[2]) - 1, + Number(match[3]) + ); + const h = Number(match[4] || 0) - tzHour; + const m = Number(match[5] || 0) - tzMin; + const s = Number(match[6] || 0); + // The ECMAScript specification (https://www.ecma-international.org/ecma-262/5.1/#sec-15.9.1.11) + // defines that `DateTime` milliseconds should always be rounded down, so that `999.9ms` + // becomes `999ms`. + const ms = Math.floor(parseFloat("0." + (match[7] || 0)) * 1000); + timeSetter.call(date, h, m, s, ms); + return date; + } + function isDate(value) { + return value instanceof Date && !isNaN(value.valueOf()); + } + const NUMBER_FORMAT_REGEXP = /^(\d+)?\.((\d+)(-(\d+))?)?$/; + const MAX_DIGITS = 22; + const DECIMAL_SEP = "."; + const ZERO_CHAR = "0"; + const PATTERN_SEP = ";"; + const GROUP_SEP = ","; + const DIGIT_CHAR = "#"; + const CURRENCY_CHAR = "¤"; + const PERCENT_CHAR = "%"; + /** + * Transforms a number to a locale string based on a style and a format. + */ + function formatNumberToLocaleString( + value, + pattern, + locale, + groupSymbol, + decimalSymbol, + digitsInfo, + isPercent = false + ) { + let formattedText = ""; + let isZero = false; + if (!isFinite(value)) { + formattedText = getLocaleNumberSymbol( + locale, + NumberSymbol.Infinity + ); + } else { + let parsedNumber = parseNumber(value); + if (isPercent) { + parsedNumber = toPercent(parsedNumber); + } + let minInt = pattern.minInt; + let minFraction = pattern.minFrac; + let maxFraction = pattern.maxFrac; + if (digitsInfo) { + const parts = digitsInfo.match(NUMBER_FORMAT_REGEXP); + if (parts === null) { + throw new Error(`${digitsInfo} is not a valid digit info`); + } + const minIntPart = parts[1]; + const minFractionPart = parts[3]; + const maxFractionPart = parts[5]; + if (minIntPart != null) { + minInt = parseIntAutoRadix(minIntPart); + } + if (minFractionPart != null) { + minFraction = parseIntAutoRadix(minFractionPart); + } + if (maxFractionPart != null) { + maxFraction = parseIntAutoRadix(maxFractionPart); + } else if (minFractionPart != null && minFraction > maxFraction) { + maxFraction = minFraction; + } + } + roundNumber(parsedNumber, minFraction, maxFraction); + let digits = parsedNumber.digits; + let integerLen = parsedNumber.integerLen; + const exponent = parsedNumber.exponent; + let decimals = []; + isZero = digits.every((d) => !d); + // pad zeros for small numbers + for (; integerLen < minInt; integerLen++) { + digits.unshift(0); + } + // pad zeros for small numbers + for (; integerLen < 0; integerLen++) { + digits.unshift(0); + } + // extract decimals digits + if (integerLen > 0) { + decimals = digits.splice(integerLen, digits.length); + } else { + decimals = digits; + digits = [0]; + } + // format the integer digits with grouping separators + const groups = []; + if (digits.length >= pattern.lgSize) { + groups.unshift( + digits.splice(-pattern.lgSize, digits.length).join("") + ); + } + while (digits.length > pattern.gSize) { + groups.unshift( + digits.splice(-pattern.gSize, digits.length).join("") + ); + } + if (digits.length) { + groups.unshift(digits.join("")); + } + formattedText = groups.join( + getLocaleNumberSymbol(locale, groupSymbol) + ); + // append the decimal digits + if (decimals.length) { + formattedText += + getLocaleNumberSymbol(locale, decimalSymbol) + + decimals.join(""); + } + if (exponent) { + formattedText += + getLocaleNumberSymbol(locale, NumberSymbol.Exponential) + + "+" + + exponent; + } + } + if (value < 0 && !isZero) { + formattedText = pattern.negPre + formattedText + pattern.negSuf; + } else { + formattedText = pattern.posPre + formattedText + pattern.posSuf; + } + return formattedText; + } + /** + * @ngModule CommonModule + * @description + * + * Formats a number as currency using locale rules. + * + * @param value The number to format. + * @param locale A locale code for the locale format rules to use. + * @param currency A string containing the currency symbol or its name, + * such as "$" or "Canadian Dollar". Used in output string, but does not affect the operation + * of the function. + * @param currencyCode The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) + * currency code, such as `USD` for the US dollar and `EUR` for the euro. + * Used to determine the number of digits in the decimal part. + * @param digitsInfo Decimal representation options, specified by a string in the following format: + * `{minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}`. See `DecimalPipe` for more details. + * + * @returns The formatted currency value. + * + * @see `formatNumber()` + * @see `DecimalPipe` + * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview) + * + * @publicApi + */ + function formatCurrency( + value, + locale, + currency, + currencyCode, + digitsInfo + ) { + const format = getLocaleNumberFormat( + locale, + NumberFormatStyle.Currency + ); + const pattern = parseNumberFormat( + format, + getLocaleNumberSymbol(locale, NumberSymbol.MinusSign) + ); + pattern.minFrac = getNumberOfCurrencyDigits(currencyCode); + pattern.maxFrac = pattern.minFrac; + const res = formatNumberToLocaleString( + value, + pattern, + locale, + NumberSymbol.CurrencyGroup, + NumberSymbol.CurrencyDecimal, + digitsInfo + ); + return ( + res + .replace(CURRENCY_CHAR, currency) + // if we have 2 time the currency character, the second one is ignored + .replace(CURRENCY_CHAR, "") + // If there is a spacing between currency character and the value and + // the currency character is suppressed by passing an empty string, the + // spacing character would remain as part of the string. Then we + // should remove it. + .trim() + ); + } + /** + * @ngModule CommonModule + * @description + * + * Formats a number as a percentage according to locale rules. + * + * @param value The number to format. + * @param locale A locale code for the locale format rules to use. + * @param digitsInfo Decimal representation options, specified by a string in the following format: + * `{minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}`. See `DecimalPipe` for more details. + * + * @returns The formatted percentage value. + * + * @see `formatNumber()` + * @see `DecimalPipe` + * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview) + * @publicApi + * + */ + function formatPercent(value, locale, digitsInfo) { + const format = getLocaleNumberFormat( + locale, + NumberFormatStyle.Percent + ); + const pattern = parseNumberFormat( + format, + getLocaleNumberSymbol(locale, NumberSymbol.MinusSign) + ); + const res = formatNumberToLocaleString( + value, + pattern, + locale, + NumberSymbol.Group, + NumberSymbol.Decimal, + digitsInfo, + true + ); + return res.replace( + new RegExp(PERCENT_CHAR, "g"), + getLocaleNumberSymbol(locale, NumberSymbol.PercentSign) + ); + } + /** + * @ngModule CommonModule + * @description + * + * Formats a number as text, with group sizing, separator, and other + * parameters based on the locale. + * + * @param value The number to format. + * @param locale A locale code for the locale format rules to use. + * @param digitsInfo Decimal representation options, specified by a string in the following format: + * `{minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}`. See `DecimalPipe` for more details. + * + * @returns The formatted text string. + * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview) + * + * @publicApi + */ + function formatNumber(value, locale, digitsInfo) { + const format = getLocaleNumberFormat( + locale, + NumberFormatStyle.Decimal + ); + const pattern = parseNumberFormat( + format, + getLocaleNumberSymbol(locale, NumberSymbol.MinusSign) + ); + return formatNumberToLocaleString( + value, + pattern, + locale, + NumberSymbol.Group, + NumberSymbol.Decimal, + digitsInfo + ); + } + function parseNumberFormat(format, minusSign = "-") { + const p = { + minInt: 1, + minFrac: 0, + maxFrac: 0, + posPre: "", + posSuf: "", + negPre: "", + negSuf: "", + gSize: 0, + lgSize: 0, + }; + const patternParts = format.split(PATTERN_SEP); + const positive = patternParts[0]; + const negative = patternParts[1]; + const positiveParts = + positive.indexOf(DECIMAL_SEP) !== -1 + ? positive.split(DECIMAL_SEP) + : [ + positive.substring(0, positive.lastIndexOf(ZERO_CHAR) + 1), + positive.substring(positive.lastIndexOf(ZERO_CHAR) + 1), + ], + integer = positiveParts[0], + fraction = positiveParts[1] || ""; + p.posPre = integer.substring(0, integer.indexOf(DIGIT_CHAR)); + for (let i = 0; i < fraction.length; i++) { + const ch = fraction.charAt(i); + if (ch === ZERO_CHAR) { + p.minFrac = p.maxFrac = i + 1; + } else if (ch === DIGIT_CHAR) { + p.maxFrac = i + 1; + } else { + p.posSuf += ch; + } + } + const groups = integer.split(GROUP_SEP); + p.gSize = groups[1] ? groups[1].length : 0; + p.lgSize = + groups[2] || groups[1] ? (groups[2] || groups[1]).length : 0; + if (negative) { + const trunkLen = + positive.length - p.posPre.length - p.posSuf.length, + pos = negative.indexOf(DIGIT_CHAR); + p.negPre = negative.substring(0, pos).replace(/'/g, ""); + p.negSuf = negative.slice(pos + trunkLen).replace(/'/g, ""); + } else { + p.negPre = minusSign + p.posPre; + p.negSuf = p.posSuf; + } + return p; + } + // Transforms a parsed number into a percentage by multiplying it by 100 + function toPercent(parsedNumber) { + // if the number is 0, don't do anything + if (parsedNumber.digits[0] === 0) { + return parsedNumber; + } + // Getting the current number of decimals + const fractionLen = + parsedNumber.digits.length - parsedNumber.integerLen; + if (parsedNumber.exponent) { + parsedNumber.exponent += 2; + } else { + if (fractionLen === 0) { + parsedNumber.digits.push(0, 0); + } else if (fractionLen === 1) { + parsedNumber.digits.push(0); + } + parsedNumber.integerLen += 2; + } + return parsedNumber; + } + /** + * Parses a number. + * Significant bits of this parse algorithm came from https://github.com/MikeMcl/big.js/ + */ + function parseNumber(num) { + let numStr = Math.abs(num) + ""; + let exponent = 0, + digits, + integerLen; + let i, j, zeros; + // Decimal point? + if ((integerLen = numStr.indexOf(DECIMAL_SEP)) > -1) { + numStr = numStr.replace(DECIMAL_SEP, ""); + } + // Exponential form? + if ((i = numStr.search(/e/i)) > 0) { + // Work out the exponent. + if (integerLen < 0) integerLen = i; + integerLen += +numStr.slice(i + 1); + numStr = numStr.substring(0, i); + } else if (integerLen < 0) { + // There was no decimal point or exponent so it is an integer. + integerLen = numStr.length; + } + // Count the number of leading zeros. + for (i = 0; numStr.charAt(i) === ZERO_CHAR; i++) { + /* empty */ + } + if (i === (zeros = numStr.length)) { + // The digits are all zero. + digits = [0]; + integerLen = 1; + } else { + // Count the number of trailing zeros + zeros--; + while (numStr.charAt(zeros) === ZERO_CHAR) zeros--; + // Trailing zeros are insignificant so ignore them + integerLen -= i; + digits = []; + // Convert string to array of digits without leading/trailing zeros. + for (j = 0; i <= zeros; i++, j++) { + digits[j] = Number(numStr.charAt(i)); + } + } + // If the number overflows the maximum allowed digits then use an exponent. + if (integerLen > MAX_DIGITS) { + digits = digits.splice(0, MAX_DIGITS - 1); + exponent = integerLen - 1; + integerLen = 1; + } + return { + digits, + exponent, + integerLen, + }; + } + /** + * Round the parsed number to the specified number of decimal places + * This function changes the parsedNumber in-place + */ + function roundNumber(parsedNumber, minFrac, maxFrac) { + if (minFrac > maxFrac) { + throw new Error( + `The minimum number of digits after fraction (${minFrac}) is higher than the maximum (${maxFrac}).` + ); + } + let digits = parsedNumber.digits; + let fractionLen = digits.length - parsedNumber.integerLen; + const fractionSize = Math.min( + Math.max(minFrac, fractionLen), + maxFrac + ); + // The index of the digit to where rounding is to occur + let roundAt = fractionSize + parsedNumber.integerLen; + let digit = digits[roundAt]; + if (roundAt > 0) { + // Drop fractional digits beyond `roundAt` + digits.splice(Math.max(parsedNumber.integerLen, roundAt)); + // Set non-fractional digits beyond `roundAt` to 0 + for (let j = roundAt; j < digits.length; j++) { + digits[j] = 0; + } + } else { + // We rounded to zero so reset the parsedNumber + fractionLen = Math.max(0, fractionLen); + parsedNumber.integerLen = 1; + digits.length = Math.max(1, (roundAt = fractionSize + 1)); + digits[0] = 0; + for (let i = 1; i < roundAt; i++) digits[i] = 0; + } + if (digit >= 5) { + if (roundAt - 1 < 0) { + for (let k = 0; k > roundAt; k--) { + digits.unshift(0); + parsedNumber.integerLen++; + } + digits.unshift(1); + parsedNumber.integerLen++; + } else { + digits[roundAt - 1]++; + } + } + // Pad out with zeros to get the required fraction length + for (; fractionLen < Math.max(0, fractionSize); fractionLen++) + digits.push(0); + let dropTrailingZeros = fractionSize !== 0; + // Minimal length = nb of decimals required + current nb of integers + // Any number besides that is optional and can be removed if it's a trailing 0 + const minLen = minFrac + parsedNumber.integerLen; + // Do any carrying, e.g. a digit was rounded up to 10 + const carry = digits.reduceRight(function (carry, d, i, digits) { + d = d + carry; + digits[i] = d < 10 ? d : d - 10; // d % 10 + if (dropTrailingZeros) { + // Do not keep meaningless fractional trailing zeros (e.g. 15.52000 --> 15.52) + if (digits[i] === 0 && i >= minLen) { + digits.pop(); + } else { + dropTrailingZeros = false; + } + } + return d >= 10 ? 1 : 0; // Math.floor(d / 10); + }, 0); + if (carry) { + digits.unshift(carry); + parsedNumber.integerLen++; + } + } + function parseIntAutoRadix(text) { + const result = parseInt(text); + if (isNaN(result)) { + throw new Error("Invalid integer literal when parsing " + text); + } + return result; + } + + /** + * @publicApi + */ + class NgLocalization {} + NgLocalization.ɵfac = function NgLocalization_Factory(t) { + return new (t || NgLocalization)(); + }; + NgLocalization.ɵprov = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineInjectable" + ]({ + token: NgLocalization, + factory: function NgLocalization_Factory(t) { + let r = null; + if (t) { + r = new t(); + } else { + r = ((locale) => new NgLocaleLocalization(locale))( + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_0__.LOCALE_ID + ) + ); + } + return r; + }, + providedIn: "root", + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + NgLocalization, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injectable, + args: [ + { + providedIn: "root", + useFactory: (locale) => new NgLocaleLocalization(locale), + deps: [ + _angular_core__WEBPACK_IMPORTED_MODULE_0__.LOCALE_ID, + ], + }, + ], + }, + ], + null, + null + ); + })(); + /** + * Returns the plural category for a given value. + * - "=value" when the case exists, + * - the plural category otherwise + */ + function getPluralCategory(value, cases, ngLocalization, locale) { + let key = `=${value}`; + if (cases.indexOf(key) > -1) { + return key; + } + key = ngLocalization.getPluralCategory(value, locale); + if (cases.indexOf(key) > -1) { + return key; + } + if (cases.indexOf("other") > -1) { + return "other"; + } + throw new Error(`No plural message found for value "${value}"`); + } + /** + * Returns the plural case based on the locale + * + * @publicApi + */ + class NgLocaleLocalization extends NgLocalization { + constructor(locale) { + super(); + this.locale = locale; + } + getPluralCategory(value, locale) { + const plural = getLocalePluralCase(locale || this.locale)(value); + switch (plural) { + case Plural.Zero: + return "zero"; + case Plural.One: + return "one"; + case Plural.Two: + return "two"; + case Plural.Few: + return "few"; + case Plural.Many: + return "many"; + default: + return "other"; + } + } + } + NgLocaleLocalization.ɵfac = function NgLocaleLocalization_Factory(t) { + return new (t || NgLocaleLocalization)( + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_0__.LOCALE_ID + ) + ); + }; + NgLocaleLocalization.ɵprov = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineInjectable" + ]({ + token: NgLocaleLocalization, + factory: NgLocaleLocalization.ɵfac, + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + NgLocaleLocalization, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injectable, + }, + ], + function () { + return [ + { + type: undefined, + decorators: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject, + args: [ + _angular_core__WEBPACK_IMPORTED_MODULE_0__.LOCALE_ID, + ], + }, + ], + }, + ]; + }, + null + ); + })(); + + /** + * Register global data to be used internally by Angular. See the + * ["I18n guide"](guide/i18n-common-format-data-locale) to know how to import additional locale + * data. + * + * The signature registerLocaleData(data: any, extraData?: any) is deprecated since v5.1 + * + * @publicApi + */ + function registerLocaleData(data, localeId, extraData) { + return (0, + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵregisterLocaleData"])( + data, + localeId, + extraData + ); + } + function parseCookieValue(cookieStr, name) { + name = encodeURIComponent(name); + for (const cookie of cookieStr.split(";")) { + const eqIndex = cookie.indexOf("="); + const [cookieName, cookieValue] = + eqIndex == -1 + ? [cookie, ""] + : [cookie.slice(0, eqIndex), cookie.slice(eqIndex + 1)]; + if (cookieName.trim() === name) { + return decodeURIComponent(cookieValue); + } + } + return null; + } + const WS_REGEXP = /\s+/; + const EMPTY_ARRAY = []; + /** + * @ngModule CommonModule + * + * @usageNotes + * ``` + * ... + * + * ... + * + * ... + * + * ... + * + * ... + * ``` + * + * @description + * + * Adds and removes CSS classes on an HTML element. + * + * The CSS classes are updated as follows, depending on the type of the expression evaluation: + * - `string` - the CSS classes listed in the string (space delimited) are added, + * - `Array` - the CSS classes declared as Array elements are added, + * - `Object` - keys are CSS classes that get added when the expression given in the value + * evaluates to a truthy value, otherwise they are removed. + * + * @publicApi + */ + class NgClass { + constructor( + // leaving references to differs in place since flex layout is extending NgClass... + _iterableDiffers, + _keyValueDiffers, + _ngEl, + _renderer + ) { + this._iterableDiffers = _iterableDiffers; + this._keyValueDiffers = _keyValueDiffers; + this._ngEl = _ngEl; + this._renderer = _renderer; + this.initialClasses = EMPTY_ARRAY; + this.stateMap = new Map(); + } + set klass(value) { + this.initialClasses = + value != null ? value.trim().split(WS_REGEXP) : EMPTY_ARRAY; + } + set ngClass(value) { + this.rawClass = + typeof value === "string" ? value.trim().split(WS_REGEXP) : value; + } + /* + The NgClass directive uses the custom change detection algorithm for its inputs. The custom + algorithm is necessary since inputs are represented as complex object or arrays that need to be + deeply-compared. + This algorithm is perf-sensitive since NgClass is used very frequently and its poor performance + might negatively impact runtime performance of the entire change detection cycle. The design of + this algorithm is making sure that: + - there is no unnecessary DOM manipulation (CSS classes are added / removed from the DOM only when + needed), even if references to bound objects change; + - there is no memory allocation if nothing changes (even relatively modest memory allocation + during the change detection cycle can result in GC pauses for some of the CD cycles). + The algorithm works by iterating over the set of bound classes, staring with [class] binding and + then going over [ngClass] binding. For each CSS class name: + - check if it was seen before (this information is tracked in the state map) and if its value + changed; + - mark it as "touched" - names that are not marked are not present in the latest set of binding + and we can remove such class name from the internal data structures; + After iteration over all the CSS class names we've got data structure with all the information + necessary to synchronize changes to the DOM - it is enough to iterate over the state map, flush + changes to the DOM and reset internal data structures so those are ready for the next change + detection cycle. + */ + ngDoCheck() { + // classes from the [class] binding + for (const klass of this.initialClasses) { + this._updateState(klass, true); + } + // classes from the [ngClass] binding + const rawClass = this.rawClass; + if (Array.isArray(rawClass) || rawClass instanceof Set) { + for (const klass of rawClass) { + this._updateState(klass, true); + } + } else if (rawClass != null) { + for (const klass of Object.keys(rawClass)) { + this._updateState(klass, Boolean(rawClass[klass])); + } + } + this._applyStateDiff(); + } + _updateState(klass, nextEnabled) { + const state = this.stateMap.get(klass); + if (state !== undefined) { + if (state.enabled !== nextEnabled) { + state.changed = true; + state.enabled = nextEnabled; + } + state.touched = true; + } else { + this.stateMap.set(klass, { + enabled: nextEnabled, + changed: true, + touched: true, + }); + } + } + _applyStateDiff() { + for (const stateEntry of this.stateMap) { + const klass = stateEntry[0]; + const state = stateEntry[1]; + if (state.changed) { + this._toggleClass(klass, state.enabled); + state.changed = false; + } else if (!state.touched) { + // A class that was previously active got removed from the new collection of classes - + // remove from the DOM as well. + if (state.enabled) { + this._toggleClass(klass, false); + } + this.stateMap.delete(klass); + } + state.touched = false; + } + } + _toggleClass(klass, enabled) { + if (ngDevMode) { + if (typeof klass !== "string") { + throw new Error( + `NgClass can only toggle CSS classes expressed as strings, got ${(0, + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵstringify"])( + klass + )}` + ); + } + } + klass = klass.trim(); + if (klass.length > 0) { + klass.split(WS_REGEXP).forEach((klass) => { + if (enabled) { + this._renderer.addClass(this._ngEl.nativeElement, klass); + } else { + this._renderer.removeClass(this._ngEl.nativeElement, klass); + } + }); + } + } + } + NgClass.ɵfac = function NgClass_Factory(t) { + return new (t || NgClass)( + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_0__.IterableDiffers + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_0__.KeyValueDiffers + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_0__.Renderer2 + ) + ); + }; + NgClass.ɵdir = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineDirective" + ]({ + type: NgClass, + selectors: [["", "ngClass", ""]], + inputs: { + klass: ["class", "klass"], + ngClass: "ngClass", + }, + standalone: true, + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + NgClass, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive, + args: [ + { + selector: "[ngClass]", + standalone: true, + }, + ], + }, + ], + function () { + return [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.IterableDiffers, + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.KeyValueDiffers, + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef, + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Renderer2, + }, + ]; + }, + { + klass: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input, + args: ["class"], + }, + ], + ngClass: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input, + args: ["ngClass"], + }, + ], + } + ); + })(); + + /** + * Instantiates a {@link Component} type and inserts its Host View into the current View. + * `NgComponentOutlet` provides a declarative approach for dynamic component creation. + * + * `NgComponentOutlet` requires a component type, if a falsy value is set the view will clear and + * any existing component will be destroyed. + * + * @usageNotes + * + * ### Fine tune control + * + * You can control the component creation process by using the following optional attributes: + * + * * `ngComponentOutletInjector`: Optional custom {@link Injector} that will be used as parent for + * the Component. Defaults to the injector of the current view container. + * + * * `ngComponentOutletContent`: Optional list of projectable nodes to insert into the content + * section of the component, if it exists. + * + * * `ngComponentOutletNgModule`: Optional NgModule class reference to allow loading another + * module dynamically, then loading a component from that module. + * + * * `ngComponentOutletNgModuleFactory`: Deprecated config option that allows providing optional + * NgModule factory to allow loading another module dynamically, then loading a component from that + * module. Use `ngComponentOutletNgModule` instead. + * + * ### Syntax + * + * Simple + * ``` + * + * ``` + * + * Customized injector/content + * ``` + * + * + * ``` + * + * Customized NgModule reference + * ``` + * + * + * ``` + * + * ### A simple example + * + * {@example common/ngComponentOutlet/ts/module.ts region='SimpleExample'} + * + * A more complete example with additional options: + * + * {@example common/ngComponentOutlet/ts/module.ts region='CompleteExample'} + * + * @publicApi + * @ngModule CommonModule + */ + class NgComponentOutlet { + constructor(_viewContainerRef) { + this._viewContainerRef = _viewContainerRef; + this.ngComponentOutlet = null; + } + /** @nodoc */ + ngOnChanges(changes) { + const { + _viewContainerRef: viewContainerRef, + ngComponentOutletNgModule: ngModule, + ngComponentOutletNgModuleFactory: ngModuleFactory, + } = this; + viewContainerRef.clear(); + this._componentRef = undefined; + if (this.ngComponentOutlet) { + const injector = + this.ngComponentOutletInjector || + viewContainerRef.parentInjector; + if ( + changes["ngComponentOutletNgModule"] || + changes["ngComponentOutletNgModuleFactory"] + ) { + if (this._moduleRef) this._moduleRef.destroy(); + if (ngModule) { + this._moduleRef = (0, + _angular_core__WEBPACK_IMPORTED_MODULE_0__.createNgModule)( + ngModule, + getParentInjector(injector) + ); + } else if (ngModuleFactory) { + this._moduleRef = ngModuleFactory.create( + getParentInjector(injector) + ); + } else { + this._moduleRef = undefined; + } + } + this._componentRef = viewContainerRef.createComponent( + this.ngComponentOutlet, + { + index: viewContainerRef.length, + injector, + ngModuleRef: this._moduleRef, + projectableNodes: this.ngComponentOutletContent, + } + ); + } + } + /** @nodoc */ + ngOnDestroy() { + if (this._moduleRef) this._moduleRef.destroy(); + } + } + NgComponentOutlet.ɵfac = function NgComponentOutlet_Factory(t) { + return new (t || NgComponentOutlet)( + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewContainerRef + ) + ); + }; + NgComponentOutlet.ɵdir = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineDirective" + ]({ + type: NgComponentOutlet, + selectors: [["", "ngComponentOutlet", ""]], + inputs: { + ngComponentOutlet: "ngComponentOutlet", + ngComponentOutletInjector: "ngComponentOutletInjector", + ngComponentOutletContent: "ngComponentOutletContent", + ngComponentOutletNgModule: "ngComponentOutletNgModule", + ngComponentOutletNgModuleFactory: + "ngComponentOutletNgModuleFactory", + }, + standalone: true, + features: [ + _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵNgOnChangesFeature" + ], + ], + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + NgComponentOutlet, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive, + args: [ + { + selector: "[ngComponentOutlet]", + standalone: true, + }, + ], + }, + ], + function () { + return [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewContainerRef, + }, + ]; + }, + { + ngComponentOutlet: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input, + }, + ], + ngComponentOutletInjector: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input, + }, + ], + ngComponentOutletContent: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input, + }, + ], + ngComponentOutletNgModule: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input, + }, + ], + ngComponentOutletNgModuleFactory: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input, + }, + ], + } + ); + })(); + // Helper function that returns an Injector instance of a parent NgModule. + function getParentInjector(injector) { + const parentNgModule = injector.get( + _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgModuleRef + ); + return parentNgModule.injector; + } + const NG_DEV_MODE = typeof ngDevMode === "undefined" || !!ngDevMode; + /** + * @publicApi + */ + class NgForOfContext { + constructor($implicit, ngForOf, index, count) { + this.$implicit = $implicit; + this.ngForOf = ngForOf; + this.index = index; + this.count = count; + } + get first() { + return this.index === 0; + } + get last() { + return this.index === this.count - 1; + } + get even() { + return this.index % 2 === 0; + } + get odd() { + return !this.even; + } + } + /** + * A [structural directive](guide/structural-directives) that renders + * a template for each item in a collection. + * The directive is placed on an element, which becomes the parent + * of the cloned templates. + * + * The `ngForOf` directive is generally used in the + * [shorthand form](guide/structural-directives#asterisk) `*ngFor`. + * In this form, the template to be rendered for each iteration is the content + * of an anchor element containing the directive. + * + * The following example shows the shorthand syntax with some options, + * contained in an `
  • ` element. + * + * ``` + *
  • ...
  • + * ``` + * + * The shorthand form expands into a long form that uses the `ngForOf` selector + * on an `` element. + * The content of the `` element is the `
  • ` element that held the + * short-form directive. + * + * Here is the expanded version of the short-form example. + * + * ``` + * + *
  • ...
  • + *
    + * ``` + * + * Angular automatically expands the shorthand syntax as it compiles the template. + * The context for each embedded view is logically merged to the current component + * context according to its lexical position. + * + * When using the shorthand syntax, Angular allows only [one structural directive + * on an element](guide/structural-directives#one-per-element). + * If you want to iterate conditionally, for example, + * put the `*ngIf` on a container element that wraps the `*ngFor` element. + * For further discussion, see + * [Structural Directives](guide/structural-directives#one-per-element). + * + * @usageNotes + * + * ### Local variables + * + * `NgForOf` provides exported values that can be aliased to local variables. + * For example: + * + * ``` + *
  • + * {{i}}/{{users.length}}. {{user}} default + *
  • + * ``` + * + * The following exported values can be aliased to local variables: + * + * - `$implicit: T`: The value of the individual items in the iterable (`ngForOf`). + * - `ngForOf: NgIterable`: The value of the iterable expression. Useful when the expression is + * more complex then a property access, for example when using the async pipe (`userStreams | + * async`). + * - `index: number`: The index of the current item in the iterable. + * - `count: number`: The length of the iterable. + * - `first: boolean`: True when the item is the first item in the iterable. + * - `last: boolean`: True when the item is the last item in the iterable. + * - `even: boolean`: True when the item has an even index in the iterable. + * - `odd: boolean`: True when the item has an odd index in the iterable. + * + * ### Change propagation + * + * When the contents of the iterator changes, `NgForOf` makes the corresponding changes to the DOM: + * + * * When an item is added, a new instance of the template is added to the DOM. + * * When an item is removed, its template instance is removed from the DOM. + * * When items are reordered, their respective templates are reordered in the DOM. + * + * Angular uses object identity to track insertions and deletions within the iterator and reproduce + * those changes in the DOM. This has important implications for animations and any stateful + * controls that are present, such as `` elements that accept user input. Inserted rows can + * be animated in, deleted rows can be animated out, and unchanged rows retain any unsaved state + * such as user input. + * For more on animations, see [Transitions and Triggers](guide/transition-and-triggers). + * + * The identities of elements in the iterator can change while the data does not. + * This can happen, for example, if the iterator is produced from an RPC to the server, and that + * RPC is re-run. Even if the data hasn't changed, the second response produces objects with + * different identities, and Angular must tear down the entire DOM and rebuild it (as if all old + * elements were deleted and all new elements inserted). + * + * To avoid this expensive operation, you can customize the default tracking algorithm. + * by supplying the `trackBy` option to `NgForOf`. + * `trackBy` takes a function that has two arguments: `index` and `item`. + * If `trackBy` is given, Angular tracks changes by the return value of the function. + * + * @see [Structural Directives](guide/structural-directives) + * @ngModule CommonModule + * @publicApi + */ + class NgForOf { + /** + * The value of the iterable expression, which can be used as a + * [template input variable](guide/structural-directives#shorthand). + */ + set ngForOf(ngForOf) { + this._ngForOf = ngForOf; + this._ngForOfDirty = true; + } + /** + * Specifies a custom `TrackByFunction` to compute the identity of items in an iterable. + * + * If a custom `TrackByFunction` is not provided, `NgForOf` will use the item's [object + * identity](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is) + * as the key. + * + * `NgForOf` uses the computed key to associate items in an iterable with DOM elements + * it produces for these items. + * + * A custom `TrackByFunction` is useful to provide good user experience in cases when items in an + * iterable rendered using `NgForOf` have a natural identifier (for example, custom ID or a + * primary key), and this iterable could be updated with new object instances that still + * represent the same underlying entity (for example, when data is re-fetched from the server, + * and the iterable is recreated and re-rendered, but most of the data is still the same). + * + * @see `TrackByFunction` + */ + set ngForTrackBy(fn) { + if (NG_DEV_MODE && fn != null && typeof fn !== "function") { + console.warn( + `trackBy must be a function, but received ${JSON.stringify( + fn + )}. ` + + `See https://angular.io/api/common/NgForOf#change-propagation for more information.` + ); + } + this._trackByFn = fn; + } + get ngForTrackBy() { + return this._trackByFn; + } + constructor(_viewContainer, _template, _differs) { + this._viewContainer = _viewContainer; + this._template = _template; + this._differs = _differs; + this._ngForOf = null; + this._ngForOfDirty = true; + this._differ = null; + } + /** + * A reference to the template that is stamped out for each item in the iterable. + * @see [template reference variable](guide/template-reference-variables) + */ + set ngForTemplate(value) { + // TODO(TS2.1): make TemplateRef>> once we move to TS v2.1 + // The current type is too restrictive; a template that just uses index, for example, + // should be acceptable. + if (value) { + this._template = value; + } + } + /** + * Applies the changes when needed. + * @nodoc + */ + ngDoCheck() { + if (this._ngForOfDirty) { + this._ngForOfDirty = false; + // React on ngForOf changes only once all inputs have been initialized + const value = this._ngForOf; + if (!this._differ && value) { + if (NG_DEV_MODE) { + try { + // CAUTION: this logic is duplicated for production mode below, as the try-catch + // is only present in development builds. + this._differ = this._differs + .find(value) + .create(this.ngForTrackBy); + } catch { + let errorMessage = + `Cannot find a differ supporting object '${value}' of type '` + + `${getTypeName( + value + )}'. NgFor only supports binding to Iterables, such as Arrays.`; + if (typeof value === "object") { + errorMessage += " Did you mean to use the keyvalue pipe?"; + } + throw new _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵRuntimeError" + ]( + -2200 /* RuntimeErrorCode.NG_FOR_MISSING_DIFFER */, + errorMessage + ); + } + } else { + // CAUTION: this logic is duplicated for development mode above, as the try-catch + // is only present in development builds. + this._differ = this._differs + .find(value) + .create(this.ngForTrackBy); + } + } + } + if (this._differ) { + const changes = this._differ.diff(this._ngForOf); + if (changes) this._applyChanges(changes); + } + } + _applyChanges(changes) { + const viewContainer = this._viewContainer; + changes.forEachOperation( + (item, adjustedPreviousIndex, currentIndex) => { + if (item.previousIndex == null) { + // NgForOf is never "null" or "undefined" here because the differ detected + // that a new item needs to be inserted from the iterable. This implies that + // there is an iterable value for "_ngForOf". + viewContainer.createEmbeddedView( + this._template, + new NgForOfContext(item.item, this._ngForOf, -1, -1), + currentIndex === null ? undefined : currentIndex + ); + } else if (currentIndex == null) { + viewContainer.remove( + adjustedPreviousIndex === null + ? undefined + : adjustedPreviousIndex + ); + } else if (adjustedPreviousIndex !== null) { + const view = viewContainer.get(adjustedPreviousIndex); + viewContainer.move(view, currentIndex); + applyViewChange(view, item); + } + } + ); + for (let i = 0, ilen = viewContainer.length; i < ilen; i++) { + const viewRef = viewContainer.get(i); + const context = viewRef.context; + context.index = i; + context.count = ilen; + context.ngForOf = this._ngForOf; + } + changes.forEachIdentityChange((record) => { + const viewRef = viewContainer.get(record.currentIndex); + applyViewChange(viewRef, record); + }); + } + /** + * Asserts the correct type of the context for the template that `NgForOf` will render. + * + * The presence of this method is a signal to the Ivy template type-check compiler that the + * `NgForOf` structural directive renders its template with a specific context type. + */ + static ngTemplateContextGuard(dir, ctx) { + return true; + } + } + NgForOf.ɵfac = function NgForOf_Factory(t) { + return new (t || NgForOf)( + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewContainerRef + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_0__.IterableDiffers + ) + ); + }; + NgForOf.ɵdir = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineDirective" + ]({ + type: NgForOf, + selectors: [["", "ngFor", "", "ngForOf", ""]], + inputs: { + ngForOf: "ngForOf", + ngForTrackBy: "ngForTrackBy", + ngForTemplate: "ngForTemplate", + }, + standalone: true, + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + NgForOf, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive, + args: [ + { + selector: "[ngFor][ngForOf]", + standalone: true, + }, + ], + }, + ], + function () { + return [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewContainerRef, + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef, + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.IterableDiffers, + }, + ]; + }, + { + ngForOf: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input, + }, + ], + ngForTrackBy: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input, + }, + ], + ngForTemplate: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input, + }, + ], + } + ); + })(); + function applyViewChange(view, record) { + view.context.$implicit = record.item; + } + function getTypeName(type) { + return type["name"] || typeof type; + } + + /** + * A structural directive that conditionally includes a template based on the value of + * an expression coerced to Boolean. + * When the expression evaluates to true, Angular renders the template + * provided in a `then` clause, and when false or null, + * Angular renders the template provided in an optional `else` clause. The default + * template for the `else` clause is blank. + * + * A [shorthand form](guide/structural-directives#asterisk) of the directive, + * `*ngIf="condition"`, is generally used, provided + * as an attribute of the anchor element for the inserted template. + * Angular expands this into a more explicit version, in which the anchor element + * is contained in an `` element. + * + * Simple form with shorthand syntax: + * + * ``` + *
    Content to render when condition is true.
    + * ``` + * + * Simple form with expanded syntax: + * + * ``` + *
    Content to render when condition is + * true.
    + * ``` + * + * Form with an "else" block: + * + * ``` + *
    Content to render when condition is true.
    + * Content to render when condition is false. + * ``` + * + * Shorthand form with "then" and "else" blocks: + * + * ``` + *
    + * Content to render when condition is true. + * Content to render when condition is false. + * ``` + * + * Form with storing the value locally: + * + * ``` + *
    {{value}}
    + * Content to render when value is null. + * ``` + * + * @usageNotes + * + * The `*ngIf` directive is most commonly used to conditionally show an inline template, + * as seen in the following example. + * The default `else` template is blank. + * + * {@example common/ngIf/ts/module.ts region='NgIfSimple'} + * + * ### Showing an alternative template using `else` + * + * To display a template when `expression` evaluates to false, use an `else` template + * binding as shown in the following example. + * The `else` binding points to an `` element labeled `#elseBlock`. + * The template can be defined anywhere in the component view, but is typically placed right after + * `ngIf` for readability. + * + * {@example common/ngIf/ts/module.ts region='NgIfElse'} + * + * ### Using an external `then` template + * + * In the previous example, the then-clause template is specified inline, as the content of the + * tag that contains the `ngIf` directive. You can also specify a template that is defined + * externally, by referencing a labeled `` element. When you do this, you can + * change which template to use at runtime, as shown in the following example. + * + * {@example common/ngIf/ts/module.ts region='NgIfThenElse'} + * + * ### Storing a conditional result in a variable + * + * You might want to show a set of properties from the same object. If you are waiting + * for asynchronous data, the object can be undefined. + * In this case, you can use `ngIf` and store the result of the condition in a local + * variable as shown in the following example. + * + * {@example common/ngIf/ts/module.ts region='NgIfAs'} + * + * This code uses only one `AsyncPipe`, so only one subscription is created. + * The conditional statement stores the result of `userStream|async` in the local variable `user`. + * You can then bind the local `user` repeatedly. + * + * The conditional displays the data only if `userStream` returns a value, + * so you don't need to use the + * safe-navigation-operator (`?.`) + * to guard against null values when accessing properties. + * You can display an alternative template while waiting for the data. + * + * ### Shorthand syntax + * + * The shorthand syntax `*ngIf` expands into two separate template specifications + * for the "then" and "else" clauses. For example, consider the following shorthand statement, + * that is meant to show a loading page while waiting for data to be loaded. + * + * ``` + *
    + * ... + *
    + * + * + *
    Loading...
    + *
    + * ``` + * + * You can see that the "else" clause references the `` + * with the `#loading` label, and the template for the "then" clause + * is provided as the content of the anchor element. + * + * However, when Angular expands the shorthand syntax, it creates + * another `` tag, with `ngIf` and `ngIfElse` directives. + * The anchor element containing the template for the "then" clause becomes + * the content of this unlabeled `` tag. + * + * ``` + * + *
    + * ... + *
    + *
    + * + * + *
    Loading...
    + *
    + * ``` + * + * The presence of the implicit template object has implications for the nesting of + * structural directives. For more on this subject, see + * [Structural Directives](guide/structural-directives#one-per-element). + * + * @ngModule CommonModule + * @publicApi + */ + class NgIf { + constructor(_viewContainer, templateRef) { + this._viewContainer = _viewContainer; + this._context = new NgIfContext(); + this._thenTemplateRef = null; + this._elseTemplateRef = null; + this._thenViewRef = null; + this._elseViewRef = null; + this._thenTemplateRef = templateRef; + } + /** + * The Boolean expression to evaluate as the condition for showing a template. + */ + set ngIf(condition) { + this._context.$implicit = this._context.ngIf = condition; + this._updateView(); + } + /** + * A template to show if the condition expression evaluates to true. + */ + set ngIfThen(templateRef) { + assertTemplate("ngIfThen", templateRef); + this._thenTemplateRef = templateRef; + this._thenViewRef = null; // clear previous view if any. + this._updateView(); + } + /** + * A template to show if the condition expression evaluates to false. + */ + set ngIfElse(templateRef) { + assertTemplate("ngIfElse", templateRef); + this._elseTemplateRef = templateRef; + this._elseViewRef = null; // clear previous view if any. + this._updateView(); + } + _updateView() { + if (this._context.$implicit) { + if (!this._thenViewRef) { + this._viewContainer.clear(); + this._elseViewRef = null; + if (this._thenTemplateRef) { + this._thenViewRef = this._viewContainer.createEmbeddedView( + this._thenTemplateRef, + this._context + ); + } + } + } else { + if (!this._elseViewRef) { + this._viewContainer.clear(); + this._thenViewRef = null; + if (this._elseTemplateRef) { + this._elseViewRef = this._viewContainer.createEmbeddedView( + this._elseTemplateRef, + this._context + ); + } + } + } + } + /** + * Asserts the correct type of the context for the template that `NgIf` will render. + * + * The presence of this method is a signal to the Ivy template type-check compiler that the + * `NgIf` structural directive renders its template with a specific context type. + */ + static ngTemplateContextGuard(dir, ctx) { + return true; + } + } + NgIf.ɵfac = function NgIf_Factory(t) { + return new (t || NgIf)( + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewContainerRef + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef + ) + ); + }; + NgIf.ɵdir = /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineDirective" + ]({ + type: NgIf, + selectors: [["", "ngIf", ""]], + inputs: { + ngIf: "ngIf", + ngIfThen: "ngIfThen", + ngIfElse: "ngIfElse", + }, + standalone: true, + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + NgIf, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive, + args: [ + { + selector: "[ngIf]", + standalone: true, + }, + ], + }, + ], + function () { + return [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewContainerRef, + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef, + }, + ]; + }, + { + ngIf: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input, + }, + ], + ngIfThen: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input, + }, + ], + ngIfElse: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input, + }, + ], + } + ); + })(); + /** + * @publicApi + */ + class NgIfContext { + constructor() { + this.$implicit = null; + this.ngIf = null; + } + } + function assertTemplate(property, templateRef) { + const isTemplateRefOrNull = !!( + !templateRef || templateRef.createEmbeddedView + ); + if (!isTemplateRefOrNull) { + throw new Error( + `${property} must be a TemplateRef, but received '${(0, + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵstringify"])( + templateRef + )}'.` + ); + } + } + class SwitchView { + constructor(_viewContainerRef, _templateRef) { + this._viewContainerRef = _viewContainerRef; + this._templateRef = _templateRef; + this._created = false; + } + create() { + this._created = true; + this._viewContainerRef.createEmbeddedView(this._templateRef); + } + destroy() { + this._created = false; + this._viewContainerRef.clear(); + } + enforceState(created) { + if (created && !this._created) { + this.create(); + } else if (!created && this._created) { + this.destroy(); + } + } + } + /** + * @ngModule CommonModule + * + * @description + * The `[ngSwitch]` directive on a container specifies an expression to match against. + * The expressions to match are provided by `ngSwitchCase` directives on views within the container. + * - Every view that matches is rendered. + * - If there are no matches, a view with the `ngSwitchDefault` directive is rendered. + * - Elements within the `[NgSwitch]` statement but outside of any `NgSwitchCase` + * or `ngSwitchDefault` directive are preserved at the location. + * + * @usageNotes + * Define a container element for the directive, and specify the switch expression + * to match against as an attribute: + * + * ``` + * + * ``` + * + * Within the container, `*ngSwitchCase` statements specify the match expressions + * as attributes. Include `*ngSwitchDefault` as the final case. + * + * ``` + * + * ... + * ... + * ... + * + * ``` + * + * ### Usage Examples + * + * The following example shows how to use more than one case to display the same view: + * + * ``` + * + * + * ... + * ... + * ... + * + * ... + * + * ``` + * + * The following example shows how cases can be nested: + * ``` + * + * ... + * ... + * ... + * + * + * + * + * + * ... + * + * ``` + * + * @publicApi + * @see `NgSwitchCase` + * @see `NgSwitchDefault` + * @see [Structural Directives](guide/structural-directives) + * + */ + class NgSwitch { + constructor() { + this._defaultViews = []; + this._defaultUsed = false; + this._caseCount = 0; + this._lastCaseCheckIndex = 0; + this._lastCasesMatched = false; + } + set ngSwitch(newValue) { + this._ngSwitch = newValue; + if (this._caseCount === 0) { + this._updateDefaultCases(true); + } + } + /** @internal */ + _addCase() { + return this._caseCount++; + } + /** @internal */ + _addDefault(view) { + this._defaultViews.push(view); + } + /** @internal */ + _matchCase(value) { + const matched = value == this._ngSwitch; + this._lastCasesMatched = this._lastCasesMatched || matched; + this._lastCaseCheckIndex++; + if (this._lastCaseCheckIndex === this._caseCount) { + this._updateDefaultCases(!this._lastCasesMatched); + this._lastCaseCheckIndex = 0; + this._lastCasesMatched = false; + } + return matched; + } + _updateDefaultCases(useDefault) { + if ( + this._defaultViews.length > 0 && + useDefault !== this._defaultUsed + ) { + this._defaultUsed = useDefault; + for (const defaultView of this._defaultViews) { + defaultView.enforceState(useDefault); + } + } + } + } + NgSwitch.ɵfac = function NgSwitch_Factory(t) { + return new (t || NgSwitch)(); + }; + NgSwitch.ɵdir = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineDirective" + ]({ + type: NgSwitch, + selectors: [["", "ngSwitch", ""]], + inputs: { + ngSwitch: "ngSwitch", + }, + standalone: true, + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + NgSwitch, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive, + args: [ + { + selector: "[ngSwitch]", + standalone: true, + }, + ], + }, + ], + null, + { + ngSwitch: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input, + }, + ], + } + ); + })(); + /** + * @ngModule CommonModule + * + * @description + * Provides a switch case expression to match against an enclosing `ngSwitch` expression. + * When the expressions match, the given `NgSwitchCase` template is rendered. + * If multiple match expressions match the switch expression value, all of them are displayed. + * + * @usageNotes + * + * Within a switch container, `*ngSwitchCase` statements specify the match expressions + * as attributes. Include `*ngSwitchDefault` as the final case. + * + * ``` + * + * ... + * ... + * ... + * + * ``` + * + * Each switch-case statement contains an in-line HTML template or template reference + * that defines the subtree to be selected if the value of the match expression + * matches the value of the switch expression. + * + * Unlike JavaScript, which uses strict equality, Angular uses loose equality. + * This means that the empty string, `""` matches 0. + * + * @publicApi + * @see `NgSwitch` + * @see `NgSwitchDefault` + * + */ + class NgSwitchCase { + constructor(viewContainer, templateRef, ngSwitch) { + this.ngSwitch = ngSwitch; + if ((typeof ngDevMode === "undefined" || ngDevMode) && !ngSwitch) { + throwNgSwitchProviderNotFoundError( + "ngSwitchCase", + "NgSwitchCase" + ); + } + ngSwitch._addCase(); + this._view = new SwitchView(viewContainer, templateRef); + } + /** + * Performs case matching. For internal use only. + * @nodoc + */ + ngDoCheck() { + this._view.enforceState( + this.ngSwitch._matchCase(this.ngSwitchCase) + ); + } + } + NgSwitchCase.ɵfac = function NgSwitchCase_Factory(t) { + return new (t || NgSwitchCase)( + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewContainerRef + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + NgSwitch, + 9 + ) + ); + }; + NgSwitchCase.ɵdir = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineDirective" + ]({ + type: NgSwitchCase, + selectors: [["", "ngSwitchCase", ""]], + inputs: { + ngSwitchCase: "ngSwitchCase", + }, + standalone: true, + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + NgSwitchCase, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive, + args: [ + { + selector: "[ngSwitchCase]", + standalone: true, + }, + ], + }, + ], + function () { + return [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewContainerRef, + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef, + }, + { + type: NgSwitch, + decorators: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional, + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Host, + }, + ], + }, + ]; + }, + { + ngSwitchCase: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input, + }, + ], + } + ); + })(); + /** + * @ngModule CommonModule + * + * @description + * + * Creates a view that is rendered when no `NgSwitchCase` expressions + * match the `NgSwitch` expression. + * This statement should be the final case in an `NgSwitch`. + * + * @publicApi + * @see `NgSwitch` + * @see `NgSwitchCase` + * + */ + class NgSwitchDefault { + constructor(viewContainer, templateRef, ngSwitch) { + if ((typeof ngDevMode === "undefined" || ngDevMode) && !ngSwitch) { + throwNgSwitchProviderNotFoundError( + "ngSwitchDefault", + "NgSwitchDefault" + ); + } + ngSwitch._addDefault(new SwitchView(viewContainer, templateRef)); + } + } + NgSwitchDefault.ɵfac = function NgSwitchDefault_Factory(t) { + return new (t || NgSwitchDefault)( + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewContainerRef + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + NgSwitch, + 9 + ) + ); + }; + NgSwitchDefault.ɵdir = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineDirective" + ]({ + type: NgSwitchDefault, + selectors: [["", "ngSwitchDefault", ""]], + standalone: true, + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + NgSwitchDefault, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive, + args: [ + { + selector: "[ngSwitchDefault]", + standalone: true, + }, + ], + }, + ], + function () { + return [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewContainerRef, + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef, + }, + { + type: NgSwitch, + decorators: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional, + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Host, + }, + ], + }, + ]; + }, + null + ); + })(); + function throwNgSwitchProviderNotFoundError(attrName, directiveName) { + throw new _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵRuntimeError"]( + 2000 /* RuntimeErrorCode.PARENT_NG_SWITCH_NOT_FOUND */, + `An element with the "${attrName}" attribute ` + + `(matching the "${directiveName}" directive) must be located inside an element with the "ngSwitch" attribute ` + + `(matching "NgSwitch" directive)` + ); + } + + /** + * @ngModule CommonModule + * + * @usageNotes + * ``` + * + * there is nothing + * there is one + * there are a few + * + * ``` + * + * @description + * + * Adds / removes DOM sub-trees based on a numeric value. Tailored for pluralization. + * + * Displays DOM sub-trees that match the switch expression value, or failing that, DOM sub-trees + * that match the switch expression's pluralization category. + * + * To use this directive you must provide a container element that sets the `[ngPlural]` attribute + * to a switch expression. Inner elements with a `[ngPluralCase]` will display based on their + * expression: + * - if `[ngPluralCase]` is set to a value starting with `=`, it will only display if the value + * matches the switch expression exactly, + * - otherwise, the view will be treated as a "category match", and will only display if exact + * value matches aren't found and the value maps to its category for the defined locale. + * + * See http://cldr.unicode.org/index/cldr-spec/plural-rules + * + * @publicApi + */ + class NgPlural { + constructor(_localization) { + this._localization = _localization; + this._caseViews = {}; + } + set ngPlural(value) { + this._updateView(value); + } + addCase(value, switchView) { + this._caseViews[value] = switchView; + } + _updateView(switchValue) { + this._clearViews(); + const cases = Object.keys(this._caseViews); + const key = getPluralCategory( + switchValue, + cases, + this._localization + ); + this._activateView(this._caseViews[key]); + } + _clearViews() { + if (this._activeView) this._activeView.destroy(); + } + _activateView(view) { + if (view) { + this._activeView = view; + this._activeView.create(); + } + } + } + NgPlural.ɵfac = function NgPlural_Factory(t) { + return new (t || NgPlural)( + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + NgLocalization + ) + ); + }; + NgPlural.ɵdir = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineDirective" + ]({ + type: NgPlural, + selectors: [["", "ngPlural", ""]], + inputs: { + ngPlural: "ngPlural", + }, + standalone: true, + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + NgPlural, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive, + args: [ + { + selector: "[ngPlural]", + standalone: true, + }, + ], + }, + ], + function () { + return [ + { + type: NgLocalization, + }, + ]; + }, + { + ngPlural: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input, + }, + ], + } + ); + })(); + /** + * @ngModule CommonModule + * + * @description + * + * Creates a view that will be added/removed from the parent {@link NgPlural} when the + * given expression matches the plural expression according to CLDR rules. + * + * @usageNotes + * ``` + * + * ... + * ... + * + *``` + * + * See {@link NgPlural} for more details and example. + * + * @publicApi + */ + class NgPluralCase { + constructor(value, template, viewContainer, ngPlural) { + this.value = value; + const isANumber = !isNaN(Number(value)); + ngPlural.addCase( + isANumber ? `=${value}` : value, + new SwitchView(viewContainer, template) + ); + } + } + NgPluralCase.ɵfac = function NgPluralCase_Factory(t) { + return new (t || NgPluralCase)( + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinjectAttribute"]( + "ngPluralCase" + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewContainerRef + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + NgPlural, + 1 + ) + ); + }; + NgPluralCase.ɵdir = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineDirective" + ]({ + type: NgPluralCase, + selectors: [["", "ngPluralCase", ""]], + standalone: true, + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + NgPluralCase, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive, + args: [ + { + selector: "[ngPluralCase]", + standalone: true, + }, + ], + }, + ], + function () { + return [ + { + type: undefined, + decorators: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Attribute, + args: ["ngPluralCase"], + }, + ], + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef, + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewContainerRef, + }, + { + type: NgPlural, + decorators: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Host, + }, + ], + }, + ]; + }, + null + ); + })(); + + /** + * @ngModule CommonModule + * + * @usageNotes + * + * Set the font of the containing element to the result of an expression. + * + * ``` + * ... + * ``` + * + * Set the width of the containing element to a pixel value returned by an expression. + * + * ``` + * ... + * ``` + * + * Set a collection of style values using an expression that returns key-value pairs. + * + * ``` + * ... + * ``` + * + * @description + * + * An attribute directive that updates styles for the containing HTML element. + * Sets one or more style properties, specified as colon-separated key-value pairs. + * The key is a style name, with an optional `.` suffix + * (such as 'top.px', 'font-style.em'). + * The value is an expression to be evaluated. + * The resulting non-null value, expressed in the given unit, + * is assigned to the given style property. + * If the result of evaluation is null, the corresponding style is removed. + * + * @publicApi + */ + class NgStyle { + constructor(_ngEl, _differs, _renderer) { + this._ngEl = _ngEl; + this._differs = _differs; + this._renderer = _renderer; + this._ngStyle = null; + this._differ = null; + } + set ngStyle(values) { + this._ngStyle = values; + if (!this._differ && values) { + this._differ = this._differs.find(values).create(); + } + } + ngDoCheck() { + if (this._differ) { + const changes = this._differ.diff(this._ngStyle); + if (changes) { + this._applyChanges(changes); + } + } + } + _setStyle(nameAndUnit, value) { + const [name, unit] = nameAndUnit.split("."); + const flags = + name.indexOf("-") === -1 + ? undefined + : _angular_core__WEBPACK_IMPORTED_MODULE_0__.RendererStyleFlags2 + .DashCase; + if (value != null) { + this._renderer.setStyle( + this._ngEl.nativeElement, + name, + unit ? `${value}${unit}` : value, + flags + ); + } else { + this._renderer.removeStyle(this._ngEl.nativeElement, name, flags); + } + } + _applyChanges(changes) { + changes.forEachRemovedItem((record) => + this._setStyle(record.key, null) + ); + changes.forEachAddedItem((record) => + this._setStyle(record.key, record.currentValue) + ); + changes.forEachChangedItem((record) => + this._setStyle(record.key, record.currentValue) + ); + } + } + NgStyle.ɵfac = function NgStyle_Factory(t) { + return new (t || NgStyle)( + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_0__.KeyValueDiffers + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_0__.Renderer2 + ) + ); + }; + NgStyle.ɵdir = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineDirective" + ]({ + type: NgStyle, + selectors: [["", "ngStyle", ""]], + inputs: { + ngStyle: "ngStyle", + }, + standalone: true, + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + NgStyle, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive, + args: [ + { + selector: "[ngStyle]", + standalone: true, + }, + ], + }, + ], + function () { + return [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef, + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.KeyValueDiffers, + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Renderer2, + }, + ]; + }, + { + ngStyle: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input, + args: ["ngStyle"], + }, + ], + } + ); + })(); + + /** + * @ngModule CommonModule + * + * @description + * + * Inserts an embedded view from a prepared `TemplateRef`. + * + * You can attach a context object to the `EmbeddedViewRef` by setting `[ngTemplateOutletContext]`. + * `[ngTemplateOutletContext]` should be an object, the object's keys will be available for binding + * by the local template `let` declarations. + * + * @usageNotes + * ``` + * + * ``` + * + * Using the key `$implicit` in the context object will set its value as default. + * + * ### Example + * + * {@example common/ngTemplateOutlet/ts/module.ts region='NgTemplateOutlet'} + * + * @publicApi + */ + class NgTemplateOutlet { + constructor(_viewContainerRef) { + this._viewContainerRef = _viewContainerRef; + this._viewRef = null; + /** + * A context object to attach to the {@link EmbeddedViewRef}. This should be an + * object, the object's keys will be available for binding by the local template `let` + * declarations. + * Using the key `$implicit` in the context object will set its value as default. + */ + this.ngTemplateOutletContext = null; + /** + * A string defining the template reference and optionally the context object for the template. + */ + this.ngTemplateOutlet = null; + /** Injector to be used within the embedded view. */ + this.ngTemplateOutletInjector = null; + } + /** @nodoc */ + ngOnChanges(changes) { + if ( + changes["ngTemplateOutlet"] || + changes["ngTemplateOutletInjector"] + ) { + const viewContainerRef = this._viewContainerRef; + if (this._viewRef) { + viewContainerRef.remove( + viewContainerRef.indexOf(this._viewRef) + ); + } + if (this.ngTemplateOutlet) { + const { + ngTemplateOutlet: template, + ngTemplateOutletContext: context, + ngTemplateOutletInjector: injector, + } = this; + this._viewRef = viewContainerRef.createEmbeddedView( + template, + context, + injector + ? { + injector, + } + : undefined + ); + } else { + this._viewRef = null; + } + } else if ( + this._viewRef && + changes["ngTemplateOutletContext"] && + this.ngTemplateOutletContext + ) { + this._viewRef.context = this.ngTemplateOutletContext; + } + } + } + NgTemplateOutlet.ɵfac = function NgTemplateOutlet_Factory(t) { + return new (t || NgTemplateOutlet)( + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewContainerRef + ) + ); + }; + NgTemplateOutlet.ɵdir = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineDirective" + ]({ + type: NgTemplateOutlet, + selectors: [["", "ngTemplateOutlet", ""]], + inputs: { + ngTemplateOutletContext: "ngTemplateOutletContext", + ngTemplateOutlet: "ngTemplateOutlet", + ngTemplateOutletInjector: "ngTemplateOutletInjector", + }, + standalone: true, + features: [ + _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵNgOnChangesFeature" + ], + ], + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + NgTemplateOutlet, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive, + args: [ + { + selector: "[ngTemplateOutlet]", + standalone: true, + }, + ], + }, + ], + function () { + return [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewContainerRef, + }, + ]; + }, + { + ngTemplateOutletContext: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input, + }, + ], + ngTemplateOutlet: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input, + }, + ], + ngTemplateOutletInjector: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input, + }, + ], + } + ); + })(); + + /** + * A collection of Angular directives that are likely to be used in each and every Angular + * application. + */ + const COMMON_DIRECTIVES = [ + NgClass, + NgComponentOutlet, + NgForOf, + NgIf, + NgTemplateOutlet, + NgStyle, + NgSwitch, + NgSwitchCase, + NgSwitchDefault, + NgPlural, + NgPluralCase, + ]; + function invalidPipeArgumentError(type, value) { + return new _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵRuntimeError" + ]( + 2100 /* RuntimeErrorCode.INVALID_PIPE_ARGUMENT */, + ngDevMode && + `InvalidPipeArgument: '${value}' for pipe '${(0, + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵstringify"])(type)}'` + ); + } + class SubscribableStrategy { + createSubscription(async, updateLatestValue) { + return async.subscribe({ + next: updateLatestValue, + error: (e) => { + throw e; + }, + }); + } + dispose(subscription) { + subscription.unsubscribe(); + } + } + class PromiseStrategy { + createSubscription(async, updateLatestValue) { + return async.then(updateLatestValue, (e) => { + throw e; + }); + } + dispose(subscription) {} + } + const _promiseStrategy = new PromiseStrategy(); + const _subscribableStrategy = new SubscribableStrategy(); + /** + * @ngModule CommonModule + * @description + * + * Unwraps a value from an asynchronous primitive. + * + * The `async` pipe subscribes to an `Observable` or `Promise` and returns the latest value it has + * emitted. When a new value is emitted, the `async` pipe marks the component to be checked for + * changes. When the component gets destroyed, the `async` pipe unsubscribes automatically to avoid + * potential memory leaks. When the reference of the expression changes, the `async` pipe + * automatically unsubscribes from the old `Observable` or `Promise` and subscribes to the new one. + * + * @usageNotes + * + * ### Examples + * + * This example binds a `Promise` to the view. Clicking the `Resolve` button resolves the + * promise. + * + * {@example common/pipes/ts/async_pipe.ts region='AsyncPipePromise'} + * + * It's also possible to use `async` with Observables. The example below binds the `time` Observable + * to the view. The Observable continuously updates the view with the current time. + * + * {@example common/pipes/ts/async_pipe.ts region='AsyncPipeObservable'} + * + * @publicApi + */ + class AsyncPipe { + constructor(ref) { + this._latestValue = null; + this._subscription = null; + this._obj = null; + this._strategy = null; + // Assign `ref` into `this._ref` manually instead of declaring `_ref` in the constructor + // parameter list, as the type of `this._ref` includes `null` unlike the type of `ref`. + this._ref = ref; + } + ngOnDestroy() { + if (this._subscription) { + this._dispose(); + } + // Clear the `ChangeDetectorRef` and its association with the view data, to mitigate + // potential memory leaks in Observables that could otherwise cause the view data to + // be retained. + // https://github.com/angular/angular/issues/17624 + this._ref = null; + } + transform(obj) { + if (!this._obj) { + if (obj) { + this._subscribe(obj); + } + return this._latestValue; + } + if (obj !== this._obj) { + this._dispose(); + return this.transform(obj); + } + return this._latestValue; + } + _subscribe(obj) { + this._obj = obj; + this._strategy = this._selectStrategy(obj); + this._subscription = this._strategy.createSubscription( + obj, + (value) => this._updateLatestValue(obj, value) + ); + } + _selectStrategy(obj) { + if ( + (0, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵisPromise"])(obj) + ) { + return _promiseStrategy; + } + if ( + (0, + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵisSubscribable"])( + obj + ) + ) { + return _subscribableStrategy; + } + throw invalidPipeArgumentError(AsyncPipe, obj); + } + _dispose() { + // Note: `dispose` is only called if a subscription has been initialized before, indicating + // that `this._strategy` is also available. + this._strategy.dispose(this._subscription); + this._latestValue = null; + this._subscription = null; + this._obj = null; + } + _updateLatestValue(async, value) { + if (async === this._obj) { + this._latestValue = value; + // Note: `this._ref` is only cleared in `ngOnDestroy` so is known to be available when a + // value is being updated. + this._ref.markForCheck(); + } + } + } + AsyncPipe.ɵfac = function AsyncPipe_Factory(t) { + return new (t || AsyncPipe)( + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_0__.ChangeDetectorRef, + 16 + ) + ); + }; + AsyncPipe.ɵpipe = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefinePipe" + ]({ + name: "async", + type: AsyncPipe, + pure: false, + standalone: true, + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + AsyncPipe, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Pipe, + args: [ + { + name: "async", + pure: false, + standalone: true, + }, + ], + }, + ], + function () { + return [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ChangeDetectorRef, + }, + ]; + }, + null + ); + })(); + + /** + * Transforms text to all lower case. + * + * @see `UpperCasePipe` + * @see `TitleCasePipe` + * @usageNotes + * + * The following example defines a view that allows the user to enter + * text, and then uses the pipe to convert the input text to all lower case. + * + * + * + * @ngModule CommonModule + * @publicApi + */ + class LowerCasePipe { + transform(value) { + if (value == null) return null; + if (typeof value !== "string") { + throw invalidPipeArgumentError(LowerCasePipe, value); + } + return value.toLowerCase(); + } + } + LowerCasePipe.ɵfac = function LowerCasePipe_Factory(t) { + return new (t || LowerCasePipe)(); + }; + LowerCasePipe.ɵpipe = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefinePipe" + ]({ + name: "lowercase", + type: LowerCasePipe, + pure: true, + standalone: true, + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + LowerCasePipe, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Pipe, + args: [ + { + name: "lowercase", + standalone: true, + }, + ], + }, + ], + null, + null + ); + })(); + // + // Regex below matches any Unicode word and number compatible with ES5. In ES2018 the same result + // can be achieved by using /[0-9\p{L}]\S*/gu and also known as Unicode Property Escapes + // (https://2ality.com/2017/07/regexp-unicode-property-escapes.html). Since there is no + // transpilation of this functionality down to ES5 without external tool, the only solution is + // to use already transpiled form. Example can be found here - + // https://mothereff.in/regexpu#input=var+regex+%3D+%2F%5B0-9%5Cp%7BL%7D%5D%5CS*%2Fgu%3B%0A%0A&unicodePropertyEscape=1 + // + const unicodeWordMatch = + /(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08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\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g; + /** + * Transforms text to title case. + * Capitalizes the first letter of each word and transforms the + * rest of the word to lower case. + * Words are delimited by any whitespace character, such as a space, tab, or line-feed character. + * + * @see `LowerCasePipe` + * @see `UpperCasePipe` + * + * @usageNotes + * The following example shows the result of transforming various strings into title case. + * + * + * + * @ngModule CommonModule + * @publicApi + */ + class TitleCasePipe { + transform(value) { + if (value == null) return null; + if (typeof value !== "string") { + throw invalidPipeArgumentError(TitleCasePipe, value); + } + return value.replace( + unicodeWordMatch, + (txt) => txt[0].toUpperCase() + txt.slice(1).toLowerCase() + ); + } + } + TitleCasePipe.ɵfac = function TitleCasePipe_Factory(t) { + return new (t || TitleCasePipe)(); + }; + TitleCasePipe.ɵpipe = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefinePipe" + ]({ + name: "titlecase", + type: TitleCasePipe, + pure: true, + standalone: true, + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + TitleCasePipe, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Pipe, + args: [ + { + name: "titlecase", + standalone: true, + }, + ], + }, + ], + null, + null + ); + })(); + /** + * Transforms text to all upper case. + * @see `LowerCasePipe` + * @see `TitleCasePipe` + * + * @ngModule CommonModule + * @publicApi + */ + class UpperCasePipe { + transform(value) { + if (value == null) return null; + if (typeof value !== "string") { + throw invalidPipeArgumentError(UpperCasePipe, value); + } + return value.toUpperCase(); + } + } + UpperCasePipe.ɵfac = function UpperCasePipe_Factory(t) { + return new (t || UpperCasePipe)(); + }; + UpperCasePipe.ɵpipe = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefinePipe" + ]({ + name: "uppercase", + type: UpperCasePipe, + pure: true, + standalone: true, + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + UpperCasePipe, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Pipe, + args: [ + { + name: "uppercase", + standalone: true, + }, + ], + }, + ], + null, + null + ); + })(); + + /** + * The default date format of Angular date pipe, which corresponds to the following format: + * `'MMM d,y'` (e.g. `Jun 15, 2015`) + */ + const DEFAULT_DATE_FORMAT = "mediumDate"; + + /** + * Optionally-provided default timezone to use for all instances of `DatePipe` (such as `'+0430'`). + * If the value isn't provided, the `DatePipe` will use the end-user's local system timezone. + * + * @deprecated use DATE_PIPE_DEFAULT_OPTIONS token to configure DatePipe + */ + const DATE_PIPE_DEFAULT_TIMEZONE = + new _angular_core__WEBPACK_IMPORTED_MODULE_0__.InjectionToken( + "DATE_PIPE_DEFAULT_TIMEZONE" + ); + /** + * DI token that allows to provide default configuration for the `DatePipe` instances in an + * application. The value is an object which can include the following fields: + * - `dateFormat`: configures the default date format. If not provided, the `DatePipe` + * will use the 'mediumDate' as a value. + * - `timezone`: configures the default timezone. If not provided, the `DatePipe` will + * use the end-user's local system timezone. + * + * @see `DatePipeConfig` + * + * @usageNotes + * + * Various date pipe default values can be overwritten by providing this token with + * the value that has this interface. + * + * For example: + * + * Override the default date format by providing a value using the token: + * ```typescript + * providers: [ + * {provide: DATE_PIPE_DEFAULT_OPTIONS, useValue: {dateFormat: 'shortDate'}} + * ] + * ``` + * + * Override the default timezone by providing a value using the token: + * ```typescript + * providers: [ + * {provide: DATE_PIPE_DEFAULT_OPTIONS, useValue: {timezone: '-1200'}} + * ] + * ``` + */ + const DATE_PIPE_DEFAULT_OPTIONS = + new _angular_core__WEBPACK_IMPORTED_MODULE_0__.InjectionToken( + "DATE_PIPE_DEFAULT_OPTIONS" + ); + // clang-format off + /** + * @ngModule CommonModule + * @description + * + * Formats a date value according to locale rules. + * + * `DatePipe` is executed only when it detects a pure change to the input value. + * A pure change is either a change to a primitive input value + * (such as `String`, `Number`, `Boolean`, or `Symbol`), + * or a changed object reference (such as `Date`, `Array`, `Function`, or `Object`). + * + * Note that mutating a `Date` object does not cause the pipe to be rendered again. + * To ensure that the pipe is executed, you must create a new `Date` object. + * + * Only the `en-US` locale data comes with Angular. To localize dates + * in another language, you must import the corresponding locale data. + * See the [I18n guide](guide/i18n-common-format-data-locale) for more information. + * + * The time zone of the formatted value can be specified either by passing it in as the second + * parameter of the pipe, or by setting the default through the `DATE_PIPE_DEFAULT_OPTIONS` + * injection token. The value that is passed in as the second parameter takes precedence over + * the one defined using the injection token. + * + * @see `formatDate()` + * + * + * @usageNotes + * + * The result of this pipe is not reevaluated when the input is mutated. To avoid the need to + * reformat the date on every change-detection cycle, treat the date as an immutable object + * and change the reference when the pipe needs to run again. + * + * ### Pre-defined format options + * + * | Option | Equivalent to | Examples (given in `en-US` locale) | + * |---------------|-------------------------------------|-------------------------------------------------| + * | `'short'` | `'M/d/yy, h:mm a'` | `6/15/15, 9:03 AM` | + * | `'medium'` | `'MMM d, y, h:mm:ss a'` | `Jun 15, 2015, 9:03:01 AM` | + * | `'long'` | `'MMMM d, y, h:mm:ss a z'` | `June 15, 2015 at 9:03:01 AM GMT+1` | + * | `'full'` | `'EEEE, MMMM d, y, h:mm:ss a zzzz'` | `Monday, June 15, 2015 at 9:03:01 AM GMT+01:00` | + * | `'shortDate'` | `'M/d/yy'` | `6/15/15` | + * | `'mediumDate'`| `'MMM d, y'` | `Jun 15, 2015` | + * | `'longDate'` | `'MMMM d, y'` | `June 15, 2015` | + * | `'fullDate'` | `'EEEE, MMMM d, y'` | `Monday, June 15, 2015` | + * | `'shortTime'` | `'h:mm a'` | `9:03 AM` | + * | `'mediumTime'`| `'h:mm:ss a'` | `9:03:01 AM` | + * | `'longTime'` | `'h:mm:ss a z'` | `9:03:01 AM GMT+1` | + * | `'fullTime'` | `'h:mm:ss a zzzz'` | `9:03:01 AM GMT+01:00` | + * + * ### Custom format options + * + * You can construct a format string using symbols to specify the components + * of a date-time value, as described in the following table. + * Format details depend on the locale. + * Fields marked with (*) are only available in the extra data set for the given locale. + * + * | Field type | Format | Description | Example Value | + * |-------------------- |-------------|---------------------------------------------------------------|------------------------------------------------------------| + * | Era | G, GG & GGG | Abbreviated | AD | + * | | GGGG | Wide | Anno Domini | + * | | GGGGG | Narrow | A | + * | Year | y | Numeric: minimum digits | 2, 20, 201, 2017, 20173 | + * | | yy | Numeric: 2 digits + zero padded | 02, 20, 01, 17, 73 | + * | | yyy | Numeric: 3 digits + zero padded | 002, 020, 201, 2017, 20173 | + * | | yyyy | Numeric: 4 digits or more + zero padded | 0002, 0020, 0201, 2017, 20173 | + * | Week-numbering year | Y | Numeric: minimum digits | 2, 20, 201, 2017, 20173 | + * | | YY | Numeric: 2 digits + zero padded | 02, 20, 01, 17, 73 | + * | | YYY | Numeric: 3 digits + zero padded | 002, 020, 201, 2017, 20173 | + * | | YYYY | Numeric: 4 digits or more + zero padded | 0002, 0020, 0201, 2017, 20173 | + * | Month | M | Numeric: 1 digit | 9, 12 | + * | | MM | Numeric: 2 digits + zero padded | 09, 12 | + * | | MMM | Abbreviated | Sep | + * | | MMMM | Wide | September | + * | | MMMMM | Narrow | S | + * | Month standalone | L | Numeric: 1 digit | 9, 12 | + * | | LL | Numeric: 2 digits + zero padded | 09, 12 | + * | | LLL | Abbreviated | Sep | + * | | LLLL | Wide | September | + * | | LLLLL | Narrow | S | + * | Week of year | w | Numeric: minimum digits | 1... 53 | + * | | ww | Numeric: 2 digits + zero padded | 01... 53 | + * | Week of month | W | Numeric: 1 digit | 1... 5 | + * | Day of month | d | Numeric: minimum digits | 1 | + * | | dd | Numeric: 2 digits + zero padded | 01 | + * | Week day | E, EE & EEE | Abbreviated | Tue | + * | | EEEE | Wide | Tuesday | + * | | EEEEE | Narrow | T | + * | | EEEEEE | Short | Tu | + * | Week day standalone | c, cc | Numeric: 1 digit | 2 | + * | | ccc | Abbreviated | Tue | + * | | cccc | Wide | Tuesday | + * | | ccccc | Narrow | T | + * | | cccccc | Short | Tu | + * | Period | a, aa & aaa | Abbreviated | am/pm or AM/PM | + * | | aaaa | Wide (fallback to `a` when missing) | ante meridiem/post meridiem | + * | | aaaaa | Narrow | a/p | + * | Period* | B, BB & BBB | Abbreviated | mid. | + * | | BBBB | Wide | am, pm, midnight, noon, morning, afternoon, evening, night | + * | | BBBBB | Narrow | md | + * | Period standalone* | b, bb & bbb | Abbreviated | mid. | + * | | bbbb | Wide | am, pm, midnight, noon, morning, afternoon, evening, night | + * | | bbbbb | Narrow | md | + * | Hour 1-12 | h | Numeric: minimum digits | 1, 12 | + * | | hh | Numeric: 2 digits + zero padded | 01, 12 | + * | Hour 0-23 | H | Numeric: minimum digits | 0, 23 | + * | | HH | Numeric: 2 digits + zero padded | 00, 23 | + * | Minute | m | Numeric: minimum digits | 8, 59 | + * | | mm | Numeric: 2 digits + zero padded | 08, 59 | + * | Second | s | Numeric: minimum digits | 0... 59 | + * | | ss | Numeric: 2 digits + zero padded | 00... 59 | + * | Fractional seconds | S | Numeric: 1 digit | 0... 9 | + * | | SS | Numeric: 2 digits + zero padded | 00... 99 | + * | | SSS | Numeric: 3 digits + zero padded (= milliseconds) | 000... 999 | + * | Zone | z, zz & zzz | Short specific non location format (fallback to O) | GMT-8 | + * | | zzzz | Long specific non location format (fallback to OOOO) | GMT-08:00 | + * | | Z, ZZ & ZZZ | ISO8601 basic format | -0800 | + * | | ZZZZ | Long localized GMT format | GMT-8:00 | + * | | ZZZZZ | ISO8601 extended format + Z indicator for offset 0 (= XXXXX) | -08:00 | + * | | O, OO & OOO | Short localized GMT format | GMT-8 | + * | | OOOO | Long localized GMT format | GMT-08:00 | + * + * + * ### Format examples + * + * These examples transform a date into various formats, + * assuming that `dateObj` is a JavaScript `Date` object for + * year: 2015, month: 6, day: 15, hour: 21, minute: 43, second: 11, + * given in the local time for the `en-US` locale. + * + * ``` + * {{ dateObj | date }} // output is 'Jun 15, 2015' + * {{ dateObj | date:'medium' }} // output is 'Jun 15, 2015, 9:43:11 PM' + * {{ dateObj | date:'shortTime' }} // output is '9:43 PM' + * {{ dateObj | date:'mm:ss' }} // output is '43:11' + * ``` + * + * ### Usage example + * + * The following component uses a date pipe to display the current date in different formats. + * + * ``` + * @Component({ + * selector: 'date-pipe', + * template: `
    + *

    Today is {{today | date}}

    + *

    Or if you prefer, {{today | date:'fullDate'}}

    + *

    The time is {{today | date:'h:mm a z'}}

    + *
    ` + * }) + * // Get the current date and time as a date-time value. + * export class DatePipeComponent { + * today: number = Date.now(); + * } + * ``` + * + * @publicApi + */ + // clang-format on + class DatePipe { + constructor(locale, defaultTimezone, defaultOptions) { + this.locale = locale; + this.defaultTimezone = defaultTimezone; + this.defaultOptions = defaultOptions; + } + transform(value, format, timezone, locale) { + if (value == null || value === "" || value !== value) return null; + try { + const _format = + format ?? + this.defaultOptions?.dateFormat ?? + DEFAULT_DATE_FORMAT; + const _timezone = + timezone ?? + this.defaultOptions?.timezone ?? + this.defaultTimezone ?? + undefined; + return formatDate( + value, + _format, + locale || this.locale, + _timezone + ); + } catch (error) { + throw invalidPipeArgumentError(DatePipe, error.message); + } + } + } + DatePipe.ɵfac = function DatePipe_Factory(t) { + return new (t || DatePipe)( + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_0__.LOCALE_ID, + 16 + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + DATE_PIPE_DEFAULT_TIMEZONE, + 24 + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + DATE_PIPE_DEFAULT_OPTIONS, + 24 + ) + ); + }; + DatePipe.ɵpipe = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefinePipe" + ]({ + name: "date", + type: DatePipe, + pure: true, + standalone: true, + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + DatePipe, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Pipe, + args: [ + { + name: "date", + pure: true, + standalone: true, + }, + ], + }, + ], + function () { + return [ + { + type: undefined, + decorators: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject, + args: [ + _angular_core__WEBPACK_IMPORTED_MODULE_0__.LOCALE_ID, + ], + }, + ], + }, + { + type: undefined, + decorators: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject, + args: [DATE_PIPE_DEFAULT_TIMEZONE], + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional, + }, + ], + }, + { + type: undefined, + decorators: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject, + args: [DATE_PIPE_DEFAULT_OPTIONS], + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional, + }, + ], + }, + ]; + }, + null + ); + })(); + const _INTERPOLATION_REGEXP = /#/g; + /** + * @ngModule CommonModule + * @description + * + * Maps a value to a string that pluralizes the value according to locale rules. + * + * @usageNotes + * + * ### Example + * + * {@example common/pipes/ts/i18n_pipe.ts region='I18nPluralPipeComponent'} + * + * @publicApi + */ + class I18nPluralPipe { + constructor(_localization) { + this._localization = _localization; + } + /** + * @param value the number to be formatted + * @param pluralMap an object that mimics the ICU format, see + * https://unicode-org.github.io/icu/userguide/format_parse/messages/. + * @param locale a `string` defining the locale to use (uses the current {@link LOCALE_ID} by + * default). + */ + transform(value, pluralMap, locale) { + if (value == null) return ""; + if (typeof pluralMap !== "object" || pluralMap === null) { + throw invalidPipeArgumentError(I18nPluralPipe, pluralMap); + } + const key = getPluralCategory( + value, + Object.keys(pluralMap), + this._localization, + locale + ); + return pluralMap[key].replace( + _INTERPOLATION_REGEXP, + value.toString() + ); + } + } + I18nPluralPipe.ɵfac = function I18nPluralPipe_Factory(t) { + return new (t || I18nPluralPipe)( + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + NgLocalization, + 16 + ) + ); + }; + I18nPluralPipe.ɵpipe = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefinePipe" + ]({ + name: "i18nPlural", + type: I18nPluralPipe, + pure: true, + standalone: true, + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + I18nPluralPipe, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Pipe, + args: [ + { + name: "i18nPlural", + pure: true, + standalone: true, + }, + ], + }, + ], + function () { + return [ + { + type: NgLocalization, + }, + ]; + }, + null + ); + })(); + + /** + * @ngModule CommonModule + * @description + * + * Generic selector that displays the string that matches the current value. + * + * If none of the keys of the `mapping` match the `value`, then the content + * of the `other` key is returned when present, otherwise an empty string is returned. + * + * @usageNotes + * + * ### Example + * + * {@example common/pipes/ts/i18n_pipe.ts region='I18nSelectPipeComponent'} + * + * @publicApi + */ + class I18nSelectPipe { + /** + * @param value a string to be internationalized. + * @param mapping an object that indicates the text that should be displayed + * for different values of the provided `value`. + */ + transform(value, mapping) { + if (value == null) return ""; + if (typeof mapping !== "object" || typeof value !== "string") { + throw invalidPipeArgumentError(I18nSelectPipe, mapping); + } + if (mapping.hasOwnProperty(value)) { + return mapping[value]; + } + if (mapping.hasOwnProperty("other")) { + return mapping["other"]; + } + return ""; + } + } + I18nSelectPipe.ɵfac = function I18nSelectPipe_Factory(t) { + return new (t || I18nSelectPipe)(); + }; + I18nSelectPipe.ɵpipe = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefinePipe" + ]({ + name: "i18nSelect", + type: I18nSelectPipe, + pure: true, + standalone: true, + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + I18nSelectPipe, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Pipe, + args: [ + { + name: "i18nSelect", + pure: true, + standalone: true, + }, + ], + }, + ], + null, + null + ); + })(); + + /** + * @ngModule CommonModule + * @description + * + * Converts a value into its JSON-format representation. Useful for debugging. + * + * @usageNotes + * + * The following component uses a JSON pipe to convert an object + * to JSON format, and displays the string in both formats for comparison. + * + * {@example common/pipes/ts/json_pipe.ts region='JsonPipe'} + * + * @publicApi + */ + class JsonPipe { + /** + * @param value A value of any type to convert into a JSON-format string. + */ + transform(value) { + return JSON.stringify(value, null, 2); + } + } + JsonPipe.ɵfac = function JsonPipe_Factory(t) { + return new (t || JsonPipe)(); + }; + JsonPipe.ɵpipe = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefinePipe" + ]({ + name: "json", + type: JsonPipe, + pure: false, + standalone: true, + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + JsonPipe, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Pipe, + args: [ + { + name: "json", + pure: false, + standalone: true, + }, + ], + }, + ], + null, + null + ); + })(); + function makeKeyValuePair(key, value) { + return { + key: key, + value: value, + }; + } + /** + * @ngModule CommonModule + * @description + * + * Transforms Object or Map into an array of key value pairs. + * + * The output array will be ordered by keys. + * By default the comparator will be by Unicode point value. + * You can optionally pass a compareFn if your keys are complex types. + * + * @usageNotes + * ### Examples + * + * This examples show how an Object or a Map can be iterated by ngFor with the use of this + * keyvalue pipe. + * + * {@example common/pipes/ts/keyvalue_pipe.ts region='KeyValuePipe'} + * + * @publicApi + */ + class KeyValuePipe { + constructor(differs) { + this.differs = differs; + this.keyValues = []; + this.compareFn = defaultComparator; + } + transform(input, compareFn = defaultComparator) { + if ( + !input || + (!(input instanceof Map) && typeof input !== "object") + ) { + return null; + } + if (!this.differ) { + // make a differ for whatever type we've been passed in + this.differ = this.differs.find(input).create(); + } + const differChanges = this.differ.diff(input); + const compareFnChanged = compareFn !== this.compareFn; + if (differChanges) { + this.keyValues = []; + differChanges.forEachItem((r) => { + this.keyValues.push(makeKeyValuePair(r.key, r.currentValue)); + }); + } + if (differChanges || compareFnChanged) { + this.keyValues.sort(compareFn); + this.compareFn = compareFn; + } + return this.keyValues; + } + } + KeyValuePipe.ɵfac = function KeyValuePipe_Factory(t) { + return new (t || KeyValuePipe)( + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_0__.KeyValueDiffers, + 16 + ) + ); + }; + KeyValuePipe.ɵpipe = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefinePipe" + ]({ + name: "keyvalue", + type: KeyValuePipe, + pure: false, + standalone: true, + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + KeyValuePipe, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Pipe, + args: [ + { + name: "keyvalue", + pure: false, + standalone: true, + }, + ], + }, + ], + function () { + return [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.KeyValueDiffers, + }, + ]; + }, + null + ); + })(); + function defaultComparator(keyValueA, keyValueB) { + const a = keyValueA.key; + const b = keyValueB.key; + // if same exit with 0; + if (a === b) return 0; + // make sure that undefined are at the end of the sort. + if (a === undefined) return 1; + if (b === undefined) return -1; + // make sure that nulls are at the end of the sort. + if (a === null) return 1; + if (b === null) return -1; + if (typeof a == "string" && typeof b == "string") { + return a < b ? -1 : 1; + } + if (typeof a == "number" && typeof b == "number") { + return a - b; + } + if (typeof a == "boolean" && typeof b == "boolean") { + return a < b ? -1 : 1; + } + // `a` and `b` are of different types. Compare their string values. + const aString = String(a); + const bString = String(b); + return aString == bString ? 0 : aString < bString ? -1 : 1; + } + + /** + * @ngModule CommonModule + * @description + * + * Formats a value according to digit options and locale rules. + * Locale determines group sizing and separator, + * decimal point character, and other locale-specific configurations. + * + * @see `formatNumber()` + * + * @usageNotes + * + * ### digitsInfo + * + * The value's decimal representation is specified by the `digitsInfo` + * parameter, written in the following format:
    + * + * ``` + * {minIntegerDigits}.{minFractionDigits}-{maxFractionDigits} + * ``` + * + * - `minIntegerDigits`: + * The minimum number of integer digits before the decimal point. + * Default is 1. + * + * - `minFractionDigits`: + * The minimum number of digits after the decimal point. + * Default is 0. + * + * - `maxFractionDigits`: + * The maximum number of digits after the decimal point. + * Default is 3. + * + * If the formatted value is truncated it will be rounded using the "to-nearest" method: + * + * ``` + * {{3.6 | number: '1.0-0'}} + * + * + * {{-3.6 | number:'1.0-0'}} + * + * ``` + * + * ### locale + * + * `locale` will format a value according to locale rules. + * Locale determines group sizing and separator, + * decimal point character, and other locale-specific configurations. + * + * When not supplied, uses the value of `LOCALE_ID`, which is `en-US` by default. + * + * See [Setting your app locale](guide/i18n-common-locale-id). + * + * ### Example + * + * The following code shows how the pipe transforms values + * according to various format specifications, + * where the caller's default locale is `en-US`. + * + * + * + * @publicApi + */ + class DecimalPipe { + constructor(_locale) { + this._locale = _locale; + } + /** + * @param value The value to be formatted. + * @param digitsInfo Sets digit and decimal representation. + * [See more](#digitsinfo). + * @param locale Specifies what locale format rules to use. + * [See more](#locale). + */ + transform(value, digitsInfo, locale) { + if (!isValue(value)) return null; + locale = locale || this._locale; + try { + const num = strToNumber(value); + return formatNumber(num, locale, digitsInfo); + } catch (error) { + throw invalidPipeArgumentError(DecimalPipe, error.message); + } + } + } + DecimalPipe.ɵfac = function DecimalPipe_Factory(t) { + return new (t || DecimalPipe)( + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_0__.LOCALE_ID, + 16 + ) + ); + }; + DecimalPipe.ɵpipe = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefinePipe" + ]({ + name: "number", + type: DecimalPipe, + pure: true, + standalone: true, + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + DecimalPipe, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Pipe, + args: [ + { + name: "number", + standalone: true, + }, + ], + }, + ], + function () { + return [ + { + type: undefined, + decorators: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject, + args: [ + _angular_core__WEBPACK_IMPORTED_MODULE_0__.LOCALE_ID, + ], + }, + ], + }, + ]; + }, + null + ); + })(); + /** + * @ngModule CommonModule + * @description + * + * Transforms a number to a percentage + * string, formatted according to locale rules that determine group sizing and + * separator, decimal-point character, and other locale-specific + * configurations. + * + * @see `formatPercent()` + * + * @usageNotes + * The following code shows how the pipe transforms numbers + * into text strings, according to various format specifications, + * where the caller's default locale is `en-US`. + * + * + * + * @publicApi + */ + class PercentPipe { + constructor(_locale) { + this._locale = _locale; + } + /** + * + * @param value The number to be formatted as a percentage. + * @param digitsInfo Decimal representation options, specified by a string + * in the following format:
    + * {minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}. + * - `minIntegerDigits`: The minimum number of integer digits before the decimal point. + * Default is `1`. + * - `minFractionDigits`: The minimum number of digits after the decimal point. + * Default is `0`. + * - `maxFractionDigits`: The maximum number of digits after the decimal point. + * Default is `0`. + * @param locale A locale code for the locale format rules to use. + * When not supplied, uses the value of `LOCALE_ID`, which is `en-US` by default. + * See [Setting your app locale](guide/i18n-common-locale-id). + */ + transform(value, digitsInfo, locale) { + if (!isValue(value)) return null; + locale = locale || this._locale; + try { + const num = strToNumber(value); + return formatPercent(num, locale, digitsInfo); + } catch (error) { + throw invalidPipeArgumentError(PercentPipe, error.message); + } + } + } + PercentPipe.ɵfac = function PercentPipe_Factory(t) { + return new (t || PercentPipe)( + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_0__.LOCALE_ID, + 16 + ) + ); + }; + PercentPipe.ɵpipe = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefinePipe" + ]({ + name: "percent", + type: PercentPipe, + pure: true, + standalone: true, + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + PercentPipe, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Pipe, + args: [ + { + name: "percent", + standalone: true, + }, + ], + }, + ], + function () { + return [ + { + type: undefined, + decorators: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject, + args: [ + _angular_core__WEBPACK_IMPORTED_MODULE_0__.LOCALE_ID, + ], + }, + ], + }, + ]; + }, + null + ); + })(); + /** + * @ngModule CommonModule + * @description + * + * Transforms a number to a currency string, formatted according to locale rules + * that determine group sizing and separator, decimal-point character, + * and other locale-specific configurations. + * + * + * @see `getCurrencySymbol()` + * @see `formatCurrency()` + * + * @usageNotes + * The following code shows how the pipe transforms numbers + * into text strings, according to various format specifications, + * where the caller's default locale is `en-US`. + * + * + * + * @publicApi + */ + class CurrencyPipe { + constructor(_locale, _defaultCurrencyCode = "USD") { + this._locale = _locale; + this._defaultCurrencyCode = _defaultCurrencyCode; + } + /** + * + * @param value The number to be formatted as currency. + * @param currencyCode The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code, + * such as `USD` for the US dollar and `EUR` for the euro. The default currency code can be + * configured using the `DEFAULT_CURRENCY_CODE` injection token. + * @param display The format for the currency indicator. One of the following: + * - `code`: Show the code (such as `USD`). + * - `symbol`(default): Show the symbol (such as `$`). + * - `symbol-narrow`: Use the narrow symbol for locales that have two symbols for their + * currency. + * For example, the Canadian dollar CAD has the symbol `CA$` and the symbol-narrow `$`. If the + * locale has no narrow symbol, uses the standard symbol for the locale. + * - String: Use the given string value instead of a code or a symbol. + * For example, an empty string will suppress the currency & symbol. + * - Boolean (marked deprecated in v5): `true` for symbol and false for `code`. + * + * @param digitsInfo Decimal representation options, specified by a string + * in the following format:
    + * {minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}. + * - `minIntegerDigits`: The minimum number of integer digits before the decimal point. + * Default is `1`. + * - `minFractionDigits`: The minimum number of digits after the decimal point. + * Default is `2`. + * - `maxFractionDigits`: The maximum number of digits after the decimal point. + * Default is `2`. + * If not provided, the number will be formatted with the proper amount of digits, + * depending on what the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) specifies. + * For example, the Canadian dollar has 2 digits, whereas the Chilean peso has none. + * @param locale A locale code for the locale format rules to use. + * When not supplied, uses the value of `LOCALE_ID`, which is `en-US` by default. + * See [Setting your app locale](guide/i18n-common-locale-id). + */ + transform( + value, + currencyCode = this._defaultCurrencyCode, + display = "symbol", + digitsInfo, + locale + ) { + if (!isValue(value)) return null; + locale = locale || this._locale; + if (typeof display === "boolean") { + if ( + (typeof ngDevMode === "undefined" || ngDevMode) && + console && + console.warn + ) { + console.warn( + `Warning: the currency pipe has been changed in Angular v5. The symbolDisplay option (third parameter) is now a string instead of a boolean. The accepted values are "code", "symbol" or "symbol-narrow".` + ); + } + display = display ? "symbol" : "code"; + } + let currency = currencyCode || this._defaultCurrencyCode; + if (display !== "code") { + if (display === "symbol" || display === "symbol-narrow") { + currency = getCurrencySymbol( + currency, + display === "symbol" ? "wide" : "narrow", + locale + ); + } else { + currency = display; + } + } + try { + const num = strToNumber(value); + return formatCurrency( + num, + locale, + currency, + currencyCode, + digitsInfo + ); + } catch (error) { + throw invalidPipeArgumentError(CurrencyPipe, error.message); + } + } + } + CurrencyPipe.ɵfac = function CurrencyPipe_Factory(t) { + return new (t || CurrencyPipe)( + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_0__.LOCALE_ID, + 16 + ), + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_0__.DEFAULT_CURRENCY_CODE, + 16 + ) + ); + }; + CurrencyPipe.ɵpipe = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefinePipe" + ]({ + name: "currency", + type: CurrencyPipe, + pure: true, + standalone: true, + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + CurrencyPipe, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Pipe, + args: [ + { + name: "currency", + standalone: true, + }, + ], + }, + ], + function () { + return [ + { + type: undefined, + decorators: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject, + args: [ + _angular_core__WEBPACK_IMPORTED_MODULE_0__.LOCALE_ID, + ], + }, + ], + }, + { + type: undefined, + decorators: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject, + args: [ + _angular_core__WEBPACK_IMPORTED_MODULE_0__.DEFAULT_CURRENCY_CODE, + ], + }, + ], + }, + ]; + }, + null + ); + })(); + function isValue(value) { + return !(value == null || value === "" || value !== value); + } + /** + * Transforms a string into a number (if needed). + */ + function strToNumber(value) { + // Convert strings to numbers + if ( + typeof value === "string" && + !isNaN(Number(value) - parseFloat(value)) + ) { + return Number(value); + } + if (typeof value !== "number") { + throw new Error(`${value} is not a number`); + } + return value; + } + + /** + * @ngModule CommonModule + * @description + * + * Creates a new `Array` or `String` containing a subset (slice) of the elements. + * + * @usageNotes + * + * All behavior is based on the expected behavior of the JavaScript API `Array.prototype.slice()` + * and `String.prototype.slice()`. + * + * When operating on an `Array`, the returned `Array` is always a copy even when all + * the elements are being returned. + * + * When operating on a blank value, the pipe returns the blank value. + * + * ### List Example + * + * This `ngFor` example: + * + * {@example common/pipes/ts/slice_pipe.ts region='SlicePipe_list'} + * + * produces the following: + * + * ```html + *
  • b
  • + *
  • c
  • + * ``` + * + * ### String Examples + * + * {@example common/pipes/ts/slice_pipe.ts region='SlicePipe_string'} + * + * @publicApi + */ + class SlicePipe { + transform(value, start, end) { + if (value == null) return null; + if (!this.supports(value)) { + throw invalidPipeArgumentError(SlicePipe, value); + } + return value.slice(start, end); + } + supports(obj) { + return typeof obj === "string" || Array.isArray(obj); + } + } + SlicePipe.ɵfac = function SlicePipe_Factory(t) { + return new (t || SlicePipe)(); + }; + SlicePipe.ɵpipe = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefinePipe" + ]({ + name: "slice", + type: SlicePipe, + pure: false, + standalone: true, + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + SlicePipe, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Pipe, + args: [ + { + name: "slice", + pure: false, + standalone: true, + }, + ], + }, + ], + null, + null + ); + })(); + + /** + * @module + * @description + * This module provides a set of common Pipes. + */ + /** + * A collection of Angular pipes that are likely to be used in each and every application. + */ + const COMMON_PIPES = [ + AsyncPipe, + UpperCasePipe, + LowerCasePipe, + JsonPipe, + SlicePipe, + DecimalPipe, + PercentPipe, + TitleCasePipe, + CurrencyPipe, + DatePipe, + I18nPluralPipe, + I18nSelectPipe, + KeyValuePipe, + ]; + + // Note: This does not contain the location providers, + // as they need some platform specific implementations to work. + /** + * Exports all the basic Angular directives and pipes, + * such as `NgIf`, `NgForOf`, `DecimalPipe`, and so on. + * Re-exported by `BrowserModule`, which is included automatically in the root + * `AppModule` when you create a new app with the CLI `new` command. + * + * @publicApi + */ + class CommonModule {} + CommonModule.ɵfac = function CommonModule_Factory(t) { + return new (t || CommonModule)(); + }; + CommonModule.ɵmod = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineNgModule" + ]({ + type: CommonModule, + }); + CommonModule.ɵinj = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineInjector" + ]({}); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + CommonModule, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgModule, + args: [ + { + imports: [COMMON_DIRECTIVES, COMMON_PIPES], + exports: [COMMON_DIRECTIVES, COMMON_PIPES], + }, + ], + }, + ], + null, + null + ); + })(); + const PLATFORM_BROWSER_ID = "browser"; + const PLATFORM_SERVER_ID = "server"; + const PLATFORM_WORKER_APP_ID = "browserWorkerApp"; + const PLATFORM_WORKER_UI_ID = "browserWorkerUi"; + /** + * Returns whether a platform id represents a browser platform. + * @publicApi + */ + function isPlatformBrowser(platformId) { + return platformId === PLATFORM_BROWSER_ID; + } + /** + * Returns whether a platform id represents a server platform. + * @publicApi + */ + function isPlatformServer(platformId) { + return platformId === PLATFORM_SERVER_ID; + } + /** + * Returns whether a platform id represents a web worker app platform. + * @publicApi + */ + function isPlatformWorkerApp(platformId) { + return platformId === PLATFORM_WORKER_APP_ID; + } + /** + * Returns whether a platform id represents a web worker UI platform. + * @publicApi + */ + function isPlatformWorkerUi(platformId) { + return platformId === PLATFORM_WORKER_UI_ID; + } + + /** + * @module + * @description + * Entry point for all public APIs of the common package. + */ + /** + * @publicApi + */ + const VERSION = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.Version( + "15.1.4" + ); + + /** + * Defines a scroll position manager. Implemented by `BrowserViewportScroller`. + * + * @publicApi + */ + class ViewportScroller {} + // De-sugared tree-shakable injection + // See #23917 + /** @nocollapse */ + ViewportScroller.ɵprov = (0, + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({ + token: ViewportScroller, + providedIn: "root", + factory: () => + new BrowserViewportScroller( + (0, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])( + DOCUMENT + ), + window + ), + }); + /** + * Manages the scroll position for a browser window. + */ + class BrowserViewportScroller { + constructor(document, window) { + this.document = document; + this.window = window; + this.offset = () => [0, 0]; + } + /** + * Configures the top offset used when scrolling to an anchor. + * @param offset A position in screen coordinates (a tuple with x and y values) + * or a function that returns the top offset position. + * + */ + setOffset(offset) { + if (Array.isArray(offset)) { + this.offset = () => offset; + } else { + this.offset = offset; + } + } + /** + * Retrieves the current scroll position. + * @returns The position in screen coordinates. + */ + getScrollPosition() { + if (this.supportsScrolling()) { + return [this.window.pageXOffset, this.window.pageYOffset]; + } else { + return [0, 0]; + } + } + /** + * Sets the scroll position. + * @param position The new position in screen coordinates. + */ + scrollToPosition(position) { + if (this.supportsScrolling()) { + this.window.scrollTo(position[0], position[1]); + } + } + /** + * Scrolls to an element and attempts to focus the element. + * + * Note that the function name here is misleading in that the target string may be an ID for a + * non-anchor element. + * + * @param target The ID of an element or name of the anchor. + * + * @see https://html.spec.whatwg.org/#the-indicated-part-of-the-document + * @see https://html.spec.whatwg.org/#scroll-to-fragid + */ + scrollToAnchor(target) { + if (!this.supportsScrolling()) { + return; + } + const elSelected = findAnchorFromDocument(this.document, target); + if (elSelected) { + this.scrollToElement(elSelected); + // After scrolling to the element, the spec dictates that we follow the focus steps for the + // target. Rather than following the robust steps, simply attempt focus. + // + // @see https://html.spec.whatwg.org/#get-the-focusable-area + // @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLOrForeignElement/focus + // @see https://html.spec.whatwg.org/#focusable-area + elSelected.focus(); + } + } + /** + * Disables automatic scroll restoration provided by the browser. + */ + setHistoryScrollRestoration(scrollRestoration) { + if (this.supportScrollRestoration()) { + const history = this.window.history; + if (history && history.scrollRestoration) { + history.scrollRestoration = scrollRestoration; + } + } + } + /** + * Scrolls to an element using the native offset and the specified offset set on this scroller. + * + * The offset can be used when we know that there is a floating header and scrolling naively to an + * element (ex: `scrollIntoView`) leaves the element hidden behind the floating header. + */ + scrollToElement(el) { + const rect = el.getBoundingClientRect(); + const left = rect.left + this.window.pageXOffset; + const top = rect.top + this.window.pageYOffset; + const offset = this.offset(); + this.window.scrollTo(left - offset[0], top - offset[1]); + } + /** + * We only support scroll restoration when we can get a hold of window. + * This means that we do not support this behavior when running in a web worker. + * + * Lifting this restriction right now would require more changes in the dom adapter. + * Since webworkers aren't widely used, we will lift it once RouterScroller is + * battle-tested. + */ + supportScrollRestoration() { + try { + if (!this.supportsScrolling()) { + return false; + } + // The `scrollRestoration` property could be on the `history` instance or its prototype. + const scrollRestorationDescriptor = + getScrollRestorationProperty(this.window.history) || + getScrollRestorationProperty( + Object.getPrototypeOf(this.window.history) + ); + // We can write to the `scrollRestoration` property if it is a writable data field or it has a + // setter function. + return ( + !!scrollRestorationDescriptor && + !!( + scrollRestorationDescriptor.writable || + scrollRestorationDescriptor.set + ) + ); + } catch { + return false; + } + } + supportsScrolling() { + try { + return ( + !!this.window && + !!this.window.scrollTo && + "pageXOffset" in this.window + ); + } catch { + return false; + } + } + } + function getScrollRestorationProperty(obj) { + return Object.getOwnPropertyDescriptor(obj, "scrollRestoration"); + } + function findAnchorFromDocument(document, target) { + const documentResult = + document.getElementById(target) || + document.getElementsByName(target)[0]; + if (documentResult) { + return documentResult; + } + // `getElementById` and `getElementsByName` won't pierce through the shadow DOM so we + // have to traverse the DOM manually and do the lookup through the shadow roots. + if ( + typeof document.createTreeWalker === "function" && + document.body && + (document.body.createShadowRoot || document.body.attachShadow) + ) { + const treeWalker = document.createTreeWalker( + document.body, + NodeFilter.SHOW_ELEMENT + ); + let currentNode = treeWalker.currentNode; + while (currentNode) { + const shadowRoot = currentNode.shadowRoot; + if (shadowRoot) { + // Note that `ShadowRoot` doesn't support `getElementsByName` + // so we have to fall back to `querySelector`. + const result = + shadowRoot.getElementById(target) || + shadowRoot.querySelector(`[name="${target}"]`); + if (result) { + return result; + } + } + currentNode = treeWalker.nextNode(); + } + } + return null; + } + /** + * Provides an empty implementation of the viewport scroller. + */ + class NullViewportScroller { + /** + * Empty implementation + */ + setOffset(offset) {} + /** + * Empty implementation + */ + getScrollPosition() { + return [0, 0]; + } + /** + * Empty implementation + */ + scrollToPosition(position) {} + /** + * Empty implementation + */ + scrollToAnchor(anchor) {} + /** + * Empty implementation + */ + setHistoryScrollRestoration(scrollRestoration) {} + } + + /** + * A wrapper around the `XMLHttpRequest` constructor. + * + * @publicApi + */ + class XhrFactory {} + + // Converts a string that represents a URL into a URL class instance. + function getUrl(src, win) { + // Don't use a base URL is the URL is absolute. + return isAbsoluteUrl(src) + ? new URL(src) + : new URL(src, win.location.href); + } + // Checks whether a URL is absolute (i.e. starts with `http://` or `https://`). + function isAbsoluteUrl(src) { + return /^https?:\/\//.test(src); + } + // Given a URL, extract the hostname part. + // If a URL is a relative one - the URL is returned as is. + function extractHostname(url) { + return isAbsoluteUrl(url) ? new URL(url).hostname : url; + } + function isValidPath(path) { + const isString = typeof path === "string"; + if (!isString || path.trim() === "") { + return false; + } + // Calling new URL() will throw if the path string is malformed + try { + const url = new URL(path); + return true; + } catch { + return false; + } + } + function normalizePath(path) { + return path.endsWith("/") ? path.slice(0, -1) : path; + } + function normalizeSrc(src) { + return src.startsWith("/") ? src.slice(1) : src; + } + + /** + * Noop image loader that does no transformation to the original src and just returns it as is. + * This loader is used as a default one if more specific logic is not provided in an app config. + * + * @see `ImageLoader` + * @see `NgOptimizedImage` + */ + const noopImageLoader = (config) => config.src; + /** + * Injection token that configures the image loader function. + * + * @see `ImageLoader` + * @see `NgOptimizedImage` + * @publicApi + */ + const IMAGE_LOADER = + new _angular_core__WEBPACK_IMPORTED_MODULE_0__.InjectionToken( + "ImageLoader", + { + providedIn: "root", + factory: () => noopImageLoader, + } + ); + /** + * Internal helper function that makes it easier to introduce custom image loaders for the + * `NgOptimizedImage` directive. It is enough to specify a URL builder function to obtain full DI + * configuration for a given loader: a DI token corresponding to the actual loader function, plus DI + * tokens managing preconnect check functionality. + * @param buildUrlFn a function returning a full URL based on loader's configuration + * @param exampleUrls example of full URLs for a given loader (used in error messages) + * @returns a set of DI providers corresponding to the configured image loader + */ + function createImageLoader(buildUrlFn, exampleUrls) { + return function provideImageLoader(path) { + if (!isValidPath(path)) { + throwInvalidPathError(path, exampleUrls || []); + } + // The trailing / is stripped (if provided) to make URL construction (concatenation) easier in + // the individual loader functions. + path = normalizePath(path); + const loaderFn = (config) => { + if (isAbsoluteUrl(config.src)) { + // Image loader functions expect an image file name (e.g. `my-image.png`) + // or a relative path + a file name (e.g. `/a/b/c/my-image.png`) as an input, + // so the final absolute URL can be constructed. + // When an absolute URL is provided instead - the loader can not + // build a final URL, thus the error is thrown to indicate that. + throwUnexpectedAbsoluteUrlError(path, config.src); + } + return buildUrlFn(path, { + ...config, + src: normalizeSrc(config.src), + }); + }; + const providers = [ + { + provide: IMAGE_LOADER, + useValue: loaderFn, + }, + ]; + return providers; + }; + } + function throwInvalidPathError(path, exampleUrls) { + throw new _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵRuntimeError"]( + 2959 /* RuntimeErrorCode.INVALID_LOADER_ARGUMENTS */, + ngDevMode && + `Image loader has detected an invalid path (\`${path}\`). ` + + `To fix this, supply a path using one of the following formats: ${exampleUrls.join( + " or " + )}` + ); + } + function throwUnexpectedAbsoluteUrlError(path, url) { + throw new _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵRuntimeError"]( + 2959 /* RuntimeErrorCode.INVALID_LOADER_ARGUMENTS */, + ngDevMode && + `Image loader has detected a \`\` tag with an invalid \`ngSrc\` attribute: ${url}. ` + + `This image loader expects \`ngSrc\` to be a relative URL - ` + + `however the provided value is an absolute URL. ` + + `To fix this, provide \`ngSrc\` as a path relative to the base URL ` + + `configured for this loader (\`${path}\`).` + ); + } + + /** + * Function that generates an ImageLoader for [Cloudflare Image + * Resizing](https://developers.cloudflare.com/images/image-resizing/) and turns it into an Angular + * provider. Note: Cloudflare has multiple image products - this provider is specifically for + * Cloudflare Image Resizing; it will not work with Cloudflare Images or Cloudflare Polish. + * + * @param path Your domain name, e.g. https://mysite.com + * @returns Provider that provides an ImageLoader function + * + * @publicApi + */ + const provideCloudflareLoader = createImageLoader( + createCloudflareUrl, + ngDevMode + ? ["https:///cdn-cgi/image//"] + : undefined + ); + function createCloudflareUrl(path, config) { + let params = `format=auto`; + if (config.width) { + params += `,width=${config.width}`; + } + // Cloudflare image URLs format: + // https://developers.cloudflare.com/images/image-resizing/url-format/ + return `${path}/cdn-cgi/image/${params}/${config.src}`; + } + + /** + * Name and URL tester for Cloudinary. + */ + const cloudinaryLoaderInfo = { + name: "Cloudinary", + testUrl: isCloudinaryUrl, + }; + const CLOUDINARY_LOADER_REGEX = + /https?\:\/\/[^\/]+\.cloudinary\.com\/.+/; + /** + * Tests whether a URL is from Cloudinary CDN. + */ + function isCloudinaryUrl(url) { + return CLOUDINARY_LOADER_REGEX.test(url); + } + /** + * Function that generates an ImageLoader for Cloudinary and turns it into an Angular provider. + * + * @param path Base URL of your Cloudinary images + * This URL should match one of the following formats: + * https://res.cloudinary.com/mysite + * https://mysite.cloudinary.com + * https://subdomain.mysite.com + * @returns Set of providers to configure the Cloudinary loader. + * + * @publicApi + */ + const provideCloudinaryLoader = createImageLoader( + createCloudinaryUrl, + ngDevMode + ? [ + "https://res.cloudinary.com/mysite", + "https://mysite.cloudinary.com", + "https://subdomain.mysite.com", + ] + : undefined + ); + function createCloudinaryUrl(path, config) { + // Cloudinary image URLformat: + // https://cloudinary.com/documentation/image_transformations#transformation_url_structure + // Example of a Cloudinary image URL: + // https://res.cloudinary.com/mysite/image/upload/c_scale,f_auto,q_auto,w_600/marketing/tile-topics-m.png + let params = `f_auto,q_auto`; // sets image format and quality to "auto" + if (config.width) { + params += `,w_${config.width}`; + } + return `${path}/image/upload/${params}/${config.src}`; + } + + /** + * Name and URL tester for ImageKit. + */ + const imageKitLoaderInfo = { + name: "ImageKit", + testUrl: isImageKitUrl, + }; + const IMAGE_KIT_LOADER_REGEX = /https?\:\/\/[^\/]+\.imagekit\.io\/.+/; + /** + * Tests whether a URL is from ImageKit CDN. + */ + function isImageKitUrl(url) { + return IMAGE_KIT_LOADER_REGEX.test(url); + } + /** + * Function that generates an ImageLoader for ImageKit and turns it into an Angular provider. + * + * @param path Base URL of your ImageKit images + * This URL should match one of the following formats: + * https://ik.imagekit.io/myaccount + * https://subdomain.mysite.com + * @returns Set of providers to configure the ImageKit loader. + * + * @publicApi + */ + const provideImageKitLoader = createImageLoader( + createImagekitUrl, + ngDevMode + ? ["https://ik.imagekit.io/mysite", "https://subdomain.mysite.com"] + : undefined + ); + function createImagekitUrl(path, config) { + // Example of an ImageKit image URL: + // https://ik.imagekit.io/demo/tr:w-300,h-300/medium_cafe_B1iTdD0C.jpg + let params = `tr:q-auto`; // applies the "auto quality" transformation + if (config.width) { + params += `,w-${config.width}`; + } + return `${path}/${params}/${config.src}`; + } + + /** + * Name and URL tester for Imgix. + */ + const imgixLoaderInfo = { + name: "Imgix", + testUrl: isImgixUrl, + }; + const IMGIX_LOADER_REGEX = /https?\:\/\/[^\/]+\.imgix\.net\/.+/; + /** + * Tests whether a URL is from Imgix CDN. + */ + function isImgixUrl(url) { + return IMGIX_LOADER_REGEX.test(url); + } + /** + * Function that generates an ImageLoader for Imgix and turns it into an Angular provider. + * + * @param path path to the desired Imgix origin, + * e.g. https://somepath.imgix.net or https://images.mysite.com + * @returns Set of providers to configure the Imgix loader. + * + * @publicApi + */ + const provideImgixLoader = createImageLoader( + createImgixUrl, + ngDevMode ? ["https://somepath.imgix.net/"] : undefined + ); + function createImgixUrl(path, config) { + const url = new URL(`${path}/${config.src}`); + // This setting ensures the smallest allowable format is set. + url.searchParams.set("auto", "format"); + if (config.width) { + url.searchParams.set("w", config.width.toString()); + } + return url.href; + } + + // Assembles directive details string, useful for error messages. + function imgDirectiveDetails(ngSrc, includeNgSrc = true) { + const ngSrcInfo = includeNgSrc + ? `(activated on an element with the \`ngSrc="${ngSrc}"\`) ` + : ""; + return `The NgOptimizedImage directive ${ngSrcInfo}has detected that`; + } + + /** + * Asserts that the application is in development mode. Throws an error if the application is in + * production mode. This assert can be used to make sure that there is no dev-mode code invoked in + * the prod mode accidentally. + */ + function assertDevMode(checkName) { + if (!ngDevMode) { + throw new _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵRuntimeError" + ]( + 2958 /* RuntimeErrorCode.UNEXPECTED_DEV_MODE_CHECK_IN_PROD_MODE */, + `Unexpected invocation of the ${checkName} in the prod mode. ` + + `Please make sure that the prod mode is enabled for production builds.` + ); + } + } + + /** + * Observer that detects whether an image with `NgOptimizedImage` + * is treated as a Largest Contentful Paint (LCP) element. If so, + * asserts that the image has the `priority` attribute. + * + * Note: this is a dev-mode only class and it does not appear in prod bundles, + * thus there is no `ngDevMode` use in the code. + * + * Based on https://web.dev/lcp/#measure-lcp-in-javascript. + */ + class LCPImageObserver { + constructor() { + // Map of full image URLs -> original `ngSrc` values. + this.images = new Map(); + // Keep track of images for which `console.warn` was produced. + this.alreadyWarned = new Set(); + this.window = null; + this.observer = null; + assertDevMode("LCP checker"); + const win = (0, _angular_core__WEBPACK_IMPORTED_MODULE_0__.inject)( + DOCUMENT + ).defaultView; + if ( + typeof win !== "undefined" && + typeof PerformanceObserver !== "undefined" + ) { + this.window = win; + this.observer = this.initPerformanceObserver(); + } + } + /** + * Inits PerformanceObserver and subscribes to LCP events. + * Based on https://web.dev/lcp/#measure-lcp-in-javascript + */ + initPerformanceObserver() { + const observer = new PerformanceObserver((entryList) => { + const entries = entryList.getEntries(); + if (entries.length === 0) return; + // We use the latest entry produced by the `PerformanceObserver` as the best + // signal on which element is actually an LCP one. As an example, the first image to load on + // a page, by virtue of being the only thing on the page so far, is often a LCP candidate + // and gets reported by PerformanceObserver, but isn't necessarily the LCP element. + const lcpElement = entries[entries.length - 1]; + // Cast to `any` due to missing `element` on the `LargestContentfulPaint` type of entry. + // See https://developer.mozilla.org/en-US/docs/Web/API/LargestContentfulPaint + const imgSrc = lcpElement.element?.src ?? ""; + // Exclude `data:` and `blob:` URLs, since they are not supported by the directive. + if (imgSrc.startsWith("data:") || imgSrc.startsWith("blob:")) + return; + const imgNgSrc = this.images.get(imgSrc); + if (imgNgSrc && !this.alreadyWarned.has(imgSrc)) { + this.alreadyWarned.add(imgSrc); + logMissingPriorityWarning(imgSrc); + } + }); + observer.observe({ + type: "largest-contentful-paint", + buffered: true, + }); + return observer; + } + registerImage(rewrittenSrc, originalNgSrc) { + if (!this.observer) return; + this.images.set( + getUrl(rewrittenSrc, this.window).href, + originalNgSrc + ); + } + unregisterImage(rewrittenSrc) { + if (!this.observer) return; + this.images.delete(getUrl(rewrittenSrc, this.window).href); + } + ngOnDestroy() { + if (!this.observer) return; + this.observer.disconnect(); + this.images.clear(); + this.alreadyWarned.clear(); + } + } + LCPImageObserver.ɵfac = function LCPImageObserver_Factory(t) { + return new (t || LCPImageObserver)(); + }; + LCPImageObserver.ɵprov = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineInjectable" + ]({ + token: LCPImageObserver, + factory: LCPImageObserver.ɵfac, + providedIn: "root", + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + LCPImageObserver, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injectable, + args: [ + { + providedIn: "root", + }, + ], + }, + ], + function () { + return []; + }, + null + ); + })(); + function logMissingPriorityWarning(ngSrc) { + const directiveDetails = imgDirectiveDetails(ngSrc); + console.warn( + (0, + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵformatRuntimeError"])( + 2955 /* RuntimeErrorCode.LCP_IMG_MISSING_PRIORITY */, + `${directiveDetails} this image is the Largest Contentful Paint (LCP) ` + + `element but was not marked "priority". This image should be marked ` + + `"priority" in order to prioritize its loading. ` + + `To fix this, add the "priority" attribute.` + ) + ); + } + + // Set of origins that are always excluded from the preconnect checks. + const INTERNAL_PRECONNECT_CHECK_BLOCKLIST = new Set([ + "localhost", + "127.0.0.1", + "0.0.0.0", + ]); + /** + * Injection token to configure which origins should be excluded + * from the preconnect checks. It can either be a single string or an array of strings + * to represent a group of origins, for example: + * + * ```typescript + * {provide: PRECONNECT_CHECK_BLOCKLIST, useValue: 'https://your-domain.com'} + * ``` + * + * or: + * + * ```typescript + * {provide: PRECONNECT_CHECK_BLOCKLIST, + * useValue: ['https://your-domain-1.com', 'https://your-domain-2.com']} + * ``` + * + * @publicApi + */ + const PRECONNECT_CHECK_BLOCKLIST = + new _angular_core__WEBPACK_IMPORTED_MODULE_0__.InjectionToken( + "PRECONNECT_CHECK_BLOCKLIST" + ); + /** + * Contains the logic to detect whether an image, marked with the "priority" attribute + * has a corresponding `` tag in the `document.head`. + * + * Note: this is a dev-mode only class, which should not appear in prod bundles, + * thus there is no `ngDevMode` use in the code. + */ + class PreconnectLinkChecker { + constructor() { + this.document = (0, + _angular_core__WEBPACK_IMPORTED_MODULE_0__.inject)(DOCUMENT); + /** + * Set of tags found on this page. + * The `null` value indicates that there was no DOM query operation performed. + */ + this.preconnectLinks = null; + /* + * Keep track of all already seen origin URLs to avoid repeating the same check. + */ + this.alreadySeen = new Set(); + this.window = null; + this.blocklist = new Set(INTERNAL_PRECONNECT_CHECK_BLOCKLIST); + assertDevMode("preconnect link checker"); + const win = this.document.defaultView; + if (typeof win !== "undefined") { + this.window = win; + } + const blocklist = (0, + _angular_core__WEBPACK_IMPORTED_MODULE_0__.inject)( + PRECONNECT_CHECK_BLOCKLIST, + { + optional: true, + } + ); + if (blocklist) { + this.populateBlocklist(blocklist); + } + } + populateBlocklist(origins) { + if (Array.isArray(origins)) { + deepForEach(origins, (origin) => { + this.blocklist.add(extractHostname(origin)); + }); + } else { + this.blocklist.add(extractHostname(origins)); + } + } + /** + * Checks that a preconnect resource hint exists in the head for the + * given src. + * + * @param rewrittenSrc src formatted with loader + * @param originalNgSrc ngSrc value + */ + assertPreconnect(rewrittenSrc, originalNgSrc) { + if (!this.window) return; + const imgUrl = getUrl(rewrittenSrc, this.window); + if ( + this.blocklist.has(imgUrl.hostname) || + this.alreadySeen.has(imgUrl.origin) + ) + return; + // Register this origin as seen, so we don't check it again later. + this.alreadySeen.add(imgUrl.origin); + if (!this.preconnectLinks) { + // Note: we query for preconnect links only *once* and cache the results + // for the entire lifespan of an application, since it's unlikely that the + // list would change frequently. This allows to make sure there are no + // performance implications of making extra DOM lookups for each image. + this.preconnectLinks = this.queryPreconnectLinks(); + } + if (!this.preconnectLinks.has(imgUrl.origin)) { + console.warn( + (0, + _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵformatRuntimeError" + ])( + 2956 /* RuntimeErrorCode.PRIORITY_IMG_MISSING_PRECONNECT_TAG */, + `${imgDirectiveDetails( + originalNgSrc + )} there is no preconnect tag present for this ` + + `image. Preconnecting to the origin(s) that serve priority images ensures that these ` + + `images are delivered as soon as possible. To fix this, please add the following ` + + `element into the of the document:\n` + + ` ` + ) + ); + } + } + queryPreconnectLinks() { + const preconnectUrls = new Set(); + const selector = "link[rel=preconnect]"; + const links = Array.from(this.document.querySelectorAll(selector)); + for (let link of links) { + const url = getUrl(link.href, this.window); + preconnectUrls.add(url.origin); + } + return preconnectUrls; + } + ngOnDestroy() { + this.preconnectLinks?.clear(); + this.alreadySeen.clear(); + } + } + PreconnectLinkChecker.ɵfac = function PreconnectLinkChecker_Factory(t) { + return new (t || PreconnectLinkChecker)(); + }; + PreconnectLinkChecker.ɵprov = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineInjectable" + ]({ + token: PreconnectLinkChecker, + factory: PreconnectLinkChecker.ɵfac, + providedIn: "root", + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + PreconnectLinkChecker, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injectable, + args: [ + { + providedIn: "root", + }, + ], + }, + ], + function () { + return []; + }, + null + ); + })(); + /** + * Invokes a callback for each element in the array. Also invokes a callback + * recursively for each nested array. + */ + function deepForEach(input, fn) { + for (let value of input) { + Array.isArray(value) ? deepForEach(value, fn) : fn(value); + } + } + + /** + * In SSR scenarios, a preload `` element is generated for priority images. + * Having a large number of preload tags may negatively affect the performance, + * so we warn developers (by throwing an error) if the number of preloaded images + * is above a certain threshold. This const specifies this threshold. + */ + const DEFAULT_PRELOADED_IMAGES_LIMIT = 5; + /** + * Helps to keep track of priority images that already have a corresponding + * preload tag (to avoid generating multiple preload tags with the same URL). + * + * This Set tracks the original src passed into the `ngSrc` input not the src after it has been + * run through the specified `IMAGE_LOADER`. + */ + const PRELOADED_IMAGES = + new _angular_core__WEBPACK_IMPORTED_MODULE_0__.InjectionToken( + "NG_OPTIMIZED_PRELOADED_IMAGES", + { + providedIn: "root", + factory: () => new Set(), + } + ); + + /** + * @description Contains the logic needed to track and add preload link tags to the `` tag. It + * will also track what images have already had preload link tags added so as to not duplicate link + * tags. + * + * In dev mode this service will validate that the number of preloaded images does not exceed the + * configured default preloaded images limit: {@link DEFAULT_PRELOADED_IMAGES_LIMIT}. + */ + class PreloadLinkCreator { + constructor() { + this.preloadedImages = (0, + _angular_core__WEBPACK_IMPORTED_MODULE_0__.inject)( + PRELOADED_IMAGES + ); + this.document = (0, + _angular_core__WEBPACK_IMPORTED_MODULE_0__.inject)(DOCUMENT); + } + /** + * @description Add a preload `` to the `` of the `index.html` that is served from the + * server while using Angular Universal and SSR to kick off image loads for high priority images. + * + * The `sizes` (passed in from the user) and `srcset` (parsed and formatted from `ngSrcset`) + * properties used to set the corresponding attributes, `imagesizes` and `imagesrcset` + * respectively, on the preload `` tag so that the correctly sized image is preloaded from + * the CDN. + * + * {@link https://web.dev/preload-responsive-images/#imagesrcset-and-imagesizes} + * + * @param renderer The `Renderer2` passed in from the directive + * @param src The original src of the image that is set on the `ngSrc` input. + * @param srcset The parsed and formatted srcset created from the `ngSrcset` input + * @param sizes The value of the `sizes` attribute passed in to the `` tag + */ + createPreloadLinkTag(renderer, src, srcset, sizes) { + if (ngDevMode) { + if (this.preloadedImages.size >= DEFAULT_PRELOADED_IMAGES_LIMIT) { + throw new _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵRuntimeError" + ]( + 2961 /* RuntimeErrorCode.TOO_MANY_PRELOADED_IMAGES */, + ngDevMode && + `The \`NgOptimizedImage\` directive has detected that more than ` + + `${DEFAULT_PRELOADED_IMAGES_LIMIT} images were marked as priority. ` + + `This might negatively affect an overall performance of the page. ` + + `To fix this, remove the "priority" attribute from images with less priority.` + ); + } + } + if (this.preloadedImages.has(src)) { + return; + } + this.preloadedImages.add(src); + const preload = renderer.createElement("link"); + renderer.setAttribute(preload, "as", "image"); + renderer.setAttribute(preload, "href", src); + renderer.setAttribute(preload, "rel", "preload"); + renderer.setAttribute(preload, "fetchpriority", "high"); + if (sizes) { + renderer.setAttribute(preload, "imageSizes", sizes); + } + if (srcset) { + renderer.setAttribute(preload, "imageSrcset", srcset); + } + renderer.appendChild(this.document.head, preload); + } + } + PreloadLinkCreator.ɵfac = function PreloadLinkCreator_Factory(t) { + return new (t || PreloadLinkCreator)(); + }; + PreloadLinkCreator.ɵprov = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineInjectable" + ]({ + token: PreloadLinkCreator, + factory: PreloadLinkCreator.ɵfac, + providedIn: "root", + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + PreloadLinkCreator, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injectable, + args: [ + { + providedIn: "root", + }, + ], + }, + ], + null, + null + ); + })(); + + /** + * When a Base64-encoded image is passed as an input to the `NgOptimizedImage` directive, + * an error is thrown. The image content (as a string) might be very long, thus making + * it hard to read an error message if the entire string is included. This const defines + * the number of characters that should be included into the error message. The rest + * of the content is truncated. + */ + const BASE64_IMG_MAX_LENGTH_IN_ERROR = 50; + /** + * RegExpr to determine whether a src in a srcset is using width descriptors. + * Should match something like: "100w, 200w". + */ + const VALID_WIDTH_DESCRIPTOR_SRCSET = /^((\s*\d+w\s*(,|$)){1,})$/; + /** + * RegExpr to determine whether a src in a srcset is using density descriptors. + * Should match something like: "1x, 2x, 50x". Also supports decimals like "1.5x, 1.50x". + */ + const VALID_DENSITY_DESCRIPTOR_SRCSET = + /^((\s*\d+(\.\d+)?x\s*(,|$)){1,})$/; + /** + * Srcset values with a density descriptor higher than this value will actively + * throw an error. Such densities are not permitted as they cause image sizes + * to be unreasonably large and slow down LCP. + */ + const ABSOLUTE_SRCSET_DENSITY_CAP = 3; + /** + * Used only in error message text to communicate best practices, as we will + * only throw based on the slightly more conservative ABSOLUTE_SRCSET_DENSITY_CAP. + */ + const RECOMMENDED_SRCSET_DENSITY_CAP = 2; + /** + * Used in generating automatic density-based srcsets + */ + const DENSITY_SRCSET_MULTIPLIERS = [1, 2]; + /** + * Used to determine which breakpoints to use on full-width images + */ + const VIEWPORT_BREAKPOINT_CUTOFF = 640; + /** + * Used to determine whether two aspect ratios are similar in value. + */ + const ASPECT_RATIO_TOLERANCE = 0.1; + /** + * Used to determine whether the image has been requested at an overly + * large size compared to the actual rendered image size (after taking + * into account a typical device pixel ratio). In pixels. + */ + const OVERSIZED_IMAGE_TOLERANCE = 1000; + /** + * Used to limit automatic srcset generation of very large sources for + * fixed-size images. In pixels. + */ + const FIXED_SRCSET_WIDTH_LIMIT = 1920; + const FIXED_SRCSET_HEIGHT_LIMIT = 1080; + /** Info about built-in loaders we can test for. */ + const BUILT_IN_LOADERS = [ + imgixLoaderInfo, + imageKitLoaderInfo, + cloudinaryLoaderInfo, + ]; + const defaultConfig = { + breakpoints: [ + 16, 32, 48, 64, 96, 128, 256, 384, 640, 750, 828, 1080, 1200, 1920, + 2048, 3840, + ], + }; + /** + * Injection token that configures the image optimized image functionality. + * + * @see `NgOptimizedImage` + * @publicApi + * @developerPreview + */ + const IMAGE_CONFIG = + new _angular_core__WEBPACK_IMPORTED_MODULE_0__.InjectionToken( + "ImageConfig", + { + providedIn: "root", + factory: () => defaultConfig, + } + ); + /** + * Directive that improves image loading performance by enforcing best practices. + * + * `NgOptimizedImage` ensures that the loading of the Largest Contentful Paint (LCP) image is + * prioritized by: + * - Automatically setting the `fetchpriority` attribute on the `` tag + * - Lazy loading non-priority images by default + * - Asserting that there is a corresponding preconnect link tag in the document head + * + * In addition, the directive: + * - Generates appropriate asset URLs if a corresponding `ImageLoader` function is provided + * - Automatically generates a srcset + * - Requires that `width` and `height` are set + * - Warns if `width` or `height` have been set incorrectly + * - Warns if the image will be visually distorted when rendered + * + * @usageNotes + * The `NgOptimizedImage` directive is marked as [standalone](guide/standalone-components) and can + * be imported directly. + * + * Follow the steps below to enable and use the directive: + * 1. Import it into the necessary NgModule or a standalone Component. + * 2. Optionally provide an `ImageLoader` if you use an image hosting service. + * 3. Update the necessary `` tags in templates and replace `src` attributes with `ngSrc`. + * Using a `ngSrc` allows the directive to control when the `src` gets set, which triggers an image + * download. + * + * Step 1: import the `NgOptimizedImage` directive. + * + * ```typescript + * import { NgOptimizedImage } from '@angular/common'; + * + * // Include it into the necessary NgModule + * @NgModule({ + * imports: [NgOptimizedImage], + * }) + * class AppModule {} + * + * // ... or a standalone Component + * @Component({ + * standalone: true + * imports: [NgOptimizedImage], + * }) + * class MyStandaloneComponent {} + * ``` + * + * Step 2: configure a loader. + * + * To use the **default loader**: no additional code changes are necessary. The URL returned by the + * generic loader will always match the value of "src". In other words, this loader applies no + * transformations to the resource URL and the value of the `ngSrc` attribute will be used as is. + * + * To use an existing loader for a **third-party image service**: add the provider factory for your + * chosen service to the `providers` array. In the example below, the Imgix loader is used: + * + * ```typescript + * import {provideImgixLoader} from '@angular/common'; + * + * // Call the function and add the result to the `providers` array: + * providers: [ + * provideImgixLoader("https://my.base.url/"), + * ], + * ``` + * + * The `NgOptimizedImage` directive provides the following functions: + * - `provideCloudflareLoader` + * - `provideCloudinaryLoader` + * - `provideImageKitLoader` + * - `provideImgixLoader` + * + * If you use a different image provider, you can create a custom loader function as described + * below. + * + * To use a **custom loader**: provide your loader function as a value for the `IMAGE_LOADER` DI + * token. + * + * ```typescript + * import {IMAGE_LOADER, ImageLoaderConfig} from '@angular/common'; + * + * // Configure the loader using the `IMAGE_LOADER` token. + * providers: [ + * { + * provide: IMAGE_LOADER, + * useValue: (config: ImageLoaderConfig) => { + * return `https://example.com/${config.src}-${config.width}.jpg}`; + * } + * }, + * ], + * ``` + * + * Step 3: update `` tags in templates to use `ngSrc` instead of `src`. + * + * ``` + * + * ``` + * + * @publicApi + */ + class NgOptimizedImage { + constructor() { + this.imageLoader = (0, + _angular_core__WEBPACK_IMPORTED_MODULE_0__.inject)(IMAGE_LOADER); + this.config = processConfig( + (0, _angular_core__WEBPACK_IMPORTED_MODULE_0__.inject)( + IMAGE_CONFIG + ) + ); + this.renderer = (0, + _angular_core__WEBPACK_IMPORTED_MODULE_0__.inject)( + _angular_core__WEBPACK_IMPORTED_MODULE_0__.Renderer2 + ); + this.imgElement = (0, + _angular_core__WEBPACK_IMPORTED_MODULE_0__.inject)( + _angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef + ).nativeElement; + this.injector = (0, + _angular_core__WEBPACK_IMPORTED_MODULE_0__.inject)( + _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injector + ); + this.isServer = isPlatformServer( + (0, _angular_core__WEBPACK_IMPORTED_MODULE_0__.inject)( + _angular_core__WEBPACK_IMPORTED_MODULE_0__.PLATFORM_ID + ) + ); + this.preloadLinkChecker = (0, + _angular_core__WEBPACK_IMPORTED_MODULE_0__.inject)( + PreloadLinkCreator + ); + // a LCP image observer - should be injected only in the dev mode + this.lcpObserver = ngDevMode + ? this.injector.get(LCPImageObserver) + : null; + /** + * Calculate the rewritten `src` once and store it. + * This is needed to avoid repetitive calculations and make sure the directive cleanup in the + * `ngOnDestroy` does not rely on the `IMAGE_LOADER` logic (which in turn can rely on some other + * instance that might be already destroyed). + */ + this._renderedSrc = null; + this._priority = false; + this._disableOptimizedSrcset = false; + this._fill = false; + } + /** + * For responsive images: the intrinsic width of the image in pixels. + * For fixed size images: the desired rendered width of the image in pixels. + */ + set width(value) { + ngDevMode && assertGreaterThanZero(this, value, "width"); + this._width = inputToInteger(value); + } + get width() { + return this._width; + } + /** + * For responsive images: the intrinsic height of the image in pixels. + * For fixed size images: the desired rendered height of the image in pixels.* The intrinsic + * height of the image in pixels. + */ + set height(value) { + ngDevMode && assertGreaterThanZero(this, value, "height"); + this._height = inputToInteger(value); + } + get height() { + return this._height; + } + /** + * Indicates whether this image should have a high priority. + */ + set priority(value) { + this._priority = inputToBoolean(value); + } + get priority() { + return this._priority; + } + /** + * Disables automatic srcset generation for this image. + */ + set disableOptimizedSrcset(value) { + this._disableOptimizedSrcset = inputToBoolean(value); + } + get disableOptimizedSrcset() { + return this._disableOptimizedSrcset; + } + /** + * Sets the image to "fill mode", which eliminates the height/width requirement and adds + * styles such that the image fills its containing element. + * + * @developerPreview + */ + set fill(value) { + this._fill = inputToBoolean(value); + } + get fill() { + return this._fill; + } + /** @nodoc */ + ngOnInit() { + if (ngDevMode) { + assertNonEmptyInput(this, "ngSrc", this.ngSrc); + assertValidNgSrcset(this, this.ngSrcset); + assertNoConflictingSrc(this); + if (this.ngSrcset) { + assertNoConflictingSrcset(this); + } + assertNotBase64Image(this); + assertNotBlobUrl(this); + if (this.fill) { + assertEmptyWidthAndHeight(this); + assertNonZeroRenderedHeight( + this, + this.imgElement, + this.renderer + ); + } else { + assertNonEmptyWidthAndHeight(this); + // Only check for distorted images when not in fill mode, where + // images may be intentionally stretched, cropped or letterboxed. + assertNoImageDistortion(this, this.imgElement, this.renderer); + } + assertValidLoadingInput(this); + if (!this.ngSrcset) { + assertNoComplexSizes(this); + } + assertNotMissingBuiltInLoader(this.ngSrc, this.imageLoader); + assertNoNgSrcsetWithoutLoader(this, this.imageLoader); + if (this.priority) { + const checker = this.injector.get(PreconnectLinkChecker); + checker.assertPreconnect(this.getRewrittenSrc(), this.ngSrc); + } else { + // Monitor whether an image is an LCP element only in case + // the `priority` attribute is missing. Otherwise, an image + // has the necessary settings and no extra checks are required. + if (this.lcpObserver !== null) { + const ngZone = this.injector.get( + _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone + ); + ngZone.runOutsideAngular(() => { + this.lcpObserver.registerImage( + this.getRewrittenSrc(), + this.ngSrc + ); + }); + } + } + } + this.setHostAttributes(); + } + setHostAttributes() { + // Must set width/height explicitly in case they are bound (in which case they will + // only be reflected and not found by the browser) + if (this.fill) { + if (!this.sizes) { + this.sizes = "100vw"; + } + } else { + this.setHostAttribute("width", this.width.toString()); + this.setHostAttribute("height", this.height.toString()); + } + this.setHostAttribute("loading", this.getLoadingBehavior()); + this.setHostAttribute("fetchpriority", this.getFetchPriority()); + // The `data-ng-img` attribute flags an image as using the directive, to allow + // for analysis of the directive's performance. + this.setHostAttribute("ng-img", "true"); + // The `src` and `srcset` attributes should be set last since other attributes + // could affect the image's loading behavior. + const rewrittenSrc = this.getRewrittenSrc(); + this.setHostAttribute("src", rewrittenSrc); + let rewrittenSrcset = undefined; + if (this.sizes) { + this.setHostAttribute("sizes", this.sizes); + } + if (this.ngSrcset) { + rewrittenSrcset = this.getRewrittenSrcset(); + } else if (this.shouldGenerateAutomaticSrcset()) { + rewrittenSrcset = this.getAutomaticSrcset(); + } + if (rewrittenSrcset) { + this.setHostAttribute("srcset", rewrittenSrcset); + } + if (this.isServer && this.priority) { + this.preloadLinkChecker.createPreloadLinkTag( + this.renderer, + rewrittenSrc, + rewrittenSrcset, + this.sizes + ); + } + } + /** @nodoc */ + ngOnChanges(changes) { + if (ngDevMode) { + assertNoPostInitInputChange(this, changes, [ + "ngSrc", + "ngSrcset", + "width", + "height", + "priority", + "fill", + "loading", + "sizes", + "disableOptimizedSrcset", + ]); + } + } + getLoadingBehavior() { + if (!this.priority && this.loading !== undefined) { + return this.loading; + } + return this.priority ? "eager" : "lazy"; + } + getFetchPriority() { + return this.priority ? "high" : "auto"; + } + getRewrittenSrc() { + // ImageLoaderConfig supports setting a width property. However, we're not setting width here + // because if the developer uses rendered width instead of intrinsic width in the HTML width + // attribute, the image requested may be too small for 2x+ screens. + if (!this._renderedSrc) { + const imgConfig = { + src: this.ngSrc, + }; + // Cache calculated image src to reuse it later in the code. + this._renderedSrc = this.imageLoader(imgConfig); + } + return this._renderedSrc; + } + getRewrittenSrcset() { + const widthSrcSet = VALID_WIDTH_DESCRIPTOR_SRCSET.test( + this.ngSrcset + ); + const finalSrcs = this.ngSrcset + .split(",") + .filter((src) => src !== "") + .map((srcStr) => { + srcStr = srcStr.trim(); + const width = widthSrcSet + ? parseFloat(srcStr) + : parseFloat(srcStr) * this.width; + return `${this.imageLoader({ + src: this.ngSrc, + width, + })} ${srcStr}`; + }); + return finalSrcs.join(", "); + } + getAutomaticSrcset() { + if (this.sizes) { + return this.getResponsiveSrcset(); + } else { + return this.getFixedSrcset(); + } + } + getResponsiveSrcset() { + const { breakpoints } = this.config; + let filteredBreakpoints = breakpoints; + if (this.sizes?.trim() === "100vw") { + // Since this is a full-screen-width image, our srcset only needs to include + // breakpoints with full viewport widths. + filteredBreakpoints = breakpoints.filter( + (bp) => bp >= VIEWPORT_BREAKPOINT_CUTOFF + ); + } + const finalSrcs = filteredBreakpoints.map( + (bp) => + `${this.imageLoader({ + src: this.ngSrc, + width: bp, + })} ${bp}w` + ); + return finalSrcs.join(", "); + } + getFixedSrcset() { + const finalSrcs = DENSITY_SRCSET_MULTIPLIERS.map( + (multiplier) => + `${this.imageLoader({ + src: this.ngSrc, + width: this.width * multiplier, + })} ${multiplier}x` + ); + return finalSrcs.join(", "); + } + shouldGenerateAutomaticSrcset() { + return ( + !this._disableOptimizedSrcset && + !this.srcset && + this.imageLoader !== noopImageLoader && + !( + this.width > FIXED_SRCSET_WIDTH_LIMIT || + this.height > FIXED_SRCSET_HEIGHT_LIMIT + ) + ); + } + /** @nodoc */ + ngOnDestroy() { + if (ngDevMode) { + if ( + !this.priority && + this._renderedSrc !== null && + this.lcpObserver !== null + ) { + this.lcpObserver.unregisterImage(this._renderedSrc); + } + } + } + setHostAttribute(name, value) { + this.renderer.setAttribute(this.imgElement, name, value); + } + } + NgOptimizedImage.ɵfac = function NgOptimizedImage_Factory(t) { + return new (t || NgOptimizedImage)(); + }; + NgOptimizedImage.ɵdir = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵdefineDirective" + ]({ + type: NgOptimizedImage, + selectors: [["img", "ngSrc", ""]], + hostVars: 8, + hostBindings: function NgOptimizedImage_HostBindings(rf, ctx) { + if (rf & 2) { + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵstyleProp"]( + "position", + ctx.fill ? "absolute" : null + )("width", ctx.fill ? "100%" : null)( + "height", + ctx.fill ? "100%" : null + )("inset", ctx.fill ? "0px" : null); + } + }, + inputs: { + ngSrc: "ngSrc", + ngSrcset: "ngSrcset", + sizes: "sizes", + width: "width", + height: "height", + loading: "loading", + priority: "priority", + disableOptimizedSrcset: "disableOptimizedSrcset", + fill: "fill", + src: "src", + srcset: "srcset", + }, + standalone: true, + features: [ + _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵɵNgOnChangesFeature" + ], + ], + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"]( + NgOptimizedImage, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive, + args: [ + { + standalone: true, + selector: "img[ngSrc]", + host: { + "[style.position]": 'fill ? "absolute" : null', + "[style.width]": 'fill ? "100%" : null', + "[style.height]": 'fill ? "100%" : null', + "[style.inset]": 'fill ? "0px" : null', + }, + }, + ], + }, + ], + null, + { + ngSrc: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input, + }, + ], + ngSrcset: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input, + }, + ], + sizes: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input, + }, + ], + width: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input, + }, + ], + height: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input, + }, + ], + loading: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input, + }, + ], + priority: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input, + }, + ], + disableOptimizedSrcset: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input, + }, + ], + fill: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input, + }, + ], + src: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input, + }, + ], + srcset: [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input, + }, + ], + } + ); + })(); + /***** Helpers *****/ + /** + * Convert input value to integer. + */ + function inputToInteger(value) { + return typeof value === "string" ? parseInt(value, 10) : value; + } + /** + * Convert input value to boolean. + */ + function inputToBoolean(value) { + return value != null && `${value}` !== "false"; + } + /** + * Sorts provided config breakpoints and uses defaults. + */ + function processConfig(config) { + let sortedBreakpoints = {}; + if (config.breakpoints) { + sortedBreakpoints.breakpoints = config.breakpoints.sort( + (a, b) => a - b + ); + } + return Object.assign({}, defaultConfig, config, sortedBreakpoints); + } + /***** Assert functions *****/ + /** + * Verifies that there is no `src` set on a host element. + */ + function assertNoConflictingSrc(dir) { + if (dir.src) { + throw new _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵRuntimeError" + ]( + 2950 /* RuntimeErrorCode.UNEXPECTED_SRC_ATTR */, + `${imgDirectiveDetails( + dir.ngSrc + )} both \`src\` and \`ngSrc\` have been set. ` + + `Supplying both of these attributes breaks lazy loading. ` + + `The NgOptimizedImage directive sets \`src\` itself based on the value of \`ngSrc\`. ` + + `To fix this, please remove the \`src\` attribute.` + ); + } + } + /** + * Verifies that there is no `srcset` set on a host element. + */ + function assertNoConflictingSrcset(dir) { + if (dir.srcset) { + throw new _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵRuntimeError" + ]( + 2951 /* RuntimeErrorCode.UNEXPECTED_SRCSET_ATTR */, + `${imgDirectiveDetails( + dir.ngSrc + )} both \`srcset\` and \`ngSrcset\` have been set. ` + + `Supplying both of these attributes breaks lazy loading. ` + + `The NgOptimizedImage directive sets \`srcset\` itself based on the value of ` + + `\`ngSrcset\`. To fix this, please remove the \`srcset\` attribute.` + ); + } + } + /** + * Verifies that the `ngSrc` is not a Base64-encoded image. + */ + function assertNotBase64Image(dir) { + let ngSrc = dir.ngSrc.trim(); + if (ngSrc.startsWith("data:")) { + if (ngSrc.length > BASE64_IMG_MAX_LENGTH_IN_ERROR) { + ngSrc = + ngSrc.substring(0, BASE64_IMG_MAX_LENGTH_IN_ERROR) + "..."; + } + throw new _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵRuntimeError" + ]( + 2952 /* RuntimeErrorCode.INVALID_INPUT */, + `${imgDirectiveDetails( + dir.ngSrc, + false + )} \`ngSrc\` is a Base64-encoded string ` + + `(${ngSrc}). NgOptimizedImage does not support Base64-encoded strings. ` + + `To fix this, disable the NgOptimizedImage directive for this element ` + + `by removing \`ngSrc\` and using a standard \`src\` attribute instead.` + ); + } + } + /** + * Verifies that the 'sizes' only includes responsive values. + */ + function assertNoComplexSizes(dir) { + let sizes = dir.sizes; + if (sizes?.match(/((\)|,)\s|^)\d+px/)) { + throw new _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵRuntimeError" + ]( + 2952 /* RuntimeErrorCode.INVALID_INPUT */, + `${imgDirectiveDetails( + dir.ngSrc, + false + )} \`sizes\` was set to a string including ` + + `pixel values. For automatic \`srcset\` generation, \`sizes\` must only include responsive ` + + `values, such as \`sizes="50vw"\` or \`sizes="(min-width: 768px) 50vw, 100vw"\`. ` + + `To fix this, modify the \`sizes\` attribute, or provide your own \`ngSrcset\` value directly.` + ); + } + } + /** + * Verifies that the `ngSrc` is not a Blob URL. + */ + function assertNotBlobUrl(dir) { + const ngSrc = dir.ngSrc.trim(); + if (ngSrc.startsWith("blob:")) { + throw new _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵRuntimeError" + ]( + 2952 /* RuntimeErrorCode.INVALID_INPUT */, + `${imgDirectiveDetails( + dir.ngSrc + )} \`ngSrc\` was set to a blob URL (${ngSrc}). ` + + `Blob URLs are not supported by the NgOptimizedImage directive. ` + + `To fix this, disable the NgOptimizedImage directive for this element ` + + `by removing \`ngSrc\` and using a regular \`src\` attribute instead.` + ); + } + } + /** + * Verifies that the input is set to a non-empty string. + */ + function assertNonEmptyInput(dir, name, value) { + const isString = typeof value === "string"; + const isEmptyString = isString && value.trim() === ""; + if (!isString || isEmptyString) { + throw new _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵRuntimeError" + ]( + 2952 /* RuntimeErrorCode.INVALID_INPUT */, + `${imgDirectiveDetails( + dir.ngSrc + )} \`${name}\` has an invalid value ` + + `(\`${value}\`). To fix this, change the value to a non-empty string.` + ); + } + } + /** + * Verifies that the `ngSrcset` is in a valid format, e.g. "100w, 200w" or "1x, 2x". + */ + function assertValidNgSrcset(dir, value) { + if (value == null) return; + assertNonEmptyInput(dir, "ngSrcset", value); + const stringVal = value; + const isValidWidthDescriptor = + VALID_WIDTH_DESCRIPTOR_SRCSET.test(stringVal); + const isValidDensityDescriptor = + VALID_DENSITY_DESCRIPTOR_SRCSET.test(stringVal); + if (isValidDensityDescriptor) { + assertUnderDensityCap(dir, stringVal); + } + const isValidSrcset = + isValidWidthDescriptor || isValidDensityDescriptor; + if (!isValidSrcset) { + throw new _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵRuntimeError" + ]( + 2952 /* RuntimeErrorCode.INVALID_INPUT */, + `${imgDirectiveDetails( + dir.ngSrc + )} \`ngSrcset\` has an invalid value (\`${value}\`). ` + + `To fix this, supply \`ngSrcset\` using a comma-separated list of one or more width ` + + `descriptors (e.g. "100w, 200w") or density descriptors (e.g. "1x, 2x").` + ); + } + } + function assertUnderDensityCap(dir, value) { + const underDensityCap = value + .split(",") + .every( + (num) => + num === "" || parseFloat(num) <= ABSOLUTE_SRCSET_DENSITY_CAP + ); + if (!underDensityCap) { + throw new _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵRuntimeError" + ]( + 2952 /* RuntimeErrorCode.INVALID_INPUT */, + `${imgDirectiveDetails( + dir.ngSrc + )} the \`ngSrcset\` contains an unsupported image density:` + + `\`${value}\`. NgOptimizedImage generally recommends a max image density of ` + + `${RECOMMENDED_SRCSET_DENSITY_CAP}x but supports image densities up to ` + + `${ABSOLUTE_SRCSET_DENSITY_CAP}x. The human eye cannot distinguish between image densities ` + + `greater than ${RECOMMENDED_SRCSET_DENSITY_CAP}x - which makes them unnecessary for ` + + `most use cases. Images that will be pinch-zoomed are typically the primary use case for ` + + `${ABSOLUTE_SRCSET_DENSITY_CAP}x images. Please remove the high density descriptor and try again.` + ); + } + } + /** + * Creates a `RuntimeError` instance to represent a situation when an input is set after + * the directive has initialized. + */ + function postInitInputChangeError(dir, inputName) { + let reason; + if (inputName === "width" || inputName === "height") { + reason = + `Changing \`${inputName}\` may result in different attribute value ` + + `applied to the underlying image element and cause layout shifts on a page.`; + } else { + reason = + `Changing the \`${inputName}\` would have no effect on the underlying ` + + `image element, because the resource loading has already occurred.`; + } + return new _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵRuntimeError" + ]( + 2953 /* RuntimeErrorCode.UNEXPECTED_INPUT_CHANGE */, + `${imgDirectiveDetails( + dir.ngSrc + )} \`${inputName}\` was updated after initialization. ` + + `The NgOptimizedImage directive will not react to this input change. ${reason} ` + + `To fix this, either switch \`${inputName}\` to a static value ` + + `or wrap the image element in an *ngIf that is gated on the necessary value.` + ); + } + /** + * Verify that none of the listed inputs has changed. + */ + function assertNoPostInitInputChange(dir, changes, inputs) { + inputs.forEach((input) => { + const isUpdated = changes.hasOwnProperty(input); + if (isUpdated && !changes[input].isFirstChange()) { + if (input === "ngSrc") { + // When the `ngSrc` input changes, we detect that only in the + // `ngOnChanges` hook, thus the `ngSrc` is already set. We use + // `ngSrc` in the error message, so we use a previous value, but + // not the updated one in it. + dir = { + ngSrc: changes[input].previousValue, + }; + } + throw postInitInputChangeError(dir, input); + } + }); + } + /** + * Verifies that a specified input is a number greater than 0. + */ + function assertGreaterThanZero(dir, inputValue, inputName) { + const validNumber = typeof inputValue === "number" && inputValue > 0; + const validString = + typeof inputValue === "string" && + /^\d+$/.test(inputValue.trim()) && + parseInt(inputValue) > 0; + if (!validNumber && !validString) { + throw new _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵRuntimeError" + ]( + 2952 /* RuntimeErrorCode.INVALID_INPUT */, + `${imgDirectiveDetails( + dir.ngSrc + )} \`${inputName}\` has an invalid value ` + + `(\`${inputValue}\`). To fix this, provide \`${inputName}\` ` + + `as a number greater than 0.` + ); + } + } + /** + * Verifies that the rendered image is not visually distorted. Effectively this is checking: + * - Whether the "width" and "height" attributes reflect the actual dimensions of the image. + * - Whether image styling is "correct" (see below for a longer explanation). + */ + function assertNoImageDistortion(dir, img, renderer) { + const removeListenerFn = renderer.listen(img, "load", () => { + removeListenerFn(); + const renderedWidth = img.clientWidth; + const renderedHeight = img.clientHeight; + const renderedAspectRatio = renderedWidth / renderedHeight; + const nonZeroRenderedDimensions = + renderedWidth !== 0 && renderedHeight !== 0; + const intrinsicWidth = img.naturalWidth; + const intrinsicHeight = img.naturalHeight; + const intrinsicAspectRatio = intrinsicWidth / intrinsicHeight; + const suppliedWidth = dir.width; + const suppliedHeight = dir.height; + const suppliedAspectRatio = suppliedWidth / suppliedHeight; + // Tolerance is used to account for the impact of subpixel rendering. + // Due to subpixel rendering, the rendered, intrinsic, and supplied + // aspect ratios of a correctly configured image may not exactly match. + // For example, a `width=4030 height=3020` image might have a rendered + // size of "1062w, 796.48h". (An aspect ratio of 1.334... vs. 1.333...) + const inaccurateDimensions = + Math.abs(suppliedAspectRatio - intrinsicAspectRatio) > + ASPECT_RATIO_TOLERANCE; + const stylingDistortion = + nonZeroRenderedDimensions && + Math.abs(intrinsicAspectRatio - renderedAspectRatio) > + ASPECT_RATIO_TOLERANCE; + if (inaccurateDimensions) { + console.warn( + (0, + _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵformatRuntimeError" + ])( + 2952 /* RuntimeErrorCode.INVALID_INPUT */, + `${imgDirectiveDetails( + dir.ngSrc + )} the aspect ratio of the image does not match ` + + `the aspect ratio indicated by the width and height attributes. ` + + `\nIntrinsic image size: ${intrinsicWidth}w x ${intrinsicHeight}h ` + + `(aspect-ratio: ${intrinsicAspectRatio}). \nSupplied width and height attributes: ` + + `${suppliedWidth}w x ${suppliedHeight}h (aspect-ratio: ${suppliedAspectRatio}). ` + + `\nTo fix this, update the width and height attributes.` + ) + ); + } else if (stylingDistortion) { + console.warn( + (0, + _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵformatRuntimeError" + ])( + 2952 /* RuntimeErrorCode.INVALID_INPUT */, + `${imgDirectiveDetails( + dir.ngSrc + )} the aspect ratio of the rendered image ` + + `does not match the image's intrinsic aspect ratio. ` + + `\nIntrinsic image size: ${intrinsicWidth}w x ${intrinsicHeight}h ` + + `(aspect-ratio: ${intrinsicAspectRatio}). \nRendered image size: ` + + `${renderedWidth}w x ${renderedHeight}h (aspect-ratio: ` + + `${renderedAspectRatio}). \nThis issue can occur if "width" and "height" ` + + `attributes are added to an image without updating the corresponding ` + + `image styling. To fix this, adjust image styling. In most cases, ` + + `adding "height: auto" or "width: auto" to the image styling will fix ` + + `this issue.` + ) + ); + } else if (!dir.ngSrcset && nonZeroRenderedDimensions) { + // If `ngSrcset` hasn't been set, sanity check the intrinsic size. + const recommendedWidth = + RECOMMENDED_SRCSET_DENSITY_CAP * renderedWidth; + const recommendedHeight = + RECOMMENDED_SRCSET_DENSITY_CAP * renderedHeight; + const oversizedWidth = + intrinsicWidth - recommendedWidth >= OVERSIZED_IMAGE_TOLERANCE; + const oversizedHeight = + intrinsicHeight - recommendedHeight >= + OVERSIZED_IMAGE_TOLERANCE; + if (oversizedWidth || oversizedHeight) { + console.warn( + (0, + _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵformatRuntimeError" + ])( + 2960 /* RuntimeErrorCode.OVERSIZED_IMAGE */, + `${imgDirectiveDetails( + dir.ngSrc + )} the intrinsic image is significantly ` + + `larger than necessary. ` + + `\nRendered image size: ${renderedWidth}w x ${renderedHeight}h. ` + + `\nIntrinsic image size: ${intrinsicWidth}w x ${intrinsicHeight}h. ` + + `\nRecommended intrinsic image size: ${recommendedWidth}w x ${recommendedHeight}h. ` + + `\nNote: Recommended intrinsic image size is calculated assuming a maximum DPR of ` + + `${RECOMMENDED_SRCSET_DENSITY_CAP}. To improve loading time, resize the image ` + + `or consider using the "ngSrcset" and "sizes" attributes.` + ) + ); + } + } + }); + } + /** + * Verifies that a specified input is set. + */ + function assertNonEmptyWidthAndHeight(dir) { + let missingAttributes = []; + if (dir.width === undefined) missingAttributes.push("width"); + if (dir.height === undefined) missingAttributes.push("height"); + if (missingAttributes.length > 0) { + throw new _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵRuntimeError" + ]( + 2954 /* RuntimeErrorCode.REQUIRED_INPUT_MISSING */, + `${imgDirectiveDetails(dir.ngSrc)} these required attributes ` + + `are missing: ${missingAttributes + .map((attr) => `"${attr}"`) + .join(", ")}. ` + + `Including "width" and "height" attributes will prevent image-related layout shifts. ` + + `To fix this, include "width" and "height" attributes on the image tag or turn on ` + + `"fill" mode with the \`fill\` attribute.` + ); + } + } + /** + * Verifies that width and height are not set. Used in fill mode, where those attributes don't make + * sense. + */ + function assertEmptyWidthAndHeight(dir) { + if (dir.width || dir.height) { + throw new _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵRuntimeError" + ]( + 2952 /* RuntimeErrorCode.INVALID_INPUT */, + `${imgDirectiveDetails( + dir.ngSrc + )} the attributes \`height\` and/or \`width\` are present ` + + `along with the \`fill\` attribute. Because \`fill\` mode causes an image to fill its containing ` + + `element, the size attributes have no effect and should be removed.` + ); + } + } + /** + * Verifies that the rendered image has a nonzero height. If the image is in fill mode, provides + * guidance that this can be caused by the containing element's CSS position property. + */ + function assertNonZeroRenderedHeight(dir, img, renderer) { + const removeListenerFn = renderer.listen(img, "load", () => { + removeListenerFn(); + const renderedHeight = img.clientHeight; + if (dir.fill && renderedHeight === 0) { + console.warn( + (0, + _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵformatRuntimeError" + ])( + 2952 /* RuntimeErrorCode.INVALID_INPUT */, + `${imgDirectiveDetails( + dir.ngSrc + )} the height of the fill-mode image is zero. ` + + `This is likely because the containing element does not have the CSS 'position' ` + + `property set to one of the following: "relative", "fixed", or "absolute". ` + + `To fix this problem, make sure the container element has the CSS 'position' ` + + `property defined and the height of the element is not zero.` + ) + ); + } + }); + } + /** + * Verifies that the `loading` attribute is set to a valid input & + * is not used on priority images. + */ + function assertValidLoadingInput(dir) { + if (dir.loading && dir.priority) { + throw new _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵRuntimeError" + ]( + 2952 /* RuntimeErrorCode.INVALID_INPUT */, + `${imgDirectiveDetails(dir.ngSrc)} the \`loading\` attribute ` + + `was used on an image that was marked "priority". ` + + `Setting \`loading\` on priority images is not allowed ` + + `because these images will always be eagerly loaded. ` + + `To fix this, remove the “loading” attribute from the priority image.` + ); + } + const validInputs = ["auto", "eager", "lazy"]; + if ( + typeof dir.loading === "string" && + !validInputs.includes(dir.loading) + ) { + throw new _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵRuntimeError" + ]( + 2952 /* RuntimeErrorCode.INVALID_INPUT */, + `${imgDirectiveDetails(dir.ngSrc)} the \`loading\` attribute ` + + `has an invalid value (\`${dir.loading}\`). ` + + `To fix this, provide a valid value ("lazy", "eager", or "auto").` + ); + } + } + /** + * Warns if NOT using a loader (falling back to the generic loader) and + * the image appears to be hosted on one of the image CDNs for which + * we do have a built-in image loader. Suggests switching to the + * built-in loader. + * + * @param ngSrc Value of the ngSrc attribute + * @param imageLoader ImageLoader provided + */ + function assertNotMissingBuiltInLoader(ngSrc, imageLoader) { + if (imageLoader === noopImageLoader) { + let builtInLoaderName = ""; + for (const loader of BUILT_IN_LOADERS) { + if (loader.testUrl(ngSrc)) { + builtInLoaderName = loader.name; + break; + } + } + if (builtInLoaderName) { + console.warn( + (0, + _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵformatRuntimeError" + ])( + 2962 /* RuntimeErrorCode.MISSING_BUILTIN_LOADER */, + `NgOptimizedImage: It looks like your images may be hosted on the ` + + `${builtInLoaderName} CDN, but your app is not using Angular's ` + + `built-in loader for that CDN. We recommend switching to use ` + + `the built-in by calling \`provide${builtInLoaderName}Loader()\` ` + + `in your \`providers\` and passing it your instance's base URL. ` + + `If you don't want to use the built-in loader, define a custom ` + + `loader function using IMAGE_LOADER to silence this warning.` + ) + ); + } + } + } + /** + * Warns if ngSrcset is present and no loader is configured (i.e. the default one is being used). + */ + function assertNoNgSrcsetWithoutLoader(dir, imageLoader) { + if (dir.ngSrcset && imageLoader === noopImageLoader) { + console.warn( + (0, + _angular_core__WEBPACK_IMPORTED_MODULE_0__[ + "ɵformatRuntimeError" + ])( + 2963 /* RuntimeErrorCode.NGSRCSET_WITHOUT_LOADER */, + `${imgDirectiveDetails( + dir.ngSrc + )} the \`ngSrcset\` attribute is present but ` + + `no image loader is configured (i.e. the default one is being used), ` + + `which would result in the same image being used for all configured sizes. ` + + `To fix this, provide a loader or remove the \`ngSrcset\` attribute from the image.` + ) + ); + } + } + + // These exports represent the set of symbols exposed as a public API. + + /** + * @module + * @description + * Entry point for all public APIs of the common package. + */ + + /** + * @module + * @description + * Entry point for all public APIs of this package. + */ + // This file only reexports content of the `src` folder. Keep it that way. + + // This file is not used to build this module. It is only used during editing + + /** + * Generated bundle index. Do not edit. + */ + + /***/ + }, + + /***/ 8987: + /*!********************************************************!*\ + !*** ./node_modules/@angular/common/fesm2020/http.mjs ***! + \********************************************************/ + /***/ ( + __unused_webpack___webpack_module__, + __webpack_exports__, + __webpack_require__ + ) => { + __webpack_require__.r(__webpack_exports__); + /* harmony export */ __webpack_require__.d(__webpack_exports__, { + /* harmony export */ HTTP_INTERCEPTORS: () => + /* binding */ HTTP_INTERCEPTORS, + /* harmony export */ HttpBackend: () => /* binding */ HttpBackend, + /* harmony export */ HttpClient: () => /* binding */ HttpClient, + /* harmony export */ HttpClientJsonpModule: () => + /* binding */ HttpClientJsonpModule, + /* harmony export */ HttpClientModule: () => + /* binding */ HttpClientModule, + /* harmony export */ HttpClientXsrfModule: () => + /* binding */ HttpClientXsrfModule, + /* harmony export */ HttpContext: () => /* binding */ HttpContext, + /* harmony export */ HttpContextToken: () => + /* binding */ HttpContextToken, + /* harmony export */ HttpErrorResponse: () => + /* binding */ HttpErrorResponse, + /* harmony export */ HttpEventType: () => /* binding */ HttpEventType, + /* harmony export */ HttpFeatureKind: () => + /* binding */ HttpFeatureKind, + /* harmony export */ HttpHandler: () => /* binding */ HttpHandler, + /* harmony export */ HttpHeaderResponse: () => + /* binding */ HttpHeaderResponse, + /* harmony export */ HttpHeaders: () => /* binding */ HttpHeaders, + /* harmony export */ HttpParams: () => /* binding */ HttpParams, + /* harmony export */ HttpRequest: () => /* binding */ HttpRequest, + /* harmony export */ HttpResponse: () => /* binding */ HttpResponse, + /* harmony export */ HttpResponseBase: () => + /* binding */ HttpResponseBase, + /* harmony export */ HttpUrlEncodingCodec: () => + /* binding */ HttpUrlEncodingCodec, + /* harmony export */ HttpXhrBackend: () => + /* binding */ HttpXhrBackend, + /* harmony export */ HttpXsrfTokenExtractor: () => + /* binding */ HttpXsrfTokenExtractor, + /* harmony export */ JsonpClientBackend: () => + /* binding */ JsonpClientBackend, + /* harmony export */ JsonpInterceptor: () => + /* binding */ JsonpInterceptor, + /* harmony export */ XhrFactory: () => /* binding */ XhrFactory, + /* harmony export */ provideHttpClient: () => + /* binding */ provideHttpClient, + /* harmony export */ withInterceptors: () => + /* binding */ withInterceptors, + /* harmony export */ withInterceptorsFromDi: () => + /* binding */ withInterceptorsFromDi, + /* harmony export */ withJsonpSupport: () => + /* binding */ withJsonpSupport, + /* harmony export */ withNoXsrfProtection: () => + /* binding */ withNoXsrfProtection, + /* harmony export */ withRequestsMadeViaParent: () => + /* binding */ withRequestsMadeViaParent, + /* harmony export */ withXsrfConfiguration: () => + /* binding */ withXsrfConfiguration, + /* harmony export */ ɵHttpInterceptingHandler: () => + /* binding */ HttpInterceptorHandler, + /* harmony export */ ɵHttpInterceptorHandler: () => + /* binding */ HttpInterceptorHandler, + /* harmony export */ + }); + /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_6__ = + __webpack_require__(/*! @angular/common */ 4666); + /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4__ = + __webpack_require__(/*! @angular/core */ 2560); + /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = + __webpack_require__(/*! rxjs */ 745); + /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_5__ = + __webpack_require__(/*! rxjs */ 833); + /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_1__ = + __webpack_require__(/*! rxjs/operators */ 3853); + /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = + __webpack_require__(/*! rxjs/operators */ 116); + /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = + __webpack_require__(/*! rxjs/operators */ 635); + /** + * @license Angular v15.1.4 + * (c) 2010-2022 Google LLC. https://angular.io/ + * License: MIT + */ + + /** + * Transforms an `HttpRequest` into a stream of `HttpEvent`s, one of which will likely be a + * `HttpResponse`. + * + * `HttpHandler` is injectable. When injected, the handler instance dispatches requests to the + * first interceptor in the chain, which dispatches to the second, etc, eventually reaching the + * `HttpBackend`. + * + * In an `HttpInterceptor`, the `HttpHandler` parameter is the next interceptor in the chain. + * + * @publicApi + */ + class HttpHandler {} + /** + * A final `HttpHandler` which will dispatch the request via browser HTTP APIs to a backend. + * + * Interceptors sit between the `HttpClient` interface and the `HttpBackend`. + * + * When injected, `HttpBackend` dispatches requests directly to the backend, without going + * through the interceptor chain. + * + * @publicApi + */ + class HttpBackend {} + + /** + * Represents the header configuration options for an HTTP request. + * Instances are immutable. Modifying methods return a cloned + * instance with the change. The original object is never changed. + * + * @publicApi + */ + class HttpHeaders { + /** Constructs a new HTTP header object with the given values.*/ + constructor(headers) { + /** + * Internal map of lowercased header names to the normalized + * form of the name (the form seen first). + */ + this.normalizedNames = new Map(); + /** + * Queued updates to be materialized the next initialization. + */ + this.lazyUpdate = null; + if (!headers) { + this.headers = new Map(); + } else if (typeof headers === "string") { + this.lazyInit = () => { + this.headers = new Map(); + headers.split("\n").forEach((line) => { + const index = line.indexOf(":"); + if (index > 0) { + const name = line.slice(0, index); + const key = name.toLowerCase(); + const value = line.slice(index + 1).trim(); + this.maybeSetNormalizedName(name, key); + if (this.headers.has(key)) { + this.headers.get(key).push(value); + } else { + this.headers.set(key, [value]); + } + } + }); + }; + } else { + this.lazyInit = () => { + if (typeof ngDevMode === "undefined" || ngDevMode) { + assertValidHeaders(headers); + } + this.headers = new Map(); + Object.keys(headers).forEach((name) => { + let values = headers[name]; + const key = name.toLowerCase(); + if (typeof values === "string") { + values = [values]; + } + if (values.length > 0) { + this.headers.set(key, values); + this.maybeSetNormalizedName(name, key); + } + }); + }; + } + } + /** + * Checks for existence of a given header. + * + * @param name The header name to check for existence. + * + * @returns True if the header exists, false otherwise. + */ + has(name) { + this.init(); + return this.headers.has(name.toLowerCase()); + } + /** + * Retrieves the first value of a given header. + * + * @param name The header name. + * + * @returns The value string if the header exists, null otherwise + */ + get(name) { + this.init(); + const values = this.headers.get(name.toLowerCase()); + return values && values.length > 0 ? values[0] : null; + } + /** + * Retrieves the names of the headers. + * + * @returns A list of header names. + */ + keys() { + this.init(); + return Array.from(this.normalizedNames.values()); + } + /** + * Retrieves a list of values for a given header. + * + * @param name The header name from which to retrieve values. + * + * @returns A string of values if the header exists, null otherwise. + */ + getAll(name) { + this.init(); + return this.headers.get(name.toLowerCase()) || null; + } + /** + * Appends a new value to the existing set of values for a header + * and returns them in a clone of the original instance. + * + * @param name The header name for which to append the values. + * @param value The value to append. + * + * @returns A clone of the HTTP headers object with the value appended to the given header. + */ + append(name, value) { + return this.clone({ + name, + value, + op: "a", + }); + } + /** + * Sets or modifies a value for a given header in a clone of the original instance. + * If the header already exists, its value is replaced with the given value + * in the returned object. + * + * @param name The header name. + * @param value The value or values to set or override for the given header. + * + * @returns A clone of the HTTP headers object with the newly set header value. + */ + set(name, value) { + return this.clone({ + name, + value, + op: "s", + }); + } + /** + * Deletes values for a given header in a clone of the original instance. + * + * @param name The header name. + * @param value The value or values to delete for the given header. + * + * @returns A clone of the HTTP headers object with the given value deleted. + */ + delete(name, value) { + return this.clone({ + name, + value, + op: "d", + }); + } + maybeSetNormalizedName(name, lcName) { + if (!this.normalizedNames.has(lcName)) { + this.normalizedNames.set(lcName, name); + } + } + init() { + if (!!this.lazyInit) { + if (this.lazyInit instanceof HttpHeaders) { + this.copyFrom(this.lazyInit); + } else { + this.lazyInit(); + } + this.lazyInit = null; + if (!!this.lazyUpdate) { + this.lazyUpdate.forEach((update) => this.applyUpdate(update)); + this.lazyUpdate = null; + } + } + } + copyFrom(other) { + other.init(); + Array.from(other.headers.keys()).forEach((key) => { + this.headers.set(key, other.headers.get(key)); + this.normalizedNames.set(key, other.normalizedNames.get(key)); + }); + } + clone(update) { + const clone = new HttpHeaders(); + clone.lazyInit = + !!this.lazyInit && this.lazyInit instanceof HttpHeaders + ? this.lazyInit + : this; + clone.lazyUpdate = (this.lazyUpdate || []).concat([update]); + return clone; + } + applyUpdate(update) { + const key = update.name.toLowerCase(); + switch (update.op) { + case "a": + case "s": + let value = update.value; + if (typeof value === "string") { + value = [value]; + } + if (value.length === 0) { + return; + } + this.maybeSetNormalizedName(update.name, key); + const base = + (update.op === "a" ? this.headers.get(key) : undefined) || []; + base.push(...value); + this.headers.set(key, base); + break; + case "d": + const toDelete = update.value; + if (!toDelete) { + this.headers.delete(key); + this.normalizedNames.delete(key); + } else { + let existing = this.headers.get(key); + if (!existing) { + return; + } + existing = existing.filter( + (value) => toDelete.indexOf(value) === -1 + ); + if (existing.length === 0) { + this.headers.delete(key); + this.normalizedNames.delete(key); + } else { + this.headers.set(key, existing); + } + } + break; + } + } + /** + * @internal + */ + forEach(fn) { + this.init(); + Array.from(this.normalizedNames.keys()).forEach((key) => + fn(this.normalizedNames.get(key), this.headers.get(key)) + ); + } + } + /** + * Verifies that the headers object has the right shape: the values + * must be either strings or arrays. Throws an error if an invalid + * header value is present. + */ + function assertValidHeaders(headers) { + for (const [key, value] of Object.entries(headers)) { + if (typeof value !== "string" && !Array.isArray(value)) { + throw new Error( + `Unexpected value of the \`${key}\` header provided. ` + + `Expecting either a string or an array, but got: \`${value}\`.` + ); + } + } + } + + /** + * Provides encoding and decoding of URL parameter and query-string values. + * + * Serializes and parses URL parameter keys and values to encode and decode them. + * If you pass URL query parameters without encoding, + * the query parameters can be misinterpreted at the receiving end. + * + * + * @publicApi + */ + class HttpUrlEncodingCodec { + /** + * Encodes a key name for a URL parameter or query-string. + * @param key The key name. + * @returns The encoded key name. + */ + encodeKey(key) { + return standardEncoding(key); + } + /** + * Encodes the value of a URL parameter or query-string. + * @param value The value. + * @returns The encoded value. + */ + encodeValue(value) { + return standardEncoding(value); + } + /** + * Decodes an encoded URL parameter or query-string key. + * @param key The encoded key name. + * @returns The decoded key name. + */ + decodeKey(key) { + return decodeURIComponent(key); + } + /** + * Decodes an encoded URL parameter or query-string value. + * @param value The encoded value. + * @returns The decoded value. + */ + decodeValue(value) { + return decodeURIComponent(value); + } + } + function paramParser(rawParams, codec) { + const map = new Map(); + if (rawParams.length > 0) { + // The `window.location.search` can be used while creating an instance of the `HttpParams` class + // (e.g. `new HttpParams({ fromString: window.location.search })`). The `window.location.search` + // may start with the `?` char, so we strip it if it's present. + const params = rawParams.replace(/^\?/, "").split("&"); + params.forEach((param) => { + const eqIdx = param.indexOf("="); + const [key, val] = + eqIdx == -1 + ? [codec.decodeKey(param), ""] + : [ + codec.decodeKey(param.slice(0, eqIdx)), + codec.decodeValue(param.slice(eqIdx + 1)), + ]; + const list = map.get(key) || []; + list.push(val); + map.set(key, list); + }); + } + return map; + } + /** + * Encode input string with standard encodeURIComponent and then un-encode specific characters. + */ + const STANDARD_ENCODING_REGEX = /%(\d[a-f0-9])/gi; + const STANDARD_ENCODING_REPLACEMENTS = { + 40: "@", + "3A": ":", + 24: "$", + "2C": ",", + "3B": ";", + "3D": "=", + "3F": "?", + "2F": "/", + }; + function standardEncoding(v) { + return encodeURIComponent(v).replace( + STANDARD_ENCODING_REGEX, + (s, t) => STANDARD_ENCODING_REPLACEMENTS[t] ?? s + ); + } + function valueToString(value) { + return `${value}`; + } + /** + * An HTTP request/response body that represents serialized parameters, + * per the MIME type `application/x-www-form-urlencoded`. + * + * This class is immutable; all mutation operations return a new instance. + * + * @publicApi + */ + class HttpParams { + constructor(options = {}) { + this.updates = null; + this.cloneFrom = null; + this.encoder = options.encoder || new HttpUrlEncodingCodec(); + if (!!options.fromString) { + if (!!options.fromObject) { + throw new Error( + `Cannot specify both fromString and fromObject.` + ); + } + this.map = paramParser(options.fromString, this.encoder); + } else if (!!options.fromObject) { + this.map = new Map(); + Object.keys(options.fromObject).forEach((key) => { + const value = options.fromObject[key]; + // convert the values to strings + const values = Array.isArray(value) + ? value.map(valueToString) + : [valueToString(value)]; + this.map.set(key, values); + }); + } else { + this.map = null; + } + } + /** + * Reports whether the body includes one or more values for a given parameter. + * @param param The parameter name. + * @returns True if the parameter has one or more values, + * false if it has no value or is not present. + */ + has(param) { + this.init(); + return this.map.has(param); + } + /** + * Retrieves the first value for a parameter. + * @param param The parameter name. + * @returns The first value of the given parameter, + * or `null` if the parameter is not present. + */ + get(param) { + this.init(); + const res = this.map.get(param); + return !!res ? res[0] : null; + } + /** + * Retrieves all values for a parameter. + * @param param The parameter name. + * @returns All values in a string array, + * or `null` if the parameter not present. + */ + getAll(param) { + this.init(); + return this.map.get(param) || null; + } + /** + * Retrieves all the parameters for this body. + * @returns The parameter names in a string array. + */ + keys() { + this.init(); + return Array.from(this.map.keys()); + } + /** + * Appends a new value to existing values for a parameter. + * @param param The parameter name. + * @param value The new value to add. + * @return A new body with the appended value. + */ + append(param, value) { + return this.clone({ + param, + value, + op: "a", + }); + } + /** + * Constructs a new body with appended values for the given parameter name. + * @param params parameters and values + * @return A new body with the new value. + */ + appendAll(params) { + const updates = []; + Object.keys(params).forEach((param) => { + const value = params[param]; + if (Array.isArray(value)) { + value.forEach((_value) => { + updates.push({ + param, + value: _value, + op: "a", + }); + }); + } else { + updates.push({ + param, + value: value, + op: "a", + }); + } + }); + return this.clone(updates); + } + /** + * Replaces the value for a parameter. + * @param param The parameter name. + * @param value The new value. + * @return A new body with the new value. + */ + set(param, value) { + return this.clone({ + param, + value, + op: "s", + }); + } + /** + * Removes a given value or all values from a parameter. + * @param param The parameter name. + * @param value The value to remove, if provided. + * @return A new body with the given value removed, or with all values + * removed if no value is specified. + */ + delete(param, value) { + return this.clone({ + param, + value, + op: "d", + }); + } + /** + * Serializes the body to an encoded string, where key-value pairs (separated by `=`) are + * separated by `&`s. + */ + toString() { + this.init(); + return ( + this.keys() + .map((key) => { + const eKey = this.encoder.encodeKey(key); + // `a: ['1']` produces `'a=1'` + // `b: []` produces `''` + // `c: ['1', '2']` produces `'c=1&c=2'` + return this.map + .get(key) + .map( + (value) => eKey + "=" + this.encoder.encodeValue(value) + ) + .join("&"); + }) + // filter out empty values because `b: []` produces `''` + // which results in `a=1&&c=1&c=2` instead of `a=1&c=1&c=2` if we don't + .filter((param) => param !== "") + .join("&") + ); + } + clone(update) { + const clone = new HttpParams({ + encoder: this.encoder, + }); + clone.cloneFrom = this.cloneFrom || this; + clone.updates = (this.updates || []).concat(update); + return clone; + } + init() { + if (this.map === null) { + this.map = new Map(); + } + if (this.cloneFrom !== null) { + this.cloneFrom.init(); + this.cloneFrom + .keys() + .forEach((key) => + this.map.set(key, this.cloneFrom.map.get(key)) + ); + this.updates.forEach((update) => { + switch (update.op) { + case "a": + case "s": + const base = + (update.op === "a" + ? this.map.get(update.param) + : undefined) || []; + base.push(valueToString(update.value)); + this.map.set(update.param, base); + break; + case "d": + if (update.value !== undefined) { + let base = this.map.get(update.param) || []; + const idx = base.indexOf(valueToString(update.value)); + if (idx !== -1) { + base.splice(idx, 1); + } + if (base.length > 0) { + this.map.set(update.param, base); + } else { + this.map.delete(update.param); + } + } else { + this.map.delete(update.param); + break; + } + } + }); + this.cloneFrom = this.updates = null; + } + } + } + + /** + * A token used to manipulate and access values stored in `HttpContext`. + * + * @publicApi + */ + class HttpContextToken { + constructor(defaultValue) { + this.defaultValue = defaultValue; + } + } + /** + * Http context stores arbitrary user defined values and ensures type safety without + * actually knowing the types. It is backed by a `Map` and guarantees that keys do not clash. + * + * This context is mutable and is shared between cloned requests unless explicitly specified. + * + * @usageNotes + * + * ### Usage Example + * + * ```typescript + * // inside cache.interceptors.ts + * export const IS_CACHE_ENABLED = new HttpContextToken(() => false); + * + * export class CacheInterceptor implements HttpInterceptor { + * + * intercept(req: HttpRequest, delegate: HttpHandler): Observable> { + * if (req.context.get(IS_CACHE_ENABLED) === true) { + * return ...; + * } + * return delegate.handle(req); + * } + * } + * + * // inside a service + * + * this.httpClient.get('/api/weather', { + * context: new HttpContext().set(IS_CACHE_ENABLED, true) + * }).subscribe(...); + * ``` + * + * @publicApi + */ + class HttpContext { + constructor() { + this.map = new Map(); + } + /** + * Store a value in the context. If a value is already present it will be overwritten. + * + * @param token The reference to an instance of `HttpContextToken`. + * @param value The value to store. + * + * @returns A reference to itself for easy chaining. + */ + set(token, value) { + this.map.set(token, value); + return this; + } + /** + * Retrieve the value associated with the given token. + * + * @param token The reference to an instance of `HttpContextToken`. + * + * @returns The stored value or default if one is defined. + */ + get(token) { + if (!this.map.has(token)) { + this.map.set(token, token.defaultValue()); + } + return this.map.get(token); + } + /** + * Delete the value associated with the given token. + * + * @param token The reference to an instance of `HttpContextToken`. + * + * @returns A reference to itself for easy chaining. + */ + delete(token) { + this.map.delete(token); + return this; + } + /** + * Checks for existence of a given token. + * + * @param token The reference to an instance of `HttpContextToken`. + * + * @returns True if the token exists, false otherwise. + */ + has(token) { + return this.map.has(token); + } + /** + * @returns a list of tokens currently stored in the context. + */ + keys() { + return this.map.keys(); + } + } + + /** + * Determine whether the given HTTP method may include a body. + */ + function mightHaveBody(method) { + switch (method) { + case "DELETE": + case "GET": + case "HEAD": + case "OPTIONS": + case "JSONP": + return false; + default: + return true; + } + } + /** + * Safely assert whether the given value is an ArrayBuffer. + * + * In some execution environments ArrayBuffer is not defined. + */ + function isArrayBuffer(value) { + return ( + typeof ArrayBuffer !== "undefined" && value instanceof ArrayBuffer + ); + } + /** + * Safely assert whether the given value is a Blob. + * + * In some execution environments Blob is not defined. + */ + function isBlob(value) { + return typeof Blob !== "undefined" && value instanceof Blob; + } + /** + * Safely assert whether the given value is a FormData instance. + * + * In some execution environments FormData is not defined. + */ + function isFormData(value) { + return typeof FormData !== "undefined" && value instanceof FormData; + } + /** + * Safely assert whether the given value is a URLSearchParams instance. + * + * In some execution environments URLSearchParams is not defined. + */ + function isUrlSearchParams(value) { + return ( + typeof URLSearchParams !== "undefined" && + value instanceof URLSearchParams + ); + } + /** + * An outgoing HTTP request with an optional typed body. + * + * `HttpRequest` represents an outgoing request, including URL, method, + * headers, body, and other request configuration options. Instances should be + * assumed to be immutable. To modify a `HttpRequest`, the `clone` + * method should be used. + * + * @publicApi + */ + class HttpRequest { + constructor(method, url, third, fourth) { + this.url = url; + /** + * The request body, or `null` if one isn't set. + * + * Bodies are not enforced to be immutable, as they can include a reference to any + * user-defined data type. However, interceptors should take care to preserve + * idempotence by treating them as such. + */ + this.body = null; + /** + * Whether this request should be made in a way that exposes progress events. + * + * Progress events are expensive (change detection runs on each event) and so + * they should only be requested if the consumer intends to monitor them. + */ + this.reportProgress = false; + /** + * Whether this request should be sent with outgoing credentials (cookies). + */ + this.withCredentials = false; + /** + * The expected response type of the server. + * + * This is used to parse the response appropriately before returning it to + * the requestee. + */ + this.responseType = "json"; + this.method = method.toUpperCase(); + // Next, need to figure out which argument holds the HttpRequestInit + // options, if any. + let options; + // Check whether a body argument is expected. The only valid way to omit + // the body argument is to use a known no-body method like GET. + if (mightHaveBody(this.method) || !!fourth) { + // Body is the third argument, options are the fourth. + this.body = third !== undefined ? third : null; + options = fourth; + } else { + // No body required, options are the third argument. The body stays null. + options = third; + } + // If options have been passed, interpret them. + if (options) { + // Normalize reportProgress and withCredentials. + this.reportProgress = !!options.reportProgress; + this.withCredentials = !!options.withCredentials; + // Override default response type of 'json' if one is provided. + if (!!options.responseType) { + this.responseType = options.responseType; + } + // Override headers if they're provided. + if (!!options.headers) { + this.headers = options.headers; + } + if (!!options.context) { + this.context = options.context; + } + if (!!options.params) { + this.params = options.params; + } + } + // If no headers have been passed in, construct a new HttpHeaders instance. + if (!this.headers) { + this.headers = new HttpHeaders(); + } + // If no context have been passed in, construct a new HttpContext instance. + if (!this.context) { + this.context = new HttpContext(); + } + // If no parameters have been passed in, construct a new HttpUrlEncodedParams instance. + if (!this.params) { + this.params = new HttpParams(); + this.urlWithParams = url; + } else { + // Encode the parameters to a string in preparation for inclusion in the URL. + const params = this.params.toString(); + if (params.length === 0) { + // No parameters, the visible URL is just the URL given at creation time. + this.urlWithParams = url; + } else { + // Does the URL already have query parameters? Look for '?'. + const qIdx = url.indexOf("?"); + // There are 3 cases to handle: + // 1) No existing parameters -> append '?' followed by params. + // 2) '?' exists and is followed by existing query string -> + // append '&' followed by params. + // 3) '?' exists at the end of the url -> append params directly. + // This basically amounts to determining the character, if any, with + // which to join the URL and parameters. + const sep = + qIdx === -1 ? "?" : qIdx < url.length - 1 ? "&" : ""; + this.urlWithParams = url + sep + params; + } + } + } + /** + * Transform the free-form body into a serialized format suitable for + * transmission to the server. + */ + serializeBody() { + // If no body is present, no need to serialize it. + if (this.body === null) { + return null; + } + // Check whether the body is already in a serialized form. If so, + // it can just be returned directly. + if ( + isArrayBuffer(this.body) || + isBlob(this.body) || + isFormData(this.body) || + isUrlSearchParams(this.body) || + typeof this.body === "string" + ) { + return this.body; + } + // Check whether the body is an instance of HttpUrlEncodedParams. + if (this.body instanceof HttpParams) { + return this.body.toString(); + } + // Check whether the body is an object or array, and serialize with JSON if so. + if ( + typeof this.body === "object" || + typeof this.body === "boolean" || + Array.isArray(this.body) + ) { + return JSON.stringify(this.body); + } + // Fall back on toString() for everything else. + return this.body.toString(); + } + /** + * Examine the body and attempt to infer an appropriate MIME type + * for it. + * + * If no such type can be inferred, this method will return `null`. + */ + detectContentTypeHeader() { + // An empty body has no content type. + if (this.body === null) { + return null; + } + // FormData bodies rely on the browser's content type assignment. + if (isFormData(this.body)) { + return null; + } + // Blobs usually have their own content type. If it doesn't, then + // no type can be inferred. + if (isBlob(this.body)) { + return this.body.type || null; + } + // Array buffers have unknown contents and thus no type can be inferred. + if (isArrayBuffer(this.body)) { + return null; + } + // Technically, strings could be a form of JSON data, but it's safe enough + // to assume they're plain strings. + if (typeof this.body === "string") { + return "text/plain"; + } + // `HttpUrlEncodedParams` has its own content-type. + if (this.body instanceof HttpParams) { + return "application/x-www-form-urlencoded;charset=UTF-8"; + } + // Arrays, objects, boolean and numbers will be encoded as JSON. + if ( + typeof this.body === "object" || + typeof this.body === "number" || + typeof this.body === "boolean" + ) { + return "application/json"; + } + // No type could be inferred. + return null; + } + clone(update = {}) { + // For method, url, and responseType, take the current value unless + // it is overridden in the update hash. + const method = update.method || this.method; + const url = update.url || this.url; + const responseType = update.responseType || this.responseType; + // The body is somewhat special - a `null` value in update.body means + // whatever current body is present is being overridden with an empty + // body, whereas an `undefined` value in update.body implies no + // override. + const body = update.body !== undefined ? update.body : this.body; + // Carefully handle the boolean options to differentiate between + // `false` and `undefined` in the update args. + const withCredentials = + update.withCredentials !== undefined + ? update.withCredentials + : this.withCredentials; + const reportProgress = + update.reportProgress !== undefined + ? update.reportProgress + : this.reportProgress; + // Headers and params may be appended to if `setHeaders` or + // `setParams` are used. + let headers = update.headers || this.headers; + let params = update.params || this.params; + // Pass on context if needed + const context = update.context ?? this.context; + // Check whether the caller has asked to add headers. + if (update.setHeaders !== undefined) { + // Set every requested header. + headers = Object.keys(update.setHeaders).reduce( + (headers, name) => headers.set(name, update.setHeaders[name]), + headers + ); + } + // Check whether the caller has asked to set params. + if (update.setParams) { + // Set every requested param. + params = Object.keys(update.setParams).reduce( + (params, param) => params.set(param, update.setParams[param]), + params + ); + } + // Finally, construct the new HttpRequest using the pieces from above. + return new HttpRequest(method, url, body, { + params, + headers, + context, + reportProgress, + responseType, + withCredentials, + }); + } + } + + /** + * Type enumeration for the different kinds of `HttpEvent`. + * + * @publicApi + */ + var HttpEventType; + (function (HttpEventType) { + /** + * The request was sent out over the wire. + */ + HttpEventType[(HttpEventType["Sent"] = 0)] = "Sent"; + /** + * An upload progress event was received. + */ + HttpEventType[(HttpEventType["UploadProgress"] = 1)] = + "UploadProgress"; + /** + * The response status code and headers were received. + */ + HttpEventType[(HttpEventType["ResponseHeader"] = 2)] = + "ResponseHeader"; + /** + * A download progress event was received. + */ + HttpEventType[(HttpEventType["DownloadProgress"] = 3)] = + "DownloadProgress"; + /** + * The full response including the body was received. + */ + HttpEventType[(HttpEventType["Response"] = 4)] = "Response"; + /** + * A custom event from an interceptor or a backend. + */ + HttpEventType[(HttpEventType["User"] = 5)] = "User"; + })(HttpEventType || (HttpEventType = {})); + /** + * Base class for both `HttpResponse` and `HttpHeaderResponse`. + * + * @publicApi + */ + class HttpResponseBase { + /** + * Super-constructor for all responses. + * + * The single parameter accepted is an initialization hash. Any properties + * of the response passed there will override the default values. + */ + constructor( + init, + defaultStatus = 200 /* HttpStatusCode.Ok */, + defaultStatusText = "OK" + ) { + // If the hash has values passed, use them to initialize the response. + // Otherwise use the default values. + this.headers = init.headers || new HttpHeaders(); + this.status = + init.status !== undefined ? init.status : defaultStatus; + this.statusText = init.statusText || defaultStatusText; + this.url = init.url || null; + // Cache the ok value to avoid defining a getter. + this.ok = this.status >= 200 && this.status < 300; + } + } + /** + * A partial HTTP response which only includes the status and header data, + * but no response body. + * + * `HttpHeaderResponse` is a `HttpEvent` available on the response + * event stream, only when progress events are requested. + * + * @publicApi + */ + class HttpHeaderResponse extends HttpResponseBase { + /** + * Create a new `HttpHeaderResponse` with the given parameters. + */ + constructor(init = {}) { + super(init); + this.type = HttpEventType.ResponseHeader; + } + /** + * Copy this `HttpHeaderResponse`, overriding its contents with the + * given parameter hash. + */ + clone(update = {}) { + // Perform a straightforward initialization of the new HttpHeaderResponse, + // overriding the current parameters with new ones if given. + return new HttpHeaderResponse({ + headers: update.headers || this.headers, + status: update.status !== undefined ? update.status : this.status, + statusText: update.statusText || this.statusText, + url: update.url || this.url || undefined, + }); + } + } + /** + * A full HTTP response, including a typed response body (which may be `null` + * if one was not returned). + * + * `HttpResponse` is a `HttpEvent` available on the response event + * stream. + * + * @publicApi + */ + class HttpResponse extends HttpResponseBase { + /** + * Construct a new `HttpResponse`. + */ + constructor(init = {}) { + super(init); + this.type = HttpEventType.Response; + this.body = init.body !== undefined ? init.body : null; + } + clone(update = {}) { + return new HttpResponse({ + body: update.body !== undefined ? update.body : this.body, + headers: update.headers || this.headers, + status: update.status !== undefined ? update.status : this.status, + statusText: update.statusText || this.statusText, + url: update.url || this.url || undefined, + }); + } + } + /** + * A response that represents an error or failure, either from a + * non-successful HTTP status, an error while executing the request, + * or some other failure which occurred during the parsing of the response. + * + * Any error returned on the `Observable` response stream will be + * wrapped in an `HttpErrorResponse` to provide additional context about + * the state of the HTTP layer when the error occurred. The error property + * will contain either a wrapped Error object or the error response returned + * from the server. + * + * @publicApi + */ + class HttpErrorResponse extends HttpResponseBase { + constructor(init) { + // Initialize with a default status of 0 / Unknown Error. + super(init, 0, "Unknown Error"); + this.name = "HttpErrorResponse"; + /** + * Errors are never okay, even when the status code is in the 2xx success range. + */ + this.ok = false; + // If the response was successful, then this was a parse error. Otherwise, it was + // a protocol-level failure of some sort. Either the request failed in transit + // or the server returned an unsuccessful status code. + if (this.status >= 200 && this.status < 300) { + this.message = `Http failure during parsing for ${ + init.url || "(unknown url)" + }`; + } else { + this.message = `Http failure response for ${ + init.url || "(unknown url)" + }: ${init.status} ${init.statusText}`; + } + this.error = init.error || null; + } + } + + /** + * Constructs an instance of `HttpRequestOptions` from a source `HttpMethodOptions` and + * the given `body`. This function clones the object and adds the body. + * + * Note that the `responseType` *options* value is a String that identifies the + * single data type of the response. + * A single overload version of the method handles each response type. + * The value of `responseType` cannot be a union, as the combined signature could imply. + * + */ + function addBody(options, body) { + return { + body, + headers: options.headers, + context: options.context, + observe: options.observe, + params: options.params, + reportProgress: options.reportProgress, + responseType: options.responseType, + withCredentials: options.withCredentials, + }; + } + /** + * Performs HTTP requests. + * This service is available as an injectable class, with methods to perform HTTP requests. + * Each request method has multiple signatures, and the return type varies based on + * the signature that is called (mainly the values of `observe` and `responseType`). + * + * Note that the `responseType` *options* value is a String that identifies the + * single data type of the response. + * A single overload version of the method handles each response type. + * The value of `responseType` cannot be a union, as the combined signature could imply. + + * + * @usageNotes + * Sample HTTP requests for the [Tour of Heroes](/tutorial/tour-of-heroes/toh-pt0) application. + * + * ### HTTP Request Example + * + * ``` + * // GET heroes whose name contains search term + * searchHeroes(term: string): observable{ + * + * const params = new HttpParams({fromString: 'name=term'}); + * return this.httpClient.request('GET', this.heroesUrl, {responseType:'json', params}); + * } + * ``` + * + * Alternatively, the parameter string can be used without invoking HttpParams + * by directly joining to the URL. + * ``` + * this.httpClient.request('GET', this.heroesUrl + '?' + 'name=term', {responseType:'json'}); + * ``` + * + * + * ### JSONP Example + * ``` + * requestJsonp(url, callback = 'callback') { + * return this.httpClient.jsonp(this.heroesURL, callback); + * } + * ``` + * + * ### PATCH Example + * ``` + * // PATCH one of the heroes' name + * patchHero (id: number, heroName: string): Observable<{}> { + * const url = `${this.heroesUrl}/${id}`; // PATCH api/heroes/42 + * return this.httpClient.patch(url, {name: heroName}, httpOptions) + * .pipe(catchError(this.handleError('patchHero'))); + * } + * ``` + * + * @see [HTTP Guide](guide/http) + * @see [HTTP Request](api/common/http/HttpRequest) + * + * @publicApi + */ + class HttpClient { + constructor(handler) { + this.handler = handler; + } + /** + * Constructs an observable for a generic HTTP request that, when subscribed, + * fires the request through the chain of registered interceptors and on to the + * server. + * + * You can pass an `HttpRequest` directly as the only parameter. In this case, + * the call returns an observable of the raw `HttpEvent` stream. + * + * Alternatively you can pass an HTTP method as the first parameter, + * a URL string as the second, and an options hash containing the request body as the third. + * See `addBody()`. In this case, the specified `responseType` and `observe` options determine the + * type of returned observable. + * * The `responseType` value determines how a successful response body is parsed. + * * If `responseType` is the default `json`, you can pass a type interface for the resulting + * object as a type parameter to the call. + * + * The `observe` value determines the return type, according to what you are interested in + * observing. + * * An `observe` value of events returns an observable of the raw `HttpEvent` stream, including + * progress events by default. + * * An `observe` value of response returns an observable of `HttpResponse`, + * where the `T` parameter depends on the `responseType` and any optionally provided type + * parameter. + * * An `observe` value of body returns an observable of `` with the same `T` body type. + * + */ + request(first, url, options = {}) { + let req; + // First, check whether the primary argument is an instance of `HttpRequest`. + if (first instanceof HttpRequest) { + // It is. The other arguments must be undefined (per the signatures) and can be + // ignored. + req = first; + } else { + // It's a string, so it represents a URL. Construct a request based on it, + // and incorporate the remaining arguments (assuming `GET` unless a method is + // provided. + // Figure out the headers. + let headers = undefined; + if (options.headers instanceof HttpHeaders) { + headers = options.headers; + } else { + headers = new HttpHeaders(options.headers); + } + // Sort out parameters. + let params = undefined; + if (!!options.params) { + if (options.params instanceof HttpParams) { + params = options.params; + } else { + params = new HttpParams({ + fromObject: options.params, + }); + } + } + // Construct the request. + req = new HttpRequest( + first, + url, + options.body !== undefined ? options.body : null, + { + headers, + context: options.context, + params, + reportProgress: options.reportProgress, + // By default, JSON is assumed to be returned for all calls. + responseType: options.responseType || "json", + withCredentials: options.withCredentials, + } + ); + } + // Start with an Observable.of() the initial request, and run the handler (which + // includes all interceptors) inside a concatMap(). This way, the handler runs + // inside an Observable chain, which causes interceptors to be re-run on every + // subscription (this also makes retries re-run the handler, including interceptors). + const events$ = (0, rxjs__WEBPACK_IMPORTED_MODULE_0__.of)(req).pipe( + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_1__.concatMap)( + (req) => this.handler.handle(req) + ) + ); + // If coming via the API signature which accepts a previously constructed HttpRequest, + // the only option is to get the event stream. Otherwise, return the event stream if + // that is what was requested. + if (first instanceof HttpRequest || options.observe === "events") { + return events$; + } + // The requested stream contains either the full response or the body. In either + // case, the first step is to filter the event stream to extract a stream of + // responses(s). + const res$ = events$.pipe( + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_2__.filter)( + (event) => event instanceof HttpResponse + ) + ); + // Decide which stream to return. + switch (options.observe || "body") { + case "body": + // The requested stream is the body. Map the response stream to the response + // body. This could be done more simply, but a misbehaving interceptor might + // transform the response body into a different format and ignore the requested + // responseType. Guard against this by validating that the response is of the + // requested type. + switch (req.responseType) { + case "arraybuffer": + return res$.pipe( + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.map)( + (res) => { + // Validate that the body is an ArrayBuffer. + if ( + res.body !== null && + !(res.body instanceof ArrayBuffer) + ) { + throw new Error("Response is not an ArrayBuffer."); + } + return res.body; + } + ) + ); + case "blob": + return res$.pipe( + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.map)( + (res) => { + // Validate that the body is a Blob. + if ( + res.body !== null && + !(res.body instanceof Blob) + ) { + throw new Error("Response is not a Blob."); + } + return res.body; + } + ) + ); + case "text": + return res$.pipe( + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.map)( + (res) => { + // Validate that the body is a string. + if ( + res.body !== null && + typeof res.body !== "string" + ) { + throw new Error("Response is not a string."); + } + return res.body; + } + ) + ); + case "json": + default: + // No validation needed for JSON responses, as they can be of any type. + return res$.pipe( + (0, rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.map)( + (res) => res.body + ) + ); + } + case "response": + // The response stream was requested directly, so return it. + return res$; + default: + // Guard against new future observe types being added. + throw new Error( + `Unreachable: unhandled observe type ${options.observe}}` + ); + } + } + /** + * Constructs an observable that, when subscribed, causes the configured + * `DELETE` request to execute on the server. See the individual overloads for + * details on the return type. + * + * @param url The endpoint URL. + * @param options The HTTP options to send with the request. + * + */ + delete(url, options = {}) { + return this.request("DELETE", url, options); + } + /** + * Constructs an observable that, when subscribed, causes the configured + * `GET` request to execute on the server. See the individual overloads for + * details on the return type. + */ + get(url, options = {}) { + return this.request("GET", url, options); + } + /** + * Constructs an observable that, when subscribed, causes the configured + * `HEAD` request to execute on the server. The `HEAD` method returns + * meta information about the resource without transferring the + * resource itself. See the individual overloads for + * details on the return type. + */ + head(url, options = {}) { + return this.request("HEAD", url, options); + } + /** + * Constructs an `Observable` that, when subscribed, causes a request with the special method + * `JSONP` to be dispatched via the interceptor pipeline. + * The [JSONP pattern](https://en.wikipedia.org/wiki/JSONP) works around limitations of certain + * API endpoints that don't support newer, + * and preferable [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) protocol. + * JSONP treats the endpoint API as a JavaScript file and tricks the browser to process the + * requests even if the API endpoint is not located on the same domain (origin) as the client-side + * application making the request. + * The endpoint API must support JSONP callback for JSONP requests to work. + * The resource API returns the JSON response wrapped in a callback function. + * You can pass the callback function name as one of the query parameters. + * Note that JSONP requests can only be used with `GET` requests. + * + * @param url The resource URL. + * @param callbackParam The callback function name. + * + */ + jsonp(url, callbackParam) { + return this.request("JSONP", url, { + params: new HttpParams().append(callbackParam, "JSONP_CALLBACK"), + observe: "body", + responseType: "json", + }); + } + /** + * Constructs an `Observable` that, when subscribed, causes the configured + * `OPTIONS` request to execute on the server. This method allows the client + * to determine the supported HTTP methods and other capabilities of an endpoint, + * without implying a resource action. See the individual overloads for + * details on the return type. + */ + options(url, options = {}) { + return this.request("OPTIONS", url, options); + } + /** + * Constructs an observable that, when subscribed, causes the configured + * `PATCH` request to execute on the server. See the individual overloads for + * details on the return type. + */ + patch(url, body, options = {}) { + return this.request("PATCH", url, addBody(options, body)); + } + /** + * Constructs an observable that, when subscribed, causes the configured + * `POST` request to execute on the server. The server responds with the location of + * the replaced resource. See the individual overloads for + * details on the return type. + */ + post(url, body, options = {}) { + return this.request("POST", url, addBody(options, body)); + } + /** + * Constructs an observable that, when subscribed, causes the configured + * `PUT` request to execute on the server. The `PUT` method replaces an existing resource + * with a new set of values. + * See the individual overloads for details on the return type. + */ + put(url, body, options = {}) { + return this.request("PUT", url, addBody(options, body)); + } + } + HttpClient.ɵfac = function HttpClient_Factory(t) { + return new (t || HttpClient)( + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](HttpHandler) + ); + }; + HttpClient.ɵprov = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_4__[ + "ɵɵdefineInjectable" + ]({ + token: HttpClient, + factory: HttpClient.ɵfac, + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵsetClassMetadata"]( + HttpClient, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.Injectable, + }, + ], + function () { + return [ + { + type: HttpHandler, + }, + ]; + }, + null + ); + })(); + function interceptorChainEndFn(req, finalHandlerFn) { + return finalHandlerFn(req); + } + /** + * Constructs a `ChainedInterceptorFn` which adapts a legacy `HttpInterceptor` to the + * `ChainedInterceptorFn` interface. + */ + function adaptLegacyInterceptorToChain(chainTailFn, interceptor) { + return (initialRequest, finalHandlerFn) => + interceptor.intercept(initialRequest, { + handle: (downstreamRequest) => + chainTailFn(downstreamRequest, finalHandlerFn), + }); + } + /** + * Constructs a `ChainedInterceptorFn` which wraps and invokes a functional interceptor in the given + * injector. + */ + function chainedInterceptorFn(chainTailFn, interceptorFn, injector) { + // clang-format off + return (initialRequest, finalHandlerFn) => + injector.runInContext(() => + interceptorFn(initialRequest, (downstreamRequest) => + chainTailFn(downstreamRequest, finalHandlerFn) + ) + ); + // clang-format on + } + /** + * A multi-provider token that represents the array of registered + * `HttpInterceptor` objects. + * + * @publicApi + */ + const HTTP_INTERCEPTORS = + new _angular_core__WEBPACK_IMPORTED_MODULE_4__.InjectionToken( + "HTTP_INTERCEPTORS" + ); + /** + * A multi-provided token of `HttpInterceptorFn`s. + */ + const HTTP_INTERCEPTOR_FNS = + new _angular_core__WEBPACK_IMPORTED_MODULE_4__.InjectionToken( + "HTTP_INTERCEPTOR_FNS" + ); + /** + * Creates an `HttpInterceptorFn` which lazily initializes an interceptor chain from the legacy + * class-based interceptors and runs the request through it. + */ + function legacyInterceptorFnFactory() { + let chain = null; + return (req, handler) => { + if (chain === null) { + const interceptors = + (0, _angular_core__WEBPACK_IMPORTED_MODULE_4__.inject)( + HTTP_INTERCEPTORS, + { + optional: true, + } + ) ?? []; + // Note: interceptors are wrapped right-to-left so that final execution order is + // left-to-right. That is, if `interceptors` is the array `[a, b, c]`, we want to + // produce a chain that is conceptually `c(b(a(end)))`, which we build from the inside + // out. + chain = interceptors.reduceRight( + adaptLegacyInterceptorToChain, + interceptorChainEndFn + ); + } + return chain(req, handler); + }; + } + class HttpInterceptorHandler extends HttpHandler { + constructor(backend, injector) { + super(); + this.backend = backend; + this.injector = injector; + this.chain = null; + } + handle(initialRequest) { + if (this.chain === null) { + const dedupedInterceptorFns = Array.from( + new Set(this.injector.get(HTTP_INTERCEPTOR_FNS)) + ); + // Note: interceptors are wrapped right-to-left so that final execution order is + // left-to-right. That is, if `dedupedInterceptorFns` is the array `[a, b, c]`, we want to + // produce a chain that is conceptually `c(b(a(end)))`, which we build from the inside + // out. + this.chain = dedupedInterceptorFns.reduceRight( + (nextSequencedFn, interceptorFn) => + chainedInterceptorFn( + nextSequencedFn, + interceptorFn, + this.injector + ), + interceptorChainEndFn + ); + } + return this.chain(initialRequest, (downstreamRequest) => + this.backend.handle(downstreamRequest) + ); + } + } + HttpInterceptorHandler.ɵfac = function HttpInterceptorHandler_Factory( + t + ) { + return new (t || HttpInterceptorHandler)( + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](HttpBackend), + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"]( + _angular_core__WEBPACK_IMPORTED_MODULE_4__.EnvironmentInjector + ) + ); + }; + HttpInterceptorHandler.ɵprov = + /* @__PURE__ */ _angular_core__WEBPACK_IMPORTED_MODULE_4__[ + "ɵɵdefineInjectable" + ]({ + token: HttpInterceptorHandler, + factory: HttpInterceptorHandler.ɵfac, + }); + (function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵsetClassMetadata"]( + HttpInterceptorHandler, + [ + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.Injectable, + }, + ], + function () { + return [ + { + type: HttpBackend, + }, + { + type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.EnvironmentInjector, + }, + ]; + }, + null + ); + })(); + + // Every request made through JSONP needs a callback name that's unique across the + // whole page. Each request is assigned an id and the callback name is constructed + // from that. The next id to be assigned is tracked in a global variable here that + // is shared among all applications on the page. + let nextRequestId = 0; + /** + * When a pending